@font-face {
  font-family: "Neucha";
  src: url("assets/fonts/Neucha-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #172029;
  --paper: #eee5cf;
  --paper-2: #d9cba8;
  --navy: #102a3b;
  --sea: #315f6f;
  --rust: #aa4f34;
  --gold: #dda94d;
  --cream: #f8f0dc;
  --shadow: rgba(10, 18, 24, .28);
  --font-display: "Neucha", "PT Sans", sans-serif;
  --font-ui: "PT Sans", "Avenir Next", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: #0d1b24;
  font-family: var(--font-ui);
  overflow-x: hidden;
}
button { font: inherit; }
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .25; z-index: 30; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E"); }

.topbar { height: 76px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; color: var(--cream); background: rgba(11, 24, 32, .96); border-bottom: 1px solid rgba(255,255,255,.13); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; border: 0; background: none; cursor: pointer; text-align: left; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--rust); font-size: 22px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); }
.brand b, .brand small { display: block; }
.brand b { font-family: var(--font-display); font-size: 24px; font-weight: 400; letter-spacing: .025em; }
.brand small { opacity: .67; font-size: 11px; text-transform: uppercase; letter-spacing: .15em; }
.top-actions { display: flex; align-items: stretch; gap: 8px; }
.icon-button, .collection-button { position: relative; min-width: 78px; color: var(--cream); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 9px; cursor: pointer; padding: 7px 10px; }
.icon-button:hover, .collection-button:hover { background: rgba(255,255,255,.12); }
.icon-button span { display: block; font-size: 20px; }
.icon-button em { display: block; font-size: 10px; font-style: normal; opacity: .7; }
.icon-button i { position: absolute; top: -5px; right: -5px; background: var(--rust); border-radius: 50%; min-width: 19px; height: 19px; line-height: 19px; font-style: normal; font-size: 10px; }
.collection-button span { display: block; font: 800 21px/1 var(--font-display); color: var(--gold); }
.collection-button small { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; opacity: .72; }

#game { min-height: calc(100vh - 76px); }
.screen { min-height: calc(100vh - 76px); position: relative; animation: enter .45s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(7px); } }

.hero { min-height: calc(100vh - 76px); color: var(--cream); display: grid; grid-template-columns: minmax(300px, .8fr) minmax(460px, 1.2fr); background: radial-gradient(circle at 76% 12%, rgba(93,145,152,.42), transparent 32%), linear-gradient(135deg, #183240 0 50%, #10232f); overflow: hidden; }
.hero-copy { padding: clamp(48px, 7vw, 100px); align-self: center; z-index: 2; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .2em; font-size: 12px; font-weight: 800; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: .005em; }
.hero h1 { margin: 16px 0; font-size: clamp(64px, 9vw, 122px); line-height: .8; letter-spacing: -.015em; max-width: 700px; }
.hero p { font-size: clamp(17px, 1.8vw, 23px); line-height: 1.5; color: rgba(248,240,220,.78); max-width: 620px; }
.primary, .secondary { cursor: pointer; border-radius: 8px; padding: 14px 20px; font-weight: 800; letter-spacing: .02em; }
.primary { color: #1c2124; background: var(--gold); border: 0; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.secondary { color: var(--cream); background: transparent; border: 1px solid rgba(255,255,255,.3); }
.hero-actions { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.hero-art { position: relative; min-height: 560px; }
.sun { position: absolute; width: 330px; height: 330px; border-radius: 50%; top: 9%; right: 13%; background: #d7a64a; box-shadow: 0 0 90px rgba(221,169,77,.22); }
.cabinet { position: absolute; width: min(310px, 42vw); height: 470px; right: 20%; bottom: -45px; background: linear-gradient(90deg, #263943, #4f666b 45%, #22353f); clip-path: polygon(8% 0, 92% 0, 100% 10%, 92% 100%, 8% 100%, 0 10%); filter: drop-shadow(30px 30px 25px rgba(0,0,0,.35)); }
.cabinet:before { content: ""; position: absolute; inset: 50px 32px 185px; border: 7px solid #172d38; background: radial-gradient(circle at 60% 55%, #b3e4df 0 3%, transparent 4%), linear-gradient(#244e5e, #081b25); box-shadow: inset 0 0 30px #000; }
.cabinet:after { content: "МОРСКОЙ БОЙ"; position: absolute; left: 35px; right: 35px; top: 16px; text-align: center; font: 800 18px var(--font-display); letter-spacing: .1em; color: #f1d17d; }
.periscope { position: absolute; width: 58px; height: 120px; border: 14px solid #17262d; border-bottom: 0; border-radius: 30px 30px 0 0; right: calc(20% + 125px); bottom: 410px; z-index: 2; }
.coin-slot { position: absolute; width: 90px; height: 38px; right: calc(20% + 110px); bottom: 95px; z-index: 3; background: #14252c; border-radius: 4px; box-shadow: inset 0 0 0 3px #7d8b87; }
.wave { position: absolute; left: -5%; right: -5%; height: 120px; bottom: 0; background: rgba(44,94,111,.55); border-radius: 50% 50% 0 0; transform: rotate(-3deg); }

.map-screen { padding: clamp(32px, 5vw, 72px); color: var(--ink); background: var(--paper); background-image: linear-gradient(rgba(43,57,54,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(43,57,54,.045) 1px, transparent 1px); background-size: 28px 28px; }
.map-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.map-head h1 { margin: 6px 0 0; font-size: clamp(38px, 6vw, 70px); }
.map-head p { max-width: 500px; line-height: 1.5; color: #526064; }
.locations { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; max-width: 1260px; margin: 0 auto; }
.location-card { position: relative; min-height: 440px; padding: 24px; border: 0; text-align: left; cursor: pointer; overflow: hidden; color: white; border-radius: 5px; box-shadow: 0 18px 35px var(--shadow); transition: transform .2s ease; }
.location-card:hover { transform: translateY(-5px) rotate(-.3deg); }
.location-card:before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 25%, rgba(5,14,18,.92)); z-index: 1; }
.location-card > * { position: relative; z-index: 2; }
.location-card .number { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 900; }
.location-card h2 { position: absolute; left: 24px; right: 24px; bottom: 78px; margin: 0; font-size: 34px; }
.location-card p { position: absolute; left: 24px; right: 24px; bottom: 20px; margin: 0; opacity: .74; }
.location-card.locked { filter: grayscale(.8); }
.location-card.locked:after { content: "🔒"; position: absolute; z-index: 3; top: 22px; right: 22px; font-size: 28px; }
.loc-camp { background: linear-gradient(135deg,#71846a,#304939); }
.loc-camp .sketch:before { content:""; position:absolute; left:12%; right:10%; bottom:30%; height:32%; background:#c4aa73; clip-path:polygon(0 38%,40% 0,100% 18%,100% 100%,0 100%); }
.loc-cinema { background: linear-gradient(135deg,#8b6657,#3f3534); }
.loc-cinema .sketch:before { content:""; position:absolute; left:8%; right:8%; bottom:26%; height:38%; background:#b89c86; clip-path:polygon(0 20%,50% 0,100% 20%,92% 100%,8% 100%); }
.loc-warehouse { background: linear-gradient(135deg,#6d726a,#2e3737); }
.loc-warehouse .sketch:before { content:""; position:absolute; left:6%; right:6%; bottom:24%; height:35%; background:#8a6d4e; box-shadow:inset 0 0 0 12px rgba(46,55,55,.5); }

.scene-screen { display: grid; grid-template-columns: minmax(260px, 330px) 1fr; color: var(--cream); background: #101b22; }
.scene-info { padding: 36px 28px; background: #14262f; border-right: 1px solid rgba(255,255,255,.09); z-index: 2; }
.back { border: 0; padding: 0; color: var(--gold); background: none; cursor: pointer; }
.scene-info h1 { margin: 36px 0 12px; font-size: 39px; }
.scene-info p { color: rgba(248,240,220,.72); line-height: 1.55; }
.objective { margin: 30px 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.13); }
.objective small { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.objective b { display: block; margin-top: 8px; line-height: 1.4; }
.scene { min-height: calc(100vh - 76px); position: relative; overflow: hidden; }
.scene.camp { background: linear-gradient(#71949a 0 46%, #87916b 46%); }
.scene.cinema { background: linear-gradient(#4a3b3e 0 72%, #29262a 72%); }
.scene.warehouse { background: linear-gradient(#586465 0 68%, #343b39 68%); }
.room-back { position: absolute; inset: 12% 8% 0; background: rgba(27,35,35,.34); border: 12px solid rgba(24,29,28,.4); }
.door { position: absolute; width: 18%; height: 52%; left: 10%; bottom: 15%; background: #594634; border: 9px solid #3d3128; }
.door:after { content:""; position:absolute; width:10px; height:10px; border-radius:50%; background:#c7a04b; right:14px; top:50%; }
.window { position:absolute; width:28%; height:28%; right:10%; top:14%; background:linear-gradient(#90bac0,#d8d4a5); border:10px solid #49564f; box-shadow:inset 0 -35px rgba(64,100,76,.35); }
.crate { position:absolute; width:20%; height:19%; bottom:12%; background:#7a5b39; border:5px solid #543f2a; box-shadow: inset 0 0 0 5px rgba(215,184,125,.16); }
.crate.a { right:8%; } .crate.b { right:30%; width:16%; height:14%; }
.machine { position:absolute; width:22%; height:53%; bottom:10%; left:38%; background:linear-gradient(90deg,#3e4b4c,#708080 48%,#354446); clip-path:polygon(7% 0,93% 0,100% 9%,93% 100%,7% 100%,0 9%); filter:drop-shadow(15px 15px 10px rgba(0,0,0,.27)); }
.machine:before { content:""; position:absolute; left:12%; right:12%; top:15%; height:43%; border:5px solid #28383c; background:linear-gradient(#2c5b6c,#142933); }
.machine:after { content:"МОРСКОЙ БОЙ"; position:absolute; left:7%; right:7%; top:4%; text-align:center; color:#e8c96f; font:800 clamp(8px,1vw,15px) var(--font-display); letter-spacing:.06em; }
.false-machine { filter: hue-rotate(135deg) drop-shadow(15px 15px 10px rgba(0,0,0,.27)); }
.hotspot { position: absolute; z-index: 5; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff6d4; color: #172029; background: rgba(221,169,77,.93); font-weight: 900; cursor: pointer; box-shadow: 0 0 0 7px rgba(221,169,77,.2); animation: pulse 2s infinite; }
.hotspot:hover { transform: scale(1.12); }
.hotspot.done { background: #738e78; animation: none; opacity: .65; }
@keyframes pulse { 50% { box-shadow:0 0 0 14px rgba(221,169,77,0); } }
.scene-tip { position:absolute; left:22px; bottom:18px; padding:9px 12px; border-radius:6px; background:rgba(10,20,25,.7); color:rgba(255,255,255,.75); font-size:12px; }

.modal { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 20px; }
.modal.open { display: grid; }
.modal-shade { position: absolute; inset: 0; background: rgba(4,10,14,.78); backdrop-filter: blur(5px); }
.modal-card { position: relative; width: min(720px, 100%); max-height: 88vh; overflow: auto; padding: clamp(28px,5vw,54px); background: var(--paper); color: var(--ink); box-shadow: 0 25px 80px rgba(0,0,0,.5); transform: rotate(-.2deg); }
.close { position: absolute; right: 16px; top: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); background: transparent; font-size: 25px; cursor: pointer; }
.modal-card h2 { margin: 0 45px 8px 0; font-size: 38px; }
.modal-card p { line-height: 1.55; }
.items, .clues, .collection-grid { display: grid; gap: 12px; margin-top: 22px; }
.items { grid-template-columns: repeat(3, 1fr); }
.item { min-height: 120px; padding: 16px; text-align: center; background: rgba(255,255,255,.4); border: 1px solid rgba(23,32,41,.13); }
.item span { display: block; font-size: 35px; }
.item b { display: block; margin-top: 8px; font-size: 13px; }
.clue { padding: 14px 0; border-bottom: 1px solid rgba(23,32,41,.15); }
.clue b { display:block; margin-bottom:4px; }
.collection-grid { grid-template-columns: repeat(5, 1fr); }
.collection-item { aspect-ratio: .78; display:grid; place-items:center; text-align:center; padding:8px; border:2px dashed rgba(23,32,41,.25); color:rgba(23,32,41,.45); }
.collection-item.found { border-style:solid; background:#254552; color:var(--cream); }
.collection-item span { display:block; font-size:30px; }
.choices { display:grid; gap:10px; margin:22px 0; }
.choice { padding:15px; text-align:left; border:1px solid rgba(23,32,41,.2); background:rgba(255,255,255,.38); cursor:pointer; }
.choice:hover { background:#fff7e6; }
.repair-board { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:24px 0; }
.wire { height:66px; border:2px solid rgba(23,32,41,.25); background:white; cursor:pointer; position:relative; }
.wire:after { content:""; position:absolute; left:14%; right:14%; top:50%; height:8px; transform:translateY(-50%); background:var(--wire); border-radius:8px; }
.wire.selected { outline:4px solid var(--gold); }
.stamp { display:inline-block; margin:12px 0; padding:7px 12px; border:3px solid var(--rust); color:var(--rust); font-weight:900; transform:rotate(-3deg); }
.toast { position:fixed; left:50%; bottom:24px; z-index:60; transform:translate(-50%,20px); opacity:0; max-width:520px; padding:12px 18px; border-radius:7px; color:#fff; background:#172029; box-shadow:0 12px 30px rgba(0,0,0,.35); transition:.25s; pointer-events:none; text-align:center; }
.toast.show { opacity:1; transform:translate(-50%,0); }

@media (max-width: 850px) {
  .hero { grid-template-columns:1fr; }
  .hero-copy { padding:44px 26px 10px; }
  .hero-art { min-height:430px; }
  .locations { grid-template-columns:1fr; }
  .location-card { min-height:300px; }
  .scene-screen { grid-template-columns:1fr; }
  .scene-info { padding:20px; }
  .scene-info h1 { margin:18px 0 8px; font-size:31px; }
  .scene { min-height:62vh; }
  .items { grid-template-columns:repeat(2,1fr); }
  .collection-grid { grid-template-columns:repeat(3,1fr); }
}
@media (max-width: 560px) {
  .topbar { height:66px; padding:0 10px; }
  .brand small, .icon-button em { display:none; }
  .brand b { font-size:16px; }
  .icon-button, .collection-button { min-width:54px; padding:6px; }
  .screen { min-height:calc(100vh - 66px); }
  .map-screen { padding:26px 16px; }
  .map-head { display:block; }
  .hero h1 { font-size:52px; }
  .cabinet { right:16%; }
  .periscope { right:calc(16% + 120px); }
  .coin-slot { right:calc(16% + 105px); }
}

/* Vertical slice redesign: the pioneer camp is treated as a finished game scene. */
.scene-screen { position: relative; display: block; height: calc(100dvh - 76px); min-height: 620px; background: #0b171d; overflow: hidden; }
.scene-info {
  position: absolute; z-index: 10; left: 24px; top: 24px; width: min(340px, calc(100% - 48px));
  padding: 24px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px;
  background: linear-gradient(145deg, rgba(11,28,35,.94), rgba(16,36,43,.82));
  box-shadow: 0 18px 55px rgba(0,0,0,.38); backdrop-filter: blur(14px);
}
.scene-info h1 { margin: 20px 0 8px; font-size: clamp(28px,3vw,43px); line-height: .96; }
.scene-info > p { margin: 8px 0; font-size: 14px; }
.scene-info .objective { margin: 20px 0 12px; padding-top: 14px; }
.scene-info .objective b { font-size: 14px; }
.scene { height: 100%; min-height: 620px; background-size: cover; background-position: center; background-repeat: no-repeat; }
.scene.camp {
  background-image: linear-gradient(90deg, rgba(6,18,23,.18), transparent 35%), url("assets/pioneer-camp-scene-v1.png");
  background-color: #344b49; background-repeat: no-repeat; background-size: cover; background-position: center;
}
.scene.camp > .room-back, .scene.camp > .door, .scene.camp > .window,
.scene.camp > .crate, .scene.camp > .machine { display: none; }
.scene.camp .hotspot {
  width: 46px; height: 46px; border: 1px solid rgba(255,248,213,.58); font-size: 0;
  background: rgba(224,170,70,.12); box-shadow: 0 0 0 7px rgba(232,182,84,.07), inset 0 0 18px rgba(255,221,135,.16);
  opacity: .42; transition: opacity .2s, transform .2s, background .2s; animation: discover 3.2s infinite;
}
.scene.camp .hotspot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f0c56c; box-shadow: 0 0 12px #f0c56c; position: absolute; inset: 0; margin: auto; }
.scene.camp .hotspot::after {
  content: attr(data-title); position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%) translateY(5px);
  width: max-content; max-width: 210px; padding: 8px 11px; border-radius: 6px; color: var(--cream); background: rgba(8,20,25,.94);
  font-size: 12px; font-weight: 700; line-height: 1.25; opacity: 0; pointer-events: none; transition: .18s;
}
.scene.camp .hotspot:hover { opacity: 1; transform: scale(1.08); background: rgba(224,170,70,.36); }
.scene.camp .hotspot:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.scene.camp .hotspot.done { opacity: .28; animation: none; }
.scene.camp .hotspot.done::before { background: #a8c4a6; box-shadow: 0 0 12px #a8c4a6; }
@keyframes discover { 0%,70%,100% { box-shadow:0 0 0 7px rgba(232,182,84,.05) } 82% { box-shadow:0 0 0 15px rgba(232,182,84,0) } }
.scene-tip { left: auto; right: 22px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); }

@media (max-width: 850px) {
  .scene-info { left: 14px; top: 14px; width: min(300px, calc(100% - 28px)); padding: 18px; }
  .scene-info h1 { font-size: 28px; }
  .scene-screen { height: calc(100dvh - 66px); min-height: 620px; }
  .scene { min-height: 620px; background-position: 58% center; }
  .scene-tip { display: none; }
}
@media (pointer: coarse) {
  .scene.camp .hotspot { opacity: .7; }
}

.evidence-board { display: grid; grid-template-columns: 1fr 62px 1fr; align-items: center; margin: 24px 0; }
.evidence { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px; text-align: center; border: 1px solid rgba(23,32,41,.16); background: rgba(255,255,255,.38); box-shadow: 0 10px 24px rgba(40,35,25,.08); }
.evidence span { font-size: 40px; }
.evidence small { color: #647074; }
.evidence-link { display: grid; gap: 18px; }
.evidence-link i { height: 2px; background: var(--rust); position: relative; }
.evidence-link i:before, .evidence-link i:after { content:""; position:absolute; width:7px; height:7px; top:-3px; border-radius:50%; background:var(--rust); }
.evidence-link i:before { left:-3px; } .evidence-link i:after { right:-3px; }
.choice.primary-choice { color: white; background: var(--sea); border-color: var(--sea); font-weight: 800; }
@media (max-width:560px) {
  .evidence-board { grid-template-columns:1fr; }
  .evidence-link { grid-template-columns:1fr 1fr; width:2px; height:45px; margin:auto; }
  .evidence-link i { width:2px; height:45px; }
}

/* Material palette: archival paper, graphite, oxidized paint and sealing wax. */
:root {
  --ink: #282720;
  --paper: #d7cfb8;
  --paper-2: #b7ac91;
  --navy: #282f2a;
  --sea: #4b5547;
  --rust: #873f32;
  --gold: #b18a54;
  --cream: #e8e0cc;
  --shadow: rgba(24, 22, 17, .32);
}
body { background: #202520; }
.topbar {
  color: #e4ddca; background: #252b27; border-bottom-color: #6b6858;
  box-shadow: 0 3px 0 rgba(28,28,23,.28);
}
.brand-mark { background: #873f32; box-shadow: inset 0 0 0 1px #b57d68; }
.brand small { color: #aaa48f; opacity: 1; }
.icon-button, .collection-button { color: #ddd5c1; background: transparent; border-color: #56594e; border-radius: 3px; }
.icon-button:hover, .collection-button:hover { background: #343a34; }
.collection-button span, .eyebrow, .objective small, .back { color: #c29a62; }
.hero {
  color: #e7dfcb;
  background: radial-gradient(circle at 77% 18%, #777052 0 14%, transparent 14.2%), linear-gradient(112deg, #30372f, #222a26 58%, #1e2522);
}
.hero p { color: #bbb5a4; }
.sun { background: #93805a; box-shadow: none; }
.primary { color: #f0e8d5; background: #873f32; border: 1px solid #a95d4b; border-radius: 3px; box-shadow: 0 5px 0 #542c26; }
.primary:hover { filter: brightness(1.05); }
.secondary { color: #d9d1bd; border-color: #777566; border-radius: 3px; }
.map-screen { background-color: #d7cfb8; color: #282720; }
.map-head p { color: #5b5a4f; }
.location-card { border-radius: 2px; box-shadow: 5px 7px 0 rgba(72,65,49,.22); }
.location-card .number { background: #b18a54; }
.scene-screen { background: #202520; }
.scene-info {
  color: #e7dfcb; border: 1px solid #777566; border-radius: 4px;
  background: #292f2a; box-shadow: 6px 8px 0 rgba(25,24,20,.38); backdrop-filter: none;
}
.scene-info p { color: #bbb5a4; }
.objective { border-top-color: #626156; }
.scene.camp { background-image: linear-gradient(90deg, rgba(49,42,30,.08), transparent 34%), url("assets/pioneer-camp-scene-v2-handdrawn.jpg"); }
.scene.camp .hotspot {
  border-color: rgba(230,219,191,.7); background: rgba(135,63,50,.12);
  box-shadow: 0 0 0 6px rgba(135,63,50,.08); animation-name: archival-discover;
}
.scene.camp .hotspot::before { background: #c7b58d; box-shadow: none; }
.scene.camp .hotspot::after { color: #e8e0cc; background: #292f2a; border: 1px solid #777566; border-radius: 2px; }
.scene.camp .hotspot:hover { background: rgba(135,63,50,.38); }
.scene.camp .hotspot.done::before { background: #7f8b72; box-shadow: none; }
@keyframes archival-discover { 0%,72%,100% { box-shadow:0 0 0 6px rgba(135,63,50,.05) } 84% { box-shadow:0 0 0 12px rgba(135,63,50,0) } }
.scene-tip { color: #ded6c3; background: #292f2a; border-color: #777566; border-radius: 2px; backdrop-filter: none; }
.modal-shade { background: rgba(27,29,24,.86); backdrop-filter: none; }
.modal-card { background: #d7cfb8; color: #282720; box-shadow: 10px 14px 0 rgba(15,15,12,.5); }
.close { border-color: #77705e; }
.item, .choice, .evidence { background: #c9c0a7; border-color: #999079; box-shadow: none; }
.choice:hover { background: #e1d8c1; }
.choice.primary-choice { color: #eee6d2; background: #4b5547; border-color: #384137; }
.collection-item.found { background: #4b5547; color: #eee6d2; }
.evidence small { color: #625f53; }
.evidence-link i, .evidence-link i:before, .evidence-link i:after { background: #873f32; }
.stamp { color: #873f32; border-color: #873f32; }
.toast { color: #e8e0cc; background: #292f2a; border: 1px solid #777566; border-radius: 2px; }

.primary, .secondary, .back, .eyebrow, .objective small, .location-card h2,
.modal-card h2, .choice, .stamp, .collection-button, .icon-button em {
  font-family: var(--font-display);
}
.primary, .secondary, .choice { font-size: 18px; font-weight: 400; }
.eyebrow, .objective small { font-size: 14px; font-weight: 400; letter-spacing: .12em; }
.scene-info .objective b { font-weight: 700; }

/* Hand-drawn adventure treatment for the finished camp scene. */
.scene-screen:has(.scene.camp) .scene-info {
  color: #302c23;
  width: min(326px, calc(100% - 48px));
  padding: 22px 24px 24px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(rgba(118,101,70,.055) 1px, transparent 1px),
    #d7cdb2;
  background-size: 100% 23px;
  box-shadow: 5px 7px 0 rgba(55,43,27,.26), inset 0 0 28px rgba(93,70,37,.12);
  clip-path: polygon(1% 2%, 28% 0, 57% 1.5%, 82% .5%, 99% 3%, 98% 31%, 100% 62%, 97% 98%, 71% 99%, 43% 97.8%, 18% 100%, 0 97%, 1.2% 69%, 0 36%);
  transform: rotate(-.35deg);
}
.scene-screen:has(.scene.camp) .scene-info h1 { color: #332e24; }
.scene-screen:has(.scene.camp) .scene-info > p { color: #625a49; }
.scene-screen:has(.scene.camp) .scene-info .back { color: #7d3b2f; font-weight: 800; }
.scene-screen:has(.scene.camp) .scene-info .objective { border-top: 2px solid rgba(104,91,65,.35); }
.scene-screen:has(.scene.camp) .scene-info .objective small { color: #7d3b2f; }
.scene-screen:has(.scene.camp) .scene-info .objective b { color: #332e24; }
.scene-screen:has(.scene.camp) .hotspot {
  border-style: dashed;
  border-width: 1px;
  background: rgba(215,205,178,.08);
}
.scene-screen:has(.scene.camp) .hotspot::before {
  width: 6px; height: 6px; background: #7d3b2f;
}
.scene-screen:has(.scene.camp) .scene-tip {
  color: #302c23; background: #d7cdb2; border: 0;
  box-shadow: 3px 4px 0 rgba(55,43,27,.24); transform: rotate(.4deg);
}

/* Monochrome interface layer: chalk-white lettering on carbon-black surfaces. */
:root {
  --ui-black: #0d0f0e;
  --ui-black-2: #171a18;
  --ui-white: #f1efe7;
  --ui-muted: #aaa9a1;
  --ui-line: #d2d0c7;
}
.topbar { color: var(--ui-white); background: var(--ui-black); border-bottom-color: #4a4b47; }
.brand small { color: var(--ui-muted); }
.brand-mark { color: var(--ui-white); background: var(--ui-black); border: 1px solid var(--ui-line); box-shadow: none; }
.icon-button, .collection-button { color: var(--ui-white); border-color: #62635e; }
.icon-button:hover, .collection-button:hover { background: #242724; }
.collection-button span { color: var(--ui-white); }
.hero { color: var(--ui-white); background: radial-gradient(circle at 77% 18%, #323431 0 14%, transparent 14.2%), linear-gradient(112deg, #171a18, #090b0a 62%, #050606); }
.hero p { color: #b8b7b0; }
.hero .eyebrow { color: var(--ui-white); }
.primary { color: var(--ui-black); background: var(--ui-white); border-color: var(--ui-white); box-shadow: 0 5px 0 #777872; }
.secondary { color: var(--ui-white); border-color: #858680; }
.scene-screen:has(.scene.camp) .scene-info {
  color: var(--ui-white);
  border: 1px solid #6e6f6a;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    var(--ui-black);
  box-shadow: 5px 7px 0 rgba(0,0,0,.46), inset 0 0 25px rgba(255,255,255,.025);
}
.scene-screen:has(.scene.camp) .scene-info h1,
.scene-screen:has(.scene.camp) .scene-info .objective b { color: var(--ui-white); }
.scene-screen:has(.scene.camp) .scene-info > p { color: var(--ui-muted); }
.scene-screen:has(.scene.camp) .scene-info .back,
.scene-screen:has(.scene.camp) .scene-info .objective small { color: var(--ui-white); }
.scene-screen:has(.scene.camp) .scene-info .objective { border-top-color: #696a65; }
.scene-screen:has(.scene.camp) .scene-tip { color: var(--ui-white); background: var(--ui-black); border: 1px solid #666762; box-shadow: 3px 4px 0 rgba(0,0,0,.45); }
.scene-screen:has(.scene.camp) .hotspot::before { background: var(--ui-white); }
.scene.camp .hotspot::after { color: var(--ui-white); background: var(--ui-black); border-color: #686963; }
.modal-shade { background: rgba(2,3,2,.88); }
.modal-card { color: var(--ui-white); background: var(--ui-black); border: 1px solid #666762; box-shadow: 10px 14px 0 rgba(0,0,0,.6); }
.modal-card .eyebrow { color: var(--ui-white); }
.close { color: var(--ui-white); border-color: #767771; }
.item, .choice, .evidence { color: var(--ui-white); background: var(--ui-black-2); border-color: #676862; }
.item b, .evidence b { color: var(--ui-white); }
.evidence small, .clue span { color: var(--ui-muted); }
.choice:hover { background: #2a2d2a; }
.choice.primary-choice { color: var(--ui-black); background: var(--ui-white); border-color: var(--ui-white); }
.collection-item { color: #8c8d87; border-color: #696a65; }
.collection-item.found { color: var(--ui-black); background: var(--ui-white); }
.evidence-link i, .evidence-link i:before, .evidence-link i:after { background: var(--ui-white); }
.stamp { color: var(--ui-white); border-color: var(--ui-white); }
.wire { background: #202320; border-color: #686963; }
.toast { color: var(--ui-white); background: var(--ui-black); border-color: #6b6c67; }

/* Illustrated main menu: typography lives directly inside the game world. */
.hero {
  display: block;
  position: relative;
  min-height: calc(100dvh - 76px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8,10,8,.18), transparent 43%),
    url("assets/main-menu-scrapyard-v1.jpg") center center / cover no-repeat;
}
.hero-art { display: none; }
.hero-copy {
  position: absolute;
  z-index: 3;
  left: clamp(210px, 25vw, 470px);
  top: clamp(190px, 31vh, 360px);
  width: min(520px, 52vw);
  padding: 0;
  color: var(--ui-white);
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
  transform: rotate(-1deg);
}
.hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -42px -70px -48px -58px;
  background: radial-gradient(ellipse at center, rgba(10,11,9,.58) 0%, rgba(10,11,9,.38) 42%, rgba(10,11,9,.12) 66%, transparent 78%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-copy .eyebrow { color: var(--ui-white); opacity: .84; }
.hero h1 {
  margin: 10px 0 16px;
  max-width: none;
  color: #fffef7;
  font-size: clamp(70px, 9vw, 130px);
  line-height: .78;
  text-shadow: 0 2px 3px rgba(0,0,0,.82);
}
.hero p {
  max-width: 490px;
  color: #fffef7;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 25px);
  line-height: 1.35;
}
.hero-actions { display: grid; justify-items: start; gap: 3px; margin-top: 22px; }
.hero .primary, .hero .secondary {
  position: relative;
  min-width: 0;
  padding: 8px 8px 8px 31px;
  color: #fffef7;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
  font-size: 24px;
  text-align: left;
}
.hero .primary::before, .hero .secondary::before {
  content: "—";
  position: absolute;
  left: 4px;
  top: 7px;
  transition: transform .18s;
}
.hero .primary:hover, .hero .secondary:hover { filter: none; transform: none; color: #fff; }
.hero .primary:hover::before, .hero .secondary:hover::before { transform: translateX(7px); }

@media (max-width: 850px) {
  .hero { min-height: calc(100dvh - 66px); background-position: 36% center; }
  .hero-copy {
    left: 24px; right: 24px; top: auto; bottom: 9vh;
    width: auto; padding: 24px;
    background: rgba(10,12,10,.68);
    border: 1px solid rgba(255,255,255,.34);
  }
  .hero-copy::before { display: none; }
  .hero h1 { font-size: clamp(58px, 16vw, 92px); }
  .hero p { font-size: 18px; }
}
/* Illustrated expedition backgrounds and monochrome field labels. */
.map-screen {
  position: relative; min-height: calc(100dvh - 76px); padding: clamp(22px,3vw,42px); color: var(--ui-white);
  background: linear-gradient(180deg,rgba(7,8,7,.08),rgba(7,8,7,.2)), url("assets/expedition-map-desk-v1.jpg") center/cover no-repeat;
}
.map-head {
  position: relative; z-index: 2; display: block; width: min(500px,100%); margin: 0; padding: 20px 24px 22px;
  color: var(--ui-white); border: 1px solid #696a65; background: rgba(13,15,14,.94); box-shadow: 6px 8px 0 rgba(0,0,0,.46);
  clip-path: polygon(1% 2%,29% 0,59% 1%,99% 0,98% 45%,100% 98%,66% 99%,35% 97%,0 100%,1% 49%); transform: rotate(-.25deg);
}
.map-head h1 { margin: 5px 0 8px; font-size: clamp(39px,5vw,68px); line-height: .92; }
.map-head p { margin: 0; max-width: 440px; color: var(--ui-muted); font-size: 14px; line-height: 1.4; }
.locations {
  position: absolute; z-index: 3; left: clamp(18px,3vw,42px); right: clamp(18px,3vw,42px); bottom: clamp(18px,3vw,36px);
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; max-width: none;
}
.location-card {
  min-height: 116px; padding: 17px 18px 16px 68px; color: var(--ui-white); border: 1px solid #686963; border-radius: 0;
  background: rgba(13,15,14,.94); box-shadow: 4px 6px 0 rgba(0,0,0,.44);
  clip-path: polygon(1% 2%,31% 0,65% 2%,99% 0,98% 49%,100% 98%,62% 100%,29% 97%,0 100%,1% 46%);
}
.location-card::before, .location-card .sketch { display: none; }
.location-card .number { position: absolute; left: 17px; top: 17px; width: 37px; height: 37px; color: var(--ui-black); background: var(--ui-white); }
.location-card h2 { position: static; margin: 0 0 7px; font-size: clamp(22px,2.2vw,32px); line-height: 1; }
.location-card p { position: static; margin: 0; color: var(--ui-muted); font-size: 13px; line-height: 1.3; opacity: 1; }
.location-card:hover { transform: translateY(-5px) rotate(-.25deg); background: rgba(27,30,27,.97); }
.location-card.locked { opacity: .64; filter: grayscale(1); }
.location-card.locked::after { top: 14px; right: 16px; font-size: 20px; filter: grayscale(1); }

.scene.cinema { background-image: linear-gradient(90deg,rgba(7,8,7,.18),transparent 34%),url("assets/cinema-scene-v1-handdrawn.jpg"); background-color: #3a2d27; }
.scene.warehouse { background-image: linear-gradient(90deg,rgba(7,8,7,.16),transparent 34%),url("assets/warehouse-scene-v1-handdrawn.jpg"); background-color: #51483b; }
.scene.cinema > .room-back, .scene.cinema > .door, .scene.cinema > .window, .scene.cinema > .crate, .scene.cinema > .machine,
.scene.warehouse > .room-back, .scene.warehouse > .door, .scene.warehouse > .window, .scene.warehouse > .crate, .scene.warehouse > .machine { display: none; }
.scene-screen:has(.scene.cinema) .scene-info, .scene-screen:has(.scene.warehouse) .scene-info {
  color: var(--ui-white); width: min(326px,calc(100% - 48px)); padding: 22px 24px 24px; border: 1px solid #6e6f6a; border-radius: 0;
  background: linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),rgba(13,15,14,.95); background-size: 100% 23px;
  box-shadow: 6px 8px 0 rgba(0,0,0,.48),inset 0 0 25px rgba(255,255,255,.025);
  clip-path: polygon(1% 2%,28% 0,57% 1.5%,82% .5%,99% 3%,98% 31%,100% 62%,97% 98%,71% 99%,43% 97.8%,18% 100%,0 97%,1.2% 69%,0 36%); transform: rotate(-.35deg);
}
.scene-screen:has(.scene.cinema) .scene-info h1, .scene-screen:has(.scene.warehouse) .scene-info h1,
.scene-screen:has(.scene.cinema) .scene-info .objective b, .scene-screen:has(.scene.warehouse) .scene-info .objective b { color: var(--ui-white); }
.scene-screen:has(.scene.cinema) .scene-info > p, .scene-screen:has(.scene.warehouse) .scene-info > p { color: var(--ui-muted); }
.scene-screen:has(.scene.cinema) .scene-info .back, .scene-screen:has(.scene.warehouse) .scene-info .back,
.scene-screen:has(.scene.cinema) .scene-info .objective small, .scene-screen:has(.scene.warehouse) .scene-info .objective small { color: var(--ui-white); }
.scene-screen:has(.scene.cinema) .scene-info .objective, .scene-screen:has(.scene.warehouse) .scene-info .objective { border-top-color: #696a65; }
.scene.cinema .hotspot, .scene.warehouse .hotspot {
  width: 46px; height: 46px; border: 1px dashed rgba(255,255,255,.62); font-size: 0; background: rgba(13,15,14,.12);
  box-shadow: 0 0 0 7px rgba(255,255,255,.055),inset 0 0 18px rgba(255,255,255,.12); opacity: .46;
  transition: opacity .2s,transform .2s,background .2s; animation: discover 3.2s infinite;
}
.scene.cinema .hotspot::before, .scene.warehouse .hotspot::before { content:""; position:absolute; inset:0; width:6px; height:6px; margin:auto; border-radius:50%; background:var(--ui-white); }
.scene.cinema .hotspot::after, .scene.warehouse .hotspot::after {
  content:attr(data-title); position:absolute; left:50%; bottom:calc(100% + 12px); width:max-content; max-width:210px; padding:8px 11px;
  color:var(--ui-white); background:var(--ui-black); border:1px solid #686963; font-size:12px; font-weight:700; line-height:1.25;
  opacity:0; pointer-events:none; transform:translateX(-50%) translateY(5px); transition:.18s;
}
.scene.cinema .hotspot:hover, .scene.warehouse .hotspot:hover { opacity:1; transform:scale(1.08); background:rgba(255,255,255,.18); }
.scene.cinema .hotspot:hover::after, .scene.warehouse .hotspot:hover::after { opacity:1; transform:translateX(-50%) translateY(0); }
.scene.cinema .hotspot.done, .scene.warehouse .hotspot.done { opacity:.28; animation:none; }
@media (max-width:850px) {
  .map-screen { min-height:auto; padding:18px 14px 28px; background-position:54% center; }
  .map-head { width:100%; }
  .locations { position:relative; inset:auto; grid-template-columns:1fr; margin-top:180px; }
  .location-card { min-height:104px; }
}

/* Keep the route tabs inside the visible map canvas at every viewport ratio. */
.map-screen { display: flex; flex-direction: column; }
.map-screen .locations { position: relative; inset: auto; width: 100%; margin: auto 0 0; }
