/* Orbitron & Black Ops One (SIL Open Font License: fonts/Orbitron-OFL.txt & fonts/BlackOpsOne-OFL.txt), hosted locally: zero external requests. */
@font-face {
  font-family: 'Orbitron';
  src: url('fonts/Orbitron-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Black Ops One';
  src: url('fonts/BlackOpsOne-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #080a0e;
  --bg-elev: #0e1219;
  --panel: #151a23;
  --panel-hi: #1e2634;
  --panel-deep: #0b0e14;
  --border: #2c3544;
  --border-hi: #4b5a73;
  --gold: #eba41a;
  --gold-hi: #ffd454;
  --gold-dim: #8c5a08;
  --ink: #e4e9f2;
  --muted: #98a3b6;
  --dim: #667185;
  --ok: #5be07a;
  --cyan: #4cc3f7;
  --danger: #f06548;
  --discord: #5865f2;
  --discord-hi: #7280ff;
  --discord-lo: #3c46b8;
  --font-display: 'Orbitron', 'Arial Narrow', Impact, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, 'Courier New', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  color-scheme: dark;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;                      /* the footer is always at the bottom of the window, also on a short page */
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 85% 46% at 50% -4%, rgba(235, 164, 26, 0.14) 0%, rgba(235, 164, 26, 0.03) 42%, transparent 72%),
    radial-gradient(ellipse 55% 40% at 12% 28%, rgba(76, 195, 247, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 88% 68%, rgba(88, 101, 242, 0.06) 0%, transparent 60%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.015) 0px,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 4px
    );
  overflow-x: clip;
  position: relative;
}

body > main {
  flex: 1 0 auto;
}

/* Subtle tactical cockpit grid at top of page (non-fixed for zero compositor overhead) */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 820px;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(180deg, transparent 55%, var(--bg) 100%),
    linear-gradient(to right, rgba(148, 168, 200, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 168, 200, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
}

a {
  color: var(--gold-hi);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: #140c02;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.skip-link:focus {
  left: 12px;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   TOP NAVIGATION BAR + TOP-RIGHT DISCORD BUTTON + MOBILE DRAWER
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(13, 17, 24, 0.96) 0%, rgba(8, 10, 14, 0.92) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(75, 90, 115, 0.5);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(235, 164, 26, 0.45) 50%, transparent 100%);
  pointer-events: none;
}

.topbar .container {
  max-width: 1500px;                      /* (wider than the page: the longer menu of another language fits; app.js collapses the menu when it still does not) */
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-family: 'Black Ops One', var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
  transition: filter 0.16s ease, transform 0.14s ease;
}

.brand:hover {
  text-decoration: none;
  filter: drop-shadow(0 0 12px rgba(235, 164, 26, 0.5));
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.75));
}

.brand-word {
  display: inline-flex;
  align-items: baseline;
  transform: skewX(-11deg);
  filter: url(#brand-grit) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.95));
}

.brand-word .bw-big {
  font-size: 1.2em;
}

.brand-word .bw-sm {
  font-size: 0.84em;
  text-transform: uppercase;
}

.brand-word .bw-i {
  font-size: 0.95em;
}

.brand-word .bw-gold {
  background: linear-gradient(180deg, #fff1a8 0%, #f5b324 44%, #a86006 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-word .bw-steel {
  background: linear-gradient(180deg, #f3f6fb 0%, #aebad0 46%, #616d82 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 6px 2px;
  transition: color 0.16s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-hi));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
  box-shadow: 0 0 8px rgba(235, 164, 26, 0.65);
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--gold-hi);
  text-decoration: none;
}

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: linear-gradient(180deg, rgba(235, 164, 26, 0.14) 0%, rgba(140, 90, 8, 0.12) 100%);
  border: 1px solid rgba(235, 164, 26, 0.5);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--gold-hi);
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 8px var(--gold), 0 0 14px rgba(235, 164, 26, 0.6);
  animation: pulse 2.2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ---- Top-right & CTA Discord Button ---- */
.btn-discord-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  background: linear-gradient(180deg, #6875ff 0%, #5865f2 48%, #404bc4 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid rgba(173, 182, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 14px rgba(88, 101, 242, 0.38);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  transition: transform 0.14s ease, filter 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.btn-discord-nav svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: currentColor;
}

.btn-discord-nav:hover {
  color: #ffffff;
  text-decoration: none;
  border-color: var(--gold-hi);
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 6px 20px rgba(88, 101, 242, 0.55),
    0 0 12px rgba(255, 212, 84, 0.25);
}

.btn-discord-nav:active {
  transform: translateY(0);
}

/* Mobile Menu Toggle Button */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 38px;
  padding: 0;
  background: linear-gradient(180deg, #252e3e 0%, #141923 100%);
  border: 1px solid var(--border-hi);
  color: var(--ink);
  cursor: pointer;
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-toggle:hover {
  border-color: var(--gold-hi);
  color: var(--gold-hi);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: square;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Mobile Navigation Drawer */
.mobile-nav {
  display: none;
  background: linear-gradient(180deg, rgba(16, 21, 30, 0.98) 0%, rgba(9, 12, 17, 0.98) 100%);
  border-bottom: 1px solid rgba(235, 164, 26, 0.4);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.8);
}

.mobile-nav.open {
  display: block;
  animation: drawerDrop 0.18s ease-out;
}

@keyframes drawerDrop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-inner {
  padding: 14px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-inner > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: rgba(21, 26, 35, 0.72);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-hi);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.mobile-nav-inner > a:hover,
.mobile-nav-inner > a[aria-current="page"] {
  border-color: rgba(235, 164, 26, 0.55);
  border-left-color: var(--gold-hi);
  background: rgba(235, 164, 26, 0.1);
  color: var(--gold-hi);
  text-decoration: none;
}

.mobile-nav-foot {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   CHAMFERED ARMOR PANELS & BUTTONS (TRUE BEVEL SILHOUETTES)
   ========================================================================== */
.chamfer-box {
  position: relative;
  --cut: 14px;
  --frame-color: rgba(75, 90, 115, 0.65);
  background: linear-gradient(165deg, rgba(35, 44, 60, 0.92) 0%, rgba(19, 24, 34, 0.96) 38%, rgba(10, 13, 19, 0.98) 100%);
  border: 0;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.52);
  clip-path: polygon(
    var(--cut) 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut)),
    0 var(--cut)
  );
}

/* Crisp metallic chamfered border via outer background + inset fill pseudo-layer */
.chamfer-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(196, 212, 238, 0.28) 0%,
    var(--frame-color) 32%,
    rgba(24, 30, 42, 0.85) 100%
  );
  clip-path: polygon(
    var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut),
    var(--cut) 0,
    calc(var(--cut) + 0.6px) 1.5px,
    1.5px calc(var(--cut) + 0.6px),
    1.5px calc(100% - var(--cut) - 0.6px),
    calc(var(--cut) + 0.6px) calc(100% - 1.5px),
    calc(100% - var(--cut) - 0.6px) calc(100% - 1.5px),
    calc(100% - 1.5px) calc(100% - var(--cut) - 0.6px),
    calc(100% - 1.5px) calc(var(--cut) + 0.6px),
    calc(100% - var(--cut) - 0.6px) 1.5px,
    calc(var(--cut) + 0.6px) 1.5px
  );
}

/* Subtle top specular bar inside every armor plate */
.chamfer-box::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 224, 130, 0.35), transparent);
  pointer-events: none;
  z-index: 1;
}

.chamfer-box > * {
  position: relative;
  z-index: 1;
}

/* ---- Buttons ---- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--border-hi);
  background: linear-gradient(180deg, #2d3647 0%, #1a202c 55%, #12161f 100%);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(220, 234, 255, 0.2),
    0 6px 18px rgba(0, 0, 0, 0.45);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  transition: transform 0.14s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}

/* Metallic sheen sweep on hover */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.22) 50%, transparent 80%);
  transition: left 0.45s ease;
  pointer-events: none;
}

.btn:hover::after {
  left: 145%;
}

.btn:hover {
  text-decoration: none;
  border-color: var(--gold-hi);
  color: var(--gold-hi);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 160, 0.35),
    0 10px 24px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(235, 164, 26, 0.22);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(180deg, #ffda66 0%, #eba41a 46%, #b06c08 100%);
  border-color: #fff0b3;
  color: #160d02;
  text-shadow: 0 1px 0 rgba(255, 245, 200, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 224, 0.65),
    0 8px 24px rgba(235, 164, 26, 0.28);
}

.btn-primary:hover {
  color: #0b0601;
  filter: brightness(1.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 252, 232, 0.8),
    0 12px 28px rgba(235, 164, 26, 0.42);
}

.btn-discord {
  background: linear-gradient(180deg, #6e7bff 0%, #5865f2 48%, #3f4ac2 100%);
  border-color: rgba(182, 190, 255, 0.68);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 24px rgba(88, 101, 242, 0.36);
}

.btn-discord:hover {
  color: #ffffff;
  border-color: var(--gold-hi);
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 12px 28px rgba(88, 101, 242, 0.52);
}

/* ==========================================================================
   HERO SECTION (COCKPIT HUD STAGE)
   ========================================================================== */
.hero {
  position: relative;
  padding: 58px 0 64px;
  text-align: center;
  overflow: clip;
}

/* Subtle cockpit horizon ring & crosshair behind the hero logo */
.hero-hud-ring {
  position: absolute;
  top: 46px;
  left: 50%;
  width: min(660px, 130vw);
  height: min(660px, 130vw);
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px dashed rgba(235, 164, 26, 0.13);
  box-shadow:
    inset 0 0 90px rgba(235, 164, 26, 0.05),
    0 0 80px rgba(235, 164, 26, 0.04);
  pointer-events: none;
  z-index: 0;
  animation: slowSpin 90s linear infinite;
}

.hero-hud-ring::before {
  content: "";
  position: absolute;
  inset: 42px;
  border-radius: 50%;
  border: 1px solid rgba(152, 163, 182, 0.09);
}

@keyframes slowSpin {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(16, 21, 30, 0.85);
  border: 1px solid rgba(75, 90, 115, 0.55);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.tag::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold);
  display: inline-block;
}

.hero-logo-wrap {
  position: relative;
  max-width: 780px;
  margin: 10px auto 22px;
  padding: 14px 20px;
}

/* Cockpit targeting corner brackets flanking the hero logo */
.hero-logo-wrap::before,
.hero-logo-wrap::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  width: 24px;
  pointer-events: none;
  opacity: 0.45;
}

.hero-logo-wrap::before {
  left: 0;
  border-left: 2px solid var(--gold);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

.hero-logo-wrap::after {
  right: 0;
  border-right: 2px solid var(--gold);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

.hero-logo {
  display: block;
  width: min(720px, 100%);
  height: auto;
  margin: 0 auto;
  filter:
    drop-shadow(0 18px 34px rgba(0, 0, 0, 0.9))
    drop-shadow(0 0 26px rgba(235, 164, 26, 0.16));
}

.hero-title {
  margin: 0 auto 16px;
  max-width: 820px;
  font-family: var(--font-display);
  font-size: clamp(22px, 4.2vw, 44px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.75);
  overflow-wrap: break-word;
}

.hero-title span {
  background: linear-gradient(180deg, #fff1b8 0%, var(--gold-hi) 42%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0 auto 30px;
  max-width: 680px;
  font-size: 16.5px;
  color: var(--muted);
}

.hero-sub strong {
  color: var(--ink);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---- Telemetry Strip ---- */
.telemetry {
  margin: 38px auto 0;
  padding: 22px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
  --frame-color: rgba(235, 164, 26, 0.45);
}

.telemetry-cell {
  position: relative;
  padding: 6px 14px;
}

.telemetry-cell + .telemetry-cell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-hi), transparent);
}

.stat-val {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--gold-hi);
  letter-spacing: 0.06em;
  text-shadow: 0 0 18px rgba(235, 164, 26, 0.35);
}

.stat-lbl {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   SECTIONS & HEADINGS
   ========================================================================== */
section.section {
  position: relative;
  padding: 68px 0;
  border-top: 1px solid rgba(44, 53, 68, 0.55);
}

section.section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, 60%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(235, 164, 26, 0.55), transparent);
  pointer-events: none;
}

.section-alt {
  background: linear-gradient(180deg, rgba(14, 18, 26, 0.6) 0%, rgba(8, 10, 14, 0.2) 100%);
}

.sec-head {
  margin-bottom: 32px;
}

.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-hi);
  margin-bottom: 6px;
}

.sec-eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.sec-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.12;
  color: #ffffff;
}

.sec-desc {
  margin: 10px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 15.5px;
}

/* ==========================================================================
   FEATURE CARDS, GAME MODE CARDS & BEFORE-YOU-PLAY CARDS
   ========================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  --frame-color: rgba(255, 212, 84, 0.85);
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.65), 0 0 26px rgba(235, 164, 26, 0.12);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(235, 164, 26, 0.18) 0%, rgba(235, 164, 26, 0.05) 100%);
  border: 1px solid rgba(235, 164, 26, 0.45);
  color: var(--gold-hi);
  flex-shrink: 0;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.card-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #ffffff;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* Mode-specific accent strips for #modes */
.mode-card {
  --mode-accent: var(--gold);
  padding-top: 26px;
}

.mode-card .mode-bar {
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background: linear-gradient(90deg, var(--mode-accent), transparent 85%);
  z-index: 2;
}

.mode-card .card-icon {
  color: var(--mode-accent);
  border-color: color-mix(in srgb, var(--mode-accent) 50%, transparent);
  background: color-mix(in srgb, var(--mode-accent) 12%, transparent);
}

.mode-card .feature-num {
  color: var(--mode-accent);
}

.mode-ffa { --mode-accent: #ffd454; }
.mode-tdm { --mode-accent: #4cc3f7; }
.mode-dom { --mode-accent: #a78bfa; }
.mode-demo { --mode-accent: #f97352; }
.mode-split { --mode-accent: #5be07a; }
.mode-solo { --mode-accent: #94a3b8; }

/* Subtle warning styling for Before You Play cards */
.notice-card .card-icon {
  background: rgba(152, 163, 182, 0.08);
  border-color: rgba(152, 163, 182, 0.35);
  color: var(--ink);
}

.notice-card:hover .card-icon {
  border-color: rgba(235, 164, 26, 0.55);
  color: var(--gold-hi);
}

/* ==========================================================================
   FLIGHT & COMBAT BRIEFING CONSOLE (#combat)
   ========================================================================== */
.specs-box {
  padding: 26px;
  --frame-color: rgba(235, 164, 26, 0.45);
}

.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.spec-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.console-id {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--dim);
  text-transform: uppercase;
}

.spec-tab {
  background: linear-gradient(180deg, #171d29 0%, #0f131b 100%);
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 9px 18px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.spec-tab:hover {
  color: var(--gold-hi);
  border-color: rgba(235, 164, 26, 0.55);
}

.spec-tab.active {
  background: linear-gradient(180deg, #ffd454 0%, #eba41a 55%, #b57109 100%);
  color: #140c02;
  border-color: #fff0b3;
  box-shadow: 0 4px 16px rgba(235, 164, 26, 0.3);
}

.spec-pane {
  display: none;
}

.spec-pane.active {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 24px;
  align-items: start;
  animation: fadeSlide 0.2s ease-out;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.spec-list li {
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(235, 164, 26, 0.07) 0%, rgba(8, 10, 14, 0.78) 28%);
  border: 1px solid rgba(44, 53, 68, 0.7);
  border-left: 3px solid var(--gold);
  font-size: 14.5px;
  color: var(--ink);
}

.spec-list strong {
  color: var(--gold-hi);
}

.spec-aside {
  padding: 20px;
  background: linear-gradient(180deg, rgba(11, 14, 20, 0.92) 0%, rgba(7, 9, 13, 0.96) 100%);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.spec-aside h4 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-hi);
}

.key-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(44, 53, 68, 0.45);
  font-size: 13.5px;
  color: var(--muted);
}

.key-row span:first-child {
  color: var(--ink);
}

.key-row:last-child {
  border-bottom: 0;
}

/* Beveled physical keycap styling */
.kbd {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 3px 8px;
  background: linear-gradient(180deg, #252e3f 0%, #151b26 100%);
  border: 1px solid var(--border-hi);
  border-bottom: 2px solid #090c11;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: var(--gold-hi);
  white-space: nowrap;
}

/* ==========================================================================
   ROADMAP (#roadmap)
   ========================================================================== */
.roadmap-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.road-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.road-card-active {
  --frame-color: rgba(235, 164, 26, 0.72);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55), 0 0 24px rgba(235, 164, 26, 0.1);
}

.road-card-active .road-hazard {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    -45deg,
    var(--gold) 0px,
    var(--gold) 8px,
    #11151d 8px,
    #11151d 16px
  );
  opacity: 0.9;
  z-index: 2;
}

.road-phase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.road-step {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.12em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-done {
  background: rgba(91, 224, 122, 0.12);
  border: 1px solid rgba(91, 224, 122, 0.45);
  color: var(--ok);
}

.badge-wip {
  background: rgba(235, 164, 26, 0.16);
  border: 1px solid rgba(235, 164, 26, 0.6);
  color: var(--gold-hi);
}

.badge-next {
  background: rgba(152, 163, 182, 0.12);
  border: 1px solid rgba(152, 163, 182, 0.35);
  color: var(--muted);
}

.road-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.road-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  display: grid;
  gap: 8px;
}

.road-card li {
  position: relative;
  padding-left: 16px;
}

.road-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ==========================================================================
   COMMUNITY / UPDATES CTA (#updates)
   ========================================================================== */
.cta-box {
  padding: 38px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  --frame-color: rgba(235, 164, 26, 0.65);
  background:
    radial-gradient(ellipse 60% 100% at 95% 50%, rgba(88, 101, 242, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 90% at 8% 0%, rgba(235, 164, 26, 0.14) 0%, transparent 65%),
    linear-gradient(165deg, rgba(30, 38, 52, 0.96) 0%, rgba(12, 16, 23, 0.98) 100%);
}

.cta-hazard {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(235, 164, 26, 0.85) 0px,
    rgba(235, 164, 26, 0.85) 9px,
    #0e1219 9px,
    #0e1219 18px
  );
  opacity: 0.75;
  z-index: 2;
}

.cta-box h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 32px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: #ffffff;
}

.cta-box p {
  margin: 0;
  max-width: 580px;
  color: var(--muted);
  font-size: 15px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  border-top: 1px solid var(--border);
  background: rgba(6, 8, 11, 0.85);
  padding: 30px 0 42px;
  color: var(--dim);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.footer-brand img {
  width: 22px;
  height: 22px;
  opacity: 0.85;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--gold-hi);
  text-decoration: none;
}

/* ==========================================================================
   PROGRESSIVE SCROLL REVEAL (content stays visible; subtle entrance only)
   ========================================================================== */
.js-reveal {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   ENCYCLOPEDIA PAGE
   ========================================================================== */
.enc-tabs {
  margin-bottom: 22px;
}

.enc-pane {
  display: none;
}

.enc-pane.active {
  display: block;
}

.enc-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.enc-side {
  min-width: 0;
}

.enc-search-wrap {
  position: relative;
  margin-bottom: 10px;
}

.enc-search {
  width: 100%;
  padding: 11px 14px;
  background: #0d1118;
  color: var(--ink);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 14px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: border-color 0.15s ease;
}

.enc-search:focus {
  outline: none;
  border-color: var(--gold-hi);
}

.enc-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 620px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) #0b0e14;
}

.enc-list::-webkit-scrollbar {
  width: 8px;
}

.enc-list::-webkit-scrollbar-track {
  background: #0b0e14;
  border: 1px solid var(--border);
}

.enc-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold), var(--gold-dim));
}

.enc-list-ships {
  max-height: none;
}

.enc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 11px;
  background: linear-gradient(180deg, #141923 0%, #0f131b 100%);
  color: var(--ink);
  border: 1px solid var(--border);
  border-left: 2px solid transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.enc-item[hidden] {
  display: none;
}

.enc-item:hover {
  border-color: var(--border-hi);
  background: #1a2130;
}

.enc-item.active {
  border-color: rgba(235, 164, 26, 0.7);
  border-left: 3px solid var(--gold-hi);
  background: linear-gradient(90deg, rgba(235, 164, 26, 0.18) 0%, rgba(235, 164, 26, 0.06) 100%);
  color: var(--gold-hi);
}

.enc-logo {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.enc-swatch {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-hi);
}

.enc-view {
  padding: 20px;
  min-width: 0;
  --frame-color: rgba(235, 164, 26, 0.45);
}

.enc-stage {
  position: relative;
  aspect-ratio: 3 / 2;
  background: #010206;
  border: 1px solid var(--border-hi);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.85);
}

/* Cockpit HUD corner brackets inside the 3D turntable stage */
.enc-stage::before,
.enc-stage::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  z-index: 2;
}

.enc-stage::before {
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 16px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 0 / 2px 16px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 100% 0 / 16px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 100% 0 / 2px 16px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 100% / 16px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 100% / 2px 16px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 100% 100% / 16px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 100% 100% / 2px 16px no-repeat;
  opacity: 0.55;
}

.enc-stage.dragging {
  cursor: grabbing;
}

.enc-stage:focus-visible {
  outline: 2px solid var(--gold-hi);
}

.enc-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transform: translateZ(0);
}

.enc-tag {
  position: absolute;
  top: 16px;
  left: 20px;
  pointer-events: none;
  z-index: 3;
}

.enc-tag h3 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.enc-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
}

.enc-hint {
  position: absolute;
  right: 18px;
  bottom: 16px;
  padding: 4px 10px;
  background: rgba(8, 10, 14, 0.78);
  border: 1px solid rgba(75, 90, 115, 0.55);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  pointer-events: none;
  z-index: 3;
}

.enc-blurb {
  margin: 18px 0 14px;
  color: var(--muted);
  min-height: 3.2em;
  font-size: 15px;
}

.enc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin: 0;
}

.enc-stat {
  min-height: var(--enc-stat-h, 0);                  /* (set by encyclopedia.js: every box is as tall as the tallest one) */
  padding: 10px 13px;
  background: linear-gradient(180deg, #111620 0%, #0b0e14 100%);
  border: 1px solid var(--border);
  border-left: 2px solid rgba(235, 164, 26, 0.6);
}

.enc-stat dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
}

.enc-stat dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

/* ==========================================================================
   TOPBAR ACCOUNT BUTTON
   ========================================================================== */
.btn-account-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: linear-gradient(180deg, #273041 0%, #171c27 100%);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--border-hi);
  box-shadow: inset 0 1px 0 rgba(220, 234, 255, 0.16);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  transition: transform 0.14s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.btn-account-nav svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-account-nav:hover,
.btn-account-nav[aria-current="page"],
.btn-account-nav.is-logged-in {
  color: var(--gold-hi);
  border-color: rgba(235, 164, 26, 0.78);
  text-decoration: none;
}

.btn-account-nav:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 160, 0.28),
    0 4px 14px rgba(235, 164, 26, 0.22);
}

.btn-account-nav:active {
  transform: translateY(0);
}

/* ==========================================================================
   LEADERBOARD SECTION
   ========================================================================== */
.lb-card {
  padding: 24px 26px 26px;
  --frame-color: rgba(235, 164, 26, 0.48);
}

.lb-bar-title,
.profile-bar-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-hi);
  text-transform: uppercase;
}

.lb-scroll {
  width: 100%;
  overflow-x: auto;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.lb-table th,
.lb-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(75, 90, 115, 0.28);
  white-space: nowrap;
}

.lb-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  background: rgba(10, 13, 19, 0.65);
  border-bottom: 1px solid rgba(235, 164, 26, 0.35);
}

.lb-table tbody tr {
  transition: background 0.14s ease;
}

.lb-table tbody tr:hover {
  background: rgba(235, 164, 26, 0.06);
}

.lb-table tbody tr:last-child td {
  border-bottom: 0;
}

.lb-col-rank {
  width: 68px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--muted);
}

.lb-col-name {
  font-weight: 600;
  color: var(--ink);
}

.lb-col-num {
  text-align: right !important;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.lb-col-kills {
  color: var(--ink);
  font-weight: 700;
}

.lb-rank-1 .lb-col-rank,
.lb-rank-1 .lb-col-kills {
  color: var(--gold-hi);
}

.lb-rank-2 .lb-col-rank {
  color: #dce4f2;
}

.lb-rank-3 .lb-col-rank {
  color: #e0a36f;
}

.lb-state {
  margin: 0;
  padding: 28px 14px;
  text-align: center;
}

.lb-state-empty {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-transform: uppercase;
}

.lb-state-quiet {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   ACCOUNT PAGE
   ========================================================================== */
.account-section {
  border-top: 0;
  padding-top: 46px;
}

.account-shell {
  max-width: 620px;
}

.mock-banner {
  margin: 0 0 16px;
  padding: 8px 14px;
  background: rgba(76, 195, 247, 0.08);
  border: 1px solid rgba(76, 195, 247, 0.35);
  border-left: 3px solid var(--cyan);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-transform: uppercase;
}

.account-card {
  padding: 26px 28px 28px;
  --frame-color: rgba(235, 164, 26, 0.5);
}

.account-console-bar {
  margin-bottom: 22px;
}

.account-loading-inner {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Fixed minimum height across Log In / Create Account / Forgot panes so switching never jumps */
.auth-stage {
  min-height: 374px;
  display: flex;
  flex-direction: column;
}

.auth-pane {
  display: none;
  flex: 1;
}

.auth-pane.active {
  display: flex;
  flex-direction: column;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
}

.form-intro {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-input {
  width: 100%;
  padding: 11px 14px;
  background: #0b0f16;
  color: var(--ink);
  border: 1px solid var(--border-hi);
  font-family: var(--font-body);
  font-size: 15px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field-input::placeholder {
  color: var(--dim);
}

.field-input:focus {
  outline: none;
  border-color: var(--gold-hi);
  box-shadow: inset 0 0 0 1px rgba(255, 212, 84, 0.35);
}

.field-hint {
  margin: 2px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.form-row-between {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 22px;
}

.text-link-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold-hi);
  font-family: var(--font-body);
  font-size: 13.5px;
  cursor: pointer;
  text-decoration: none;
}

.text-link-btn:hover {
  text-decoration: underline;
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.btn-danger {
  background: linear-gradient(180deg, #56211c 0%, #351412 58%, #220c0b 100%);
  border-color: rgba(240, 101, 72, 0.72);
  color: #ffd7cf;
}

.btn-danger:hover {
  border-color: var(--danger);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 196, 184, 0.28),
    0 10px 24px rgba(0, 0, 0, 0.55),
    0 0 16px rgba(240, 101, 72, 0.3);
}

.btn-discord.is-waiting {
  background: linear-gradient(180deg, #3c4558 0%, #242b39 55%, #161b24 100%);
  border-color: var(--gold-hi);
  color: var(--gold-hi);
  box-shadow: 0 0 16px rgba(235, 164, 26, 0.25);
}

/* Fixed-height in-place status box: never jumps when answers appear or clear */
.form-status {
  margin-top: auto;
  min-height: 54px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(9, 12, 18, 0.85);
  border: 1px solid rgba(75, 90, 115, 0.4);
  border-left: 3px solid var(--border-hi);
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink);
}

.form-status.is-empty {
  border-left-color: rgba(75, 90, 115, 0.45);
}

.form-status.is-info {
  border-left-color: var(--gold);
  color: #f4dfae;
}

.form-status.is-ok {
  border-left-color: var(--ok);
  color: #b7f5c5;
}

.form-status.is-error {
  border-left-color: var(--danger);
  color: #ffb8a8;
}

.status-idle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--dim);
  text-transform: uppercase;
}

.status-link {
  color: var(--gold-hi);
  font-weight: 600;
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(75, 90, 115, 0.42);
}

.discord-auth-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Logged-in profile layout */
.account-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}

.account-meta-item {
  padding: 12px 14px;
  background: linear-gradient(180deg, #111620 0%, #0b0e14 100%);
  border: 1px solid var(--border);
  border-left: 2px solid rgba(235, 164, 26, 0.65);
}

.account-meta-item dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.11em;
  color: var(--dim);
  text-transform: uppercase;
}

.account-meta-item dd {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.account-meta-item dd.pilot-val {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  color: var(--gold-hi);
}

.account-block {
  padding-top: 20px;
  border-top: 1px solid rgba(75, 90, 115, 0.35);
}

.account-subhead {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ffffff;
}

.inline-field-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.inline-field-row .field-input {
  flex: 1;
  min-width: 0;
}

.inline-field-row .btn {
  flex-shrink: 0;
  padding: 11px 20px;
  font-size: 12.5px;
}

.account-actions-block {
  margin-top: 22px;
}

.account-action-bar,
.delete-btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.delete-confirm-box {
  margin-top: 18px;
  padding: 18px;
  background: rgba(34, 12, 11, 0.52);
  border: 1px solid rgba(240, 101, 72, 0.45);
  border-left: 3px solid var(--danger);
}

.danger-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffb8a8;
}

.danger-note {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--muted);
}

/* What We Store panel */
.storage-card {
  margin-top: 22px;
  padding: 20px 24px;
  --frame-color: rgba(75, 90, 115, 0.65);
}

.storage-title {
  margin: 4px 0 8px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

.storage-text {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (WORKS CLEANLY DOWN TO 400PX & BELOW)
   ========================================================================== */
@media (max-width: 1280px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .grid-3,
  .roadmap-grid,
  .spec-pane.active {
    grid-template-columns: 1fr;
  }
  .telemetry {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 0;
  }
  .telemetry-cell:nth-child(3)::before {
    display: none;
  }
  .enc-layout {
    grid-template-columns: 1fr;
  }
  .enc-list {
    max-height: 240px;
  }
  .enc-list-ships {
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
  }
  .enc-list-ships .enc-item {
    width: auto;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  .topbar-inner {
    height: 60px;
    gap: 6px;
  }
  .topbar-actions {
    gap: 6px;
  }
  .brand {
    font-size: 20px;
    gap: 7px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .topbar-actions .status-pill {
    display: none;
  }
  .btn-account-nav {
    padding: 6px 9px;
    font-size: 10px;
    gap: 5px;
  }
  .btn-account-nav svg {
    width: 14px;
    height: 14px;
  }
  .btn-discord-nav {
    padding: 6px 9px;
    font-size: 10px;
    gap: 5px;
  }
  .btn-discord-nav svg {
    width: 15px;
    height: 15px;
  }
  .nav-toggle {
    width: 36px;
    height: 34px;
  }
  .hero {
    padding: 36px 0 44px;
  }
  .hero-logo-wrap {
    padding: 8px 12px;
  }
  .hero-logo-wrap::before,
  .hero-logo-wrap::after {
    width: 14px;
  }
  section.section {
    padding: 46px 0;
  }
  .specs-box,
  .cta-box,
  .lb-card,
  .account-card,
  .storage-card {
    padding: 18px 16px;
  }
  .account-console-bar .console-id {
    display: none;
  }
  .inline-field-row {
    flex-direction: column;
  }
  .lb-table th,
  .lb-table td {
    padding: 9px 8px;
    font-size: 13px;
  }
  .btn {
    width: 100%;
    padding: 13px 18px;
  }
  .hero-actions {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .telemetry {
    grid-template-columns: 1fr 1fr;
    padding: 16px 8px;
  }
  .stat-val {
    font-size: 24px;
  }
  .brand {
    font-size: 18.5px;
    gap: 6px;
  }
  .brand img {
    width: 26px;
    height: 26px;
  }
  .btn-account-nav,
  .btn-discord-nav {
    padding: 6px 7px;
    font-size: 9.5px;
    letter-spacing: 0.04em;
  }
  .btn-discord-nav span {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-hud-ring,
  .pulse-dot {
    animation: none;
  }
  .js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn::after {
    display: none;
  }
}

/* ---- Developers only: the feedback list on the account page ---- */
.dev-feedback-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0;
}
.dev-feedback-count {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}
.dev-feedback-list {
  height: 420px;                      /* fixed size: the list scrolls inside, the page does not move */
  overflow-y: auto;
  border: 1px solid var(--border);
  background: var(--panel-deep);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dev-feedback-item {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 10px 12px;
}
.dev-feedback-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}
.dev-feedback-tag {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid currentColor;
}
.dev-feedback-bug { color: var(--danger); }
.dev-feedback-idea { color: var(--cyan); }
.dev-feedback-other { color: var(--gold); }
.dev-feedback-text {
  margin: 8px 0 0;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

/* an empty place that keeps the stats grid the same size for every weapon (see fillStats in encyclopedia.js) */
.enc-stat-blank {
  visibility: hidden;
}

/* ---- Language switcher (i18n.js builds the button in the header) ---- */
html.i18n-wait body {
  opacity: 0;                       /* (for a moment while the language file arrives: no flash of English) */
}
.lang-switch {
  position: relative;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: linear-gradient(180deg, #273041 0%, #171c27 100%);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--border-hi);
  box-shadow: inset 0 1px 0 rgba(220, 234, 255, 0.16);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.lang-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
  color: var(--gold-hi);
  border-color: rgba(235, 164, 26, 0.78);
}
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 172px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--border-hi);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
  z-index: 120;
}
.lang-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.lang-menu button:hover,
.lang-menu button:focus-visible {
  background: var(--panel-hi);
  color: var(--gold-hi);
  outline: none;
}
.lang-menu button[aria-selected="true"] {
  color: var(--gold-hi);
}
.lang-short {
  width: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
}
@media (max-width: 420px) {
  .lang-btn {
    padding: 6px 7px;
    font-size: 9.5px;
    letter-spacing: 0.04em;
  }
}

/* the menu moves into the drawer when the header does not fit (app.js, fitHeader) */
html.nav-collapsed .nav-links {
  display: none;
}
html.nav-collapsed .nav-toggle {
  display: inline-flex;
}

/* small screens: the header has room for the logo, the language, the account and the menu button (Discord is in the drawer; a long "Log in" in another language becomes the icon alone) */
@media (max-width: 600px) {
  .topbar-actions .btn-discord-nav {
    display: none;
  }
}
@media (max-width: 440px) {
  .topbar-actions .btn-account-nav span {
    display: none;
  }
  .topbar-actions .btn-account-nav {
    padding: 6px 9px;
  }
}

/* ---- Legal notice & Privacy page ---- */
.legal-doc {
  max-width: 920px;
  padding: 28px 32px 34px;
}
.legal-doc h2 {
  margin: 28px 0 8px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-hi);
}
.legal-doc h2:first-child {
  margin-top: 0;
}
.legal-doc p,
.legal-doc li {
  color: var(--ink);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.legal-doc ul {
  margin: 8px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-doc a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-doc code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--gold-hi);
}
.legal-table-wrap {
  margin: 12px 0 16px;
  overflow-x: auto;
}
.legal-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}
.legal-table th,
.legal-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.legal-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.legal-table td {
  color: var(--ink);
  line-height: 1.5;
}
@media (max-width: 600px) {
  .legal-doc {
    padding: 22px 18px 28px;
  }
}

@media (max-width: 600px) {
  .legal-table {
    min-width: 0;
  }
  .legal-table thead {
    display: none;
  }
  .legal-table tr {
    display: block;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
  }
  .legal-table td {
    display: block;
    border-bottom: 0;
    padding: 8px 12px;
  }
  .legal-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dim);
  }
}
