/* Colours follow the game's own UI: night-sky navy with a gold accent. */
:root {
  --bg: #070b1a;
  --panel: #0e1530;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #ffc93c;
  --gold-dark: #d9a92a;
  --gold-light: #ffd75e;
  --on-gold: #1a1405;
  --blue: #5aa9ff;
  --ink: #f2f4fa;
  --muted: #a7b0c8;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--blue); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 11, 26, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; }
.brand { font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.brand span { color: var(--gold); }
.site-header nav a { margin-left: 1.25rem; text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.site-header nav a:hover { color: var(--ink); }

/* Hero: the game's menu art carries the logo, so the heading sits below it */
.hero { text-align: center; padding-bottom: clamp(2.5rem, 7vw, 4.5rem); }
.hero-art {
  display: block; width: 100%; max-height: 72vh; object-fit: cover; object-position: center 35%;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}
.hero h1 {
  margin: 0.5rem 0 0; font-size: clamp(2.2rem, 7vw, 4.5rem); line-height: 1;
  font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em;
}
.hero h1 span { color: var(--gold); }
.hero .tagline { margin: 0.6rem 0 0; color: var(--gold-light); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.hero .lead { max-width: 40rem; margin: 1.25rem auto 2rem; font-size: 1.15rem; }

.btn {
  display: inline-block; padding: 0.85rem 1.6rem; border-radius: 8px;
  background: linear-gradient(var(--gold), var(--gold-dark)); color: var(--on-gold);
  font-weight: 700; text-decoration: none;
}
.btn:hover { background: var(--gold-light); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); margin-left: 0.5rem; }
.btn.ghost:hover { border-color: var(--gold); }

/* Sections */
section { padding: clamp(3rem, 8vw, 5rem) 0; }
section h2 { margin: 0 0 0.5rem; font-size: clamp(1.6rem, 4vw, 2.4rem); text-transform: uppercase; letter-spacing: 0.02em; }
section .intro { margin: 0 0 2rem; color: var(--muted); max-width: 44rem; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-bottom: 3px solid var(--gold-dark);
  border-radius: 10px; padding: 1.5rem;
}
.card h3 { margin: 0 0 0.5rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.03em; }
.card p { margin: 0; color: var(--muted); }

.band { background: var(--panel); border-block: 1px solid var(--line); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem 2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--gold); }

.platforms { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 2rem; }
.platform { border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.25rem; background: var(--bg); }
.platform strong { display: block; }
.platform span { color: var(--muted); font-size: 0.92rem; }

/* Text pages */
.doc { padding: 3rem 0 5rem; }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase; margin-bottom: 0.25rem; }
.doc h2 { margin: 2.25rem 0 0.5rem; font-size: 1.25rem; color: var(--gold); }
.doc .updated { color: var(--muted); margin-top: 0; }

.site-footer { padding: 2rem 0; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.site-footer a { color: var(--muted); margin-left: 1rem; }

@media (max-width: 520px) {
  .site-header nav a { margin-left: 0.8rem; font-size: 0.85rem; }
  .btn.ghost { margin: 0.75rem 0 0; }
}

/* Stat strip */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 2rem 0 0; padding: 0; list-style: none; }
.stats li { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1rem; text-align: center; }
.stats strong { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--gold); font-weight: 900; }
.stats span { color: var(--muted); font-size: 0.9rem; }

/* Page hero for inner pages */
.page-hero { padding: clamp(2.5rem, 7vw, 4.5rem) 0 0; }
.page-hero h1 { margin: 0; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1; font-weight: 900; text-transform: uppercase; }
.page-hero h1 span { color: var(--gold); }
.page-hero .lead { max-width: 44rem; font-size: 1.15rem; margin: 1rem 0 0; }
.kicker { margin: 0 0 0.6rem; color: var(--gold-light); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.9rem; }

/* Two-column feature rows */
.split { display: grid; gap: 1.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); align-items: start; }
.split h3 { margin: 0 0 0.4rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.03em; }
.split p { margin: 0 0 0.75rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.8rem; font-size: 0.9rem; background: var(--bg); }

/* Help pages */
.help { display: grid; gap: 2.5rem; grid-template-columns: 220px minmax(0, 1fr); padding: 2.5rem 0 5rem; align-items: start; }
.help-nav { position: sticky; top: 4.5rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 1rem; }
.help-nav h2 { margin: 0 0 0.5rem; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.help-nav a { display: block; padding: 0.35rem 0.6rem; border-radius: 6px; color: var(--ink); text-decoration: none; }
.help-nav a:hover { background: rgba(255, 255, 255, 0.06); }
.help-nav a[aria-current="page"] { background: var(--gold); color: var(--on-gold); font-weight: 700; }
.help-body { max-width: 48rem; }
.help-body h1 { margin: 0 0 0.5rem; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; text-transform: uppercase; }
.help-body h2 { margin: 2.75rem 0 0.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 1.5rem; color: var(--gold); scroll-margin-top: 5rem; }
.help-body h3 { margin: 1.5rem 0 0.25rem; font-size: 1.1rem; }
.help-body .lead { color: var(--muted); font-size: 1.1rem; margin-top: 0; }
.help-body li { margin-bottom: 0.3rem; }
.toc { columns: 2; padding-left: 1.2rem; }
.tip { margin: 1.25rem 0; padding: 0.9rem 1.1rem; border-left: 4px solid var(--gold); background: rgba(255, 201, 60, 0.08); border-radius: 0 8px 8px 0; }
.tip strong:first-child { color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; margin-right: 0.4rem; }
.table-scroll { overflow-x: auto; }
table.opts { width: 100%; border-collapse: collapse; margin: 0.75rem 0 1rem; font-size: 0.95rem; }
table.opts th, table.opts td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.opts th { color: var(--muted); font-weight: 600; white-space: nowrap; }
table.opts thead th { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; }
kbd { font: inherit; font-size: 0.85em; padding: 0.1rem 0.45rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--panel); white-space: nowrap; }
.topic-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 1.5rem; }
.topic-grid a { display: block; text-decoration: none; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-bottom: 3px solid var(--gold-dark); border-radius: 10px; padding: 1.1rem 1.25rem; }
.topic-grid a:hover { border-color: var(--gold); }
.topic-grid strong { display: block; color: var(--gold); text-transform: uppercase; letter-spacing: 0.03em; }
.topic-grid span { color: var(--muted); font-size: 0.92rem; }

@media (max-width: 800px) {
  .help { grid-template-columns: 1fr; gap: 1.5rem; }
  .help-nav { position: static; }
  .help-nav a { display: inline-block; }
  .toc { columns: 1; }
}

/* Screenshots */
figure.shot-fig { margin: 1.5rem 0; }
figure.shot-fig a { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
figure.shot-fig a:hover { border-color: var(--gold); }
figure.shot-fig img { display: block; width: 100%; height: auto; }
figure.shot-fig figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.9rem; }
.gallery { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.gallery figure.shot-fig { margin: 0; }
.gallery.pair { margin-top: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }

/* Narrow phones: let the header links drop under the brand */
@media (max-width: 600px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0.3rem 1rem; padding: 0.6rem 0; }
  .site-header nav a:first-child { margin-left: 0; }
  .help-nav { top: auto; }
}
.gallery.duo { margin: 1.5rem 0; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
