@font-face{font-family:Nunito;src:url('./assets/brand/nunito-sans.ttf') format('truetype');font-style:normal;font-weight:200 1000;font-display:swap}
:root{color-scheme:dark;--cream:#fff4da;--paper:#fbf1dd;--seal:#4c3028;--muted:#877367;--collar:#c84a32;--collar-deep:#a83625;--brass:#dbb365;--forest:#1b332d;--line:#dfceb5;--font:Nunito,'Thonburi','Leelawadee UI',sans-serif}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#182a27;font-family:var(--font);color:var(--cream)}
button,a{-webkit-touch-callout:none}button{font:inherit;cursor:pointer}button,canvas{touch-action:none}button:disabled{cursor:wait}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid var(--brass);outline-offset:5px}button svg,.intro-footnote svg,.journal-footer svg,.help-list svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
button{border:0}button:active{transform:scale(.96)}[hidden]{display:none!important}.icon-library{position:absolute;width:0;height:0;overflow:hidden}#game{position:relative;width:100%;height:100%;height:100dvh;isolation:isolate}#game-canvas{position:absolute;inset:0;width:100%;height:100%;outline-offset:-4px;z-index:-2}.scene-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(12,24,21,.42),transparent 24%,transparent 65%,rgba(12,24,21,.25));z-index:-1}.is-intro .scene-shade{background:linear-gradient(90deg,rgba(13,30,26,.5),transparent 70%),linear-gradient(0deg,rgba(13,30,26,.38),transparent 70%)}
.game-header{position:absolute;inset:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;padding:calc(18px + env(safe-area-inset-top)) 19px 0;pointer-events:none;gap:12px}.brand-lockup{display:flex;flex-direction:column;align-items:center;width:130px;filter:drop-shadow(0 2px 9px #15282288);transition:width .4s}.wordmark{width:100%;height:auto}.brand-subtitle{font-size:9px;letter-spacing:.15em;line-height:1;font-weight:800;margin-top:5px}.top-controls{display:flex;gap:7px;pointer-events:auto}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:rgba(249,238,214,.12);border:1px solid rgba(255,244,218,.24);color:var(--cream);backdrop-filter:blur(12px);transition:background .2s,transform .2s}.icon-button:hover{background:rgba(249,238,214,.24)}.icon-button svg{width:21px;height:21px}.language-button{font-size:12px;letter-spacing:.03em;font-weight:900}.is-intro .brand-lockup{width:150px}.intro-sheet{position:absolute;left:20px;right:20px;bottom:calc(22px + env(safe-area-inset-bottom));max-width:365px;padding:25px 25px 18px;background:var(--paper);color:var(--seal);border-radius:7px 34px 7px 7px;box-shadow:0 14px 80px #0b1a2422}.eyebrow{display:flex;align-items:center;gap:8px;font-size:9px;font-weight:900;letter-spacing:.17em;line-height:1.4}.chapter-dot{height:6px;width:6px;border-radius:50%;background:var(--collar);flex-shrink:0}.intro-sheet h1{font-weight:1000;font-size:36px;line-height:1.07;letter-spacing:-.05em;margin:17px 0 14px}.intro-description{font-size:13px;font-weight:550;line-height:1.65;margin:0 0 22px;max-width:285px;color:#72594b}.primary-button{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:57px;padding:13px 18px;color:var(--cream);border-radius:18px 18px 18px 6px;background:var(--collar);font-size:14px;font-weight:850;transition:background .2s,transform .2s}.primary-button:hover{background:var(--collar-deep)}.primary-button:disabled{background:#d8b9a3;color:#735b4b}.primary-button .button-arrow{margin-left:auto;width:20px}.primary-button>span{flex:1;text-align:left}.intro-footnote{display:flex;align-items:center;justify-content:center;gap:7px;font-size:10px;margin-top:14px;color:#78624f;font-weight:650}.intro-footnote svg{width:13px;height:13px}.prototype-note{text-align:center;font-size:8px;letter-spacing:.08em;margin:11px 0 0;color:#968370}
.playing-ui{position:absolute;inset:0;pointer-events:none}.playing-ui button,.joystick{pointer-events:auto}.chapter-status{position:absolute;top:calc(119px + env(safe-area-inset-top));left:20px;max-width:calc(100% - 40px);text-shadow:0 2px 10px #142321}.chapter-status .eyebrow{font-size:8px;color:#e0c995}#objective{font-size:12px;line-height:1.5;font-weight:700;margin:7px 0;max-width:260px}.exploration-controls{display:flex;align-items:center;gap:8px;position:absolute;right:19px;top:calc(184px + env(safe-area-inset-top))}.progress-button{display:flex;align-items:center;gap:8px;min-height:48px;padding:7px 12px;color:var(--seal);background:var(--cream);border-radius:17px 17px 5px 17px;box-shadow:0 5px 28px #11291c30}.progress-button svg{width:19px;height:19px}.progress-button span{display:flex;flex-direction:column;align-items:flex-start}.progress-button b{font-size:13px;font-weight:900;letter-spacing:.05em}.progress-button small{font-size:8px;font-weight:700}.map-button{width:48px}.map-button span,.map-button kbd{display:none}.danger-banner{position:absolute;top:calc(258px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 40px);padding:11px 17px;background:#893824f0;border:1px solid #ebac77;border-radius:30px;color:#fff2d7;display:flex;align-items:center;gap:9px;text-align:center;font-size:12px;font-weight:800;box-shadow:0 5px 30px #10231c55}.danger-banner[data-level="alert"]{background:#625435e8}.danger-dot{width:6px;height:6px;border-radius:50%;background:#f7d18b;flex-shrink:0}.danger-banner[data-level="chase"] .danger-dot{animation:warning 1s ease-in-out infinite}.desktop-hints{display:none;position:absolute;left:29px;bottom:31px;gap:20px;align-items:center;font-size:10px;font-weight:650;color:#eee3c5ba}.desktop-hints>span{display:flex;align-items:center;gap:7px}kbd{display:inline-flex;align-items:center;justify-content:center;font-family:var(--font);font-weight:750;font-size:9px;letter-spacing:.06em;border:1px solid currentColor;border-radius:5px;padding:4px 6px;opacity:.7}.camera-hint{padding-left:5px;border-left:1px solid #fff4da33}.joystick{position:absolute;bottom:calc(48px + env(safe-area-inset-bottom));left:24px;width:116px;height:116px;border-radius:50%;background:#fff4da08;border:1px solid #fff4da39;touch-action:none;user-select:none;display:grid;place-items:center}.joystick-ring{position:absolute;inset:10px;border:1px solid #fff4da14;border-radius:50%;pointer-events:none}#joystick-knob{display:grid;place-items:center;width:60px;height:60px;border-radius:23px;background:#fff4daeb;color:var(--seal);box-shadow:0 5px 13px #112a2828;border:1px solid #fff7e6;pointer-events:none}#joystick-knob svg{width:30px;height:30px;fill:currentColor;stroke:none;transform:rotate(-9deg)}.control-caption{position:absolute;top:calc(100% + 10px);font-size:10px;font-weight:800;letter-spacing:.04em;color:#fff4daaa;pointer-events:none}.action-controls{position:absolute;bottom:calc(50px + env(safe-area-inset-bottom));right:21px;display:flex;align-items:flex-end;gap:14px}.action-button{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f8edda15;border:1px solid #fff4da44;color:var(--cream);touch-action:none;user-select:none;backdrop-filter:blur(5px)}.action-button span{font-size:8px;font-weight:750;margin-top:5px}.meow-button{width:51px;height:57px;border-radius:20px;margin-bottom:3px}.meow-button svg{width:23px;height:23px}.sprint-button{position:relative;width:78px;height:91px;border-radius:38px 38px 26px 26px;background:#fff4daee;color:var(--seal);padding-bottom:6px;border:1px solid #fff7e6}.sprint-button:active,.sprint-button.is-active{background:var(--brass)}.sprint-button svg{width:30px;height:30px;stroke-width:1.6}.sprint-button .stamina-track{position:absolute;bottom:9px;left:22px;right:22px;height:3px;overflow:hidden;border-radius:4px;background:#57453421}.stamina-track #stamina-fill{display:block;position:absolute;inset:0;width:100%;margin:0;border-radius:inherit;background:var(--collar);transition:width .1s linear}.interact-button{position:absolute;left:max(var(--hud-edge),env(safe-area-inset-left));top:calc(var(--hud-notice-top) + var(--bearing-row,0px) + env(safe-area-inset-top));display:flex;align-items:center;gap:8px;width:max-content;max-width:min(260px,calc(100% - var(--hud-edge)*2));min-height:44px;padding:7px 11px;background:#17322be8;border:1px solid #fff4da38;border-radius:13px;color:var(--cream);text-align:left;pointer-events:auto;backdrop-filter:blur(8px)}.interact-button:active{transform:scale(.97)}.interact-icon{display:grid;place-items:center;flex-shrink:0;width:22px;height:22px;color:var(--brass)}.interact-icon svg{width:20px;height:20px}.interact-button>span:nth-child(2){min-width:0}.interact-button small{display:none}.interact-button b{display:block;font-size:11px;font-weight:750;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.interact-button kbd{display:none}.has-context:not(.has-danger) .toast{top:calc(var(--hud-notice-top) + var(--bearing-row,0px) + 52px + env(safe-area-inset-top))}.has-danger .interact-button{visibility:hidden}.toast{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(300px + env(safe-area-inset-bottom));max-width:calc(100% - 40px);width:max-content;line-height:1.5;padding:12px 19px;background:#fcf0dcee;color:var(--seal);border:1px solid #f8eddb;box-shadow:0 7px 30px #12271a25;border-radius:20px;font-size:12px;font-weight:750;text-align:center;pointer-events:none;animation:toast-in .2s ease-out}
dialog{color-scheme:light;border:1px solid #f9f0dc77;background:var(--paper);color:var(--seal);border-radius:9px 31px 9px 9px;width:calc(100% - 28px);max-width:540px;max-height:calc(100dvh - 40px);margin:auto;padding:23px;box-shadow:0 20px 100px #05161480;overscroll-behavior:contain;scrollbar-width:thin}dialog::backdrop{background:#0a211cd1;backdrop-filter:blur(9px)}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:20px}.dialog-head .eyebrow{color:#9a7254;font-size:8px;line-height:1.8}.dialog-head h2{font-weight:950;font-size:26px;letter-spacing:-.05em;line-height:1.1;margin:8px 0 0}.dialog-head .icon-button{width:48px;height:48px;flex-shrink:0;background:#e6d7bc5e;border:1px solid #deceb65c;color:var(--seal)}.map-dialog{max-width:680px}.map-frame{position:relative;overflow:hidden;border-radius:18px;background:#e8dfc7;border:1px solid #d9cdb5}.map-frame canvas{width:100%;height:auto;display:block}.map-north{position:absolute;top:15px;right:17px;color:#627561;font-weight:900;font-size:11px}.map-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:17px;font-size:9px;font-weight:750;color:#7f6b56}.map-legend>span{display:flex;align-items:center;gap:6px}.map-legend i{width:8px;height:8px;border-radius:50%;display:inline-block}.legend-meese{background:var(--collar)}.legend-found{background:#3b6856}.legend-new{background:#e7d1a1;border:1px solid #a08456}.map-note{text-align:center;font-size:11px;font-weight:750;margin:16px 0 6px}.map-credit{font-size:8px;line-height:1.6;text-align:center;color:#857f69}.map-credit a{color:inherit}.empty-state{font-size:15px;line-height:1.75;padding:18px 10px 30px;color:#8c735f}.journal-entries{display:flex;flex-direction:column;gap:0}.journal-entry{padding:18px 0;border-bottom:1px solid var(--line)}.journal-entry .entry-number{color:#b2956e;font-size:9px;font-weight:850;letter-spacing:.1em}.journal-entry h3{font-size:19px;letter-spacing:-.03em;margin:5px 0 9px}.journal-entry p{font-size:13px;line-height:1.75;color:#786252;margin:0 0 8px}.source-link{color:#9a5439;font-weight:750;font-size:11px;text-decoration-thickness:1px;text-underline-offset:4px}.journal-footer{display:flex;align-items:center;gap:12px;padding-top:14px;color:#957653}.journal-footer svg{width:20px}.journal-footer p{font-size:11px;line-height:1.6}.help-list{display:flex;flex-direction:column;gap:17px;margin:24px 0}.help-list>div{display:flex;align-items:flex-start;gap:17px}.help-list svg{width:24px;height:24px;color:#b08352;margin-top:4px}.help-list p{display:flex;flex-direction:column;gap:5px;font-size:13px;line-height:1.65;margin:0;color:#7d6653}.help-list b{font-size:15px;color:var(--seal)}.text-button{display:block;background:transparent;color:#a26045;font-size:12px;text-decoration:underline;text-underline-offset:4px;min-height:48px;margin:0 auto}.icon-button,.progress-button,.action-button,.interact-button,.primary-button{-webkit-user-select:none;user-select:none}
@media(min-width:600px){.game-header{padding:30px 32px 0}.brand-lockup{width:150px}.is-intro .brand-lockup{width:190px}.top-controls{gap:10px}.intro-sheet{left:32px;right:auto;bottom:32px;width:365px;padding:31px 29px 23px}.intro-sheet h1{font-size:42px}.intro-description{font-size:14px}.eyebrow{font-size:10px}.chapter-status{left:32px;top:143px}.chapter-status .eyebrow{font-size:9px}#objective{font-size:13px;max-width:350px}.exploration-controls{top:calc(95px + env(safe-area-inset-top));right:32px}.map-button{width:auto;border-radius:24px;padding:0 16px;gap:10px}.map-button span{display:inline;font-size:12px;font-weight:750}.progress-button{padding:9px 15px;gap:10px;min-height:54px}.progress-button b{font-size:14px}.progress-button small{font-size:9px}.danger-banner{top:190px}.toast{bottom:230px}.joystick{left:34px}.action-controls{right:34px}.dialog-head h2{font-size:32px}dialog{padding:30px}}
@media(min-width:900px){.game-header{padding:31px 38px 0}.brand-lockup{width:148px}.is-intro .brand-lockup{width:215px}.brand-subtitle{font-size:10px;letter-spacing:.19em}.intro-sheet{left:38px;bottom:40px;width:382px;max-width:382px;padding:31px 31px 24px}.intro-sheet h1{font-size:46px;line-height:1.02;margin-top:19px}.intro-description{max-width:300px;margin-bottom:24px;font-size:14px}.intro-footnote{font-size:11px}.prototype-note{font-size:9px}.chapter-status{left:38px;top:146px}.exploration-controls{top:calc(98px + env(safe-area-inset-top));right:38px}.map-button kbd{display:inline-flex}.danger-banner{top:46px;font-size:13px}.interact-button kbd{display:inline-flex;margin-left:4px}.toast{bottom:181px}.desktop-hints{display:flex;left:38px}.joystick{display:none}.action-controls{bottom:30px;right:38px;gap:10px}.sprint-button{display:none}.meow-button{width:48px;height:48px;border-radius:50%;margin:0}.meow-button span{display:none}.is-intro .game-header{transition:none}}
@media(pointer:coarse) and (min-width:900px){.joystick{display:grid}.sprint-button{display:flex}.action-controls{bottom:50px}.meow-button{width:51px;height:57px;border-radius:20px}.meow-button span{display:block}.desktop-hints{display:none}.interact-button kbd{display:none}}
@media(max-height:600px) and (min-width:600px){.intro-sheet{padding:20px 25px 17px;bottom:22px;left:28px;width:340px}.intro-sheet h1{font-size:34px;margin:13px 0 10px}.intro-description{font-size:12px;margin-bottom:14px}.primary-button{min-height:49px}.intro-footnote{margin-top:10px}.prototype-note{margin-top:8px}.is-intro .brand-lockup{width:130px}.chapter-status{top:112px}.exploration-controls{top:90px}.danger-banner{top:144px}.toast{bottom:140px}.desktop-hints{display:none}.joystick{bottom:25px;width:95px;height:95px}.action-controls{bottom:25px}.control-caption{top:calc(100% + 4px)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
@keyframes warning{50%{opacity:.3}}
@keyframes toast-in{from{opacity:0;translate:0 5px}to{opacity:1;translate:0 0}}
.map-spots{display:grid;grid-template-columns:1fr 1fr;gap:9px 12px;padding:15px 0 0;margin:15px 0 0;border-top:1px solid var(--line);list-style:none}.map-spots li{display:flex;align-items:center;gap:7px;font-size:10px;line-height:1.3;font-weight:700;color:#806b55}.map-spots li>span:first-child{display:grid;place-items:center;flex-shrink:0;width:22px;height:22px;background:#e8d7b3;border-radius:50%;font-size:10px}.map-spots li.is-found>span:first-child{color:var(--cream);background:#386452}.map-spots li.is-found{color:#386452}
@media(min-width:600px){.map-spots li{font-size:12px}.map-spots{gap:11px 16px}}

/* Keep play information along the edge and leave the camera's centre unobstructed. */
#game{--hud-edge:16px;--hud-row-top:84px;--hud-notice-top:140px;--tool-width:138px}
body:not(.is-intro) .game-header{padding:calc(16px + env(safe-area-inset-top)) max(var(--hud-edge),env(safe-area-inset-right)) 0 max(var(--hud-edge),env(safe-area-inset-left))}
body:not(.is-intro) .brand-lockup{width:118px;flex-shrink:0}
body:not(.is-intro) .top-controls{gap:6px}
body:not(.is-intro) .top-controls .icon-button{width:44px;height:44px}
.hud-bar{position:absolute;top:calc(var(--hud-row-top) + env(safe-area-inset-top));left:max(var(--hud-edge),env(safe-area-inset-left));right:max(var(--hud-edge),env(safe-area-inset-right));display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:3px 12px}
.hud-bar .chapter-status{position:static;min-width:0;max-width:330px;padding-top:3px}
.hud-bar .chapter-status .eyebrow{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:8px;letter-spacing:.09em;line-height:1.4}
.hud-bar #objective{font-size:11px;line-height:1.45;margin:3px 0 0;max-width:none;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-wrap:pretty}
.hud-bar .exploration-controls{display:flex;flex-direction:column;align-items:stretch;gap:8px;width:var(--tool-width);min-width:0;position:static}
.tool-shortcuts{display:flex;align-items:center;gap:6px}.tool-shortcuts .progress-button{flex:1}
.hud-bar .progress-button{height:44px;min-height:44px;min-width:70px;padding:0 10px;gap:6px;border:1px solid #fff4da38;border-radius:15px;background:#17322ab8;color:var(--cream);box-shadow:none;backdrop-filter:blur(8px)}
.hud-bar .progress-button svg{width:18px;height:18px}
.hud-bar .progress-button b{font-size:12px;letter-spacing:0;white-space:nowrap;font-variant-numeric:tabular-nums}
.hud-bar .map-button{width:44px;height:44px;min-width:44px;padding:0;border-radius:15px;background:#17322a91}
.hud-bar .map-button svg{width:19px;height:19px}
.hud-bar .map-button span,.hud-bar .map-button kbd{display:none}
.hud-bar .map-tools .map-button{flex:1;justify-content:flex-start;gap:7px;padding:0 10px;border:0;border-radius:0;background:none}
.hud-bar .map-tools .map-button span{display:inline;font-size:11px;font-weight:750}
/* Objectives and bearing share the left column; map tools form one group on the right. */
.hud-bar .bearing{display:flex;align-items:center;gap:6px;min-width:0;margin:6px 0 0;font-size:11px;line-height:1.45;font-weight:750;white-space:nowrap;text-shadow:0 2px 10px #142321}
.bearing-chevron{width:17px;height:17px;flex-shrink:0;fill:var(--brass);stroke:#142321;stroke-width:1.2;stroke-linejoin:round;paint-order:stroke}
#bearing-text{min-width:0;overflow:hidden;text-overflow:ellipsis}
/* The chip and the toast sit under the bearing line only while it shows (hidden at the next place and in Part 2). */
.has-bearing{--bearing-row:22px}
#objective .keep{white-space:nowrap}
.toast,.danger-banner{top:calc(var(--hud-notice-top) + var(--bearing-row,0px) + env(safe-area-inset-top));bottom:auto;left:max(var(--hud-edge),env(safe-area-inset-left));right:auto;transform:none;width:max-content;max-width:min(280px,calc(100% - var(--hud-edge)*2));margin:0;padding:8px 11px;border-radius:4px 12px 12px 4px;font-size:11px;line-height:1.45;text-align:left;box-shadow:none}
.toast{color:var(--cream);background:#17322be8;border:1px solid #fff4da24;border-left:2px solid var(--brass)}
.danger-banner{font-weight:750;gap:7px}
.has-danger .toast{visibility:hidden}
@media(min-width:600px){#game{--hud-edge:32px;--hud-row-top:100px;--hud-notice-top:156px}body:not(.is-intro) .game-header{padding-top:calc(24px + env(safe-area-inset-top))}body:not(.is-intro) .brand-lockup{width:138px}.hud-bar #objective{font-size:12px}.hud-bar .bearing{font-size:12px}.bearing-chevron{width:18px;height:18px}.hud-bar .map-button{width:auto;gap:7px;padding:0 12px}.hud-bar .map-button span{display:inline;font-size:11px}.toast,.danger-banner{max-width:320px}}
@media(min-width:900px){#game{--hud-edge:38px}.hud-bar .chapter-status{max-width:410px}.hud-bar .chapter-status .eyebrow{font-size:9px}.hud-bar .progress-button{min-width:76px}.toast,.danger-banner{max-width:350px}}
@media(max-width:359px){body:not(.is-intro) .brand-lockup{width:104px}.hud-bar{gap:8px}.hud-bar .exploration-controls{gap:4px}.hud-bar .progress-button{min-width:66px;padding:0 8px}.hud-bar #objective{font-size:10px}}
@media(max-height:600px) and (min-width:600px){#game{--hud-edge:20px;--hud-row-top:65px;--hud-notice-top:119px}body:not(.is-intro) .game-header{padding-top:calc(8px + env(safe-area-inset-top))}body:not(.is-intro) .brand-lockup{width:96px}body:not(.is-intro) .brand-subtitle{font-size:8px}.hud-bar .chapter-status{padding-top:0}.hud-bar #objective{font-size:11px}.toast,.danger-banner{max-width:270px;padding:6px 9px;font-size:10px}}

/* Photo controls remain separate from the rendered postcard. */
.is-photo-mode .game-header,.is-photo-mode #playing-ui,.is-photo-mode #toast,.is-photo-mode .scene-shade{visibility:hidden;pointer-events:none}
.photo-mode{position:absolute;inset:0;z-index:10;pointer-events:none;color:var(--cream)}
.photo-mode button{pointer-events:auto;min-height:48px}
.photo-topbar{position:absolute;top:calc(18px + env(safe-area-inset-top));left:20px;right:20px;display:flex;align-items:center;justify-content:space-between;gap:15px;text-shadow:0 2px 12px #0b201f}
.photo-topbar .eyebrow{font-size:8px;color:var(--brass)}.photo-topbar h2{font-size:22px;letter-spacing:-.04em;margin:5px 0 0;line-height:1.15;font-weight:900}.photo-topbar .icon-button{flex-shrink:0;background:#18302ddb}
.photo-framing{position:absolute;left:18px;right:18px;bottom:calc(36px + env(safe-area-inset-bottom));text-align:center}.photo-framing>p{font-size:12px;margin:12px auto 18px;line-height:1.5;max-width:430px;text-shadow:0 2px 8px #0d211d}.photo-presets{display:flex;justify-content:center;gap:8px}.photo-presets button{border:1px solid #e3ce9f60;border-radius:24px;background:#18302ddb;color:var(--cream);font-size:12px;font-weight:800;padding:8px 18px}.photo-presets button[aria-pressed="true"]{background:var(--cream);color:var(--seal)}
.photo-shutter-row{display:flex;justify-content:center;align-items:center;gap:20px}.photo-shutter-row .icon-button{font-size:26px;background:#18302ddb}.photo-shutter{display:flex;align-items:center;gap:11px;background:var(--cream);color:var(--seal);border:3px solid #dabb7d;outline:2px solid #fff4da;outline-offset:4px;border-radius:32px;padding:15px 22px;min-height:62px;font-weight:900;font-size:14px;box-shadow:0 5px 28px #10291c55}.photo-framing .photo-keyboard{display:none;font-size:10px;margin:14px 0 0;max-width:none}.photo-recent{margin-top:18px;background:#18302ddb;color:var(--cream);border:1px solid #e3ce9f40;border-radius:24px;padding:5px 16px;font-size:12px}.photo-recent b{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:50%;margin-left:9px;background:var(--cream);color:var(--seal)}
.photo-mode.has-photo{background:#102623ee;backdrop-filter:blur(6px)}
.photo-result{position:absolute;top:calc(98px + env(safe-area-inset-top));bottom:calc(60px + env(safe-area-inset-bottom));left:50%;width:min(1060px,calc(100% - 40px));transform:translateX(-50%);display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,370px);gap:24px;padding:24px;border-radius:22px;background:#fff4da;color:var(--seal);pointer-events:auto;overflow:auto;overscroll-behavior:contain;touch-action:pan-y}
.photo-preview-well{position:relative;display:flex;justify-content:center;align-items:center;min-height:0;border-radius:12px;background:#e3d9c340;padding:12px}.photo-preview-well>img{display:block;max-width:100%;width:auto;height:auto;max-height:100%;object-fit:contain;box-shadow:0 8px 24px #182b2029}.photo-developing{position:absolute;inset:auto 12px 12px;background:#17372fec;border-radius:8px;padding:12px;font-size:12px;text-align:center;color:var(--cream)}
.photo-options{display:flex;flex-direction:column;justify-content:center;gap:18px;min-width:0}.photo-options fieldset{min-width:0;border:0;margin:0;padding:0}.photo-options legend{font-size:13px;font-weight:900;margin-bottom:9px}.photo-choice-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.photo-choice{position:relative;display:block;cursor:pointer;touch-action:pan-y}.photo-choice input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}.photo-choice>span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:58px;border:1.5px solid #6e533030;border-radius:12px;background:#fffaf0;padding:10px 4px;transition:border-color .12s,background .12s}.photo-choice b{font-size:11px;line-height:1.2;text-align:center}.photo-choice small{font-size:9px;opacity:.75;white-space:nowrap}.photo-choice input:checked+span{border-color:var(--collar);background:#f6e4d4;box-shadow:inset 0 0 0 .5px var(--collar)}.photo-choice input:focus-visible+span{outline:3px solid #456f7a;outline-offset:3px}.photo-choice input:disabled+span{opacity:.5;cursor:wait}
.photo-format-icon{display:block;height:22px;width:22px;border:1.5px solid currentColor;border-radius:3px;margin:2px 0}.photo-format-icon.is-story{height:26px;width:15px;margin:0}.photo-format-icon.is-landscape{height:16px;width:28px;margin:5px 0}.photo-swatch{width:26px;height:26px;border-radius:50%;border:1px solid #392b2425}.photo-swatch.is-cream{background:linear-gradient(145deg,#fff4da 60%,#1b332d 60%)}.photo-swatch.is-collar{background:linear-gradient(145deg,#f8e6da 60%,#6e352c 60%)}.photo-swatch.is-moon{background:linear-gradient(145deg,#e8efed 60%,#203e49 60%)}
.photo-roll-options{display:flex;gap:8px;overflow-x:auto;padding:3px;scrollbar-width:thin}.photo-shot{flex:0 0 52px}.photo-shot>span{padding:3px;min-height:58px;border-radius:9px}.photo-shot img{display:block;width:44px;height:50px;object-fit:cover;border-radius:5px}.photo-session-note{font-size:11px;line-height:1.5;margin:0;color:#755e50}.photo-actions{display:flex;gap:10px;width:100%;flex-shrink:0}.photo-actions .primary-button{font-size:13px;min-height:48px;border-radius:13px;justify-content:center;padding:12px 10px}.photo-share{background:#214039;color:var(--cream)}.photo-share:hover{background:#2c544a}.photo-retake{background:transparent;color:var(--seal);font-weight:800;text-decoration:underline;text-underline-offset:5px;padding:0 20px;font-size:12px;align-self:center;min-height:36px!important}
.photo-status{position:absolute;bottom:calc(9px + env(safe-area-inset-bottom));left:20px;right:20px;min-height:24px;max-width:700px;margin:0 auto;text-align:center;font-size:11px;line-height:1.45;color:var(--cream);text-shadow:0 1px 8px #09211c}.photo-mode button:disabled{opacity:.55}
@media(min-width:720px){.photo-topbar{left:32px;right:32px;top:calc(25px + env(safe-area-inset-top))}.photo-topbar h2{font-size:28px}.photo-framing .photo-keyboard{display:block}}
@media(max-width:719px){.photo-result{width:calc(100% - 28px);gap:20px;padding:16px;grid-template-columns:minmax(0,1fr);align-content:start}.photo-preview-well{height:29svh;min-height:180px;padding:7px}.photo-options{gap:15px}.photo-choice>span{padding:8px 4px}.photo-actions{position:sticky;bottom:-16px;background:var(--cream);padding:8px 0}.photo-topbar h2{font-size:22px}}
@media(max-height:520px){.photo-topbar{top:10px;left:16px;right:16px}.photo-topbar h2{font-size:18px}.photo-framing{bottom:30px}.photo-framing>p{font-size:10px;margin:5px auto 9px}.photo-framing .photo-keyboard{display:none}.photo-presets button{min-height:36px}.photo-recent{position:absolute;right:0;bottom:6px;font-size:10px;max-width:130px}.photo-result{top:65px;bottom:42px;grid-template-columns:minmax(0,1fr) minmax(240px,1fr);gap:16px;padding:14px}.photo-preview-well{height:100%;min-height:160px;position:sticky;top:0}.photo-options{gap:12px}.photo-status{font-size:10px;bottom:4px}}

/* R7 stream Mb: the place title (js/place-names.js TITLE: shown once she has held a place .8 s, for 3.5 s, then it fades). Bottom
   centre, above the stick and the bell on a phone and the hints on a desktop, away from the objective, bearing, toast and danger
   banner along the top edge. Both languages are in the markup; the page's lang shows one. */
#game{--place-bottom:200px}
.place-title{position:absolute;left:50%;bottom:calc(var(--place-bottom) + env(safe-area-inset-bottom));z-index:1;display:flex;align-items:center;justify-content:center;gap:11px;width:max-content;max-width:min(560px,calc(100% - var(--hud-edge)*2));margin:0;transform:translate(-50%,8px);color:var(--cream);font-size:21px;font-weight:850;line-height:1.22;letter-spacing:-.01em;text-align:center;text-wrap:balance;text-shadow:0 1px 2px #0c1d1a,0 3px 18px #0c1d1ab3;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .6s ease,transform .6s ease,visibility 0s linear .6s}
.place-title::before,.place-title::after{content:'';flex:0 0 18px;height:1.5px;border-radius:1px;background:var(--brass);box-shadow:0 1px 6px #0c1d1a}
.place-title.is-shown{opacity:1;visibility:visible;transform:translate(-50%,0);transition:opacity .6s ease,transform .6s ease,visibility 0s}
html[lang="th"] .place-title [lang="en"],html:not([lang="th"]) .place-title [lang="th"]{display:none}
html[lang="th"] .place-title{font-weight:750;line-height:1.4}
@media(min-width:600px){.place-title{font-size:26px;gap:14px}.place-title::before,.place-title::after{flex-basis:26px}}
@media(min-width:900px){#game{--place-bottom:118px}.place-title{font-size:30px}}
@media(max-height:600px) and (min-width:600px){#game{--place-bottom:132px}.place-title{font-size:22px}}
/* R7 stream Mb: the discovery beat's framed hold is a clean frame (main.js adds .is-beat from E until the card opens): the HUD
   fades out and takes no pointer, so a tap anywhere lands on the canvas, which drops the hold and opens the card. */
.game-header,#playing-ui,#toast{transition:opacity .35s ease}
.is-beat .game-header,.is-beat #playing-ui,.is-beat #toast{opacity:0}
.is-beat .game-header *,.is-beat #playing-ui *{pointer-events:none!important}

/* A single map card: full-map action and collapse button, with the local map directly below. */
.map-heading{position:absolute;left:50%;top:50%;width:28px;height:28px;fill:var(--collar);stroke:#fff4da;stroke-width:2;stroke-linejoin:round;filter:drop-shadow(0 1px 3px #17322b88);pointer-events:none}
.minimap{width:100%;flex-shrink:0;border:1px solid #fff4da38;border-radius:15px;overflow:hidden;background:#17322be8;pointer-events:auto}
.map-tools{display:flex;align-items:center;min-height:44px}
#minimap-toggle{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;background:transparent;color:var(--cream);border-left:1px solid #fff4da24}
#minimap-state{font-size:18px}
#minimap-view{display:block;width:100%;padding:0;border:0;border-radius:0;cursor:pointer}
#minimap-view[hidden]{display:none}
.minimap .map-north{top:6px;right:8px;font-size:9px;line-height:1.4}
#interact-btn:disabled{opacity:.8;cursor:default}
/* Reserve dialogue space beside the expanded map, instead of floating either over the scene. */
@media(max-width:899px){.has-minimap .toast,.danger-banner,.interact-button{max-width:calc(100% - var(--hud-edge)*2 - var(--tool-width) - 12px)}}
@media(min-width:600px){#game{--tool-width:164px}.tool-shortcuts .photo-button{flex:1}.hud-bar .map-tools .map-button{padding:0 12px}}
@media(min-width:900px){#game{--tool-width:176px}.hud-bar .map-tools .map-button kbd{display:inline-flex;margin-left:auto}}
@media(max-height:600px){#game{--tool-width:138px}#minimap-view{height:92px}#minimap-canvas{position:absolute;width:100%;height:auto;top:50%;transform:translateY(-50%)}.hud-bar .tool-shortcuts .photo-button span{display:none}}
@media(max-height:600px) and (max-width:599px){#minimap-view{height:68px}}

/* Two compact action rows keep the new jump reachable beside the movement stick. */
.action-controls{display:grid;grid-template-columns:51px 78px;gap:8px 14px;align-items:center}
.jump-button,.action-controls .meow-button{width:51px;height:48px;border-radius:17px;margin:0;grid-column:1}
.jump-button{grid-row:1}.action-controls .meow-button{grid-row:2}.action-controls .sprint-button{grid-column:2;grid-row:1 / 3}
.jump-button svg{width:21px;height:21px}.jump-button span{margin-top:2px}
@media(min-width:900px) and (pointer:fine){.action-controls{display:flex;gap:10px}.jump-button,.action-controls .meow-button{border-radius:50%}.jump-button span{display:none}}

/* A quiet title over the live scene. Every pointer still reaches the existing beat. */
.discovery-intro{position:absolute;inset:0;z-index:5;pointer-events:none;color:var(--cream);background:linear-gradient(180deg,#152c2acc,transparent 27%,transparent 68%,#152c2acc);text-align:center;text-shadow:0 2px 14px #132923}
.discovery-intro-heading{position:absolute;top:calc(28px + env(safe-area-inset-top));left:24px;right:24px}
.discovery-intro .eyebrow{justify-content:center;color:var(--brass);font-size:11px;letter-spacing:.2em}
.discovery-intro-heading>p{margin:10px 0 0;font-size:15px;font-weight:750;text-wrap:balance}
.discovery-intro-caption{position:absolute;bottom:calc(24px + env(safe-area-inset-bottom));left:24px;right:24px}
.discovery-intro h2{max-width:700px;margin:0 auto;font-size:clamp(24px,4vw,42px);font-weight:900;letter-spacing:-.035em;line-height:1.2;text-wrap:balance}
.discovery-intro-caption>p{margin:12px 0 0;font-size:11px;line-height:1.6;color:#eee2c6}
.discovery-intro:not([hidden]) .discovery-intro-caption{animation:discovery-arrive .45s ease-out}

/* Cream paper, forest ink, and an uncropped scene to keep in the journal. */
.discovery-dialog{width:calc(100% - 24px);max-width:540px;max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:0;text-align:left;border:1px solid #d8c396;border-radius:9px 28px 9px 9px;overflow:auto;scroll-padding-block:82px 96px;touch-action:pan-y pinch-zoom;color:var(--forest)}
.discovery-dialog::backdrop{background:#18372fb8;backdrop-filter:blur(6px)}
.discovery-dialog[open]{animation:discovery-arrive .25s ease-out}
.discovery-dialog .dialog-head{position:sticky;top:0;z-index:2;align-items:center;margin:0;padding:12px 16px;background:var(--paper);border-bottom:1px solid var(--line)}
.discovery-dialog .dialog-head .eyebrow{font-size:9px;color:#75603d;letter-spacing:.13em}
.discovery-tools{display:flex;gap:6px;flex-shrink:0}
.discovery-dialog .icon-button{width:44px;height:44px;color:var(--forest);background:#ede2c9;border-color:#dbccb0;backdrop-filter:none;touch-action:manipulation}
.discovery-dialog .icon-button:hover{background:#e3d6b9}
.discovery-layout{min-width:0}
.discovery-copy{padding:22px;min-width:0;overflow-wrap:anywhere}
.discovery-place{margin:0 0 9px;font-size:12px;line-height:1.6;font-weight:800;color:#716348}
.discovery-dialog h2{font-size:clamp(28px,4vw,40px);font-weight:950;line-height:1.12;letter-spacing:-.045em;margin:0 0 20px;text-wrap:balance}
.discovery-dialog h2:focus{outline:none}
.discovery-dialog #discovery-text{font-size:16px;line-height:1.8;color:#5d5849}
#discovery-text p{margin:0 0 16px;white-space:pre-line}
#discovery-text .discovery-story{color:#28483e;font-size:17px;font-weight:650;line-height:1.75}
#discovery-text .discovery-fact-label{border-top:1px solid var(--line);padding-top:18px;margin:20px 0 8px;color:#79643f;font-size:10px;font-weight:900;letter-spacing:.12em}
.discovery-dialog .source-link{display:inline-flex;align-items:center;min-height:44px;line-height:1.6;font-size:13px;color:#6e5026}
.discovery-stamp{display:grid;place-items:center;width:60px;height:60px;margin:0 0 20px;border:1px dashed #b38c4e;border-radius:50%;background:#ede0c2;color:#8b642f;transform:rotate(-12deg)}
.discovery-stamp svg{width:28px;height:28px;fill:currentColor}
.discovery-dialog.has-art .discovery-stamp{display:none}
.discovery-dialog:not(.has-art) #discovery-visual{display:none}
.discovery-art{margin:0;min-width:0;background:#e8dfca}
.discovery-art img{display:block;width:100%;height:auto;aspect-ratio:3 / 2;object-fit:contain}
.discovery-art figcaption{display:flex;flex-direction:column;gap:3px;padding:10px 16px;font-size:10px;line-height:1.65;color:#645c49;overflow-wrap:anywhere;background:#eee4cf;border-bottom:1px solid var(--line)}
.art-label{font-weight:800;letter-spacing:.01em}
.art-credit a{color:inherit;text-underline-offset:3px;text-decoration-color:#988363}
.discovery-footer{position:sticky;bottom:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 22px;background:var(--paper);border-top:1px solid var(--line)}
.discovery-footer>span{display:none;font-size:12px;font-weight:700;line-height:1.6;color:#756345}
.discovery-continue{margin:0;background:var(--forest);border:1px solid #496151;border-radius:15px 15px 15px 5px;min-height:50px;touch-action:manipulation}
.discovery-continue:hover{background:#2e5144}
.discovery-continue>span{text-align:left}
.discovery-dialog :is(button,a):focus-visible,.journal-revisit:focus-visible{outline:3px solid #996a25;outline-offset:3px}
.discovery-dialog .primary-button:focus-visible{outline-offset:-5px;outline-color:var(--brass)}
.journal-entry.has-art{display:grid;grid-template-columns:minmax(0,1fr);padding:0;margin:16px 0 0;border:1px solid var(--line);border-radius:6px 18px 6px 6px;overflow:hidden}
.journal-entry.has-art .journal-entry-copy{padding:18px}
.journal-entry.has-art .discovery-art img{max-height:260px}
.journal-entry .entry-number{color:#7d633d}
.journal-entry-copy{min-width:0;overflow-wrap:anywhere}
.journal-entry-copy h3{color:var(--forest);font-size:22px;line-height:1.25}
.journal-entry-copy p{font-size:15px;color:#625b4a}
.journal-entry-copy .source-link{display:inline-flex;align-items:center;min-height:44px;line-height:1.5}
.journal-revisit{display:block;min-height:44px;padding:9px 14px;margin-top:8px;border:1px solid #b5a37c;border-radius:6px 12px 6px 6px;background:#e9dfc7;color:var(--forest);font-size:12px;font-weight:850;touch-action:manipulation}
.journal-revisit:hover{background:#ded2b8}
html[lang="th"] :is(.discovery-intro,.discovery-dialog) :is(h2,.eyebrow){letter-spacing:0;line-height:1.45}
@media(min-width:600px){
  .discovery-dialog{width:calc(100% - 48px)}
  .discovery-dialog.has-art{max-width:1060px}
  .discovery-dialog .dialog-head{padding:14px 26px}
  .discovery-copy{padding:28px}
  .discovery-footer{padding:16px 28px}
  .discovery-footer>span{display:block}
  .discovery-continue{width:auto;min-width:210px}
  .discovery-art img{max-height:40svh}
  .discovery-intro-heading{top:calc(38px + env(safe-area-inset-top))}
  .discovery-intro-caption{bottom:calc(32px + env(safe-area-inset-bottom))}
  #journal-dialog{max-width:820px}
  .journal-entry.has-art{grid-template-columns:minmax(0,.85fr) minmax(0,1fr)}
  .journal-entry.has-art .discovery-art{align-self:start}
  .journal-entry.has-art .discovery-art figcaption{border-bottom:0}
}
@media(min-width:860px){
  .discovery-dialog.has-art .discovery-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
  .discovery-dialog.has-art #discovery-visual{display:flex;border-right:1px solid var(--line);background:#e8dfca}
  .discovery-dialog .discovery-art{display:flex;flex-direction:column;justify-content:center;width:100%}
  .discovery-dialog .discovery-art img{max-height:54svh}
  .discovery-dialog .discovery-art figcaption{border-bottom:0;padding:12px 20px}
  .discovery-copy{align-self:center;padding:32px}
}
@media(max-height:500px){
  .discovery-intro-heading{top:16px}.discovery-intro-heading>p{margin-top:5px;font-size:12px}
  .discovery-intro-caption{bottom:12px}.discovery-intro h2{font-size:24px}.discovery-intro-caption>p{margin-top:5px}
  .discovery-dialog .dialog-head{padding-block:6px}.discovery-footer{position:static;padding-block:10px}
}
@keyframes discovery-arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
