:root{color-scheme:dark;--bg:#101917;--surface:#182320;--surface-2:#202d28;--ink:#f2efe4;--muted:#a8b3a9;--gold:#d7b778;--line:#344039;--green:#a7c7ad;--radius:12px;font-family:Arial,Helvetica,sans-serif;font-size:16px;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}body{margin:0;min-width:280px}button,input,a{-webkit-tap-highlight-color:transparent}button,a,input{touch-action:manipulation}button{font:inherit;cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:4px}button{transition:background .18s,color .18s,border-color .18s,transform .18s}button:hover:not(:disabled){filter:brightness(1.14)}button:active:not(:disabled){transform:translateY(1px)}button svg,svg.mode-symbol{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button[hidden],[hidden]{display:none!important}.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}.app-shell{max-width:1664px;margin:0 auto;padding:0 48px}.topbar{height:106px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.brand{text-decoration:none;color:var(--ink);font:36px/1.1 Georgia,serif;display:flex;align-items:center;gap:14px;letter-spacing:-1.3px}.brand small{display:block;color:var(--gold);font:12px/2.3 Arial,sans-serif;letter-spacing:3.8px;margin-top:3px}.brand-mark{display:grid;place-items:center;width:48px;height:48px;border:1px solid #776547;transform:rotate(-12deg);border-radius:50%}.brand-mark svg{width:24px;height:24px;stroke:var(--gold);stroke-width:1.3;fill:none}.utility{display:flex;align-items:center;gap:12px}.utility-divider{height:22px;border-left:1px solid var(--line);margin:0 8px}.icon-button{border:0;background:transparent;width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);border-radius:8px}.icon-button:hover{background:var(--surface-2);color:var(--ink)}.quiet-button{background:transparent;border:0;display:flex;align-items:center;gap:10px;font-size:14px;color:var(--muted);padding:10px}.scene-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;padding:35px 0 26px}.eyebrow{font-size:12px;line-height:1.6;letter-spacing:2px;color:var(--gold);margin:0 0 10px}.eyebrow>span:first-child{padding:0 10px;color:#616e61}.eyebrow>span:last-child{color:var(--muted)}h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(29px,2.7vw,42px);font-weight:400;letter-spacing:-.8px;line-height:1.13;margin:0 0 11px}.scene-heading p:not(.eyebrow){font-size:14px;color:var(--muted);line-height:1.55;margin:0}.scene-picker{display:flex;gap:4px;border-bottom:1px solid var(--line);align-self:flex-end;flex-shrink:0}.scene-tab{padding:12px 15px 15px;background:transparent;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;font-size:14px;white-space:nowrap;color:var(--muted)}.scene-tab span{font-size:12px;color:#6f8275;margin-right:5px}.scene-tab.selected{color:var(--gold);border-bottom-color:var(--gold)}.scene-tab.selected span{color:var(--gold)}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 308px;gap:22px;align-items:stretch}.scene-panel{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#0b110e;align-self:start}.scene-bar{height:46px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;background:var(--surface);font-size:13px;color:var(--muted);gap:10px}.scene-bar-label{display:flex;gap:9px;align-items:center}.scene-bar-label svg{width:15px;height:15px;stroke:var(--gold);stroke-width:1.6;fill:none}.scene-bar-detail{font-size:12px;color:var(--muted)}.scene-viewport{position:relative;width:100%;aspect-ratio:3/2;overflow:hidden;touch-action:none;outline-offset:-3px;user-select:none;-webkit-user-select:none;background:#1b251d;isolation:isolate}.scene-viewport.playing{cursor:crosshair}.scene-viewport.zoomed{cursor:grab}.scene-viewport.dragging{cursor:grabbing}.scene-canvas{position:absolute;inset:0;transform-origin:0 0;will-change:transform}.scene-canvas img{display:block;width:100%;height:100%;object-fit:fill;pointer-events:none;transition:filter .4s}.scene-viewport.paused .scene-canvas{filter:blur(20px);opacity:.25}.markers{position:absolute;inset:0;pointer-events:none}.marker{position:absolute;border:2px solid #eee0ad;border-radius:50%;box-shadow:0 0 0 2px #18282090,0 0 18px #edd49b50;pointer-events:none;transform:translate(-50%,-50%);min-width:12px;min-height:12px}.marker.found{background:#1c42213b;border-color:#e4e7b8}.marker .check{position:absolute;right:-8px;top:-9px;background:#1f3d29;color:#e8e4b4;border:1px solid #d9dda2;border-radius:50%;width:18px;height:18px;display:grid;place-items:center;font:12px Arial}.marker.hint{border:3px solid #ffe9a0;box-shadow:0 0 0 9px #ffe9a030,0 0 38px #ffefbd;animation:hint-pulse 1s ease-in-out infinite}.tap-feedback{position:absolute;pointer-events:none;border:2px solid #dbb475;border-radius:50%;width:25px;height:25px;transform:translate(-50%,-50%);animation:tap-out .7s ease-out forwards}.idle-veil{position:absolute;inset:0;background:linear-gradient(0deg,#101913a8,transparent 44%);display:flex;align-items:flex-end;justify-content:center;padding:0 20px 75px;pointer-events:none}.idle-veil>div{display:flex;flex-direction:column;align-items:center;font:italic 22px/1.6 Georgia,serif;text-shadow:0 2px 8px #000}.small-star{font-size:36px;font-style:normal;color:#f2dcb0}.zoom-controls{position:absolute;bottom:17px;right:17px;display:flex;align-items:center;border:1px solid #ffffff32;border-radius:8px;background:#10201bdd;backdrop-filter:blur(12px);height:40px;z-index:3}.zoom-controls button{border:0;background:transparent;padding:0;width:38px;height:38px;font-size:25px;display:grid;place-items:center}.zoom-controls #zoomReset{border-left:1px solid #ffffff26;margin-left:4px}.zoom-controls #zoomReset svg{width:16px;height:16px}.zoom-controls span{font-size:12px;min-width:32px;text-align:center;color:#dedfd3}.image-credit{position:absolute;bottom:28px;left:20px;font-size:12px;letter-spacing:2.3px;text-shadow:0 1px 6px #000;color:#f0e3cd;pointer-events:none}.image-credit>span:first-child{margin:0 9px}.scene-bottom{padding:14px 18px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);gap:12px;background:var(--surface)}.touch-instruction{display:none}.scene-loading{position:absolute;inset:0;background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;z-index:5;color:var(--muted);font-size:14px}.loading-ring{width:32px;height:32px;border:2px solid var(--line);border-top-color:var(--gold);border-radius:50%;animation:spin 1s linear infinite}.search-panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px;display:flex;flex-direction:column}.setup-panel{margin:auto 0}.setup-panel .eyebrow{font-size:12px}h2{font:400 25px/1.22 Georgia,serif;letter-spacing:-.2px;margin:0}.panel-description{font-size:14px;color:var(--muted);line-height:1.65;margin:13px 0 25px}.mode-choice{border:0;padding:0;margin:0 0 22px;min-width:0}.mode-choice legend{font-size:12px;color:var(--muted);padding:0 0 12px}.mode-card{display:flex;align-items:center;gap:12px;border:1px solid var(--line);padding:18px 13px;border-radius:8px;margin-bottom:10px;cursor:pointer;position:relative}.mode-card input{position:absolute;opacity:0}.mode-card:has(input:checked){background:#34382a;border-color:#a39060}.mode-card:has(input:focus-visible){outline:2px solid var(--gold);outline-offset:3px}.mode-symbol{width:21px;color:var(--gold);text-align:center;font-size:27px;flex-shrink:0}.mode-copy{display:flex;flex-direction:column;gap:6px;flex:1}.mode-copy strong{font-size:16px;font-weight:500}.mode-copy small{font-size:12px;color:var(--muted);white-space:nowrap}.radio-display{width:14px;height:14px;border:1px solid #7f8b7e;border-radius:50%;flex-shrink:0}.mode-card:has(input:checked) .radio-display{border-color:var(--gold);box-shadow:inset 0 0 0 3px #34382a;background:var(--gold)}.primary-button{border:1px solid var(--gold);background:var(--gold);color:#1d271e;width:100%;padding:15px 16px;border-radius:7px;display:flex;justify-content:center;align-items:center;gap:18px;font-weight:600;font-size:14px;min-height:48px}.primary-button svg{width:18px;height:18px}.setup-note{font:italic 13px/1.6 Georgia,serif;color:var(--muted);text-align:center;margin:20px 0 0}.active-panel{height:100%;display:flex;flex-direction:column}.status-top{display:flex;justify-content:space-between;align-items:center;margin:-9px -7px 10px 0}.mode-badge{font-size:12px;letter-spacing:1.7px;color:var(--gold)}.round-status{display:flex;justify-content:space-between;gap:10px;align-items:flex-end;margin-bottom:18px}#timerValue{display:block;font:29px/1.1 Georgia,serif;font-variant-numeric:tabular-nums}#timerCaption{font-size:12px;color:var(--muted);display:block;margin-top:7px}.count-status{text-align:right}.count-status strong{font-weight:400;font-size:23px;font-variant-numeric:tabular-nums}.count-status strong span{font-size:15px;color:var(--muted)}.count-status small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.progress-track{height:3px;background:#39483b;border-radius:4px;overflow:hidden;margin-bottom:22px}.progress-track>span{display:block;height:100%;width:0;background:var(--gold);transition:width .4s}.hint-section{margin-top:auto}.secondary-button{border:1px solid #677157;background:#253026;border-radius:7px;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:44px;padding:10px;font-size:13px}.secondary-button svg{color:var(--gold);width:17px;height:17px}.secondary-button>span{margin-left:auto;padding-left:6px;color:var(--gold);font-size:14px}.hint-section p{font-size:12px;line-height:1.6;color:var(--muted);text-align:center;margin:10px 0 0}.footer{display:flex;justify-content:space-between;padding:22px 0 26px;color:#859587;font-size:12px;line-height:1.7;gap:20px}.footer>span:first-child{font:italic 14px Georgia,serif;color:#9eab99}.toast{position:fixed;bottom:max(30px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%,14px);background:#e7d3a6;color:#233322;padding:13px 23px;border-radius:8px;font-size:14px;font-weight:500;box-shadow:0 10px 35px #0005;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:20;max-width:calc(100vw - 28px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.game-dialog{color:var(--ink);background:#1b2922;border:1px solid #65704f;border-radius:15px;padding:36px;width:min(470px,calc(100vw - 32px));box-shadow:0 25px 100px #0009;max-height:calc(100dvh - 40px);overflow:auto}.game-dialog::backdrop{background:#06100ccb;backdrop-filter:blur(9px)}.dialog-symbol{color:var(--gold);font:42px/1 Georgia,serif;text-align:center;margin:0 0 20px}.game-dialog h2{font-size:31px;text-align:center;line-height:1.2}.game-dialog p{font-size:15px;color:#b7c2b4;line-height:1.7;text-align:center;margin:17px 0 24px}.game-dialog .primary-button{margin-top:14px}.game-dialog .secondary-button{margin-top:11px;background:transparent}.game-dialog .text-button{border:0;background:none;font-size:13px;text-decoration:underline;display:block;margin:20px auto 0;color:var(--muted);padding:9px}.game-dialog ol{padding-left:22px;color:#c5cfc0;font-size:14px;line-height:1.8}.game-dialog li{padding:6px 0}.game-dialog .help-note{font-size:12px;line-height:1.7}.dialog-stat{display:flex;justify-content:center;gap:25px;margin:24px 0}.dialog-stat strong{display:block;text-align:center;color:var(--gold);font:28px Georgia,serif}.dialog-stat span{display:block;text-align:center;font-size:12px;color:var(--muted);margin-top:8px}.keyboard-cursor{position:absolute;width:24px;height:24px;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 2px #000;transform:translate(-50%,-50%);pointer-events:none;z-index:2}.danger #timerValue{color:#f3af85}.noscript{padding:30px;text-align:center;background:#462c20;color:white;position:fixed;inset:0;z-index:99;font-size:24px}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes tap-out{to{opacity:0;width:55px;height:55px}}@keyframes hint-pulse{50%{box-shadow:0 0 0 15px #ffe9a012,0 0 38px #ffefbd80}}
@media(min-width:1500px){.game-layout{grid-template-columns:minmax(0,1fr) 330px;gap:26px}.search-panel{padding:27px}}
@media(max-width:1200px){.app-shell{padding:0 28px}.topbar{height:91px}.scene-heading{align-items:start}.scene-picker{flex-wrap:wrap;max-width:365px}.scene-tab{padding-left:10px;padding-right:10px}.game-layout{grid-template-columns:minmax(0,1fr) 278px;gap:16px}.search-panel{padding:19px}.mode-copy small{font-size:12px}.scene-viewport{aspect-ratio:3/2}.image-credit{font-size:12px;letter-spacing:1.4px;left:15px}.image-credit>span:first-child{margin:0 4px}.scene-bottom{font-size:12px;padding:12px}.scene-bar{padding:0 13px}}
@media(max-width:900px){.scene-heading{flex-direction:column;gap:19px;padding-top:27px}.scene-picker{max-width:none;align-self:stretch;justify-content:flex-start;gap:16px}.scene-tab{padding:10px 16px 13px}.game-layout{grid-template-columns:minmax(0,1fr)}.search-panel{padding:22px}.setup-panel{display:grid;grid-template-columns:1fr 1.3fr;column-gap:25px;align-items:start}.setup-panel .eyebrow{grid-column:1;margin-top:4px}.setup-panel h2{grid-column:1;grid-row:2}.panel-description{grid-column:1;grid-row:3;margin-bottom:0}.mode-choice{grid-column:2;grid-row:1/4;margin-bottom:10px}.primary-button{grid-column:2}.setup-note{grid-column:1;grid-row:4;text-align:left}.active-panel{display:block}.round-status{margin-bottom:17px}.hint-section{max-width:360px;margin:0 auto}.scene-bar{height:43px}.image-credit{font-size:12px;letter-spacing:2px}.footer{font-size:12px}.status-top{margin-top:-5px}.mode-card{padding:14px}.mode-copy small{font-size:12px}}
@media(max-width:540px){.app-shell{padding:0 15px;padding-bottom:env(safe-area-inset-bottom)}.topbar{height:83px;gap:8px}.brand{font-size:27px;gap:9px;letter-spacing:-1px}.brand small{font-size:12px;letter-spacing:2.6px}.brand-mark{width:35px;height:35px}.brand-mark svg{width:19px;height:19px}.utility{gap:1px}.utility-divider{display:none}.icon-button{width:35px;height:40px}.quiet-button{padding:8px}.install-button span{display:none}.install-button svg{width:18px;height:18px}.utility .icon-button svg{width:18px;height:18px}.scene-heading{padding:23px 0 18px;gap:17px}h1{font-size:31px;line-height:1.12}.eyebrow{font-size:12px;letter-spacing:1.7px}.eyebrow>span:first-child{padding:0 6px}.scene-heading p:not(.eyebrow){font-size:13px;max-width:340px}.scene-picker{gap:0;justify-content:space-between}.scene-tab{font-size:12px;padding:9px 7px 12px}.scene-tab span{font-size:12px;margin-right:4px}.game-layout{gap:14px}.scene-panel{border-radius:9px}.scene-bar{font-size:12px;height:39px;padding:0 12px}.scene-bar-detail{font-size:12px}.scene-bar-label svg{width:13px;height:13px}.scene-viewport{aspect-ratio:3/2}.scene-bottom{font-size:12px;padding:11px 10px;gap:7px}.image-credit{bottom:14px;left:12px;font-size:7px;letter-spacing:1.4px}.image-credit>span{display:none}.zoom-controls{bottom:9px;right:9px;height:36px}.zoom-controls button{width:32px;height:34px;font-size:22px}.zoom-controls span{font-size:12px;min-width:27px}.zoom-controls #zoomReset{margin-left:0}.idle-veil{padding-bottom:58px}.idle-veil>div{font-size:17px}.small-star{font-size:27px}.search-panel{padding:21px;border-radius:9px}.setup-panel{display:block}.setup-panel h2{font-size:25px}.panel-description{margin:9px 0 18px;font-size:14px}.mode-choice{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 14px}.mode-choice legend{font-size:12px;padding-bottom:9px}.mode-card{width:calc(50% - 5px);padding:12px 10px;gap:8px;margin:0;flex-wrap:wrap;align-content:flex-start}.mode-symbol{font-size:22px;width:18px}svg.mode-symbol{width:18px;height:18px}.mode-copy{display:contents}.mode-copy strong{flex:1;font-size:15px}.mode-copy small{order:4;white-space:normal;width:100%;font-size:12px;line-height:1.45}.radio-display{width:12px;height:12px}.setup-note{text-align:center;font-size:12px;margin:15px 0 0}.setup-panel .eyebrow{font-size:12px}.footer{flex-direction:column;align-items:center;gap:8px;padding-top:23px}.footer>span:first-child{font-size:13px}.scene-viewport.playing{min-height:0}.toast{font-size:13px;padding:12px 16px;bottom:22px}.game-dialog{padding:27px}.game-dialog h2{font-size:28px}.game-dialog p{font-size:14px}.game-dialog .help-note{font-size:12px}}
@media(max-width:350px){.brand-mark{display:none}.utility .icon-button{width:30px}.app-shell{padding:0 11px}.search-panel{padding:17px}.scene-tab{padding-left:3px;padding-right:3px}.scene-bar-detail{display:none}}
@media(pointer:coarse){.touch-instruction{display:inline}.mouse-instruction{display:none}.zoom-controls button{min-width:40px;min-height:40px}.zoom-controls{min-height:42px}.icon-button{min-height:44px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.mode-choice legend,.quiet-button,.scene-tab,.secondary-button{font-size:14px}.scene-bar,.scene-heading p:not(.eyebrow),.panel-description{font-size:14px}.mode-copy small{font-size:12px;line-height:1.5;white-space:normal}
@media(min-width:1000px){.app-shell{max-width:min(1664px,calc((100dvh - 320px)*1.5 + 426px));min-width:960px}}
@media(max-width:540px){.brand small{font-size:10px}.scene-heading .eyebrow{letter-spacing:1px}.eyebrow>span:first-child{padding:0 2px}.image-credit{font-size:10px}.scene-bar-detail{font-size:12px}.scene-bar-label{gap:5px}.scene-tab{font-size:13px}.scene-bottom{flex-wrap:wrap}.mode-card{column-gap:5px}.mode-copy strong{font-size:15px}}

/* Ten-room selector and photographic object layers. */
.room-picker{min-width:280px;max-width:350px;width:35%;flex-shrink:0}.room-picker label{display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--muted);font-size:14px;margin-bottom:10px}.room-picker label span{font-size:12px;color:var(--gold)}.room-picker select{width:100%;min-height:48px;max-width:100%;background:var(--surface);border:1px solid #65704f;border-radius:8px;color:var(--ink);padding:12px;font:14px Arial,sans-serif;cursor:pointer}.room-picker select:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.moving-objects{position:absolute;inset:0;pointer-events:none}.scene-canvas img.moving-object{position:absolute;display:block;object-fit:contain;pointer-events:none;user-select:none}.setup-note{max-width:290px;margin-left:auto;margin-right:auto}
@media(max-width:900px){.room-picker{width:100%;max-width:none;min-width:0}.room-picker select{font-size:16px}.scene-heading{gap:20px}.setup-note{max-width:none}}

/* Up to three names stay above the photograph while the scene is searched. */
.scene-targets{padding:0 14px 14px;background:var(--surface)}
.target-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.target-list li{display:flex;align-items:center;gap:9px;min-width:0;min-height:48px;padding:10px 12px;border:1px solid #60664d;border-radius:7px;background:#263127;color:var(--ink);font-size:16px;line-height:1.4;overflow-wrap:anywhere}
.target-dot{width:10px;height:10px;border:1px solid var(--gold);border-radius:50%;flex-shrink:0}
.search-guidance{font-size:14px;line-height:1.6;color:var(--muted);margin:0 0 24px}
#scenePanel{scroll-margin-top:12px}
@media(max-width:540px){.scene-targets{padding:0 10px 10px}.target-list{gap:6px}.target-list li{font-size:14px;padding:8px 6px;min-height:56px;justify-content:center;text-align:center}.target-dot{display:none}}
