/* Forgotten Aces website. Colours, type and panels follow the front-end designs in WebMenu/ (Login, Main Menu,
   Multiplayer, Hangar, Settings): brass on gun-metal, Black Ops One titles, Oswald text, Special Elite "typed" notes. */
:root {
  --ink: #e8dfc8;
  --ink-strong: #ece3cc;
  --ink-soft: #d9cfb4;
  --muted: #b9b096;
  --gold: #c9a44c;
  --gold-hi: #f0d68a;
  --gold-focus: #e0c068;
  --brass: #8a7440;
  --brass-dim: #5d5236;
  --rule: #4a422c;
  --rule-dim: #2f2b20;
  --well: #0e1110;
  --night: #0f1a2b;
  --online: #7fbf6a;
  --stamp: #8e2b22;
  --paper: #e6dcc2;
  --paper-ink: #2a2418;
  --panel: linear-gradient(180deg, rgba(40, 44, 40, .94), rgba(20, 23, 22, .96));
  --panel-shadow: inset 0 1px 0 rgba(255, 236, 190, .15), 0 24px 50px rgba(0, 0, 0, .55);
  --title: 'Black Ops One', Impact, sans-serif;
  --body: 'Oswald', 'Arial Narrow', sans-serif;
  --typed: 'Special Elite', 'Courier New', monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--night); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--night) url(/keyart.svg) center top / cover fixed no-repeat;
  color: var(--ink); font: 400 18px/1.5 var(--body); letter-spacing: .02em;
}
body.plain { background-image: linear-gradient(180deg, rgba(10, 14, 22, .55), rgba(10, 14, 22, .92)), url(/keyart.svg); background-size: cover; }
a { color: var(--gold); }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
img, svg { max-width: 100%; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; z-index: 10; background: var(--well); padding: 8px 14px; }

/* ---------------------------------------------------------------- header & footer */
.site-head {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 28px; padding: 0 clamp(16px, 5vw, 96px); min-height: 68px;
  background: linear-gradient(180deg, rgba(10, 12, 12, .92), rgba(10, 12, 12, .78)); border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-strong); font: 400 24px/1 var(--title); letter-spacing: .04em; white-space: nowrap; }
.brand svg { flex: none; }
.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap; }
.site-nav a {
  padding: 8px 12px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 16px; letter-spacing: .18em; text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold-focus); }
.site-account { margin-left: auto; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.site-account .who { font-size: 16px; letter-spacing: .08em; color: var(--ink-strong); text-decoration: none; }
.site-account .who small { display: block; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.site-head .menu-toggle { display: none; }

.site-foot {
  margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px clamp(16px, 5vw, 120px); min-height: 56px;
  background: linear-gradient(180deg, rgba(10, 12, 12, .6), rgba(10, 12, 12, .92)); border-top: 1px solid var(--rule);
  font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.site-foot .typed { text-transform: none; letter-spacing: .06em; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--online); box-shadow: 0 0 8px var(--online); margin-right: 10px; vertical-align: middle; }
.dot.off { background: #a65b4b; box-shadow: 0 0 8px #a65b4b; }

/* ---------------------------------------------------------------- layout */
main { width: 100%; max-width: 1320px; margin: 0 auto; padding: 48px clamp(16px, 5vw, 64px) 72px; flex: 1; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 18px; margin-bottom: 36px; border-bottom: 2px solid var(--gold); }
.page-head h1 { margin: 0; font: 400 clamp(40px, 6vw, 64px)/1 var(--title); color: var(--ink-strong); letter-spacing: .03em; text-shadow: 0 4px 18px rgba(0, 0, 0, .6); }
.page-head .typed { font-size: 18px; color: var(--ink-soft); }
.grid { display: grid; gap: 28px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.spacer { flex: 1; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- type */
.typed { font-family: var(--typed); }
.eyebrow { font-size: 15px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--muted); }
h2 { margin: 0; font: 400 30px/1.15 var(--title); color: var(--ink-strong); letter-spacing: .05em; }
h3 { margin: 0; font: 400 24px/1.2 var(--title); color: var(--ink-strong); letter-spacing: .04em; }
p { margin: 0; }
.lede { font-family: var(--typed); font-size: 19px; line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }

/* ---------------------------------------------------------------- panels */
.panel { background: var(--panel); border: 1px solid var(--brass); box-shadow: var(--panel-shadow); padding: 30px clamp(20px, 3vw, 40px); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--rule); }
.panel-head .typed { font-size: 15px; color: var(--gold); letter-spacing: .1em; }
.paper {
  background: var(--paper); color: var(--paper-ink); box-shadow: 0 18px 40px rgba(0, 0, 0, .55); padding: 26px 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.paper.tilt { transform: rotate(-1.2deg); }
.paper h3 { color: var(--paper-ink); font-size: 22px; letter-spacing: .06em; }
.paper .paper-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 2px solid var(--paper-ink); padding-bottom: 8px; }
.paper p, .paper li { font-family: var(--typed); font-size: 17px; line-height: 1.55; }
.paper ul { margin: 0; padding-left: 22px; }
.paper a { color: #5a4512; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 15px; }
.stamp { font-family: var(--typed); font-size: 14px; color: var(--stamp); border: 2px solid var(--stamp); padding: 2px 8px; transform: rotate(4deg); white-space: nowrap; }

/* ---------------------------------------------------------------- forms & buttons (naw-input / naw-btn from Login.dc.html) */
label.field { display: flex; flex-direction: column; gap: 8px; }
label.field > span { font-size: 15px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.input {
  width: 100%; height: 52px; padding: 0 16px; background: var(--well); border: 1px solid var(--brass-dim); border-bottom-color: var(--brass);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .7); color: var(--ink-strong); font: 400 20px var(--body); letter-spacing: .04em; outline: none; border-radius: 0;
}
.input:focus { border-color: var(--gold-focus); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .7), 0 0 0 2px rgba(224, 192, 104, .35); }
.hint { font-family: var(--typed); font-size: 15px; color: var(--muted); line-height: 1.45; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px;
  text-decoration: none; font: 600 19px var(--body); letter-spacing: .2em; text-transform: uppercase; border: 1px solid #2a2418; cursor: pointer; border-radius: 0;
}
.btn-primary { background: linear-gradient(180deg, #e2c36f, #b08a35 55%, #8c6a24); color: #1d1609; box-shadow: inset 0 1px 0 rgba(255, 245, 210, .7), 0 4px 0 #4a3812, 0 10px 18px rgba(0, 0, 0, .45); }
.btn-primary:hover { background: linear-gradient(180deg, #f0d687, #c49c42 55%, #9b7629); color: #120d04; }
.btn-ghost { background: linear-gradient(180deg, #3a3f39, #262a26); color: #e8dfc8; border-color: var(--brass-dim); box-shadow: inset 0 1px 0 rgba(255, 236, 190, .12), 0 3px 0 #101210; }
.btn-ghost:hover { background: linear-gradient(180deg, #474d45, #2e332e); color: #fff; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; letter-spacing: .16em; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-danger { color: #f1b3a4; }
.btn-provider { justify-content: flex-start; padding-left: 18px; letter-spacing: .12em; font-size: 17px; }
.btn-provider svg { width: 22px; height: 22px; flex: none; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; letter-spacing: .24em; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.notice { padding: 12px 16px; border-left: 4px solid var(--gold-focus); background: rgba(201, 164, 76, .14); font-size: 17px; }
.notice.error { border-left-color: #c8553d; background: rgba(200, 85, 61, .16); }
.tabs { display: flex; gap: 4px; margin-bottom: 22px; }
.tab { flex: 1; min-height: 50px; background: transparent; border: 0; border-bottom: 2px solid var(--rule); color: var(--muted); font: 500 17px var(--body); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--gold-focus); background: linear-gradient(0deg, rgba(201, 164, 76, .2), rgba(201, 164, 76, 0)); }

/* ---------------------------------------------------------------- hero (Main.dc.html title block) */
.hero { min-height: calc(100vh - 68px - 56px); display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-top: 24px; padding-bottom: 48px; }
.hero .kicker { display: flex; align-items: center; gap: 14px; font-size: clamp(14px, 2vw, 20px); letter-spacing: .42em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.hero h1 { margin: 0; font: 400 clamp(64px, 11vw, 132px)/.92 var(--title); letter-spacing: .02em; color: var(--ink-strong); text-shadow: 0 4px 0 #3a2f1c, 0 10px 30px rgba(0, 0, 0, .6); }
.hero .years { display: flex; align-items: center; gap: 16px; }
.hero .years::before { content: ""; width: min(220px, 30vw); height: 2px; background: var(--gold); }
.hero .years span { font-family: var(--typed); font-size: 20px; color: var(--ink-soft); letter-spacing: .12em; }

/* ---------------------------------------------------------------- arena cards (Arenas.dc.html) */
.arena { text-align: left; display: flex; flex-direction: column; gap: 10px; padding: 26px 30px; background: var(--panel); border: 1px solid var(--brass); box-shadow: var(--panel-shadow); border-left: 4px solid var(--gold-focus); }
.arena h3 { font-size: clamp(30px, 4vw, 40px); }
.arena .facts { display: flex; flex-wrap: wrap; gap: 8px 36px; padding-top: 12px; margin-top: 4px; border-top: 1px solid #3a3424; font-size: 17px; letter-spacing: .08em; }
.arena .facts span span { color: var(--muted); }
.online { display: inline-flex; align-items: center; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: #9fd08a; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 17px; }
th { text-align: left; font-weight: 500; font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); padding: 12px 14px; border-bottom: 1px solid var(--brass); background: rgba(0, 0, 0, .25); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--rule-dim); vertical-align: middle; }
tr:hover td { background: rgba(201, 164, 76, .07); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pos { font-family: var(--typed); color: var(--gold); width: 3em; }
.callsign { color: var(--ink-strong); font-weight: 500; letter-spacing: .05em; }
.tag { color: var(--gold); }
.rank-pill { display: inline-block; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); border: 1px solid var(--brass-dim); padding: 2px 8px; white-space: nowrap; }
.ranks-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ranks-list li { border: 1px solid var(--brass-dim); background: rgba(0, 0, 0, .3); padding: 4px 12px; font-size: 15px; letter-spacing: .06em; }
.ranks-list b { color: var(--gold); font-weight: 500; }

/* ---------------------------------------------------------------- pilot card (MainMenu.dc.html) */
.pilot-card { display: flex; gap: 22px; align-items: center; }
.roundel { width: 84px; height: 84px; flex: none; display: flex; align-items: center; justify-content: center; background: #2f4f7a; border: 2px solid var(--gold); border-radius: 50%; }
.pilot-card .name { font: 400 clamp(26px, 3.4vw, 34px)/1.1 var(--title); color: var(--ink-strong); letter-spacing: .04em; overflow-wrap: anywhere; }
.pilot-card .stats { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 17px; color: var(--ink-soft); letter-spacing: .08em; }
.meter { height: 12px; background: var(--well); border: 1px solid var(--rule); }
.meter > div { height: 100%; background: linear-gradient(90deg, #8c6a24, #e2c36f); }
.progress-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.progress-list div { border: 1px solid var(--rule); background: rgba(0, 0, 0, .25); padding: 10px 12px; }
.progress-list b { display: block; font: 400 26px var(--title); color: var(--ink-strong); }
.progress-list span { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.progress-list .done b { color: var(--gold); }

/* ---------------------------------------------------------------- faq */
details { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; list-style: none; padding: 18px 0; font-size: 21px; letter-spacing: .06em; color: var(--ink-strong); display: flex; gap: 14px; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; color: var(--gold); font-family: var(--typed); width: 1em; }
details[open] summary::before { content: "–"; }
details .answer { padding: 0 0 20px 32px; font-family: var(--typed); font-size: 17px; line-height: 1.6; color: var(--ink-soft); display: flex; flex-direction: column; gap: 10px; }
kbd { font-family: var(--body); font-size: 15px; padding: 1px 7px; border: 1px solid var(--brass-dim); border-bottom-width: 2px; background: var(--well); color: var(--ink-strong); }
.keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 24px; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 1180px) {
  .site-head { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 12px; }
  .site-head .menu-toggle { display: inline-flex; margin-left: auto; }
  .site-nav { order: 3; flex-basis: 100%; display: none; flex-direction: column; align-items: stretch; }
  .site-nav.open { display: flex; }
  .site-account { order: 2; margin-left: 0; }
}
@media (max-width: 900px) {
  body { background-attachment: scroll; }
  .paper.tilt { transform: none; }
  .brand span { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
