@font-face {
  font-family: "Barlow";
  src: url("assets/fonts/Barlow-Regular.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/BarlowCondensed-SemiBold.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/BarlowCondensed-Black.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 900;
}

:root {
  color-scheme: dark;
  font-family: "Barlow", Inter, Manrope, Aptos, "Segoe UI", system-ui, sans-serif;
  background: #04111c;
  color: #f4fbff;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  --ink: #071d2d;
  --night: #061725;
  --night-soft: #0b2d43;
  --glass: rgba(6, 27, 43, 0.72);
  --glass-strong: rgba(5, 24, 38, 0.9);
  --ice: #f4fbff;
  --ice-soft: #c9e7ef;
  --sky: #65d8ef;
  --signal: #ff7657;
  --signal-bright: #ff8b6c;
  --signal-dark: #b93c27;
  --yellow: #ffda70;
  --mint: #76dca0;
  --line: rgba(216, 246, 255, 0.2);
  --safe-top: max(18px, env(safe-area-inset-top));
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% 15%, rgba(52, 140, 176, 0.16), transparent 34%),
    #04111c;
}

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

.game-shell {
  position: relative;
  width: min(100vw, 390px);
  height: min(100dvh, 844px);
  overflow: hidden;
  isolation: isolate;
  background: #74d0e9;
  border: 1px solid rgba(218, 247, 255, 0.2);
  border-radius: 26px;
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(110, 217, 244, 0.05);
}

.game-shell::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, transparent 43%, rgba(3, 18, 30, 0.16) 100%),
    linear-gradient(180deg, rgba(3, 17, 28, 0.18), transparent 18%, transparent 72%, rgba(3, 17, 28, 0.24));
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.hud {
  position: absolute;
  z-index: 5;
  inset: var(--safe-top) 14px auto;
  display: grid;
  gap: 8px;
  pointer-events: none;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 320ms cubic-bezier(0.2, 0.85, 0.3, 1);
}

.hud.is-hidden {
  opacity: 0;
  transform: translateY(-12px);
}

.hud-topline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 8px;
}

.hud-stat,
.combo-badge {
  min-height: 52px;
  padding: 9px 12px 8px;
  border: 1px solid rgba(222, 249, 255, 0.16);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(7, 35, 53, 0.82), rgba(5, 25, 40, 0.7));
  box-shadow: 0 8px 20px rgba(1, 17, 28, 0.18);
  backdrop-filter: blur(10px);
}

.hud-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hud-stat--right {
  align-items: flex-end;
  text-align: right;
}

.hud-stat span,
.combo-badge span,
.fuel-label span,
.shield-status {
  font-family: var(--display);
  font-size: 8px;
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
}

.hud-stat span,
.combo-badge span,
.fuel-label span {
  color: rgba(222, 244, 250, 0.7);
}

.hud-stat strong,
.combo-badge strong,
.fuel-label strong {
  color: #ffffff;
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.hud-stat strong {
  font-size: 22px;
  line-height: 0.95;
  letter-spacing: -0.035em;
  transform-origin: left center;
}

.hud-stat--right strong {
  transform-origin: right center;
}

#scoreValue.is-punching,
#rescuedValue.is-punching {
  animation: stat-punch 360ms cubic-bezier(0.18, 1.6, 0.4, 1);
}

.combo-badge {
  display: grid;
  place-items: center;
  align-content: center;
  min-width: 66px;
  padding-inline: 9px;
  border-color: rgba(222, 249, 255, 0.22);
  border-radius: 18px;
  text-align: center;
  opacity: 0.82;
  transform: translateY(2px) scale(0.94);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.combo-badge strong {
  margin-top: 2px;
  font-size: 20px;
  line-height: 0.9;
}

.combo-badge.is-active {
  color: var(--ink);
  border-color: rgba(255, 229, 145, 0.9);
  background: linear-gradient(180deg, #ffe69a, #ffc75b);
  box-shadow: 0 8px 26px rgba(255, 188, 69, 0.3);
  opacity: 1;
  transform: translateY(0) scale(1);
}

.combo-badge.is-active span,
.combo-badge.is-active strong {
  color: #4f310a;
}

.combo-badge.is-pulsing {
  animation: combo-punch 420ms cubic-bezier(0.17, 1.8, 0.32, 1);
}

.hud-power {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.fuel-meter {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  width: 174px;
  min-height: 28px;
  padding: 6px 9px;
  border: 1px solid rgba(222, 249, 255, 0.13);
  border-radius: 999px;
  background: rgba(5, 27, 42, 0.7);
  box-shadow: 0 6px 18px rgba(1, 17, 28, 0.14);
  backdrop-filter: blur(9px);
}

.fuel-label {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.fuel-label strong {
  min-width: 20px;
  font-size: 10px;
  text-align: right;
}

.fuel-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.fuel-track i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #65c98e, #9ee5b9);
  box-shadow: 0 0 10px rgba(118, 220, 160, 0.5);
  transform-origin: left center;
  transition: transform 100ms linear, background 180ms ease;
}

.fuel-track i.is-low {
  background: linear-gradient(90deg, #ff604b, #ffab69);
  box-shadow: 0 0 10px rgba(255, 103, 76, 0.58);
}

.shield-status {
  display: flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(126, 226, 255, 0.55);
  border-radius: 999px;
  color: #dff8ff;
  background: rgba(8, 63, 83, 0.68);
  box-shadow: 0 0 18px rgba(82, 206, 242, 0.18);
  opacity: 0;
  transform: translateX(-7px) scale(0.95);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.shield-status.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.phase-notice,
.fuel-warning {
  position: absolute;
  z-index: 7;
  left: 50%;
  min-width: 172px;
  padding: 10px 16px;
  border: 1px solid rgba(229, 249, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(5, 27, 42, 0.88);
  box-shadow: 0 12px 28px rgba(1, 14, 24, 0.24);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-align: center;
  pointer-events: none;
  transform: translateX(-50%) translateY(0) scale(1);
  transition: opacity 180ms ease, transform 240ms cubic-bezier(0.2, 1.5, 0.3, 1);
  backdrop-filter: blur(10px);
}

.phase-notice {
  top: 118px;
}

.phase-notice::before,
.fuel-warning::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal);
  vertical-align: 1px;
}

.phase-notice.is-volcanic::before,
.fuel-warning::before {
  background: var(--yellow);
  box-shadow: 0 0 10px var(--yellow);
}

.fuel-warning {
  bottom: 66px;
  border-color: rgba(255, 177, 115, 0.35);
  background: rgba(111, 35, 29, 0.9);
}

.phase-notice.is-hidden,
.fuel-warning.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(-7px) scale(0.96);
}

.sound-button {
  position: absolute;
  z-index: 9;
  top: var(--safe-top);
  right: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(224, 248, 255, 0.24);
  border-radius: 999px;
  color: #e9f8fb;
  background: rgba(5, 27, 42, 0.62);
  box-shadow: 0 7px 20px rgba(2, 17, 27, 0.16);
  font-family: var(--display);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.sound-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 9px rgba(118, 220, 160, 0.9);
}

.sound-button.is-muted .sound-indicator {
  background: rgba(210, 229, 234, 0.45);
  box-shadow: none;
}

.hud:not(.is-hidden) ~ .sound-button {
  top: auto;
  right: 12px;
  bottom: var(--safe-bottom);
  min-height: 28px;
  opacity: 0.66;
}

.screen-card {
  position: absolute;
  z-index: 6;
  opacity: 1;
  transition: opacity 260ms ease, transform 360ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

.screen-card.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.screen-card--menu {
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: var(--safe-top) 22px var(--safe-bottom);
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(4, 18, 29, 0.34) 0%, rgba(4, 18, 29, 0.02) 25%, rgba(4, 18, 29, 0.02) 43%, rgba(4, 18, 29, 0.58) 63%, rgba(4, 18, 29, 0.97) 100%);
}

.screen-card--menu.is-hidden {
  transform: scale(1.025);
}

.menu-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding-right: 94px;
  animation: menu-rise 640ms 80ms both cubic-bezier(0.2, 0.85, 0.25, 1);
}

.eyebrow,
.kicker {
  margin: 0;
  font-family: var(--display);
  font-size: 9px;
  font-stretch: condensed;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(229, 247, 251, 0.82);
}

.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px rgba(255, 118, 87, 0.86);
  animation: status-pulse 1.8s ease-in-out infinite;
}

.best-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0;
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
}

.best-line span {
  color: rgba(218, 242, 248, 0.54);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.best-line strong {
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.menu-hero {
  position: absolute;
  top: clamp(96px, 13vh, 122px);
  left: 22px;
  z-index: 1;
  pointer-events: none;
}

.kicker {
  margin: 0 0 11px 3px;
  color: var(--signal-bright);
  animation: menu-rise 620ms 160ms both cubic-bezier(0.2, 0.85, 0.25, 1);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  display: grid;
  margin: 0;
  font-family: var(--display);
  font-stretch: condensed;
  line-height: 0.76;
  filter: drop-shadow(0 8px 18px rgba(3, 20, 31, 0.22));
}

.title-prefix {
  margin-left: 5px;
  color: #c6f3ff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.46em;
  animation: title-in 700ms 210ms both cubic-bezier(0.16, 1, 0.3, 1);
}

.title-main {
  color: #ffffff;
  font-size: clamp(66px, 18vw, 78px);
  font-weight: 900;
  letter-spacing: -0.075em;
  animation: title-in 760ms 270ms both cubic-bezier(0.16, 1, 0.3, 1);
}

.lead {
  margin: 22px 0 0 3px;
  color: rgba(235, 249, 252, 0.83);
  font-size: 13px;
  font-weight: 560;
  letter-spacing: 0.015em;
  line-height: 1.4;
  text-shadow: 0 2px 14px rgba(3, 20, 31, 0.5);
  animation: menu-rise 650ms 380ms both cubic-bezier(0.2, 0.85, 0.25, 1);
}

.menu-actions {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  margin-top: auto;
  animation: menu-rise 680ms 430ms both cubic-bezier(0.16, 1, 0.3, 1);
}

.mission-brief {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 13px;
  padding: 10px 13px 10px 10px;
  border: 1px solid rgba(216, 246, 255, 0.17);
  border-radius: 18px;
  background: linear-gradient(110deg, rgba(9, 43, 62, 0.78), rgba(4, 25, 39, 0.58));
  box-shadow: 0 12px 28px rgba(1, 15, 25, 0.18);
  backdrop-filter: blur(12px);
}

.control-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 179, 149, 0.86);
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(180deg, #ff8061, #d64a31);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 6px 14px rgba(159, 51, 35, 0.3);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.control-icon::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(255, 145, 109, 0.28);
  border-radius: 50%;
  animation: control-ring 2s ease-out infinite;
}

.mission-brief p {
  display: grid;
  gap: 4px;
  margin: 0;
  line-height: 1.28;
}

.mission-brief strong {
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
}

.mission-brief p span {
  color: rgba(218, 240, 246, 0.68);
  font-size: 10px;
}

.primary-button,
.secondary-button {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  transition:
    transform 150ms cubic-bezier(0.2, 0.8, 0.3, 1),
    filter 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}

.primary-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 66px;
  padding: 10px 19px 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 181, 154, 0.94);
  border-radius: 17px;
  background: linear-gradient(180deg, var(--signal-bright), #f45e41);
  box-shadow:
    0 7px 0 var(--signal-dark),
    0 15px 28px rgba(123, 39, 29, 0.33),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  text-align: left;
}

.primary-button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -35%;
  width: 28%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  animation: button-sheen 4.8s 1.1s ease-in-out infinite;
}

.button-kicker,
.button-label {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 850;
  white-space: nowrap;
}

.button-kicker {
  color: rgba(255, 244, 239, 0.72);
  font-size: 8px;
  letter-spacing: 0.15em;
}

.button-label {
  font-size: 15px;
  letter-spacing: 0.09em;
}

.primary-button:active {
  transform: translateY(5px) scale(0.988);
  box-shadow:
    0 2px 0 var(--signal-dark),
    0 7px 15px rgba(123, 39, 29, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.mission-rules {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 25px;
  color: rgba(208, 236, 243, 0.55);
  font-family: var(--display);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.mission-rules i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--signal);
  opacity: 0.75;
}

.screen-card--report {
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 18px 14px 0;
  background:
    radial-gradient(circle at 50% 24%, rgba(106, 215, 238, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(3, 18, 29, 0.28), rgba(3, 18, 29, 0.78) 48%, rgba(3, 18, 29, 0.98));
  backdrop-filter: blur(2px);
}

.screen-card--report.is-hidden {
  transform: translateY(20px);
}

.report-panel {
  position: relative;
  width: 100%;
  padding: 24px 20px calc(21px + env(safe-area-inset-bottom));
  overflow: hidden;
  border: 1px solid rgba(218, 247, 255, 0.18);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background:
    linear-gradient(145deg, rgba(13, 51, 70, 0.96), rgba(5, 25, 40, 0.98) 62%);
  box-shadow:
    0 -18px 48px rgba(2, 16, 26, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.report-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  width: 72px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--signal);
  box-shadow: 0 0 16px rgba(255, 118, 87, 0.7);
}

.screen-card--report:not(.is-hidden) .report-panel {
  animation: report-in 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.report-head {
  position: relative;
}

.report-head .eyebrow {
  color: rgba(198, 232, 240, 0.6);
}

h2 {
  margin: 8px 0 0;
  color: #ffffff;
  font-family: var(--display);
  font-size: 37px;
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.new-best {
  position: absolute;
  right: 0;
  bottom: 2px;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid rgba(255, 226, 135, 0.5);
  border-radius: 999px;
  color: #4b300b;
  background: linear-gradient(180deg, #ffeaa1, #ffc761);
  box-shadow: 0 6px 18px rgba(255, 184, 67, 0.2);
  font-family: var(--display);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.score-result {
  display: grid;
  gap: 2px;
  margin: 24px 0 17px;
}

.score-result span {
  color: rgba(202, 232, 239, 0.55);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.score-result strong {
  color: #ffffff;
  font-family: var(--display);
  font-size: 64px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.9;
  text-shadow: 0 8px 26px rgba(5, 18, 28, 0.3);
}

.screen-card--report:not(.is-hidden) .score-result strong {
  animation: score-land 580ms 130ms both cubic-bezier(0.16, 1.2, 0.3, 1);
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 0 0 18px;
}

.report-grid div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 11px 9px 10px;
  border: 1px solid rgba(214, 244, 251, 0.11);
  border-radius: 13px;
  background: rgba(196, 235, 244, 0.055);
}

.report-grid dt {
  color: rgba(205, 233, 239, 0.56);
  font-family: var(--display);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.report-grid dd {
  margin: 0;
  overflow: hidden;
  color: #ffffff;
  font-family: var(--display);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-button--retry {
  min-height: 62px;
}

.report-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
}

.secondary-button {
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(215, 244, 251, 0.19);
  border-radius: 13px;
  color: rgba(226, 246, 251, 0.75);
  background: rgba(200, 237, 246, 0.055);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.secondary-button:active {
  transform: translateY(2px) scale(0.985);
  background: rgba(200, 237, 246, 0.1);
}

.share-status {
  min-height: 12px;
  margin: 9px 0 -4px;
  color: #8ee5ff;
  font-family: var(--display);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: center;
}

.game-hint {
  position: absolute;
  z-index: 7;
  bottom: 62px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid rgba(226, 249, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(5, 27, 42, 0.8);
  box-shadow: 0 10px 24px rgba(2, 17, 27, 0.2);
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.12em;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 200ms ease, transform 240ms ease;
  backdrop-filter: blur(10px);
}

.game-hint strong {
  color: var(--signal-bright);
  font-weight: 900;
}

.game-hint span {
  color: rgba(231, 247, 251, 0.76);
  font-weight: 800;
}

.game-hint.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
}

.mission-transition {
  position: absolute;
  z-index: 12;
  inset: -8%;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-115%) skewX(-8deg);
  background: linear-gradient(105deg, rgba(4, 19, 31, 0), rgba(4, 19, 31, 0.96) 28%, rgba(32, 126, 164, 0.9) 52%, rgba(4, 19, 31, 0.96) 72%, rgba(4, 19, 31, 0));
}

.game-shell.is-launching .mission-transition {
  animation: launch-wipe 620ms cubic-bezier(0.7, 0, 0.25, 1) both;
}

.game-shell.is-rescue .mission-transition {
  background: radial-gradient(circle at 42% 50%, rgba(189, 240, 93, 0.34), rgba(99, 232, 137, 0.12) 26%, transparent 52%);
  transform: none;
  animation: rescue-flash 340ms ease-out both;
}

.game-shell.is-crashing {
  animation: shell-impact 300ms ease-out;
}

.is-hidden {
  opacity: 0;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .primary-button:hover {
    filter: brightness(1.07) saturate(1.06);
    transform: translateY(-3px) scale(1.008);
    box-shadow:
      0 10px 0 var(--signal-dark),
      0 21px 34px rgba(123, 39, 29, 0.36),
      inset 0 1px 0 rgba(255, 255, 255, 0.38);
  }

  .primary-button:hover:active {
    transform: translateY(5px) scale(0.988);
    box-shadow:
      0 2px 0 var(--signal-dark),
      0 7px 15px rgba(123, 39, 29, 0.28);
  }

  .secondary-button:hover,
  .sound-button:hover {
    color: #ffffff;
    border-color: rgba(222, 247, 253, 0.38);
    background: rgba(205, 240, 248, 0.12);
    transform: translateY(-2px);
  }
}

@media (max-width: 420px), (max-height: 860px) {
  .game-shell {
    border: 0;
    border-radius: 0;
  }
}

@media (max-aspect-ratio: 390 / 844) {
  .game-shell {
    width: 100vw;
    height: auto;
    aspect-ratio: 390 / 844;
  }
}

@media (max-height: 700px) {
  .menu-hero {
    top: 72px;
  }

  .title-main {
    font-size: 59px;
  }

  .lead {
    margin-top: 17px;
  }

  .menu-actions {
    gap: 8px;
  }

  .mission-brief {
    grid-template-columns: 42px 1fr;
    padding-block: 7px;
  }

  .control-icon {
    width: 42px;
    height: 42px;
  }

  .primary-button {
    min-height: 58px;
  }

  .report-panel {
    padding-top: 18px;
  }

  .score-result {
    margin-block: 16px 12px;
  }

  .score-result strong {
    font-size: 51px;
  }

  .report-grid {
    margin-bottom: 12px;
  }
}

@media (max-width: 340px) {
  .screen-card--menu {
    padding-inline: 22px;
  }

  .primary-button {
    padding-inline: 13px;
  }

  .button-kicker {
    font-size: 7px;
    letter-spacing: 0.1em;
  }

  .button-label {
    font-size: 13px;
    letter-spacing: 0.06em;
  }

  .report-grid dd {
    font-size: 16px;
  }
}

@keyframes menu-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes title-in {
  from { opacity: 0; transform: translateX(-18px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes status-pulse {
  0%, 100% { opacity: 0.58; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes control-ring {
  0% { opacity: 0.65; transform: scale(0.9); }
  70%, 100% { opacity: 0; transform: scale(1.16); }
}

@keyframes button-sheen {
  0%, 72% { left: -35%; opacity: 0; }
  78% { opacity: 1; }
  94%, 100% { left: 112%; opacity: 0; }
}

@keyframes stat-punch {
  0% { transform: scale(1); }
  40% { color: #fff0ac; transform: scale(1.28) rotate(-2deg); }
  100% { transform: scale(1); }
}

@keyframes combo-punch {
  0% { transform: scale(1); }
  42% { transform: translateY(-5px) scale(1.22) rotate(2deg); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes report-in {
  from { opacity: 0; transform: translateY(56px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes score-land {
  from { opacity: 0; transform: translateY(16px) scale(0.76); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes launch-wipe {
  0% { opacity: 0; transform: translateX(-115%) skewX(-8deg); }
  34% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateX(115%) skewX(-8deg); }
}

@keyframes rescue-flash {
  0% { opacity: 0; }
  28% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes shell-impact {
  0%, 100% { filter: none; }
  28% { filter: saturate(1.45) brightness(1.08); }
}

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

/* Reference-led identity pass: poster title, game instruments, score-first report. */
.screen-card--menu {
  padding-inline: 20px;
  background:
    linear-gradient(180deg, rgba(3, 35, 77, 0.18) 0%, rgba(3, 35, 77, 0.02) 40%, rgba(3, 22, 43, 0.22) 54%, rgba(2, 17, 35, 0.92) 83%, #020f20 100%);
}

.menu-topline {
  justify-content: flex-start;
  padding-right: 92px;
}

.menu-topline .eyebrow {
  color: rgba(239, 250, 255, 0.9);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-shadow: 0 2px 10px rgba(1, 18, 42, 0.45);
}

.menu-hero {
  top: clamp(68px, 9.4vh, 82px);
  left: 16px;
  width: calc(100% - 32px);
  text-align: center;
}

.kicker {
  margin: 0 0 9px;
  color: #aeeeff;
  font-size: 8px;
  letter-spacing: 0.24em;
  text-shadow: 0 2px 10px rgba(1, 22, 51, 0.55);
}

h1 {
  justify-items: center;
  line-height: 0.72;
  filter: none;
  transform: skewX(-2deg);
}

.title-prefix,
.title-main {
  width: max-content;
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  -webkit-text-stroke: 1px rgba(5, 35, 82, 0.55);
}

.title-prefix {
  z-index: 1;
  color: #56d6ff;
  background: linear-gradient(180deg, #99efff 0%, #42c6ff 48%, #0b82ef 100%);
  font-size: clamp(52px, 14.5vw, 64px);
  line-height: 0.84;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: #40c8ff;
  text-shadow:
    0 4px 0 rgba(4, 60, 133, 0.7),
    0 11px 22px rgba(0, 28, 68, 0.35);
}

.title-main {
  color: #ffffff;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 55%, #cfe9ff 100%);
  font-size: clamp(68px, 19vw, 82px);
  line-height: 0.82;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: #f8fbff;
  text-shadow:
    0 5px 0 #08396f,
    0 13px 24px rgba(0, 21, 54, 0.4);
}

.lead {
  margin: 20px 0 0;
  color: rgba(239, 250, 255, 0.84);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.menu-actions {
  gap: 12px;
  padding-bottom: 2px;
}

.primary-button--start {
  min-height: 70px;
  border: 2px solid #8ce9ff;
  border-radius: 19px;
  background: linear-gradient(180deg, #178ff4 0%, #0766d6 62%, #074bb2 100%);
  box-shadow:
    0 6px 0 #032e78,
    0 0 0 4px rgba(50, 174, 255, 0.2),
    0 15px 30px rgba(1, 37, 96, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -10px 20px rgba(0, 32, 113, 0.18);
}

.primary-button--start .button-kicker {
  color: rgba(210, 241, 255, 0.78);
}

.primary-button--start .button-label {
  font-size: 17px;
  text-shadow: 0 2px 0 rgba(0, 42, 112, 0.7);
}

.primary-button--start:active {
  box-shadow:
    0 2px 0 #032e78,
    0 0 0 3px rgba(50, 174, 255, 0.17),
    0 7px 15px rgba(1, 37, 96, 0.35);
}

.mission-brief {
  grid-template-columns: 42px 1fr;
  gap: 11px;
  padding: 5px 12px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.control-icon {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(126, 224, 255, 0.88);
  color: #dff8ff;
  background: rgba(5, 61, 114, 0.6);
  box-shadow:
    0 0 0 4px rgba(44, 154, 232, 0.14),
    inset 0 0 14px rgba(50, 179, 255, 0.2);
}

.control-icon::after {
  border-color: rgba(107, 220, 255, 0.34);
}

.mission-brief strong {
  color: #ffffff;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.mission-brief p span {
  color: #6fdcff;
  font-size: 10px;
}

.best-line {
  justify-content: center;
  width: max-content;
  min-width: 156px;
  min-height: 34px;
  margin: 0 auto;
  padding: 0 16px;
  border: 1px solid rgba(113, 210, 255, 0.28);
  border-radius: 999px;
  background: rgba(4, 36, 73, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.best-line span {
  color: rgba(196, 226, 241, 0.68);
  font-size: 8px;
}

.best-line strong {
  color: #ffd45f;
  font-size: 17px;
  text-shadow: 0 0 12px rgba(255, 194, 61, 0.25);
}

.hud {
  inset: var(--safe-top) 10px auto;
  gap: 6px;
}

.hud-topline {
  gap: 6px;
}

.hud-stat,
.combo-badge {
  min-height: 55px;
  border: 1px solid rgba(125, 222, 255, 0.45);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(9, 116, 183, 0.9), rgba(4, 69, 125, 0.88));
  box-shadow:
    0 8px 20px rgba(0, 38, 82, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -8px 18px rgba(0, 31, 79, 0.14);
}

.hud-stat span,
.combo-badge span,
.fuel-label span {
  color: rgba(201, 239, 255, 0.78);
}

.hud-stat strong {
  font-size: 25px;
  text-shadow: 0 2px 0 rgba(0, 40, 91, 0.6);
}

.combo-badge {
  min-width: 70px;
  opacity: 1;
  transform: none;
}

.combo-badge strong {
  font-size: 24px;
  text-shadow: 0 2px 0 rgba(0, 40, 91, 0.6);
}

.combo-badge.is-active {
  border-color: #ffdd6b;
  background: linear-gradient(180deg, rgba(10, 104, 173, 0.96), rgba(3, 61, 119, 0.96));
  box-shadow:
    0 0 0 2px rgba(255, 207, 70, 0.2),
    0 8px 22px rgba(0, 38, 82, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.combo-badge.is-active span {
  color: #d9f4ff;
}

.combo-badge.is-active strong {
  color: #ffd44d;
  text-shadow:
    0 2px 0 #9a5c00,
    0 0 15px rgba(255, 210, 68, 0.45);
}

.fuel-meter {
  width: 172px;
  min-height: 30px;
  border-color: rgba(117, 215, 255, 0.35);
  background: linear-gradient(180deg, rgba(5, 95, 154, 0.88), rgba(3, 56, 106, 0.86));
}

.fuel-track {
  height: 7px;
  background: rgba(1, 38, 83, 0.65);
}

.fuel-track i {
  background: linear-gradient(90deg, #ffe15d, #a7eb52);
  box-shadow: 0 0 10px rgba(218, 233, 73, 0.48);
}

.sound-button {
  border-color: rgba(112, 218, 255, 0.4);
  background: linear-gradient(180deg, rgba(5, 94, 155, 0.86), rgba(3, 49, 95, 0.86));
}

.screen-card--report {
  align-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 16%, rgba(42, 149, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(1, 22, 55, 0.82), rgba(1, 13, 34, 0.97));
  backdrop-filter: blur(4px);
}

.report-panel {
  width: 100%;
  padding: 25px 21px 21px;
  border: 2px solid rgba(52, 144, 242, 0.76);
  border-radius: 25px;
  background:
    linear-gradient(145deg, rgba(5, 50, 100, 0.97), rgba(1, 23, 57, 0.99) 70%);
  box-shadow:
    0 0 0 5px rgba(15, 89, 180, 0.18),
    0 22px 50px rgba(0, 5, 19, 0.52),
    inset 0 1px 0 rgba(153, 222, 255, 0.18),
    inset 0 0 38px rgba(2, 78, 154, 0.18);
}

.report-panel::before {
  top: -2px;
  left: 50%;
  width: 92px;
  height: 4px;
  border-radius: 0 0 5px 5px;
  background: #51cfff;
  box-shadow: 0 0 18px rgba(71, 197, 255, 0.72);
  transform: translateX(-50%);
}

.report-head {
  text-align: center;
}

.report-head .eyebrow {
  justify-content: center;
  color: rgba(154, 211, 242, 0.7);
  font-size: 9px;
}

h2 {
  margin-top: 7px;
  color: #ffffff;
  background: linear-gradient(180deg, #ffffff 0%, #d6ecff 100%);
  font-size: 46px;
  letter-spacing: -0.045em;
  line-height: 0.9;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: #f7fbff;
  text-shadow: 0 3px 16px rgba(0, 9, 30, 0.42);
}

.new-best {
  position: static;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 12px 0 0;
  padding: 0 12px;
  border-color: rgba(255, 223, 105, 0.72);
  color: #493000;
  background: linear-gradient(180deg, #ffe678, #ffb92f);
}

.new-best.is-hidden {
  display: none;
}

.score-result {
  justify-items: center;
  margin: 23px 0 18px;
  text-align: center;
}

.score-result span {
  color: #61cfff;
  font-size: 10px;
}

.score-result strong {
  font-size: 76px;
  letter-spacing: -0.045em;
  text-shadow:
    0 5px 0 rgba(3, 39, 84, 0.82),
    0 10px 24px rgba(0, 8, 26, 0.35);
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0 0 20px;
  border-block: 1px solid rgba(72, 155, 232, 0.3);
}

.report-grid div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.report-grid div + div {
  border-top: 1px solid rgba(72, 155, 232, 0.2);
}

.report-grid dt {
  color: rgba(131, 193, 235, 0.76);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.report-grid dd {
  color: #ffffff;
  font-size: 24px;
  text-align: right;
  text-shadow: 0 2px 0 rgba(0, 25, 60, 0.72);
}

.primary-button--retry {
  min-height: 68px;
  border: 2px solid #ff9b7d;
  border-radius: 18px;
  background: linear-gradient(180deg, #ff6548, #e73520 72%, #bd2415);
  box-shadow:
    0 6px 0 #8c170f,
    0 0 0 4px rgba(255, 71, 44, 0.14),
    0 16px 30px rgba(92, 13, 8, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.primary-button--retry .button-label {
  font-size: 18px;
  text-shadow: 0 2px 0 rgba(112, 17, 10, 0.72);
}

.report-secondary {
  gap: 9px;
  margin-top: 14px;
}

.secondary-button {
  min-height: 43px;
  border-color: rgba(77, 161, 234, 0.38);
  color: rgba(197, 226, 246, 0.82);
  background: rgba(9, 62, 119, 0.44);
}

@media (hover: hover) and (pointer: fine) {
  .primary-button--start:hover {
    filter: brightness(1.08) saturate(1.06);
    box-shadow:
      0 9px 0 #032e78,
      0 0 0 5px rgba(50, 174, 255, 0.24),
      0 22px 38px rgba(1, 37, 96, 0.44),
      inset 0 1px 0 rgba(255, 255, 255, 0.42);
  }
}

@media (max-height: 700px) {
  .menu-hero {
    top: 55px;
  }

  .title-prefix {
    font-size: 46px;
  }

  .title-main {
    font-size: 62px;
  }

  .lead {
    margin-top: 15px;
  }

  .primary-button--start {
    min-height: 60px;
  }

  .mission-brief {
    grid-template-columns: 36px 1fr;
  }

  .control-icon {
    width: 34px;
    height: 34px;
  }

  .best-line {
    min-height: 29px;
  }

  .report-panel {
    padding: 18px 18px 17px;
  }

  h2 {
    font-size: 39px;
  }

  .score-result {
    margin-block: 15px 11px;
  }

  .score-result strong {
    font-size: 58px;
  }

  .report-grid {
    margin-bottom: 13px;
  }

  .report-grid div {
    min-height: 39px;
  }

  .primary-button--retry {
    min-height: 57px;
  }
}

@media (max-width: 340px) {
  .title-prefix {
    font-size: 43px;
  }

  .title-main {
    font-size: 58px;
  }

  .primary-button--start .button-label,
  .primary-button--retry .button-label {
    font-size: 14px;
  }

  .report-grid dd {
    font-size: 20px;
  }
}

@media (min-width: 341px) and (min-height: 701px) {
  .title-prefix {
    font-size: clamp(68px, 19vw, 78px);
  }

  .title-main {
    font-size: clamp(84px, 25vw, 100px);
  }

  .menu-actions {
    padding-bottom: 10px;
  }
}
