@font-face {
  font-family: "Brigade Display";
  src: url("assets/type/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --display: "Brigade Display", "Arial Narrow", var(--ui);
  --brass: #f1cc89;
  --chalk: #fff1d4;
  --mineral: #111f25;
  --frame: #a2c0b238;
}
.game-logo.painted {
  transform: none;
  width: clamp(300px, 32vw, 525px);
  max-width: 100%;
  margin: 0 0 clamp(18px, 3.1vh, 33px) -4px;
  line-height: 0;
}
.game-logo img { width: 100%; height: auto; filter: drop-shadow(0 7px 12px #0a0e10b0); }
.game-logo.painted > :is(span,strong) { position:absolute; clip-path:inset(100%); width:1px; height:1px; overflow:hidden; }
.menu-frame { padding-inline: clamp(25px,5vw,100px); }
.title-stack { min-width:min(35vw, 500px); }
.menu-actions { width: clamp(275px,25.5vw,395px); gap: 12px; }
.launch-button,.board-button,.studio-primary { border-radius:3px 12px 3px 3px; }
.launch-button { position:relative; min-height:72px; padding:10px 21px; border-color:#fff4be; background:linear-gradient(110deg,#ffe7a8,#efbd79 70%,#e9ab61); }
.launch-button b { font:700 clamp(22px,2.05vw,31px)/1 var(--display); text-transform:uppercase; letter-spacing:.025em; }
.launch-button small { font-size:13px; }
.board-button { font:700 19px/1 var(--display); text-transform:uppercase; letter-spacing:.045em; background:linear-gradient(105deg,#15252aeb,#13232bdd); }
.save-strip { display:grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap:clamp(18px,3vw,65px); padding-top:16px; }
.save-route strong { font:700 clamp(19px,1.9vw,28px)/1.05 var(--display); color:var(--chalk); }
.save-cover { width:62px; border-color:#ecc37b70; border-radius:2px 9px 2px 2px; }
.menu-progress { width:min(100%,340px); justify-self:end; }
.progress-copy { font-size:13px; }
.home-chapters { display:flex; align-items:center; isolation:isolate; position:relative; gap:clamp(3px,.65vw,14px); }
.home-chapters::before { content:""; position:absolute; height:1px; inset-inline:8%; top:50%; z-index:-1; background:#edd7a858; }
.home-stop { position:relative; padding:0; width:clamp(24px,2.5vw,42px); aspect-ratio:1; background:#101b20; border:1px solid #54635f; border-radius:50%; }
.region-seal { display:block; aspect-ratio:1; background-image:url("assets/art/expedition-seals.webp"); background-size:500% 200%; background-repeat:no-repeat; flex-shrink:0; }
.home-stop .region-seal { width:100%; }
.home-stop[data-state="ahead"] { filter:saturate(.52); opacity:.74; }
.home-stop:hover,.home-stop:focus-visible,.home-stop[data-state="current"] { border-color:#f4d79c; filter:none; opacity:1; box-shadow:0 0 0 2px #ffd09638; }
.home-stop[data-state="complete"] { border-color:#a8d9bd; }
.studio-brand { font:700 20px var(--display); letter-spacing:.09em; }
.board-screen { background:radial-gradient(ellipse at 15% 0%,#314345,transparent 56%),linear-gradient(120deg,#101d22,#101b20 68%,#152b2d); }
.board-frame { max-width:1760px; padding:clamp(18px,4vh,54px) clamp(18px,4.5vw,90px); }
:is(.board-header,.region-caption,.mission-heading,.dialog-heading,.result-panel,.mission-intel) :is(h2,h3) { font-family:var(--display); font-weight:700; letter-spacing:.005em; }
.board-header h2 { text-transform:uppercase; font-size:clamp(32px,3.3vw,55px); }
.board-progress strong { font:700 24px/1.1 var(--display); letter-spacing:.04em; }
.chapter-tab { border-radius:2px 9px 2px 2px; min-height:clamp(52px,8vh,84px); padding:7px 9px; }
.chapter-index { font:700 13px/1 var(--display); }
.chapter-name { font:700 clamp(13px,1.05vw,19px)/1.02 var(--display); }
.chapter-tab::after { background:linear-gradient(0deg,#101a20fa,#12222b80 50%,#19272a0a); }
.chapter-navigation { margin:clamp(9px,1.9vh,23px) 0; }
.board-content { display:grid; grid-template-columns:minmax(0,2.45fr) minmax(230px,.9fr); gap:clamp(10px,1.4vw,24px); align-items:stretch; }
.region-poster { display:block; isolation:isolate; position:relative; min-height:clamp(360px,58vh,675px); border-radius:3px 14px 3px 3px; border:1px solid #d9d7ab66; box-shadow:0 14px 30px #0711146b; }
.region-poster::before { z-index:-1; background:linear-gradient(135deg,#07181ae0,transparent 57%),linear-gradient(0deg,#07171dd4 0%,#0d1d2480 30%,#10232847 65%,#09171b22); }
.region-poster::after { position:absolute; pointer-events:none; content:""; inset:0; z-index:-1; opacity:.3; background-image:repeating-linear-gradient(90deg,transparent 0 calc(12.5% - 1px),#dfd8aa74 calc(12.5% - 1px) 12.5%),repeating-linear-gradient(0deg,transparent 0 calc(20% - 1px),#dfd8aa60 calc(20% - 1px) 20%); mask-image:linear-gradient(0deg,#000b,transparent 90%); }
.region-caption { position:absolute; top:0; left:0; padding:clamp(15px,2.5vw,42px); text-shadow:0 2px 7px #091418; }
.region-caption small,.mission-code { color:#ffdc99; letter-spacing:.17em; font-size:11px; }
.region-caption h3 { font-size:clamp(34px,4.7vw,81px); margin:5px 0; }
.region-caption > span { display:block; color:#d7e6d8; font-size:clamp(13px,1vw,16px); }
.atlas-track { position:absolute; inset:21% 1% 1%; }
#atlas-path,.mission-list { position:absolute; inset:0; width:100%; height:100%; }
.mission-list { display:block; }
.mission-list .mission-card {
  isolation:isolate; display:grid; place-content:center; position:absolute; transform:translate(-50%,-50%);
  width:clamp(33px,3.2vw,55px); aspect-ratio:1; min-height:0; padding:0; border:2px solid #c6b68d;
  border-radius:50%; overflow:visible; color:#fff3d7; background:radial-gradient(ellipse at 35% 15%,#33484a,#14252c 78%);
  box-shadow:0 2px 0 3px #0e1e23cb, 0 6px 14px #0008; text-align:center;
}
.mission-card::after { content:none; }
.pin-number { font:700 clamp(15px,1.7vw,29px)/1 var(--display); }
.pin-state { position:absolute; bottom:-2px; right:-4px; width:16px; height:16px; border-radius:50%; font:700 10px/16px var(--ui); background:#ffe1a3; color:#17292b; }
.pin-state:empty { display:none; }
.mission-list .mission-card.locked { color:#e6e4cd; border-color:#acb9ad; pointer-events:none; }
.mission-list .mission-card.current { border-color:#ffe4a0; color:#152825; background:radial-gradient(ellipse at 25% 20%,#ffefbe,#d9a662); }
.mission-list .mission-card.done { border-color:#a8e3c4; color:#e5ffdd; background:#234f45; }
.mission-card.done .pin-state { background:#b2e6c5; }
.mission-list .mission-card[data-inspected="true"] { outline:1px solid #ffe7ae; outline-offset:5px; }
.mission-list .mission-card:not(:disabled):hover { transform:translate(-50%,-50%) scale(1.07); }
.mission-intel { min-width:0; display:flex; flex-direction:column; padding:clamp(15px,1.6vw,30px); border:1px solid #81998d6b; border-top:2px solid #ddb77b; border-radius:3px 12px 3px 3px; background:linear-gradient(135deg,#253536,#16272d 64%,#1d3032); box-shadow:0 14px 30px #0711144a; }
.intel-top,.intel-target,.intel-paging,.intel-loadout,.tool-ration { display:flex; align-items:center; }
.intel-top,.intel-target { justify-content:space-between; }
.intel-top { margin-bottom:clamp(10px,1.7vh,23px); }
.intel-top .region-seal { width:clamp(42px,5vw,75px); }
.intel-paging { gap:5px; }
.intel-paging button { width:31px; height:31px; font-size:23px; }
.intel-paging button:disabled { opacity:.35; }
.mission-intel h3 { margin:5px 0 14px; font-size:clamp(26px,2.5vw,45px); line-height:1.02; }
.intel-map { margin-top:auto; position:relative; overflow:hidden; aspect-ratio:2.9; border:1px solid #759c8c59; border-radius:2px; background-color:#112229; background-image:linear-gradient(#94cfb714 1px, transparent 1px),linear-gradient(90deg,#94cfb714 1px,transparent 1px); background-size:16px 16px; }
.intel-map .map-preview { display:block; position:static; width:100%; height:100%; }
.intel-target { margin:14px 0 7px; border-bottom:1px solid var(--frame); padding-bottom:8px; gap:5px; font-size:13px; color:#d9e4d9; }
.intel-target strong { color:var(--chalk); font:700 20px/1 var(--display); }
.intel-loadout { gap:4px; flex-wrap:wrap; margin:4px 0 14px; }
.tool-ration { gap:1px; padding:1px 4px 1px 2px; border:1px solid #82978948; background:#13252a; border-radius:3px; font:700 14px var(--display); color:#ffe1a5; }
.painted-tool { width:25px; aspect-ratio:1; display:inline-block; background:transparent url("assets/art/gear.webp") no-repeat; background-size:500% 200%; flex:none; }
.studio-primary { min-height:39px; padding:7px 14px; border:1px solid #f5d69d; background:linear-gradient(120deg,#ffe4a8,#e6ac65); color:#17282c; font:700 17px/1.05 var(--display); text-transform:uppercase; letter-spacing:.03em; }
.studio-primary:hover:not(:disabled) { filter:brightness(1.09); }
.studio-primary:disabled { color:#bfcac5; border-color:#708880; background:#213336; }
.game-screen { background:radial-gradient(ellipse at 37% -20%,#354542,transparent 55%),radial-gradient(ellipse at 77% 80%,#213238,transparent 65%),#101c22; }
.game-header { min-height:clamp(56px,8.2vh,81px); }
.mission-heading h2 { font-size:clamp(19px,1.85vw,34px); }
.mission-heading small { font-size:10px; }
.crew-console { display:flex; gap:clamp(12px,1.7vw,28px); align-items:center; padding:5px 16px; border-left:1px solid var(--frame); border-right:1px solid var(--frame); }
.crew-console span,.brief-plaque small,.result-panel > small,.result-stats span { display:block; font:700 10px/1.1 var(--ui); text-transform:uppercase; letter-spacing:.12em; color:#adbbb6; }
.crew-console b { display:block; font:700 clamp(17px,1.65vw,28px)/1 var(--display); color:#f8f0d8; font-variant-numeric:tabular-nums; }
.hud-quota { position:relative; display:grid; grid-template-columns:auto auto; align-items:baseline; column-gap:7px; row-gap:4px; }
.hud-quota span,.hud-quota b { color:#f6d99e; }
.hud-meter { position:relative; display:block; width:100%; grid-column:1/-1; height:5px; overflow:hidden; border-radius:1px; background:#5d695d; }
.hud-meter::after { content:""; position:absolute; inset:0; background:repeating-linear-gradient(90deg,transparent 0 calc(10% - 1px),#182526 calc(10% - 1px) 10%); }
#hud-quota-fill { display:block; height:100%; background:#ffd68d; transition:width .25s; }
.hud-stat { display:grid; gap:3px; }
.canvas-wrap { position:relative; isolation:isolate; box-shadow:0 0 0 1px #d7dfb95e,0 8px 25px #050d128a; }
#game:focus-visible { outline:2px solid #ffe2a6; outline-offset:-2px; }
.brief-plaque,.pause-flag { position:absolute; top:12px; z-index:1; background:linear-gradient(105deg,#192d30ef,#0f2228ef); color:var(--chalk); border:1px solid #efd092b8; box-shadow:0 4px 15px #07121480; }
.brief-plaque { left:12px; display:flex; align-items:center; gap:10px; border-radius:2px 10px 2px 2px; padding:6px 8px; }
.brief-plaque .region-seal { width:40px; }
.brief-plaque small { font-size:9px; color:var(--brass); }
.brief-plaque b { display:block; margin-top:3px; font:700 20px/1 var(--display); }
.brief-plaque .studio-primary { margin-left:6px; min-height:32px; }
.pause-flag { left:50%; transform:translateX(-50%); border-radius:3px; padding:7px 14px; font:700 18px var(--display); text-transform:uppercase; }
.result-screen { position:absolute; inset:0; z-index:2; display:grid; place-items:center; background:radial-gradient(ellipse at 50% 45%,#0e2228bd,#09171ce3); }
.result-panel { display:grid; justify-items:center; position:relative; width:min(85%,575px); padding:clamp(12px,2.5vh,35px) clamp(12px,2.5vw,36px); border:1px solid #c7be946e; border-block-color:#d6ba80; background:linear-gradient(125deg,#193230f0,#102429f5 65%,#233533f2); box-shadow:0 10px 52px #071113a8; border-radius:3px 18px 3px 3px; text-align:center; }
.result-panel .region-seal { width:clamp(40px,6.5vh,83px); }
.result-panel > small { margin:6px 0 2px; color:var(--brass); }
.result-panel h2 { margin:0; font-size:clamp(28px,4.8vh,58px); line-height:1; text-transform:uppercase; color:#ffdf9d; }
.result-panel p { margin:6px 0 10px; font-size:13px; color:#dfebdf; }
.result-stats { display:flex; justify-content:space-around; width:80%; border-block:1px solid var(--frame); padding:7px 0; }
.result-stats b { display:block; font:700 23px/1 var(--display); }
.result-stats span { font-size:9px; margin:3px 0 0; }
.result-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:7px; margin-top:12px; }
.result-actions .quiet-button { min-height:35px; border-radius:3px; }
.result-screen[data-won=false] .result-panel { border-block-color:#c39179; }
.result-screen[data-won=false] h2 { color:#f4bd98; }
.mission-readout { flex:1; }
#message { font-size:clamp(12px,1.03vw,16px); line-height:1.35; }
#target-hint { font-size:12px; color:var(--gold); line-height:1.3; }
#target-hint:empty { display:none; }
.transport button { border-radius:3px; }
.toolbox { border-color:#cbd8ba4a; }
.skill { border-radius:3px 9px 3px 3px; background:linear-gradient(130deg,#324347,#19292e 72%); }
.skill[aria-pressed=true]:not(:disabled) { background:linear-gradient(120deg,#65553b,#35392f 80%); box-shadow:inset 3px 0 #f9d194; }
.skill:disabled { opacity:.55; }
.skill-name { font:700 clamp(13px,1.16vw,20px)/1.05 var(--display); }
.skill-count { font:700 15px/1.1 var(--display); }
#skills .skill-icon { width:clamp(26px,3.1vw,43px); }
.console-dialog { border-radius:3px 16px 3px 3px; border-top:2px solid #e8c488; background:linear-gradient(145deg,#2d3c3a,#16282c 78%); }
.dialog-heading h2 { text-transform:uppercase; }
.guide-dialog { width:min(92vw,700px); }
.guide-kit { display:grid; grid-template-columns:1fr 1fr; gap:5px; margin:14px 0; }
.guide-tool { display:flex; align-items:center; gap:9px; padding:5px 7px; border:1px solid var(--frame); border-radius:3px; background:#16292d; }
.guide-tool .painted-tool { width:33px; }
.guide-tool b { display:block; font:700 16px/1.1 var(--display); }
.guide-tool small { display:block; color:#c8d8ce; font-size:12px; line-height:1.2; }
.guide-copy details { border-top:1px solid var(--frame); padding:7px 0; }
.guide-copy summary { cursor:pointer; color:#f1d69c; font-weight:700; }
.guide-copy p { margin:5px 0; }
@media (min-width:1700px) { .board-content { grid-template-columns:minmax(0,2.85fr) minmax(240px,1fr); } }
@media (max-width:1000px) {
  .save-strip { gap:18px; }.crew-console { gap:10px; padding:4px 9px; }.game-nav { gap:4px; }
  .game-nav .quiet-button { padding-inline:9px; }
  .home-chapters { gap:3px; }.home-stop { width:23px; }
}
@media (max-width:700px) {
  .menu-frame,.board-frame { padding-inline:4vw; }
  .game-logo.painted { width:clamp(228px,65vw,330px); margin-bottom:16px; }
  .menu-actions { width:min(305px,84vw); gap:8px; }
  .launch-button { min-height:56px; }.launch-button b { font-size:21px; }
  .save-strip { grid-template-columns:1fr auto; gap:10px; }
  .home-chapters { grid-row:2; grid-column:1/-1; justify-content:space-between; }
  .home-stop { width:clamp(22px,6vw,33px); }
  .menu-progress { width:auto; }.progress-copy { font-size:10px; }
  .board-content { grid-template-columns:1fr; gap:9px; }
  .region-poster { min-height:clamp(235px,36vh,360px); }
  .region-caption { padding:13px 15px; }.region-caption h3 { font-size:34px; }.region-caption > span { font-size:12px; }
  .mission-list .mission-card { width:clamp(23px,6.7vw,34px); border-width:1px; }.pin-number { font-size:16px; }.pin-state { width:10px;height:10px;font-size:7px;line-height:10px; }
  .mission-intel { display:grid; grid-template-columns:minmax(0,1fr) minmax(100px,.67fr); column-gap:10px; padding:12px; }
  .intel-top { grid-column:2;grid-row:1/3; justify-content:end; gap:7px; margin:0; }.intel-top .region-seal { width:32px; }
  .mission-code { font-size:9px; }.mission-intel h3 { font-size:24px; margin:4px 0 5px; }
  .intel-map { grid-column:1; grid-row:3/5; align-self:stretch; margin:4px 0; aspect-ratio:auto; min-height:58px; }
  .intel-target { font-size:11px; margin:4px 0; }.intel-target strong { font-size:17px; }
  .intel-loadout { margin:3px 0; gap:3px; }.tool-ration .painted-tool { width:20px; }
  #intel-launch { grid-column:1/-1; margin-top:6px; }
  .game-header { display:grid; grid-template-columns:1fr auto; min-height:0; padding:6px 0; }
  .crew-console { grid-column:1/-1; grid-row:2; justify-content:center; gap:18px; border-inline:0; border-top:1px solid var(--frame); padding:6px 0 0; }
  .crew-console span { font-size:9px; }.crew-console b { font-size:18px; }.hud-stat { display:flex; align-items:baseline; gap:5px; }.hud-quota { row-gap:1px; }
  .game-nav .quiet-button { padding-inline:6px; }.game-nav { gap:3px; }
  .mission-heading h2 { font-size:16px; }.mission-heading small { font-size:8px; }
  .brief-plaque { top:5px; left:5px; gap:5px; padding:3px 5px; }.brief-plaque .region-seal { width:27px; }
  .brief-plaque small { font-size:7px; }.brief-plaque b { font-size:15px; }.brief-plaque .studio-primary { font-size:13px; min-height:24px; padding:2px 7px; }
  .result-panel { padding:6px 9px; width:min(95%,440px); }.result-panel .region-seal { position:absolute; top:7px; left:9px; width:29px; }
  .result-panel h2 { font-size:25px; }.result-panel > small { font-size:8px; margin:1px 0; }.result-panel p { font-size:11px; margin:2px 0; }
  .result-stats { padding:3px 0; width:82%; }.result-stats b {font-size:17px;}.result-stats span { font-size:8px; margin:0; }
  .result-actions { gap:3px; margin-top:5px; }.result-actions button { min-height:27px !important; font-size:12px; padding:3px 7px; }
  .pause-flag { top:5px; font-size:14px; padding:4px 8px; }#message { font-size:13px; }
  .skill-name { font-size:13px; }.skill-count { font-size:13px; }.guide-kit { grid-template-columns:1fr; }
}
@media (max-height:630px) and (min-width:701px) {
  .game-logo.painted { width: min(31vw, 48vh); }
  .menu-frame,.board-frame { padding-block:10px; }.title-stack { padding:8px 0; }.menu-actions { gap:7px; }.launch-button { min-height:49px; }.board-button{min-height:37px;}
  .save-strip { padding-top:6px; }.region-poster { min-height:300px; }.game-header { min-height:42px; }
  .result-panel { padding:7px 12px; }.result-panel .region-seal { width:32px; }.result-stats { padding:4px 0; }.result-actions { margin-top:6px; }.result-panel p { margin:3px 0; }
}
.result-panel { display:flex; width:min(88%,780px); padding:0; overflow:hidden; }
.result-portrait { align-self:stretch; width:37%; flex-shrink:0; background:radial-gradient(ellipse at 50% 70%,#8c754f7d,transparent 75%); position:relative; }
.result-portrait::before { content:""; position:absolute; width:124%; aspect-ratio:1; left:-9%; bottom:0; background:transparent url("assets/art/debrief-crew.webp") 0% 0/200% 100% no-repeat; }
.result-screen[data-won=false] .result-portrait::before { background-position:100% 0; }
.result-report { flex:1; min-width:0; display:grid; justify-items:center; align-items:center; padding:clamp(12px,2.4vh,32px) 14px; }
.result-report > small { margin:3px 0; color:var(--brass); font:700 10px/1 var(--ui); text-transform:uppercase; letter-spacing:.12em; }
@media(max-width:700px),(max-height:560px) {
 .result-panel { width:94%; }.result-portrait{width:24%;}.result-report{padding:6px;}.result-report .region-seal{display:none;}.result-report > small{font-size:8px;}.result-report .result-actions button { min-height:26px; }
}
.intel-lesson { margin:0 0 14px; line-height:1.4; color:#c5d6ce; font-size:clamp(13px,1vw,17px); }
.result-portrait { overflow:hidden; }
.result-portrait::before { width:auto; height:100%; left:50%; transform:translateX(-50%); }
@media (min-width:1001px) and (min-height:631px) {
  .canvas-wrap { width:min(100%,calc((100svh - 235px)*2)); }
}
@media(max-width:700px) {
 .intel-lesson{grid-column:1/-1; grid-row:3; font-size:12px; margin:2px 0 6px;}
 .intel-map{grid-row:4/6;}.intel-target{grid-row:4;}.intel-loadout{grid-row:5;}
}
@media(orientation:landscape) and (max-height:520px) and (min-width:601px) {
  .game-screen { padding-inline:8px; }
  .game-header { min-height:35px; margin-bottom:3px; padding:1px 0; }
  .game-header .round-back,.game-nav .quiet-button { min-height:25px; height:25px; }
  .crew-console { padding-block:0; }
  .play-layout { display:grid; grid-template-columns:minmax(0,1fr) clamp(156px,23vw,220px); grid-template-rows:auto 1fr auto; gap:3px 9px; align-items:start; }
  .playfield { grid-column:1; grid-row:1/3; }
  .canvas-wrap { width:min(100%,calc((100svh - 77px)*2)); }
  .playfield-bottom { display:contents; }
  .mission-readout { grid-row:3; grid-column:1; }
  .transport { grid-column:2; grid-row:2; flex-wrap:wrap; gap:3px; }
  .transport button { min-height:26px; padding:2px 6px; }
  .release-control button { min-width:23px; }
  .release-control { order:-1; }
  .toolbox { grid-column:2; grid-row:1; padding-top:0; border:0; }
  .skill-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:3px; }
  .skill { grid-template-columns:20px minmax(0,1fr) auto; grid-template-rows:1fr; align-items:center; min-height:32px; padding:3px; border-radius:3px; }
  #skills .skill-icon { grid-column:1; grid-row:1; width:20px; }
  .skill-name { grid-column:2; grid-row:1; font-size:12px; }
  .skill-count { grid-column:3; grid-row:1; font-size:11px; align-self:end; }
  .skill-key { display:none; }
  .result-panel { width:min(91%,575px); }
  .result-report { padding:9px; }
}
#transport-play,#transport-advance { display:contents; }
#brief-start { display:inline-flex; }
#brief-start button,#result-primary #next-level { min-height:36px; padding:7px 14px; border:1px solid #f5d69d; border-radius:3px 8px 3px 3px; background:linear-gradient(120deg,#ffe4a8,#e6ac65); color:#17282c; font:700 17px/1 var(--display); text-transform:uppercase; letter-spacing:.03em; }
#brief-start button::after { content:"　▸"; }
.game-screen:is([data-phase="won"],[data-phase="lost"]) .playfield-bottom { visibility:hidden; }
.setting-actions { display:flex; align-items:center; gap:8px; margin-top:24px; }
.setting-actions .fullscreen-button { width:auto; padding-inline:15px; font:700 13px var(--ui); }
.sound-sliders label > span { display:flex; justify-content:space-between; }
.sound-sliders output { color:var(--gold); font:700 18px/1 var(--display); }
@media(min-width:1001px) and (min-height:631px) {
 .canvas-wrap { width:min(100%,calc((100svh - 256px)*2)); }
}
@media(max-width:700px) {
 #brief-start button { min-height:26px; padding:2px 8px; font-size:14px; }
 #result-primary #next-level { min-height:27px; padding:3px 7px; font-size:12px; }
}
@media (orientation:landscape) and (max-height:520px) and (min-width:601px) {
 .game-screen:is([data-phase="won"],[data-phase="lost"]) :is(.transport,.mission-readout) { visibility:hidden; }
}
.field-viewport { position:absolute; inset:0; overflow:hidden; }
#field-zoom { display:none; }
@media(max-width:700px) and (orientation:portrait) {
 .game-screen:not([data-phase="won"]):not([data-phase="lost"]) #field-zoom { display:block; position:absolute; bottom:5px; right:5px; z-index:1; border:1px solid #f2d195a8; border-radius:3px; padding:3px 7px; font:700 13px var(--display); color:#ffe3a9; background:#102328e8; }
 .game-screen[data-zoom="2"] .canvas-wrap { aspect-ratio:1; }
 .game-screen[data-zoom="2"] .field-viewport { overflow-x:auto; overflow-y:hidden; scrollbar-width:none; overscroll-behavior-inline:contain; }
 .game-screen[data-zoom="2"] #game { display:block; max-width:none; width:200%; height:100%; touch-action:pan-x; }
}

/* Enamel campaign insignia and expedition map materials. */
.menu-screen::after { background:linear-gradient(90deg,#071312db,#0b17178a 27%,transparent 59%),linear-gradient(0deg,#071511ed,transparent 22%,transparent 76%,#0b171557); }
.title-art::after { content:""; position:absolute; width:3px; height:3px; top:63%; left:49%; border-radius:50%; background:#ffdb83; box-shadow:12vw -5vh 4px #ffce6d,8vw 9vh 2px #ffd87c,-5vw 12vh 3px #eed88c,20vw -17vh 4px #ffcf7f; animation:lantern-motes 7s ease-in-out infinite alternate; }
@keyframes lantern-motes { from { transform:translate(0,0); opacity:.2; } to { transform:translate(-8px,-14px); opacity:.8; } }
.game-logo.painted { width:clamp(288px,35vw,620px); }
.menu-actions { width:clamp(285px,26vw,420px); gap:9px; }
.launch-button { padding:7px 18px 7px 7px; gap:14px; min-height:72px; border-radius:3px 15px 3px 3px; background:linear-gradient(103deg,#e3aa56,#ffe2a1 40%,#ebbb74 80%,#cc9252); box-shadow:inset 0 0 0 2px #a8773d,inset 0 0 0 3px #ffe3a5a8,0 4px 0 #6c4729,0 9px 25px #0b151eba; }
.launch-insignia { display:grid; place-items:center; width:53px; aspect-ratio:1; flex:none; border-radius:50%; border:1px solid #fce0a8; background:radial-gradient(circle,#274d45,#102423 74%); box-shadow:0 0 0 1px #775736,1px 2px 4px #815d32; }
.launch-insignia .region-seal { width:87%; }
.board-button { border:0; border-bottom:1px solid #e6d5a85e; border-radius:0; padding:8px 16px; min-height:38px; box-shadow:none; background:linear-gradient(90deg,#15221e98,#10201e15); }
.home-stop[data-state="current"]::after { content:""; position:absolute; left:calc(50% - 3px); bottom:-7px; border:3px solid transparent; border-bottom-color:var(--brass); }
.board-screen { background:linear-gradient(90deg,#0a1919a3,#13221d32 70%,#0c1719b8),url("assets/art/cartography-desk.webp") center/cover no-repeat,#152326; }
.board-frame { padding-block:clamp(13px,2.7vh,36px); }
.board-header { padding-bottom:clamp(9px,1.2vh,17px); }
.board-header h2 { font-size:clamp(28px,2.8vw,51px); letter-spacing:.035em; }
.chapter-tab { border-bottom:3px solid #92795670; border-radius:3px 8px 2px 2px; }
.chapter-tab[aria-pressed=true] { border:1px solid #f6ce86; border-bottom:4px solid #f6ce86; }
.board-content { gap:clamp(13px,1.7vw,28px); }
.region-poster { min-height:clamp(330px,61vh,735px); border:1px solid #d4bd8d; border-radius:3px; box-shadow:inset 0 0 0 4px #26322b,inset 0 0 0 5px #e7cea368,0 10px 24px #030b0b91; }
.region-poster::before { background:linear-gradient(180deg,#081812a1,#07161c1a 45%,#0a171bd4),linear-gradient(100deg,#1928208c,transparent 70%); }
.region-caption { display:flex; align-items:center; gap:clamp(10px,1.2vw,22px); }
.region-caption > .region-seal { width:clamp(45px,5.4vw,88px); filter:drop-shadow(0 3px 6px #071210a8); }
.region-caption h3 { font-size:clamp(35px,4.3vw,78px); margin:3px 0 5px; }
#region-progress { font-size:clamp(12px,1vw,16px); color:#e4e9d2; }
.mission-list .mission-card { box-shadow:inset 0 0 0 2px #142621,inset 0 0 0 3px #b7b49b91,0 2px 0 3px #0a171bc4,0 4px 10px #000a; }
.mission-list .mission-card.current { box-shadow:inset 0 0 0 2px #bd8e50,0 0 0 3px #163029,0 0 12px #ffe0a280; }
.mission-intel { position:relative; isolation:isolate; border:1px solid #d5b47a; border-radius:1px 7px 2px 1px; color:#30291f; background:radial-gradient(ellipse at 85% 50%,#fff2cb88,transparent 72%),linear-gradient(110deg,#c7ac7b,#ead7aa 8%,#e4d1a5 68%,#d2bb91); box-shadow:inset 0 0 0 3px #e6d4ad,inset 0 0 0 4px #937e5570,2px 3px 0 #8f7856,4px 5px 0 #b59b71,0 13px 24px #050c0ba6; }
.mission-intel::before { content:""; position:absolute; z-index:-1; top:0; left:21px; width:32px; height:clamp(42px,6vh,72px); background:linear-gradient(100deg,#255853,#346962 55%,#214a47); clip-path:polygon(0 0,100% 0,100% 100%,50% 82%,0 100%); }
.intel-top { margin-bottom:clamp(6px,1.1vh,14px); }
.intel-top .region-seal { width:clamp(42px,4vw,65px); filter:drop-shadow(0 2px 3px #574b3194); }
.intel-paging button { background:#544c37; border-color:#746341; color:#fff0cd; }
.mission-intel .mission-code { color:#6d4827; }
.mission-intel h3 { color:#302c22; margin:6px 0 14px; font-size:clamp(27px,2.7vw,49px); }
.intel-map { flex:none; height:auto; aspect-ratio:2.18; margin:0 0 13px; border:1px solid #776649; border-radius:1px; box-shadow:0 0 0 3px #edddbb,0 0 0 4px #9a845b; background-color:#4a584c; background-image:linear-gradient(135deg,#223b358f,#7e7c5a38),linear-gradient(#e0d5a41f 1px,transparent 1px),linear-gradient(90deg,#e0d5a41f 1px,transparent 1px); background-size:cover,15px 15px,15px 15px; }
.mission-intel .intel-lesson { color:#3d392b; font-size:clamp(14px,1.05vw,17px); margin:0 0 7px; }
.intel-target { color:#4f4532; margin-top:auto; border-color:#8c7850; }
.intel-target strong,.tool-ration { color:#353328; }
.intel-loadout .tool-ration { border:1px solid #9b875d; color:#3d352a; background:#d6c091; }
#intel-launch { background:linear-gradient(100deg,#254e44,#315e51 55%,#234b41); border:1px solid #213e31; border-radius:3px; color:#fff2ca; box-shadow:inset 0 0 0 2px #77a08942,0 2px 0 #888061; }
#intel-launch:disabled { background:#c6b58d; color:#574d39; border-color:#98885e; }
@media (min-width:701px) and (min-height:631px) {
  .board-content { grid-template-columns:minmax(0,2.45fr) minmax(260px,.9fr); }
  .board-frame { padding-inline:clamp(24px,4vw,88px); }
}


/* A single field-width instrument rail with only the issued equipment. */
.game-screen { background:radial-gradient(ellipse at top,#29423c,#142a29 43%,#0b191c 80%); }
.mission-heading { gap:9px; }
#mission-crest { width:clamp(32px,3.1vw,49px); filter:drop-shadow(0 2px 3px #031613); }
.game-header { border-bottom:1px solid #bda77965; }
.crew-console { gap:clamp(13px,1.7vw,27px); border:0; padding:0 12px; }
.hud-quota { grid-template-columns:auto auto; column-gap:8px; padding:3px 15px 4px 13px; border-inline:1px solid #aebda34d; background:linear-gradient(90deg,#31483c2b,#a8c6981a,#31483c2b); }
.hud-quota b { font-size:clamp(24px,2.45vw,40px); color:#ffe0a0; }
.hud-quota span { align-self:center; color:#e8d5a4; }
.hud-stat b { font-size:clamp(19px,1.6vw,28px); color:#d6ddd1; }
.hud-meter { background:#3b4c43; height:4px; }
#hud-quota-fill { background:linear-gradient(90deg,#c59d54,#ffe2a0); }
.canvas-wrap { border-radius:1px; box-shadow:0 0 0 1px #b3b18b83,0 5px 19px #07141480; }
.brief-plaque { top:14px; left:14px; border:1px solid #a9a081; border-left:3px solid #eac788; padding:8px 10px; gap:12px; background:linear-gradient(115deg,#223e37f5,#132b2af7); box-shadow:0 4px 12px #0816158a; }
.brief-plaque .region-seal { width:42px; }
.brief-plaque b { font-size:22px; color:#fff4d0; }
.pause-flag { border:1px solid #efd397; border-radius:20px; background:#192f2beb; color:#ffdea0; }
#skills .skill { min-width:0; position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:1fr auto; align-content:center; gap:0 3px; border:1px solid #8a90705c; padding:3px 6px 5px; border-radius:4px 9px 3px 3px; color:#e0e5d3; background:linear-gradient(135deg,#36493f,#1a302c 73%); }
#skills .skill[aria-pressed=true]:not(:disabled) { color:#ffe7aa; background:radial-gradient(ellipse at 30% 40%,#a17e3c66,transparent 80%),linear-gradient(135deg,#494a36,#263b31 73%); border-color:#ffe0a2; box-shadow:inset 0 -3px #e4b76a,inset 0 0 0 2px #f4c87a25,0 0 9px #d7ab633e; }
#skills .skill:focus-visible { outline-offset:1px; }
#skills .skill:disabled { opacity:.57; }
#skills .skill-icon { grid-column:1; grid-row:1; width:clamp(30px,3.5vw,50px); justify-self:center; align-self:center; filter:drop-shadow(0 2px 2px #09130d); }
#skills .skill-count { grid-column:2; grid-row:1; align-self:end; justify-self:end; font:700 clamp(14px,1.25vw,22px)/1 var(--display); color:#ffe0a0; border:0; background:transparent; padding:0; }
#skills .skill-count::before { content:"×"; font-size:.68em; margin-right:1px; color:#ddd0a3; }
#skills .skill-name { grid-column:1/-1; grid-row:2; font:700 clamp(14px,1.05vw,19px)/1.1 var(--display); letter-spacing:.025em; }
#skills .skill-key { grid-area:1/2; justify-self:end; align-self:start; color:#bbbfa7; font:700 10px/1.1 var(--ui); }
.skill-grid { display:flex; justify-content:start; }
#skills .skill { flex:0 1 76px; }
.transport .release-control { background:#132925; border:1px solid #77867370; }
.transport button { background:#243c35; border-color:#8193786b; }
.transport .play-button { color:#17291e; background:linear-gradient(120deg,#ffe4a6,#dbb274); }
.mission-readout { text-wrap:pretty; }
#target-hint { margin-top:3px; color:#e4c684; }
@media (min-width:1001px) and (min-height:631px) {
  .game-screen { padding:clamp(5px,1.2vh,15px) 2vw; }
  .game-frame { width:min(100%,calc((100svh - clamp(170px,20vh,218px))*2)); max-width:1920px; }
  .game-header { min-height:clamp(56px,7.5vh,82px); margin-bottom:5px; }
  .game-header .round-back,.game-nav .quiet-button { border-radius:4px; }
  .game-nav .fullscreen-button { width:32px; }
  .play-layout { display:grid; grid-template-columns:auto minmax(0,1fr) auto; grid-template-areas:"field field field" "rack feed control"; gap:0; align-items:center; border:1px solid #9c946754; background:linear-gradient(105deg,#253e35,#142b27 40%,#1a302c); box-shadow:0 12px 48px #06100e70; }
  .playfield { grid-area:field; }
  .canvas-wrap { width:100%; }
  .playfield-bottom { display:contents; }
  .toolbox { grid-area:rack; border:0; padding:8px 0 8px 8px; }
  .skill-grid { gap:5px; }
  #skills .skill { width:clamp(61px,4.9vw,87px); min-height:clamp(64px,8vh,88px); flex:none; }
  .mission-readout { grid-area:feed; padding:7px clamp(10px,1.4vw,28px); }
  .transport { grid-area:control; justify-content:end; padding:7px 8px 7px 0; }
  #message { font-size:clamp(13px,1vw,17px); margin:0; }
  .game-screen[data-kit=light] #skills .skill { width:clamp(109px,9vw,158px); }
  .game-screen[data-kit=none] .toolbox { display:none; }
  .game-screen[data-kit=full] .transport { max-width:210px; flex-wrap:wrap; gap:4px; }
  .game-screen[data-kit=full] .transport button { min-height:27px; }
  .game-screen:is([data-phase="won"],[data-phase="lost"]) :is(.toolbox,.transport,.mission-readout) { visibility:hidden; }
}
@media (min-width:701px) and (max-width:1000px) and (min-height:521px), (min-width:701px) and (max-height:630px) and (min-height:521px) {
  .toolbox .skill-grid { justify-content:center; }
  #skills .skill { min-height:51px; }
}


/* A rescue closes on an illustrated end card. Delayed art leaves the full-width report readable. */
.result-screen { background:linear-gradient(180deg,#071c2140,#071d218f 40%,#07191db5); }
.result-panel {
  display:flex; align-items:stretch; justify-content:flex-start; isolation:isolate; width:min(91%,1020px); min-height:clamp(245px,34vh,405px);
  padding:0; border:1px solid #c5ac75; border-block:2px solid #bfaa7c; border-radius:2px 14px 2px 2px; text-align:left;
  background:radial-gradient(ellipse at 81% 50%,#6a6d46,#30463a 38%,#122d2a 75%); box-shadow:0 18px 54px #071014ad;
}
.result-panel::before,.result-panel::after { content:""; position:absolute; pointer-events:none; inset:0; z-index:-1; }
.result-screen[data-scene-art=ready] .result-panel::before { background-image:url("assets/art/rescue-report.webp"); background-size:100% 200%; background-position:0 0; }
.result-screen[data-scene-art=ready][data-won=false] .result-panel::before { background-position:0 100%; }
.result-panel::after { background:linear-gradient(90deg,#122a26fa,#142c29ee 28%,#15292393 52%,#16231c00 77%),linear-gradient(0deg,#11222169,transparent 35%); }
.result-screen[data-won=false] .result-panel::after { background:linear-gradient(90deg,#292925f5,#2d2924e8 30%,#2c2c2585 53%,transparent 78%); }
.result-report { width:61%; max-width:630px; flex:0 0 auto; align-content:center; justify-items:start;
  padding:clamp(16px,2.5vh,32px) clamp(18px,2.7vw,46px); gap:3px; }
.result-report .region-seal { position:absolute; top:clamp(13px,2vh,30px); right:clamp(14px,1.8vw,30px); width:clamp(39px,4.3vw,78px); filter:drop-shadow(0 2px 4px #1729219e); }
.result-report > small { font-size:clamp(11px,.9vw,14px); color:#f2d79c; }
.result-report h2 { font-size:clamp(35px,min(5.4vw,7.2vh),85px); color:#fff0bd; line-height:.95; }
.result-report p { color:#d2d5c5; font-size:clamp(13px,1.05vw,17px); margin:4px 0 12px; }
.result-stats { width:min(100%,385px); justify-content:flex-start; gap:clamp(17px,2.8vw,45px); padding:8px 0; border-color:#d0c49b56; }
.result-stats b { color:#f6ebcb; font-size:clamp(19px,2vw,32px); }
.result-stats span { color:#c3cdb9; }
.result-actions { justify-content:start; flex-wrap:wrap; margin-top:10px; gap:6px; }
.result-portrait { position:absolute; inset:12% 4% 0 auto; width:30%; overflow:visible; background:none; pointer-events:none; }
.result-portrait::before { display:none; height:100%; width:auto; max-width:130%; background-size:200% 100%; filter:drop-shadow(0 3px 8px #15241c7a); }
.result-screen[data-crew-art=ready] .result-portrait::before { display:block; }
.result-screen[data-crew-art=ready] .result-report .region-seal { z-index:1; }

/* Keep the whole route and launch control visible on handheld landscape. */
@media (max-height:550px) and (min-width:650px) and (orientation:landscape) {
  .board-frame { display:grid; grid-template-rows:33px 44px minmax(0,1fr); row-gap:5px; height:100svh; padding:7px 2.2vw; }
  .board-header { padding:0; }.board-header h2 { font-size:24px; }.board-header .round-back { width:27px; height:27px; font-size:22px; }
  .board-progress .progress-track { margin-top:2px; height:3px; }.board-progress strong { font-size:17px; }
  .chapter-navigation { margin:0; min-height:0; }.chapter-list { padding:0 3px; scrollbar-width:none; }
  .chapter-tab { min-height:39px; padding:3px 5px; flex-basis:85px; }.chapter-name,.chapter-index { font-size:10px; }.rail-arrow { height:26px; }
  .board-content { min-height:0; grid-template-columns:minmax(0,1.85fr) minmax(217px,.95fr); gap:9px; }
  .region-poster { min-height:0; }.region-caption { padding:8px 12px; gap:6px; }.region-caption > .region-seal { width:30px; }
  .region-caption small { font-size:8px; }.region-caption h3 { font-size:25px; margin:1px 0; }#region-progress { font-size:11px; }
  .mission-list .mission-card { width:26px; min-width:0; }.pin-number { font-size:13px; }
  .mission-intel { display:grid; grid-template-columns:1fr auto; align-content:start; padding:9px 10px; gap:3px 6px; }
  .mission-intel::before,.intel-top .region-seal { display:none; }.intel-top { grid-area:1/2/3/3; margin:0; }.intel-paging button { width:23px;height:23px; }
  .mission-code { font-size:8px; }.mission-intel h3 { font-size:20px;margin:0;grid-column:1; }
  .mission-intel .intel-map { grid-column:1/-1; height:clamp(44px,13vh,75px); aspect-ratio:auto;margin:2px 0 3px; }
  .mission-intel .intel-lesson { grid-column:1/-1;font-size:11px;line-height:1.16; margin:2px 0; }
  .intel-target { grid-column:1; margin:0; padding:0; font-size:10px; }.intel-target strong { font-size:14px; }
  .intel-loadout { grid-column:1/-1; flex-wrap:nowrap; gap:2px; margin:0; }.tool-ration { font-size:10px; }.tool-ration .painted-tool { width:15px; }
  #intel-launch { grid-column:1/-1; min-height:25px; margin-top:3px; padding:3px; font-size:12px; }
  .result-panel { min-height:0; width:93%; }.result-report { width:67%; padding:9px 13px; gap:1px; }
  .result-report h2 { font-size:26px; }.result-report p { margin:2px 0; font-size:11px; }.result-report > small { font-size:9px; }
  .result-stats { padding:3px 0; }.result-stats b { font-size:15px; }.result-stats span { font-size:7px; }.result-actions { margin-top:3px; }
  #skills.skill-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:3px; }
  #skills .skill { min-height:29px; grid-template-columns:22px minmax(0,1fr) auto; grid-template-rows:1fr; padding:2px; gap:1px; }
  #skills .skill-icon { width:21px;grid-area:1/1; }#skills .skill-name { grid-area:1/2; font-size:12px; }#skills .skill-count { grid-area:1/3;font-size:11px; align-self:center; }
  #mission-crest { width:24px; }.hud-quota { padding:0 6px; }.hud-quota b { font-size:20px; }.hud-stat b { font-size:15px; }
}
@media (max-width:700px) and (orientation:portrait) {
  .game-logo.painted { width:clamp(225px,67vw,330px); }.launch-insignia { width:38px; }.launch-button { min-height:55px; }
  .game-header { grid-template-columns:minmax(0,1fr) auto; }.mission-heading { gap:5px; }#mission-crest { display:none; }
  .crew-console { padding:4px 0; }.hud-quota { padding:0 8px; }.hud-quota b { font-size:23px; }.hud-stat b { font-size:17px; }
  .region-poster { min-height:clamp(230px,34vh,350px); }.region-caption > .region-seal { width:34px; }.region-caption h3 { font-size:29px; }
  .mission-intel::before { display:none; }.mission-intel { padding:12px 13px; }.mission-intel h3 { margin:3px 0 6px; }
  .mission-intel .intel-lesson { font-size:12px; margin:0 0 6px; }.mission-intel .intel-map { margin:3px 0; aspect-ratio:auto; }.intel-target { margin-top:2px; }
  .brief-plaque { top:5px; left:5px; padding:3px 5px; gap:5px; }.brief-plaque .region-seal { width:25px; }.brief-plaque b { font-size:15px; }
  .skill-grid { flex-wrap:wrap; justify-content:start; }.toolbox { border-top-color:#87987865; }
  #skills .skill { flex:0 1 calc(25% - 5px); min-height:51px; padding:3px 4px; }#skills .skill-icon { width:29px; }
  .result-panel { width:96%; min-height:0; }.result-report { width:74%; padding:8px 9px; gap:0; }
  .result-report h2 { font-size:24px; }.result-report p { font-size:11px; margin:3px 0; }.result-report > small { font-size:8px; }
  .result-stats { padding:4px 0; width:90%; }.result-stats b { font-size:15px; }.result-stats span { font-size:7px; }
  .result-actions { gap:3px;margin-top:4px; }.result-portrait { right:2%; width:25%; }
}
@media(prefers-reduced-motion:reduce) {
 .title-art::after { animation:none; opacity:.35; }
 .launch-button,.board-button,.progress-track span,#hud-quota-fill { transition:none; }
}


.game-screen:is([data-phase=won],[data-phase=lost]) .toolbox { visibility:hidden; }
@media (max-height:550px) and (min-width:650px) and (orientation:landscape) {
  .board-frame { grid-template-columns:minmax(0,1fr); }
  .chapter-navigation,.board-content,.region-poster { min-width:0; }
}
@media (min-width:850px) and (max-width:1250px) and (min-height:551px) and (max-height:740px) {
  .board-frame { padding-block:12px; }.board-header { padding-bottom:8px; }
  .board-content { grid-template-columns:minmax(0,2.3fr) minmax(245px,.9fr); }
  .chapter-navigation { margin:7px 0; }.chapter-tab { min-height:43px; }
  .mission-intel { padding:12px 14px; }.intel-top { margin-bottom:5px; }.intel-top .region-seal { width:36px; }
  .mission-intel h3 { margin:4px 0 8px; }.intel-map { margin-bottom:9px; aspect-ratio:2.65; }
  .mission-intel .intel-lesson { font-size:13px; line-height:1.25; }.intel-loadout { margin:4px 0 7px; }
  #intel-launch { min-height:34px; }
}


#command-hint { margin-top:4px; color:#bfd3bc; font:600 12px/1.25 var(--ui); }
#command-hint:empty,.game-screen[data-phase=brief] #command-hint,.game-screen[data-kit=none] #command-hint,.game-screen[data-kit=full] #command-hint { display:none; }
#launch-key { margin-left:auto; padding:2px 6px; border:1px solid #5e4d2f; border-radius:3px; font:700 13px var(--ui); }
#launch-key:not([hidden]) + .chevron { display:none; }
@media (max-height:550px), (max-width:700px) { #command-hint { display:none; } }


@media (orientation:landscape) and (max-height:520px) and (min-width:601px) {
  .game-screen { padding-bottom:0; }
  .game-frame { height:100svh; display:flex; flex-direction:column; }
  .game-header { flex:0 0 auto; }
  .play-layout { flex:1; min-height:0; grid-template-rows:minmax(0,1fr) auto auto; }
  .playfield { height:100%; container-type:size; align-items:center; }
  .canvas-wrap { width:min(100%,200cqh); }
  .mission-readout { padding-bottom:2px; }
}
@media(min-width:1001px) and (max-width:1150px) and (min-height:551px) and (max-height:720px) {
  .game-screen[data-kit=standard] .transport { max-width:200px; flex-wrap:wrap; gap:4px; }
  .game-screen[data-kit=standard] .transport button { min-height:27px; }
}


/* Saved expeditions resume in the region the player can actually enter. */
.camp-party,.menu-screen[data-title="fresh"] #camp-site { display:none; }
.menu-screen[data-title="camp"] { background:#142522; }
.menu-screen[data-title="camp"] .title-art { background-position:50% 49%; }
.menu-screen[data-title="camp"]::after { background:linear-gradient(90deg,#0a1819ef 0%,#0b1a1cc7 23%,#10202157 48%,transparent 74%),linear-gradient(0deg,#081817f5 0%,#0e191849 18%,transparent 50%,#09171747); }
.menu-screen[data-title="camp"] .camp-party {
  display:block; position:absolute; z-index:-1; pointer-events:none; bottom:clamp(55px,9vh,108px); right:clamp(-22px,1.5vw,46px);
  width:min(57vw,100svh,1100px); aspect-ratio:1233/850;
}
.menu-screen[data-title="camp"] .camp-party::after { content:""; position:absolute; inset:0; background:url("assets/art/camp-crew.webp") center bottom/contain no-repeat; filter:drop-shadow(0 3px 2px #171b1690); }
.camp-deck { position:absolute; left:-11%; width:151%; bottom:-21%; height:34%; transform:rotate(-1.5deg); }
.camp-deck::before,.camp-deck::after { content:""; position:absolute; inset:0; }
.camp-deck::before { height:68%; clip-path:polygon(12% 0,100% 0,100% 100%,0 80%,0 60%);
  background:
    radial-gradient(ellipse 12% 21% at 60% 46%,#190f0be0,transparent),radial-gradient(ellipse 22% 21% at 29% 43%,#1f160ce8,transparent),
    linear-gradient(8deg,#38271fe8,transparent 36%,#5b46256e 76%,#a98f6377),
    repeating-linear-gradient(1.3deg,transparent 0 18%,#342418d9 19%,#c7975d9e 20%,transparent 22% 28%),
    #71563b url("assets/art/foundry-kit.webp") 52% 33.333%/122% 400%; }
.camp-deck::after { top:55%; height:70%; clip-path:polygon(0 0,100% 20%,100% 100%,5% 96%,0 78%);
  background:linear-gradient(8deg,#201c17f0,#37261acc 68%,#a17a4f59),
    #684427 url("assets/art/foundry-kit.webp") left 33.333%/94% 400%; }
.menu-screen[data-title="camp"] .title-stack { width:min(52vw,880px); max-width:none; padding-block:clamp(12px,3vh,48px); }
.menu-screen[data-title="camp"] .game-logo.painted { width:clamp(155px,16vw,290px); margin:0 0 clamp(18px,3vh,38px) -2px; }
#camp-site .save-route { display:block; margin:0 0 clamp(19px,3vh,40px); }
#camp-site .save-cover,.menu-screen[data-title="camp"] #footer-site { display:none; }
#camp-site small { display:flex; align-items:center; gap:10px; color:#ffe1a2; font:700 clamp(13px,1.05vw,18px)/1.2 var(--ui); letter-spacing:.15em; }
#camp-site small::after { content:""; width:clamp(45px,6vw,92px); height:1px; background:linear-gradient(90deg,#dac18d,transparent); }
#camp-site strong { display:block; color:#fff2d4; font:700 clamp(45px,5.7vw,108px)/.98 var(--display); text-wrap:balance; margin-top:5px; text-shadow:0 3px 12px #06161699; }
.menu-screen[data-title="camp"] .launch-button { text-wrap:balance; }
.menu-screen[data-title="camp"] #launch-title { font:700 clamp(11px,.88vw,16px)/1.1 var(--ui); text-transform:uppercase; letter-spacing:.06em; color:#493c27; }
.menu-screen[data-title="camp"] #continue-label { font:700 clamp(20px,1.75vw,32px)/1.06 var(--display); color:#242a20; }
.menu-screen[data-title="camp"] .save-strip { grid-template-columns:minmax(0,1fr) minmax(160px,340px); }
.menu-screen[data-title="camp"] .home-chapters { justify-self:start; }
@media (max-width:700px) and (orientation:portrait) {
  .menu-screen[data-title="camp"]::after { background:linear-gradient(0deg,#0c2020 0%,#102425f2 20%,#0b191bd1 39%,#101e1e30 62%,#0917172b); }
  .menu-screen[data-title="camp"] .title-art { background-size:cover; background-position:center; mask-image:linear-gradient(#000 32%,transparent 89%); }
  .menu-screen[data-title="camp"] .camp-party { inset:auto 0 51svh auto; width:min(100%,59.45svh,640px); }
  .menu-screen[data-title="camp"] .title-stack { margin:auto 0 0; width:100%; padding:clamp(70px,22vh,250px) 0 16px; }
  .menu-screen[data-title="camp"] .game-logo.painted { width:clamp(107px,29vw,160px); margin:0 0 12px; }
  #camp-site .save-route { margin-bottom:13px; }#camp-site strong { font-size:clamp(37px,10.5vw,62px); }
  #camp-site small { font-size:11px; }
  .menu-screen[data-title="camp"] .save-strip { display:flex; flex-direction:column; align-items:stretch; gap:11px; }
  .menu-screen[data-title="camp"] .menu-progress { order:-1; width:100%; }
  .menu-screen[data-title="camp"] .menu-actions { width:min(420px,100%); }
}
@media (max-height:560px) and (orientation:landscape) {
  .menu-screen[data-title="camp"] .title-stack { padding:4px 0; width:55vw; }
  .menu-screen[data-title="camp"] .game-logo.painted { width:clamp(85px,14vw,144px); margin-bottom:5px; }
  #camp-site .save-route { margin-bottom:5px; }#camp-site small { font-size:10px; }#camp-site strong { font-size:clamp(28px,4.5vw,50px); }
  .menu-screen[data-title="camp"] .camp-party { width:min(57vw,104.45svh); bottom:clamp(37px,10vh,52px); right:1.5vw; }
  .menu-screen[data-title="camp"] .launch-button { min-height:38px; padding:3px 9px; }
  .menu-screen[data-title="camp"] .launch-insignia { width:34px; }
  .menu-screen[data-title="camp"] #continue-label { font-size:17px; }
  .menu-screen[data-title="camp"] #launch-title { font-size:10px; }
  .menu-screen[data-title="camp"] .menu-actions { gap:3px; }
  .menu-screen[data-title="camp"] .board-button { min-height:27px; padding:4px 9px; font-size:14px; }
}

/* At a planning pause the next simulated tick is a deliberate player action. */
#field-planning-slot .planning-console { position:absolute; z-index:1; top:10px; left:50%; transform:translateX(-50%); }
.planning-console { display:flex; align-items:center; justify-content:center; gap:9px; padding:4px 5px; max-width:96%;
  color:#f6e7c0; border:1px solid #beaf80; border-radius:4px 10px 3px 3px; background:linear-gradient(100deg,#253e34f5,#112a26f7); box-shadow:0 4px 12px #0716128c; }
.planning-console .pause-flag { position:static; transform:none; border:0; background:transparent; box-shadow:none; padding:3px; font:700 clamp(14px,1.15vw,20px)/1 var(--display); white-space:nowrap; }
#planning-readout { font:600 clamp(12px,.96vw,16px)/1.15 var(--ui); color:#e2e8d4; text-align:center; }
.step-frame { flex:none; background:#dfc48c; color:#1e3027; border:1px solid #f5deb0; border-radius:2px 5px 2px 2px; padding:6px 8px; font:700 clamp(14px,1.12vw,18px)/1 var(--display); }
.step-frame:focus-visible,.planning-console .pause-flag:focus-visible { outline-offset:1px; }
.step-frame kbd { display:inline-block; min-width:14px; padding:1px 2px; margin-right:5px; border:1px solid #7d7049; border-radius:3px; text-align:center; font:700 11px/1 var(--ui); }
#rail-planning-slot .planning-console { margin-top:5px; max-width:none; justify-content:space-between; box-shadow:none; }
@media (max-height:520px) and (orientation:landscape) {
  #field-planning-slot .planning-console { top:4px; padding:2px 3px; gap:4px; }
  .planning-console .pause-flag,.step-frame { font-size:13px; }#planning-readout { font-size:11px; }
}

