/* Visual refresh: luminous aviation dashboard; existing layout remains responsive. */
@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600;700;800;900&display=swap");
:root {
  --ink: #071328;
  --paper: #f0f6ff;
  --muted: #92a9c8;
  --gold: #65dcff;
  --red: #ff627e;
  --line: #6d9fe12e;
  font-family: Inter, system-ui, sans-serif;
}
body {
  background: #060c1c;
  background-image:
    radial-gradient(ellipse at 28% 20%, #124d7766, transparent 48%),
    radial-gradient(ellipse at 86% 80%, #60239144, transparent 50%),
    linear-gradient(130deg, #050b1a, #0b1931 55%, #0b1023);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(#7cbaff06 1px, transparent 1px),
    linear-gradient(90deg, #7cbaff06 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(transparent, #000, transparent);
}
.flight-deck {
  gap: 44px;
  padding: 22px;
  position: relative;
}
.briefing {
  width: 220px;
  height: min(800px, 94dvh);
  justify-content: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  width: auto;
  font:
    700 48px Rajdhani,
    sans-serif;
  color: #74dfff;
  text-shadow: 0 0 30px #45c5ff55;
  padding: 0;
  margin-bottom: 25px;
}
.brand span {
  display: inline;
  font:
    800 21px Inter,
    sans-serif;
  letter-spacing: 2px;
  color: #f0f6ff;
  margin: 0;
}
.deck-label {
  color: #86a9d1;
  letter-spacing: 2px;
  font-size: 9px;
  margin-bottom: 2px;
  font-weight: 700;
}
.front-card {
  height: 128px;
  flex-shrink: 0;
  position: relative;
  padding: 18px;
  border: 1px solid #77a8e544;
  border-radius: 14px;
  background-image:
    linear-gradient(0deg, #09132ce8, #07132920),
    url("assets/graphics/terrain-atlas.png");
  background-size:
    100% 100%,
    300% auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 10px 30px #0003;
  overflow: hidden;
}
.ocean-card {
  background-position:
    center,
    left center;
}
.desert-card {
  background-position:
    center,
    center center;
}
.mountain-card {
  background-position:
    center,
    right center;
}
.front-card span {
  font:
    700 10px Rajdhani,
    sans-serif;
  color: #71e7ff;
  letter-spacing: 2px;
  margin-bottom: 7px;
}
.desert-card span {
  color: #ffd070;
}
.mountain-card span {
  color: #d7b5ff;
}
.front-card b {
  font:
    700 22px Rajdhani,
    sans-serif;
  line-height: 1;
}
.front-card small {
  color: #a9bfd8;
  font-size: 8px;
  margin-top: 8px;
  letter-spacing: 1px;
}
.briefing-bottom {
  margin-top: 18px;
  font-size: 9px;
  line-height: 2;
  color: #b0c6de;
}
.briefing-bottom small {
  color: #6c88aa;
  font-size: 8px;
}
.status-dot {
  background: #63f5bf;
  box-shadow: 0 0 12px #4bffb9;
}
.mission-notes {
  width: 235px;
}
.eyebrow {
  font:
    700 10px Rajdhani,
    sans-serif;
  letter-spacing: 2px;
  color: #6adfff;
}
.mission-notes h2 {
  font:
    700 53px/0.95 Rajdhani,
    sans-serif;
  letter-spacing: 0;
  margin: 18px 0;
  color: #f0f6ff;
}
.mission-notes h2 span {
  color: #76e0ff;
}
.mission-notes p {
  font:
    400 12px/1.85 Inter,
    sans-serif;
  color: #8eabcd;
}
.rule {
  background: linear-gradient(90deg, #62cfff66, transparent);
  margin: 27px 0;
}
dl {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 17px 5px;
  font-family: Inter, sans-serif;
  font-size: 9px;
}
dt {
  margin: 0;
  color: #6c8caf;
  align-self: center;
  letter-spacing: 1px;
}
dd {
  margin: 0;
  color: #cad9ed;
  line-height: 1.6;
}
.mission-stamp {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 15px;
  border: 1px solid #6cabdf2e;
  border-radius: 12px;
  transform: none;
  background: linear-gradient(120deg, #10334b66, #1c1b4244);
  text-align: left;
  margin: 28px 0 20px;
  color: #62dcff;
}
.mission-stamp > span {
  font-size: 28px;
}
.mission-stamp b {
  font:
    700 12px Rajdhani,
    sans-serif;
  display: block;
  letter-spacing: 1px;
}
.mission-stamp small {
  font:
    400 8px Inter,
    sans-serif;
  color: #8ba8c5;
  display: block;
  margin-top: 6px;
}
.mission-notes > small {
  font-size: 8px;
  color: #6282a6;
}
#cabinet {
  border: 1px solid #8dbeff4d;
  border-radius: 22px;
  box-shadow:
    0 0 0 7px #0b172dcc,
    0 0 0 8px #6a98cd22,
    0 28px 100px #0009,
    0 0 80px #249cff15;
  background: #12294a;
}
#overlay {
  padding: 7%;
  background: linear-gradient(180deg, #07162ced, #091b37b8 42%, #080f25f5 88%);
  scrollbar-color: #4d83ae #091328;
}
#overlay {
  justify-content: safe center;
}
#overlay[data-view="hangar"] {
  justify-content: flex-start;
}
#overlay[data-view="hangar"] .hero-plane {
  height: 150px;
  flex-shrink: 0;
}
#overlay[data-view="hangar"] .topline {
  margin-bottom: 12px;
}
#overlay[data-view="hangar"] .panel-sub {
  margin-bottom: 13px;
}
#overlay[data-view="hangar"] .plane-desc {
  margin: 9px 0;
}
#overlay[data-view="hangar"] .upgrades {
  margin: 8px 0;
}
.menu-top {
  font-size: 8px;
  color: #8daacb;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 18px;
  align-items: center;
}
.menu-top .status-dot {
  height: 5px;
  width: 5px;
  margin-right: 5px;
}
.edition {
  border: 1px solid #a791ff44;
  color: #c2aeff;
  border-radius: 5px;
  padding: 5px;
}
.seal {
  font:
    600 9px Rajdhani,
    sans-serif;
  color: #78c7ed;
  letter-spacing: 3px;
}
h1 {
  font:
    700 clamp(46px, 14cqw, 72px)/0.9 Rajdhani,
    sans-serif;
  letter-spacing: 1px;
  margin: 14px 0 10px;
  color: #f1f7ff;
  text-shadow:
    0 4px 0 #152e5f,
    0 0 35px #3f91ff44;
}
h1 span {
  font-size: 0.62em;
  letter-spacing: 14px;
  margin-left: 14px;
  margin-top: 7px;
  background: linear-gradient(90deg, #6af1ff, #6ca1ff, #c09cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.subtitle {
  font:
    500 8px Inter,
    sans-serif;
  color: #8fabce;
  letter-spacing: 2px;
  margin: 13px 0 2px;
}
.hero-plane {
  width: 100%;
  height: 185px;
  object-fit: contain;
  margin: 2px auto 0;
  filter: drop-shadow(0 14px 14px #0005);
  animation: aircraft-hover 5s ease-in-out infinite;
}
@keyframes aircraft-hover {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
.aircraft-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  background: linear-gradient(110deg, #15334cb8, #1b1e3fb8);
  border: 1px solid #78affc33;
  border-radius: 10px;
  margin: 8px 0 18px;
  text-align: left;
}
.aircraft-indicator {
  width: 7px;
  height: 28px;
  border-radius: 3px;
  background: linear-gradient(#79f3ff, #387aff);
  box-shadow: 0 0 18px #4ccaff44;
}
.aircraft-card b {
  font:
    700 20px Rajdhani,
    sans-serif;
  display: block;
  line-height: 1;
}
.aircraft-card small {
  font:
    600 7px Inter,
    sans-serif;
  color: #91afd0;
  letter-spacing: 1.2px;
  display: block;
  margin-top: 5px;
}
.ready-label {
  margin-left: auto;
  font:
    700 9px Rajdhani,
    sans-serif;
  letter-spacing: 1px;
  color: #6cf3bd;
  background: #41efaa12;
  border: 1px solid #52edaa33;
  padding: 6px 8px;
  border-radius: 4px;
}
button {
  border-radius: 9px;
  border: 1px solid #779ddd33;
  background: linear-gradient(125deg, #152a48e6, #151e3be6);
  font-weight: 600;
  min-height: 40px;
  padding: 12px 16px;
  color: #d6e5ff;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    border-color 0.15s;
}
button:hover:not(:disabled) {
  background: linear-gradient(120deg, #214168, #302856);
  border-color: #72cfff88;
  box-shadow: 0 0 25px #4c9eff18;
  transform: translateY(-2px);
}
button.primary {
  font:
    700 23px Rajdhani,
    sans-serif;
  letter-spacing: 2px;
  color: #fff;
  background: linear-gradient(110deg, #157dfa, #4575ff 55%, #8054f1);
  border: 1px solid #8ccaff80;
  box-shadow:
    0 8px 24px #2771ff38,
    inset 0 1px 0 #ffffff40;
  min-height: 54px;
}
button.primary:hover {
  background: linear-gradient(110deg, #2698ff, #6768ff 65%, #9c68ff);
  box-shadow: 0 8px 30px #4b8eff60;
}
.primary span {
  float: right;
  color: #b8ecff;
}
.menu-actions {
  gap: 10px;
}
.menu-actions button {
  font-size: 10px;
  letter-spacing: 1px;
}
.menu-actions button.primary {
  font-size: 23px;
}
.menu-actions .secondary-row {
  gap: 10px;
}
.menu-foot {
  font-size: 7px;
  color: #708eb1;
  letter-spacing: 1px;
  line-height: 2;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid #70a3d52a;
}
.menu-foot b {
  font:
    700 17px Rajdhani,
    sans-serif;
  color: #d8e9ff;
  letter-spacing: 1px;
}
.badge {
  border: 1px solid #6ed6ff44;
  border-radius: 6px;
  background: #48b9ff12;
  color: #78dfff;
  font:
    600 9px Rajdhani,
    sans-serif;
  padding: 6px 9px;
}
.panel-title {
  font:
    700 38px Rajdhani,
    sans-serif;
  color: #eef5ff;
  letter-spacing: 1px;
}
.panel-sub {
  font:
    400 10px/1.7 Inter,
    sans-serif;
  color: #92adcd;
}
.plane-name {
  font:
    700 30px Rajdhani,
    sans-serif;
  color: #eff6ff;
}
.plane-desc {
  font:
    400 10px/1.7 Inter,
    sans-serif;
  color: #a4b8d3;
}
.plane-tabs {
  gap: 8px;
}
.plane-tabs button {
  padding: 10px 5px;
  min-height: 38px;
}
.plane-tabs .selected {
  background: linear-gradient(120deg, #1465a955, #54409d55);
  border-color: #6bdcff;
  color: #8aeeff;
  box-shadow: 0 0 18px #43b9ff1c;
}
.stat-grid {
  gap: 9px;
  margin: 12px 0;
}
.stat-grid > div {
  border-radius: 9px;
  background: linear-gradient(130deg, #18354a88, #24243f88);
  color: #94b2d3;
  padding: 10px;
  border-color: #659bcc33;
  font:
    600 8px Inter,
    sans-serif;
  letter-spacing: 1px;
}
.stat-grid strong {
  font:
    700 26px Rajdhani,
    sans-serif;
  color: #8deaff;
}
.upgrade {
  border-bottom: 1px solid #77a1e118;
  padding: 7px 0;
  font-size: 10px;
}
.upgrade button {
  min-height: 31px;
  background: #2c5c872e;
  font-size: 9px;
}
.upgrades {
  gap: 0;
  margin: 12px 0;
}
.levels {
  color: #6be0ff;
  font-size: 11px;
  letter-spacing: 3px;
}
.back {
  border-color: #87a9e422;
  color: #9eb8db;
  font-size: 10px;
  margin-top: 8px;
}
.notice {
  font-size: 9px;
  color: #83e7ff;
  margin: 8px 0;
}
.setting {
  font-size: 12px;
}
.setting input[type="range"] {
  accent-color: #4ea9ff;
}
select {
  border-radius: 7px;
  background: #142442;
  border-color: #7195d744;
}
.danger {
  color: #ff8b9b;
}
.scores li {
  font-family: Rajdhani, sans-serif;
  font-size: 17px;
  color: #c7dcf6;
  border-color: #7299d12b;
}
.scores b {
  color: #75e6ff;
}
.result-rank {
  font-family: Rajdhani, sans-serif;
  color: #81ecff;
  text-shadow: 0 0 45px #48b9ff77;
}
.results {
  background: #152b444d;
  border: 1px solid #70a5d72a;
  border-radius: 12px;
  padding: 16px;
  font-size: 10px;
  color: #a7bedb;
}
.results b {
  color: #ecf5ff;
}
#hud {
  padding: 14px 14px 20px;
  background: linear-gradient(#06132bef, #08192b99 70%, transparent);
  text-shadow: 0 2px 3px #00102c;
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
}
.hud-label {
  color: #9cc1e4;
  font-family: Inter, sans-serif;
  font-size: 7px;
  letter-spacing: 1px;
}
.hud-score {
  font:
    700 23px Rajdhani,
    sans-serif;
  color: #ecf9ff;
}
.hud-bottom {
  font-size: 12px;
}
.hp-track {
  border-radius: 4px;
  border-color: #76deff44;
  height: 7px;
  overflow: hidden;
  background: #0a1931;
}
.hp-track i {
  background: linear-gradient(90deg, #209ee8, #5ef5cc);
}
.boss-track {
  border-radius: 5px;
  overflow: hidden;
  border-color: #ff97ba55;
  background: #201333;
}
.boss-track i {
  background: linear-gradient(90deg, #ff5275, #ffa166);
}
.boss-hud {
  color: #ffbbd0;
  font-size: 12px;
  letter-spacing: 1px;
}
.stage-label {
  color: #71ddff;
  font-size: 10px;
}
.hud-top .badge {
  background: #193a5ccc;
}
#touch-controls {
  bottom: 14px;
  left: 14px;
  right: 14px;
  gap: 9px;
}
#touch-controls button {
  background: linear-gradient(#183e67d9, #11203bd9);
  border-color: #7ac8ff66;
  border-radius: 10px;
  min-height: 42px;
  font-size: 10px;
  box-shadow: 0 4px 14px #0004;
  color: #a6eeff;
}
#touch-controls button:nth-child(2) {
  color: #d3b2ff;
  border-color: #b899ff55;
  background: linear-gradient(#413768d9, #1d1c39d9);
}
#debug {
  border: 1px solid #4ddcbd55;
  border-radius: 9px;
  background: #071b2fed;
  font-family: monospace;
}
@media (min-width: 1450px) {
  .flight-deck {
    gap: 60px;
  }
  .briefing {
    width: 250px;
  }
  .mission-notes {
    width: 270px;
  }
  .front-card {
    height: 145px;
  }
  .mission-notes h2 {
    font-size: 61px;
  }
}
@media (max-width: 1150px) {
  .flight-deck {
    gap: 25px;
  }
  .briefing {
    width: 170px;
  }
  .mission-notes {
    width: 180px;
  }
  .mission-notes h2 {
    font-size: 42px;
  }
  .front-card {
    padding: 13px;
    height: 112px;
  }
  .front-card b {
    font-size: 19px;
  }
  .brand span {
    font-size: 16px;
  }
  .mission-notes .eyebrow {
    font-size: 8px;
  }
  .mission-stamp {
    padding: 10px;
  }
  .mission-stamp b {
    font-size: 10px;
  }
}
@media (max-width: 900px) {
  .briefing {
    display: none;
  }
  .mission-notes {
    width: 210px;
  }
  .flight-deck {
    gap: 35px;
  }
}
@media (max-width: 750px) {
  .briefing,
  .mission-notes {
    display: none;
  }
  .flight-deck {
    padding: 0;
  }
  #cabinet {
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }
  #overlay {
    padding: 6%;
  }
  .hero-plane {
    height: 165px;
  }
  .menu-top {
    margin-bottom: 14px;
  }
  .aircraft-card {
    margin-bottom: 15px;
  }
  h1 {
    font-size: 14cqw;
  }
  .menu-foot {
    margin-top: 16px;
  }
}
@media (max-height: 720px) {
  .hero-plane {
    height: 130px;
  }
  .menu-top {
    margin-bottom: 10px;
  }
  .subtitle {
    margin-top: 9px;
  }
  .aircraft-card {
    padding: 9px;
    margin: 4px 0 12px;
  }
  .menu-foot {
    margin-top: 14px;
  }
  .panel-sub {
    margin-bottom: 10px;
  }
  .upgrades {
    margin: 8px 0;
  }
  .upgrade {
    padding: 5px 0;
  }
  .front-card {
    height: 110px;
  }
  .briefing {
    gap: 10px;
  }
}
@media (max-height: 580px) {
  .hero-plane {
    height: 85px;
  }
  .menu-top {
    margin-bottom: 6px;
  }
  .seal {
    font-size: 7px;
  }
  h1 {
    font-size: 11cqw;
    margin: 9px 0;
  }
  .subtitle {
    font-size: 7px;
    margin: 7px 0;
  }
  .aircraft-card {
    margin: 3px 0 8px;
    padding: 7px;
  }
  .menu-actions {
    gap: 6px;
  }
  .menu-actions button {
    min-height: 33px;
    padding: 7px;
  }
  .menu-actions button.primary {
    min-height: 42px;
  }
  .menu-foot {
    margin-top: 10px;
    padding-top: 8px;
  }
  .front-card {
    height: 90px;
  }
  .brand {
    margin-bottom: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-plane {
    animation: none;
  }
  button {
    transition: none;
  }
}
/* Size the menu against the game frame, including letterboxed phones. */
#cabinet {
  container-type: size;
}
#overlay > * {
  flex-shrink: 0;
}
@container (max-height: 710px) {
  #overlay[data-view="main"] .hero-plane {
    height: 125px;
  }
  #overlay[data-view="main"] .menu-top {
    margin-bottom: 10px;
  }
  #overlay[data-view="main"] h1 {
    margin: 10px 0 6px;
  }
  #overlay[data-view="main"] .aircraft-card {
    margin: 5px 0 12px;
    padding: 9px 12px;
  }
  #overlay[data-view="main"] .menu-foot {
    margin-top: 12px;
    padding-top: 10px;
  }
  #overlay[data-view="hangar"] .hero-plane {
    height: 120px;
  }
}
@container (max-height: 560px) {
  #overlay[data-view="main"] .hero-plane {
    height: 75px;
  }
  #overlay[data-view="main"] h1 {
    font-size: 11cqw;
  }
  #overlay[data-view="main"] .menu-actions {
    gap: 6px;
  }
  #overlay[data-view="main"] button {
    min-height: 32px;
    padding: 8px;
  }
  #overlay[data-view="main"] button.primary {
    min-height: 40px;
  }
}
#overlay[data-view="hangar"] {
  background: radial-gradient(ellipse at 50% 30%, #183652, #0a142b 68%);
}
/* Three campaign presets, immediately accessible before takeoff. */
.difficulty-picker {
  margin: 0 0 12px;
}
.difficulty-heading {
  font:
    700 8px Inter,
    sans-serif;
  letter-spacing: 1.5px;
  color: #8cabc9;
  margin-bottom: 7px;
}
.difficulty-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.difficulty-options button {
  min-height: 35px;
  padding: 7px;
  font:
    700 15px Rajdhani,
    sans-serif;
}
.difficulty-options .selected {
  background: #23609355;
  border-color: #65dcff;
  color: #9fefff;
  box-shadow: 0 0 16px #4bcbff22;
}
.difficulty-options .difficulty-easy.selected {
  background: #23654f55;
  border-color: #65edba;
  color: #8effce;
}
.difficulty-options .difficulty-hard.selected {
  background: #83314944;
  border-color: #ff8b9f;
  color: #ffb7c4;
}
.difficulty-description {
  color: #96acc8;
  font:
    400 8px/1.5 Inter,
    sans-serif;
  margin: 6px 0 0;
  min-height: 24px;
}
#overlay[data-view="main"] .hero-plane {
  height: 140px;
}
#overlay[data-view="main"] .aircraft-card {
  margin-bottom: 12px;
}
@container (max-height: 710px) {
  #overlay[data-view="main"] .hero-plane {
    height: 85px;
  }
  #overlay[data-view="main"] .menu-top {
    margin-bottom: 8px;
  }
  #overlay[data-view="main"] .aircraft-card {
    padding: 7px 10px;
    margin: 4px 0 9px;
  }
  #overlay[data-view="main"] .menu-foot {
    margin-top: 9px;
    padding-top: 8px;
  }
  .difficulty-picker {
    margin-bottom: 9px;
  }
  .difficulty-heading {
    font-size: 7px;
    margin-bottom: 5px;
  }
}
@container (max-height: 560px) {
  #overlay[data-view="main"] .hero-plane {
    height: 55px;
  }
  #overlay[data-view="main"] .subtitle {
    margin-top: 6px;
  }
  .difficulty-options button {
    min-height: 28px;
  }
}
.extra-fronts {
  display: grid;
  gap: 8px;
  font:
    600 8px Inter,
    sans-serif;
  color: #a5bbd7;
  letter-spacing: 0.7px;
  border-left: 2px solid #78c8ff44;
  padding-left: 10px;
}
.briefing {
  gap: 12px;
}
.briefing .front-card {
  height: 110px;
}
.briefing .brand {
  margin-bottom: 15px;
}
