:root {
  color-scheme: dark;
  --ink: #f4f8ef;
  --muted: #b7c8bb;
  --panel: rgba(8, 28, 24, .88);
  --panel-solid: #102d25;
  --line: rgba(196, 224, 201, .28);
  --amber: #f6ba56;
  --amber-hot: #ffdc83;
  --green: #8be0ac;
  --danger: #ef5a4c;
  --cyan: #69c8c8;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #06100f; }
body { color: var(--ink); user-select: none; -webkit-user-select: none; }
button, input, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, canvas:focus-visible, input:focus-visible { outline: 2px solid var(--amber-hot); outline-offset: 3px; }
.hidden { display: none !important; }

.game-shell, #world { position: fixed; inset: 0; width: 100%; height: 100%; }
#world { display: block; background: radial-gradient(circle at 50% 25%, #557b6a, #142b26 46%, #07110f); cursor: crosshair; touch-action: none; }

/* Briefing */
.boot { position: fixed; inset: 0; z-index: 20; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 31vw); background: #071211; overflow: hidden; }
.boot::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(3, 12, 11, .96) 0%, rgba(3, 13, 12, .78) 45%, rgba(3, 12, 11, .12) 72%),
  radial-gradient(ellipse at 77% 41%, transparent 0 16%, rgba(3, 9, 8, .34) 55%, #020908 100%),
  linear-gradient(150deg, #264a3e 0%, #0e2721 42%, #091714 100%); }
.boot::after { content: ""; position: absolute; inset: 0 28% 0 36%; opacity: .75; filter: drop-shadow(0 30px 30px #010605); transform: skewX(-5deg); background:
  radial-gradient(ellipse at 64% 30%, #a3b48a 0 2.8%, #4c6b52 3% 5%, transparent 5.2%),
  radial-gradient(ellipse at 56% 34%, #263f34 0 10%, transparent 10.5%),
  linear-gradient(125deg, transparent 39%, #385d49 40% 48%, transparent 49%) 50% 40% / 72% 45% no-repeat,
  radial-gradient(ellipse at 52% 49%, #31513f 0 19%, transparent 19.5%),
  radial-gradient(ellipse at 52% 85%, #12251e 0 32%, transparent 32.5%); }
.boot-noise { position: absolute; z-index: 2; inset: 0; pointer-events: none; opacity: .12; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
.boot-grid { position: absolute; z-index: 2; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(163, 209, 177, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(163, 209, 177, .035) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(90deg, #000, transparent 70%); }
.boot-panel { position: relative; z-index: 4; width: min(720px, 64vw); align-self: center; padding: clamp(34px, 6vw, 96px); padding-right: 30px; }
.wordmark { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; letter-spacing: .15em; font-size: 12px; font-weight: 700; }
.wordmark i, .brand-chip > i { width: 24px; aspect-ratio: 1; display: inline-block; background: var(--amber); clip-path: polygon(50% 0, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%); position: relative; }
.wordmark i::after, .brand-chip > i::after { content: ""; position: absolute; inset: 6px; background: #0b1715; clip-path: polygon(50% 0, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%); }
.wordmark b { color: var(--amber); }
.eyebrow { margin: 58px 0 14px; color: var(--amber); letter-spacing: .25em; font: 700 11px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; }
.boot h1 { margin: 0; font: 900 clamp(49px, 6.7vw, 102px)/.82 "Arial Narrow", Impact, sans-serif; letter-spacing: -.045em; text-shadow: 0 10px 40px #000; }
.boot h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 1px rgba(238, 246, 232, .72); letter-spacing: .01em; }
.boot-copy { max-width: 565px; margin: 25px 0 28px; color: #b9c8bd; font-size: clamp(14px, 1.25vw, 17px); line-height: 1.6; }
.mission-card { width: min(580px, 100%); display: grid; grid-template-columns: 122px 1fr; gap: 20px; padding: 14px; border: 1px solid var(--line); background: rgba(5, 17, 15, .72); box-shadow: inset 3px 0 var(--amber), 0 18px 50px rgba(0,0,0,.22); backdrop-filter: blur(12px); }
.mission-art { position: relative; overflow: hidden; min-height: 116px; background: linear-gradient(145deg, #d4a849, #4a6c4f 44%, #102820 45%); }
.mission-art::before { content: ""; position: absolute; left: 12%; right: 9%; bottom: 7%; height: 70%; border-radius: 55% 80% 10% 20%; background: #172a23; transform: rotate(-8deg); box-shadow: 22px 6px 0 -15px #172a23; }
.mission-art span { position: absolute; left: 18%; bottom: 16%; width: 25%; height: 48%; border: 8px solid #172a23; border-right: 0; border-bottom: 0; transform: rotate(-13deg); }
.mission-art i { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 19px, rgba(239,242,218,.08) 20px); }
.mission-card small, .mission-card strong { display: block; }
.mission-card small { margin-top: 2px; color: var(--amber); letter-spacing: .17em; font: 700 9px ui-monospace, monospace; }
.mission-card strong { margin-top: 6px; font-size: 21px; letter-spacing: .04em; }
.mission-card p { margin: 7px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.mission-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mission-tags span { padding: 4px 7px; border: 1px solid rgba(242,170,61,.28); color: #d7c394; font: 700 8px ui-monospace, monospace; letter-spacing: .11em; }
.boot-status { display: flex; align-items: center; gap: 9px; margin: 20px 0 10px; min-height: 24px; color: #b5c3ba; font: 700 10px ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.boot-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); animation: pulse 1.2s infinite; }
.boot-status.ready i { background: var(--green); box-shadow: 0 0 12px var(--green); animation: none; }
.boot-status.error i { background: var(--danger); box-shadow: 0 0 12px var(--danger); animation: none; }
.boot-status::after { margin-left: auto; padding: 3px 6px; border: 1px solid rgba(105,200,200,.28); color: var(--cyan); font-size: 7px; letter-spacing: .14em; }
body[data-graphics="webgl"] .boot-status::after { content: "LIVE 3D"; }
body[data-graphics="canvas"] .boot-status::after { content: "COMPATIBILITY"; color: var(--muted); border-color: var(--line); }
.boot-actions { width: min(580px, 100%); display: grid; grid-template-columns: 1fr 190px; gap: 10px; }
.deploy, .account { min-height: 54px; border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.deploy { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; color: #172014; background: var(--amber); font-weight: 900; letter-spacing: .09em; box-shadow: inset 0 -3px rgba(95,47,5,.23); }
.deploy:hover:not(:disabled) { background: var(--amber-hot); transform: translateY(-1px); }
.deploy:disabled { filter: grayscale(.6); opacity: .46; cursor: wait; }
.deploy kbd { padding: 3px 7px; background: rgba(19,29,17,.15); border: 1px solid rgba(19,29,17,.25); color: inherit; font-size: 9px; }
.account { display: flex; flex-direction: column; justify-content: center; padding: 0 14px; text-align: left; color: var(--ink); border-color: var(--line); background: rgba(7,19,17,.82); }
.account span { font-size: 11px; font-weight: 700; }
.account small { color: var(--muted); margin-top: 2px; font: 8px ui-monospace, monospace; letter-spacing: .13em; text-transform: uppercase; }
.account:hover { border-color: rgba(242,170,61,.55); }
.squad-lobby { width: min(580px, 100%); display: grid; grid-template-columns: 190px 1fr; gap: 10px; margin-top: 10px; }
.squad-share, .squad-join { min-height: 52px; border: 1px solid var(--line); background: rgba(7,19,17,.82); color: var(--ink); }
.squad-share { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-content: center; gap: 2px 8px; padding: 8px 12px; text-align: left; cursor: pointer; }
.squad-share span, .squad-share small, .squad-join label { color: var(--muted); font: 700 8px ui-monospace, monospace; letter-spacing: .12em; }
.squad-share b { color: var(--green); font: 800 12px ui-monospace, monospace; letter-spacing: .08em; }
.squad-share small { grid-column: 2; grid-row: 1 / span 2; align-self: center; max-width: 48px; color: var(--amber); font-size: 7px; }
.squad-share:hover:not(:disabled) { border-color: rgba(242,170,61,.55); }
.squad-share:disabled { opacity: .5; cursor: wait; }
.squad-join { display: grid; align-content: center; gap: 4px; padding: 7px 9px; }
.squad-join div { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.squad-join input { min-width: 0; height: 26px; border: 1px solid rgba(196,224,201,.22); padding: 0 8px; background: rgba(0,8,7,.72); color: var(--ink); font: 10px ui-monospace, monospace; user-select: text; -webkit-user-select: text; }
.squad-join button { min-width: 54px; border: 1px solid rgba(242,170,61,.45); background: rgba(242,170,61,.12); color: var(--amber); cursor: pointer; font: 800 9px ui-monospace, monospace; letter-spacing: .1em; }
.squad-join button:disabled { opacity: .5; cursor: wait; }
.squad-lobby-status { width: min(580px, 100%); min-height: 13px; margin: 6px 0 0; color: #82958b; font: 8px ui-monospace, monospace; letter-spacing: .06em; }
.squad-lobby-status.ready { color: var(--green); }
.squad-lobby-status.error { color: var(--danger); }
.boot-hint { margin: 10px 0 0; color: #718279; font-size: 10px; }
.briefing { position: relative; z-index: 4; border-left: 1px solid rgba(210,230,215,.12); background: linear-gradient(180deg, rgba(4,14,13,.16), rgba(4,14,13,.74)); padding: 46px 40px; display: flex; flex-direction: column; justify-content: flex-end; }
.briefing-index { position: absolute; top: 38px; right: 36px; color: rgba(241,245,232,.16); font: 900 112px/.8 Impact, sans-serif; }
.briefing-copy { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.briefing-copy small { color: var(--amber); font: 700 9px ui-monospace, monospace; letter-spacing: .2em; }
.briefing-copy p { color: #becbc1; font-size: 13px; line-height: 1.55; }
.connection { display: flex; align-items: center; gap: 8px; padding-top: 16px; color: var(--muted); font: 700 9px ui-monospace, monospace; letter-spacing: .16em; }
.connection i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.connection.online i { background: var(--green); box-shadow: 0 0 10px var(--green); }

/* HUD */
.hud { position: fixed; inset: 0; z-index: 5; pointer-events: none; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; text-shadow: 0 1px 3px #000; }
.hud::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 90px rgba(0,13,11,.38); }
.hud-top { position: absolute; top: calc(18px + var(--safe-top)); left: 23px; right: 23px; display: grid; grid-template-columns: 230px 1fr 230px; align-items: start; }
.brand-chip, .conditions { display: flex; align-items: center; gap: 10px; }
.brand-chip > i { width: 22px; }
.brand-chip b, .brand-chip small, .conditions b, .conditions small { display: block; }
.brand-chip b { font-size: 10px; letter-spacing: .14em; }
.brand-chip small { margin-top: 2px; color: var(--amber); font-size: 8px; letter-spacing: .13em; }
.compass { justify-self: center; position: relative; width: clamp(270px, 36vw, 540px); display: flex; align-items: center; justify-content: space-between; padding: 0 34px 10px; color: rgba(232,239,230,.55); font-size: 9px; letter-spacing: .18em; border-bottom: 1px solid rgba(225,240,230,.17); }
.compass b { color: #fff; font-size: 11px; }
.compass-tick { position: absolute; left: 50%; bottom: -4px; width: 7px; height: 7px; background: var(--amber); transform: translateX(-50%) rotate(45deg); box-shadow: 0 0 8px rgba(242,170,61,.8); }
.conditions { justify-self: end; min-width: 118px; justify-content: flex-end; }
.conditions > span { font-size: 24px; color: var(--amber-hot); }
.conditions b { font-size: 10px; letter-spacing: .12em; text-align: right; }
.conditions small { margin-top: 2px; color: #b2bfb6; font-size: 9px; text-align: right; }
.objective-panel { position: absolute; top: calc(82px + var(--safe-top)); left: 23px; width: min(340px, 34vw); padding: 13px 15px 14px; border-left: 2px solid var(--amber); background: linear-gradient(90deg, rgba(5,15,14,.82), rgba(5,15,14,.2)); }
.objective-head { display: flex; justify-content: space-between; color: var(--amber); font-size: 8px; letter-spacing: .15em; }
.objective-head b { color: #bdc9c0; }
.objective-panel h2 { margin: 8px 0 3px; font-family: Inter, "Segoe UI", sans-serif; font-size: 16px; }
.objective-panel p { margin: 0; color: #adbbb1; font-family: Inter, "Segoe UI", sans-serif; font-size: 11px; line-height: 1.4; }
.objective-progress { height: 3px; margin: 12px 0 6px; background: rgba(214,233,216,.13); overflow: hidden; }
.objective-progress i { display: block; height: 100%; width: 0; background: var(--amber); box-shadow: 0 0 7px var(--amber); transition: width .35s ease; }
.objective-panel > small { color: #d5dfd7; font-size: 8px; letter-spacing: .12em; }
.squad { position: absolute; top: calc(82px + var(--safe-top)); right: 23px; width: 224px; }
.squad-head { display: flex; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 8px; letter-spacing: .17em; }
.squad-head small { color: var(--green); }
.squad-members { display: grid; gap: 6px; padding-top: 8px; }
.squad-member { height: 39px; display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 5px 7px; background: linear-gradient(90deg, rgba(5,17,15,.75), rgba(5,17,15,.22)); border-left: 2px solid var(--squad-color, var(--green)); }
.squad-member .avatar { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid rgba(211,233,216,.27); color: var(--squad-color, var(--green)); font: 900 11px Inter, sans-serif; }
.squad-member b, .squad-member small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.squad-member b { font: 700 10px Inter, sans-serif; }
.squad-member small { margin-top: 2px; color: #8ea096; font-size: 7px; letter-spacing: .1em; }
.squad-member .range { color: #abbab0; font-size: 8px; }
.squad-member.downed { --squad-color: var(--danger); animation: dangerPulse 1s infinite; }
.crosshair { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; transform: translate(-50%,-50%); }
.crosshair i, .crosshair::before, .crosshair::after { content: ""; position: absolute; background: rgba(244,249,241,.86); box-shadow: 0 0 2px #000; }
.crosshair i:first-child { left: 0; top: 16px; width: 9px; height: 1px; }
.crosshair i:nth-child(2) { right: 0; top: 16px; width: 9px; height: 1px; }
.crosshair::before { left: 16px; top: 0; width: 1px; height: 9px; }
.crosshair::after { left: 16px; bottom: 0; width: 1px; height: 9px; }
.crosshair b { position: absolute; left: 15px; top: 15px; width: 3px; height: 3px; border-radius: 50%; background: var(--amber-hot); }
.interaction { position: absolute; left: 50%; top: calc(50% + 52px); transform: translateX(-50%); display: flex; align-items: center; gap: 9px; padding: 7px 12px 7px 7px; background: rgba(5,14,13,.82); border: 1px solid rgba(221,236,225,.18); }
.interaction kbd { display: grid; place-items: center; width: 29px; height: 29px; color: #172014; background: var(--amber); font-weight: 900; }
.interaction small, .interaction b { display: block; }
.interaction small { color: var(--amber); font-size: 7px; letter-spacing: .17em; }
.interaction b { margin-top: 2px; font: 700 11px Inter, sans-serif; }
.look-hint { position: absolute; left: 50%; top: calc(50% + 92px); transform: translateX(-50%); padding: 7px 11px; color: #f7d28e; background: rgba(5,14,13,.82); border: 1px solid rgba(242,170,61,.42); font-size: 8px; letter-spacing: .12em; white-space: nowrap; animation: toastIn .25s ease-out; }
.scan-hud { position: absolute; inset: 50% auto auto 50%; width: min(340px, 48vw); transform: translate(-50%, -50%); }
.scan-bracket { position: relative; height: min(270px, 34vh); }
.scan-bracket i { position: absolute; width: 28px; height: 28px; border-color: var(--amber-hot); border-style: solid; }
.scan-bracket i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; }
.scan-bracket i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
.scan-bracket i:nth-child(3) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.scan-bracket i:nth-child(4) { left: 0; bottom: 0; border-width: 0 0 2px 2px; }
.scan-bracket span { position: absolute; left: 50%; top: -20px; transform: translateX(-50%); color: var(--amber-hot); font-size: 9px; letter-spacing: .16em; white-space: nowrap; }
.scan-progress { height: 5px; margin-top: 11px; background: rgba(220,237,224,.16); border: 1px solid rgba(220,237,224,.14); }
.scan-progress i { display: block; width: 0; height: 100%; background: var(--amber-hot); box-shadow: 0 0 12px var(--amber); }
.scan-hud > small { display: block; margin-top: 8px; text-align: center; color: #e7eee8; font-size: 8px; letter-spacing: .13em; }
.hud-bottom { position: absolute; left: 23px; right: 23px; bottom: calc(24px + var(--safe-bottom)); display: grid; grid-template-columns: 265px 1fr 330px; align-items: end; gap: 25px; }
.vitals { display: grid; gap: 7px; }
.vital { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 8px; width: 215px; }
.vital > span { display: grid; place-items: center; width: 32px; height: 32px; color: #07130f; background: var(--green); font: 900 18px Inter, sans-serif; }
.vital.stamina > span { background: var(--amber); }
.vital > div { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; }
.vital small { color: #bec9c0; font-size: 7px; letter-spacing: .15em; }
.vital b { font-size: 11px; }
.vital i { grid-column: 1 / -1; display: block; height: 4px; background: rgba(224,238,226,.13); overflow: hidden; }
.vital em { display: block; height: 100%; width: 100%; background: var(--green); transition: width .2s; }
.vital.stamina em { background: var(--amber); }
.noise-meter { justify-self: center; width: 150px; text-align: center; }
.noise-meter small, .noise-meter span { display: block; color: #aebbb2; font-size: 7px; letter-spacing: .15em; }
.noise-meter i { display: block; height: 3px; margin: 5px 0; background: rgba(224,238,226,.13); }
.noise-meter em { display: block; height: 100%; width: 7%; background: var(--green); transition: width .18s, background .18s; }
.equipment { display: flex; justify-content: flex-end; gap: 7px; pointer-events: auto; }
.slot { position: relative; width: 100px; height: 53px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 7px; padding: 8px; color: #b8c4bb; background: rgba(4,14,12,.71); border: 1px solid rgba(218,235,222,.15); cursor: pointer; }
.slot.active { color: var(--ink); border-color: var(--amber); background: rgba(24,27,16,.78); box-shadow: inset 0 -2px var(--amber); }
.slot kbd { position: absolute; top: 3px; left: 4px; color: #88978d; font-size: 7px; }
.slot > i { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid currentColor; font-style: normal; }
.scanner-icon::before { content: ""; width: 13px; height: 13px; border: 2px dashed currentColor; border-radius: 50%; }
.flare-icon::before { content: ""; width: 5px; height: 21px; background: currentColor; transform: rotate(35deg); }
.slot b, .slot small { display: block; text-align: left; }
.slot b { font-size: 8px; letter-spacing: .08em; }
.slot small { margin-top: 3px; color: var(--amber); font-size: 7px; }
.controls-hint { position: absolute; left: 50%; bottom: calc(3px + var(--safe-bottom)); transform: translateX(-50%); display: flex; gap: 14px; color: rgba(220,232,223,.54); font-size: 7px; letter-spacing: .08em; }
kbd { font-family: inherit; }
.controls-hint kbd { color: #dce7de; }
.toast-stack { position: absolute; right: 23px; bottom: calc(93px + var(--safe-bottom)); width: min(340px, 32vw); display: grid; gap: 7px; }
.toast { padding: 10px 12px; border-left: 2px solid var(--amber); background: rgba(5,16,14,.86); animation: toastIn .25s ease-out; }
.toast b, .toast span { display: block; }
.toast b { color: var(--amber); font-size: 8px; letter-spacing: .14em; }
.toast span { margin-top: 3px; font: 12px Inter, sans-serif; }
.toast.good { border-color: var(--green); }
.toast.good b { color: var(--green); }
.toast.bad { border-color: var(--danger); }
.toast.bad b { color: #ff8b7d; }
.hit-vignette, .low-health { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, transparent 35%, rgba(133,7,2,.68)); }
.hit-vignette.flash { animation: hit .5s ease-out; }
.low-health { opacity: .5; animation: lowPulse 1.4s infinite; }

/* Menu/debrief */
.pause, .debrief { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 18px; background: rgba(2,9,8,.74); backdrop-filter: blur(9px); }
.pause-panel, .debrief-panel { width: min(480px, calc(100vw - 36px)); padding: 32px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(11,29,25,.97), rgba(5,15,13,.98)); box-shadow: inset 3px 0 var(--amber), 0 30px 100px #000; }
.pause .eyebrow, .debrief .eyebrow { margin: 0 0 8px; }
.pause h2, .debrief h2 { margin: 0 0 24px; font: 900 30px "Arial Narrow", Impact, sans-serif; letter-spacing: .03em; }
.menu-btn { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; margin-top: 7px; padding: 0 14px; color: var(--ink); text-align: left; text-decoration: none; background: rgba(222,239,226,.04); border: 1px solid var(--line); cursor: pointer; }
.menu-btn:hover { border-color: rgba(242,170,61,.7); background: rgba(242,170,61,.08); }
.menu-btn.primary { color: #172014; background: var(--amber); border-color: var(--amber); font-weight: 800; }
.menu-btn.danger { color: #ff9a90; }
.menu-btn kbd { font-size: 9px; }
.settings-panel { margin-top: 14px; padding: 14px; border: 1px solid var(--line); }
.settings-panel label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 11px 0; color: #bcc9c0; font-size: 12px; }
.settings-panel input[type="range"] { width: 170px; accent-color: var(--amber); }
.settings-panel input[type="checkbox"] { accent-color: var(--amber); }
.debrief { background: radial-gradient(circle at 50% 28%, rgba(55,88,66,.62), rgba(2,9,8,.94) 62%); }
.debrief-panel { width: min(590px, calc(100vw - 36px)); text-align: center; box-shadow: inset 0 3px var(--amber), 0 30px 100px #000; }
.debrief-panel > p:not(.eyebrow) { color: #acbbb0; line-height: 1.5; }
.debrief-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.debrief-stats div { padding: 18px 7px; border-right: 1px solid var(--line); }
.debrief-stats div:last-child { border: 0; }
.debrief-stats small, .debrief-stats b { display: block; }
.debrief-stats small { color: var(--muted); font: 8px ui-monospace, monospace; letter-spacing: .15em; }
.debrief-stats b { margin-top: 6px; color: var(--amber-hot); font: 900 24px Inter, sans-serif; }
.debrief .deploy { width: 100%; }
.result-link { margin-top: 9px; width: 100%; }

/* Touch */
.mobile-controls { position: fixed; z-index: 12; inset: 0; pointer-events: none; }
.move-pad { position: absolute; left: 26px; bottom: calc(34px + var(--safe-bottom)); width: 118px; height: 118px; border-radius: 50%; border: 1px solid rgba(235,245,237,.24); background: rgba(4,14,12,.28); pointer-events: auto; touch-action: none; }
.move-pad::before, .move-pad::after { content: ""; position: absolute; background: rgba(235,245,237,.09); }
.move-pad::before { left: 50%; top: 12px; bottom: 12px; width: 1px; }
.move-pad::after { top: 50%; left: 12px; right: 12px; height: 1px; }
.move-pad i { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; border-radius: 50%; transform: translate(-50%,-50%); background: rgba(242,170,61,.36); border: 1px solid rgba(255,206,105,.68); }
.touch-action { position: absolute; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: rgba(7,20,17,.54); border: 1px solid rgba(235,245,237,.25); font: 800 9px ui-monospace, monospace; pointer-events: auto; touch-action: none; }
.touch-action.scan { right: 27px; bottom: calc(45px + var(--safe-bottom)); width: 84px; height: 84px; border-color: rgba(242,170,61,.65); color: var(--amber-hot); }
.touch-action.sprint { right: 118px; bottom: calc(36px + var(--safe-bottom)); width: 58px; height: 58px; }
.touch-action.ping { right: 36px; bottom: calc(140px + var(--safe-bottom)); width: 52px; height: 52px; }

.high-contrast .hud { text-shadow: 0 1px 2px #000, 0 0 3px #000; }
.high-contrast .objective-panel, .high-contrast .squad-member, .high-contrast .slot { background-color: rgba(0,8,7,.93); }

@keyframes pulse { 50% { opacity: .35; transform: scale(.72); } }
@keyframes dangerPulse { 50% { opacity: .58; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(16px); } }
@keyframes hit { 0% { opacity: .9; } 100% { opacity: 0; } }
@keyframes lowPulse { 50% { opacity: .23; } }

@media (max-width: 900px) {
  .boot { grid-template-columns: 1fr; }
  .boot-panel { width: min(690px, 100vw); padding: 30px clamp(22px, 7vw, 70px); }
  .briefing { display: none; }
  .hud-top { grid-template-columns: 160px 1fr 90px; }
  .brand-chip span { display: none; }
  .conditions { min-width: 60px; }
  .conditions > span { display: none; }
  .objective-panel { width: 320px; max-width: 52vw; }
  .squad { width: 190px; }
  .hud-bottom { grid-template-columns: 225px 1fr 220px; }
  .equipment .slot { width: 58px; grid-template-columns: 1fr; }
  .slot span { display: none; }
  .slot > i { justify-self: center; }
}

@media (max-height: 820px) and (min-width: 621px) {
  .boot-panel { max-height: 100vh; overflow-y: auto; padding-top: 24px; padding-bottom: 24px; }
  .eyebrow { margin-top: 24px; }
  .boot-copy { margin: 14px 0 16px; }
  .mission-art { min-height: 94px; }
  .boot-status { margin-top: 12px; }
}

@media (hover: none), (pointer: coarse) {
  .mobile-controls:not(.hidden) { display: block !important; }
  .controls-hint, .noise-meter, .crosshair { display: none; }
  .hud-bottom { bottom: calc(165px + var(--safe-bottom)); grid-template-columns: 1fr auto; }
  .equipment { grid-column: 2; }
  .slot { width: 47px; }
  .objective-panel { top: calc(62px + var(--safe-top)); }
  .squad { top: calc(62px + var(--safe-top)); }
}

@media (max-width: 620px) {
  .look-hint { display: none; }
  .boot-panel { align-self: stretch; overflow-y: auto; overflow-x: hidden; padding-top: calc(24px + var(--safe-top)); padding-bottom: calc(28px + var(--safe-bottom)); }
  .wordmark { font-size: 10px; }
  .eyebrow { margin-top: 34px; }
  .boot h1 { font-size: clamp(38px, 12.5vw, 58px); letter-spacing: -.025em; }
  .boot-copy { font-size: 13px; margin: 18px 0; }
  .mission-card { grid-template-columns: 88px 1fr; gap: 12px; }
  .mission-art { min-height: 105px; }
  .mission-card strong { font-size: 17px; }
  .mission-card p { font-size: 10px; }
  .boot-actions { grid-template-columns: 1fr; }
  .account { min-height: 46px; }
  .squad-lobby { grid-template-columns: 1fr; }
  .squad-join div { grid-template-columns: 1fr 64px; }
  .squad-join input, .squad-join button { height: 44px; }
  .hud-top { left: 12px; right: 12px; top: calc(10px + var(--safe-top)); grid-template-columns: 32px 1fr 70px; }
  .compass { width: 180px; padding-left: 13px; padding-right: 13px; }
  .compass span { display: none; }
  .conditions b { font-size: 8px; }
  .objective-panel { left: 12px; top: calc(51px + var(--safe-top)); max-width: calc(100vw - 142px); padding: 9px 10px; }
  .objective-panel h2 { font-size: 12px; }
  .objective-panel p { display: none; }
  .objective-progress { margin: 8px 0 4px; }
  .squad { right: 12px; top: calc(51px + var(--safe-top)); width: 116px; }
  .squad-head small, .squad-member small, .squad-member .range { display: none; }
  .squad-member { grid-template-columns: 21px 1fr; height: 31px; padding: 3px 5px; gap: 5px; }
  .squad-member .avatar { width: 20px; height: 20px; font-size: 8px; }
  .squad-member b { font-size: 8px; }
  .hud-bottom { left: 12px; right: 12px; bottom: calc(218px + var(--safe-bottom)); grid-template-columns: 1fr auto; }
  .vitals { gap: 3px; }
  .vital { width: 145px; grid-template-columns: 25px 1fr; gap: 5px; }
  .vital > span { width: 24px; height: 24px; font-size: 13px; }
  .vital small { display: none; }
  .vital > div { grid-template-columns: 1fr auto; }
  .equipment { gap: 4px; }
  .slot { width: 44px; min-width: 44px; height: 44px; padding: 5px; }
  .slot > i { width: 25px; height: 25px; }
  .slot kbd { display: none; }
  .toast-stack { right: 12px; bottom: calc(278px + var(--safe-bottom)); width: calc(100vw - 24px); }
  .scan-hud { width: 76vw; }
}

@media (max-width: 360px) {
  .boot-panel { padding-left: 18px; padding-right: 18px; }
  .eyebrow { margin-top: 26px; }
  .boot h1 { max-width: 100%; font-size: clamp(30px, 11.2vw, 43px); line-height: .9; letter-spacing: -.035em; }
  .mission-card { grid-template-columns: 1fr; }
  .mission-art { display: none; }
}
.founder-next { width:100%; margin-top:10px; pointer-events:auto; }
.founder-links { display:flex; gap:10px; justify-content:space-between; margin-top:7px; }
.founder-links button { min-height:38px; background:none; border:0; color:#dedcaf; font:700 9px ui-monospace,monospace; cursor:pointer; pointer-events:auto; }
.launch-note { display:block; color:#b6c7b8; margin-top:4px; font-size:9px; line-height:1.4; }
.founder-steps { padding:18px 18px 18px 38px; border:1px solid #546657; border-radius:8px; color:#dbe4d4; font-size:14px; line-height:1.7; }
.founder-steps li+li { margin-top:10px; }
.park-goal { max-height:calc(100vh - 270px); overflow:auto; overscroll-behavior:contain; pointer-events:auto; }
@media (max-width:600px) {
  .park-goal { max-height:205px; }
  .park-goal p { max-height:44px; overflow:auto; }
  .founder-next { min-height:38px; padding:7px 10px; margin-top:5px; font-size:10px; }
  .founder-links button { min-height:32px; font-size:8px; }
  .launch-note { font-size:8px; }
}

@media (hover: none) and (max-height: 520px) and (orientation: landscape),
       (pointer: coarse) and (max-height: 520px) and (orientation: landscape) {
  .hud-top { top: calc(6px + var(--safe-top)); left: 14px; right: 14px; grid-template-columns: 1fr 72px; }
  .brand-chip { display: none; }
  .compass { grid-column: 1; width: min(330px, 52vw); padding-bottom: 7px; }
  .conditions { grid-column: 2; }
  .objective-panel { top: calc(43px + var(--safe-top)); left: 14px; width: min(270px, 43vw); max-width: none; padding: 7px 9px 8px; }
  .objective-panel h2 { margin: 5px 0 2px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .objective-panel p { display: none; }
  .objective-progress { margin: 6px 0 4px; }
  .squad { top: calc(43px + var(--safe-top)); right: 14px; width: 108px; }
  .squad-head small, .squad-member small, .squad-member .range { display: none; }
  .squad-member { grid-template-columns: 21px 1fr; height: 29px; padding: 3px 5px; gap: 5px; }
  .squad-member .avatar { width: 20px; height: 20px; font-size: 8px; }
  .squad-member b { font-size: 8px; }
  .hud-bottom { left: 150px; right: 174px; bottom: calc(8px + var(--safe-bottom)); grid-template-columns: minmax(170px, 1fr) auto; gap: 10px; }
  .vitals { grid-template-columns: repeat(2, minmax(78px, 1fr)); gap: 6px; }
  .vital { width: auto; grid-template-columns: 24px 1fr; gap: 4px; }
  .vital > span { width: 23px; height: 23px; font-size: 12px; }
  .vital small, .noise-meter { display: none; }
  .equipment { gap: 4px; }
  .slot { width: 44px; min-width: 44px; height: 44px; }
  .move-pad { left: 18px; bottom: calc(14px + var(--safe-bottom)); width: 96px; height: 96px; }
  .move-pad i { width: 42px; height: 42px; }
  .touch-action.scan { right: 18px; bottom: calc(16px + var(--safe-bottom)); width: 70px; height: 70px; }
  .touch-action.sprint { right: 96px; bottom: calc(18px + var(--safe-bottom)); width: 52px; height: 52px; }
  .touch-action.ping { right: 24px; bottom: calc(94px + var(--safe-bottom)); width: 48px; height: 48px; }
  .toast-stack { top: calc(126px + var(--safe-top)); right: 174px; bottom: auto; width: min(330px, 42vw); }
  .controls-hint { display: none; }
}

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

/* Field Ops: a readable assignment, a route, and a reason to come back. */
.boot { background: #143629; }
.boot::before { background: linear-gradient(90deg, rgba(6,23,19,.98), rgba(9,32,24,.9) 43%, rgba(11,38,27,.26) 78%), radial-gradient(ellipse at 74% 30%, #648257, transparent 53%), linear-gradient(150deg, #2d6549, #102b23 70%); }
.boot::after { opacity: .54; }
.boot-panel { width: min(810px, 69vw); padding: clamp(28px, 4vw, 68px); padding-right: 34px; }
.boot .eyebrow { margin: 30px 0 15px; font-size: 10px; letter-spacing: .19em; }
.boot h1 { font-size: clamp(56px, 6.4vw, 91px); line-height: .88; }
.boot h1 em { color: #dbe8cb; -webkit-text-stroke: 0; letter-spacing: -.035em; }
.boot-copy { max-width: 570px; margin: 21px 0; font-size: 15px; color: #c4d5c6; line-height: 1.55; }
.mission-card { padding: 15px; border-color: rgba(163,205,167,.3); background: rgba(17,43,33,.94); box-shadow: inset 3px 0 var(--amber); }
.mission-card p { color: #c4d2c4; font-size: 12px; }
.mission-tags span { color: #e6d29a; }
.mission-card strong { letter-spacing: .025em; }
.boot-actions { grid-template-columns: 1fr 170px; }
.deploy { min-height: 56px; font-size: 12px; transition: background .15s, transform .15s; }
.account { background: rgba(16,43,33,.92); }
.squad-share, .squad-join { background: rgba(12,34,27,.9); }
.squad-lobby-status { color: #b8cbbc; font-size: 10px; line-height: 1.4; }
.briefing-controls { display: flex; flex-wrap: wrap; gap: 7px 15px; margin-top: 19px; color: #b5cbb9; font-size: 10px; line-height: 1.5; }
.briefing-controls kbd { color: #f2e6b9; font-weight: 800; }
.boot-hint { color: #9eb7a7; font-size: 10px; }
.briefing { padding: 46px 34px; background: linear-gradient(180deg, rgba(13,40,29,.05), rgba(7,27,21,.86)); }
.briefing-index { color: rgba(224,240,210,.23); }
.briefing-copy h2 { margin: 14px 0; color: #ecf2df; font: 800 clamp(24px,2.8vw,40px)/1.12 Inter, "Segoe UI", sans-serif; letter-spacing: -.035em; }
.briefing-copy p { color: #bfd1bf; }
.briefing-beats { padding: 0; margin: 26px 0 6px; list-style: none; display: grid; gap: 17px; color: #d7e5d1; font-size: 12px; }
.briefing-beats span { margin-right: 12px; color: var(--amber); font: 700 10px ui-monospace, monospace; }
.hud::after { box-shadow: inset 0 0 60px rgba(0,13,11,.22); }
.hud-top { align-items: center; grid-template-columns: 220px 1fr 290px; min-height: 38px; }
.compass { width: clamp(170px, 26vw, 370px); }
.hud-readouts { display: flex; justify-content: flex-end; gap: 18px; align-items: center; }
.mission-metric { min-width: 62px; text-align: right; }
.mission-metric small { display: block; color: #d2decf; font-size: 8px; letter-spacing: .09em; white-space: nowrap; }
.mission-metric b { display: block; margin-top: 2px; color: var(--amber-hot); font: 800 21px/1.1 ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.mission-metric.time b { color: #f4f8ed; }
.mission-metric.time.urgent b, #missionClock.urgent { color: #ff9b7e; }
.conditions { min-width: 62px; gap: 5px; opacity: .84; }
.conditions > span { font-size: 20px; }
.conditions b { font-size: 8px; }
.conditions small { font-size: 8px; }
.objective-panel { width: min(350px, 34vw); top: calc(84px + var(--safe-top)); padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 3px; box-shadow: 0 4px 24px rgba(0,0,0,.15); }
.objective-head { gap: 12px; font-size: 9px; letter-spacing: .08em; }
.objective-head b { color: #e3edda; white-space: nowrap; }
.mission-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; padding: 0; margin: 12px 0 13px; list-style: none; }
.mission-steps li { padding: 6px 3px; border-bottom: 2px solid rgba(203,224,204,.2); color: #afc2b2; font-size: 8px; letter-spacing: .03em; white-space: nowrap; text-align: center; }
.mission-steps li span { color: #adc4b5; margin-right: 3px; }
.mission-steps li.active, .mission-steps li[aria-current="step"] { color: var(--amber-hot); background: rgba(246,186,86,.12); border-color: var(--amber); }
.mission-steps li.complete { color: var(--green); border-color: var(--green); }
.mission-steps li.complete span { color: var(--green); }
.objective-panel h2 { font-size: 18px; line-height: 1.25; margin: 0 0 5px; }
.objective-panel p { color: #c5d6c6; font-size: 12px; line-height: 1.5; }
.objective-progress { height: 4px; margin: 12px 0 9px; }
.objective-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.objective-foot small { color: #c9d9c9; font-size: 8px; letter-spacing: .06em; }
#objectiveBearing { color: var(--amber-hot); font-size: 9px; text-align: right; }
.route-map-card { position: absolute; left: 23px; bottom: calc(133px + var(--safe-bottom)); width: 198px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); overflow: hidden; }
#mapToggle { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 38px; padding: 0 10px; border: 0; border-bottom: 1px solid var(--line); background: rgba(108,172,126,.06); color: #e2eeda; font: 700 9px ui-monospace, monospace; letter-spacing: .11em; cursor: pointer; pointer-events: auto; }
#mapToggle:hover { background: rgba(108,172,126,.2); }
.map-toggle-icon { color: var(--amber-hot); font-size: 17px; }
#routeMapPanel { padding: 8px; }
#routeMap { display: block; width: 180px; height: 180px; max-width: 100%; background: #102d25; border: 1px solid rgba(153,203,155,.18); }
#routeHint { margin: 8px 2px 1px; color: #dce9d4; font: 10px/1.45 Inter, "Segoe UI", sans-serif; }
.route-map-card.collapsed #routeMapPanel { display: none; }
.route-map-card.collapsed #mapToggle { border-bottom: 0; }
.target-info { position: absolute; right: 23px; top: calc(323px + var(--safe-top)); width: 224px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; }
.target-info-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.target-info-head small { color: #adc7b4; font-size: 8px; letter-spacing: .1em; }
.target-info-head b { color: var(--amber-hot); font-size: 8px; letter-spacing: .04em; }
.target-info h3 { margin: 9px 0 4px; font: 750 17px/1.25 Inter, "Segoe UI", sans-serif; }
.target-info p { margin: 0; color: #c9dac7; font: 11px/1.5 Inter, "Segoe UI", sans-serif; }
.squad-head { color: #d0dfcd; }
.squad-member { background: rgba(8,28,24,.84); }
.squad-member small { color: #bad1bf; }
.scan-feedback { position: absolute; left: 50%; bottom: calc(146px + var(--safe-bottom)); transform: translateX(-50%); width: max-content; max-width: min(540px, calc(100vw - 40px)); padding: 10px 15px; color: #f8e5b4; background: rgba(10,28,22,.94); border: 1px solid rgba(246,186,86,.45); border-radius: 3px; text-align: center; font: 600 12px/1.4 Inter, "Segoe UI", sans-serif; }
.scan-feedback.ready, .scan-feedback.good { border-color: var(--green); color: #b2f0c6; }
.interaction { border-radius: 3px; min-height: 47px; }
.interaction small { font-size: 8px; }
.interaction b { font-size: 12px; }
.scan-hud > small { font-size: 10px; text-shadow: 0 1px 4px #000; }
.scan-bracket span { font-size: 10px; }
.controls-hint { gap: 16px; bottom: calc(5px + var(--safe-bottom)); font-size: 8px; color: #b3c7b7; }
.controls-hint kbd { color: #e9eddb; }
.vital small, .noise-meter small, .noise-meter span { color: #d1dfcd; font-size: 8px; }
.vital b { font-size: 13px; }
.slot b { font-size: 9px; }
.slot small { font-size: 8px; }
.slot kbd { color: #c8d8ca; font-size: 9px; }
.pause-panel, .debrief-panel { background: linear-gradient(145deg, rgba(22,53,39,.98), rgba(8,26,21,.99)); }
.pause h2, .debrief h2 { margin-bottom: 18px; }
.result-rank { margin: 7px auto 17px; width: 120px; padding: 11px; border: 1px solid rgba(246,186,86,.4); background: rgba(246,186,86,.06); }
.result-rank span { display: block; color: #dfcc99; font: 700 8px ui-monospace, monospace; letter-spacing: .12em; }
.result-rank b { display: block; margin-top: 4px; color: var(--amber-hot); font: 900 46px/1.1 Inter, "Segoe UI", sans-serif; }
.debrief-stats { margin: 20px 0 14px; }
.debrief-panel > p.result-breakdown { margin: 10px 0; color: #cadcc7; font: 11px/1.6 ui-monospace, monospace; }
.debrief-panel > p.personal-best { margin: 0 0 22px; color: var(--amber-hot); font-size: 12px; font-weight: 600; }
.touch-action { background: rgba(12,35,26,.85); border-color: rgba(220,241,219,.45); font-size: 10px; box-shadow: 0 3px 12px rgba(0,0,0,.16); }
.touch-action.scan { background: rgba(43,54,28,.9); border: 2px solid var(--amber); }
.touch-action.flare { right: 99px; bottom: calc(110px + var(--safe-bottom)); width: 52px; height: 52px; color: var(--amber-hot); }
.touch-menu { position: absolute; top: calc(53px + var(--safe-top)); right: 13px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 3px; background: rgba(8,28,24,.94); color: #e9eddb; font-size: 20px; cursor: pointer; pointer-events: auto; }
.high-contrast .route-map-card, .high-contrast .target-info, .high-contrast .scan-feedback { background: #04170e; border-color: #d7e6c4; }

@media (max-width: 1100px) {
  .hud-top { grid-template-columns: 150px 1fr 230px; }
  .hud-readouts { gap: 12px; }
  .hud-readouts .conditions { display: none; }
  .route-map-card { width: 164px; }
  #routeMap { width: 146px; height: 146px; }
}
@media (max-width: 900px) {
  .boot-panel { width: min(740px, 100vw); padding: 28px clamp(24px, 6vw, 60px); }
  .hud-top { grid-template-columns: 50px 1fr 190px; }
  .objective-panel { width: 310px; max-width: 43vw; }
  .target-info { width: 190px; }
  .controls-hint { gap: 9px; font-size: 7px; }
}
@media (max-height: 760px) and (min-width: 621px) {
  .boot-panel { max-height: 100dvh; overflow-y: auto; padding-top: 22px; padding-bottom: 22px; }
  .boot .eyebrow { margin-top: 22px; }
  .boot h1 { font-size: clamp(47px, 6vw, 70px); }
  .boot-copy { margin: 15px 0; }
  .briefing-controls { margin-top: 13px; }
  .route-map-card { bottom: calc(119px + var(--safe-bottom)); width: 148px; }
  #routeMap { width: 130px; height: 130px; }
  .target-info { top: calc(295px + var(--safe-top)); }
}
@media (max-width: 620px) {
  .boot-panel { width: 100%; max-height: 100dvh; padding: calc(20px + var(--safe-top)) 20px calc(24px + var(--safe-bottom)); }
  .boot .eyebrow { margin: 24px 0 12px; font-size: 9px; }
  .boot h1 { max-width: 100%; font-size: clamp(34px, 11.7vw, 68px); line-height: .89; }
  .boot-copy { font-size: 13px; line-height: 1.5; margin: 17px 0; }
  .mission-card { grid-template-columns: 70px 1fr; gap: 12px; padding: 12px; }
  .mission-art { min-height: 94px; }
  .mission-card strong { font-size: 17px; }
  .mission-card p { font-size: 11px; margin-bottom: 10px; }
  .mission-card small { font-size: 8px; letter-spacing: .1em; }
  .mission-tags { gap: 4px; }
  .mission-tags span { font-size: 7px; padding: 4px; letter-spacing: .02em; }
  .boot-status { margin-top: 14px; font-size: 9px; letter-spacing: .05em; }
  .boot-actions { grid-template-columns: 1fr; gap: 7px; }
  .deploy { min-height: 51px; }
  .account { min-height: 43px; }
  .squad-lobby { grid-template-columns: 1fr; gap: 7px; }
  .squad-share { min-height: 44px; }
  .squad-share small { max-width: none; font-size: 8px; }
  .squad-join { min-height: 66px; }
  .squad-lobby-status { font-size: 9px; }
  .briefing-controls { margin-top: 14px; gap: 4px 12px; font-size: 9px; }
  .boot-hint { font-size: 9px; line-height: 1.5; }
  .hud-top { top: calc(11px + var(--safe-top)); left: 12px; right: 12px; grid-template-columns: 25px 1fr auto; gap: 7px; }
  .brand-chip > i { width: 20px; }
  .compass { width: 95px; padding: 0 4px 7px; font-size: 8px; }
  .compass b { font-size: 10px; letter-spacing: .01em; }
  .hud-readouts { gap: 12px; }
  .mission-metric { min-width: 49px; }
  .mission-metric small { font-size: 7px; letter-spacing: .03em; }
  .mission-metric b { font-size: 18px; }
  .objective-panel { top: calc(61px + var(--safe-top)); left: 12px; width: calc(100vw - 24px); max-width: none; padding: 11px 12px; }
  .objective-head { font-size: 8px; padding-right: 44px; }
  .mission-steps { margin: 10px 0 10px; gap: 6px; }
  .mission-steps li { font-size: 8px; padding: 5px 3px; }
  .objective-panel h2 { font-size: 15px; margin-bottom: 5px; }
  .objective-panel p { display: block; font-size: 10px; line-height: 1.4; }
  .objective-progress { margin: 9px 0 7px; }
  .objective-foot small { font-size: 7px; }
  #objectiveBearing { font-size: 8px; }
  .route-map-card { top: calc(249px + var(--safe-top)); left: 12px; bottom: auto; width: 125px; }
  #mapToggle { min-height: 38px; padding: 0 9px; font-size: 8px; }
  #routeMapPanel { padding: 6px; }
  #routeMap { width: 111px; height: 111px; }
  #routeHint { font-size: 9px; line-height: 1.35; }
  .target-info { top: calc(249px + var(--safe-top)); right: 12px; width: calc(100vw - 162px); padding: 9px 10px; }
  .target-info-head { gap: 5px; flex-wrap: wrap; }
  .target-info-head small, .target-info-head b { font-size: 7px; }
  .target-info h3 { margin: 7px 0 4px; font-size: 13px; }
  .target-info p { font-size: 10px; line-height: 1.4; }
  .squad { top: auto; right: 12px; bottom: calc(220px + var(--safe-bottom)); width: 125px; }
  .squad-head { font-size: 7px; padding-bottom: 5px; }
  .squad-members { gap: 4px; padding-top: 5px; }
  .squad-member { height: 26px; }
  .squad-member .avatar { width: 18px; height: 18px; }
  .hud-bottom { bottom: calc(161px + var(--safe-bottom)); left: 12px; right: 12px; grid-template-columns: 1fr auto; gap: 8px; }
  .vital { width: 132px; }
  .vital b { font-size: 11px; }
  .vitals { gap: 3px; }
  .vital > span { height: 22px; width: 22px; }
  .equipment .slot { width: 42px; min-width: 42px; height: 44px; }
  .noise-meter, .controls-hint { display: none; }
  .scan-feedback { bottom: calc(213px + var(--safe-bottom)); max-width: calc(100vw - 158px); left: 12px; transform: none; padding: 8px 10px; font-size: 10px; text-align: left; }
  .scan-hud { width: min(280px, 76vw); }
  .scan-bracket { height: min(210px, 27vh); }
  .scan-hud > small { font-size: 8px; letter-spacing: .03em; }
  .interaction { top: calc(50% + 48px); max-width: calc(100vw - 28px); width: max-content; padding: 6px 10px 6px 6px; }
  .interaction b { font-size: 10px; }
  .interaction small { font-size: 7px; }
  .toast-stack { top: auto; right: 12px; bottom: calc(282px + var(--safe-bottom)); width: calc(100vw - 24px); }
  .toast { padding: 8px 10px; }
  .toast span { font-size: 11px; }
  .move-pad { left: 20px; bottom: calc(27px + var(--safe-bottom)); width: 106px; height: 106px; }
  .move-pad i { width: 46px; height: 46px; }
  .touch-action.scan { right: 17px; bottom: calc(30px + var(--safe-bottom)); width: 78px; height: 78px; }
  .touch-action.sprint { right: 103px; bottom: calc(23px + var(--safe-bottom)); width: 50px; height: 50px; }
  .touch-action.ping { right: 108px; bottom: calc(85px + var(--safe-bottom)); width: 46px; height: 46px; }
  .touch-action.flare { right: 25px; bottom: calc(118px + var(--safe-bottom)); width: 46px; height: 46px; }
  .touch-menu { top: calc(59px + var(--safe-top)); right: 12px; width: 44px; height: 44px; border-color: transparent; background: transparent; }
  .pause-panel, .debrief-panel { padding: 24px 19px; width: 100%; }
  .pause h2, .debrief h2 { font-size: 26px; }
  .debrief-panel > p:not(.eyebrow) { font-size: 12px; }
  .debrief-stats small { font-size: 7px; letter-spacing: .05em; }
  .debrief-stats b { font-size: 22px; }
  .result-rank { margin-bottom: 13px; }
  .settings-panel input[type="range"] { width: 118px; }
}
@media (max-width: 360px) {
  .boot-panel { padding-left: 17px; padding-right: 17px; }
  .boot .eyebrow { font-size: 8px; margin-top: 20px; }
  .boot h1 { font-size: 11.7vw; }
  .boot-copy { font-size: 12px; }
  .mission-card { grid-template-columns: 1fr; }
  .mission-art { display: none; }
  .hud-top { gap: 4px; }
  .hud-readouts { gap: 8px; }
  .compass { width: 75px; }
  .objective-panel { padding: 10px; }
  .objective-panel h2 { font-size: 14px; }
  .objective-panel p { font-size: 9px; }
  .route-map-card, .target-info { top: calc(246px + var(--safe-top)); }
  .route-map-card { width: 109px; }
  #routeMap { width: 95px; height: 95px; }
  .target-info { width: calc(100vw - 143px); }
  .squad { bottom: calc(218px + var(--safe-bottom)); width: 109px; }
  .scan-feedback { max-width: calc(100vw - 144px); font-size: 9px; }
  .move-pad { left: 16px; width: 94px; height: 94px; }
  .touch-action.scan { right: 15px; width: 72px; height: 72px; }
  .touch-action.sprint { right: 95px; }
  .touch-action.ping { right: 98px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .target-info { display: none; }
  .hud-top { top: calc(6px + var(--safe-top)); left: 14px; right: 14px; grid-template-columns: 50px 1fr auto; gap: 12px; }
  .compass { grid-column: 2; grid-row: 1; width: min(280px, 34vw); }
  .hud-readouts { grid-column: 3; grid-row: 1; }
  .objective-panel { top: calc(54px + var(--safe-top)); left: 12px; width: 265px; max-width: 40vw; padding: 9px 10px; }
  .mission-steps { margin: 6px 0; }
  .mission-steps li { padding: 4px 2px; font-size: 7px; }
  .objective-panel h2 { font-size: 12px; white-space: normal; }
  .objective-panel p { display: none; }
  .objective-foot small { font-size: 7px; }
  #objectiveBearing { font-size: 7px; }
  .route-map-card { top: calc(53px + var(--safe-top)); bottom: auto; left: 50%; width: 112px; transform: translateX(-50%); }
  #routeMap { width: 94px; height: 94px; }
  #routeHint { font-size: 8px; }
  .target-info { right: 12px; top: calc(193px + var(--safe-top)); width: 145px; padding: 9px; }
  .target-info h3 { font-size: 12px; }
  .target-info p { font-size: 9px; }
  .squad { top: calc(53px + var(--safe-top)); width: 135px; right: 12px; bottom: auto; }
  .scan-feedback { bottom: calc(73px + var(--safe-bottom)); left: 50%; transform: translateX(-50%); max-width: 44vw; font-size: 10px; }
  .touch-menu { top: calc(4px + var(--safe-top)); left: 14px; right: auto; }
  .mobile-controls:not(.hidden) ~ .hud { pointer-events: none; }
  .touch-action.flare { right: 100px; bottom: calc(87px + var(--safe-bottom)); width: 46px; height: 46px; }
  .hud-bottom { left: 133px; right: 166px; bottom: calc(12px + var(--safe-bottom)); grid-template-columns: minmax(140px, 1fr) auto; gap: 9px; }
  .vitals { grid-template-columns: repeat(2,minmax(67px,1fr)); }
  .vital { width: auto; }
  .equipment .slot { width: 42px; min-width: 42px; height: 42px; }
  .toast-stack { top: auto; bottom: calc(124px + var(--safe-bottom)); left: 50%; right: auto; transform: translateX(-50%); width: min(330px,42vw); }
}

/* Parkworks — a living park, seen from the ground. */
:root { --park-paper: #f1ecd9; --park-deep: #102e2a; --park-line: rgba(212,233,216,.25); --park-mint: #b8e4c9; }
.boot h1 em { color: #d7e6bd; }
.boot-panel { width: min(830px, 69vw); }
.boot .eyebrow { letter-spacing: .16em; }
.experience-picker { width: min(580px,100%); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 13px; }
.experience-option { display: flex; align-items: center; gap: 10px; min-height: 65px; padding: 12px; text-align: left; background: rgba(12,34,27,.8); color: #bed0c0; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.experience-option .experience-icon { color: #bdccb7; font-size: 25px; }
.experience-option b, .experience-option small { display: block; }
.experience-option b { font-size: 10px; letter-spacing: .08em; }
.experience-option small { margin-top: 5px; font-size: 10px; line-height: 1.35; color: #aabfae; }
.experience-option.selected, .experience-option[aria-pressed="true"] { background: #284634; border-color: #c2d2a3; color: #f2efda; box-shadow: inset 0 -2px #d2dfa8; }
.experience-option[aria-pressed="true"] .experience-icon { color: #e2d59a; }
.experience-option[aria-pressed="true"] small { color: #d0dec4; }
.experience-option:hover { border-color: var(--amber); }
.park-mode .field-briefing-controls, body:not(.park-mode) .park-briefing-controls { display: none; }
.park-mode .mission-card { border-radius: 5px; border-left: 1px solid var(--line); box-shadow: none; background: rgba(20,47,36,.94); }
.park-mode .mission-art { border-radius: 3px; background: radial-gradient(ellipse at 30% 20%,#789667 0 15%,transparent 16%), radial-gradient(ellipse at 78% 80%,#5e9ba1 0 30%,transparent 31%),linear-gradient(35deg,#314f3b,#55764b); }
.park-mode .mission-art::before { left: 30%; bottom: -10%; width: 22%; height: 125%; border: 5px solid #c8be8b; border-top: none; border-bottom: none; border-radius: 40%; background: none; transform: rotate(30deg); box-shadow: none; }
.park-mode .mission-art span { bottom: 48%; left: 59%; width: 22px; height: 22px; border: 4px solid #e1dfb2; transform: rotate(12deg); background: #7e9770; }
.park-mode .mission-tags span { border-color: rgba(190,221,183,.23); color: #cfe0b8; }
.park-mode .briefing { justify-content: flex-end; }
.park-collage { position: absolute; left: 24px; right: 24px; top: 120px; height: min(27vw,290px); transform: rotate(-7deg); }
.collage-zone { position: absolute; padding: 13px; overflow: hidden; border: 4px solid #d1d8b7; border-radius: 10px; box-shadow: 0 14px 28px rgba(0,0,0,.25); }
.collage-zone span { position: absolute; bottom: 8px; left: 8px; z-index: 2; color: #e5ecce; padding: 4px 6px; background: rgba(10,35,23,.85); font: 700 7px ui-monospace, monospace; letter-spacing: .08em; }
.collage-zone.meadow { left: 0; top: 0; width: 70%; height: 64%; background: radial-gradient(ellipse at 30% 40%,#8cab6b 0 13%,transparent 14%),radial-gradient(ellipse at 72% 72%,#5c8653 0 20%,transparent 21%),#71965d; }
.collage-zone.forest { right: 0; top: 20%; width: 47%; height: 52%; transform: rotate(12deg); background: radial-gradient(ellipse at 22% 25%,#47764d 0 12%,transparent 13%),radial-gradient(ellipse at 72% 40%,#47764d 0 17%,transparent 18%),radial-gradient(ellipse at 35% 75%,#426b40 0 19%,transparent 20%),#244b36; }
.collage-zone.lagoon { left: 4%; bottom: 0; width: 68%; height: 43%; transform: rotate(3deg); background: radial-gradient(ellipse at 61% 73%,#548f94 0 38%,#bdbd8b 39% 46%,transparent 47%),#577750; }
.collage-zone i { position: absolute; left: 22%; top: -12%; height: 137%; width: 22%; border: 5px solid rgba(225,221,168,.7); border-top: none; border-bottom: none; border-radius: 48%; transform: rotate(42deg); }
.park-mode .briefing-copy { position: relative; padding: 18px 0 10px; background: linear-gradient(180deg,transparent,rgba(10,30,22,.4)); }
.park-mode .briefing-copy h2 { font-size: clamp(24px,2.45vw,36px); }
.park-mode .briefing-beats { margin-top: 18px; gap: 12px; }
.park-hud { position: fixed; z-index: 8; inset: 0; pointer-events: none; color: var(--park-paper); font-family: Inter,"Segoe UI",system-ui,sans-serif; }
.park-topbar { position: absolute; top: calc(18px + var(--safe-top)); left: 20px; right: 20px; min-height: 72px; display: grid; grid-template-columns: 175px 1fr 145px; align-items: center; gap: 22px; padding: 13px 20px; background: rgba(12,36,31,.95); border: 1px solid var(--park-line); border-radius: 9px; box-shadow: 0 5px 30px rgba(0,0,0,.13); }
.park-brand { display: flex; gap: 10px; align-items: center; }
.park-brand > i { width: 31px; height: 34px; display: grid; place-items: center; color: #d9e3b8; font-size: 31px; font-style: normal; }
.park-brand small, .park-brand b { display: block; }
.park-brand small { color: #b7cfba; font-size: 8px; letter-spacing: .12em; }
.park-brand b { margin-top: 2px; font-size: 18px; font-weight: 850; letter-spacing: -.025em; }
.park-stats { display: grid; grid-template-columns: 1.15fr 1.1fr repeat(3,1fr); gap: 14px; margin: 0; padding: 0; }
.park-stat { padding-left: 16px; border-left: 1px solid rgba(218,233,201,.15); min-width: 0; }
.park-stat dt { color: #b6ccba; font: 700 8px/1.2 ui-monospace,monospace; letter-spacing: .09em; white-space: nowrap; }
.park-stat dd { margin: 4px 0 0; font-size: clamp(15px,1.6vw,22px); font-weight: 750; letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.park-stat.credits dd { color: #f4d17e; }
.park-stat.income dd { color: #a9e5be; }
.park-status { text-align: right; min-width: 0; }
.park-status b { display: block; color: #d0dec2; font: 700 8px ui-monospace,monospace; letter-spacing: .09em; }
.park-status span { display: block; margin-top: 7px; color: #a8bfad; font-size: 9px; line-height: 1.3; }
.park-toolbar { position: absolute; bottom: calc(30px + var(--safe-bottom)); left: 50%; transform: translateX(-50%); display: flex; gap: 7px; padding: 7px; background: rgba(12,36,31,.96); border: 1px solid var(--park-line); border-radius: 10px; box-shadow: 0 4px 24px rgba(0,0,0,.17); pointer-events: auto; }
.park-tool { position: relative; min-width: 130px; height: 55px; padding: 8px 22px 8px 13px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid rgba(211,232,208,.14); border-radius: 6px; background: #213f33; color: #e8edd9; font-size: 11px; font-weight: 750; letter-spacing: .04em; cursor: pointer; }
.park-tool.build { color: #203521; background: #d6dfad; border-color: #d6dfad; }
.park-tool:hover { filter: brightness(1.12); }
.park-tool[aria-expanded="true"], .park-tool.active { outline: 2px solid #d3deb0; outline-offset: 1px; }
.park-tool-icon { font-size: 23px; line-height: 1; }
.park-tool kbd { position: absolute; right: 6px; top: 5px; font-size: 8px; font-weight: 500; opacity: .65; }
.park-tool.invite { min-width: 102px; }
.park-controls-hint { position: absolute; bottom: calc(6px + var(--safe-bottom)); left: 50%; transform: translateX(-50%); margin: 0; white-space: nowrap; font: 8px ui-monospace,monospace; color: #d0ddc7; text-shadow: 0 1px 3px #000; }
.park-controls-hint span { margin: 0 10px; opacity: .5; }
.park-controls-hint kbd { font-weight: 800; color: #fbf2d1; }
.park-goal, .park-director { position: absolute; bottom: calc(121px + var(--safe-bottom)); width: 306px; padding: 15px 17px; background: rgba(15,39,31,.94); border: 1px solid var(--park-line); border-radius: 8px; box-shadow: 0 4px 24px rgba(0,0,0,.12); }
.park-goal { left: 20px; border-top: 2px solid #dfd08c; }
.park-director { right: 20px; border-top: 2px solid #9bc4a4; }
.park-card-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #c4d4b8; font: 700 8px ui-monospace,monospace; letter-spacing: .06em; }
.park-card-eyebrow button { min-height: 30px; margin: -8px -8px -8px 0; padding: 5px 8px; border: 0; border-radius: 3px; color: #f0d58f; background: none; font: inherit; font-size: 8px; cursor: pointer; pointer-events: auto; }
.park-card-eyebrow button:hover { background: rgba(235,232,186,.08); }
.park-card-eyebrow small { color: #a3bba7; font-size: 7px; letter-spacing: .04em; }
.park-goal h2, .park-director h2 { margin: 11px 0 6px; color: #f1efdc; font-size: 17px; font-weight: 750; line-height: 1.2; letter-spacing: -.02em; }
.park-goal p, .park-director p { margin: 0; color: #bfceb9; font-size: 11px; line-height: 1.5; }
.park-goal-progress { height: 4px; margin-top: 12px; border-radius: 3px; background: #344e3e; overflow: hidden; }
#parkGoalProgress { display: block; width: 0; height: 100%; background: #decf8b; transition: width .3s ease; }
#parkClaimBtn { width: 100%; margin-top: 11px; min-height: 37px; font-size: 9px; pointer-events: auto; }
.park-panel { position: fixed; z-index: 24; top: calc(105px + var(--safe-top)); right: 20px; bottom: calc(116px + var(--safe-bottom)); width: min(570px,calc(100vw - 40px)); display: flex; flex-direction: column; overflow: hidden; color: var(--park-paper); background: rgba(13,35,29,.99); border: 1px solid #759078; border-radius: 12px; box-shadow: 0 18px 80px rgba(0,0,0,.4); }
.park-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 19px 22px 17px; border-bottom: 1px solid var(--park-line); background: #203e31; flex-shrink: 0; }
.park-panel-head-actions { display:flex; align-items:center; gap:8px; flex-shrink:0; }
/* One camera switch stays reachable in gameplay, panels, pause and briefing. */
.camera-controls { position:fixed; z-index:18; top:calc(108px + var(--safe-top)); left:20px; display:flex; gap:5px; align-items:center; flex-wrap:wrap; max-width:430px; padding:5px; border:1px solid #68836f; border-radius:8px; background:rgba(12,36,31,.95); pointer-events:auto; }
.camera-controls button,.camera-toggle { min-height:44px; padding:8px 10px; color:#eff6df; background:#254c3b; border:1px solid #64866c; border-radius:5px; font:700 10px ui-monospace,monospace; cursor:pointer; }
.camera-controls button:focus-visible,.camera-toggle:focus-visible { outline:3px solid #e7d08a; outline-offset:2px; }
.camera-controls button[aria-pressed=true] { color:#142c20; background:#d9dfad; }
.camera-controls .third-camera-tools { display:none; gap:4px; }
.third-camera-help { display:none; width:100%; color:#c2d4be; font:8px ui-monospace,monospace; text-align:center; padding:2px 0; }
.third-person .third-camera-tools { display:flex; }
.third-person .third-camera-help { display:block; }
body:has(#boot:not(.hidden)) #cameraControls,body:has(#pause:not(.hidden)) #cameraControls,body:has(#debrief:not(.hidden)) #cameraControls { display:none; }
.boot-camera-toggle { margin-top:10px; }
@media (max-width:620px) {
  .camera-controls { top:calc(170px + var(--safe-top)); left:10px; right:10px; max-width:none; gap:4px; }
  .camera-controls button { padding:7px; font-size:9px; }
  .camera-controls .third-camera-tools { gap:3px; }
  .camera-controls .third-camera-tools button { min-width:35px; }
  .third-camera-help { display:none!important; }
  .park-mode .park-goal { top:calc(232px + var(--safe-top)); max-height:min(150px,calc(50dvh - 252px)); }
  .park-mode.placing .camera-controls { top:calc(102px + var(--safe-top)); }
  .park-panel-head-actions { gap:5px; }
  .park-panel-head .camera-toggle { max-width:95px; padding:6px; font-size:9px; }
}
@media (max-height:520px) and (orientation:landscape) {
  .camera-controls { top:calc(76px + var(--safe-top)); left:272px; right:auto; max-width:calc(100vw - 340px); }
  .camera-controls button { padding:6px; font-size:9px; }
  .third-camera-help { display:none!important; }
  .park-mode .park-goal { top:calc(76px + var(--safe-top)); max-height:196px; }
  .park-mode.placing .camera-controls { top:calc(76px + var(--safe-top)); }
}
.park-panel-head small { color: #bed0b7; font: 700 8px ui-monospace,monospace; letter-spacing: .12em; }
.park-panel-head h2 { margin: 7px 0 0; font-size: 25px; font-weight: 800; letter-spacing: -.04em; }
#parkPanelClose { width: 42px; height: 42px; flex-shrink: 0; padding: 0; border: 1px solid rgba(214,232,207,.25); border-radius: 50%; background: rgba(255,255,255,.04); color: #e7edda; font-size: 26px; cursor: pointer; }
#parkPanelClose:hover { background: rgba(255,255,255,.12); }
.park-tabs { display: flex; flex-wrap: nowrap; gap: 6px; padding: 12px 17px; overflow-x: auto; flex-shrink: 0; border-bottom: 1px solid var(--park-line); scrollbar-width: thin; scrollbar-color: #7e9a79 transparent; }
.park-tab, .park-tabs button { flex-shrink: 0; min-height: 35px; padding: 7px 12px; border: 1px solid #405e47; border-radius: 5px; color: #c9d7bc; background: #203d2e; cursor: pointer; font-size: 11px; font-weight: 650; }
.park-tab.active, .park-tab[aria-selected="true"], .park-tabs button.active, .park-tabs button[aria-selected="true"] { color: #253720; border-color: #d8dfb6; background: #d8dfb6; }
.park-panel-content { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 18px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #7e9a79 transparent; user-select: text; -webkit-user-select: text; }
.park-grid, .park-catalog { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.park-card, .build-card, .dinosaur-card { position: relative; min-width: 0; padding: 14px; color: #e3e8d4; background: #1b382b; border: 1px solid #3c5b42; border-radius: 8px; text-align: left; }
button.park-card, button.build-card { cursor: pointer; font: inherit; }
button.park-card:hover, button.build-card:hover { background: #284832; border-color: #9cbd88; }
.park-card h3, .park-card h4, .build-card h3, .dinosaur-card h3 { margin: 0 0 7px; font-size: 15px; letter-spacing: -.015em; }
.park-card p, .build-card p, .dinosaur-card p { margin: 6px 0 10px; color: #b9ccb3; font-size: 11px; line-height: 1.5; }
.park-card small, .build-card small { color: #c0d0b9; font-size: 10px; line-height: 1.4; }
.park-card .cost, .build-card .cost, .park-price { color: #f0d287; font-weight: 750; font-size: 13px; }
.park-card .icon, .build-card .icon, .park-card-icon { display: block; margin-bottom: 10px; color: #d6dfaf; font-size: 25px; }
.park-card.selected, .park-card.active { border-color: #e0d18b; box-shadow: inset 0 0 0 1px #e0d18b; }
.park-card-top { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 7px; }
.park-card-top .park-badge { margin: 0 0 8px; }
.park-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(192,219,183,.16); }
.park-row:last-child { border-bottom: 0; }
.park-row > div { min-width: 0; }
.park-row b, .park-row strong { font-size: 12px; }
.park-row small { display: block; margin-top: 4px; color: #b4c8ac; font-size: 10px; line-height: 1.4; }
.park-stat-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin: 0 0 18px; }
.park-stat-grid > div { padding: 12px 10px; border-radius: 6px; background: #203f2f; border: 1px solid #3b5a40; color: #b8cbaf; font-size: 10px; }
.park-stat-grid small { display: block; color: #b8cbaf; font: 8px ui-monospace,monospace; letter-spacing: .04em; }
.park-stat-grid strong, .park-stat-grid b { display: block; margin-top: 7px; color: #e2e8c9; font-size: 20px; }
.park-action, #parkPanelContent button:not(.park-card):not(.build-card) { min-height: 38px; padding: 8px 13px; border: 1px solid #a8bb87; border-radius: 5px; color: #23391f; background: #d0dca7; font-size: 11px; font-weight: 750; cursor: pointer; }
.park-action:hover, #parkPanelContent button:not(.park-card):not(.build-card):hover { background: #e3eabb; }
.park-action.secondary, #parkPanelContent button.secondary { border-color: #56754f; background: #2a4b34; color: #d4e1c2; }
#parkPanelContent .park-tabs button { background: #203d2e; color: #c9d7bc; border-color: #405e47; }
#parkPanelContent .park-tabs button[aria-pressed="true"], #parkPanelContent .park-tabs button.active { background: #d8dfb6; color: #253720; border-color: #d8dfb6; }
.park-action.park-danger, #parkPanelContent button.park-danger { border-color: #a9755e; background: #533c2e; color: #f0b79e; }
.park-panel button:disabled, .park-tool:disabled, #placementConfirm:disabled { opacity: .45; filter: saturate(.3); cursor: not-allowed; }
.park-panel button:disabled:hover { filter: saturate(.3); }
.park-requirement { display: block; margin: 8px 0 4px; color: #f0ce9c; font-size: 11px; line-height: 1.5; }
.park-empty { padding: 25px 14px; text-align: center; color: #c5d6bb; border: 1px dashed #527047; border-radius: 8px; font-size: 12px; line-height: 1.65; }
.park-note { padding: 11px 13px; margin: 0 0 14px; color: #cbdaba; background: #28442f; border-left: 3px solid #bbcd92; border-radius: 3px; font-size: 11px; line-height: 1.55; }
.park-note.warning { color: #ead7a8; background: #403e26; border-color: #dac580; }
.park-section-title { margin: 19px 0 11px; color: #e0e7cb; font-size: 15px; font-weight: 750; }
.park-section-title:first-child { margin-top: 0; }
.park-badge { display: inline-block; padding: 4px 6px; color: #c8dfb2; background: #305036; border: 1px solid #547345; border-radius: 4px; font: 8px ui-monospace,monospace; }
.park-badge.warning, .park-badge.locked { color: #e8d19a; background: #474329; border-color: #786d3c; }
.park-form { display: grid; gap: 13px; }
.park-form label, #parkPanelContent label { display: grid; gap: 7px; color: #c6d9ba; font-size: 11px; line-height: 1.4; }
.park-form input, .park-form select, #parkPanelContent input, #parkPanelContent select { min-width: 0; width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid #55784d; border-radius: 5px; background: #102d1f; color: #edf0da; font: inherit; accent-color: #d4deab; }
#parkPanelContent input[type="checkbox"] { width: 18px; min-height: 18px; }
#parkPanelContent input[type="range"] { padding: 0; }
#parkPanelContent p { overflow-wrap: anywhere; }
#parkPanelContent a { color: #e6d290; }
.build-hint { position: fixed; z-index: 13; left: 50%; bottom: calc(117px + var(--safe-bottom)); transform: translateX(-50%); width: min(480px,calc(100vw - 32px)); padding: 14px 18px; background: rgba(18,44,34,.97); border: 1px solid #b5c18c; border-radius: 8px; color: #ecedd6; pointer-events: none; box-shadow: 0 7px 26px rgba(0,0,0,.23); }
.build-hint > div { display: flex; align-items: center; gap: 9px; }
.blueprint-dot { width: 8px; height: 8px; border-radius: 2px; background: #b8dc8e; box-shadow: 0 0 10px rgba(184,220,142,.4); }
#buildName { font-size: 14px; flex: 1; }
#buildCost { color: #e6ce88; font-size: 14px; }
#buildReason { margin: 8px 0 10px; color: #c4d2b7; font-size: 11px; line-height: 1.4; }
.build-hint > small { color: #9db498; font: 8px ui-monospace,monospace; }
.build-hint > small kbd { color: #e8e4bd; font-weight: 750; }
.build-hint > small span { margin: 0 8px; }
.build-hint.invalid { border-color: #d29670; }
.build-hint.invalid .blueprint-dot { background: #e2a47c; }
.build-hint.invalid #buildReason { color: #e9c7aa; }
.placement-controls { position: fixed; z-index: 16; left: 50%; bottom: calc(33px + var(--safe-bottom)); transform: translateX(-50%); display: none; gap: 8px; padding: 7px; border: 1px solid #6d875d; border-radius: 8px; background: rgba(15,39,29,.96); }
.placement-controls button { min-width: 92px; min-height: 46px; padding: 8px 14px; border: 1px solid #69865b; border-radius: 5px; color: #d6e0bf; background: #29492f; font-size: 10px; font-weight: 750; cursor: pointer; white-space: nowrap; }
#placementConfirm { color: #273b1f; background: #d6dfaa; border-color: #d6dfaa; }
body.placing .placement-controls { display: flex; }
body.park-panel-open .placement-controls, body.park-panel-open .build-hint { display: none; }
body.park-panel-open .park-toolbar { pointer-events: none; }
body.placing .park-toolbar, body.placing .park-goal, body.placing .park-director, body.placing .park-controls-hint { display: none; }
.park-mode #hud > :not(.crosshair):not(.look-hint):not(.toast-stack) { display: none !important; }
.park-mode #hud::after { box-shadow: none; }
.park-mode #touchFlare, .park-mode #touchPing { display: none; }
.park-mode .crosshair { display: block; opacity: .68; width: 20px; height: 20px; }
.park-mode .crosshair i:first-child { width: 5px; top: 9px; }
.park-mode .crosshair i:nth-child(2) { width: 5px; top: 9px; }
.park-mode .crosshair::before { height: 5px; left: 9px; }
.park-mode .crosshair::after { height: 5px; left: 9px; }
.park-mode .crosshair b { width: 2px; height: 2px; left: 9px; top: 9px; background: #e0e7c6; }
.park-mode .look-hint { top: calc(50% + 40px); }
.park-mode .toast-stack { bottom: calc(285px + var(--safe-bottom)); right: 20px; width: 306px; }
.park-mode .toast { border-color: #ccd999; border-radius: 5px; background: rgba(16,40,31,.95); }
.park-mode .touch-menu { top: calc(103px + var(--safe-top)); right: 20px; left: auto; background: rgba(16,40,31,.93); border: 1px solid #57764e; border-radius: 6px; }
#parkPanel:not(.hidden) ~ .mobile-controls { visibility: hidden; }
.high-contrast .park-topbar, .high-contrast .park-goal, .high-contrast .park-director, .high-contrast .park-toolbar { background: #092116; border-color: #c8d6ad; }

@media (max-width: 1100px) {
  .park-topbar { grid-template-columns: 135px 1fr 100px; gap: 12px; padding: 12px 15px; }
  .park-brand b { font-size: 15px; }
  .park-brand > i { display: none; }
  .park-stats { gap: 10px; }
  .park-stat { padding-left: 11px; }
  .park-stat dd { font-size: 17px; }
  .park-director { width: 260px; }
  .park-goal { width: 285px; }
  .park-tool { min-width: 113px; }
}
@media (max-width: 900px) {
  .boot-panel { width: min(770px,100vw); }
  .park-topbar { grid-template-columns: 1fr 115px; }
  .park-brand { display: none; }
  .park-stat:first-child { padding-left: 0; border-left: 0; }
  .park-director { display: none; }
  .park-panel { width: min(560px,calc(100vw - 40px)); }
}
@media (max-height: 800px) and (min-width: 901px) {
  .park-collage { top: 81px; height: min(22vw,245px); opacity: .6; }
  .park-mode .briefing-copy { background: linear-gradient(180deg,rgba(10,30,22,.3),rgba(10,30,22,.96) 17%); }
  .boot-panel { padding-top: 22px; padding-bottom: 22px; max-height: 100dvh; overflow-y: auto; }
  .boot h1 { font-size: clamp(48px,5.7vw,77px); }
  .boot .eyebrow { margin-top: 21px; }
  .boot-copy { margin: 16px 0; font-size: 14px; }
}
@media (hover: none), (pointer: coarse) {
  .park-controls-hint { display: none; }
  .park-mode .touch-action.scan { font-size: 9px; }
  .park-mode.placing #touchScan { display: none; }
}
@media (max-width: 620px) {
  .experience-picker { gap: 7px; margin-bottom: 12px; }
  .experience-option { padding: 10px; min-height: 74px; gap: 6px; align-items: flex-start; }
  .experience-option .experience-icon { display: none; }
  .experience-option b { font-size: 9px; letter-spacing: .025em; }
  .experience-option small { font-size: 9px; line-height: 1.45; }
  .park-topbar { left: 10px; right: 10px; top: calc(10px + var(--safe-top)); min-height: 82px; grid-template-columns: 1fr; gap: 9px; padding: 12px; border-radius: 7px; }
  .park-stats { grid-template-columns: 1.05fr 1.05fr .83fr .9fr .95fr; gap: 8px; }
  .park-stat { padding-left: 7px; }
  .park-stat dt { font-size: 6px; letter-spacing: .025em; }
  .park-stat dd { margin-top: 4px; font-size: 14px; }
  .park-status { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; }
  .park-status b { font-size: 7px; letter-spacing: .04em; }
  .park-status span { margin-top: 0; font-size: 8px; }
  .park-toolbar { left: 10px; right: 10px; top: calc(102px + var(--safe-top)); bottom: auto; transform: none; gap: 5px; padding: 5px; border-radius: 7px; }
  .park-tool { flex: 1; min-width: 0; height: 49px; padding: 6px 3px; flex-direction: column; gap: 3px; border-radius: 4px; font-size: 8px; letter-spacing: .025em; }
  .park-tool.invite { min-width: 0; }
  .park-tool-icon { font-size: 18px; }
  .park-tool kbd { display: none; }
  .park-goal { top: calc(175px + var(--safe-top)); bottom: auto; left: 10px; right: 10px; width: auto; padding: 11px 13px; border-radius: 7px; }
  .park-card-eyebrow { font-size: 7px; }
  .park-card-eyebrow button { font-size: 7px; min-height: 29px; }
  .park-goal h2 { margin: 9px 0 5px; font-size: 14px; }
  .park-goal p { font-size: 10px; line-height: 1.45; }
  .park-goal-progress { margin-top: 9px; height: 3px; }
  .park-panel { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: min(82dvh,720px); border-radius: 14px 14px 0 0; border-bottom: 0; }
  .park-panel-head { padding: 16px 18px; }
  .park-panel-head small { font-size: 7px; }
  .park-panel-head h2 { font-size: 22px; margin-top: 6px; }
  #parkPanelClose { height: 42px; width: 42px; }
  .park-tabs { padding: 10px 14px; gap: 6px; }
  .park-tab, .park-tabs button { min-height: 39px; font-size: 10px; padding: 8px 12px; }
  .park-panel-content { padding: 14px 14px calc(20px + var(--safe-bottom)); }
  .park-grid, .park-catalog { gap: 8px; }
  .park-card, .build-card, .dinosaur-card { padding: 11px; border-radius: 6px; }
  .park-card h3, .build-card h3, .dinosaur-card h3 { font-size: 13px; }
  .park-card p, .build-card p, .dinosaur-card p { font-size: 10px; }
  .park-card small, .build-card small { font-size: 9px; }
  .park-row { gap: 10px; }
  .park-stat-grid { gap: 6px; }
  .park-stat-grid > div { padding: 10px 8px; }
  .park-stat-grid small { font-size: 7px; }
  .park-stat-grid strong, .park-stat-grid b { font-size: 17px; }
  .park-action, #parkPanelContent button:not(.park-card):not(.build-card) { min-height: 42px; padding: 8px 11px; font-size: 10px; }
  .park-mode .touch-menu { top: auto; left: 15px; right: auto; bottom: calc(146px + var(--safe-bottom)); height: 42px; width: 42px; }
  .park-mode .toast-stack { left: 10px; right: 10px; bottom: calc(217px + var(--safe-bottom)); width: auto; }
  .build-hint { bottom: calc(220px + var(--safe-bottom)); padding: 12px 14px; border-radius: 7px; }
  #buildName, #buildCost { font-size: 12px; }
  #buildReason { font-size: 10px; margin: 7px 0 0; }
  .build-hint > small { display: none; }
  .placement-controls { left: 50%; bottom: calc(155px + var(--safe-bottom)); gap: 5px; padding: 5px; }
  .placement-controls button { min-width: 76px; min-height: 44px; padding: 8px 10px; font-size: 9px; }
  .park-mode.placing .move-pad { opacity: .76; }
  .park-mode.placing .touch-menu { display: none; }
  .park-mode.placing .touch-action.sprint { bottom: calc(24px + var(--safe-bottom)); right: 22px; }
}
@media (max-width: 360px) {
  .park-topbar { padding: 11px 9px; }
  .park-stats { gap: 5px; }
  .park-stat { padding-left: 5px; }
  .park-stat dt { font-size: 5.8px; }
  .park-stat dd { font-size: 12px; }
  .park-tool { font-size: 7px; }
  .park-goal h2 { font-size: 13px; }
  .park-panel-head { padding: 14px; }
  .park-grid, .park-catalog { grid-template-columns: 1fr; }
  .park-card, .build-card, .dinosaur-card { padding: 13px; }
  .park-card h3, .build-card h3, .dinosaur-card h3 { font-size: 14px; }
  .placement-controls button { min-width: 72px; padding: 8px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .park-topbar { top: calc(9px + var(--safe-top)); left: 12px; right: 12px; min-height: 56px; grid-template-columns: 1fr 110px; gap: 14px; padding: 10px 13px; }
  .park-stats { gap: 13px; }
  .park-stat dt { font-size: 7px; }
  .park-stat dd { font-size: 16px; }
  .park-status b { font-size: 7px; }
  .park-status span { margin-top: 4px; font-size: 8px; }
  .park-goal { left: 12px; top: calc(76px + var(--safe-top)); bottom: auto; width: 242px; padding: 10px 12px; }
  .park-goal h2 { font-size: 13px; margin: 8px 0 4px; }
  .park-goal p { font-size: 10px; line-height: 1.4; }
  .park-goal { max-height:196px; }
  .park-goal p { max-height:42px; overflow:auto; }
  .founder-next { min-height:34px; padding:6px; font-size:9px; margin-top:5px; }
  .founder-links button { min-height:30px; font-size:8px; }
  .launch-note { display:none; }
  .park-card-eyebrow { font-size: 7px; }
  .park-card-eyebrow button { font-size: 7px; }
  .park-goal-progress { margin-top: 8px; }
  .park-toolbar { top: auto; left: 50%; right: auto; bottom: calc(15px + var(--safe-bottom)); transform: translateX(-50%); padding: 5px; gap: 5px; }
  .park-tool { min-width: 81px; height: 43px; padding: 6px 9px; font-size: 8px; gap: 6px; }
  .park-tool.invite { min-width: 69px; }
  .park-tool-icon { font-size: 17px; }
  .park-tool kbd { display: none; }
  .park-mode .touch-menu { left: auto; right: 14px; top: calc(76px + var(--safe-top)); bottom: auto; width: 40px; height: 40px; }
  .park-director, .park-controls-hint { display: none; }
  .park-panel { top: calc(10px + var(--safe-top)); bottom: calc(10px + var(--safe-bottom)); left: auto; right: 12px; width: min(570px,calc(100vw - 160px)); height: auto; border-radius: 10px; }
  .park-panel-head { padding: 12px 17px; }
  .park-panel-head h2 { font-size: 20px; margin-top: 5px; }
  .park-tabs { padding: 8px 14px; }
  .park-panel-content { padding: 12px 14px; }
  .park-grid, .park-catalog { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .park-mode .toast-stack { left: 50%; right: auto; bottom: calc(80px + var(--safe-bottom)); width: min(340px,42vw); transform: translateX(-50%); }
  .build-hint { bottom: calc(85px + var(--safe-bottom)); width: min(430px,52vw); padding: 11px 14px; }
  #buildName, #buildCost { font-size: 12px; }
  #buildReason { margin: 6px 0 0; font-size: 10px; }
  .build-hint > small { display: none; }
  .placement-controls { bottom: calc(17px + var(--safe-bottom)); }
  .placement-controls button { min-width: 86px; min-height: 42px; }
}
