:root {
  --orange: #FF8A3D;
  --orange-deep: #F56A12;
  --orange-soft: #FFB06B;
  --navy: #0B2A4A;
  --navy-deep: #071A2F;
  --ink: #0E2B47;
  --ice: #EAF6FF;
  --ice-2: #D3EAFB;
  --white: #ffffff;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --shadow-card: 0 24px 60px rgba(2, 18, 38, .38);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

body { user-select: none; -webkit-user-select: none; }

button {
  font-family: inherit;
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

button:focus { outline: none; }
button:focus-visible { outline: 2px solid rgba(255, 255, 255, .9); outline-offset: 3px; }

.hidden { display: none !important; }

#stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background: #0B2A4A;
}

#gameCanvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 0;
  touch-action: none;
}

/* ---------------- 开始界面 ---------------- */

.screen {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.start-screen {
  overflow: hidden;
  background: #7EC8F2;
  opacity: 1;
  transition: opacity .3s ease, transform .35s ease;
}

.start-screen.is-leaving {
  opacity: 0;
  transform: scale(1.035);
  pointer-events: none;
}

.start-art {
  position: absolute;
  inset: -3%;
  background-image: url("assets/hero.jpg");
  background-size: cover;
  background-position: 38% 46%;
  background-repeat: no-repeat;
  animation: art-drift 20s ease-in-out infinite alternate;
  will-change: transform;
}

.start-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 24, 48, .36) 0%, rgba(4, 24, 48, 0) 20%),
    linear-gradient(0deg, rgba(5, 21, 41, .94) 0%, rgba(5, 21, 41, .78) 16%, rgba(5, 21, 41, .16) 48%, rgba(5, 21, 41, 0) 64%);
}

.snow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.start-inner {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 16px) 20px calc(var(--safe-bottom) + 24px);
}

.sound-btn {
  position: absolute;
  z-index: 5;
  top: calc(var(--safe-top) + 14px);
  right: 16px;
}

.hero {
  margin-top: clamp(40px, 7vh, 72px);
  text-align: center;
  animation: hero-in .8s cubic-bezier(.2, .8, .2, 1) both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto 14px;
  padding: 7px 13px 7px 10px;
  border-radius: 999px;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  background: rgba(10, 39, 68, .34);
  border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

.hero-kicker .mp-icon {
  width: 15px;
  height: 15px;
  color: var(--orange-soft);
}

.logo {
  margin: 0;
  font-size: clamp(52px, 16.4vw, 72px);
  line-height: .98;
  font-weight: 900;
  font-style: italic;
  letter-spacing: .015em;
  transform: skewX(-5deg) rotate(-1.5deg);
  white-space: nowrap;
  filter: drop-shadow(0 12px 18px rgba(8, 35, 66, .38));
}

.logo-snow {
  color: #FFFFFF;
  text-shadow:
    0 2px 0 #6FAFD8,
    0 4px 0 #2D6FA3,
    0 7px 0 #164875,
    0 12px 22px rgba(5, 30, 58, .4);
}

.logo-fire {
  color: var(--orange);
  text-shadow:
    0 2px 0 #FFC08D,
    0 4px 0 #D95A08,
    0 7px 0 #A83E00,
    0 12px 22px rgba(79, 25, 0, .36);
}

.tagline {
  margin: 17px auto 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .02em;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(5, 28, 52, .6);
}

.start-panel {
  position: relative;
  margin: 0 -20px calc(-1 * (var(--safe-bottom) + 24px));
  padding: 70px 20px calc(var(--safe-bottom) + 18px);
  background: linear-gradient(180deg,
    rgba(5, 21, 41, 0) 0%,
    rgba(5, 21, 41, .42) 18%,
    rgba(5, 21, 41, .88) 48%,
    rgba(5, 21, 41, .96) 100%);
  animation: panel-in .75s .12s cubic-bezier(.2, .8, .2, 1) both;
}

.best-pill {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 14px 9px 9px;
  margin-bottom: 12px;
  border-radius: 17px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .19);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}

.best-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  color: #7A3D00;
  background: linear-gradient(145deg, #FFE49B, #FFB33D);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 4px 10px rgba(0, 0, 0, .18);
}

.best-icon .mp-icon { width: 21px; height: 21px; }

.best-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.best-copy small {
  font-size: 10px;
  letter-spacing: .16em;
  font-weight: 700;
  color: rgba(255, 255, 255, .6);
}

.best-copy strong {
  font-size: 19px;
  line-height: 1.2;
  font-weight: 900;
  font-style: italic;
  color: #FFFFFF;
}

.best-copy strong em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange-soft);
  margin-left: 2px;
}

.best-tag {
  margin-left: auto;
  flex: none;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: .08em;
  font-weight: 700;
  color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 54px;
  padding: 0 20px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
  -webkit-user-select: none;
  user-select: none;
}

.btn .mp-icon { width: 22px; height: 22px; flex: none; }
.btn:active { transform: scale(.972); }

.btn-primary {
  color: #FFFFFF;
  background: linear-gradient(180deg, #FFA95F 0%, var(--orange) 46%, #F4751D 100%);
  box-shadow:
    0 10px 24px rgba(240, 102, 20, .36),
    inset 0 1px 0 rgba(255, 255, 255, .5),
    inset 0 -2px 0 rgba(154, 57, 0, .22);
  text-shadow: 0 1px 2px rgba(130, 48, 0, .25);
}

.btn-primary::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  top: 5px;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.btn-start {
  height: 62px;
  border-radius: 999px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .05em;
  animation: btn-breathe 2.8s ease-in-out infinite;
}

.btn-start .btn-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}

.btn-start .mp-icon { width: 23px; height: 23px; margin-left: 2px; }

.btn-secondary {
  color: #1B4162;
  background: linear-gradient(180deg, #FFFFFF, #EAF5FE);
  border: 1px solid rgba(22, 64, 100, .1);
  box-shadow: 0 6px 16px rgba(6, 34, 60, .14), inset 0 1px 0 #FFFFFF;
}

.btn-text {
  height: 46px;
  color: rgba(27, 65, 98, .66);
  font-weight: 700;
  font-size: 14px;
}

.btn-text:active { background: rgba(14, 43, 71, .05); }

.start-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 13px 0 0;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .56);
  letter-spacing: .02em;
}

.start-hint b { color: rgba(255, 255, 255, .28); font-weight: 400; }

.start-hint .mp-icon {
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, .5);
}

/* ---------------- 通用图标按钮 ---------------- */

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #FFFFFF;
  background: rgba(9, 38, 66, .34);
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 6px 16px rgba(3, 22, 42, .18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform .12s ease, background .2s ease;
}

.icon-btn .mp-icon { width: 21px; height: 21px; }
.icon-btn:active { transform: scale(.92); background: rgba(9, 38, 66, .5); }

.glass-btn {
  width: 47px;
  height: 47px;
  pointer-events: auto;
  background: rgba(10, 38, 66, .46);
  border-color: rgba(255, 255, 255, .22);
}

/* ---------------- 游戏 HUD ---------------- */

.hud {
  position: absolute;
  inset: 0;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

.hud.show { opacity: 1; }

.hud-top {
  position: absolute;
  top: calc(var(--safe-top) + 12px);
  left: 16px;
  right: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hud-distance {
  position: relative;
  min-width: 106px;
  padding: 8px 15px 9px;
  border-radius: 19px;
  background: linear-gradient(160deg, rgba(13, 46, 79, .66), rgba(7, 29, 52, .54));
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 20px rgba(3, 22, 42, .16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hud-caption {
  display: block;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .2em;
  font-weight: 700;
  color: rgba(255, 255, 255, .62);
  margin-bottom: 3px;
}

.hud-number { display: flex; align-items: baseline; gap: 3px; }

.hud-number strong {
  font-size: 31px;
  line-height: 1;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.02em;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.hud-number span {
  font-size: 12px;
  font-weight: 800;
  color: var(--orange-soft);
}

.hud-stats {
  position: absolute;
  top: calc(var(--safe-top) + 84px);
  left: 16px;
  display: flex;
  gap: 7px;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 29px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(8, 34, 60, .4);
  border: 1px solid rgba(255, 255, 255, .15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat-chip .mp-icon { width: 14px; height: 14px; color: var(--orange-soft); }
.stat-chip b { font-size: 12.5px; font-weight: 800; }
.stat-chip small { font-size: 8.5px; font-weight: 700; color: rgba(255, 255, 255, .55); margin-left: 1px; }

.steer-hint {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 34px);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(8, 32, 57, .5);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, .86);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 1;
  transition: opacity .4s ease, transform .4s ease;
  animation: hint-float 2.2s ease-in-out infinite;
}

.steer-hint.hide {
  opacity: 0;
  transform: translate(-50%, 8px);
}

.steer-hint .mp-icon {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, .8);
}

/* ---------------- 倒计时 ---------------- */

.countdown {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.countdown span {
  display: block;
  font-size: clamp(94px, 29vw, 138px);
  line-height: 1;
  font-weight: 900;
  font-style: italic;
  color: #FFFFFF;
  text-shadow:
    0 4px 0 #4D91C4,
    0 8px 0 #205C8D,
    0 18px 44px rgba(2, 25, 49, .5);
  animation: count-pop .62s cubic-bezier(.18, .75, .2, 1) both;
}

.countdown span.go {
  color: var(--orange);
  font-size: clamp(72px, 21vw, 108px);
  letter-spacing: .02em;
  text-shadow:
    0 4px 0 #B9510D,
    0 8px 0 #7F3500,
    0 18px 44px rgba(51, 16, 0, .42);
}

/* ---------------- 覆盖层 ---------------- */

.overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-top) + 18px) 18px calc(var(--safe-bottom) + 18px);
  background: rgba(4, 20, 40, .52);
  -webkit-backdrop-filter: blur(9px) saturate(1.06);
  backdrop-filter: blur(9px) saturate(1.06);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.overlay:not(.hidden) .pause-card { animation: card-in .38s cubic-bezier(.18, .8, .2, 1) both; }
.overlay:not(.hidden) .end-card { animation: card-in .42s cubic-bezier(.18, .8, .2, 1) both; }

.pause-card,
.end-card {
  position: relative;
  width: 100%;
  max-width: 352px;
  margin: auto;
  padding: 24px 20px 18px;
  border-radius: 28px;
  color: var(--ink);
  background: linear-gradient(180deg, #FFFFFF 0%, #F3FAFF 66%, #E9F6FF 100%);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-card), inset 0 1px 0 #FFFFFF;
}

.pause-card { max-width: 322px; }

.end-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 22px;
  border: 1px solid rgba(26, 83, 128, .07);
  pointer-events: none;
}

.mini-badge,
.result-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  color: #2C6D9E;
  background: #E3F2FD;
  border: 1px solid rgba(44, 109, 158, .12);
}

.result-tag { color: #B95313; background: #FFE9D6; border-color: rgba(185, 83, 19, .12); letter-spacing: .08em; }
.result-tag .mp-icon { width: 13px; height: 13px; }

.pause-card h2,
.end-head h2 {
  margin: 12px 0 0;
  font-size: 27px;
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--ink);
}

.pause-sub,
.end-head p {
  margin: 7px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #6A849B;
}

.pause-card .btn { margin-top: 10px; }
.pause-card .btn-primary { margin-top: 20px; }

.end-card { text-align: center; padding-top: 22px; }

.end-head { position: relative; }

.end-distance {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  margin: 13px 0 0;
  position: relative;
}

.end-distance::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 170px;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 138, 61, .18), rgba(255, 138, 61, 0) 70%);
  pointer-events: none;
}

.end-distance strong {
  position: relative;
  font-size: 66px;
  line-height: .92;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.045em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 3px 0 #D9ECFB;
}

.end-distance span {
  position: relative;
  margin-top: 8px;
  font-size: 17px;
  font-weight: 900;
  color: var(--orange-deep);
}

.end-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 15px 0 0;
  padding: 12px 0;
  border-top: 1px solid rgba(22, 64, 100, .09);
  border-bottom: 1px solid rgba(22, 64, 100, .09);
}

.end-stats > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 6px;
  border-left: 1px solid rgba(22, 64, 100, .08);
}

.end-stats > div:first-child { border-left: 0; }

.end-stats small {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #8BA2B6;
}

.end-stats strong {
  font-size: 17px;
  line-height: 1.15;
  font-weight: 900;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.end-stats strong em {
  font-style: normal;
  font-size: 8.5px;
  margin-left: 1px;
  color: #8BA2B6;
  font-weight: 700;
}

.new-record {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: fit-content;
  margin: 11px auto 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #7B3F00;
  background: linear-gradient(180deg, #FFE9A9, #FFC44C);
  border: 1px solid rgba(154, 92, 0, .12);
  box-shadow: 0 5px 12px rgba(191, 126, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .7);
  animation: record-pop .45s .16s cubic-bezier(.18, .8, .2, 1) both;
}

.new-record .mp-icon { width: 14px; height: 14px; }

.end-card .btn { margin-top: 11px; }
.end-card .btn-primary { margin-top: 17px; }

/* ---------------- 提示 ---------------- */

.toast {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 96px);
  transform: translate(-50%, 8px);
  max-width: calc(100% - 48px);
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(7, 29, 52, .82);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 动画 ---------------- */

@keyframes art-drift {
  from { transform: scale(1.02) translateY(-5px); }
  to { transform: scale(1.08) translateY(7px); }
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes btn-breathe {
  0%, 100% { box-shadow: 0 10px 24px rgba(240, 102, 20, .36), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(154, 57, 0, .22); }
  50% { box-shadow: 0 14px 34px rgba(240, 102, 20, .5), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(154, 57, 0, .22); }
}

@keyframes hint-float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -3px); }
}

@keyframes count-pop {
  0% { opacity: 0; transform: scale(.5) rotate(-6deg); }
  45% { opacity: 1; transform: scale(1.06) rotate(-2deg); }
  100% { opacity: 1; transform: scale(1) rotate(-2deg); }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(20px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes record-pop {
  from { opacity: 0; transform: scale(.7); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------------- 适配 ---------------- */

@media (max-height: 690px) {
  .hero { margin-top: 34px; }
  .logo { font-size: clamp(44px, 13.6vw, 60px); }
  .tagline { margin-top: 11px; font-size: 12.5px; }
  .hero-kicker { margin-bottom: 9px; padding: 5px 11px; font-size: 10px; }
  .start-panel { padding-top: 42px; }
  .best-pill { margin-bottom: 9px; padding-top: 7px; padding-bottom: 7px; }
  .best-icon { width: 34px; height: 34px; }
  .btn-start { height: 56px; }
  .start-hint { margin-top: 9px; }
  .end-card { padding-top: 18px; padding-bottom: 14px; }
  .end-distance strong { font-size: 54px; }
  .end-head h2 { font-size: 23px; }
  .end-stats { margin-top: 10px; padding: 9px 0; }
  .end-card .btn { margin-top: 9px; }
  .end-card .btn-primary { margin-top: 12px; }
}

@media (min-width: 560px) and (min-height: 560px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
      radial-gradient(1100px 700px at 50% 10%, #16456F 0%, #0A2340 48%, #050F1E 100%);
  }

  #stage {
    position: relative;
    inset: auto;
    width: 430px;
    height: min(920px, calc(100dvh - 28px));
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 40px 100px rgba(0, 8, 20, .62), 0 0 0 10px rgba(255, 255, 255, .025);
  }

  .start-inner { padding-left: 24px; padding-right: 24px; }
  .start-panel { margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; }
  .overlay { padding-left: 24px; padding-right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .start-art,
  .hero,
  .start-panel,
  .btn-start,
  .steer-hint,
  .countdown span,
  .new-record { animation: none !important; }
}
