:root { color-scheme:dark; --bg:#121619; --panel:#1a2022; --ink:#eee9dc; --muted:#a0aaa4; --gold:#d8b577; --gold-light:#f4d499; --line:#35403e; --teal:#8ec5b5; --red:#eda393; font-family:Segoe UI,system-ui,sans-serif; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font-size:15px; line-height:1.55; }
button,input { font:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled { cursor:default; }
button:focus-visible,a:focus-visible,input:focus-visible { outline:2px solid var(--gold-light); outline-offset:5px; }
button { color:inherit; }
button:disabled { opacity:.4; }
[hidden] { display:none!important; }
.app { max-width:1500px; padding:0 40px; margin:auto; }
.topbar { min-height:108px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; gap:24px; }
.brand { text-decoration:none; color:var(--ink); display:flex; align-items:center; gap:15px; font-family:Georgia,serif; font-size:17px; letter-spacing:2px; white-space:nowrap; }
.brand small { display:block; font-family:Segoe UI,sans-serif; font-size:10px; letter-spacing:3.4px; color:var(--muted); margin-top:4px; }
.brand-mark { width:43px; height:43px; display:grid; place-items:center; border:1px solid var(--gold); border-radius:50%; color:var(--gold); font-size:29px; }
.top-actions { display:flex; align-items:center; gap:30px; font-size:13px; color:var(--muted); }
.quiet-button { background:none; border:1px solid var(--line); border-radius:5px; padding:10px 16px; min-height:44px; font-size:13px; }
.quiet-button:hover { border-color:var(--gold); color:var(--gold-light); }
.layout { display:grid; grid-template-columns:180px minmax(320px,1fr) 335px; gap:35px; padding:38px 0 34px; align-items:start; }
.section-kicker { color:var(--muted); font-size:10px; letter-spacing:2px; font-weight:600; }
.journey { padding-top:3px; }
.journey .section-kicker { margin-bottom:23px; }
#rooms { display:grid; gap:8px; }
.room-button { border:0; background:none; padding:10px 0; text-align:left; display:flex; gap:11px; align-items:center; width:100%; min-height:52px; border-radius:5px; color:var(--muted); }
.room-button[aria-current="step"] { color:var(--gold-light); background:linear-gradient(90deg,#c9a56313,transparent); }
.room-button:hover:not(:disabled) { color:var(--ink); }
.room-seal { width:29px; height:29px; border:1px solid var(--line); border-radius:50%; display:grid; place-items:center; font-family:Georgia,serif; font-size:12px; flex-shrink:0; }
.room-button[aria-current="step"] .room-seal { border-color:var(--gold); color:var(--gold-light); }
.room-button.completed .room-seal { border-color:#517b6d; color:var(--teal); }
.room-label { font-size:12px; }
.room-label small { display:block; color:var(--muted); font-size:10px; margin-top:2px; }
.journey-foot { margin-top:40px; padding-top:22px; border-top:1px solid var(--line); color:var(--muted); font-family:Georgia,serif; font-size:13px; font-style:italic; }
.journey-foot p { margin:8px 0; }
.little-star { color:var(--gold); font-size:25px; }
.chamber { min-width:0; text-align:center; }
.chapter-line { display:flex; gap:15px; align-items:center; justify-content:center; font-size:10px; letter-spacing:1.8px; color:var(--gold); }
.chapter-rule { width:34px; height:1px; background:#6a604b; }
h1 { font:400 39px/1.2 Georgia,serif; margin:16px 0 12px; letter-spacing:-.5px; }
.story { font-size:13px; color:var(--muted); max-width:470px; margin:0 auto; min-height:44px; }
.safe-scene { position:relative; width:100%; max-width:650px; margin:7px auto 4px; aspect-ratio:600/470; }
#safe-canvas { display:block; width:100%; height:100%; }
.code-form { position:absolute; top:53%; left:0; width:100%; display:flex; justify-content:center; }
.digit-controls { display:flex; gap:8px; }
.digit-wheel { display:grid; grid-template-rows:26px 56px 26px; gap:0; width:52px; }
.digit-wheel input { appearance:none; width:100%; min-width:0; border:1px solid #bba575; border-radius:4px; padding:0; background:linear-gradient(#141a1c,#262b2a 42%,#1a201f); text-align:center; color:var(--gold-light); caret-color:var(--gold-light); font:400 36px/1 Georgia,serif; box-shadow:inset 0 0 10px #0007,0 2px 8px #0005; }
.digit-wheel input::placeholder { color:#70756c; }
.wheel-step { border:0; background:transparent; color:#d7be8c; padding:0; font-size:17px; min-height:26px; }
.wheel-step:hover { color:#fff0ce; }
.digit-wheel:focus-within input { border-color:#ffe2a6; }
.scene-caption { position:absolute; left:12px; right:12px; bottom:4.5%; font-size:9px; letter-spacing:2px; color:#9da899; }
.open-row { display:flex; gap:12px; justify-content:center; }
.primary-button { border:1px solid var(--gold); background:var(--gold); color:#20231d; min-height:47px; border-radius:5px; padding:11px 24px; font-size:13px; font-weight:600; display:inline-flex; align-items:center; justify-content:center; gap:25px; }
.primary-button:hover { background:var(--gold-light); border-color:var(--gold-light); }
.feedback { min-height:43px; margin:17px 0 2px; color:var(--muted); font-size:12px; }
.feedback.error { color:var(--red); }
.play-footer { border-top:1px solid var(--line); padding-top:13px; display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; font-size:10px; color:var(--muted); }
.notebook { background:#1d2424; border:1px solid #3b4540; border-radius:8px; padding:23px 22px 18px; position:relative; box-shadow:0 13px 28px #0002; }
.notebook:before { content:''; width:43px; height:8px; background:#c7b17e; opacity:.6; position:absolute; top:-4px; left:calc(50% - 22px); border-radius:2px; transform:rotate(-3deg); }
.notebook-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.notebook h2 { font:400 28px/1.2 Georgia,serif; margin:7px 0 0; }
.paper-glyph { font-size:31px; color:var(--gold); }
.clue-intro { color:var(--muted); font-size:12px; margin:17px 0 15px; }
.clue-legend { display:flex; justify-content:space-between; gap:10px; font-size:10px; color:var(--muted); margin-bottom:12px; }
.clue-legend span { display:flex; align-items:center; gap:5px; }
.dot { display:inline-block; width:6px; height:6px; border-radius:50%; flex-shrink:0; }
.exact { background:var(--gold); }
.misplaced { background:var(--teal); }
.clues { list-style:none; margin:0; padding:0; }
.clue { display:flex; justify-content:space-between; align-items:center; gap:8px; border-top:1px solid #35403b; padding:12px 1px; }
.clue-code { font:400 24px/1.1 Georgia,serif; color:#eee5d0; letter-spacing:7px; padding-left:4px; font-variant-numeric:tabular-nums; }
.clue-counts { display:flex; gap:10px; }
.clue-count { border:1px solid #675a40; border-radius:4px; min-width:29px; height:29px; display:grid; place-items:center; font-size:13px; color:var(--gold-light); font-variant-numeric:tabular-nums; }
.clue-count.other { border-color:#45645c; color:var(--teal); }
.clue-footnote { color:var(--muted); font-size:10px; margin:2px 0 20px; }
.notes { border-top:1px solid var(--line); padding-top:17px; }
.notes-header { display:flex; justify-content:space-between; gap:8px; align-items:baseline; flex-wrap:wrap; margin-bottom:11px; }
.notes h3 { font-size:12px; margin:0; font-weight:500; }
.notes-header>span { color:var(--muted); font-size:10px; }
.note-digits { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:5px; }
.note-digit { position:relative; background:#151c1d; border:1px solid #3d4841; border-radius:4px; min-height:35px; color:#cbd3c8; font-family:Georgia,serif; font-size:18px; }
.note-digit[aria-pressed="true"] { color:#65726b; background:transparent; }
.note-digit[aria-pressed="true"]:after { content:''; position:absolute; width:25px; height:1px; background:#a07c67; top:50%; left:calc(50% - 12px); transform:rotate(-38deg); }
.notes>p { font-size:10px; color:var(--muted); margin:9px 0 0; }
.hint-section { border-top:1px solid var(--line); padding-top:14px; margin-top:17px; }
.hint-heading { display:flex; align-items:center; justify-content:space-between; font-size:10px; color:var(--muted); }
.hint-button { padding:7px 0; background:none; border:0; color:var(--gold); text-decoration:underline; text-underline-offset:4px; font-size:12px; min-height:35px; }
.hint-text { color:#c8d2c9; margin:8px 0 0; font-size:12px; }
.bottom-bar { display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; border-top:1px solid var(--line); color:#87948b; padding:17px 0 24px; font-size:10px; }
.discovery { text-align:center; border-top:1px solid #6c5d3e; padding:23px 0 0; }
.discovery h2 { font:400 29px/1.2 Georgia,serif; color:var(--gold-light); margin:10px 0; }
.discovery p { color:var(--muted); font-size:13px; margin:0 auto 20px; max-width:440px; }
.attempts { text-align:left; border-top:1px solid var(--line); padding-top:16px; margin-top:20px; }
.attempts h2 { font-size:10px; text-transform:uppercase; letter-spacing:1.6px; color:var(--muted); font-weight:400; margin:0 0 10px; }
#attempts-list { display:flex; flex-wrap:wrap; gap:8px; }
.attempt-chip { padding:4px 10px; background:#232b2b; border:1px solid var(--line); border-radius:4px; font-size:13px; letter-spacing:3px; font-variant-numeric:tabular-nums; color:var(--muted); }
.attempt-chip.success { border-color:#567b6e; color:var(--teal); }
dialog { background:#202727; color:var(--ink); border:1px solid #62634f; border-radius:10px; padding:0; width:min(560px,calc(100% - 28px)); max-height:90dvh; overflow:auto; }
dialog::backdrop { background:#080d10cc; backdrop-filter:blur(5px); }
.rules-inner { padding:30px; }
.rules-inner h2 { font:400 32px/1.2 Georgia,serif; margin:13px 0; }
.rules-inner p,.rules-inner li { font-size:13px; color:#bdc7bf; }
.rules-inner ul { padding-left:20px; }
.rules-inner strong { color:var(--gold-light); font-weight:500; }
.rules-inner .keyboard-help { padding-top:15px; border-top:1px solid var(--line); color:var(--muted); font-size:12px; }
.mono { font-family:ui-monospace,monospace; letter-spacing:2px; color:var(--gold-light); }
@media(min-width:1400px) { .layout { grid-template-columns:190px minmax(320px,1fr) 360px; gap:45px; } .notebook { padding:26px; } }
@media(max-width:1150px) { .app { padding:0 24px; } .layout { grid-template-columns:minmax(320px,1fr) 320px; gap:25px; padding-top:24px; } .journey { grid-column:1/-1; } .journey .section-kicker,.journey-foot { display:none; } #rooms { display:flex; gap:8px; justify-content:space-between; } .room-button { width:auto; padding:7px; min-height:44px; } .room-label { display:none; } .room-seal { width:29px; height:29px; } h1 { font-size:35px; } }
@media(max-width:760px) { .app { padding:0 18px; } .topbar { min-height:91px; gap:12px; } .brand { font-size:13px; letter-spacing:1.3px; gap:10px; } .brand-mark { width:34px; height:34px; font-size:25px; } .brand small { font-size:8px; letter-spacing:2.1px; } .top-actions { gap:8px; } #progress-label { display:none; } .top-actions .quiet-button { font-size:11px; padding:9px 10px; } .layout { grid-template-columns:1fr; padding-top:15px; gap:22px; } .journey { grid-column:auto; } #rooms { gap:0; } .room-button { padding:6px 2px; } .room-seal { width:28px; height:28px; font-size:11px; } .chamber { padding-top:2px; } .chapter-line { font-size:9px; } h1 { font-size:33px; margin:12px 0 10px; } .story { font-size:12px; max-width:440px; min-height:0; } .safe-scene { max-width:470px; margin-top:1px; } .notebook { padding:23px; } .clue { padding:11px 1px; } .clue-code { font-size:26px; } .note-digits { grid-template-columns:repeat(10,minmax(0,1fr)); gap:4px; } .note-digit { min-height:38px; font-size:16px; } .notes-header { margin-bottom:11px; } .bottom-bar { gap:8px; padding-top:14px; } .play-footer { font-size:10px; } .feedback { min-height:36px; margin-top:14px; } .digit-wheel { width:44px; grid-template-rows:25px 47px 25px; } .digit-wheel input { font-size:31px; } .digit-controls { gap:7px; } .scene-caption { font-size:8px; letter-spacing:1.4px; } .code-form { top:51%; } }
@media(max-width:370px) { .app { padding:0 12px; } .brand { font-size:11px; gap:7px; } .brand-mark { width:29px; height:29px; font-size:21px; } .brand small { font-size:8px; letter-spacing:1.6px; } .top-actions .quiet-button { padding:8px; } .digit-wheel { width:39px; grid-template-rows:23px 43px 23px; } .digit-wheel input { font-size:28px; } .safe-scene { aspect-ratio:600/490; } .notebook { padding:20px 16px; } .note-digits { grid-template-columns:repeat(5,minmax(0,1fr)); } }
@media(pointer:coarse) { .note-digit,.hint-button { min-height:44px; } .digit-wheel { grid-template-rows:36px 47px 36px; } .wheel-step { min-height:36px; } .code-form { top:48%; } }
@media(prefers-reduced-motion:no-preference) { button { transition:background .16s,border-color .16s,color .16s; } }
/* Expedition, account and reward screens. */
:root { --location-color:#9fc69b; }
.review-inner { position:relative; }
.review-close { position:absolute; right:16px; top:12px; min-width:44px; padding:5px; font-size:23px; line-height:1; }
.review-inner .section-kicker { padding-right:40px; }
.review-fields { border:0; margin:0; padding:0; min-width:0; }
.review-stars { display:flex; gap:7px; border:0; padding:0; margin:22px 0 0; min-width:0; }
.review-stars legend { color:var(--gold-light); font-size:13px; margin-bottom:10px; padding:0; }
.review-stars label { position:relative; display:grid; place-items:center; width:44px; min-height:48px; cursor:pointer; border:1px solid var(--line); border-radius:6px; color:#69756b; font-size:31px; line-height:1; }
.review-stars input { position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; }
.review-stars label.is-selected { color:var(--gold-light); border-color:#8b7956; background:#d8b5770b; }
.review-stars label:focus-within { outline:2px solid var(--gold-light); outline-offset:3px; }
.review-stars input:disabled { cursor:default; }
.review-fields:disabled { opacity:.55; }
.review-inner .review-rating-value { margin:8px 0 20px; font-size:11px; }
.review-text-label { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:8px; color:var(--gold-light); font-size:13px; margin-bottom:8px; }
.review-text-label span { color:var(--muted); font-size:11px; }
.review-inner textarea { display:block; min-height:112px; }
.review-audience { line-height:1.65; }
.review-option { display:flex; gap:10px; align-items:flex-start; margin:12px 0; color:#bdc7bf; font-size:12px; line-height:1.6; }
.review-option input { flex:none; width:18px; height:18px; margin:2px 0 0; accent-color:var(--gold); }
.review-reminder { padding-top:12px; border-top:1px solid var(--line); }
.review-existing { padding:10px 12px; border:1px solid var(--line); border-radius:5px; }
.review-inner .review-message { min-height:22px; color:var(--gold-light); overflow-wrap:anywhere; }
.review-message.error { color:var(--red); }
.bottom-bar #review-button { font-size:11px; padding:6px 12px; }
.review-footer-actions { display:flex; gap:8px; flex-wrap:wrap; }
.bottom-bar #reviews-button { font-size:11px; padding:6px 12px; }
.player-review { padding:17px 0; border-top:1px solid var(--line); }
.player-review header { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; color:var(--gold-light); font-size:13px; }
.player-review strong { font-weight:500; overflow-wrap:anywhere; }
.player-review .player-review-text { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.7; }
.player-review time { font-size:10px; color:var(--muted); }
.adventure-nav { display:flex; gap:8px; flex-wrap:wrap; padding:18px 0 0; }
.adventure-nav button[aria-pressed=true] { color:var(--gold-light); border-color:var(--gold); background:#d8b57712; }
.quest-line { color:var(--teal); font-size:11px; margin:0 0 20px; }
.mechanic-rule { color:var(--gold-light); font-size:12px; margin:12px auto 0; }
.seal-track { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:15px; }
.seal-track:empty { display:none; }
.seal-track span { border:1px solid var(--line); padding:5px 12px; border-radius:20px; font-size:11px; color:var(--muted); }
.seal-track .active { color:var(--gold-light); border-color:var(--gold); }
.statement-clue { display:flex; align-items:center; gap:10px; padding:13px 0; border-top:1px solid var(--line); font-size:13px; line-height:1.6; }
.statement-clue>span { flex:1; }
.clue-flag { flex:none; min-width:34px; min-height:40px; background:#151c1d; border:1px solid var(--line); border-radius:5px; color:var(--muted); }
.clue-flag[data-verdict="1"] { color:var(--teal); border-color:var(--teal); }
.clue-flag[data-verdict="2"] { color:var(--gold-light); border-color:var(--gold); }
.hint-text { white-space:pre-line; }
.symbol-bank-section { padding:16px; margin:16px 0; background:#a0af9210; border:1px solid #536650; border-radius:8px; }
.symbol-bank-section strong { font-size:13px; color:var(--gold-light); font-weight:500; }
.symbol-bank { display:flex; flex-wrap:wrap; gap:9px; margin:12px 0; }
.symbol-bank span { display:grid; place-items:center; min-width:38px; min-height:42px; border:1px solid var(--location-color); border-radius:6px; color:var(--ink); font:24px ui-monospace,monospace; }
.symbol-bank-section small { color:var(--muted); font-size:11px; line-height:1.6; }
.start-here { font-size:12px; line-height:1.7; color:var(--teal); padding-left:12px; border-left:2px solid var(--teal); }
.coach-section { border-top:1px solid var(--line); margin-top:20px; padding-top:16px; }
.coach-section h3 { color:var(--gold-light); font-size:14px; font-weight:500; margin:0 0 8px; }
.coach-section>p { color:var(--muted); font-size:12px; line-height:1.6; }
#coach-button { text-align:left; font-size:12px; }
#coach-count { flex:none; color:var(--muted); font-size:11px; }
.coach-section #coach-text { color:var(--ink); }
.clue-jump { display:none; }
@media(max-width:760px) { .clue-jump { display:inline-block; color:var(--gold-light); font-size:12px; padding:12px 0; min-height:44px; text-underline-offset:4px; } }
.detective-board,.solution-panel { margin-top:22px; border-top:1px solid var(--line); padding-top:16px; text-align:left; font-size:12px; }
summary { cursor:pointer; min-height:44px; color:var(--gold-light); padding:8px 0; }
.detective-board p,.solution-panel p,.solution-panel li { color:var(--muted); line-height:1.7; }
.solution-panel ol { padding-left:22px; }
.solution-panel h3 { font:400 18px Georgia,serif; color:var(--gold-light); }
.solution-panel li { margin:10px 0; }
.position-grid { display:grid; grid-template-columns:18px repeat(10,minmax(0,1fr)); gap:3px; margin:15px 0; align-items:center; text-align:center; }
.position-cell { min-width:0; min-height:30px; padding:0; background:#151c1d; border:1px solid var(--line); border-radius:3px; font-size:16px; }
.position-cell[aria-pressed=true] { color:var(--red); border-color:#816858; }
.detective-board label { display:block; margin:15px 0 7px; color:var(--gold-light); font-size:12px; }
textarea,select { font:16px 'Segoe UI',sans-serif; color:var(--ink); background:#151c1d; border:1px solid var(--line); border-radius:5px; }
textarea { width:100%; resize:vertical; padding:10px; }
.link-controls { display:flex; gap:6px; align-items:center; }
.link-controls select { min-width:0; width:100%; min-height:42px; font-size:12px; }
.link-controls button { padding:6px 12px; }
#clue-links { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.link-chip { min-height:36px; border:1px solid var(--line); border-radius:20px; background:#a0af9210; padding:4px 10px; font-size:12px; }
.share-panel { margin-top:18px; display:flex; flex-wrap:wrap; justify-content:center; gap:10px; align-items:center; }
.share-panel a { color:var(--gold-light); text-decoration:none; font-size:12px; }
.share-panel p { width:100%; color:var(--muted); font-size:12px; }
.journal-page { padding:20px 0; border-top:1px solid var(--line); }
.journal-page small { font-size:10px; color:var(--teal); text-transform:uppercase; letter-spacing:1px; }
.journal-page h3 { font:400 24px Georgia,serif; color:var(--gold-light); margin:12px 0; }
.journal-page p { line-height:1.8; margin-bottom:0; }
.lab-dialog { width:min(810px,calc(100% - 28px)); }
#lab-canvas { display:block; width:100%; aspect-ratio:720/390; border:1px solid var(--line); border-radius:8px; }
#lab-balance { color:var(--gold-light); font-size:14px; }
.lab-items { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:20px 0; }
.lab-item { padding:16px; border:1px solid var(--line); border-radius:7px; }
.lab-item h3 { font:400 20px Georgia,serif; margin:0; }
.lab-item p { font-size:12px; }
.lab-item button { width:100%; }
@media(max-width:760px) { .adventure-nav { display:grid; grid-template-columns:1fr 1fr; gap:7px; } .adventure-nav button { padding:9px 6px; font-size:11px; min-height:44px; } .quest-line { margin-bottom:15px; font-size:10px; } .rules-inner { padding:24px 20px; } .lab-items { grid-template-columns:1fr; } .statement-clue { font-size:13px; } .location-button { min-height:98px; } }
.top-actions { gap:12px; }
#account-button { max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.auth-view { display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,420px); gap:70px; align-items:center; min-height:calc(100dvh - 180px); padding:55px 30px; }
.auth-intro h1 { font-size:clamp(36px,4.5vw,62px); line-height:1.12; margin:22px 0; }
.auth-intro>p { max-width:480px; color:var(--muted); font-size:15px; }
.auth-locations { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:30px; color:var(--gold-light); font-size:12px; }
.auth-locations span { border-left:2px solid #777553; padding-left:12px; }
.auth-card { background:#1d2424; border:1px solid var(--line); border-radius:12px; padding:28px; box-shadow:0 20px 60px #0003; }
.auth-tabs { display:flex; border-bottom:1px solid var(--line); gap:20px; }
.auth-tabs button { border:0; border-bottom:2px solid transparent; background:none; padding:12px 2px; color:var(--muted); font-size:13px; }
.auth-tabs button[aria-pressed=true] { color:var(--gold-light); border-bottom-color:var(--gold); }
.auth-card h2 { font:400 29px/1.2 Georgia,serif; margin:25px 0 12px; }
.auth-card p { font-size:12px; color:var(--muted); }
#auth-form { display:grid; gap:9px; margin-top:23px; }
#auth-form>label { font-size:12px; color:var(--gold-light); margin-top:5px; }
#auth-form>input { width:100%; min-height:46px; color:var(--ink); background:#141c1c; border:1px solid #4a574c; border-radius:5px; font:16px 'Segoe UI',sans-serif; padding:10px 12px; }
#auth-form>.primary-button { margin-top:12px; width:100%; }
#auth-message { min-height:20px; color:var(--gold-light); overflow-wrap:anywhere; }
#auth-view #secure-link { color:var(--gold-light); font-size:14px; }
.account-note { border-top:1px solid var(--line); padding-top:14px; line-height:1.6; }
#auth-form .legacy-option { display:flex; align-items:flex-start; gap:8px; font-size:12px; color:var(--muted); line-height:1.4; }
.legacy-option input { flex-shrink:0; width:18px; height:18px; accent-color:var(--gold); }
.locations { display:grid; gap:9px; }
.location-button { display:grid; gap:5px; width:100%; text-align:left; padding:15px 12px; background:transparent; color:var(--muted); border:1px solid var(--line); border-radius:7px; min-height:88px; }
.location-button strong { color:var(--ink); font-size:12px; font-weight:500; }
.location-button span { font-size:10px; }
.location-button small { font-size:10px; color:var(--muted); }
.location-button[aria-pressed=true] { border-color:var(--location-color); background:#a0af9210; }
.location-button[aria-pressed=true] strong { color:var(--location-color); }
#game-view { grid-template-columns:185px minmax(0,1fr) 335px; gap:28px; }
.chamber #rooms { display:flex; gap:6px; align-items:center; justify-content:center; flex-wrap:wrap; margin:18px 0 25px; }
.chamber .room-button { width:auto; min-width:38px; min-height:38px; padding:6px 9px; border:1px solid var(--line); font-size:12px; justify-content:center; text-align:center; }
.chamber .room-button[aria-current=step] { border-color:var(--location-color); background:#a0af9210; }
.chamber .room-button.completed { color:var(--teal); }
.level-gap { color:var(--muted); font-size:12px; }
.expedition-stats { display:flex; justify-content:center; flex-wrap:wrap; gap:10px 22px; color:var(--muted); font-size:12px; border-bottom:1px solid var(--line); padding-bottom:13px; }
.expedition-stats b { color:var(--gold-light); padding-left:4px; font-weight:500; }
#difficulty-label { color:var(--location-color); }
.token-button { display:block; margin:12px auto 0; min-height:40px; background:none; border:0; color:var(--gold-light); font-size:12px; text-decoration:underline; text-underline-offset:4px; }
.token-button:disabled { text-decoration:none; }
.reward-track { display:grid; gap:10px; text-align:left; margin-top:22px; padding:18px; border:1px solid var(--line); border-radius:7px; background:#b8ae7310; }
.reward-track>span { font-size:12px; color:var(--gold-light); }
.reward-track small { font-size:10px; color:var(--muted); line-height:1.6; }
.reward-track progress { width:100%; height:5px; accent-color:var(--gold); border:0; border-radius:4px; }
.reward-message { color:var(--gold-light); border:1px solid var(--gold); border-radius:7px; padding:14px; font-size:13px; line-height:1.6; }
.dialog-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
body[data-location=library] #safe-canvas { filter:sepia(.25) hue-rotate(335deg); }
body[data-location=observatory] #safe-canvas { filter:hue-rotate(105deg); }
body[data-location=abyss] #safe-canvas { filter:hue-rotate(210deg); }
.safe-scene[data-length="5"] .digit-wheel { width:44px; }
.safe-scene[data-length="5"] .digit-controls { gap:6px; }
@media(max-width:1150px) { #game-view { grid-template-columns:minmax(0,1fr) 310px; gap:24px; } .journey { grid-column:1/-1; } .locations { grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; } .location-button { min-height:85px; padding:12px; } .auth-view { gap:30px; padding:36px 0; } }
@media(max-width:760px) { .topbar { flex-wrap:wrap; padding:16px 0; gap:12px; min-height:88px; } .top-actions { margin-left:auto; gap:6px; } #account-button { max-width:110px; } #game-view { grid-template-columns:minmax(0,1fr); gap:22px; } .locations { grid-template-columns:1fr 1fr; } .location-button { min-height:80px; padding:11px; } .auth-view { grid-template-columns:1fr; gap:25px; padding:28px 0; min-height:0; } .auth-intro h1 { font-size:38px; margin:17px 0; } .auth-intro>p { font-size:13px; } .auth-locations { margin-top:22px; font-size:11px; gap:10px; } .auth-card { padding:23px; } .expedition-stats { gap:10px 18px; font-size:11px; } .chamber #rooms { margin:15px 0 20px; } .chamber .room-button { min-height:42px; min-width:37px; font-size:11px; padding:6px 8px; } .safe-scene[data-length="5"] .digit-wheel { width:30px; grid-template-rows:30px 43px 30px; } .safe-scene[data-length="5"] .digit-wheel input { font-size:27px; } .safe-scene[data-length="5"] .digit-controls { gap:4px; } .safe-scene[data-length="5"] .code-form { top:48%; } .clue-code { letter-spacing:5px; font-size:25px; } }
@media(max-width:370px) { #account-button { max-width:94px; } .safe-scene[data-length="5"] .digit-wheel { width:28px; } .safe-scene[data-length="5"] .digit-controls { gap:3px; } .auth-card { padding:20px; } .auth-intro h1 { font-size:34px; } .location-button strong { font-size:11px; } }
