:root {
  color-scheme: dark;
  --ink: #e7eefc;
  --muted: #93a0bd;
  --cyan: #5ce1e6;
  --gold: #e8c66b;
  --line: rgba(255, 255, 255, 0.16);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: #050814;
  color: var(--ink);
  font: 15px/1.4 Inter, Segoe UI, sans-serif;
}
#sky { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.sky-top, .sky-hud, .sky-panel, .sky-note, .sky-foot {
  position: fixed;
  z-index: 2;
}
.sky-top {
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: linear-gradient(#050814, transparent);
}
.sky-top a, .sky-foot a { color: var(--cyan); text-decoration: none; }
.sky-top strong { flex: 1; min-width: 0; font-weight: 600; }
.sky-tank { flex: 0 0 auto; color: var(--gold); font-variant-numeric: tabular-nums; }
.sky-eva, .eva-bar button {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  padding: 8px 14px;
  font: inherit;
}
.eva-bar {
  position: fixed;
  top: auto;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding: 12px 12px 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(5, 8, 20, 0.92);
}
.eva-bar[hidden] { display: none; }
.eva-face {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.eva-read { min-width: 0; flex: 1; }
#eva-hull {
  width: 96px;
  height: 54px;
  flex: 0 0 auto;
}
#eva-score {
  width: auto;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}
#eva-self, #eva-map {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
#eva-map a { color: var(--cyan); pointer-events: auto; }
.eva-primary, #eva-desk {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
#eva-desk[hidden],
#eva-fund[hidden],
#eva-launch[hidden],
#eva-hull[hidden],
#christen-fund[hidden] {
  display: none;
}
.eva-bar button.primary {
  background: var(--gold);
  color: #041018;
}
body.eva-watch .sky-top {
  background: #050814;
  z-index: 5;
}
body.eva-watch #tank,
body.eva-watch #invite,
body.eva-watch #watch-link,
body.eva-watch #eva-open {
  display: none;
}
body.eva-watch .sky-top strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eva-bar button[aria-pressed="true"] {
  background: var(--gold);
  color: #041018;
}
#eva-key {
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: #041018;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}
#eva-log { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
#eva-log button {
  min-height: 44px;
  padding: 4px 10px;
  color: var(--ink);
  border-color: var(--line);
  font-size: 13px;
}
body.eva-watch .sky-today { display: none; }
body.panel-open .eva-bar { display: none; }
body.eva-watch .sky-panel { z-index: 8; }
body.panel-open #sky { pointer-events: none; }
body.panel-open .sky-panel { z-index: 24; }
body.eva-watch.eva-hold .eva-bar {
  bottom: calc(168px + env(safe-area-inset-bottom));
}
body.eva-watch.eva-hold #eva-launch,
body.eva-watch.eva-hold #eva-fund,
body.eva-watch.eva-hold #eva-map,
body.eva-watch.eva-hold #eva-hull,
body.eva-watch.eva-hold #eva-desk,
body.eva-watch.eva-hold #eva-more {
  display: none;
}
body.eva-watch #signin { display: none; }
body.arrive .eva-bar,
body.arrive .sky-today,
body.arrive .sky-note { display: none; }
.cockpit { display: none; }
body.eva-cockpit .cockpit,
body.eye-watch .cockpit {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.cockpit-frame {
  position: absolute;
  inset: 0;
  border: 22px solid #070b12;
  border-bottom-width: 84px;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.65);
}
.cockpit-nose {
  position: absolute;
  left: 50%;
  bottom: 84px;
  width: 70px;
  height: 48px;
  transform: translateX(-50%);
  background: linear-gradient(#c4a15a, #8a6a32);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
#cockpit-name {
  position: absolute;
  top: calc(58px + env(safe-area-inset-top));
  left: 16px;
  margin: 0;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.08em;
}
body.arrive .cockpit-frame { border-bottom-width: 28px; }
body.arrive .cockpit-nose { bottom: calc(230px + env(safe-area-inset-bottom)); }
.christen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: calc(28px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 42%, rgba(232, 198, 107, 0.16), transparent 42%),
    rgba(5, 8, 20, 0.96);
}
.christen[hidden] { display: none; }
#christen-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.christen-address {
  display: flex;
  flex-wrap: wrap;
  gap: 1px 2px;
  max-width: 36rem;
  min-height: 52px;
  margin: 0;
  color: var(--cyan);
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 14px;
}
.christen-address i {
  font-style: normal;
  display: inline-block;
  transition: transform 1.15s ease, opacity 1.15s ease;
}
.christen-address.gone i {
  opacity: 0;
  transform: translate(var(--dx), var(--dy)) scale(0.15);
}
#christen-name {
  margin: 0;
  min-height: 48px;
  color: var(--gold);
  font-size: clamp(32px, 8vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.christen.named #christen-name {
  opacity: 1;
  transform: none;
}
#christen-hull {
  width: min(320px, 86vw);
  height: 180px;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.christen.formed #christen-hull { opacity: 1; }
#christen-line {
  max-width: 38rem;
  margin: 0;
  color: var(--ink);
}
.arrive {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 6;
  margin: 0;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: rgba(5, 8, 20, 0.92);
  border: 1px solid var(--line);
}
.arrive h2 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.1;
}
#arrive-kicker {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
#arrive-who, #arrive-score {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 16px;
}
#arrive-score { color: var(--muted); }
.arrive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.arrive-actions button {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  padding: 8px 14px;
  font: inherit;
}
.arrive-actions button.primary {
  background: var(--gold);
  color: #041018;
}
.sky-show { display: none; color: var(--gold); }
body.eye-watch .sky-thumbs { display: none; }
body.eva-watch .sky-top,
body.eva-watch .sky-foot,
body.eva-watch .sky-today,
body.eva-watch .sky-modes,
body.eva-watch #fight { display: none; }
body.eva-watch #sky-thumbs,
body.eva-watch #cast,
body.eva-watch.eva-hold #sky-thumbs,
body.eva-watch.eva-hold #cast { display: flex; }
body.eva-watch .sky-stick span { opacity: 0; }
body.eva-watch .sky-stick,
body.eva-watch #fire,
body.eva-watch .sky-menu {
  opacity: 0.46;
  background: rgba(5, 8, 20, 0.22);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
  transition: opacity 1.6s ease;
}
body.eva-watch:not(.eva-hold) #fire {
  color: transparent;
  font-size: 0;
}
body.eva-watch.hands-rest .sky-stick,
body.eva-watch.hands-rest #fire {
  opacity: 0.06;
}
body.eva-watch.hands-rest .sky-menu {
  opacity: 0.16;
}
body.eva-watch .sky-stick:active,
body.eva-watch #fire:active,
body.eva-watch .sky-menu:active,
body.eva-watch .sky-menu[aria-expanded="true"],
body.eva-watch.eva-hold .sky-stick,
body.eva-watch.eva-hold #fire,
body.eva-watch.eva-hold .sky-menu { opacity: 0.92; }
body.eva-watch .eva-bar {
  bottom: calc(156px + env(safe-area-inset-bottom));
  max-height: min(40vh, 300px);
  background: rgba(5, 8, 20, 0.72);
}
body.eva-watch .sky-note {
  top: calc(12px + env(safe-area-inset-top));
  color: rgba(231, 238, 252, 0.72);
  font-size: 13px;
}
.sky-today {
  position: fixed;
  top: calc(64px + env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  z-index: 2;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sky-top button, .sky-actions button, .sky-panel button {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 8px 14px;
  font: inherit;
}
.sky-actions button.primary, .sky-panel button.primary, .sky-top button {
  background: var(--cyan);
  color: #041018;
  border-color: var(--cyan);
}
.sky-hud {
  left: 12px;
  right: 12px;
  bottom: calc(168px + env(safe-area-inset-bottom));
  padding: 12px;
  border-radius: 16px;
  background: rgba(6, 10, 22, 0.82);
  border: 1px solid var(--line);
}
.sky-thumbs {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(46px + env(safe-area-inset-bottom));
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}
.sky-center {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.sky-fight, .sky-menu, .sky-mode, .sky-invite {
  pointer-events: auto;
  min-height: 44px;
  border-radius: 999px;
  font: inherit;
}
.sky-modes { display: flex; gap: 6px; pointer-events: none; }
.sky-mode, .sky-invite {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 22, 0.82);
  color: var(--ink);
}
.sky-mode[hidden], .sky-invite[hidden], #fight[hidden] { display: none !important; }
.sky-fight {
  min-width: 88px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #1a1204;
}
.codex-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
  color: var(--muted);
}
.codex-card strong { color: var(--ink); }
.codex-card button { margin-top: 6px; }
.sky-cast {
  position: fixed;
  z-index: 6;
  right: 10px;
  bottom: calc(168px + env(safe-area-inset-bottom));
  width: 148px;
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap-reverse;
  align-items: flex-end;
  align-content: flex-end;
  justify-content: flex-start;
  gap: 8px;
  pointer-events: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.sky-cast[hidden] { display: none !important; }
.sky-abilities { display: contents; }
.sky-abilities[hidden], .sky-abilities button[hidden] { display: none !important; }
.sky-cast, .sky-cast * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.sky-cast::selection, .sky-cast *::selection { background: transparent; }
.sky-cast button {
  pointer-events: auto;
  position: relative;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: radial-gradient(circle at 50% 40%, rgba(36, 48, 74, 0.96), rgba(6, 10, 18, 0.96) 70%);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 8px 18px rgba(0, 0, 0, 0.35);
  font: inherit;
  touch-action: manipulation;
}
.sky-cast button:focus { outline: none; }
.sky-cast button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.sky-cast button:disabled { opacity: 1; }
#fire {
  width: 76px;
  height: 76px;
  min-width: 76px;
  min-height: 76px;
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 16px rgba(92, 225, 230, 0.35);
}
.sky-cast button.cooling {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
  color: #f7f8ff;
}
.sky-cast button:not(.cooling):not(#fire) { animation: cast-ready 0.35s ease; }
@keyframes cast-ready {
  from { box-shadow: 0 0 0 4px rgba(232, 198, 107, 0.9); }
  to { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 8px 18px rgba(0, 0, 0, 0.35); }
}
.sky-cast button b {
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  pointer-events: none;
}
#fire b { color: var(--cyan); }
.sky-cast button span {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 6px;
  z-index: 2;
  text-align: center;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.01em;
  pointer-events: none;
}
.sky-cast button i {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent calc((1 - var(--cool, 0)) * 360deg), rgba(2, 6, 12, 0.84) 0);
  pointer-events: none;
}
.sky-cast button em {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding-bottom: 2px;
  font-style: normal;
  font-weight: 800;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
}
#fire em { font-size: 1.55rem; }
.sky-menu {
  min-width: 76px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 22, 0.82);
  color: var(--ink);
}
.sky-menu[aria-expanded="true"] {
  background: var(--cyan);
  color: #041018;
  border-color: var(--cyan);
}
#hud[hidden] { display: none !important; }
.sky-stick {
  pointer-events: auto;
  position: relative;
  width: 96px;
  height: 96px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(8, 14, 22, 0.55);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-drag: none;
}
.sky-stick, .sky-stick * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.sky-stick::selection, .sky-stick *::selection {
  background: transparent;
}
.sky-stick:focus {
  outline: none;
}
.sky-stick i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgba(232, 198, 107, 0.9);
  pointer-events: none;
  transition: transform 90ms ease-out;
}
.sky-stick { width: 112px; height: 112px; }
body { overscroll-behavior: none; }
.sky-prefs { display: grid; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.sky-prefs label { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sky-top #invite, .sky-top #watch-link {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 4px 10px;
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
#score-pop {
  position: fixed;
  left: 50%;
  top: 22%;
  z-index: 4;
  margin: 0;
  transform: translateX(-50%);
  color: #e8c66b;
  font: 700 28px/1 Georgia, serif;
  pointer-events: none;
}
#offscreen {
  position: fixed;
  z-index: 4;
  width: 14px;
  height: 14px;
  margin: 0;
  border-radius: 50%;
  background: #e8c66b;
  pointer-events: none;
}
#fire { --heat: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 90, 74, calc(var(--heat) * 0.8)); }
.ghost-thumb { animation: ghost-thumb 1.2s ease 2; }
@keyframes ghost-thumb {
  50% { box-shadow: 0 0 0 6px rgba(92, 225, 230, 0.7); }
}
body.reduce-motion *, body.reduce-motion *::before { animation: none !important; transition: none !important; }
body.fighting .sky-foot, body.fighting .sky-today { display: none; }
body.fighting .sky-thumbs { bottom: calc(8px + env(safe-area-inset-bottom)); }
body.fighting .sky-cast { bottom: calc(132px + env(safe-area-inset-bottom)); }
body.clear-sky .sky-note { transition: opacity 0.4s linear; }
.sky-stick span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  pointer-events: none;
}
.sky-hud p { margin: 0 0 8px; color: var(--muted); }
.sky-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#bars { display: grid; gap: 6px; margin-bottom: 8px; }
#bars[hidden] { display: none !important; }
#bars label { display: grid; grid-template-columns: 42px 1fr; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
#bars span { display: block; height: 8px; width: 0; border-radius: 99px; background: var(--cyan); }
#bars b { font-weight: 600; color: var(--muted); }
#bars #bar-them { background: var(--gold); }
#bars #bar-lift { background: var(--gold); }
#bars span.shield-full { box-shadow: inset 0 0 0 2px #f4f7ff, 0 0 8px rgba(244, 247, 255, 0.85); }
#bars span.shield-half { box-shadow: inset -12px 0 0 #f4f7ff; }
#bars span.shield-edge { box-shadow: 0 0 0 2px var(--gold); }
.sky-cast button.aiming { box-shadow: 0 0 0 3px #d4554a; }
#lift-row[hidden] { display: none !important; }
.sky-panel {
  left: 0;
  right: 0;
  top: 72px;
  width: min(28rem, calc(100% - 24px));
  margin-inline: auto;
  transform: none;
  max-height: min(62vh, 32rem);
  overflow: auto;
  padding: 16px;
  border-radius: 16px;
  background: rgba(6, 10, 22, 0.94);
  border: 1px solid var(--gold);
  touch-action: manipulation;
}
.sky-panel .war-row { margin: 0 0 8px; font-size: 14px; }
.sky-panel h2 { margin: 0 0 8px; font: 400 26px/1.1 Georgia, serif; }
.sky-panel p { margin: 0 0 10px; color: var(--muted); }
.sky-panel label { display: block; margin: 0 0 8px; }
.sky-panel input, .sky-panel select {
  width: 100%;
  margin-top: 4px;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0b1220;
  color: var(--ink);
  padding: 6px 8px;
}
.sky-note {
  left: 12px;
  right: 12px;
  top: 58px;
  margin: 0;
  color: var(--gold);
  pointer-events: none;
}
.sky-foot {
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 14px;
  padding: 10px 14px 12px;
  background: #050814;
}
button[hidden], .sky-panel[hidden], #duel-actions[hidden], #ground-actions[hidden], #fly-actions[hidden] { display: none !important; }
#sky-stage {
  position: fixed;
  inset: 0;
}
#panel:not([hidden]) ~ #note { visibility: hidden; }
.sky-panel button, .sky-actions button { white-space: normal; text-align: center; }
.sky-panel button, .christen button, .arrive-actions button {
  cursor: pointer;
  touch-action: manipulation;
}
.sky-panel button:active {
  background: var(--gold);
  color: #041018;
  border-color: var(--gold);
}
.sky-paths { flex-direction: column; align-items: stretch; }
.sky-paths button {
  width: 100%;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.sky-paths button b { font-weight: 600; }
.sky-paths button small { color: var(--muted); font-size: 13px; line-height: 1.3; }
.sky-paths button:active small { color: #041018; }
.sky-panel [data-side-status] { color: var(--gold); }
.sky-panel [data-side-status]:empty { display: none; margin: 0; }
@media (orientation: portrait) and (pointer: coarse) and (hover: none) {
  .sky-top { padding-top: calc(8px + env(safe-area-inset-top)); }
  .sky-top strong { min-width: 0; font-size: 14px; }
  .sky-note {
    top: calc(52px + env(safe-area-inset-top));
    font-size: 13px;
  }
  .sky-hud {
    max-height: min(42dvh, 280px);
    overflow: auto;
  }
  .sky-panel {
    top: calc(88px + env(safe-area-inset-top));
    left: 10px;
    right: 10px;
    width: auto;
    margin-inline: 0;
    max-height: calc(100dvh - 250px - env(safe-area-inset-top));
  }
  .sky-thumbs { bottom: calc(58px + env(safe-area-inset-bottom)); }
  .sky-cast { bottom: calc(188px + env(safe-area-inset-bottom)); }
  body.casting .sky-hud { right: 176px; }
  .sky-foot {
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 12px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  }
}
@media (orientation: landscape) and (max-height: 520px) {
  .sky-foot { display: none; }
  .sky-top { padding-block: 6px; }
  .sky-hud {
    left: 12px;
    right: auto;
    top: 48px;
    bottom: auto;
    width: min(300px, 36vw);
    max-height: calc(100% - 150px);
    overflow: auto;
  }
  .sky-note { top: 46px; left: calc(min(300px, 36vw) + 24px); }
  .sky-thumbs { bottom: calc(8px + env(safe-area-inset-bottom)); }
  .sky-cast { bottom: calc(124px + env(safe-area-inset-bottom)); }
  body.casting .sky-hud { right: auto; }
  .sky-panel {
    top: 48px;
    max-height: calc(100% - 120px);
  }
}
@media (max-width: 720px) and (min-height: 521px) {
  .sky-cast { bottom: calc(188px + env(safe-area-inset-bottom)); }
  body.casting .sky-hud { right: 176px; }
}
body.fighting .sky-foot,
body.fighting .sky-today { display: none; }
body.fighting .sky-thumbs { bottom: calc(8px + env(safe-area-inset-bottom)); }
body.fighting .sky-cast { bottom: calc(132px + env(safe-area-inset-bottom)); }
