/* 2D winter exploration. Loaded only by the 2D entry. */
:root { --paper:#f2f0e8; --ink:#354b52; --sage:#a7b9ad; }
.winter-header { position:absolute; z-index:7; top:0; left:0; width:100%; height:68px; padding:0 38px; display:flex; align-items:center; justify-content:space-between; color:#cad5d5; }
.winter-wordmark { display:flex; align-items:center; gap:13px; text-decoration:none; color:inherit; font:15px var(--font-serif); letter-spacing:.12em; }
.winter-wordmark svg { width:22px; height:28px; fill:none; stroke:#c8b69a; stroke-width:1.2; }
.winter-wordmark small { font:10px var(--font-sans); border-left:1px solid #cbd8d533; margin-left:13px; padding-left:13px; color:#aabbbd; letter-spacing:.16em; }
.winter-header-note { font-size:10px; letter-spacing:.14em; color:#aabbbd; }
.screen { padding:76px 38px 22px; gap:15px; }
.window { width:min(1100px,100%,calc((100svh - 302px) * 1.95031 + 56px)); }
.home-copy .eyebrow { color:#506b72; }
.frost--home { background:radial-gradient(ellipse at 50% 45%,#f6f9fbd9 0%,#f2f7fbb8 40%,#eef6f88a 70%,#fff9 100%); }
.frost--home::after { opacity:.35; }
.home-copy h1 { font-size:48px; line-height:1.5; }
.home-copy .little-rule { margin:18px 0; }
.home-copy .sub { font-size:14px; line-height:1.9; }
.home-copy #btn-start { margin-top:23px; min-height:45px; }
.scene-selection { flex-shrink:0; width:min(740px,100%); }
.selection-caption { display:flex; align-items:baseline; justify-content:space-between; gap:14px; color:#c4d0d0; margin-bottom:11px; }
.selection-caption strong { font-size:12px; font-weight:400; letter-spacing:.08em; }
.selection-caption p { font-size:10px; margin:0; color:#a8b9bd; }
.scene-picker { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
.scene-picker button { position:relative; min-width:0; display:grid; grid-template-columns:56px minmax(0,1fr); column-gap:10px; align-items:center; text-align:left; padding:8px; border:1px solid #baccca30; color:#c4d1d1; background:#13202830; border-radius:5px; transition:background 180ms,border-color 180ms; }
.scene-picker button:hover { background:#cad8d411; border-color:#c0d2cd88; }
.scene-picker button[aria-pressed="true"] { border-color:#d6c4a5; background:#c9d5c918; box-shadow:inset 0 -2px #d6c4a577; color:#f1eee3; }
.scene-picker img { grid-row:1 / 3; width:56px; height:39px; object-fit:cover; border-radius:2px; opacity:.85; }
.scene-picker strong { font-weight:400; font-size:11px; line-height:1.7; }
.scene-picker small { font-size:9px; color:#aabebb; line-height:1.4; }
.home-footer { display:flex; flex-shrink:0; align-items:center; justify-content:center; gap:24px; }
.home-footer .foot-hint { font-size:11px; margin:0; color:#a9bfc2; }
.journal-link { color:#dce2d5; display:flex; align-items:center; gap:10px; border:0; border-bottom:1px solid #bfceba66; padding:8px 0; background:none; font-size:12px; }
.journal-link #collection-count { font-size:10px; color:#aebfb4; }
.scene-label { flex-shrink:0; margin:0; color:#c0cecd; font-size:11px; letter-spacing:.18em; }
#screen-game { gap:11px; padding-top:72px; }
#screen-game .window { width:min(1100px,100%,calc((100svh - 320px) * 1.95031 + 56px)); }
.workbench { width:min(570px,100%); flex-shrink:0; }
.tool-tray { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; padding:5px; border:1px solid #bbc9c22b; border-radius:7px; background:#101a2040; }
.tool-button { min-height:56px; display:flex; align-items:center; justify-content:center; gap:13px; border:1px solid transparent; border-radius:4px; color:#b9cac9; background:none; padding:7px 13px; text-align:left; }
.tool-button:hover { background:#c3d2c80d; }
.tool-button[aria-pressed="true"] { border-color:#c4d0b57a; background:#c0d1c016; color:#f2f1df; }
.tool-button svg { width:37px; height:33px; fill:#afc2bc12; stroke:currentColor; stroke-width:1.1; stroke-linejoin:round; }
.tool-button span { font-size:12px; }
.tool-button small { display:block; margin-top:5px; font-size:9px; opacity:.7; }
.workbench-note { display:flex; justify-content:space-between; gap:12px; margin:9px 2px 0; color:#a2b7bc; font-size:10px; line-height:1.6; }
.workbench-note p { margin:0; }
#clear-progress { color:#d5dfd3; font-variant-numeric:tabular-nums; display:inline-block; min-width:33px; text-align:right; }
.discovery-list { list-style:none; display:flex; flex-wrap:wrap; justify-content:center; gap:9px; padding:0; margin:9px 0 0; color:#a8babc; }
.discovery-list li { display:flex; align-items:center; gap:7px; font-size:10px; }
.discovery-list li::before { content:""; width:5px; height:5px; border:1px solid #a8babc88; border-radius:50%; }
.discovery-list .discovery-state { font-size:9px; opacity:.65; }
.discovery-list .is-found { color:#d8dfc7; }
.discovery-list .is-found::before { background:#c8d4ad; border-color:#c8d4ad; }
#game-hint { font-size:10px; margin:0; line-height:16px; }
.game-controls { position:static; flex-shrink:0; gap:18px; min-height:34px; }
.audio-toggle { height:34px; font-size:10px; padding:0 12px; }
.audio-toggle svg { width:14px; }
.quiet-button { font-size:11px; }
.music-credit { font-size:9px; }
.finish-card { background:#f6f4edfa; }
.finish-collection { font-size:12px; line-height:1.8; color:#66786a; margin:18px 0 8px; }
.finish-journal-link { background:none; border:0; border-bottom:1px solid #66877777; padding:6px 0; color:#456c60; font-size:12px; }
.journal { width:min(890px,calc(100% - 48px)); max-height:calc(100svh - 60px); overflow:auto; padding:34px 38px 26px; border:1px solid #c9cec4; border-radius:10px; color:var(--ink); background:var(--paper); box-shadow:0 25px 100px #06131c66; }
.journal::backdrop { background:#0e2026aa; backdrop-filter:blur(6px); }
.journal-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.journal-heading .eyebrow { margin:0 0 9px; font-size:10px; letter-spacing:.15em; }
.journal-heading h2 { font-size:34px; line-height:1.4; margin:0; letter-spacing:.12em; }
.journal-close { flex-shrink:0; width:36px; height:36px; border:1px solid #819b8c55; background:none; border-radius:50%; color:#59716b; font-size:23px; line-height:1; }
.journal-summary { font-size:12px; line-height:1.7; color:#687d70; padding-bottom:20px; margin:13px 0 0; border-bottom:1px solid #899c8d40; }
.journal h3 { display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin:27px 0 13px; font:18px var(--font-serif); font-weight:400; letter-spacing:.04em; }
.journal h3 small { font:10px var(--font-sans); color:#75877a; letter-spacing:0; }
.journal-scenes { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; }
.journal-scenes>div { position:relative; padding:0 0 12px; overflow:hidden; border:1px solid #8a9d8d44; border-radius:4px; background:#fff8; }
.journal-scenes img { display:block; width:100%; height:79px; object-fit:cover; }
.journal-scenes strong { display:block; font:15px var(--font-serif); margin:12px 10px 6px; }
.journal-scenes p { font-size:10px; color:#78877b; line-height:1.6; margin:0 10px 9px; }
.journal-scenes button { margin:0 10px; background:none; border:0; border-bottom:1px solid #77958177; padding:5px 0; color:#486659; font-size:10px; }
.journal-scenes .is-collected { border-color:#8ca78d; }
.journal-scenes .is-locked img { opacity:.65; }
.journal-items { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.journal-items>div { padding:18px 14px 13px; border:1px solid #899d882e; border-radius:4px; text-align:center; background:#f7f6f08c; }
.journal-items img { width:70px; height:55px; object-fit:contain; display:block; margin:0 auto 12px; }
.journal-items [data-id="moon"] img,.journal-items [data-id="star"] img,.journal-items [data-id="moonlight"] img { background:#354851; border-radius:4px; padding:7px; }
.journal-items strong { display:block; font-weight:400; font-size:12px; }
.journal-items p { color:#78867b; font-size:10px; line-height:1.8; min-height:35px; margin:8px 0; }
.journal-items small { color:#788a76; font-size:9px; display:block; }
.journal-items .is-locked img { opacity:.28; filter:grayscale(1); }
.journal-items .is-collected { background:#fbfbf3; border-color:#9bad8b66; }
.journal-badges { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; }
.journal-badges>div { padding:17px 9px 12px; border:1px dashed #91a18b66; border-radius:50% 50% 6px 6px / 20px 20px 6px 6px; text-align:center; }
.journal-badges strong { font:14px var(--font-serif); font-weight:400; }
.journal-badges p { font-size:9px; line-height:1.7; color:#76836f; margin:8px 0; }
.journal-badges small { font-size:9px; color:#7c8e76; }
.journal-badges .is-collected { background:#e7ecdb; border-style:solid; border-color:#8f9f79; }
.journal-storage-note { border-top:1px solid #8c9c8733; padding-top:16px; margin:24px 0 0; color:#788570; font-size:10px; line-height:1.8; }
.journal-storage-note[data-error="true"] { color:#965d3e; }
body[data-scene="dawn"] { --wall-top:#303c43; --wall-bottom:#526064; }
body[data-scene="dusk"] { --wall-top:#292a36; --wall-bottom:#48404b; }
@media(max-width:899px) {
  .winter-header { height:50px; padding:0 19px; }
  .winter-wordmark { font-size:12px; gap:9px; }
  .winter-wordmark svg { width:17px; height:23px; }
  .winter-wordmark small { font-size:9px; margin-left:8px; padding-left:8px; }
  .winter-header-note { display:none; }
  .screen { padding:60px 20px 16px; gap:12px; }
  .window { padding:14px; width:min(100%,calc((100svh - 280px) * .8 + 28px)); }
  .glass { aspect-ratio:.8; }
  .home-copy { padding:15px 9px; }
  .home-copy .eyebrow { font-size:9px; margin-bottom:10px; }
  .home-copy h1 { font-size:32px; }
  .home-copy .little-rule { margin:14px 0; }
  .home-copy .sub { font-size:11px; line-height:1.9; }
  .home-copy #btn-start { margin-top:20px; font-size:12px; min-height:42px; min-width:130px; }
  .scene-selection { max-width:460px; }
  .selection-caption { display:block; text-align:center; margin-bottom:9px; }
  .selection-caption strong { font-size:11px; }
  .selection-caption p { font-size:9px; margin-top:5px; line-height:1.5; }
  .scene-picker { gap:6px; }
  .scene-picker button { grid-template-columns:1fr; gap:0; padding:5px; text-align:center; }
  .scene-picker img { grid-row:auto; width:100%; height:29px; margin-bottom:6px; }
  .scene-picker strong { font-size:10px; white-space:nowrap; }
  .scene-picker small { font-size:8px; margin-top:3px; }
  .home-footer { flex-direction:column; gap:3px; }
  .home-footer .foot-hint { font-size:9px; white-space:normal; }
  .journal-link { font-size:11px; padding:6px 0; }
  #screen-game { padding:58px 18px 12px; gap:9px; }
  .scene-label { font-size:10px; }
  #screen-game .window { width:min(100%,calc((100svh - 302px) * .8 + 28px)); }
  .hud { top:11px; left:9px; right:9px; }
  .pill,.counter { height:29px; font-size:10px; padding:0 8px; }
  .counter b { font-size:12px; }
  .tool-tray { gap:2px; padding:4px; }
  .tool-button { min-height:48px; padding:6px 4px; gap:7px; }
  .tool-button svg { width:26px; height:29px; }
  .tool-button span { font-size:11px; }
  .tool-button small { font-size:8px; margin-top:4px; }
  .workbench { max-width:440px; }
  .workbench-note { font-size:9px; gap:6px; margin-top:6px; }
  .discovery-list { gap:6px; margin-top:7px; }
  .discovery-list li { gap:4px; font-size:9px; }
  .discovery-list .discovery-state { display:none; }
  .game-controls { width:auto; gap:12px; }
  .quiet-button { font-size:10px; }
  .audio-toggle { height:31px; font-size:9px; padding:0 9px; }
  .control-separator { display:none; }
  .music-credit { font-size:8px; }
  #game-hint { font-size:9px; white-space:normal; }
  .journal { width:calc(100% - 24px); max-height:calc(100svh - 28px); padding:24px 17px; border-radius:8px; }
  .journal-heading h2 { font-size:29px; }
  .journal-heading .eyebrow { font-size:9px; }
  .journal-summary { font-size:10px; padding-bottom:16px; }
  .journal h3 { font-size:16px; gap:10px; }
  .journal h3 small { font-size:8px; }
  .journal-scenes { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .journal-scenes img { height:72px; }
  .journal-items { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .journal-items>div { padding:14px 9px; }
  .journal-items img { height:44px; margin-bottom:10px; }
  .journal-items strong { font-size:11px; }
  .journal-items p { font-size:9px; }
  .journal-badges { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .finish { padding:20px; }
  .finish-card { padding:26px 18px 22px; }
  .finish-collection { font-size:11px; }
  .finish-actions { flex-direction:row; margin:23px 0 19px; gap:8px; }
  .finish-actions .btn { padding:0 15px; font-size:12px; }
}
@media(max-width:899px) and (max-height:650px) {
  .screen { gap:9px; padding-top:53px; padding-bottom:10px; }
  .window { width:min(100%,calc((100svh - 272px) * .8 + 28px)); }
  .home-copy h1 { font-size:28px; }
  .home-copy .eyebrow { margin-bottom:7px; font-size:8px; }
  .home-copy .little-rule { margin:10px 0; }
  .home-copy .sub { font-size:10px; }
  .home-copy #btn-start { margin-top:14px; min-height:38px; }
  .selection-caption p { margin-top:3px; }
  #screen-game { padding-top:53px; gap:7px; }
  #screen-game .window { width:min(100%,calc((100svh - 284px) * .8 + 28px)); }
  .finish-mark { margin-bottom:12px; }
}
@media(max-height:510px) {
  html,body { height:auto; min-height:100%; overflow:auto; }
  .screen,#screen-game { position:relative; min-height:620px; padding-top:65px; }
  .window,#screen-game .window { width:min(560px,100%); }
  .glass { aspect-ratio:1.7; min-height:340px; }
}
