:root {
  --ink: #111827;
  --panel: rgba(16, 20, 34, 0.82);
  --panel-strong: rgba(14, 18, 29, 0.94);
  --line: rgba(255, 255, 255, 0.16);
  --cyan: #1fd6ff;
  --amber: #ffbf3d;
  --rose: #ff4f87;
  --lime: #99f449;
  --violet: #8d6bff;
  --white: #f8fbff;
}

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

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #101827;
  color: var(--white);
  -webkit-user-select: none;
  user-select: none;
  font-family:
    "Trebuchet MS",
    "Segoe UI",
    system-ui,
    sans-serif;
}

button {
  font: inherit;
}

.game-shell {
  position: relative;
  width: 100vw;
  height: 100dvh;
  min-height: 520px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(22, 32, 49, 0.55), rgba(7, 13, 24, 0.5)),
    #152238;
  isolation: isolate;
}

#game {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  cursor: crosshair;
  touch-action: none;
}

.hud {
  position: absolute;
  z-index: 5;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: var(--panel);
  box-shadow:
    8px 8px 0 rgba(0, 0, 0, 0.22),
    inset 0 4px 0 rgba(255, 255, 255, 0.08),
    inset 0 -5px 0 rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
}

.hud-top {
  top: max(14px, env(safe-area-inset-top));
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 4px;
}

.brand-block {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.brand-block strong {
  display: block;
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-block span:not(.brand-mark) {
  display: block;
  margin-top: 4px;
  color: rgba(248, 251, 255, 0.72);
  font-size: 12px;
  white-space: nowrap;
}

.brand-block b,
.brand-block i {
  font-style: normal;
  font-weight: 900;
}

.brand-block b {
  color: var(--amber);
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 3px solid #172033;
  padding: 0;
  background:
    linear-gradient(90deg, transparent 42%, rgba(255, 255, 255, 0.72) 42% 58%, transparent 58%),
    linear-gradient(180deg, var(--cyan), var(--amber) 48%, var(--rose));
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.16),
    4px 4px 0 rgba(0, 0, 0, 0.26),
    0 0 22px rgba(31, 214, 255, 0.34);
  transform: rotate(45deg);
  image-rendering: pixelated;
}

.about-button {
  cursor: pointer;
}

.about-button:focus-visible {
  outline: 3px solid #fff3a7;
  outline-offset: 5px;
}

.about-button:active {
  transform: rotate(45deg) translateY(2px);
}

.creator-chip {
  display: grid;
  justify-items: center;
  min-width: 170px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 191, 61, 0.35);
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(255, 191, 61, 0.12), rgba(31, 214, 255, 0.12)),
    rgba(255, 255, 255, 0.06);
}

.creator-chip span {
  color: rgba(248, 251, 255, 0.62);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.creator-chip strong {
  margin-top: 2px;
  color: #fff3a7;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(72px, auto));
  align-items: center;
  gap: 8px;
}

.stat-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fbff;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.top-controls {
  display: flex;
  gap: 7px;
  flex: 0 0 auto;
}

.top-controls button {
  min-width: 64px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.08);
  color: #f8fbff;
  cursor: pointer;
  font-weight: 1000;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.22);
}

.top-controls button:active {
  transform: translateY(2px);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.22);
}

.score-card {
  top: 92px;
  left: max(14px, env(safe-area-inset-left));
  width: min(360px, calc(100vw - 28px));
  padding: 10px 12px 12px;
  border-radius: 4px;
}

.score-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #f8fbff;
  font-size: 12px;
  font-weight: 900;
}

.score-progress-row strong {
  color: #fff3a7;
  text-transform: uppercase;
}

.score-progress-track {
  height: 14px;
  margin-top: 8px;
  overflow: hidden;
  border: 2px solid #101827;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.score-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--rose), var(--cyan));
  box-shadow: 0 0 18px rgba(255, 191, 61, 0.34);
}

.pilot-score-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-top: 8px;
}

.pilot-score {
  min-width: 0;
  padding: 5px 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  text-align: center;
}

.pilot-score.is-active {
  border-color: rgba(255, 243, 167, 0.75);
  background:
    linear-gradient(135deg, rgba(255, 191, 61, 0.2), rgba(31, 214, 255, 0.12)),
    rgba(255, 255, 255, 0.07);
}

.pilot-score b,
.pilot-score small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pilot-score b {
  color: #f8fbff;
  font-size: 10px;
  line-height: 1;
}

.pilot-score small {
  margin-top: 3px;
  color: #fff3a7;
  font-size: 12px;
  font-weight: 1000;
  line-height: 1;
}

.hero-card {
  left: max(14px, env(safe-area-inset-left));
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 142px);
  display: flex;
  align-items: center;
  width: min(340px, calc(100vw - 28px));
  min-height: 86px;
  gap: 12px;
  padding: 12px;
  border-radius: 4px;
}

.hero-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border: 3px solid #18233a;
  background:
    linear-gradient(90deg, #2451ff 0 28%, #14d9ff 28% 55%, #ffce43 55% 72%, #f84f76 72%),
    #1fd6ff;
  box-shadow:
    inset 0 -7px 0 rgba(0, 0, 0, 0.22),
    4px 4px 0 rgba(0, 0, 0, 0.22);
}

.hero-avatar span {
  position: absolute;
  left: 17px;
  bottom: 8px;
  width: 22px;
  height: 28px;
  background: #f7c08b;
  box-shadow:
    -11px 18px 0 -8px #172033,
    11px 18px 0 -8px #172033,
    0 -9px 0 -2px #392319;
}

.hero-readout {
  min-width: 0;
  flex: 1 1 auto;
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #f8fbff;
  font-size: 13px;
}

.hero-row strong {
  font-size: 18px;
  line-height: 1;
}

.hero-row.small {
  margin-top: 7px;
  color: rgba(248, 251, 255, 0.72);
  font-size: 12px;
}

.hp-track {
  position: relative;
  height: 13px;
  margin-top: 8px;
  overflow: hidden;
  border: 2px solid #101827;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
}

.hp-track span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), #26e8b7, var(--cyan));
  box-shadow: 0 0 16px rgba(153, 244, 73, 0.34);
}

.joystick {
  position: absolute;
  left: max(28px, env(safe-area-inset-left));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 8;
  width: 124px;
  height: 124px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 0 28%, transparent 29%),
    rgba(9, 15, 29, 0.62);
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.05),
    0 18px 42px rgba(0, 0, 0, 0.34);
  touch-action: none;
}

#stick {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border: 3px solid #101827;
  border-radius: 4px;
  background:
    linear-gradient(135deg, var(--cyan), var(--violet) 58%, var(--rose));
  box-shadow:
    inset 0 -8px 0 rgba(0, 0, 0, 0.22),
    0 0 28px rgba(31, 214, 255, 0.25);
}

.action-pad {
  position: absolute;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 8;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.nado-button,
.skill-button,
.music-button {
  position: relative;
  display: grid;
  place-items: center;
  border: 0;
  color: #111827;
  font-weight: 1000;
  letter-spacing: 0;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  box-shadow:
    inset 0 -9px 0 rgba(0, 0, 0, 0.22),
    0 18px 38px rgba(0, 0, 0, 0.34);
}

.nado-button {
  width: 118px;
  height: 118px;
  border-radius: 6px;
  background:
    conic-gradient(from 35deg, #fff3a7, var(--amber), #ff6d4a, var(--rose), var(--cyan), #fff3a7);
  font-size: 20px;
}

.nado-button::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 4px solid rgba(17, 24, 39, 0.94);
  border-radius: inherit;
}

.nado-button::after {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: inherit;
  background: conic-gradient(rgba(17, 24, 39, 0.76) calc(var(--cooldown, 0) * 1%), transparent 0);
}

.nado-button span {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.nado-button b,
.nado-button small {
  display: block;
}

.nado-button b {
  font-size: 15px;
  line-height: 1;
}

.nado-button small {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 1000;
  line-height: 1;
}

.nado-button:active,
.skill-button:active,
.music-button:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 -5px 0 rgba(0, 0, 0, 0.22),
    0 10px 20px rgba(0, 0, 0, 0.28);
}

.nado-button[disabled],
.skill-button[disabled],
.music-button[disabled] {
  filter: grayscale(0.35) brightness(0.76);
  cursor: default;
}

.music-button {
  width: 68px;
  height: 68px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, #fff174, var(--amber) 40%, #ff5b48),
    var(--amber);
  font-size: 12px;
}

.music-button.is-on {
  background:
    linear-gradient(135deg, var(--cyan), var(--lime) 56%, #fff174),
    var(--cyan);
}

.skill-button {
  width: 74px;
  height: 74px;
  border-radius: 4px;
  background: linear-gradient(135deg, #e7ff5e, var(--lime), #25e0a9);
  font-size: 14px;
}

.toast {
  position: absolute;
  left: 50%;
  top: 96px;
  z-index: 9;
  max-width: min(480px, calc(100vw - 32px));
  transform: translateX(-50%);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-strong);
  color: #f8fbff;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

.pause-panel {
  position: absolute;
  inset: 0;
  z-index: 24;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 12, 21, 0.46);
  backdrop-filter: blur(3px);
}

.pause-box {
  width: min(440px, calc(100vw - 32px));
  border: 1px solid rgba(255, 191, 61, 0.35);
  border-radius: 4px;
  background: var(--panel-strong);
  padding: 18px;
  text-align: center;
  box-shadow:
    8px 8px 0 rgba(0, 0, 0, 0.28),
    0 26px 80px rgba(0, 0, 0, 0.34);
}

.pause-box > span {
  display: block;
  color: var(--amber);
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

.pause-box strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  line-height: 1.05;
}

.pause-box p {
  margin: 12px auto 16px;
  color: rgba(248, 251, 255, 0.74);
  line-height: 1.35;
}

.pause-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pause-actions button {
  min-width: 126px;
  min-height: 42px;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  color: #111827;
  cursor: pointer;
  font-weight: 1000;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.22);
}

.pause-actions button + button {
  background: linear-gradient(135deg, #f8fbff, #9fb2d3);
}

.about-panel {
  position: absolute;
  inset: 0;
  z-index: 28;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 12, 21, 0.54);
  backdrop-filter: blur(4px);
}

.about-box {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  border: 1px solid rgba(255, 191, 61, 0.38);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(31, 214, 255, 0.14), rgba(255, 79, 135, 0.12)),
    var(--panel-strong);
  padding: 20px;
  text-align: center;
  box-shadow:
    8px 8px 0 rgba(0, 0, 0, 0.28),
    0 26px 80px rgba(0, 0, 0, 0.36);
}

.about-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fbff;
  cursor: pointer;
  font-size: 22px;
  font-weight: 1000;
  line-height: 1;
}

.about-mark {
  display: block;
  width: 46px;
  height: 46px;
  margin: 2px auto 12px;
  border: 3px solid #172033;
  background:
    linear-gradient(90deg, transparent 42%, rgba(255, 255, 255, 0.72) 42% 58%, transparent 58%),
    linear-gradient(180deg, var(--cyan), var(--amber) 48%, var(--rose));
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.16),
    4px 4px 0 rgba(0, 0, 0, 0.26);
  transform: rotate(45deg);
}

.about-kicker {
  color: var(--amber);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.about-box > strong {
  display: block;
  margin-top: 7px;
  color: #f8fbff;
  font-size: 30px;
  line-height: 1.05;
}

.about-box p {
  width: min(460px, 100%);
  margin: 12px auto 16px;
  color: rgba(248, 251, 255, 0.76);
  line-height: 1.35;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  text-align: left;
}

.about-grid span {
  display: block;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
}

.about-grid b,
.about-grid small {
  display: block;
}

.about-grid b {
  color: #fff3a7;
  font-size: 14px;
}

.about-grid small {
  margin-top: 4px;
  color: rgba(248, 251, 255, 0.68);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.creator-intro {
  position: absolute;
  inset: 0;
  z-index: 16;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  pointer-events: none;
}

.creator-intro-box {
  width: min(780px, calc(100vw - 32px));
  border: 1px solid rgba(255, 191, 61, 0.35);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(31, 214, 255, 0.18), rgba(255, 79, 135, 0.14)),
    rgba(14, 18, 29, 0.92);
  padding: 18px;
  box-shadow:
    8px 8px 0 rgba(0, 0, 0, 0.28),
    0 28px 90px rgba(0, 0, 0, 0.34),
    inset 0 4px 0 rgba(255, 255, 255, 0.1);
  pointer-events: auto;
  text-align: center;
}

.creator-intro-box span {
  display: block;
  color: var(--amber);
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

.creator-intro-box strong {
  display: block;
  margin-top: 8px;
  color: #f8fbff;
  font-size: clamp(32px, 7vw, 54px);
  line-height: 1;
}

.creator-intro-box p {
  width: min(560px, 100%);
  margin: 12px auto 16px;
  color: rgba(248, 251, 255, 0.78);
  font-size: 15px;
  line-height: 1.35;
}

.team-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(620px, 100%);
  margin: 0 auto 12px;
}

.creator-intro-box .team-strip span {
  display: block;
  min-height: 54px;
  padding: 9px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  color: #f8fbff;
  text-transform: none;
}

.team-strip b,
.team-strip small {
  display: block;
}

.team-strip b {
  font-size: 15px;
  line-height: 1.1;
}

.team-strip small {
  margin-top: 4px;
  color: rgba(248, 251, 255, 0.66);
  font-size: 11px;
  font-weight: 800;
}

.arena-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 auto 12px;
  width: min(520px, 100%);
}

.arena-choice {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  background:
    linear-gradient(135deg, var(--arena-a, rgba(31, 214, 255, 0.24)), var(--arena-b, rgba(255, 79, 135, 0.18))),
    rgba(255, 255, 255, 0.06);
  color: #f8fbff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18);
}

.arena-choice.is-active {
  border-color: rgba(255, 243, 167, 0.92);
  color: #fff3a7;
  box-shadow:
    0 0 0 2px rgba(255, 191, 61, 0.22),
    inset 0 -4px 0 rgba(0, 0, 0, 0.18);
}

.difficulty-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 auto 12px;
  width: min(520px, 100%);
}

.difficulty-choice {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  color: #f8fbff;
  cursor: pointer;
  text-align: left;
  padding: 7px 8px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18);
}

.difficulty-choice.is-active {
  border-color: rgba(255, 243, 167, 0.92);
  color: #fff3a7;
  background:
    linear-gradient(135deg, rgba(255, 191, 61, 0.22), rgba(31, 214, 255, 0.14)),
    rgba(255, 255, 255, 0.08);
}

.difficulty-choice b,
.difficulty-choice small {
  display: block;
}

.difficulty-choice b {
  font-size: 13px;
  line-height: 1;
}

.difficulty-choice small {
  margin-top: 4px;
  color: rgba(248, 251, 255, 0.68);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.arsenal-title {
  margin: 0 auto 8px;
  color: #fff3a7;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.store-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: min(620px, 100%);
  min-height: 38px;
  margin: 0 auto 10px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 243, 167, 0.26);
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(255, 191, 61, 0.14), rgba(31, 214, 255, 0.1)),
    rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.16);
}

.store-balance span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: rgba(248, 251, 255, 0.76);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.store-balance b,
.store-balance strong,
.store-balance small,
.store-balance em {
  display: inline;
}

.store-balance strong {
  color: #fff3a7;
  font-size: 20px;
  line-height: 1;
}

.store-balance em {
  color: var(--lime);
  font-size: 11px;
  font-style: normal;
  font-weight: 1000;
  text-align: right;
  text-transform: uppercase;
}

.store-balance .capacity-buy {
  min-width: 138px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  color: #101827;
  cursor: pointer;
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2);
}

.store-balance .capacity-buy:disabled {
  cursor: default;
  opacity: 0.55;
  filter: saturate(0.55);
}

.nado-pilot-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 auto 10px;
  width: min(620px, 100%);
}

.creator-intro-box .nado-pilot {
  min-width: 0;
  min-height: 52px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--pilot-a) 28%, transparent), color-mix(in srgb, var(--pilot-b) 22%, transparent)),
    rgba(255, 255, 255, 0.07);
  color: #f8fbff;
  text-align: left;
  box-shadow:
    inset 0 -4px 0 rgba(0, 0, 0, 0.18),
    3px 3px 0 rgba(0, 0, 0, 0.14);
}

.creator-intro-box .nado-pilot.is-active {
  border-color: rgba(255, 243, 167, 0.95);
  color: #fff3a7;
  box-shadow:
    0 0 0 2px rgba(255, 191, 61, 0.24),
    inset 0 -4px 0 rgba(0, 0, 0, 0.18),
    3px 3px 0 rgba(0, 0, 0, 0.14);
}

.nado-pilot b,
.nado-pilot small,
.nado-pilot span {
  display: block;
}

.nado-pilot b {
  font-size: 14px;
  line-height: 1;
}

.nado-pilot small {
  margin-top: 3px;
  color: rgba(248, 251, 255, 0.68);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.nado-pilot span {
  margin-top: 4px;
  color: var(--pilot-b);
  font-size: 11px;
  font-weight: 1000;
}

.nado-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 auto 14px;
}

.creator-intro-box .nado-choice {
  min-width: 0;
  min-height: 132px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--nado-a) 34%, transparent), color-mix(in srgb, var(--nado-b) 28%, transparent)),
    rgba(255, 255, 255, 0.07);
  color: #f8fbff;
  text-align: left;
  box-shadow:
    inset 0 -5px 0 rgba(0, 0, 0, 0.18),
    4px 4px 0 rgba(0, 0, 0, 0.18);
}

.creator-intro-box .nado-choice.is-active {
  border-color: rgba(255, 243, 167, 0.95);
  box-shadow:
    0 0 0 2px rgba(255, 191, 61, 0.28),
    inset 0 -5px 0 rgba(0, 0, 0, 0.18),
    4px 4px 0 rgba(0, 0, 0, 0.18);
}

.creator-intro-box .nado-choice.is-locked {
  opacity: 0.72;
  filter: saturate(0.75);
}

.creator-intro-box .nado-choice.is-locked.can-buy {
  opacity: 1;
  border-color: rgba(153, 244, 73, 0.6);
  filter: none;
}

.nado-choice b,
.nado-choice small,
.nado-choice span {
  display: block;
}

.nado-choice b {
  color: #f8fbff;
  font-size: 14px;
  line-height: 1.1;
}

.nado-choice small {
  margin: 4px 0 7px;
  color: rgba(248, 251, 255, 0.68);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.nado-choice .nado-tag {
  display: inline-grid;
  min-height: 18px;
  margin-bottom: 6px;
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.18);
  color: var(--nado-b);
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
}

.nado-choice .nado-price {
  display: inline-grid;
  float: right;
  min-height: 18px;
  margin-left: 5px;
  margin-bottom: 6px;
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.24);
  color: #fff3a7;
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
}

.nado-choice.can-buy .nado-price {
  color: var(--lime);
}

.nado-stats {
  clear: both;
  display: grid;
  gap: 4px;
}

.nado-stat {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 5px;
  color: rgba(248, 251, 255, 0.76);
  font-size: 10px;
  font-weight: 900;
}

.nado-meter {
  height: 6px;
  background: rgba(0, 0, 0, 0.26);
}

.nado-meter i {
  display: block;
  width: calc(var(--level) * 20%);
  height: 100%;
  background: linear-gradient(90deg, var(--nado-a), var(--nado-b));
}

.records-panel {
  width: min(620px, 100%);
  margin: 0 auto 12px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14);
}

.records-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.records-head b,
.records-head small {
  display: block;
}

.records-head b {
  color: #fff3a7;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.records-head small {
  color: rgba(248, 251, 255, 0.62);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.records-list {
  display: grid;
  gap: 5px;
}

.record-row {
  display: grid;
  grid-template-columns: 24px minmax(112px, 1fr) minmax(118px, 1fr) 42px;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.16);
}

.record-row.is-best {
  border-color: rgba(255, 243, 167, 0.54);
  background:
    linear-gradient(135deg, rgba(255, 191, 61, 0.16), rgba(31, 214, 255, 0.1)),
    rgba(0, 0, 0, 0.16);
}

.record-place {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.2);
  color: #fff3a7;
  font-size: 12px;
  font-weight: 1000;
}

.record-main b,
.record-main small {
  display: block;
}

.record-main b {
  color: #f8fbff;
  font-size: 16px;
  line-height: 1;
}

.record-main small,
.record-meta,
.record-bonus,
.record-empty {
  color: rgba(248, 251, 255, 0.68);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
}

.record-bonus {
  color: var(--lime);
  text-align: right;
}

.record-empty {
  padding: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  text-align: center;
}

.creator-intro-box button {
  min-width: 128px;
  min-height: 44px;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  color: #111827;
  cursor: pointer;
  font-weight: 1000;
  box-shadow:
    inset 0 -5px 0 rgba(0, 0, 0, 0.22),
    0 14px 26px rgba(0, 0, 0, 0.28);
}

.creator-intro-box button:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.22),
    0 8px 16px rgba(0, 0, 0, 0.24);
}

.upgrade-panel {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 12, 21, 0.42);
  backdrop-filter: blur(4px);
}

.upgrade-box {
  width: min(820px, 100%);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-strong);
  padding: 18px;
  box-shadow:
    8px 8px 0 rgba(0, 0, 0, 0.28),
    0 26px 80px rgba(0, 0, 0, 0.34);
}

.upgrade-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.upgrade-head span {
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.upgrade-head strong {
  color: #f8fbff;
  font-size: clamp(22px, 4vw, 34px);
}

.upgrade-summary {
  margin: -4px 0 14px;
  color: rgba(248, 251, 255, 0.78);
  font-size: 15px;
  line-height: 1.35;
}

.upgrade-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.upgrade-choice {
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    #182237;
  color: #f8fbff;
  text-align: left;
  cursor: pointer;
  padding: 14px;
}

.upgrade-choice strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.12;
}

.upgrade-choice span {
  color: rgba(248, 251, 255, 0.7);
  font-size: 13px;
  line-height: 1.35;
}

.upgrade-choice b {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 3px;
  color: #101827;
  background: var(--accent, var(--cyan));
  font-size: 20px;
}

.upgrade-choice:hover,
.upgrade-choice:focus-visible {
  outline: 2px solid var(--accent, var(--cyan));
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

@media (pointer: coarse) and (min-width: 721px) {
  .joystick {
    width: 142px;
    height: 142px;
  }

  #stick {
    width: 62px;
    height: 62px;
    margin: -31px 0 0 -31px;
  }

  .action-pad {
    right: max(30px, env(safe-area-inset-right));
    bottom: max(28px, env(safe-area-inset-bottom));
    gap: 16px;
  }

  .nado-button {
    width: 136px;
    height: 136px;
  }

  .nado-button b {
    font-size: 16px;
  }

  .nado-button small {
    font-size: 22px;
  }

  .skill-button {
    width: 82px;
    height: 82px;
    font-size: 14px;
  }

  .music-button {
    width: 74px;
    height: 74px;
    font-size: 12px;
  }
}

@media (max-width: 720px) {
  .game-shell {
    min-height: 500px;
  }

  .hud-top {
    align-items: stretch;
    min-height: 0;
    padding: 9px;
  }

  .brand-block strong {
    font-size: 15px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .stat-strip {
    grid-template-columns: repeat(3, minmax(68px, 1fr));
  }

  .creator-chip {
    display: none;
  }

  .stat-strip span {
    min-height: 28px;
    padding: 0 8px;
    font-size: 11px;
  }

  .hero-card {
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 126px);
    width: min(278px, calc(100vw - 28px));
    min-height: 76px;
    padding: 10px;
  }

  .hero-avatar {
    width: 48px;
    height: 48px;
  }

  .hero-row strong {
    font-size: 16px;
  }

  .joystick {
    width: 112px;
    height: 112px;
  }

  #stick {
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
  }

  .action-pad {
    gap: 10px;
  }

  .nado-button {
    width: 104px;
    height: 104px;
    font-size: 18px;
  }

  .skill-button {
    width: 64px;
    height: 64px;
    font-size: 12px;
  }

  .music-button {
    width: 58px;
    height: 58px;
    font-size: 10px;
  }

  .upgrade-choices {
    grid-template-columns: 1fr;
  }

  .upgrade-choice {
    min-height: 114px;
  }

  .creator-intro-box {
    padding: 16px;
  }

  .creator-intro-box p {
    font-size: 13px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .arena-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .difficulty-choices {
    grid-template-columns: 1fr;
  }

  .store-balance {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .store-balance em {
    text-align: left;
  }

  .store-balance .capacity-buy {
    width: 100%;
  }

  .nado-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nado-pilot-choices {
    grid-template-columns: 1fr;
  }

  .creator-intro-box .nado-choice {
    min-height: 116px;
  }

  .record-row {
    grid-template-columns: 24px minmax(90px, 1fr) 40px;
  }

  .record-meta {
    display: none;
  }

  .team-strip {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .creator-intro-box .team-strip span {
    min-height: 42px;
    padding: 7px 8px;
  }
}

@media (max-width: 460px) {
  .hud-top {
    left: 10px;
    right: 10px;
    gap: 8px;
  }

  .brand-block {
    gap: 7px;
  }

  .brand-block span:not(.brand-mark) {
    font-size: 11px;
  }

  .stat-strip {
    grid-template-columns: repeat(2, minmax(68px, 1fr));
    gap: 6px;
  }

  .hero-card {
    display: none;
  }
}
