/* Риддлсайд · кабинет помощницы шерифа.
   Layout: one interactive room scene fills the screen; every section opens as an overlay "picked up" from the desk. */
:root {
  --night: #0d0b0a;      /* page ground behind the scene */
  --soot: #171310;       /* panels */
  --soot-2: #221c18;
  --paper: #ece2cc;      /* documents */
  --paper-2: #d8caa9;
  --kraft: #b98a5a;      /* folder card */
  --ink: #221a14;        /* text on paper */
  --ink-soft: #5e5145;
  --fog: #cfc8bd;        /* light text on dark */
  --fog-dim: #8f857a;
  --stamp: #b3261e;      /* rubber stamp red */
  --neon: #ff3b2f;       /* obsession red */
  --amber: #f0b45c;      /* lamp light, focus */
  --cold: #9fb6c8;       /* skeptic blue */
  --line: rgba(236, 226, 204, .14);
  --f-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --f-type: "PT Mono", "Courier New", monospace;
  --f-serif: "PT Serif", Georgia, serif;
  --f-hand: "Caveat", "Comic Sans MS", cursive;
  --f-script: "Marck Script", "Caveat", cursive;
  --f-caps: "Amatic SC", "Caveat", cursive;
  --f-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --top: 56px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--night); color: var(--fog);
  font: 15px/1.5 var(--f-ui); overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 40; height: calc(var(--top) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(to bottom, rgba(10, 8, 7, .96), rgba(10, 8, 7, .82));
  border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
}
.logo { display: flex; flex-direction: column; line-height: 1; gap: 3px; flex: none; text-align: left; }
.logo b { font: 600 20px/1 var(--f-display); letter-spacing: .32em; text-transform: uppercase; color: #f1e7d3; }
.logo small { font: 11px/1 var(--f-type); color: var(--fog-dim); letter-spacing: .04em; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav button { padding: 8px 10px; border-radius: 4px; font: 400 13px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--fog); opacity: .78; }
.nav button:hover, .nav button[aria-current="true"] { opacity: 1; background: rgba(240, 180, 92, .1); color: #fff2dc; }
.tools { display: flex; align-items: center; gap: 8px; flex: none; }
.btn-play {
  padding: 9px 16px; border-radius: 3px; background: var(--stamp); color: #fff4ea;
  font: 600 13px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 6px 18px rgba(179, 38, 30, .35);
}
.btn-play:hover { background: #c92e25; }
.btn-ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 4px; color: var(--fog); }
.btn-ico:hover { background: rgba(255, 255, 255, .06); }
.btn-ico svg { width: 20px; height: 20px; }
.btn-lang { font: 600 12px/1 var(--f-display); letter-spacing: .14em; width: auto; padding: 0 10px; border: 1px solid var(--line); height: 30px; }
.burger { display: none; }
@media (max-width: 1080px) { .nav { display: none; } .burger { display: grid; } .tools { margin-left: auto; } }
@media (max-width: 520px) { #langBtn, #soundBtn { display: none; } .topbar { gap: 10px; } }
@media (max-width: 420px) { .logo small { display: none; } .logo b { font-size: 17px; letter-spacing: .24em; } .btn-play { padding: 9px 12px; } }

/* ---------- stage / scene ---------- */
.stage { position: fixed; inset: calc(var(--top) + env(safe-area-inset-top, 0px)) 0 0 0; overflow: hidden; }
.backdrop { position: absolute; inset: -40px; background: url(assets/img/bg_small.webp) center/cover; filter: blur(28px) brightness(.35) saturate(.8); transform: scale(1.08); }
.scroller { position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
.scroller::-webkit-scrollbar { display: none; }
.scene { position: relative; margin: 0 auto; user-select: none; -webkit-user-select: none; box-shadow: 0 0 120px rgba(0, 0, 0, .9); }
.scene > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.layer { position: absolute; pointer-events: none; transition: filter .25s ease, transform .25s ease, opacity .3s ease; }
.layer.hl { filter: drop-shadow(0 0 6px rgba(255, 226, 170, .75)) drop-shadow(0 0 1px rgba(255, 240, 210, .9)); }
.layer.off { opacity: 0; }
.deco { position: absolute; pointer-events: none; }

.hs { position: absolute; z-index: 6; border-radius: 6px; }
.hs::before { content: ""; position: absolute; inset: 0; border-radius: inherit; transition: background .25s, box-shadow .25s; }
.hs.zone:hover::before, .hs.zone:focus-visible::before { background: radial-gradient(closest-side, rgba(255, 232, 190, .14), transparent); box-shadow: 0 0 0 1px rgba(255, 232, 190, .28) inset; }
.hs .tip {
  position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%) translateY(4px);
  padding: 4px 9px; white-space: nowrap; border-radius: 3px; pointer-events: none;
  background: rgba(14, 11, 9, .9); color: #f4e9d4; font: 500 15px/1 var(--f-hand); letter-spacing: .02em;
  opacity: 0; transition: opacity .18s, transform .18s; border: 1px solid rgba(240, 180, 92, .3);
}
.hs.tipdown .tip { bottom: auto; top: calc(100% + 6px); }
.hs:hover .tip, .hs:focus-visible .tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.hs .dot { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: rgba(255, 226, 170, .85); box-shadow: 0 0 0 0 rgba(255, 226, 170, .6); opacity: 0; transition: opacity .4s; animation: ping 2.2s infinite; pointer-events: none; }
body.dots .hs .dot { opacity: .85; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 226, 170, .55); } 70% { box-shadow: 0 0 0 14px rgba(255, 226, 170, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 226, 170, 0); } }

/* monitor screen glow */
.screen { position: absolute; left: 22.35%; top: 34.3%; width: 23.4%; height: 17.6%; overflow: hidden; display: grid; place-items: center; text-align: center; border-radius: 2px;
  background: radial-gradient(ellipse at 50% 45%, rgba(70, 110, 140, .16), rgba(0, 0, 0, 0) 70%); }
.screen span { font: 1.05cqw/1.3 var(--f-type); color: rgba(150, 200, 230, .5); letter-spacing: .08em; }
.scene { container-type: inline-size; }
.screen .obs-msg { display: none; color: rgba(255, 70, 50, .85); font: 1.6cqw/1 var(--f-hand); }
body.obs .screen .obs-msg { display: block; animation: blink 3.6s steps(1) infinite; }
body.obs .screen .idle { display: none; }
@keyframes blink { 0%, 72% { opacity: 0; } 73%, 80% { opacity: 1; } 81%, 86% { opacity: 0; } 87%, 92% { opacity: 1; } 93% { opacity: 0; } }

/* stickers text */
.st-text { position: absolute; display: grid; place-items: center; text-align: center; white-space: pre-line; color: #3b2f1c; font: 700 .78cqw/1.05 var(--f-hand); transform: rotate(-4deg); pointer-events: none; padding: 2px; }
.st-text.s2 { transform: rotate(5deg); font-size: .62cqw; }
body.obs .st-text.s2 .norm { display: none; }
.st-text.s2 .o { display: none; color: #8b1010; font: 700 1.9cqw/1 var(--f-hand); }
body.obs .st-text.s2 .o { display: block; }
.torn { animation: tear .9s ease-in forwards; }
@keyframes tear { 0% { transform: rotate(0) translateY(0); opacity: 1; } 25% { transform: rotate(-14deg) translateY(-3%); } 100% { transform: rotate(38deg) translateY(160%); opacity: 0; } }

/* calendar circle */
.cal-ring { position: absolute; border: .25cqw solid rgba(190, 20, 20, .85); border-radius: 50%; transform: rotate(-8deg); pointer-events: none; }

/* frames */
.frame-art { position: absolute; display: grid; place-items: center; padding: .5cqw; pointer-events: none; opacity: 0; transition: opacity .8s; }
.frame-art.on { opacity: 1; }
.frame-art .cert { width: 100%; height: 100%; display: grid; align-content: center; justify-items: center; gap: .3cqw; text-align: center; color: #3a2c1a; }
.frame-art .cert b { font: 600 .9cqw/1 var(--f-display); letter-spacing: .18em; }
.frame-art .cert i { display: block; width: 70%; height: .12cqw; background: rgba(58, 44, 26, .35); }
.frame-art .seal { width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: radial-gradient(circle, #d4a63c 0 40%, #a8781f 41% 60%, #d4a63c 61%); box-shadow: 0 0 0 .1cqw rgba(0, 0, 0, .15); }
.frame-art.gold .seal { background: radial-gradient(circle, #f3cf60 0 40%, #c4901d 41% 60%, #f3cf60 61%); }
.frame-art.diploma { opacity: 1; }

/* tally marks on the board (obsession) */
.tally { position: absolute; left: 35%; top: 12%; width: 18%; height: 18%; opacity: 0; transition: opacity 2.5s; }
body.obs .tally { opacity: .55; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .15; } 50% { opacity: .6; } }

/* obsession overlay */
.obs-veil { position: absolute; inset: 0; pointer-events: none; z-index: 4; opacity: 0; transition: opacity 1.2s;
  background: radial-gradient(circle at 15% 47%, rgba(255, 50, 30, .38), rgba(255, 50, 30, .08) 30%, rgba(60, 0, 0, .0) 55%), linear-gradient(rgba(70, 0, 0, .22), rgba(30, 0, 0, .35));
  mix-blend-mode: hard-light; }
body.obs .obs-veil { opacity: 1; }
body.obs .layer.lamp { opacity: 1; filter: drop-shadow(0 0 1.4cqw rgba(255, 60, 30, .9)) brightness(1.15); animation: lava 4s ease-in-out infinite; }
@keyframes lava { 0%, 100% { filter: drop-shadow(0 0 1.2cqw rgba(255, 60, 30, .8)) brightness(1.05); } 50% { filter: drop-shadow(0 0 2cqw rgba(255, 70, 30, 1)) brightness(1.25); } }
.flicker { animation: flick .7s steps(2) 1; }
@keyframes flick { 0% { filter: brightness(1); } 20% { filter: brightness(.35) contrast(1.4); } 40% { filter: brightness(1.1); } 60% { filter: brightness(.2); } 100% { filter: brightness(1); } }
body.obs .wanted-glitch { animation: jitter 5s infinite; }
@keyframes jitter { 0%, 93%, 100% { transform: none; filter: none; } 94% { transform: translate(.3cqw, -.1cqw); filter: hue-rotate(80deg) contrast(2); } 96% { transform: translate(-.2cqw, .1cqw); } }

.shake { animation: shake .45s linear 4; }
@keyframes shake { 0%, 100% { transform: translate(0); } 25% { transform: translate(-1.5%, .6%) rotate(-1.2deg); } 75% { transform: translate(1.5%, -.4%) rotate(1.2deg); } }

/* path badge */
.path-badge {
  position: absolute; z-index: 20; left: max(14px, env(safe-area-inset-left, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 40px;
  background: rgba(13, 11, 10, .78); border: 1px solid var(--line); backdrop-filter: blur(4px);
  font: 500 12px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase;
}
.path-badge img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
body.obs .path-badge { border-color: rgba(255, 59, 47, .45); color: #ffd9d2; }
body.obs .path-badge img { animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hint {
  position: absolute; z-index: 20; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  padding: 6px 14px; border-radius: 30px; background: rgba(13, 11, 10, .7); font: 500 18px/1.1 var(--f-hand); color: #f2e6cf;
  white-space: nowrap; transition: opacity .8s; pointer-events: none;
}
.hint.gone { opacity: 0; }
@media (max-width: 640px) { .hint { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); font-size: 16px; } }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 90; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(560px, calc(100% - 32px)); display: grid; gap: 8px; pointer-events: none; }
.note {
  padding: 12px 18px 12px; background: var(--paper); color: var(--ink); border-radius: 2px;
  font: 500 21px/1.25 var(--f-hand); box-shadow: 0 12px 30px rgba(0, 0, 0, .55); transform: rotate(-.6deg);
  animation: noteIn .35s ease-out; white-space: pre-line;
}
.note.out { animation: noteOut .4s ease-in forwards; }
@keyframes noteIn { from { opacity: 0; transform: translateY(14px) rotate(-.6deg); } }
@keyframes noteOut { to { opacity: 0; transform: translateY(10px) rotate(-.6deg); } }
.achs { position: fixed; z-index: 95; right: max(14px, env(safe-area-inset-right, 0px)); top: calc(var(--top) + 66px + env(safe-area-inset-top, 0px)); display: grid; gap: 10px; pointer-events: none; width: min(330px, calc(100% - 28px)); }
@media (max-width: 640px) { .achs { top: auto; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); } .ach { grid-template-columns: 40px 1fr; padding: 8px 12px 8px 8px; } .ach img { width: 40px; height: 40px; } }
.ach {
  display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 10px 14px 10px 10px;
  background: linear-gradient(135deg, #1d1814, #120f0d); border: 1px solid rgba(240, 180, 92, .35); border-radius: 6px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .6); animation: achIn .5s cubic-bezier(.2, 1.4, .4, 1);
}
.ach.shame { border-color: rgba(179, 38, 30, .55); }
.ach.obs { border-color: rgba(255, 59, 47, .55); }
.ach.skep { border-color: rgba(159, 182, 200, .5); }
.ach img { width: 52px; height: 52px; object-fit: contain; }
.ach small { display: block; font: 600 11px/1.2 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.ach.shame small, .ach.obs small { color: #ff7a6c; }
.ach.skep small { color: var(--cold); }
.ach b { display: block; font: 600 16px/1.2 var(--f-display); letter-spacing: .04em; color: #f6ead4; margin-top: 2px; }
.ach.out { animation: noteOut .4s ease-in forwards; }
@keyframes achIn { from { opacity: 0; transform: translateX(40px) scale(.9); } }

/* ---------- walkie transcript ---------- */
.walkie-log {
  position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: min(380px, calc(100% - 32px)); padding: 12px 14px; border-radius: 6px;
  background: rgba(10, 14, 12, .92); border: 1px solid rgba(120, 200, 150, .25); box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
  font: 13px/1.45 var(--f-type); color: #bfe8cc;
}
.walkie-log .ch { font-size: 11px; letter-spacing: .14em; color: #6fb488; margin-bottom: 6px; display: flex; justify-content: space-between; }
.walkie-log p { margin: 4px 0; }
.walkie-log p b { color: #e9fff0; font-weight: 400; }
.walkie-log.obs { border-color: rgba(255, 59, 47, .4); color: #ffc9c2; }

/* ---------- overlays ---------- */
.ov { position: fixed; inset: calc(var(--top) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 35; display: flex; flex-direction: column; background: rgba(8, 6, 5, .86); backdrop-filter: blur(5px); animation: ovIn .3s ease-out; }
@keyframes ovIn { from { opacity: 0; } }
.ov-head {
  flex: none; display: flex; align-items: center; gap: 12px;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
}
.ov-head h2 { margin: 0; font: 600 18px/1 var(--f-display); letter-spacing: .3em; text-transform: uppercase; color: #efe3cb; }
.ov-head .x { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); }
.ov-head .x:hover { background: rgba(255, 255, 255, .06); }
.ov-head .x svg { width: 18px; height: 18px; }
.ov-body { flex: 1; min-height: 0; overflow: auto; padding: 0 max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }

/* paper basics */
.paper { background: var(--paper); color: var(--ink); background-image: radial-gradient(rgba(120, 90, 50, .05) 1px, transparent 1px), linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(0, 0, 0, .04)); background-size: 4px 4px, 100% 100%; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
.typed { font: 15px/1.55 var(--f-type); }
.hand { font: 500 22px/1.25 var(--f-hand); }

/* ---------- people ---------- */
.files { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: 210px 1fr; gap: 22px; align-items: start; }
.file-tabs { display: grid; gap: 6px; position: sticky; top: 0; }
.file-tabs button {
  text-align: left; padding: 9px 12px 9px 14px; border-radius: 3px 10px 10px 3px; background: var(--kraft); color: #2b1d10;
  font: 600 13px/1.15 var(--f-display); letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); position: relative;
  transition: transform .15s;
}
.file-tabs button:hover { transform: translateX(4px); }
.file-tabs button[aria-current="true"] { background: var(--paper); transform: translateX(10px); }
.file-tabs button.seen::after { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: rgba(43, 29, 16, .45); }
.file-sheet { position: relative; padding: 34px 36px 40px; min-height: 520px; border-radius: 2px; transform: rotate(.25deg); }
.file-sheet .clip { position: absolute; top: -14px; left: 70px; width: 22px; height: 62px; border: 3px solid #9aa1a6; border-radius: 12px; z-index: 3; box-shadow: 1px 2px 2px rgba(0, 0, 0, .3); }
.sheet-top { display: grid; grid-template-columns: minmax(180px, 250px) 1fr; gap: 28px; align-items: start; }
.polaroid { position: relative; transform: rotate(-3deg); box-shadow: 0 10px 22px rgba(0, 0, 0, .35); container-type: inline-size; background: #f3efe6; }
.polaroid img { width: 100%; }
.polaroid .cap { position: absolute; left: 7%; right: 7%; top: 80%; bottom: 1.5%; display: grid; place-items: center; text-align: center; color: #1f2a52; font: 600 8.4cqw/1.02 var(--f-hand); }
.cap.tyler { font: 400 7.6cqw/1.05 var(--f-script); color: #111; transform: rotate(-4deg); }
.cap.carrie { color: #3c5a3a; font-size: 7.4cqw; }
.cap.ethan { font: 700 9.5cqw/1 var(--f-caps); color: #2a2a2a; letter-spacing: .02em; }
.cap.nate { font: 400 7.4cqw/1.1 var(--f-script); color: #0f2346; }
.cap.pamela { top: 84%; font-size: 7.2cqw; color: #b0185a; right: 14%; }
.cap.marshall { font: 700 7.8cqw/1 var(--f-hand); color: #121212; letter-spacing: .03em; text-transform: uppercase; }
.cap.judy { color: #6a2a7a; }
.cap.candice { color: #c2186b; font: 400 7.2cqw/1.05 var(--f-script); }
.doodle { position: absolute; pointer-events: none; }
.sheet-head h3 { margin: 0 0 4px; font: 600 30px/1.05 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: #1e1712; text-wrap: balance; }
.sheet-head .sub { font: 12px/1.3 var(--f-type); color: var(--ink-soft); letter-spacing: .04em; margin-bottom: 14px; text-transform: uppercase; }
.rows { display: grid; gap: 6px; margin: 0; }
.rows div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding-bottom: 6px; border-bottom: 1px dashed rgba(34, 26, 20, .2); }
.rows dt { font: 700 12px/1.5 var(--f-type); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.rows dd { margin: 0; font: 15px/1.5 var(--f-type); }
.rows dd a { color: #23407a; }
.body-typed { margin: 18px 0 0; font: 15px/1.6 var(--f-type); }
.note-hand { margin-top: 22px; padding: 14px 16px 6px; border-left: 3px solid rgba(179, 38, 30, .35); color: #1f3157; }
.note-hand b { display: block; font: 700 22px/1 var(--f-hand); margin-bottom: 6px; color: #8a1d16; }
.note-hand p { margin: 0 0 10px; font: 500 23px/1.25 var(--f-hand); }
.stamp {
  display: inline-block; padding: 6px 12px; border: 3px solid currentColor; border-radius: 4px; color: var(--stamp);
  font: 600 18px/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; transform: rotate(-7deg); opacity: .82; mix-blend-mode: multiply;
}
.file-sheet .stamp { position: absolute; right: 30px; bottom: 26px; }
@media (max-width: 820px) {
  .files { grid-template-columns: 1fr; gap: 12px; }
  .file-tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; position: static; padding: 4px 2px 10px; scrollbar-width: thin; }
  .file-tabs button { border-radius: 8px 8px 2px 2px; }
  .file-tabs button:hover, .file-tabs button[aria-current="true"] { transform: translateY(-3px); }
  .file-sheet { padding: 26px 18px 30px; transform: none; }
  .sheet-top { grid-template-columns: 1fr; gap: 18px; }
  .polaroid { max-width: 250px; margin: 0 auto; }
  .rows div { grid-template-columns: 1fr; gap: 0; }
  .file-sheet .stamp { position: static; margin-bottom: 10px; }
  .sheet-head h3 { font-size: 24px; }
}

/* ---------- map ---------- */
.map-wrap { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.map-paper { position: relative; aspect-ratio: 1000 / 700; max-width: 100%; border-radius: 3px; overflow: hidden; background: #e4d7b8;
  background-image: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .35), transparent 60%), radial-gradient(ellipse at 80% 90%, rgba(120, 80, 30, .2), transparent 60%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6), inset 0 0 80px rgba(110, 70, 30, .35); }
.map-paper svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-paper svg text { font-family: var(--f-display); fill: #4b3b29; }
.fogblob { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(240, 238, 233, .97), rgba(232, 228, 220, .85) 45%, rgba(228, 224, 216, 0)); animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(-3%, 0) scale(1); } to { transform: translate(3%, -2%) scale(1.08); } }
.map-night { position: absolute; inset: 0; pointer-events: none; background: rgba(18, 14, 10, .5); --mx: 50%; --my: 50%;
  -webkit-mask-image: radial-gradient(circle 150px at var(--mx) var(--my), transparent 0, transparent 45%, #000 100%); mask-image: radial-gradient(circle 150px at var(--mx) var(--my), transparent 0, transparent 45%, #000 100%); }
@media (hover: none), (pointer: coarse) { .map-night { display: none; } }
.pin { position: absolute; width: 34px; height: 34px; margin: -30px 0 0 -17px; z-index: 3; display: grid; place-items: center; }
.pin span { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--stamp); box-shadow: 2px 3px 4px rgba(0, 0, 0, .4), inset -3px -3px 0 rgba(0, 0, 0, .18); display: grid; place-items: center; }
.pin span i { transform: rotate(45deg); font: 600 13px/1 var(--f-display); color: #fff; font-style: normal; }
.pin:hover span, .pin[aria-current="true"] span { background: #1b1a3a; }
.pin.seen span { background: #7b2a24; }
.pin.fog { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.pin.fog span { background: transparent; box-shadow: none; transform: none; }
body.obs .map-paper { filter: sepia(.4) hue-rotate(-20deg) saturate(1.4); }
body.obs .pin span { animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 59, 47, .25), 2px 3px 4px rgba(0, 0, 0, .4); } }
.map-hint { margin: 10px 0 0; font: 500 19px/1.2 var(--f-hand); color: var(--fog-dim); }
.loc-card { position: sticky; top: 0; padding: 16px 18px 20px; border-radius: 2px; transform: rotate(.6deg); min-height: 200px; }
.loc-card .ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #222; border: 8px solid #f3efe6; border-bottom-width: 22px; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); transform: rotate(-2deg); margin-bottom: 14px; }
.loc-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.loc-card h3 { margin: 0; font: 600 22px/1.1 var(--f-display); letter-spacing: .05em; text-transform: uppercase; text-wrap: balance; }
.loc-card .sub { font: 12px/1.35 var(--f-type); color: var(--ink-soft); margin: 4px 0 10px; }
.loc-card p.txt { margin: 0; font: 500 21px/1.24 var(--f-hand); color: #1f3157; }
.loc-card .obs { margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(139, 16, 16, .35); color: #8b1010; font: 400 19px/1.25 var(--f-script); }
.loc-card .obs small { display: block; font: 11px/1.2 var(--f-type); color: #8b5050; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; }
.loc-card .empty { font: 500 22px/1.25 var(--f-hand); color: var(--ink-soft); }
.ph .fx-neon { animation: neon 3.4s infinite; }
@keyframes neon { 0%, 18%, 22%, 62%, 64%, 100% { filter: brightness(1) saturate(1.05); } 19%, 21%, 63% { filter: brightness(.55) saturate(.6); } }
.ph .fx-tube { animation: tube 5s infinite; }
@keyframes tube { 0%, 88%, 92%, 100% { filter: brightness(1); } 89%, 91% { filter: brightness(1.35) contrast(1.1); } 90% { filter: brightness(.6); } }
.ph .fx-pulse { animation: rpulse 4s ease-in-out infinite; }
@keyframes rpulse { 50% { filter: brightness(1.12) saturate(1.25); } }
.ph .mist { position: absolute; inset: -20%; background: radial-gradient(ellipse at 30% 60%, rgba(230, 230, 230, .35), transparent 50%), radial-gradient(ellipse at 70% 40%, rgba(230, 230, 230, .3), transparent 50%); animation: drift 10s ease-in-out infinite alternate; pointer-events: none; }
.ph .fogged { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; background: radial-gradient(circle at 50% 50%, #c9c6c0, #8e8b86); color: #3d3a36; font: 500 22px/1.2 var(--f-hand); }
@media (max-width: 900px) { .map-wrap { grid-template-columns: 1fr; } .loc-card { position: static; transform: none; } .loc-card .ph { max-width: 260px; } }

/* ---------- case (folder) ---------- */
.case-wrap { max-width: 1180px; margin: 0 auto; }
.case-stage { position: relative; aspect-ratio: 1800 / 1209; background: url(assets/img/folder_top.webp) center/cover; container-type: inline-size; border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.case-page { position: absolute; left: 53.6%; top: 8.6%; width: 32.6%; height: 73.4%; padding: 3.2cqw 2.4cqw 2cqw; color: var(--ink); overflow: auto; scrollbar-width: thin; }
.case-page h3 { margin: 0; font: 600 1.15cqw/1.2 var(--f-type); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.case-page h4 { margin: .2cqw 0 1cqw; font: 600 3cqw/1 var(--f-display); letter-spacing: .03em; color: #1b140f; }
.case-page p { margin: 0 0 .9cqw; font: 1.2cqw/1.55 var(--f-type); }
.case-page .path { font: 500 1.6cqw/1.2 var(--f-hand); color: #1f3157; margin: 1.2cqw 0; }
.case-page > .stamp { position: absolute; right: 1.6cqw; top: 1.4cqw; font-size: 1.1cqw; border-width: .2cqw; }
.case-page .stores { display: flex; flex-wrap: wrap; gap: .8cqw; margin-top: 1.4cqw; }
.store { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 6px; background: #111; color: #fff; text-decoration: none; font: 600 13px/1 var(--f-ui); letter-spacing: .02em; border: 1px solid rgba(255, 255, 255, .15); }
.store svg { width: 18px; height: 18px; }
.store:hover { background: #2a2a2a; }
.case-stage .store { font-size: 1.05cqw; padding: .7cqw 1cqw; }
.case-tabs { position: absolute; left: 86.2%; top: 14%; display: grid; gap: .6cqw; }
.case-tabs button { padding: .7cqw 1.1cqw .7cqw .8cqw; border-radius: 0 .8cqw .8cqw 0; background: #d7c79f; color: #2b1d10; font: 600 1.05cqw/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; box-shadow: .2cqw .3cqw .5cqw rgba(0, 0, 0, .3); text-align: left; transition: transform .15s; }
.case-tabs button:nth-child(2) { background: #c9d6b0; }
.case-tabs button:nth-child(3) { background: #e3b3a7; }
.case-tabs button[aria-current="true"] { transform: translateX(.7cqw); }
.case-flap { position: absolute; left: 13%; top: 8%; width: 34%; height: 74%; }
.flap-photo { position: absolute; left: 10%; top: 6%; width: 52%; background: #f3efe6; padding: .7cqw .7cqw 2.4cqw; transform: rotate(-5deg); box-shadow: .3cqw .5cqw 1cqw rgba(0, 0, 0, .35); }
.flap-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.flap-photo .fogged { aspect-ratio: 4 / 5; display: grid; place-items: center; background: radial-gradient(circle, #b9b5ae, #6f6c68); color: #2c2a27; font: 500 1.6cqw/1.1 var(--f-hand); text-align: center; padding: 1cqw; }
.flap-photo span { position: absolute; left: 0; right: 0; bottom: .5cqw; text-align: center; font: 600 1.4cqw/1 var(--f-hand); color: #333; }
.bizcard { position: absolute; left: 34%; top: 58%; width: 56%; aspect-ratio: 3.5 / 2; background: #fbfaf6; transform: rotate(6deg); box-shadow: .2cqw .4cqw .8cqw rgba(0, 0, 0, .35); padding: 1.2cqw 1.3cqw; color: #1a1a1a; text-align: left; display: grid; align-content: center; gap: .3cqw; transition: transform .2s; }
.bizcard:hover { transform: rotate(3deg) scale(1.04); }
.bizcard b { font: 400 1.7cqw/1 var(--f-serif); letter-spacing: .14em; }
.bizcard i { font: italic 1cqw/1.2 var(--f-serif); color: #555; }
.bizcard small { font: 1.05cqw/1.3 var(--f-serif); color: #333; margin-top: .4cqw; letter-spacing: .06em; }
.bizcard::before { content: ""; position: absolute; top: -.9cqw; left: 46%; width: 1cqw; height: 3cqw; border: .25cqw solid #9aa1a6; border-radius: 1cqw; }
.locked-3 { position: absolute; left: 6%; right: 6%; top: 60%; display: grid; place-items: center; }
.flap-stamp { position: absolute; left: 12%; top: 64%; font-size: 2.1cqw; border-width: .3cqw; transform: rotate(-11deg); }
.case-flap .bizcard ~ .flap-stamp, .case-flap .flap-stamp:has(+ .bizcard) { top: 82%; left: 4%; }
.locked-3 .stamp { font-size: 2.6cqw; border-width: .35cqw; transform: rotate(-12deg); }
/* narrow: plain sheet */
.case-mobile { display: none; }
@media (max-width: 860px) {
  .case-stage { display: none; }
  .case-mobile { display: block; }
  .cm-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; }
  .cm-tabs button { flex: none; padding: 9px 14px; border-radius: 8px 8px 2px 2px; background: var(--kraft); color: #2b1d10; font: 600 13px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; }
  .cm-tabs button[aria-current="true"] { background: var(--paper); }
  .cm-sheet { position: relative; padding: 22px 18px 26px; }
  .cm-sheet h3 { margin: 0; font: 600 12px/1.2 var(--f-type); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
  .cm-sheet h4 { margin: 4px 0 14px; font: 600 28px/1 var(--f-display); color: #1b140f; }
  .cm-sheet p { margin: 0 0 12px; font: 14px/1.6 var(--f-type); }
  .cm-sheet .stamp { position: absolute; right: 14px; top: 14px; font-size: 13px; }
  .cm-row { display: flex; gap: 14px; align-items: flex-start; margin: 4px 0 16px; }
  .cm-row .flap-photo { position: relative; left: auto; top: auto; width: 46%; padding: 6px 6px 22px; }
  .cm-row .flap-photo span { font-size: 15px; bottom: 4px; }
  .cm-row .flap-photo .fogged { font-size: 17px; }
  .cm-row .bizcard { position: relative; left: auto; top: 10px; width: 54%; padding: 10px 12px; }
  .cm-row .bizcard b { font-size: 15px; } .cm-row .bizcard i { font-size: 11px; } .cm-row .bizcard small { font-size: 11px; }
  .cm-row .bizcard::before { display: none; }
  .cm-sheet .path { font: 500 20px/1.2 var(--f-hand); color: #1f3157; }
  .cm-sheet .stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
}

/* ---------- phone ---------- */
.phone-wrap { max-width: min(980px, calc((100vh - 340px) * 1.33)); min-width: min(100%, 360px); margin: 0 auto; display: grid; gap: 12px; }
@media (max-width: 700px) { .phone-wrap { max-width: 100%; } }
.phone-crop { position: relative; width: 100%; aspect-ratio: 1445 / 1088; overflow: hidden; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.phone-img { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1445 / 1088; container-type: inline-size; }
.phone-img > img { width: 100%; height: 100%; }
@media (max-width: 700px) {
  .phone-crop { aspect-ratio: 775 / 640; }
  .phone-img { width: calc(100% * 1445 / 775); left: calc(-100% * 440 / 775); top: calc(-100% * 170 / 640); }
  .ph-hand { display: none; }
}
.lcd { position: absolute; left: 59%; top: 21.4%; width: 19.4%; height: 10.3%; padding: .5cqw .8cqw; display: grid; grid-template-rows: auto 1fr; color: #1c2a1e; font: 1.05cqw/1.2 var(--f-type); background: linear-gradient(rgba(170, 196, 160, .55), rgba(140, 170, 130, .5)); box-shadow: inset 0 0 .6cqw rgba(0, 0, 0, .25); overflow: hidden; }
.lcd .r1 { display: flex; justify-content: space-between; gap: .5cqw; white-space: nowrap; }
.lcd .r2 { align-self: center; font-size: 1.9cqw; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: clip; direction: rtl; text-align: left; }
.lcd.lit { background: linear-gradient(rgba(200, 236, 180, .8), rgba(170, 214, 150, .75)); }
.lcd.blink { animation: lcdb .5s steps(1) infinite; }
@keyframes lcdb { 50% { background: linear-gradient(rgba(220, 255, 190, .95), rgba(190, 240, 160, .9)); } }
.pkey { position: absolute; width: 5.6%; height: 4.8%; margin: -2.4% 0 0 -2.8%; border-radius: .6cqw; }
.pkey:hover { background: rgba(255, 255, 255, .08); }
.pkey:active, .pkey.down { background: rgba(255, 255, 255, .2); }
.pmini { position: absolute; height: 2.5%; margin-top: -1.25%; border-radius: .3cqw; background: #1b1b1b; color: #ddd; font: 600 .78cqw/1 var(--f-ui); display: grid; place-items: center; letter-spacing: .04em; }
.pmini:hover { background: #2b2b2b; }
.speed { position: absolute; left: 76%; top: 42.9%; width: 5%; height: 19%; display: grid; grid-template-rows: repeat(6, 1fr); }
.speed button { font: 600 1cqw/1 var(--f-hand); color: #1d2b6b; text-align: left; padding-left: .3cqw; border-radius: .2cqw; overflow: hidden; white-space: nowrap; }
.speed button:hover { background: rgba(30, 50, 140, .1); }
.ph-hand { position: absolute; left: 12.5%; top: 16%; width: 14%; height: 58%; border-radius: 4cqw; }
.ph-hand:hover { box-shadow: 0 0 0 .25cqw rgba(255, 226, 170, .35) inset; }
.led { position: absolute; left: 41.5%; top: 32.6%; width: 1.1%; aspect-ratio: 1; border-radius: 50%; background: #3a0d0d; box-shadow: inset 0 0 .2cqw rgba(0, 0, 0, .6); }
.led.on { background: #ff3b2f; box-shadow: 0 0 .8cqw #ff3b2f; animation: lcdb .6s steps(1) infinite; }
.ph-controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pbtn { padding: 11px 18px; border-radius: 4px; border: 1px solid var(--line); font: 600 13px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; background: var(--soot-2); }
.pbtn:hover { background: #2d2520; }
.pbtn.go { background: #1f5b34; border-color: #2e7a49; }
.pbtn.go:hover { background: #276d3f; }
.pbtn.end { background: #6e1b16; border-color: #8f2a22; }
.pbtn.end:hover { background: #842219; }
.subs { min-height: 132px; padding: 14px 18px; border-radius: 4px; background: rgba(0, 0, 0, .55); border: 1px solid var(--line); font: 16px/1.5 var(--f-ui); }
.subs p { margin: 0 0 8px; }
.subs b { display: inline-block; min-width: 92px; margin-right: 8px; font: 600 12px/1.6 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); vertical-align: top; }
.subs .stage-dir { color: var(--fog-dim); font-style: italic; }
.subs em { font-style: italic; color: #fff; }
.subs .hintline { color: var(--fog-dim); font-size: 14px; }
.subs.glitch { animation: gl .25s steps(2) 3; }
@keyframes gl { 50% { transform: translateX(3px); filter: hue-rotate(90deg); } }

/* ---------- radio ---------- */
.radio-wrap { max-width: 720px; margin: 0 auto; display: grid; gap: 16px; }
.radio {
  position: relative; display: grid; grid-template-columns: 1fr 1.25fr; gap: 22px; padding: 26px; border-radius: 16px;
  background: linear-gradient(160deg, #6b3e22, #4a2913 60%, #3a1f0e); box-shadow: 0 24px 60px rgba(0, 0, 0, .65), inset 0 2px 0 rgba(255, 255, 255, .12), inset 0 -4px 0 rgba(0, 0, 0, .3);
}
.grille { border-radius: 10px; min-height: 210px; background: repeating-linear-gradient(90deg, #2a2420 0 3px, #8f8778 3px 7px); box-shadow: inset 0 0 0 6px #9c958a, inset 0 0 20px rgba(0, 0, 0, .5); }
.radio-face { display: grid; gap: 16px; align-content: start; }
.dial-win { position: relative; height: 70px; border-radius: 8px; background: linear-gradient(#f3e5c0, #dcc89a); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .45); overflow: hidden; }
.dial-win .scale { position: absolute; inset: 8px 12px auto; height: 26px; display: flex; justify-content: space-between; font: 11px/1 var(--f-type); color: #4a3520; border-bottom: 1px solid rgba(74, 53, 32, .5); }
.dial-win .scale span { position: relative; }
.dial-win .scale span::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 1px; height: 7px; background: #4a3520; }
.needle { position: absolute; top: 4px; bottom: 4px; width: 2px; background: #c0211a; box-shadow: 0 0 4px rgba(192, 33, 26, .7); transition: left .08s; }
.dial-win .st { position: absolute; left: 12px; right: 12px; bottom: 8px; font: 600 13px/1 var(--f-display); letter-spacing: .1em; color: #3a2614; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio label { display: grid; gap: 6px; font: 600 11px/1 var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: #f0d9b8; }
.radio input[type=range] { width: 100%; accent-color: #e7c27c; }
.radio .knobs { display: flex; gap: 18px; align-items: center; }
.knob { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d9d2c3, #8b8476 60%, #5f594d); box-shadow: 0 4px 8px rgba(0, 0, 0, .5); position: relative; flex: none; }
.knob::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 16px; margin-left: -1.5px; background: #3a2a1a; border-radius: 2px; }
.radio .pwr { padding: 8px 12px; border-radius: 4px; background: #2a170b; color: #f0d9b8; font: 600 12px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.radio .pwr[aria-pressed="true"] { background: #e7c27c; color: #2a170b; }
.ticker { min-height: 70px; padding: 12px 16px; border-radius: 6px; background: rgba(0, 0, 0, .5); border: 1px solid var(--line); font: 15px/1.5 var(--f-type); color: #e8dcc6; }
.ticker.whisper { color: #ff8a7c; font: 400 22px/1.3 var(--f-script); }
.linkbtn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 4px; border: 1px solid var(--line); text-decoration: none; font: 600 13px/1.2 var(--f-display); letter-spacing: .1em; text-transform: uppercase; background: var(--soot-2); justify-self: start; }
.linkbtn:hover { background: #2d2520; }
@media (max-width: 600px) { .radio { grid-template-columns: 1fr; padding: 18px; } .grille { min-height: 90px; } }

/* ---------- ledger ---------- */
.ledger { max-width: 820px; margin: 0 auto; padding: 30px 32px 36px; border-radius: 2px; }
.ledger h3 { margin: 0; font: 600 26px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.ledger .sub { font: 12px/1.4 var(--f-type); color: var(--ink-soft); margin: 6px 0 18px; text-transform: uppercase; letter-spacing: .06em; }
.tally-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.tally-row > div { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 8px; padding: 8px; border: 1px solid rgba(34, 26, 20, .2); border-radius: 3px; background: rgba(255, 255, 255, .25); }
.tally-row img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }
.tally-row b { display: block; font: 600 20px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.tally-row small { font: 11px/1.2 var(--f-type); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.ach-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ach-list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 2px; border-bottom: 1px dashed rgba(34, 26, 20, .22); }
.ach-list li img { width: 32px; height: 32px; object-fit: contain; opacity: .3; filter: grayscale(1); }
.ach-list li b { display: block; font: 600 15px/1.2 var(--f-display); letter-spacing: .05em; text-transform: uppercase; color: rgba(34, 26, 20, .45); }
.ach-list li span { font: 13px/1.35 var(--f-type); color: var(--ink-soft); }
.ach-list li.got img { opacity: 1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }
.ach-list li.got b { color: #1b140f; }
.ach-list li .chk { font: 600 12px/1 var(--f-display); letter-spacing: .14em; color: var(--stamp); border: 2px solid var(--stamp); padding: 4px 6px; transform: rotate(-6deg); opacity: 0; text-transform: uppercase; }
.ach-list li.got .chk { opacity: .85; }
.ledger-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 18px; }
.ledger-foot .done { font: 500 22px/1.2 var(--f-hand); color: #1f3157; }
.mini-btn { padding: 9px 14px; border-radius: 3px; border: 1px solid rgba(34, 26, 20, .35); font: 600 12px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.mini-btn:hover { background: rgba(0, 0, 0, .06); }
.mini-btn.dark { background: #1b140f; color: var(--paper); border-color: #1b140f; }
@media (max-width: 640px) { .ledger { padding: 22px 16px; } .tally-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- PC ---------- */
.pc-wrap { max-width: 1100px; margin: 0 auto; height: 100%; display: flex; flex-direction: column; }
.monitor { flex: 1; min-height: 480px; padding: 18px 18px 34px; border-radius: 14px; background: linear-gradient(#3b3c3d, #232425); box-shadow: 0 24px 60px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .1); display: flex; position: relative; }
.monitor::after { content: "CountyOS"; position: absolute; left: 50%; bottom: 9px; transform: translateX(-50%); font: 600 11px/1 var(--f-display); letter-spacing: .3em; color: #8a8c8e; }
.os { position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: 3px; display: flex; flex-direction: column; font: 13px/1.4 Tahoma, Verdana, "Segoe UI", sans-serif; color: #111;
  background: radial-gradient(circle at 70% 40%, rgba(255, 255, 255, .08), transparent 40%), linear-gradient(160deg, #1f4e5f, #10303d); }
.os .wall { position: absolute; right: 6%; bottom: 14%; text-align: center; color: rgba(255, 255, 255, .55); pointer-events: none; }
.os .wall img { width: 110px; margin: 0 auto 8px; opacity: .55; }
.os .wall b { display: block; font: 600 14px/1.2 var(--f-display); letter-spacing: .22em; text-transform: uppercase; }
.os .wall small { font: 11px/1 var(--f-type); }
.icons { position: relative; z-index: 1; display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 92px); grid-auto-columns: 92px; gap: 6px; padding: 14px; align-content: start; justify-content: start; flex: 1; min-height: 0; }
.dicon { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 6px 4px; border-radius: 3px; color: #fff; text-align: center; font-size: 12px; line-height: 1.15; text-shadow: 0 1px 2px #000; }
.dicon:hover, .dicon:focus-visible { background: rgba(120, 170, 220, .3); outline: 1px dotted rgba(255, 255, 255, .6); }
.dicon svg { width: 40px; height: 40px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
.taskbar { position: relative; z-index: 3; flex: none; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 6px; background: linear-gradient(#d4d0c8, #bdb9b0); border-top: 1px solid #fff; }
.startbtn { height: 26px; padding: 0 10px; display: flex; align-items: center; gap: 6px; font-weight: 700; border: 1px solid; border-color: #fff #555 #555 #fff; background: #d4d0c8; }
.startbtn img { width: 16px; height: 16px; }
.clock { margin-left: auto; padding: 0 10px; height: 24px; display: grid; place-items: center; border: 1px solid; border-color: #808080 #fff #fff #808080; font-size: 12px; font-variant-numeric: tabular-nums; }
.startmenu { position: absolute; left: 4px; bottom: 36px; z-index: 6; width: 220px; background: #d4d0c8; border: 2px solid; border-color: #fff #555 #555 #fff; display: grid; grid-template-columns: 28px 1fr; }
.startmenu .side { background: linear-gradient(#1f4e5f, #10303d); writing-mode: vertical-rl; transform: rotate(180deg); color: #fff; font: 700 14px/1 var(--f-display); letter-spacing: .2em; padding: 10px 6px; }
.startmenu .items { display: grid; padding: 4px; }
.startmenu .items button { text-align: left; padding: 8px 10px; }
.startmenu .items button:hover { background: #10303d; color: #fff; }
.startmenu .who { padding: 8px 10px; font-size: 11px; color: #444; border-bottom: 1px solid #999; }
.win { position: absolute; z-index: 4; left: calc(50% + 52px); top: 46%; transform: translate(-50%, -50%); width: min(820px, calc(100% - 128px)); height: min(560px, calc(100% - 60px)); display: flex; flex-direction: column; background: #d4d0c8; border: 2px solid; border-color: #fff #404040 #404040 #fff; box-shadow: 4px 4px 0 rgba(0, 0, 0, .35); }
.win.small { width: min(380px, calc(100% - 24px)); height: auto; }
.win .bar { flex: none; height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 3px 0 8px; background: linear-gradient(90deg, #0a246a, #3a6ea5); color: #fff; font-weight: 700; font-size: 12px; }
.win .bar .wx { margin-left: auto; width: 20px; height: 18px; display: grid; place-items: center; background: #d4d0c8; color: #000; border: 1px solid; border-color: #fff #404040 #404040 #fff; font: 700 12px/1 Tahoma, sans-serif; }
.win .content { flex: 1; min-height: 0; overflow: auto; background: #fff; margin: 3px; border: 1px solid; border-color: #808080 #fff #fff #808080; }
.win.small .content { background: #d4d0c8; border: 0; padding: 14px; }
.notepad { margin: 0; padding: 12px 14px; font: 14px/1.55 "Courier New", var(--f-type); white-space: pre-wrap; color: #000; }
.folderlist { list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; }
.folderlist button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 6px 8px; }
.folderlist button:hover { background: #0a246a; color: #fff; }
.folderlist svg { width: 22px; height: 22px; flex: none; }
.pw-form { display: grid; gap: 10px; }
.pw-form input { padding: 6px 8px; border: 2px solid; border-color: #808080 #fff #fff #808080; font: 14px/1.2 Tahoma, sans-serif; background: #fff; color: #000; }
.pw-form .row { display: flex; gap: 8px; justify-content: flex-end; }
.w98btn { min-width: 80px; padding: 5px 12px; background: #d4d0c8; border: 2px solid; border-color: #fff #404040 #404040 #fff; color: #000; font: 13px/1.2 Tahoma, sans-serif; }
.w98btn:active { border-color: #404040 #fff #fff #404040; }
.pw-form .err { color: #a00; min-height: 1.2em; font-size: 12px; }
.pw-form small { color: #555; }
@media (max-width: 700px) {
  .monitor { padding: 8px 8px 24px; border-radius: 10px; min-height: 0; }
  .icons { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(auto-fill, 82px); grid-auto-rows: 86px; padding: 10px; }
  .os .wall { display: none; }
  .win { top: 0; left: 0; transform: none; width: 100%; height: calc(100% - 34px); border-width: 1px; }
  .win.small { top: 20%; left: 50%; transform: translateX(-50%); width: calc(100% - 20px); height: auto; }
}

/* forum (inside window) */
.browser-bar { display: flex; gap: 6px; align-items: center; padding: 4px 6px; background: #d4d0c8; border-bottom: 1px solid #808080; font-size: 12px; }
.browser-bar span { flex: 1; padding: 3px 6px; background: #fff; border: 1px solid; border-color: #808080 #fff #fff #808080; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forum { font: 13px/1.45 Verdana, Tahoma, sans-serif; color: #1a1a1a; background: #e9e6df; min-height: 100%; }
.f-head { padding: 14px 14px 10px; background: linear-gradient(#2d3d2e, #1d2a1f); color: #e6e0c8; }
.f-head b { display: block; font: 700 22px/1 Georgia, var(--f-serif); letter-spacing: .02em; }
.f-head small { color: #a9b39a; font-size: 11px; }
.f-user { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 6px 14px; background: #c9c3b3; font-size: 11px; border-bottom: 1px solid #a8a190; }
.f-user a, .f-user button { color: #234; text-decoration: underline; font-size: 11px; }
.f-list { width: 100%; border-collapse: collapse; }
.f-list th { text-align: left; padding: 6px 10px; background: #5a6b4a; color: #fff; font-size: 11px; font-weight: 700; }
.f-list td { padding: 8px 10px; border-bottom: 1px solid #cfc9bb; background: #f5f3ee; vertical-align: top; }
.f-list tr:nth-child(even) td { background: #efece5; }
.f-list td.n { text-align: center; color: #555; font-variant-numeric: tabular-nums; width: 70px; }
.f-list button { color: #1c3a7a; text-decoration: underline; text-align: left; font-weight: 700; }
.f-list button.read { color: #6b4b8a; font-weight: 400; }
.f-list .brd { display: block; font-size: 10px; color: #777; margin-top: 2px; }
.f-list .f-pin { display: inline; margin: 0 6px 0 0; font-size: 10px; color: #a33; text-transform: uppercase; font-weight: 700; }
.f-thread h4 { margin: 0; padding: 10px 14px; font: 700 15px/1.3 Verdana, sans-serif; background: #d8d2c3; border-bottom: 1px solid #b9b2a2; }
.f-back { display: inline-block; margin: 8px 14px; color: #1c3a7a; text-decoration: underline; font-size: 12px; }
.post { display: grid; grid-template-columns: 150px 1fr; border-bottom: 2px solid #cfc9bb; background: #f5f3ee; }
.post:nth-child(even) { background: #efece5; }
.post .who { padding: 10px; border-right: 1px solid #d9d3c4; font-size: 11px; color: #555; word-break: break-all; }
.post .who b { display: block; font-size: 12px; color: #1c3a7a; margin: 6px 0 2px; }
.post .ava { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; font: 700 18px/1 Georgia, serif; border: 1px solid rgba(0, 0, 0, .2); }
.post .msg { padding: 10px 12px; min-width: 0; }
.post .msg .dt { font-size: 10px; color: #888; border-bottom: 1px dotted #ccc; padding-bottom: 4px; margin-bottom: 6px; }
.post .msg p { margin: 0 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.post .msg .del { color: #999; font-style: italic; }
.post .sig { margin-top: 8px; padding-top: 4px; border-top: 1px solid #ddd; font-size: 10px; color: #777; font-style: italic; }
.post.caps .msg p { font-weight: 700; }
@media (max-width: 560px) { .post { grid-template-columns: 1fr; } .post .who { display: flex; align-items: center; gap: 10px; border-right: 0; border-bottom: 1px solid #d9d3c4; padding: 8px 10px; } .post .who b { margin: 0; } .post .ava { width: 30px; height: 30px; font-size: 14px; } .f-list td.n.v { display: none; } .f-list th.v { display: none; } }

/* fine generator */
.fine { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 14px; background: #ece9e2; min-height: 100%; font: 13px/1.4 Tahoma, sans-serif; color: #111; }
.fine h4 { margin: 0 0 2px; font: 700 18px/1.2 Georgia, var(--f-serif); }
.fine .s { color: #555; margin: 0 0 12px; font-size: 12px; }
.fine form { display: grid; gap: 10px; align-content: start; }
.fine label { display: grid; gap: 4px; font-weight: 700; font-size: 12px; }
.fine input, .fine select { padding: 6px 8px; border: 2px solid; border-color: #808080 #fff #fff #808080; background: #fff; color: #000; font: 13px/1.2 Tahoma, sans-serif; width: 100%; }
.fine .out { display: grid; gap: 8px; align-content: start; justify-items: center; }
.fine .out img { width: 100%; max-width: 380px; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); background: #fff; }
.fine .out .ph { width: 100%; max-width: 380px; aspect-ratio: 4 / 5; border: 2px dashed #aaa; display: grid; place-items: center; color: #888; text-align: center; padding: 20px; }
.fine .btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.fine .lp { font-size: 11px; color: #666; text-align: center; }
@media (max-width: 700px) { .fine { grid-template-columns: 1fr; } }

/* ---------- intro ---------- */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); background: #0b0a09; overflow: hidden; transition: opacity 1.1s ease; }
.intro.out { opacity: 0; pointer-events: none; }
.intro-bg { position: absolute; inset: -5%; background: url(assets/img/loc_forest.webp) center/cover; filter: brightness(.35) saturate(.6) blur(1px); transform: scale(1.06); animation: slowzoom 30s ease-in-out infinite alternate; }
@keyframes slowzoom { to { transform: scale(1.14) translateY(-1%); } }
.intro-fog { position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 70%, rgba(220, 220, 215, .32), transparent 50%), radial-gradient(ellipse at 80% 60%, rgba(220, 220, 215, .28), transparent 50%), radial-gradient(ellipse at 50% 100%, rgba(230, 230, 225, .4), transparent 55%); animation: drift 12s ease-in-out infinite alternate; }
.intro-in { position: relative; text-align: center; max-width: 620px; display: grid; gap: 18px; justify-items: center; }
.intro h1 { margin: 0; font: 600 clamp(40px, 9vw, 84px)/1 var(--f-display); letter-spacing: .34em; text-indent: .34em; text-transform: uppercase; color: #f2e8d4; text-shadow: 0 4px 30px rgba(0, 0, 0, .7); }
.intro .county { font: 13px/1.3 var(--f-type); letter-spacing: .14em; text-transform: uppercase; color: #b9ae9d; margin-top: -8px; }
.intro .logline { margin: 6px 0 0; font: italic 18px/1.5 var(--f-serif); color: #ddd2bf; text-wrap: balance; }
.intro .q { margin: 18px 0 0; font: 500 28px/1.2 var(--f-hand); color: #f4ead6; }
.intro .choices { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.choice { display: flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; border-radius: 40px; border: 1px solid rgba(240, 230, 210, .3); background: rgba(10, 9, 8, .55); font: 600 15px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: #f2e8d4; transition: transform .2s, background .2s, border-color .2s; }
.choice img { width: 40px; height: 40px; object-fit: contain; }
.choice:hover { transform: translateY(-2px); }
.choice.skep:hover { border-color: var(--cold); background: rgba(40, 60, 80, .5); }
.choice.obs:hover { border-color: var(--neon); background: rgba(90, 10, 5, .55); }
.intro .small { font: 12px/1.4 var(--f-type); color: #9d9284; letter-spacing: .04em; }
.intro .lang { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }

/* ---------- menu drawer / modal ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .6); display: flex; justify-content: flex-end; animation: ovIn .2s; }
.drawer-in { width: min(320px, 86%); height: 100%; background: var(--soot); border-left: 1px solid var(--line); padding: calc(16px + env(safe-area-inset-top, 0px)) 18px calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 6px; overflow: auto; }
.drawer-in .x { align-self: flex-end; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); margin-bottom: 8px; }
.drawer-in .x svg { width: 18px; height: 18px; }
.drawer-in nav button { display: block; width: 100%; text-align: left; padding: 12px 6px; border-bottom: 1px solid var(--line); font: 500 16px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.drawer-in .row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.modal { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 20px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); background: rgba(0, 0, 0, .7); animation: ovIn .2s; }
.modal-in { position: relative; width: min(460px, 100%); padding: 28px 26px 24px; border-radius: 2px; }
.modal-in h3 { margin: 0 0 8px; font: 600 24px/1.1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; text-wrap: balance; }
.modal-in p { margin: 0 0 16px; font: 15px/1.55 var(--f-type); }
.modal-in .stores { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.modal-in .x { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink); }
.modal-in .x svg { width: 18px; height: 18px; }
.napkins { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 12px; }
.napkin { aspect-ratio: 1; background: #fbf9f3; background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .025) 0 2px, transparent 2px 6px); box-shadow: 0 4px 10px rgba(0, 0, 0, .25); display: grid; place-items: center; transform: rotate(-3deg); }
.napkin:nth-child(2) { transform: rotate(4deg); }
.napkin svg { width: 82%; height: 82%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- board extras ---------- */
.minimap { overflow: hidden; opacity: .8; mix-blend-mode: multiply; filter: sepia(.35) contrast(.95) saturate(.85); }
.minimap svg { width: 100%; height: 100%; display: block; }
.minimap svg text { font-family: var(--f-display); fill: #4b3b29; }
.mpin { border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff6b5e, #a3150c); box-shadow: .05cqw .1cqw .15cqw rgba(0, 0, 0, .5); }
.wanted-text { display: grid; align-content: start; justify-items: center; gap: .08cqw; text-align: center; color: #222; font: .4cqw/1.15 var(--f-type); }
.wanted-text b { font: 600 .66cqw/1 var(--f-display); letter-spacing: .1em; color: #111; margin-bottom: .1cqw; }
.cork-card { display: grid; place-items: center; padding: .3cqw; text-align: center; white-space: pre-line; background: #f1e49c; color: #3b2f1c; font: 700 .64cqw/1.1 var(--f-hand); transform: rotate(-3deg); box-shadow: .1cqw .15cqw .3cqw rgba(0, 0, 0, .4); }
.clipping { display: grid; align-content: start; gap: .14cqw; padding: .4cqw .45cqw; overflow: hidden; background: #e7e0cc; color: #222; transform: rotate(2.5deg); box-shadow: .1cqw .15cqw .3cqw rgba(0, 0, 0, .4); }
.clipping small { font: 700 .34cqw/1 var(--f-serif); letter-spacing: .12em; border-bottom: .05cqw solid #333; padding-bottom: .1cqw; }
.clipping b { font: 700 .5cqw/1.1 var(--f-serif); }
.clipping span { display: block; height: .14cqw; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .35) 0 .7cqw, transparent .7cqw .85cqw); }
.pushpin { position: absolute; left: 50%; top: -.25cqw; width: .6cqw; height: .6cqw; margin-left: -.3cqw; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff6b5e, #a3150c); box-shadow: .05cqw .1cqw .15cqw rgba(0, 0, 0, .5); }
.strings { inset: 0; }
.strings path { fill: none; stroke: #b3261e; stroke-width: 1.6; vector-effect: non-scaling-stroke; opacity: .85; }

/* map pin hit areas */
.pin { z-index: 4; }
.pin.fog { z-index: 2; width: 36px; height: 36px; margin: -18px 0 0 -18px; }
@media (pointer: coarse) { .pin:not(.fog) { width: 46px; height: 46px; margin: -40px 0 0 -23px; } }

/* PC: keep windows clear of the icon column */
@media (min-width: 701px) { .win { left: calc(50% + 100px); width: min(820px, calc(100% - 224px)); } .win.small { width: min(380px, calc(100% - 224px)); } }
.icons { grid-template-rows: repeat(auto-fill, 84px); }
.dicon { gap: 4px; }
.dicon svg { width: 36px; height: 36px; }

/* music window (dark) */
.win .content:has(.music) { background: #141414; }
.music { display: grid; grid-template-rows: auto auto auto auto auto auto; align-content: start; gap: 10px; min-height: 100%; padding: 12px; background: #141414; color: #e6e1d6; font: 13px/1.4 Tahoma, sans-serif; }
.music .s { margin: 0; color: #a39d92; font-size: 12px; }
.mtabs { display: flex; gap: 6px; }
.mtabs .w98btn { background: #262626; color: #e6e1d6; border-color: #4a4a4a #0a0a0a #0a0a0a #4a4a4a; }
.mtabs .w98btn[aria-pressed="true"] { background: #3a3a3a; border-color: #0a0a0a #4a4a4a #4a4a4a #0a0a0a; }
.w98btn[aria-pressed="true"] { border-color: #404040 #fff #fff #404040; background: #c3bfb7; }
.mframe { background: #141414; border-radius: 12px; overflow: hidden; }
.mframe iframe { display: block; width: 100%; height: 352px; border: 0; background: transparent; }
.mframe.ya iframe { height: 460px; }
.music .fb { margin: 0; font-size: 11px; color: #8f897f; }
.mlinks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.mlinks a { color: #f0b45c; font-size: 12px; }
/* minesweeper */
.win.ms-win { width: auto; }
.ms { display: grid; gap: 8px; justify-items: center; }
.ms-top { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 4px 6px; border: 2px solid; border-color: #808080 #fff #fff #808080; }
.ms-lcd { padding: 2px 5px; background: #000; color: #ff2a1a; font: 700 20px/1 "Courier New", monospace; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.ms-face { width: 34px; height: 34px; display: grid; place-items: center; font-size: 18px; background: #d4d0c8; border: 2px solid; border-color: #fff #404040 #404040 #fff; }
.ms-board { display: grid; grid-template-columns: repeat(9, 28px); border: 3px solid; border-color: #808080 #fff #fff #808080; }
.ms-c { width: 28px; height: 28px; padding: 0; display: grid; place-items: center; background: #d4d0c8; border: 3px solid; border-color: #fff #808080 #808080 #fff; font: 700 15px/1 Tahoma, sans-serif; color: #111; }
.ms-c.f { color: #c0140c; }
.ms-c.o { border: 1px solid #9a9a9a; background: #c9c5bd; }
.ms-c.boom { background: #e01b12; }
.ms-c[data-n="1"] { color: #0000e0; } .ms-c[data-n="2"] { color: #007a00; } .ms-c[data-n="3"] { color: #e00000; } .ms-c[data-n="4"] { color: #000080; }
.ms-c[data-n="5"] { color: #800000; } .ms-c[data-n="6"] { color: #007b7b; } .ms-c[data-n="7"] { color: #000; } .ms-c[data-n="8"] { color: #707070; }
.ms-msg { max-width: 270px; text-align: center; font-size: 12px; color: #333; }

@media (max-width: 700px) { .icons { grid-template-rows: none; } }

.mbanner { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 8px; background: linear-gradient(90deg, #121512, #1d2a22); color: #e9e3d2; }
.mbanner img { width: 64px; height: 64px; object-fit: cover; filter: saturate(.8); }
.mbanner b { display: block; font: 600 20px/1 var(--f-display); letter-spacing: .32em; }
.mbanner span { font: 11px/1.3 var(--f-type); color: #a9b39a; }

/* iOS fixes */
.win .bar .wx { padding: 0; line-height: 0; }
.fine select { -webkit-appearance: none; appearance: none; border-radius: 0; padding-right: 26px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23111'/%3E%3C/svg%3E") no-repeat right 9px center / 10px 6px; }
.fine input, .fine select { border-radius: 0; -webkit-appearance: none; appearance: none; font-size: 16px; }
.pw-form input { border-radius: 0; -webkit-appearance: none; font-size: 16px; }
@media (max-width: 700px) {
  .win.small { top: 8px; left: 50%; transform: translateX(-50%); max-height: calc(100% - 50px); overflow: auto; }
  .win.small .content { overflow: auto; }
  .ms-board { grid-template-columns: repeat(9, 26px); } .ms-c { width: 26px; height: 26px; font-size: 14px; }
}
@media (max-width: 640px) {
  .path-badge { top: 12px; bottom: auto; padding: 4px 12px 4px 4px; font-size: 11px; }
  .path-badge img { width: 28px; height: 28px; }
}
