/* Fleet Command visual system. This layer changes presentation only.
   Keep native controls, hidden states and existing interaction geometry intact. */
@font-face {
  font-family: 'GFA Command';
  src: url('../assets/fonts/Rajdhani-SemiBold.ttf') format('truetype');
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
}
@font-face {
  font-family: 'GFA Command';
  src: url('../assets/fonts/Rajdhani-Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}
:root {
  --ui-cyan: #63e5ef;
  --ui-line: #244855;
  --ui-line-strong: #397b8b;
  --ui-panel: #0b1b27;
  --ui-panel-raised: #102b38;
  --ui-muted: #91acba;
  --ui-heading: 'GFA Command', Rajdhani, 'Segoe UI', sans-serif;
  --bg: #040c14;
  --panel: var(--ui-panel);
  --panel2: var(--ui-panel-raised);
  --line: var(--ui-line);
  --muted: #a0b8c6;
  --text: #e5f3f8;
  --gold: var(--ui-cyan);
  --danger: #ff9697;
  scrollbar-color: #366675 #081621;
  scrollbar-width: thin;
}
body {
  background-color: var(--bg);
  background-image: radial-gradient(ellipse at 15% 0%, #16405255, transparent 52%),
    linear-gradient(115deg, transparent 40%, #0d253733 100%);
  background-attachment: fixed;
  line-height: 1.45;
}
h1, h2, h3, h4, .brand { font-family: var(--ui-heading); }
h1 { font-size: clamp(32px, 3.4vw, 48px); font-weight: 700; letter-spacing: .045em; }
h2, h3 { font-weight: 700; letter-spacing: .025em; }
button, select, input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]) {
  border-radius: 2px;
  border-color: var(--ui-line-strong);
}
button {
  background: linear-gradient(115deg, #123342, #0b1d2b);
  box-shadow: inset 0 1px #bcecf508;
  color: #dcedf5;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
button:hover:not(:disabled) {
  background: #184253;
  border-color: var(--ui-cyan);
  box-shadow: inset 0 0 0 1px #63e5ef12, 0 0 12px #63e5ef0b;
  color: #f2fdff;
}
button:active:not(:disabled) { background: #20566a; }
button:disabled { opacity: .42; }
button.primary {
  background: linear-gradient(110deg, #67e7ed, #48bfd4);
  border-color: #8af3f6;
  color: #031a25;
  font-weight: 700;
  box-shadow: inset 0 1px #e3ffff66, 0 0 16px #48bfd412;
}
button.primary:hover:not(:disabled) { color: #00111b; background: #9bf6f5; border-color: #bffcff; }
button.quiet { background: #0b1b26b3; }
button.text-button { background: transparent; border: 0; box-shadow: none; color: #95ccd9; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #9bf6f5;
  outline-offset: 3px;
}
select, input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]) {
  background-color: #071620;
  color: #e8f5fa;
  padding: 10px 12px;
}
select { color-scheme: dark; }
select option { color: #e8f5fa; background: #0b1b27; }
input::placeholder { color: #819caa; opacity: 1; }
input[type=checkbox], input[type=radio], input[type=range] { accent-color: var(--ui-cyan); }
input[type=checkbox], input[type=radio] { width: 15px; height: 15px; flex-shrink: 0; }
.eyebrow { color: #7edbe6; font-family: var(--ui-heading); font-weight: 600; letter-spacing: .2em; }
.masthead {
  position: relative;
  padding: 20px 30px;
  background: linear-gradient(100deg, #0e2935cc, #07121ef5 55%);
  border-bottom: 1px solid #397b8b;
  box-shadow: 0 4px 24px #0003;
  flex-wrap: wrap;
}
.masthead::after {
  content: '';
  position: absolute;
  height: 2px;
  left: 30px;
  bottom: -1px;
  width: 160px;
  background: linear-gradient(90deg, var(--ui-cyan) 65%, transparent 65%, transparent 69%, var(--ui-cyan) 69%, var(--ui-cyan) 82%, transparent 82%, transparent 86%, #63e5ef66 86%);
  pointer-events: none;
}
.brand { font-size: 23px; letter-spacing: .075em; color: #ecfaff; }
.brand-mark { color: var(--ui-cyan); text-shadow: 0 0 18px #63e5ef40; }
.brand small { color: #7bd4e1; font-family: var(--ui-heading); letter-spacing: .32em; }
.mode-label { font-family: var(--ui-heading); color: #90abb7; }
.mode-label span { border-color: #244b52; color: #95c7c6; background: #15333355; }
.masthead nav { flex-wrap: wrap; }
.masthead nav button { font-family: var(--ui-heading); font-size: 15px; letter-spacing: .025em; min-height: 42px; }
main { padding-top: 28px; }
.panel {
  border-color: var(--ui-line);
  border-radius: 3px;
  background: linear-gradient(145deg, #0c202d, #08141f 70%);
  box-shadow: inset 0 1px #75e6ed0c, 0 8px 28px #0002;
}
.panel-heading { background: linear-gradient(90deg, #12303eaa, #0b1b27); border-bottom-color: var(--ui-line); }
.panel-heading h2 { color: #d8f3f9; }
.panel-heading>span { font-family: var(--ui-heading); color: #86b4c3; }
dialog {
  color: var(--text);
  border: 1px solid var(--ui-line-strong);
  border-radius: 3px;
  background: linear-gradient(135deg, #102c3c, #06131f 65%);
  box-shadow: inset 0 2px var(--ui-cyan), 0 24px 80px #0009;
}
dialog::backdrop { background: #020912dc; }
.dialog-header { border-bottom: 1px solid var(--ui-line); padding-bottom: 16px; margin-bottom: 20px; }
dialog h2 { font-size: 28px; }
dialog p, dialog li { line-height: 1.6; }
.notice {
  border: 1px solid #58b4c7;
  border-left: 3px solid var(--ui-cyan);
  border-radius: 2px;
  background: #102b3b;
  color: #e8f9ff;
  box-shadow: 0 12px 40px #0007;
}
.online-panel {
  border-radius: 3px;
  border-color: var(--ui-line-strong);
  background: linear-gradient(135deg, #10303e, #081622 70%);
  box-shadow: inset 0 2px var(--ui-cyan), 0 12px 35px #0003;
  padding: clamp(20px, 4vw, 36px);
}
.online-panel h2 { font-size: 30px; margin-bottom: 12px; }
.online-panel input, .online-panel select { min-height: 44px; }
#online-status { border-bottom: 1px solid #225569; background: #0b2531; color: #a5edf2; }
.campaign-overview { font-family: inherit; background: #061823; border-color: var(--ui-line); border-radius: 2px; }
.campaign-overview h2, .campaign-overview h3 { font-family: var(--ui-heading); }
.campaign-overview h2 { font-size: 30px; }
.campaign-overview h3 { font-size: 21px; }
.campaign-stats div, .campaign-node { border-radius: 2px; border-color: var(--ui-line); background: #0f2a37; }
.campaign-stats strong { font: 700 26px var(--ui-heading); color: #d5f9fa; }
.campaign-node.is-current { border-color: var(--ui-cyan); background: #123944; box-shadow: inset 3px 0 var(--ui-cyan); }
.battle-result { border-radius: 2px; background: #081c28; border-color: var(--ui-line-strong); padding: 24px; }
.battle-result h2 { font: 700 38px var(--ui-heading); letter-spacing: .055em; text-transform: uppercase; }
.battle-result-side { border-radius: 2px; background: #102d3a; border-color: #275363; padding: 14px; }
.battle-result-side strong { font: 700 20px var(--ui-heading); }
footer { color: #89a5b5; }
.mission-activation { display: grid; gap: 8px; padding-block: 12px; border-block: 1px solid var(--ui-line); }
.activation-system-help { display: block; color: #99b3c2; line-height: 1.5; }
.local-player-controls {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid var(--ui-line);
  border-left: 2px solid var(--ui-cyan);
  background: linear-gradient(110deg, #112c3a99, #07162066);
}
.local-player-controls h2 {
  margin: 0 0 10px;
  font: 600 16px var(--ui-heading);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #d4effa;
}
.local-player-controls > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.local-player-controls label { display: grid; gap: 6px; min-width: 0; }
.local-player-controls select { width: 100%; min-height: 44px; }
.local-player-controls > small { display: block; margin-top: 10px; color: #99b3c2; line-height: 1.4; }
@media (max-width: 700px) {
  .masthead { padding: 14px 12px; gap: 14px; }
  .masthead::after { left: 12px; width: 100px; }
  .brand { font-size: 20px; }
  .masthead nav { gap: 6px; }
  .masthead nav button { font-size: 14px; padding: 8px 11px; }
  main { padding: 18px 12px; }
  dialog { padding: 18px; }
  .battle-result { padding: 18px; }
  .battle-result h2 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
  body { background-attachment: scroll; }
}
@media (forced-colors: active) {
  button, .panel, dialog, .online-panel { border-color: ButtonText; box-shadow: none; }
}
