.sky-assault-game {
  color: #eef7ff;
  background:
    radial-gradient(
      circle at 20% 5%,
      rgba(95, 190, 255, 0.18),
      transparent 28rem
    ),
    linear-gradient(160deg, #07111f 0%, #10141c 46%, #0b1323 100%);
  border: 1px solid rgba(148, 190, 220, 0.22);
  border-radius: 8px;
  padding: clamp(1rem, 2vw, 1.5rem);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
}

.sky-assault-game .eyebrow {
  color: #80d7ff;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sa-hero,
.sa-layout,
.sa-panel-heading,
.sa-audio-controls,
.sa-control-stack,
.sa-action-row,
.sa-dialog-actions,
.sa-badges {
  display: flex;
  gap: 0.8rem;
}

.sa-hero {
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.sa-hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  margin: 0.18rem 0 0.4rem;
}

.sa-hero p {
  color: #bad2e2;
  margin: 0;
  max-width: 60rem;
}

.sa-audio-controls {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sa-hud {
  display: grid;
  grid-template-columns: repeat(10, minmax(5rem, 1fr));
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.sa-hud article,
.sa-side-panel,
.sa-play-panel,
.sa-status,
.sa-choice-panel,
.sa-instructions,
.sa-diagnostics,
.sa-reset-dialog {
  background: rgba(5, 11, 22, 0.76);
  border: 1px solid rgba(139, 196, 227, 0.2);
  border-radius: 8px;
}

.sa-hud article {
  min-height: 4rem;
  padding: 0.65rem;
}

.sa-hud span,
.sa-aircraft-card span,
.sa-aircraft-card small {
  color: #a9c5d8;
  display: block;
  font-size: 0.73rem;
  font-weight: 750;
  text-transform: uppercase;
}

.sa-hud strong {
  color: #ffffff;
  display: block;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.15;
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
}

.sa-layout {
  align-items: flex-start;
}

.sa-side-panel {
  flex: 1 1 15rem;
  padding: 0.9rem;
  min-width: 14.5rem;
}

.sa-play-panel {
  flex: 2 1 35rem;
  padding: 0.9rem;
  min-width: 0;
}

.sa-panel-heading {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.sa-panel-heading h2,
.sa-choice-panel h3,
.sa-instructions h3 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 900;
  margin: 0;
}

.badge {
  background: rgba(126, 215, 255, 0.13);
  border: 1px solid rgba(126, 215, 255, 0.3);
  border-radius: 999px;
  color: #dff7ff;
  display: inline-flex;
  font-weight: 800;
  padding: 0.32rem 0.62rem;
}

.sa-aircraft-grid,
.sa-choice-list {
  display: grid;
  gap: 0.55rem;
}

.sa-aircraft-card,
.sa-choice-list button,
.sa-toggle,
.button,
.button-soft,
.button-danger {
  border-radius: 8px;
  min-height: 2.75rem;
}

.sa-aircraft-card,
.sa-choice-list button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(167, 213, 238, 0.22);
  color: #f7fbff;
  cursor: pointer;
  padding: 0.7rem;
  text-align: left;
}

.sa-aircraft-card strong {
  display: block;
  font-size: 1rem;
}

.sa-aircraft-card.is-selected,
.sa-choice-list button:hover,
.sa-choice-list button:focus-visible,
.sa-aircraft-card:hover,
.sa-aircraft-card:focus-visible {
  border-color: #83dcff;
  box-shadow: 0 0 0 3px rgba(131, 220, 255, 0.18);
  outline: none;
}

.sa-aircraft-card[disabled] {
  cursor: not-allowed;
  opacity: 0.52;
}

.sa-control-stack {
  flex-direction: column;
  margin: 0.9rem 0;
}

.sa-action-row {
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.sa-action-row > *,
.sa-control-stack > *,
.sa-audio-controls > * {
  flex: 1 1 auto;
}

.sa-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(167, 213, 238, 0.22);
  color: #eaf8ff;
  display: flex;
  font-weight: 800;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
}

.sa-canvas-shell {
  aspect-ratio: 3 / 5;
  background: #020714;
  border: 1px solid rgba(126, 215, 255, 0.24);
  border-radius: 8px;
  display: grid;
  margin: 0 auto;
  max-height: min(78vh, 900px);
  max-width: 540px;
  overflow: hidden;
  place-items: center;
  touch-action: none;
  width: 100%;
}

.sa-canvas {
  display: block;
  height: 100%;
  outline: none;
  width: 100%;
}

.sa-canvas:focus-visible {
  box-shadow: inset 0 0 0 4px rgba(255, 222, 116, 0.8);
}

.sa-status {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  margin-top: 0.8rem;
  padding: 0.75rem;
}

.sa-status-icon {
  align-items: center;
  background: rgba(255, 222, 116, 0.14);
  border: 1px solid rgba(255, 222, 116, 0.28);
  border-radius: 50%;
  color: #ffde74;
  display: inline-flex;
  flex: 0 0 2rem;
  font-weight: 900;
  height: 2rem;
  justify-content: center;
}

.sa-status strong {
  color: #ffffff;
}

.sa-status p,
.sa-choice-panel p,
.sa-instructions p {
  color: #bdd2df;
  margin: 0.15rem 0 0;
}

.sa-choice-panel,
.sa-instructions,
.sa-diagnostics {
  margin-bottom: 0.8rem;
  padding: 0.8rem;
}

.sa-choice-list button[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
}

.sa-achievement-list {
  display: grid;
  gap: 0.45rem;
  list-style: none;
  margin: 0.65rem 0 0;
  max-height: 16rem;
  overflow: auto;
  padding: 0;
}

.sa-achievement-list li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(167, 213, 238, 0.15);
  border-radius: 8px;
  padding: 0.5rem;
}

.sa-achievement-list li.is-complete {
  border-color: rgba(143, 255, 186, 0.38);
}

.sa-achievement-list strong,
.sa-achievement-list span {
  display: block;
}

.sa-achievement-list span {
  color: #a9c5d8;
  font-size: 0.78rem;
  margin-top: 0.12rem;
}

.sa-diagnostics pre {
  color: #c8f4ff;
  font-size: 0.78rem;
  margin: 0;
  max-height: 16rem;
  overflow: auto;
  white-space: pre-wrap;
}

.sa-reset-dialog {
  color: #eef7ff;
  max-width: 30rem;
  padding: 1.2rem;
}

.sa-reset-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.sa-reset-dialog h2 {
  margin-top: 0;
}

@media (max-width: 1200px) {
  .sa-hud {
    grid-template-columns: repeat(5, minmax(5rem, 1fr));
  }

  .sa-layout {
    flex-wrap: wrap;
  }

  .sa-play-panel {
    order: -1;
    flex-basis: 100%;
  }
}

@media (max-width: 700px) {
  .sky-assault-game {
    padding: 0.75rem;
  }

  .sa-hero,
  .sa-panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

  .sa-side-panel,
  .sa-play-panel {
    flex-basis: 100%;
    min-width: 0;
  }

  .sa-canvas-shell {
    max-height: 76vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sky-assault-game *,
  .sky-assault-game *::before,
  .sky-assault-game *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
