:root {
  --bg: #0d0d14;
  --panel: #161622;
  --panel2: #1e1e2d;
  --line: #2c2c40;
  --text: #ececf4;
  --muted: #9a9ab2;
  --hot: #ff4d2e;
  --hot2: #ffb020;
  --cool: #3b8cff;
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.4 Inter, system-ui, sans-serif;
  overflow: hidden;
}
button, input, select { font: inherit; color: inherit; }

/* ---------------------------------------------------------------- header */
.top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: linear-gradient(180deg, #171724, #11111a);
  border-bottom: 1px solid var(--line);
  z-index: 5;
}
.logo {
  font-family: Bungee, Impact, sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--cool), #9b6bff 45%, var(--hot) 70%, var(--hot2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bolt { color: var(--hot2); -webkit-text-fill-color: var(--hot2); margin: 0 2px; }
.url { display: flex; flex: 0 1 340px; gap: 8px; min-width: 0; }
.actions { margin-left: auto; }
.url input {
  flex: 1;
  min-width: 0;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #0b0b12;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.url input:focus { border-color: #5a5aff; box-shadow: 0 0 0 3px rgba(90, 90, 255, .2); }
.actions { display: flex; gap: 8px; }

.btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  background: var(--panel2);
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
  transition: transform .08s, background .15s, border-color .15s;
}
.btn:hover { background: #262638; border-color: #3c3c55; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: #1c1c2a; }
.btn.fight {
  border: none;
  font-family: Bungee, Impact, sans-serif;
  font-weight: 400;
  letter-spacing: .5px;
  background: linear-gradient(135deg, var(--hot), #ff7a1a 60%, var(--hot2));
  color: #1a0700;
  box-shadow: 0 4px 18px rgba(255, 77, 46, .35);
}
.btn.fight:hover { filter: brightness(1.08); }
.btn.fight.stop { background: linear-gradient(135deg, #444, #2a2a35); color: var(--text); box-shadow: none; }
.btn.wide { width: 100%; margin-top: 8px; }

/* ---------------------------------------------------------------- stage */
.stage {
  --sky: clamp(170px, 27vh, 260px);
  position: relative;
  flex: 1;
  overflow: hidden;
  background: linear-gradient(180deg, #3fe9ff 0%, #6ef3ff 60%, #a6f8ff 100%);
}
.sky { position: absolute; left: 0; top: 0; width: 100%; height: var(--sky); pointer-events: none; }
.shaker { position: absolute; inset: 0; }
/* The page sits in a frame below the sky; its top edge is a ledge the fighters can stand on. */
#page {
  position: absolute;
  top: var(--sky);
  left: 2.5%;
  width: 95%;
  height: calc(100% - var(--sky));
  border: 0;
  background: #fff;
  box-shadow: 0 -2px 0 rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .08), 0 10px 40px rgba(0, 60, 80, .25);
}
.debris { position: absolute; inset: 0; pointer-events: none; }
/* While fighting the frame is a full-height window the camera slides over the sky and down the page. */
body.fighting #page { height: 100%; }
.sky { will-change: transform; }
.debris > * {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  margin: 0 !important;
  transform-origin: 50% 50%;
  will-change: transform;
  pointer-events: none;
}
.debris .chip { white-space: pre; }
.debris .crate {
  box-sizing: border-box;
  border: 3px solid #4a2a0c;
  background: repeating-linear-gradient(0deg, #c98a3e 0 6px, #a8692a 6px 8px);
  display: grid;
  place-items: center;
  font: 700 18px Silkscreen, monospace;
  box-shadow: 0 2px 0 rgba(0,0,0,.35);
}
.debris .crate.health::after { content: '+'; color: #ff3a2a; text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff; }
.debris .crate.energy::after { content: 'E'; color: #ffd34d; text-shadow: 2px 0 #4a2a0c, -2px 0 #4a2a0c, 0 2px #4a2a0c, 0 -2px #4a2a0c; }
.debris .casing { background: linear-gradient(90deg, #a87720, #ffe08a 45%, #b9862a); border-radius: 1px 1px 2px 2px; box-shadow: 0 0 0 .5px rgba(0,0,0,.4); }
.debris .grenade { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #a5bd62, #4c5e24 60%, #2c3812); box-shadow: inset 0 -2px 0 rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.5); }
.debris .grenade::after { content: ''; position: absolute; left: 50%; top: -3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #444; }
.debris .grenade.blink::after { background: #ff3030; box-shadow: 0 0 8px 3px rgba(255, 40, 40, .9); }
/* Burning debris keeps its own colors: the flames are drawn as particles on top of it. */
#canvas, #holes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; }
.shield { position: absolute; inset: 0; display: none; cursor: crosshair; }
body.fighting .shield { display: block; }

/* ---------------------------------------------------------------- HUD */
.hud {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: min(980px, calc(100% - 24px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  pointer-events: none;
  font-family: Silkscreen, monospace;
}
.hud[hidden] { display: none; }
.mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wreck {
  font: 700 10px Silkscreen, monospace;
  color: #ffb27a;
  background: rgba(10, 10, 18, .82);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.side {
  --c: #fff;
  min-width: 0;
  background: rgba(10, 10, 18, .82);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 6px 10px 7px;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 8px;
  align-items: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.side .row { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; grid-column: 1; }
.p1 .row { justify-content: flex-end; }
.side .hp, .side .en { grid-column: 1 / -1; }
.side .name { color: var(--c); font-size: 13px; letter-spacing: 1px; text-shadow: 0 0 10px color-mix(in srgb, var(--c) 50%, transparent); }
.pips { display: flex; gap: 4px; }
.pips i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); }
.pips i.on { background: var(--hot2); border-color: var(--hot2); box-shadow: 0 0 8px var(--hot2); }
.pips i[hidden] { display: none; }
.hp, .en { position: relative; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.hp { height: 12px; border: 1px solid rgba(255, 255, 255, .15); }
.hp .fill, .hp .lag, .en .fill { position: absolute; top: 0; bottom: 0; width: 100%; }
.hp .lag { background: #fff; opacity: .7; }
.hp .fill { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); transition: width .08s; }
.en { height: 4px; margin-top: 4px; }
.en .fill { background: linear-gradient(90deg, #ffd34d, #ff8a1a); }
.p1 .hp .fill, .p1 .hp .lag, .p1 .en .fill { right: 0; }
.p0 .hp .fill, .p0 .hp .lag, .p0 .en .fill { left: 0; }
.powers { display: flex; gap: 4px; overflow: hidden; min-width: 0; margin-bottom: 4px; font: 600 10px Inter, sans-serif; grid-row: 1; grid-column: 2; }
.p1 .powers { grid-column: 1; justify-content: flex-start; }
.p1 .row { grid-column: 2; }
.powers span { white-space: nowrap; padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--muted); transition: all .15s; }
.powers span.ready { color: #1a0f00; background: linear-gradient(90deg, #ffd34d, #ff9a2a); }
.side.flash .en { animation: denied .35s; }
@keyframes denied { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 2px #ff3b3b; } }
.timer {
  min-width: 64px;
  text-align: center;
  font-size: 24px;
  padding: 4px 10px;
  border-radius: var(--radius);
  background: rgba(10, 10, 18, .85);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
}

/* ---------------------------------------------------------------- banners */
.banner {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) scale(.4);
  font-family: Silkscreen, monospace;
  font-weight: 700;
  font-size: clamp(42px, 9vw, 120px);
  letter-spacing: 3px;
  color: #fff;
  -webkit-text-stroke: 3px #111;
  text-shadow: 0 6px 0 #111, 0 0 40px rgba(255, 120, 30, .6);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.banner.show { animation: slam .45s cubic-bezier(.2, 1.6, .4, 1) forwards; }
.banner.fight { color: var(--hot2); }
.banner.ko { color: var(--hot); font-size: clamp(60px, 13vw, 170px); }
.banner.win { color: var(--hot2); font-size: clamp(32px, 6vw, 80px); top: 34%; }
.banner.pause { color: #cfd6ff; }
@keyframes slam {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(2.4) rotate(-6deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
}

.over {
  position: absolute;
  z-index: 9;
  inset: 0;
  display: grid;
  place-items: end center;
  padding-bottom: 12vh;
  pointer-events: none;
}
.over[hidden] { display: none; }
.over-card { pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.over-stats {
  font: 700 14px Silkscreen, monospace;
  color: #fff;
  background: rgba(10, 10, 18, .85);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 8px 16px;
  border-radius: 10px;
  text-align: center;
}
.over-stats b { color: #ffb27a; }
.over-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.over-btns .btn.ghost { background: rgba(15, 15, 25, .85); }

.loading, .toast {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12, 12, 20, .92);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.loading { top: 40%; }
.toast { bottom: 18px; max-width: calc(100% - 32px); }
.toast.error { border-color: #7a2a2a; color: #ffb4b4; }
.loading[hidden], .toast[hidden] { display: none; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #444; border-top-color: var(--hot2); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- hint bar */
.hint {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--muted);
  background: #0f0f18;
  border-top: 1px solid var(--line);
}
.hint b { color: var(--text); font-weight: 600; }
kbd {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid #3a3a52;
  border-bottom-width: 2px;
  background: #1b1b28;
  color: var(--text);
  font: 600 11px Inter, sans-serif;
  text-align: center;
}

/* ---------------------------------------------------------------- drawer */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background: var(--panel);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .25s ease;
  z-index: 20;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: none; }
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 15; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font: 400 18px Bungee, Impact, sans-serif; letter-spacing: .5px; }
.icon { background: none; border: none; cursor: pointer; font-size: 18px; color: var(--muted); }
.drawer-body { overflow-y: auto; padding: 16px 18px 28px; }
.group { margin-top: 22px; }
.group h3 { margin: 0 0 10px; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }

.fighters { display: grid; gap: 12px; }
.fcard {
  --c: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--c);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel2);
}
.fcard-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tag { font: 400 11px Bungee, sans-serif; color: var(--c); }
.fname {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px dashed var(--line);
  font: 400 18px Bungee, Impact, sans-serif;
  color: var(--c);
  outline: none;
  padding: 2px 0;
}
.colors { display: flex; gap: 16px; margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.colors label { display: flex; align-items: center; gap: 6px; }
input[type=color] { width: 28px; height: 22px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: pointer; }
.field { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; margin: 6px 0; color: var(--muted); }
select {
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0f0f18;
  outline: none;
}
.pdesc { margin: 2px 0 8px 120px; font-size: 12px; color: #7f7f98; }
.range { display: block; margin: 10px 0; color: var(--muted); }
.range span { display: flex; justify-content: space-between; margin-bottom: 4px; }
.range b { color: var(--text); font-weight: 600; }
input[type=range] { width: 100%; accent-color: var(--hot); }
.toggle { display: flex; gap: 10px; align-items: center; margin: 8px 0; cursor: pointer; }
.toggle input { accent-color: var(--hot); width: 16px; height: 16px; }

@media (max-width: 820px) {
  .top { flex-wrap: wrap; }
  .url { order: 3; flex-basis: 100%; }
  .actions { order: 4; flex-basis: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-left: 0; }
  .actions .btn { padding: 9px 6px; white-space: nowrap; font-size: 13px; }
  #fightBtn { grid-column: 1 / -1; order: -1; padding: 12px; font-size: 15px; }
}

/* ---------------------------------------------------------------- touch controls */
.touch { position: absolute; inset: 0; z-index: 8; pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.touch[hidden] { display: none; }
.touch button { font: inherit; color: inherit; touch-action: none; -webkit-tap-highlight-color: transparent; }
.tz-stick { position: absolute; left: 0; bottom: 0; width: 46%; height: 62%; pointer-events: auto; touch-action: none; }
.tz-hint { position: absolute; left: calc(14px + env(safe-area-inset-left)); bottom: calc(18px + env(safe-area-inset-bottom)); font: 700 10px Silkscreen, monospace; color: rgba(255, 255, 255, .55); text-shadow: 0 1px 0 rgba(0, 0, 0, .5); letter-spacing: 1px; }
.stick { position: absolute; width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); background: rgba(20, 20, 36, .35); opacity: 0; transition: opacity .12s; left: 90px; top: 70%; }
.stick.on { opacity: 1; }
.knob { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.tz-pause { position: absolute; right: calc(10px + env(safe-area-inset-right)); top: 56px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); background: rgba(20, 20, 36, .4); font-size: 11px; pointer-events: auto; }
.tz-btns { position: absolute; right: calc(10px + env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom)); width: 230px; height: 230px; pointer-events: none; }
.tb { position: absolute; pointer-events: auto; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .45); background: rgba(20, 20, 36, .5); color: #fff; display: grid; place-items: center; align-content: center; padding: 0; font: 700 11px Silkscreen, monospace; letter-spacing: .5px; box-shadow: 0 3px 0 rgba(0, 0, 0, .35); transition: transform .05s, background .1s; }
.tb.down { transform: scale(.92); background: rgba(255, 255, 255, .35); }
.tb.act.punch { right: 0; bottom: 18px; width: 86px; height: 86px; background: rgba(255, 77, 46, .55); }
.tb.act.kick { right: 92px; bottom: 0; width: 70px; height: 70px; background: rgba(255, 176, 32, .5); }
.tb.act.block { right: 100px; bottom: 92px; width: 58px; height: 58px; background: rgba(59, 140, 255, .5); font-size: 9px; }
.tb.sp { width: 56px; height: 56px; }
.tb.sp i { font-style: normal; font-size: 20px; line-height: 1; }
.tb.sp small { font-size: 7px; line-height: 1.1; max-width: 48px; overflow: hidden; white-space: nowrap; text-overflow: clip; opacity: .85; }
.tb.sp.dim { opacity: .4; }
.tb.sp[data-k=sp1] { right: 6px; bottom: 112px; }
.tb.sp[data-k=sp2] { right: 70px; bottom: 158px; }
.tb.sp[data-k=sp3] { right: 140px; bottom: 164px; }

/* ---------------------------------------------------------------- mobile layout */
html, body { height: 100dvh; }
body.fighting .stage { touch-action: none; overscroll-behavior: none; }
body.is-touch { overscroll-behavior: none; -webkit-user-select: none; user-select: none; }
body.is-touch input, body.is-touch select { -webkit-user-select: text; user-select: text; font-size: 16px; } /* 16px stops iOS zooming into fields */
body.is-touch .btn { min-height: 40px; }

@media (max-width: 820px) {
  .top { gap: 8px 10px; padding: 8px calc(10px + env(safe-area-inset-right)) 8px calc(10px + env(safe-area-inset-left)); }
  .logo { font-size: 16px; }
  .url input { padding: 8px 12px; }
  .drawer { width: 100vw; border-left: none; }
  .field { grid-template-columns: 96px 1fr; }
  .pdesc { margin-left: 0; }
}
/* On a phone the page is the game: while fighting, hide the chrome and give the stage the whole screen. */
@media (max-width: 820px), (max-height: 520px) {
  body.fighting .top { display: none; }
  body.fighting .hint { display: none; }
  body.fighting .hud { top: calc(6px + env(safe-area-inset-top)); width: calc(100% - 100px); gap: 8px; transform-origin: top center; }
}
@media (max-height: 520px) {
  .hint { display: none; }
  .top { padding-block: 4px; }
  .logo { display: none; }
}
@media (pointer: coarse) {
  .hint { font-size: 11px; padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); }
  body.fighting .top, body.fighting .hint { display: none; }
}
/* Fighting on a portrait phone: ask for landscape, the arena is wide. */
.rotate { display: none; }
@media (pointer: coarse) and (orientation: portrait) {
  body.fighting .rotate { display: flex; position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 30; padding: 10px 16px; border-radius: 12px; background: rgba(13, 13, 20, .88); border: 1px solid var(--line); font: 700 11px Silkscreen, monospace; text-align: center; pointer-events: none; animation: nudge 3s forwards; }
}
@keyframes nudge { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }

/* Narrow screens: a slim HUD that always fits, with the power chips left to the touch buttons. */
@media (max-width: 820px) {
  .hud { width: calc(100% - 16px); gap: 6px; top: calc(6px + env(safe-area-inset-top)); }
  body.fighting .hud { width: calc(100% - 16px); }
  .side { padding: 4px 6px 5px; border-radius: 9px; column-gap: 4px; }
  .side .name { font-size: 10px; letter-spacing: .5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side .row { gap: 4px; margin-bottom: 3px; min-width: 0; }
  .pips i { width: 7px; height: 7px; border-width: 1.5px; }
  .hp { height: 9px; }
  .powers { display: none; }
  .timer { min-width: 44px; font-size: 18px; padding: 2px 6px; }
  .wreck { font-size: 8px; padding: 1px 6px; }
  .tz-pause { top: calc(64px + env(safe-area-inset-top)); }
  .tz-btns { transform-origin: bottom right; }
}
@media (max-width: 420px) {
  .tz-btns { transform: scale(.85); }
  .banner { font-size: clamp(30px, 11vw, 60px); }
  .banner.ko { font-size: clamp(40px, 15vw, 90px); }
}

/* Pause menu: the only way out on a phone, where the header is hidden while fighting. */
.pausemenu { position: absolute; inset: 0; z-index: 12; display: grid; place-items: center; background: rgba(8, 8, 14, .6); z-index: 40; }
.pausemenu[hidden] { display: none; }
.pm-card { display: flex; flex-direction: column; gap: 10px; width: min(260px, 80vw); }
.pm-title { font: 700 22px Silkscreen, monospace; text-align: center; color: #fff; margin-bottom: 4px; }
.pm-card .btn { width: 100%; padding: 13px; justify-content: center; }

.touch.menu-only .tz:not(.tz-pause) { display: none; }
.pm-card .btn.ghost { background: rgba(15, 15, 25, .92); border: 1px solid rgba(255, 255, 255, .25); color: #fff; }

/* Customize drawer: nothing may be wider than the drawer, so it never scrolls sideways. */
.drawer-body { overflow-x: hidden; }
.fighters { grid-template-columns: minmax(0, 1fr); }
.fcard, .fname, .field > *, select { min-width: 0; max-width: 100%; }
.field { grid-template-columns: 110px minmax(0, 1fr); }
.colors { flex-wrap: wrap; gap: 8px 16px; }
@media (max-width: 820px) { .field { grid-template-columns: 96px minmax(0, 1fr); } }

/* Phones: keep the sky a slim strip so the page itself gets the screen. */
@media (max-width: 820px) { .stage { --sky: clamp(56px, 9vh, 84px); } }
