:root{--paper:#f7f5ef;--ink:#222c30;--muted:#666a65;--line:#dcd9cd;--gold:#efbd66;--green:#294f43;--serif:Georgia,"Times New Roman",serif;--sans:Inter,"Segoe UI",Arial,sans-serif;--mono:"Courier New",monospace;color-scheme:light;font-family:var(--sans);color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input{font:inherit}button{color:inherit;cursor:pointer}button,a,input,summary{touch-action:manipulation}svg{width:1.2em;height:1.2em;flex:none}button{border:0}a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #a25e12;outline-offset:4px}h1:focus{outline:none}img{display:block}p{line-height:1.62}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--serif);font-weight:600}button svg,a svg{vertical-align:middle}
header{border-bottom:1px solid var(--line);background:#fcfaf5}.bar,main{width:min(1220px,calc(100% - 9vw));margin:auto}.bar{display:flex;height:76px;align-items:center;gap:46px}.brand{font-family:var(--serif);font-weight:700;font-size:27px;letter-spacing:-1.3px;display:inline-flex;align-items:center;gap:11px;white-space:nowrap}.brandmark{display:grid;place-items:center;background:#27373d;color:var(--gold);border-radius:10px;box-shadow:inset 0 0 0 1px #1a282e;width:39px;height:39px}.brandmark svg{width:25px;height:25px;stroke-width:2}.bar nav{display:flex;align-items:stretch;height:100%;gap:28px}.bar nav a,.rules{display:flex;align-items:center;justify-content:center;gap:9px;font-size:14px;font-weight:560}.bar nav a{position:relative;color:var(--muted)}.bar nav a.active{color:var(--ink)}.bar nav a.active:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:#b28849}.rules{margin-left:auto;background:transparent;border:1px solid var(--line);padding:9px 15px;border-radius:7px}.rules:hover,.secondary:hover{background:#eeeadf}
main{padding-bottom:64px}.crumb{display:flex;align-items:center;gap:12px;color:#565b59;font-size:12px;font-weight:550;min-height:58px}.crumb i{font-size:17px;color:#979990;font-style:normal}.crumb a{color:#666e6c}.crumb a:hover{text-decoration:underline}
.hero{isolation:isolate;position:relative;overflow:hidden;border-radius:14px;background:#112529;color:#fff9e9;box-shadow:0 3px 8px #23292718}.hero:before,.hero:after{position:absolute;inset:0;content:"";z-index:-1}.hero:before{background-image:var(--cover);background-size:cover;background-position:center 17%}.hero:after{background:linear-gradient(90deg,#101e24fc 0%,#11222bf5 22%,#142630dc 36%,#15252c82 53%,#1725290a 75%),linear-gradient(0deg,#0a171e35,transparent 40%)}.heroinner{padding:36px 4.2% 39px}.docket,.eyebrow,.kind,.photo-num,.progresslabel{letter-spacing:.09em}.docket{display:inline-flex;gap:9px;align-items:center;padding:6px 10px;border:1px solid #c99e5c7a;border-radius:4px;color:#f1c780;background:#28302c99;font:700 11px var(--mono);letter-spacing:.14em}.docket svg{width:15px;height:15px}.hero h1{font-size:clamp(48px,5.2vw,77px);letter-spacing:-.045em;line-height:.99;max-width:6.5em;margin:19px 0 16px;font-weight:600;text-wrap:balance}.hero p{font-size:16px;color:#e0e3de;max-width:420px;line-height:1.55}.meta,.meta span{display:flex;align-items:center}.meta{gap:12px;font-size:12px;color:#e4e2d8;flex-wrap:wrap;margin:20px 0 24px}.meta span{gap:6px}.meta svg{color:#dbb77a;width:16px;height:16px}.meta b{color:#a9aaa2}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:16px;font-size:14px;font-weight:700;border-radius:7px;line-height:1.3;min-height:46px;padding:13px 19px}.primary{background:var(--gold);color:#222b2d}.primary:hover{background:#ffcd7c}.secondary{border:1px solid var(--line);background:#fffdf7}
.stages{margin-top:34px}.sectionhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:16px}.sectionhead h2,.paper h2,dialog h2{font-size:clamp(27px,2.5vw,36px);letter-spacing:-.045em}.progresslabel{display:flex;align-items:center;gap:10px;font-size:12px;color:#676b64;letter-spacing:0}.segments{display:flex;gap:3px}.segments i{width:15px;height:4px;background:#dcdad1;border-radius:4px}.segments .filled{background:#547666}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.card{text-align:left;padding:0;overflow:hidden;display:flex;flex-direction:column;align-items:stretch;background:#fffcf6;border:1px solid #d9d6cb;border-radius:10px;box-shadow:0 2px 4px #17272b06;transition:box-shadow .18s,transform .18s}.card:hover{transform:translateY(-2px);box-shadow:0 5px 14px #222a301a}.cardpic{height:clamp(132px,12.4vw,170px);position:relative;overflow:hidden;background:#364647}.cardpic img{width:100%;height:100%;object-fit:cover;object-position:50% 55%}.cardpic:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#131b2640,transparent 38%,#101b2122);pointer-events:none}.cardpic.right img{object-position:100% 40%;transform:scale(1.75);transform-origin:right center}.cardpic.left img{object-position:left 70%;transform:scale(1.6);transform-origin:left bottom}.photo-num,.state{position:absolute;z-index:1;top:13px}.photo-num{left:14px;background:#faf4e4;color:#45483f;padding:5px 8px 4px;border-radius:3px;font:700 10px var(--mono);letter-spacing:.1em}.state{right:13px;color:#fff9e6;background:#273539c9;width:26px;height:26px;display:grid;place-items:center;border:1px solid #ffffff45;border-radius:50%}.state svg{width:14px;height:14px}.cardcopy{padding:15px 18px 18px}.kind,.eyebrow{display:inline-flex;align-items:center;gap:7px;color:#74603c;font-size:11px;font-weight:700}.kind{letter-spacing:.03em}.kind svg{width:15px;height:15px}.card h3,.entry h3,.archive-row h3,.empty h3{font-size:24px;letter-spacing:-.04em;margin-top:6px}.paper{background:#fffcf6;border:1px solid var(--line);border-radius:13px;padding:clamp(22px,4vw,48px);max-width:950px;margin:0 auto}.paper h1{font-size:clamp(38px,5vw,59px);line-height:1.08;letter-spacing:-.045em;margin:15px 0}.lead{font-size:17px;max-width:750px;color:#4d5755}.eyebrow{text-transform:uppercase;font-family:var(--mono);letter-spacing:.1em;font-size:12px}.eyebrow i{font-style:normal}.empty,.entry,.clue,.puzzle-text{border:1px solid var(--line);border-radius:8px;background:#f7f4eb;margin:23px 0;padding:22px}.entry p,.clue p,.empty p{margin-top:9px}.clue{background:#edf3eb;border-color:#c9d9c9}.clue h2{margin-top:12px}.chips{display:flex;flex-wrap:wrap;gap:8px;margin:19px 0 14px}.chip{display:inline-flex;align-items:center;gap:6px;background:#f3eddf;border:1px solid #ded1b8;color:#634f33;border-radius:20px;padding:6px 11px;font-size:13px}.chip.found{color:var(--green);background:#e4eee2;border-color:#c4d6c1}.photos{display:grid;gap:14px}.paired{grid-template-columns:1fr 1fr}.photo-wrap>.kind{margin:0 0 7px}.scene{width:100%;padding:0;display:block;background:#27373d;border-radius:7px;overflow:hidden;position:relative;cursor:crosshair;container-type:inline-size}.scene img{width:100%;height:auto;pointer-events:none}.ring,.cursor,.alteration{position:absolute;transform:translate(-50%,-50%);pointer-events:none}.ring{border:3px solid #ffe1a0;border-radius:50%;box-shadow:0 0 0 1px #1d3437,0 0 5px #000}.cursor{width:19px;height:19px;border:2px solid white;border-radius:50%;background:#17272a70}.scene:focus-visible .cursor[hidden]{display:block;left:50%;top:50%}.alteration{font-size:7cqw;line-height:1;color:#f3d5a1;text-shadow:1px 1px 2px #37200c;font-family:Georgia,serif}.puzzle-text{white-space:pre-line;font-family:var(--serif);font-size:21px;line-height:1.7;border-left:3px solid #b39664}.rebus{text-align:center;font-weight:bold;letter-spacing:.07em;font-size:clamp(18px,3vw,33px)}form label{display:block;font-size:14px;font-weight:650;margin-bottom:8px}.answerrow{display:flex;gap:9px}.answerrow input{min-width:0;border:1px solid #b9baae;border-radius:7px;background:#fffefa;padding:12px;flex:1;max-width:420px}.choices{display:grid;gap:10px;margin-top:21px}.choice,.archive-row{display:flex;align-items:center;text-align:left;justify-content:space-between;gap:18px}.choice{min-height:56px;background:#f6f2e8;border:1px solid var(--line);padding:14px 18px;border-radius:6px}.choice:hover{background:#f3e6c9}#feedback{font-size:14px;min-height:1.55em;margin-top:9px;color:#715029}details{margin-top:8px;border-top:1px solid var(--line);padding:15px 0 0}summary{cursor:pointer;color:#6c5939;font-weight:650;font-size:14px}summary svg{vertical-align:middle;margin:0 5px}details p{margin:8px 0 0}.archive{margin-top:35px}.archive-row{justify-content:start;border-top:1px solid var(--line);padding:17px 0}.archive-row img{width:110px;height:74px;object-fit:cover;border-radius:6px}.archive-row>svg{margin-left:auto}.ending img{width:100%;height:230px;object-fit:cover;border-radius:8px;margin:20px 0}.ending .primary{margin-top:20px}
dialog{border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);max-width:min(470px,calc(100% - 28px));padding:32px;box-shadow:0 15px 70px #12202a55}dialog::backdrop{background:#13222999}dialog h2{padding-right:25px}dialog p{margin-top:14px}.close{position:absolute;right:13px;top:13px;width:34px;height:34px;background:transparent;display:grid;place-items:center}.offline{font-size:13px;color:var(--green)}
@media(min-width:1500px){.hero:before{background-position:center 17%}}
@media(max-width:800px){.bar,main{width:calc(100% - 40px)}.bar{gap:28px}.bar nav{gap:15px}.hero:after{background:linear-gradient(90deg,#101e24fa 2%,#11222beb 26%,#13262faa 52%,#15252c16 86%)}.cards{gap:13px}.cardcopy{padding:12px}.card h3{font-size:20px}.paired{grid-template-columns:1fr}.paired .photo-wrap{max-width:560px}.hero p{max-width:58%}}
@media(max-width:600px){.bar,main{width:calc(100% - 28px)}.bar{height:60px;gap:12px}.brand{font-size:23px;gap:7px}.brandmark{width:32px;height:32px;border-radius:8px}.brandmark svg{width:22px;height:22px}.bar nav{margin-left:auto;gap:9px}.bar nav a{width:33px}.bar nav a svg{width:20px;height:20px}.bar nav span,.rules span{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.rules{margin:0;width:33px;height:33px;padding:0}.crumb{min-height:44px;gap:8px}.hero{border-radius:10px}.hero:before{background-size:auto 84%;background-position:70% top;background-repeat:no-repeat}.hero:after{background:linear-gradient(0deg,#11232a 8%,#11232afc 26%,#11232ae3 46%,#11232a55 73%,#11232a0a)}.heroinner{padding:108px 22px 25px}.hero h1{font-size:49px;margin:15px 0 12px;max-width:7em}.hero p{max-width:100%;font-size:15px}.meta{font-size:11.5px;gap:7px;margin:16px 0 19px}.meta span{gap:4px}.meta svg{width:14px;height:14px}.stages{margin-top:24px}.sectionhead{align-items:flex-start;gap:6px;flex-direction:column;margin-bottom:14px}.sectionhead h2{font-size:29px}.progresslabel{font-size:11px}.segments i{width:12px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.cardpic{height:100px}.photo-num{top:9px;left:8px;font-size:9px;padding:4px 5px}.state{top:7px;right:7px;width:23px;height:23px}.cardcopy{padding:11px}.card h3{font-size:19px}.kind{font-size:10px;gap:4px}.paper{padding:20px 15px}.lead{font-size:15px}.answerrow{flex-wrap:wrap}.chip{font-size:12px}.empty,.entry,.clue,.puzzle-text{padding:15px}.archive-row img{width:75px;height:62px}.entry h3,.archive-row h3{font-size:20px}dialog{padding:23px}.ring{border-width:2px}.paired{gap:9px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* End of an investigation. The result stays available above the story. */
.result-metrics{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:16px 0;
  padding:12px 0;border-block:1px solid var(--line);font-variant-numeric:tabular-nums;
}
.result-metrics>div{min-width:0;padding:0 10px}
.result-metrics>div+div{border-inline-start:1px solid var(--line)}
.result-metrics dt{font:600 12px var(--sans);color:var(--muted)}
.result-metrics dd{margin:5px 0 0;font:650 clamp(17px,4.6vw,23px)/1.2 var(--sans);color:var(--ink)}
.result-note{display:block;font-size:12px;color:var(--muted);margin:-7px 0 12px}
.ending-sheet .result-metrics>div:first-child{padding-left:0}
.ending-sheet #denouement{margin:24px 0 9px;font-size:23px;scroll-margin-top:12px}
#dialog:has(.victory){
  width:min(410px,calc(100vw - 24px));max-height:calc(100dvh - 20px);overflow:auto;
  padding:24px clamp(16px,5vw,30px);border-radius:16px;text-align:center;
}
.victory h2{padding:0;font:600 clamp(28px,6vw,38px)/1.1 var(--serif)}
.victory h2:focus{outline:0}
.victory .victory-case{margin:6px 0 0;color:var(--muted);line-height:1.35}
.victory-emblem{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 13px;
  border-radius:50%;background:#f7db93;color:#644718;box-shadow:inset 0 0 0 4px #edc571}
.victory-emblem svg{width:40px;height:40px;stroke-width:1.25}
.victory-actions{display:flex;align-items:stretch;justify-content:center;gap:7px;flex-wrap:wrap}
.victory-actions .tool{min-height:40px}
.victory [data-share-feedback]:not(:empty){padding-top:12px;font-size:13px}
@media (prefers-reduced-motion:no-preference){
  .victory-emblem{animation:award-arrives .68s cubic-bezier(.22,.85,.27,1.09) both}
  @keyframes award-arrives{from{opacity:0;transform:translateY(-14px) rotate(-15deg) scale(.7)}65%{transform:rotate(4deg) scale(1.08)}to{opacity:1;transform:none}}
}
@media (max-height:420px) and (orientation:landscape){
  #dialog:has(.victory){padding:13px 22px}
  .victory-emblem{width:38px;height:38px;margin-bottom:5px}
  .victory-emblem svg{width:27px;height:27px}
  .victory h2{font-size:26px}
  .victory .result-metrics{padding:8px 0;margin:10px 0}
}
@media (max-height:330px) and (orientation:landscape){
  .victory-emblem{position:absolute;top:10px;left:14px;width:30px;height:30px}
  .victory-emblem svg{width:21px;height:21px}
  .victory .result-metrics{margin:8px 0}
  .victory .result-note{margin:0 0 6px}
}

#dialog:has(.mission-brief){
  width:min(460px,calc(100vw - 24px));max-width:calc(100vw - 24px);padding:0;overflow:hidden;
  border-radius:12px;max-height:calc(100dvh - 20px)
}
.mission-brief{display:flex;flex-direction:column;max-height:calc(100dvh - 24px)}
.brief-copy{min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 20px 8px}
.brief-copy h2{font-size:clamp(22px,5vw,30px);line-height:1.12;padding-right:34px}
.brief-copy h3{font:650 15px var(--sans);margin:14px 0 6px}
.brief-copy p{margin:9px 0;font-size:14px;line-height:1.4}
.mission-targets{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(110px,100%),1fr));gap:5px 18px;margin:6px 0 10px;padding-left:17px;font-size:14px;line-height:1.35}
.mission-targets li::marker{color:var(--muted)}
.brief-actions{flex:none;border-top:1px solid var(--line);padding:8px 18px;text-align:right}
.brief-actions .tool{min-height:38px}
#dialog:has(.mission-brief) .close{z-index:1}
@media (orientation:landscape) and (max-height:480px){
  #dialog:has(.mission-brief){width:min(620px,calc(100vw - 24px))}
  .brief-copy{padding:12px 16px 6px}
  .brief-copy h2{font-size:22px}
  .brief-copy h3{margin-top:9px}
  .brief-actions{padding-block:4px}
}

.share-options{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin:12px auto;width:fit-content;max-width:100%}
.share-options img{width:100%;max-width:400px;height:auto;border-radius:8px}

.music-control{position:relative;display:flex;flex:none}
.music-volume{position:absolute;z-index:5;top:100%;right:0;width:190px;padding-top:5px;visibility:hidden}
.music-control[data-volume-focused]:not([data-volume-dismissed]) .music-volume{visibility:visible}
@media(hover:hover){
  .music-control:not([data-volume-dismissed]):hover .music-volume{visibility:visible}
}
.music-volume .mixer-level{
  padding:8px 10px;border:1px solid var(--line);border-radius:8px;
  background:var(--quest-surface,#fcfaf5);color:var(--ink);box-shadow:0 5px 15px #10171140;
}
:is(.music-volume,.audio-mixer) .mixer-level{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;row-gap:2px}
:is(.music-volume,.audio-mixer) .mixer-level label{grid-column:1/-1}
:is(.music-volume,.audio-mixer) .mixer-level input{width:100%;min-height:28px;margin:0}
@media(pointer:coarse){
  .audio-mixer .mixer-channel .setting-row{min-height:44px}
  :is(.music-volume,.audio-mixer) .mixer-level input{min-height:44px}
}
