:root {
  color-scheme: dark;
  --bg: #070810;
  --panel: #0d101b;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f3f5ff;
  --muted: #8f97ad;
  --cyan: #62f6ff;
  --yellow: #ffd166;
  --red: #ff4d6d;
  --purple: #a06bff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(98, 246, 255, 0.08), transparent 28%),
    radial-gradient(circle at 85% 80%, rgba(160, 107, 255, 0.08), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

button {
  font: inherit;
}

.game-shell {
  width: min(96vw, 1440px);
}

.game-header,
.game-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.game-header {
  padding: 0 4px 16px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 6px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  transition: 160ms ease;
}

.icon-button:hover {
  border-color: rgba(98, 246, 255, 0.5);
  color: var(--cyan);
}

.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.icon-button:disabled:hover {
  border-color: var(--line);
  color: var(--muted);
}

.game-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(98, 246, 255, 0.2);
  border-radius: 8px;
  background: #090b13;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.025) inset;
}

.game-frame::after {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.018),
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 4px
  );
  content: "";
  mix-blend-mode: screen;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.hud {
  position: absolute;
  inset: 0 0 auto;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 20px 24px;
  pointer-events: none;
}

.hud-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-group strong {
  font-size: 1.7rem;
  font-style: italic;
  line-height: 1;
}

.hud-label {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.pilot-name {
  margin-bottom: 5px;
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.active-powerups {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 290px;
  margin-top: 10px;
}

.powerup-chip {
  border: 1px solid rgba(160, 107, 255, 0.45);
  border-radius: 3px;
  padding: 4px 6px;
  background: rgba(160, 107, 255, 0.1);
  color: #d8c4ff;
  font-size: 0.53rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hud-center {
  align-items: center;
  gap: 7px;
}

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

.combo-display {
  color: var(--yellow);
  font-size: 0.65rem;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-shadow: 0 0 12px rgba(255, 209, 102, 0.6);
}

.objective-display {
  max-width: 260px;
  margin-top: 10px;
  border-right: 2px solid var(--cyan);
  padding-right: 8px;
  color: #b9c2d8;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-align: right;
  text-transform: uppercase;
}

.objective-display.complete {
  border-color: var(--yellow);
  color: var(--yellow);
}

.objective-display.failed {
  border-color: var(--red);
  color: #ff8fab;
}

.wave-label {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.bullet-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 106px;
  border: 1px solid currentColor;
  border-radius: 100px;
  padding: 6px 10px;
  color: var(--cyan);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  transition: color 180ms ease;
}

.bullet-status.spent {
  color: var(--yellow);
}

.bullet-icon {
  width: 13px;
  height: 5px;
  border-radius: 1px 5px 5px 1px;
  background: currentColor;
  box-shadow: 0 0 9px currentColor;
}

.health-pips {
  display: flex;
  gap: 6px;
  padding-top: 6px;
}

.health-pip {
  width: 22px;
  height: 7px;
  transform: skewX(-18deg);
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 77, 109, 0.45);
}

.health-pip.empty {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.boss-bar {
  position: absolute;
  z-index: 6;
  right: 25%;
  bottom: 30px;
  left: 25%;
  text-align: center;
  pointer-events: none;
}

.boss-bar span {
  display: block;
  margin-bottom: 7px;
  color: #f7b8ff;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.boss-track {
  height: 7px;
  overflow: hidden;
  transform: skewX(-18deg);
  background: rgba(255, 255, 255, 0.12);
}

.boss-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), #ff6bd6);
  box-shadow: 0 0 14px rgba(160, 107, 255, 0.8);
  transition: width 120ms linear;
}

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

.tutorial-prompt {
  position: absolute;
  z-index: 7;
  bottom: 70px;
  left: 50%;
  border: 1px solid rgba(98, 246, 255, 0.5);
  border-radius: 4px;
  padding: 10px 16px;
  transform: translateX(-50%);
  background: rgba(7, 10, 18, 0.88);
  color: white;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  pointer-events: none;
  text-transform: uppercase;
}

.game-message {
  animation: message-in 1.35s ease forwards;
  color: white;
  font-size: clamp(1.2rem, 4vw, 3rem);
  font-style: italic;
  font-weight: 1000;
  letter-spacing: -0.03em;
  text-align: center;
  text-shadow: 0 0 24px currentColor;
  text-transform: uppercase;
}

.game-message small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.27em;
  font-style: normal;
  letter-spacing: 0.18em;
}

@keyframes message-in {
  0% { opacity: 0; transform: scale(0.75); }
  18% { opacity: 1; transform: scale(1.05); }
  70% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.12); }
}

.screen-panel {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle, rgba(13, 16, 27, 0.72), rgba(7, 8, 16, 0.96)),
    rgba(7, 8, 16, 0.86);
  backdrop-filter: blur(6px);
}

.panel-card {
  width: min(600px, 92%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 48px);
  background: linear-gradient(145deg, rgba(18, 22, 37, 0.92), rgba(10, 12, 21, 0.92));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.panel-card.compact {
  width: min(400px, 90%);
}

.start-panel {
  display: grid;
  grid-template-columns: minmax(270px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(20px, 3vw, 34px);
  width: min(1180px, 96%);
  max-height: calc(100% - 40px);
  overflow: auto;
  padding: clamp(22px, 3.2vw, 34px);
  text-align: left;
}

.start-panel::-webkit-scrollbar {
  width: 8px;
}

.start-panel::-webkit-scrollbar-thumb {
  border-radius: 100px;
  background: rgba(98, 246, 255, 0.28);
}

.start-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.start-panel .panel-copy {
  margin: 0 0 20px;
}

.start-panel .username-field {
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
}

.start-panel .controls-grid {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 22px;
}

.start-panel .primary-button {
  align-self: flex-start;
}

.start-panel .small-note {
  margin-left: 4px;
}

.landing-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  align-content: start;
  min-width: 0;
}

.guide-block {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.guide-block.wide {
  grid-column: 1 / -1;
}

.guide-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.guide-index {
  min-width: 28px;
  border: 1px solid rgba(98, 246, 255, 0.38);
  border-radius: 4px;
  padding: 5px 6px;
  color: var(--cyan);
  font-size: 0.56rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-align: center;
}

.guide-block h3 {
  margin: 0;
  color: #f6f8ff;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.rule-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-list li {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 10px;
  color: #aab3c7;
  font-size: 0.74rem;
  line-height: 1.42;
}

.rule-list strong,
.legend-item strong,
.powerup-legend strong {
  display: block;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.legend-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 9px;
  align-items: center;
  min-width: 0;
  color: #9da7bd;
  font-size: 0.7rem;
  line-height: 1.35;
}

.legend-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
}

.legend-icon::before,
.legend-icon::after {
  position: absolute;
  content: "";
}

.player-icon::before {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 18px solid var(--cyan);
  filter: drop-shadow(0 0 8px rgba(98, 246, 255, 0.75));
}

.loaded-icon::before {
  width: 18px;
  height: 6px;
  border-radius: 1px 6px 6px 1px;
  background: var(--cyan);
  box-shadow: 0 0 11px rgba(98, 246, 255, 0.85);
}

.grounded-icon::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 13px rgba(255, 209, 102, 0.85);
}

.grounded-icon::after {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 209, 102, 0.55);
  border-radius: 50%;
}

.chaser-icon::before {
  width: 15px;
  height: 15px;
  transform: rotate(45deg);
  background: var(--red);
  box-shadow: 0 0 11px rgba(255, 77, 109, 0.75);
}

.dasher-icon::before {
  width: 18px;
  height: 18px;
  clip-path: polygon(50% 0, 100% 86%, 0 86%);
  background: var(--yellow);
  box-shadow: 0 0 11px rgba(255, 209, 102, 0.65);
}

.tank-icon::before {
  width: 18px;
  height: 18px;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
  background: var(--purple);
  box-shadow: 0 0 11px rgba(160, 107, 255, 0.7);
}

.powerup-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 12px;
}

.powerup-legend div {
  min-width: 0;
  border-left: 1px solid rgba(160, 107, 255, 0.35);
  padding-left: 10px;
  color: #9da7bd;
  font-size: 0.68rem;
  line-height: 1.38;
}

.powerup-mark {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  min-height: 22px;
  margin-bottom: 8px;
  border: 1px solid rgba(98, 246, 255, 0.45);
  border-radius: 4px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
}

.powerup-mark.rare {
  border-color: rgba(160, 107, 255, 0.55);
  color: #d8c4ff;
}

.powerup-mark.unstable {
  border-color: rgba(255, 77, 109, 0.65);
  color: var(--red);
}

.tips-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tips-strip span {
  border-left: 2px solid rgba(98, 246, 255, 0.44);
  padding-left: 10px;
  color: #b7bdd0;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.4;
}

.panel-card h2 {
  margin: 0 0 15px;
  font-size: clamp(2rem, 5vw, 4rem);
  font-style: italic;
  letter-spacing: -0.055em;
  line-height: 0.95;
  text-transform: uppercase;
}

.start-panel h2 {
  max-width: 390px;
  font-size: clamp(2rem, 4vw, 3.55rem);
}

.panel-copy {
  max-width: 510px;
  margin: 0 auto 26px;
  color: #b7bdd0;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  line-height: 1.6;
}

.username-field {
  display: block;
  max-width: 340px;
  margin: 0 auto 22px;
  text-align: left;
}

.username-field span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.username-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.username-field input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(98, 246, 255, 0.12);
}

.powerup-panel {
  width: min(860px, 96%);
}

.powerup-panel .panel-copy {
  margin-bottom: 0;
}

.mission-briefing {
  display: grid;
  gap: 13px;
  max-width: 760px;
  margin: 19px auto 0;
  border: 1px solid rgba(98, 246, 255, 0.24);
  border-left: 3px solid var(--cyan);
  border-radius: 6px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(98, 246, 255, 0.08), rgba(255, 255, 255, 0.025));
  text-align: left;
}

.mission-briefing.training {
  border-color: rgba(255, 209, 102, 0.28);
  border-left-color: var(--yellow);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.08), rgba(255, 255, 255, 0.025));
}

.mission-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 1000;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#missionReward {
  color: var(--yellow);
  text-shadow: 0 0 12px rgba(255, 209, 102, 0.45);
}

.mission-main {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
}

.mission-symbol {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(98, 246, 255, 0.48);
  border-radius: 5px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  box-shadow: 0 0 18px rgba(98, 246, 255, 0.12) inset;
}

.mission-briefing.training .mission-symbol {
  border-color: rgba(255, 209, 102, 0.5);
  color: var(--yellow);
}

.mission-main strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mission-main p,
.mission-tip {
  margin: 0;
  color: #aeb7cb;
  font-size: 0.78rem;
  line-height: 1.45;
}

.mission-tip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 11px;
  color: #d8c4ff;
  font-weight: 800;
}

.powerup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 25px;
}

.powerup-card {
  min-height: 190px;
  border: 1px solid rgba(160, 107, 255, 0.35);
  border-radius: 6px;
  padding: 23px 18px;
  background: linear-gradient(145deg, rgba(160, 107, 255, 0.1), rgba(255, 255, 255, 0.025));
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: 160ms ease;
}

.powerup-card.rare {
  border-color: rgba(98, 246, 255, 0.6);
  background: linear-gradient(145deg, rgba(98, 246, 255, 0.12), rgba(255, 255, 255, 0.025));
}

.powerup-card.unstable {
  border-color: rgba(255, 77, 109, 0.65);
  background: linear-gradient(145deg, rgba(255, 77, 109, 0.14), rgba(255, 209, 102, 0.04));
}

.rarity-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.powerup-card.rare .rarity-label {
  color: var(--cyan);
}

.powerup-card.unstable .rarity-label {
  color: var(--red);
}

.powerup-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.powerup-card .powerup-symbol {
  display: block;
  margin-bottom: 20px;
  color: var(--cyan);
  font-size: 1.5rem;
  font-weight: 1000;
}

.powerup-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.powerup-card small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.loadout-note,
.final-player-name {
  margin: 18px 0 0;
  color: #c9b7f2;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.controls-grid,
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 28px;
}

.controls-grid div,
.results-grid div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 13px 8px;
  background: rgba(255, 255, 255, 0.025);
}

kbd {
  color: var(--cyan);
  font-family: inherit;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.controls-grid span,
.results-grid span {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
}

.results-grid {
  grid-template-columns: repeat(3, 1fr);
}

.results-grid strong {
  color: var(--cyan);
  font-size: 1.5rem;
}

.leaderboard {
  max-width: 420px;
  margin: 0 auto 22px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}

.leaderboard-title {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  padding: 4px 0;
  color: #c9cfe0;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: left;
}

.leaderboard-row span:last-child {
  color: var(--cyan);
}

.primary-button {
  min-width: 210px;
  border: 0;
  border-radius: 4px;
  padding: 14px 25px;
  transform: skewX(-8deg);
  background: var(--cyan);
  box-shadow: 0 0 25px rgba(98, 246, 255, 0.22);
  color: #071014;
  cursor: pointer;
  font-weight: 1000;
  letter-spacing: 0.14em;
  transition: 160ms ease;
}

.primary-button:hover {
  transform: skewX(-8deg) translateY(-2px);
  background: white;
  box-shadow: 0 0 30px rgba(98, 246, 255, 0.55);
}

.small-note {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.game-footer {
  padding: 12px 4px 0;
  color: #51586c;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .start-panel {
    grid-template-columns: 1fr;
    width: min(760px, 96%);
  }

  .start-panel h2 {
    max-width: none;
  }

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

@media (max-width: 860px) {
  .landing-guide,
  .legend-grid,
  .tips-strip {
    grid-template-columns: 1fr;
  }

  .guide-block.wide {
    grid-column: auto;
  }

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

@media (max-width: 720px) {
  body {
    overflow: auto;
  }

  .game-shell {
    width: min(96vw, 680px);
    padding: 12px 0;
  }

  .game-header {
    align-items: center;
  }

  .game-frame {
    min-height: min(820px, calc(100vh - 96px));
    aspect-ratio: auto;
  }

  .screen-panel {
    align-items: start;
    padding: 12px;
  }

  .start-panel {
    width: 100%;
    max-height: 100%;
    gap: 20px;
    padding: 18px;
  }

  .start-panel h2 {
    font-size: 2rem;
  }

  .start-panel .panel-copy {
    display: block;
    font-size: 0.78rem;
  }

  .eyebrow,
  .game-footer {
    display: none;
  }

  .header-actions .icon-button:first-child {
    display: none;
  }

  .controls-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .powerup-card {
    min-height: auto;
  }

  .powerup-panel {
    max-height: calc(100% - 24px);
    overflow: auto;
  }

  .panel-copy {
    display: none;
  }

  .powerup-legend {
    grid-template-columns: 1fr;
  }

  .rule-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .panel-card {
    padding: 20px;
  }

  .start-panel {
    padding: 18px;
  }
}
