:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --ui-bg: rgba(7, 10, 13, 0.9);
  --ui-bg-soft: rgba(22, 31, 35, 0.78);
  --ui-border: rgba(126, 226, 170, 0.42);
  --ui-border-cold: rgba(202, 227, 255, 0.26);
  --ui-green: #7ee2aa;
  --ui-amber: #f8c471;
  --ui-red: #f25f4c;
  --ui-text: #f7fbff;
  --ui-muted: #9fb0bf;
  background: #070707;
  color: #f7fbff;
}

* {
  box-sizing: border-box;
}

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

body {
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 24%, rgba(126, 38, 28, 0.24), transparent 34%),
    radial-gradient(circle at 18% 70%, rgba(126, 226, 170, 0.08), transparent 26%),
    linear-gradient(180deg, #17080d 0%, #070707 100%);
}

.app-shell {
  position: relative;
  width: min(100vw, 1280px);
  height: min(100vh, 720px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #080706;
  border: 1px solid rgba(198, 80, 48, 0.28);
}

.game-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.pause-toggle-button,
.sound-toggle-button {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 88px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(202, 227, 255, 0.34);
  color: #dbeafe;
  background: rgba(9, 13, 22, 0.86);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.pause-toggle-button {
  top: 18px;
  right: 250px;
}

.sound-toggle-button {
  top: 18px;
  left: 52%;
  min-width: 138px;
}

.pause-toggle-button[hidden],
.sound-toggle-button[hidden] {
  display: none;
}

.pause-toggle-button:hover,
.pause-toggle-button:focus-visible,
.sound-toggle-button:hover,
.sound-toggle-button:focus-visible {
  border-color: rgba(126, 226, 170, 0.82);
  color: #f7fbff;
  background: rgba(31, 42, 53, 0.92);
}

.pause-toggle-button:focus-visible,
.sound-toggle-button:focus-visible {
  outline: 3px solid rgba(219, 234, 254, 0.92);
  outline-offset: 3px;
}

.pause-toggle-button .control-code,
.sound-toggle-button .control-code {
  color: #7ee2aa;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.sound-toggle-button[aria-pressed="false"] .control-code {
  color: #f8c471;
}

.pause-toggle-button kbd,
.sound-toggle-button kbd {
  padding: 2px 5px;
  border: 1px solid rgba(202, 227, 255, 0.28);
  color: #f8c471;
  background: rgba(216, 234, 255, 0.08);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 900;
}

.screen-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  pointer-events: none;
}

.screen-overlay.is-interactive {
  pointer-events: auto;
}

.screen-overlay--intro {
  z-index: 3;
  place-items: stretch;
  padding: 0;
  background: #030304;
}

.intro-panel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #030304;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.intro-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(2, 3, 5, 0.04) 0%, transparent 44%, rgba(2, 3, 5, 0.72) 100%),
    radial-gradient(circle at 50% 24%, transparent 0 42%, rgba(0, 0, 0, 0.22) 78%);
  pointer-events: none;
}

.intro-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-terminal {
  position: absolute;
  right: 32px;
  bottom: 32px;
  left: 32px;
  z-index: 2;
  min-height: 134px;
  padding: 18px 20px;
  border: 2px solid rgba(126, 226, 170, 0.35);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, rgba(6, 10, 13, 0.9), rgba(3, 5, 8, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(6, 8, 10, 0.9),
    0 12px 30px rgba(0, 0, 0, 0.44);
}

.intro-text {
  max-width: 94ch;
  margin: 0;
  color: #dbeafe;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
}

.intro-cursor {
  display: inline-block;
  width: 9px;
  height: 18px;
  margin-top: 8px;
  background: var(--ui-green);
  box-shadow: 0 0 10px rgba(126, 226, 170, 0.72);
  animation: intro-cursor-blink 0.86s steps(1) infinite;
}

.intro-advance-button {
  position: absolute;
  top: 32px;
  right: 32px;
  z-index: 4;
}

.intro-panel--title {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 46%, rgba(126, 226, 170, 0.1), transparent 30%),
    #000;
}

.intro-panel--title::after {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 6px),
    radial-gradient(circle at 50% 50%, transparent 0 26%, rgba(0, 0, 0, 0.45) 72%);
}

.intro-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #f7fbff;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 7rem;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.26),
    0 0 34px rgba(126, 226, 170, 0.2);
}

.intro-panel--outro-final {
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px 32px;
}

.intro-panel--outro-final::after {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 6px),
    radial-gradient(circle at 50% 34%, transparent 0 26%, rgba(0, 0, 0, 0.54) 72%);
}

.outro-final-title {
  max-width: min(980px, 100%);
  font-size: clamp(2.6rem, 7.8vw, 5.4rem);
  line-height: 0.92;
}

.intro-panel--outro-final .end-panel {
  width: min(980px, 100%);
  max-height: min(70vh, 540px);
  padding: 20px;
}

.intro-panel--outro-final .status-line {
  margin-bottom: 10px;
}

.intro-panel--outro-final .result-stats {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.intro-panel--outro-final .result-stats div {
  padding: 10px;
}

@keyframes intro-cursor-blink {
  50% {
    opacity: 0;
  }
}

.placeholder-panel {
  width: min(560px, 100%);
  padding: 24px;
  border: 1px solid rgba(202, 227, 255, 0.28);
  background: rgba(9, 13, 22, 0.78);
  backdrop-filter: blur(8px);
}

.result-panel {
  width: min(580px, 100%);
  max-height: calc(100vh - 64px);
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(202, 227, 255, 0.34);
  background: rgba(9, 13, 22, 0.86);
  backdrop-filter: blur(8px);
}

.upgrade-panel,
.end-panel,
.pause-panel {
  width: min(900px, 100%);
}

.difficulty-panel {
  width: min(760px, 100%);
}

.difficulty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.difficulty-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 148px;
  padding: 18px;
  border: 2px solid rgba(126, 226, 170, 0.34);
  color: var(--ui-text);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, rgba(36, 43, 45, 0.96), rgba(14, 18, 22, 0.96));
  font: inherit;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.difficulty-card:hover,
.difficulty-card:focus-visible {
  border-color: var(--ui-amber);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, rgba(50, 58, 58, 0.98), rgba(18, 24, 29, 0.98));
}

.difficulty-card:focus-visible {
  outline: 3px solid rgba(219, 234, 254, 0.92);
  outline-offset: 3px;
}

.difficulty-card__name {
  color: var(--ui-green);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 1.35rem;
  font-weight: 900;
}

.difficulty-card__description {
  color: #b6c4cf;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
  text-transform: none;
}

.result-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.result-panel p {
  margin: 0;
  color: #b9c8d8;
  font-size: 1rem;
  line-height: 1.6;
}

.result-panel .menu-controls {
  margin-top: 12px;
  color: #dbeafe;
  font-weight: 700;
}

.defeat-markers {
  display: flex;
  gap: 12px;
  margin: 16px 0 8px;
  color: var(--ui-red);
  font-size: 1.7rem;
  line-height: 1;
  text-shadow:
    0 0 10px rgba(242, 95, 76, 0.5),
    0 0 24px rgba(126, 38, 28, 0.36);
}

.result-panel .defeat-line {
  color: #f0a090;
  font-weight: 800;
  text-transform: uppercase;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.result-stats--wide {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.result-stats div {
  padding: 12px;
  border: 1px solid rgba(202, 227, 255, 0.2);
  background: rgba(216, 234, 255, 0.06);
}

.result-stats dt {
  margin: 0 0 4px;
  color: #8fa4b8;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.result-stats dd {
  margin: 0;
  color: #f7fbff;
  font-size: 1.35rem;
  font-weight: 800;
}

.primary-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(126, 226, 170, 0.72);
  color: #07100c;
  background: #7ee2aa;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.secondary-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(202, 227, 255, 0.38);
  color: #dbeafe;
  background: rgba(31, 42, 53, 0.88);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: rgba(248, 196, 113, 0.78);
  color: #f7fbff;
}

.secondary-button:focus-visible {
  outline: 3px solid rgba(219, 234, 254, 0.92);
  outline-offset: 3px;
}

.pause-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.primary-button:focus-visible {
  outline: 3px solid rgba(219, 234, 254, 0.92);
  outline-offset: 3px;
}

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

.upgrade-card {
  min-height: 168px;
  padding: 16px;
  border: 1px solid rgba(248, 196, 113, 0.42);
  color: #f7fbff;
  background: rgba(31, 42, 53, 0.88);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.upgrade-card:hover,
.upgrade-card:focus-visible {
  border-color: rgba(248, 196, 113, 0.9);
  background: rgba(49, 61, 72, 0.94);
}

.upgrade-card:focus-visible {
  outline: 3px solid rgba(219, 234, 254, 0.92);
  outline-offset: 3px;
}

.upgrade-card strong {
  display: block;
  margin-bottom: 10px;
  color: #f7fbff;
  font-size: 1.1rem;
}

.upgrade-card span:last-child {
  display: block;
  color: #b9c8d8;
  font-size: 0.92rem;
  line-height: 1.45;
}

.selected-upgrades,
.destroyed-breakdown {
  margin-top: 18px;
}

.selected-upgrades h2,
.destroyed-breakdown h2 {
  margin: 0 0 10px;
  color: #dbeafe;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.upgrade-list,
.destroyed-breakdown ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.upgrade-list li {
  padding: 7px 10px;
  border: 1px solid rgba(126, 226, 170, 0.32);
  color: #dbeafe;
  background: rgba(126, 226, 170, 0.08);
  font-size: 0.86rem;
  font-weight: 700;
}

.destroyed-breakdown ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.destroyed-breakdown li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(202, 227, 255, 0.18);
  color: #b9c8d8;
  background: rgba(216, 234, 255, 0.05);
}

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

.enemy-stat__sprite {
  flex: 0 0 auto;
  width: 48px;
  height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 6px rgba(126, 226, 170, 0.14));
}

.enemy-stat span:last-child {
  min-width: 0;
}

.destroyed-breakdown strong {
  color: #f7fbff;
}

.empty-list,
.next-level-note {
  margin-top: 0;
  color: #8fa4b8;
  font-size: 0.92rem;
}

.next-level-note {
  margin-bottom: 0;
  color: #f8c471;
  font-weight: 800;
}

.placeholder-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.placeholder-panel p {
  margin: 0;
  max-width: 44ch;
  color: #b9c8d8;
  font-size: 1rem;
  line-height: 1.6;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #7ee2aa;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-line::before {
  width: 8px;
  height: 8px;
  content: "";
  background: currentColor;
}

.pause-toggle-button,
.sound-toggle-button,
.result-panel,
.primary-button,
.secondary-button,
.upgrade-card {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.pause-toggle-button,
.sound-toggle-button {
  border-color: var(--ui-border-cold);
  background:
    linear-gradient(90deg, rgba(126, 226, 170, 0.1), transparent 32%),
    var(--ui-bg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(6, 8, 10, 0.8);
  text-transform: uppercase;
}

.pause-toggle-button::after,
.sound-toggle-button::after {
  width: 5px;
  height: 5px;
  content: "";
  background: var(--ui-green);
  box-shadow: 0 0 8px rgba(126, 226, 170, 0.7);
}

.sound-toggle-button[aria-pressed="false"]::after {
  background: var(--ui-amber);
  box-shadow: 0 0 8px rgba(248, 196, 113, 0.62);
}

.result-panel {
  position: relative;
  border: 2px solid var(--ui-border-cold);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, rgba(126, 226, 170, 0.11), transparent 28%),
    linear-gradient(180deg, rgba(12, 18, 20, 0.94), rgba(5, 7, 10, 0.91));
  box-shadow:
    inset 0 0 0 2px rgba(6, 8, 10, 0.92),
    inset 0 0 32px rgba(126, 226, 170, 0.07),
    0 12px 34px rgba(0, 0, 0, 0.42);
  clip-path: polygon(0 12px, 12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.result-panel::before {
  position: absolute;
  inset: 10px;
  content: "";
  border: 1px solid rgba(126, 226, 170, 0.16);
  pointer-events: none;
}

.result-panel::after {
  position: absolute;
  top: 10px;
  right: 16px;
  width: 52px;
  height: 6px;
  content: "";
  background:
    linear-gradient(90deg, var(--ui-green) 0 8px, transparent 8px 13px, var(--ui-amber) 13px 21px, transparent 21px 26px, rgba(202, 227, 255, 0.48) 26px);
  opacity: 0.9;
  pointer-events: none;
}

.result-panel > * {
  position: relative;
  z-index: 1;
}

.result-panel h1 {
  color: var(--ui-text);
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(126, 226, 170, 0.2);
}

.end-panel--victory h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.result-panel p,
.upgrade-card span:last-child {
  color: #b6c4cf;
}

.status-line {
  color: var(--ui-green);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.status-line::before {
  box-shadow: 0 0 10px currentColor;
}

.primary-button,
.secondary-button,
.upgrade-card {
  border-width: 2px;
  box-shadow:
    inset 0 0 0 1px rgba(6, 8, 10, 0.8),
    0 0 0 1px rgba(6, 8, 10, 0.8);
  text-transform: uppercase;
}

.primary-button {
  color: #04100c;
  background:
    linear-gradient(180deg, #9df2c2, var(--ui-green));
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.26);
}

.primary-button:hover,
.primary-button:focus-visible {
  background:
    linear-gradient(180deg, #b7ffd2, #8cf0b7);
}

.secondary-button {
  background:
    linear-gradient(180deg, rgba(43, 56, 61, 0.92), rgba(18, 25, 31, 0.92));
}

.upgrade-card {
  border-color: rgba(248, 196, 113, 0.48);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, rgba(36, 43, 45, 0.94), rgba(14, 18, 22, 0.94));
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.upgrade-card:hover,
.upgrade-card:focus-visible {
  border-color: var(--ui-amber);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, rgba(50, 58, 58, 0.96), rgba(18, 24, 29, 0.96));
}

.upgrade-card__label {
  color: var(--ui-amber);
}

.result-stats div,
.destroyed-breakdown li,
.upgrade-list li {
  border-width: 2px;
  border-color: rgba(126, 226, 170, 0.2);
  background:
    linear-gradient(180deg, rgba(126, 226, 170, 0.08), rgba(8, 12, 16, 0.4));
}

.result-stats dt,
.selected-upgrades h2,
.destroyed-breakdown h2 {
  color: var(--ui-amber);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.08em;
}

.result-stats dd,
.destroyed-breakdown strong {
  color: var(--ui-green);
}

.briefing-panel {
  width: min(960px, 100%);
}

.briefing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.36fr);
  gap: 18px;
}

.briefing-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--ui-amber);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.briefing-headline {
  margin-bottom: 12px;
  color: var(--ui-text);
  font-weight: 800;
}

.briefing-side,
.briefing-directives {
  padding: 14px;
  border: 2px solid rgba(126, 226, 170, 0.2);
  background: rgba(4, 8, 10, 0.42);
}

.briefing-side h2,
.briefing-directives h2 {
  margin: 0 0 10px;
  color: var(--ui-amber);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.briefing-side h2:not(:first-child) {
  margin-top: 18px;
}

.briefing-tags,
.briefing-directives ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.briefing-tags li,
.briefing-directives li {
  padding: 8px 10px;
  border-left: 4px solid var(--ui-green);
  color: #dbeafe;
  background: rgba(126, 226, 170, 0.08);
  font-size: 0.9rem;
  font-weight: 800;
}

.briefing-tags--systems li {
  border-left-color: var(--ui-amber);
  background: rgba(248, 196, 113, 0.08);
}

.briefing-directives {
  margin-top: 18px;
}

@media (max-width: 1100px) {
  .intro-title {
    font-size: 5rem;
  }

  .pause-toggle-button {
    top: 18px;
    right: 32px;
  }

  .sound-toggle-button {
    top: 18px;
    right: 154px;
    left: auto;
  }
}

@media (max-width: 760px) {
  .intro-terminal {
    right: 16px;
    bottom: 16px;
    left: 16px;
    min-height: 168px;
    padding: 14px;
  }

  .intro-text {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .intro-advance-button {
    top: 16px;
    right: 16px;
  }

  .intro-title {
    font-size: 3.1rem;
  }

  .pause-toggle-button,
  .sound-toggle-button {
    min-width: 42px;
  }

  .pause-toggle-button .control-label,
  .sound-toggle-button .control-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .screen-overlay {
    padding: 16px;
  }

  .result-panel {
    padding: 18px;
  }

  .upgrade-grid,
  .difficulty-grid,
  .result-stats,
  .result-stats--wide,
  .briefing-grid,
  .destroyed-breakdown ul {
    grid-template-columns: 1fr;
  }
}

.intro-panel--outro-final .outro-final-title {
  font-size: clamp(2.1rem, 7vw, 4.8rem);
}

.intro-panel--outro-final .selected-upgrades,
.intro-panel--outro-final .destroyed-breakdown {
  margin-top: 10px;
}

.intro-panel--outro-final .selected-upgrades h2,
.intro-panel--outro-final .destroyed-breakdown h2 {
  margin-bottom: 6px;
  font-size: 0.72rem;
}

.intro-panel--outro-final .upgrade-list,
.intro-panel--outro-final .destroyed-breakdown ul {
  gap: 6px;
}

.intro-panel--outro-final .upgrade-list li {
  padding: 5px 8px;
  font-size: 0.76rem;
}

.intro-panel--outro-final .destroyed-breakdown ul {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.intro-panel--outro-final .destroyed-breakdown li {
  gap: 6px;
  min-width: 0;
  padding: 6px 8px;
  font-size: 0.76rem;
}

.intro-panel--outro-final .enemy-stat {
  gap: 6px;
}

.intro-panel--outro-final .enemy-stat__sprite {
  width: 34px;
  height: 24px;
}
