:root {
  color-scheme: dark;
  --ink: #060a10;
  --copy: #edf8ff;
  --muted: #9fbbce;
  --cyan: #66cff5;
  --gold: #ffce62;
  --steel: #466d89;
  --metal: linear-gradient(145deg,#203e50,#07131d 58%,#0d273a);
  --cut: polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px);
  font: 16px/1.45 "Trebuchet MS","Roboto",system-ui,sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; background: var(--ink); color: var(--copy); }
body { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; touch-action: manipulation; border: none; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #a9eeff; outline-offset: -3px; }
[hidden] { display: none !important; }

.app {
  width: 100%; height: 100%; height: 100dvh; position: relative; isolation: isolate; overflow: hidden;
  --safe-top: max(env(safe-area-inset-top),var(--inset-top,0px));
  --safe-right: max(env(safe-area-inset-right),var(--inset-right,0px));
  --safe-bottom: max(env(safe-area-inset-bottom),var(--inset-bottom,0px));
  --safe-left: max(env(safe-area-inset-left),var(--inset-left,0px));
}
.app:fullscreen { width: 100vw; height: 100dvh; }
.screen { position: absolute; inset: 0; z-index: 2; overflow: auto; overscroll-behavior: contain; }
.home,.routes { background: #09131d; }
.native .game-site { visibility: hidden; }
.utility, .page-head, .shop-head, .screen-tools { display: flex; align-items: center; gap: 12px; }
.utility,.shop-head { justify-content: space-between; }
.screen-tools { gap: 9px; }
.game-site {
  color:#c0d8e9; text-decoration: none; letter-spacing: .17em; font-size: 12px; font-weight: 900;
  display: inline-flex; align-items: center; min-height: 42px; text-shadow: 0 2px 5px #000;
}
.icon {
  display:grid; place-items:center; flex:none; width: 46px; height: 46px; clip-path: var(--cut);
  background: linear-gradient(160deg,#87aac0,#245579 34%,#46667c 66%,#0a1c29);
  color: #f4fcff; font-size: 27px; font-weight: 900; position: relative; isolation: isolate;
}
.icon::before { content:""; position:absolute; inset: 2px; background: var(--metal); clip-path: var(--cut); z-index:-1; }
.icon:hover::before { background:linear-gradient(135deg,#224d62,#0b2637); }

.home {
  display:flex; flex-direction:column; justify-content:space-between; min-height: 100%;
  padding: calc(18px + var(--safe-top)) calc(24px + var(--safe-right)) calc(26px + var(--safe-bottom)) calc(24px + var(--safe-left));
}
.cover { position:absolute; inset:0; z-index:-2; overflow:hidden; background:#090d15; }
.cover::before, .cover::after { content:""; position:absolute; inset:0; }
.cover::before { background:url("assets/menu-wide.webp") 20% 45%/cover no-repeat; transform: scale(1.012); }
.cover::after {
  background:linear-gradient(90deg,#02050be6 0%,#0409125e 35%,transparent 58%,#080a1066 100%),
             linear-gradient(180deg,#02050b9f 0%,transparent 29% 50%,#080c19aa 84%,#020508 100%);
}
.home-copy { width:min(510px, 100%); margin: min(20vh,140px) 0 clamp(8px,7vh,72px) clamp(0px,7vw,113px); }
h1,h2,h3 { font-family:"Arial Narrow","Roboto Condensed","Trebuchet MS",system-ui,sans-serif; font-weight:950; }
h1 {
  text-transform:uppercase; letter-spacing:.035em; line-height:.94;
  filter:drop-shadow(0 7px 0 #120d0a) drop-shadow(0 10px 24px #000a);
}
h1 span,h1 strong { display:block; }
h1 span { font-size:clamp(27px,4.4vw,70px); color:#eaf9ff; }
h1 strong {
  font-size:clamp(71px,10.5vw,156px); color:var(--gold); letter-spacing:-.045em;
  background:linear-gradient(#fff8b9 10%,#ffd067 37%,#e89728 82%,#ffb346);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.home-copy p { color:#d3e0e7; max-width:35ch; font-weight:650; margin: 18px 0 23px; text-shadow:0 3px 9px #000; }
.home-actions { display:grid; gap:10px; max-width: 370px; }
.home-stats { color:#b2cee2; padding-top:13px; font-size:13px; text-shadow:0 3px 5px #000; }
.primary, .secondary, .quiet {
  position:relative; isolation:isolate; width:100%; min-height:49px; padding:9px 15px;
  font-weight:880; display:flex; align-items:center; justify-content:center; gap:14px; text-align:center;
  border:1px solid transparent;
}
.primary {
  min-height:57px; color:#1e1002; clip-path:var(--cut);
  background:linear-gradient(180deg,#b9b39b,#384754 34%,#223145 62%,#73818a);
  text-transform:uppercase; letter-spacing:.035em; font-size:clamp(17px,2vw,25px);
  text-shadow:0 1px #ffe29a;
}
.primary::before,.primary::after,.secondary::before {
  content:""; position:absolute; z-index:-1; clip-path:var(--cut);
}
.primary::before { inset:4px; background:linear-gradient(#fff7b5,#fad066 22%,#ffbc24 69%,#bf6107 100%); }
.primary::after { inset:7px 8px auto; height:3px; z-index:0; background:linear-gradient(90deg,transparent,#fff9bf 37%,#fff3af 69%,transparent); }
.primary:hover::before { background:linear-gradient(#fffdd8,#ffdd75 22%,#ffc237 69%,#d47812); }
.primary span { font-size:.81em; }
.secondary {
  clip-path:var(--cut); color:#e4f5ff; background:linear-gradient(140deg,#62839b,#24495e 45%,#376684);
  font-size:14px; text-transform:uppercase; letter-spacing:.025em;
}
.secondary::before { inset:2px; background:var(--metal); }
.secondary:hover::before, .secondary[aria-pressed="true"]::before { background:linear-gradient(120deg,#22536b,#0c2d40); }
.quiet { background:#0b2130; border-color:#29485b; color:#c8e5f4; border-radius:5px; font-size:14px; }
.quiet:hover { background:#143546; }
.primary:active,.secondary:active,.icon:active { transform:translateY(2px); }

.routes {
  display:grid; grid-template-rows:auto minmax(0,1fr) auto;
  padding: calc(14px + var(--safe-top)) calc(18px + var(--safe-right)) calc(16px + var(--safe-bottom)) calc(18px + var(--safe-left));
  background:radial-gradient(ellipse at 65% 20%,#30172b,transparent 58%),radial-gradient(ellipse at 15% 60%,#0c3757,#07111b 64%);
}
.page-head { justify-content: space-between; z-index:2; }
.page-head::after { content:""; width:46px; flex:none; }
.page-head:has(.fullscreen-toggle:not([hidden]))::after { display:none; }
h2 { font-size:clamp(27px,4.4vw,42px); line-height:1.04; letter-spacing:.012em; }
.metal-heading {
  text-align:center; text-transform:uppercase; color:#edfaff; padding:.26em clamp(20px,5vw,72px);
  background:var(--metal); border:2px solid #557891; clip-path:var(--cut); box-shadow:inset 0 0 0 3px #0a1a25;
  text-shadow:0 2px 3px #000;
}
.route-map {
  position:relative; align-self:center; justify-self:center; width:min(100%,1440px);
  aspect-ratio:1513/544; max-height:100%; min-height:100px;
  background:url("assets/stage-map.webp") center center/100% 100% no-repeat;
  border-block:1px solid #394351;
  box-shadow: inset 0 -9px 22px #0a121bbc, 0 4px 40px #0008;
}
.route-map::after {
  position:absolute; inset:0; content:""; pointer-events:none;
  background:linear-gradient(180deg,#080b130f 59%,#060c12cc 100%),linear-gradient(90deg,#08152244,transparent 11% 93%,#0815226b);
}
.route-map::before {
  position:absolute; content:""; inset:0 auto auto 0; width:17%; height:30%;
  background:url("assets/obsidian-divide.webp") 72% 45%/cover;
  mask-image:linear-gradient(130deg,#000 0% 58%,transparent 96%);
}
.route-list { position:absolute; inset:0; z-index:1; }
.route-node {
  position:absolute; left:var(--x); top:var(--y); transform:translate(-50%,-50%);
  display:grid; place-items:center; align-content:center; gap:3px;
  width:clamp(56px,8.4vw,130px); min-height:clamp(59px,7.9vw,112px); padding:5px 5px 7px;
  clip-path:var(--cut); color:#e3f8ff; background:var(--metal); border:2px solid #53738c;
  text-shadow:0 2px 3px #000d; line-height:1.08; font:950 clamp(18px,2.4vw,32px)/1 "Arial Narrow",system-ui,sans-serif;
  box-shadow:inset 0 -5px 0 #0b1825,inset 0 0 0 2px #233f50;
}
.route-node span { display:block; color:#b6d5e7; font:800 clamp(8px,1vw,13px)/1.1 "Trebuchet MS",system-ui,sans-serif; }
.route-node:hover,.route-node[aria-pressed="true"] { color:#ffeeaa; border-color:#ffc656; background:linear-gradient(#70501d,#1b2932 78%,#483013); box-shadow:inset 0 0 0 2px #996625; }
.route-node[aria-pressed="true"] span { color:#ffe2a1; }
.route-deck { display:flex; gap:14px; align-items:stretch; justify-content:space-between; z-index:1; width:min(100%,1440px); justify-self:center; }
.route-info {
  flex:0 1 545px; display:grid; grid-template-columns:auto 1fr; gap:13px; align-items:center;
  background:var(--metal); border:2px solid #57829b; clip-path:var(--cut); padding:8px;
}
.route-info img { width:clamp(69px,12vw,128px); aspect-ratio:1.21; height:auto; object-fit:cover; border:1px solid #6f92a9; clip-path:var(--cut); }
.route-info small { color:var(--cyan); font-size:10px; text-transform:uppercase; font-weight:900; letter-spacing:.10em; }
.route-info h3 { font-size:clamp(18px,2.7vw,27px); line-height:1.05; text-transform:uppercase; }
.route-info p { color:#c7dde8; margin-top:4px; font-size:clamp(12px,1.35vw,15px); }
#routeRecord { color:var(--gold); font-size:12px; font-weight:800; }
#routeRecord:empty { display:none; }
.route-actions { width:min(100%,335px); display:grid; gap:7px; align-content:center; }
.route-extra { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.route-extra button { min-height:39px; padding:5px 6px; font-size:12px; }

#cave,#cave > canvas { position:absolute; inset:0; width:100%; height:100%; display:block; }
#hud { position:absolute; inset:0; z-index:1; pointer-events:none; }
.flight-instruments {
  display:grid; grid-template-columns:minmax(80px,1fr) minmax(275px,530px) minmax(80px,1fr);
  align-items:start; gap:12px; padding: calc(10px + var(--safe-top)) calc(13px + var(--safe-right)) 0 calc(13px + var(--safe-left));
}
.hud-tools { justify-self:end; pointer-events:auto; }
.objective {
  min-width:0; padding:7px 13px 8px; text-align:center; background:linear-gradient(120deg,#101f2de8,#06111bf2 56%,#172a37e8);
  border:2px solid #416e8a; clip-path:var(--cut); box-shadow:inset 0 0 0 2px #0d2233;
}
.mission-line,.instrument-status { display:flex; justify-content:space-between; align-items:center; gap:5px; color:#b2cddd; font-size:11px; font-weight:800; }
.objective strong { font-size:clamp(13px,2vw,18px); display:block; text-transform:uppercase; color:#f6fcff; line-height:1.2; margin:2px 0 6px; }
progress { width:100%; height:9px; display:block; appearance:none; border:1px solid #3d566b; background:#16232d; border-radius:5px; overflow:hidden; }
progress::-webkit-progress-bar { background:#0d1921; }
progress::-webkit-progress-value { background:linear-gradient(#fff3a3,#ffbe42 54%,#f0931a); }
progress::-moz-progress-bar { background:linear-gradient(#fff3a3,#ffbe42 54%,#f0931a); }
.instrument-status { margin-top:4px; }
.instrument-status b { color:#d7f6ff; }
.hull-track { height:3px; background:#3c1922; overflow:hidden; border-radius:2px; margin-top:3px; }
.hull-track i { display:block; height:100%; width:100%; background:linear-gradient(90deg,#ef8f4e,#ffcb82); }
.map-controls {
  width:clamp(68px,11vw,131px); aspect-ratio:1; padding:4px; border:2px solid #4a9bbf; border-radius:50%;
  position:relative; background:radial-gradient(circle,#12364ab8,#081924dc 72%); box-shadow:0 3px 14px #0007,inset 0 0 10px #2175ae59;
}
.map-controls span { position:absolute; top:-1px; left:50%; transform:translateX(-50%); color:#bdeaff; font-weight:950; font-size:11px; }
#map { width:100%; height:100%; border-radius:50%; }
#goalArrow { position:absolute; color:#ffd464; filter:drop-shadow(1px 1px 4px #000); font-size:21px; }
.tip,.notice {
  position:absolute; left:50%; transform:translateX(-50%); padding:6px 15px;
  text-align:center; background:#0a1928e8; clip-path:var(--cut); border:1px solid #956e37; color:#ffdf9a;
  font-size:12px; font-weight:850; width:max-content; max-width:80%; box-shadow:0 2px 10px #0007;
}
.tip { bottom:calc(108px + var(--safe-bottom)); }
.notice { top:calc(115px + var(--safe-top)); max-width:65%; }
.hud-bottom {
  position:absolute; inset:auto 0 0; height:calc(146px + var(--safe-bottom));
  padding:0 calc(19px + var(--safe-right)) calc(16px + var(--safe-bottom)) calc(19px + var(--safe-left));
  display:flex; justify-content:space-between; align-items:flex-end;
}
#joystick { position:relative; pointer-events:auto; touch-action:none; width:36%; max-width:300px; height:100%; user-select:none; -webkit-user-select:none; }
.stick {
  width:clamp(75px,14vw,129px); aspect-ratio:1; position:absolute; left:0; bottom:0; pointer-events:none; border-radius:50%;
  background:radial-gradient(circle,#54a5cc26 0%,#0b2237b3 62%,#235779cc 81%,#061828de 84%);
  border:2px solid #598eb1; box-shadow:inset 0 0 0 5px #4d8fb71e,0 3px 14px #0009; display:grid; place-items:center;
}
.stick::after { content:"+"; position:absolute; color:#5dbbde; opacity:.6; font:100 49px/1 system-ui; z-index:-1; }
.stick span {
  width:42%; aspect-ratio:1; border-radius:50%; background:radial-gradient(circle at 34% 20%,#81dfff,#164362 66%);
  border:2px solid #6fb7d9; box-shadow:0 0 2px 4px #1d578380,0 4px 0 #051422; transform:translate(var(--dx,0px),var(--dy,0px));
}
.equipment { display:flex; gap:5px; align-self:flex-end; position:absolute; left:50%; transform:translateX(-50%); }
.equipment-slot {
  display:grid; justify-items:center; align-items:center; width:clamp(45px,7vw,78px); min-height:55px;
  clip-path:var(--cut); background:#0a2133db; border:2px solid #345e7a; padding:3px; line-height:1.1;
}
.equipment-slot img { width:88%; height:clamp(33px,4vw,47px); object-fit:contain; }
.equipment-slot span { font-size:clamp(7px,.9vw,12px); color:#d9f4ff; font-weight:800; }
.pulse {
  pointer-events:auto; display:grid; width:clamp(69px,11vw,111px); aspect-ratio:1; place-items:center; align-content:center;
  border:2px solid #6eabce; background:radial-gradient(circle at 40% 26%,#1d5e7a,#0a1b2be0 71%); border-radius:50%;
  color:#dff6ff; padding:3px; box-shadow:inset 0 0 0 4px #58a7c932,0 3px 11px #000a;
}
.pulse:hover { background:radial-gradient(circle at 40% 26%,#3183a5,#0a1b2b 71%); }
.pulse span { font-size:clamp(24px,4vw,41px); line-height:1; }
.pulse b { font-size:12px; text-transform:uppercase; }
.pulse small { font-size:10px; color:#9ad8ef; }
.pulse:disabled { opacity:.57; }

.overlay { display:flex; align-items:safe center; justify-content:center; padding:calc(13px + var(--safe-top)) calc(18px + var(--safe-right)) calc(13px + var(--safe-bottom)) calc(18px + var(--safe-left)); background:#04101bbb; }
.panel {
  width:min(100%,490px); max-height:100%; overflow:auto; padding:17px; border:2px solid #547c98; clip-path:var(--cut);
  background:linear-gradient(150deg,#173446,#071620 65%,#0c2638); box-shadow:inset 0 0 0 3px #132a3b,0 12px 48px #0009;
  display:grid; gap:12px;
}
.panel-art { margin:-16px -16px 0; height:clamp(93px,20vh,175px); background-position:center; background-size:cover; background-repeat:no-repeat; }
.pause-art { background-image:linear-gradient(transparent,#0c2030),url("assets/pause-wide.webp"); }
.result-art { background-image:linear-gradient(transparent,#102535),url("assets/results-wide.webp"); }
#pause h2, #results h2 { color:var(--gold); text-transform:uppercase; }
#pause .panel { max-width:430px; }
#results .result { max-width:475px; }
#results .eyebrow { color:#a9eaff; font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.11em; }
.result-grid { display:grid; gap:4px; }
.result-grid div { display:grid; align-items:center; gap:10px; grid-template-columns:32px 1fr auto; padding:4px 9px; background:#0a1c2b; border:1px solid #31506a; }
.result-grid img { display:block; width:31px; height:31px; object-fit:contain; }
.result-grid strong { color:var(--gold); font-size:20px; }
.result-grid small { color:#cae2ef; font-size:13px; font-weight:780; }
.muted,.setting-help { font-size:13px; color:var(--muted); }
.upgrade-list { display:grid; gap:8px; }
.upgrade-card { display:block; text-align:left; padding:9px 12px; border:1px solid #5388a3; background:#123249; min-height:58px; clip-path:var(--cut); }
.upgrade-card:hover { background:#1d4561; }
.upgrade-card b,.upgrade-card small { display:block; }
.upgrade-card small { color:#c0dce9; margin-top:3px; }
.setting { display:flex; align-items:center; justify-content:space-between; min-height:43px; border-bottom:1px solid #34556f; gap:10px; }
.setting input { width:22px; height:22px; accent-color:var(--gold); }
.setting select { color:var(--copy); background:#0a1826; padding:6px; border:1px solid #5e86a1; border-radius:6px; }
.settings-links { display:flex; gap:14px; flex-wrap:wrap; }
.settings-links a,.text-button { color:#bdeaff; font-size:13px; }
.text-button { background:transparent; text-decoration:underline; min-height:41px; padding:0; }

.wallet-balance { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.wallet-balance div { background:#081721; border:1px solid #345771; border-radius:5px; padding:9px; }
.wallet-balance small,.wallet-balance strong { display:block; }
.wallet-balance small { font-size:12px; color:#c3d8e4; }
.wallet-balance strong { font-size:24px; }
.entitlement { color:var(--gold); font-size:12px; }
.packs { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.pack { display:grid; gap:4px; background:linear-gradient(#193e55,#102432); border:1px solid #558eac; clip-path:var(--cut); padding:8px; align-content:start; }
.pack b { font-size:22px; color:var(--gold); }
.pack small { font-size:11px; color:#bbd9e8; }
.pack button { background:#faca56; color:#221504; border-radius:3px; font-weight:900; min-height:45px; padding:4px; font-size:13px; overflow-wrap:anywhere; }
.pack button:disabled { background:#344b5a; color:#dbe9f0; }
.shop-actions { display:flex; gap:7px; }
.shop-status { color:#c4deea; font-size:12px; }
.global-status {
  position:absolute; z-index:8; bottom:calc(12px + var(--safe-bottom)); left:50%; transform:translateX(-50%); width:min(90%,520px);
  padding:11px; background:#622c17; color:#fff4d7; border:1px solid #ffba68; border-radius:6px; text-align:center;
}

@media (min-aspect-ratio: 11/10) and (min-width:720px) {
  #pause { justify-content:flex-end; padding-right:calc(clamp(22px,6vw,90px) + var(--safe-right)); background:linear-gradient(90deg,#08101a16,#030e1ace); }
  #pause .pause-art { height:clamp(55px,17vh,130px); background-position:50% 63%; }
  #results { justify-content:flex-end; padding-right:calc(clamp(22px,8vw,115px) + var(--safe-right)); background:linear-gradient(90deg,#02050b20 40%,#020814d3),url("assets/results-wide.webp") left center/auto 100% no-repeat,#091019; }
  #results .result-art { display:none; }
}
@media (max-aspect-ratio: 1/1) {
  .home { padding-inline:calc(17px + var(--safe-left)) calc(17px + var(--safe-right)); }
  .cover::before { background-position:57% 5%; background-size:auto 81%; }
  .cover::after { background:linear-gradient(180deg,#02060f7a 1%,transparent 24% 48%,#08121ee3 71%,#040910 98%); }
  .home-copy { margin:0 0 14px; align-self:center; width:min(100%,475px); }
  .home-copy p { margin:12px 0 15px; }
  .home-actions { max-width:none; }
  .routes { padding-inline:calc(10px + var(--safe-left)) calc(10px + var(--safe-right)); isolation:isolate; }
  .routes::before {
    content:""; position:absolute; inset:0; z-index:-1;
    background:linear-gradient(180deg,#07121bd9,#0a14143d 41%,#050e19 90%),url("assets/stage-map.webp") 47% center/auto 110%;
    filter:blur(4px);
  }
  .route-map { align-self:center; margin-top:16px; width:100%; height:auto; }
  .route-deck { flex-direction:column; align-self:start; gap:11px; margin-top:14px; }
  .route-info { flex:0 0 auto; }
  .route-actions { width:100%; }
  .route-node { width:clamp(45px,17vw,80px); min-height:clamp(43px,14vw,65px); font-size:19px; }
  .route-node span { font-size:9px; }
  .flight-instruments { grid-template-columns:1fr 50px; gap:7px; padding-inline:calc(8px + var(--safe-left)) calc(8px + var(--safe-right)); }
  .objective { grid-column:1; grid-row:1; }
  .hud-tools { grid-column:2; grid-row:1; flex-direction:column-reverse; }
  .map-controls { grid-column:2; grid-row:2; width:56px; justify-self:end; }
  #hud .fullscreen-toggle { width:41px; height:35px; font-size:20px; }
  .equipment-slot { min-height:39px; width:clamp(32px,9vw,62px); padding:1px; }
  .equipment-slot img { height:clamp(24px,7vw,39px); }
  .equipment-slot span { font-size:7px; }
  .hud-bottom { padding-inline:calc(8px + var(--safe-left)) calc(8px + var(--safe-right)); }
  .tip { bottom:calc(94px + var(--safe-bottom)); }
  #joystick { width:45%; }
}
@media (max-width:370px) {
  .packs { grid-template-columns:1fr; }
  .pack { grid-template-columns:auto 1fr auto; align-items:center; }
  .pack small { font-size:12px; }
  .equipment { gap:2px; }
  .equipment-slot { padding:0; }
}
@media (max-height:510px) and (min-aspect-ratio: 1/1) {
  .home { padding-block:calc(7px + var(--safe-top)) calc(12px + var(--safe-bottom)); }
  .home-copy { margin:0 0 0 clamp(6px,8vw,86px); }
  h1 span { font-size:clamp(24px,4.3vw,48px); }
  h1 strong { font-size:clamp(53px,9.4vw,93px); }
  .home-copy p { margin:7px 0 11px; font-size:14px; }
  .home-actions { gap:6px; }
  .primary,.secondary,.quiet { min-height:39px; padding-block:4px; }
  .routes { padding-block:calc(7px + var(--safe-top)) calc(8px + var(--safe-bottom)); }
  .route-node { min-height:46px; font-size:18px; }
  .route-info img { width:73px; }
  .route-info { padding:5px 7px; }
  .route-info h3 { font-size:18px; }
  .route-info p { font-size:11px; }
  .route-extra button { min-height:32px; }
  .icon { width:39px; height:39px; }
  .map-controls { width:74px; }
  .hud-bottom { height:calc(109px + var(--safe-bottom)); padding-bottom:calc(9px + var(--safe-bottom)); }
  .stick,.pulse { width:73px; }
  .equipment-slot { min-height:47px; width:47px; }
  .equipment-slot img { height:25px; }
  .panel { gap:8px; }
  .panel-art { height:65px; }
  .tip { bottom:calc(74px + var(--safe-bottom)); }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto; }
}
