/* Local Line support pages, in the game's own kit (shared-ui ui/Kit.kt):
   a near-black sheet, white ink, one yellow for the thing to press,
   Roboto Condensed Bold for every label, mixed-case titles, caps for status words. */

:root {
  --page: #07080c;
  --sheet: rgba(12, 14, 20, .96);
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, .72);
  --ink-dim: rgba(255, 255, 255, .5);
  --hairline: rgba(255, 255, 255, .08);
  --fill: rgba(255, 255, 255, .06);
  --go: #FFD600;
  --amber: #FFB74D;
  --red: #EF5350;
  --panel: rgba(11, 20, 38, .8);
  --line: #FFD600;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16.5px/1.65 Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--go); text-underline-offset: 2px; }
a:hover { color: #fff; }
code { font: 500 .88em/1 "Roboto Mono", ui-monospace, monospace; background: var(--fill); padding: 2px 6px; border-radius: 4px; }
strong { font-weight: 700; color: #fff; }

/* ---------- the top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 20px;
  background: rgba(7, 8, 12, .85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.bar .mark { font: 700 18px/1 "Roboto Condensed", sans-serif; letter-spacing: -.01em; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.bar .mark i { width: 22px; height: 4px; border-radius: 2px; background: var(--go); }
.bar nav { margin-left: auto; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.bar nav::-webkit-scrollbar { display: none; }
.bar nav a {
  font: 700 12.5px/1 "Roboto Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-dim); text-decoration: none; padding: 9px 12px; border-radius: 999px; white-space: nowrap;
}
.bar nav a:hover { color: #fff; background: var(--fill); }
.bar nav a[aria-current] { color: #000; background: #fff; }

/* ---------- the hero: a scene from the game, the wordmark bottom-left ---------- */
.hero {
  position: relative; min-height: 340px; display: flex; align-items: flex-end;
  background: #111 center / cover no-repeat;
  padding: 0 20px 36px;
}
.hero:before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,12,.35), rgba(7,8,12,0) 30%, rgba(7,8,12,.55) 62%, var(--page)); }
.hero.short { min-height: 230px; }
.hero > div { position: relative; width: 100%; max-width: 760px; margin: 0 auto; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.kick { display: flex; align-items: center; gap: 10px; font: 700 13px/1 "Roboto Condensed", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.kick i { width: 26px; height: 4px; border-radius: 2px; background: var(--line); }
h1 { font: 700 clamp(36px, 7vw, 56px)/1.02 "Roboto Condensed", sans-serif; letter-spacing: -.03em; margin: 10px 0 0; }
.hero p.meta { margin: 12px 0 0; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- the body: sheets down the page ---------- */
main { max-width: 760px; margin: 0 auto; padding: 8px 16px 64px; }
.sheet { background: var(--sheet); border-radius: 20px; padding: 22px 24px; margin: 0 0 16px; border: 1px solid var(--hairline); }
.lead { font-size: 17.5px; color: var(--ink-soft); }
.lead strong { color: #fff; }

h2 {
  font: 700 26px/1.15 "Roboto Condensed", sans-serif; letter-spacing: -.015em;
  margin: 0 0 12px; display: flex; align-items: baseline; gap: 12px;
}
h2 .n { font: 700 13px/1 "Roboto Condensed", sans-serif; letter-spacing: .12em; color: var(--go); min-width: 22px; }
h3 { font: 700 13px/1.2 "Roboto Condensed", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); margin: 22px 0 8px; }
p { margin: 0 0 12px; }
.sheet > :last-child { margin-bottom: 0; }
ul, ol { padding-left: 20px; margin: 0 0 12px; }
li { margin: 6px 0; }
li::marker { color: var(--ink-dim); }

/* tables as the game's TableRow: caps heads, hairlines */
.scroll { overflow-x: auto; margin: 12px -4px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-top: 1px solid var(--hairline); line-height: 1.5; }
th { border-top: 0; font: 700 11.5px/1.2 "Roboto Condensed", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }
td:first-child { color: #fff; font-weight: 500; }

/* the game's buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 999px; font: 700 14px/1 "Roboto Condensed", sans-serif; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.pill.go { background: var(--go); color: #000; box-shadow: 0 0 22px rgba(255, 214, 0, .25); }
.pill.ghost { background: rgba(255,255,255,.1); color: #fff; }
.pill:hover { filter: brightness(1.08); color: inherit; }
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* photo mode's own chips, as on screen (PhotoModeOverlay Chip) */
.chip {
  display: inline-block; white-space: nowrap; vertical-align: 1px;
  font: 700 11.5px/1 "Roboto Condensed", sans-serif; letter-spacing: .05em;
  padding: 5px 8px; border-radius: 4px; color: #fff;
  background: var(--panel); border: 1px solid rgba(255,255,255,.35);
}
.chip.on { color: var(--amber); border-color: var(--amber); }
.chip.tab { color: #000; background: var(--amber); border-color: var(--amber); }
.chip .ad { display: inline-block; margin-left: 4px; font-size: 9px; padding: 2px 3px; border-radius: 3px; background: var(--go); color: #000; vertical-align: 1px; }
.label { font: 700 11.5px/1 "Roboto Condensed", sans-serif; letter-spacing: .05em; color: #fff; }

/* a tip: a yellow edge, as the selected row */
.tip { background: var(--fill); border-radius: 12px; padding: 12px 16px; margin: 14px 0; box-shadow: inset 4px 0 0 var(--go); color: var(--ink-soft); font-size: 15px; }
.tip b { color: #fff; font-weight: 700; }

/* table of contents */
.toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 18px; padding: 0; margin: 4px 0 0; list-style: none; counter-reset: toc; }
.toc li { margin: 0; border-top: 1px solid var(--hairline); }
.toc a { display: flex; gap: 12px; padding: 10px 2px; color: #fff; text-decoration: none; font-weight: 500; }
.toc a:before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font: 700 13px/1.6 "Roboto Condensed", sans-serif; color: var(--go); letter-spacing: .08em; }
.toc a:hover { color: var(--go); }

/* a picture with its caption */
figure { margin: 14px 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 12px; }
figcaption { font-size: 13.5px; color: var(--ink-dim); margin-top: 8px; }

/* footer */
footer { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; color: var(--ink-dim); font-size: 14px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--ink-soft); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .sheet { padding: 18px 16px; border-radius: 16px; }
  .bar { padding: 10px 12px; gap: 8px; }
  .bar .mark span { display: none; }
  .bar nav a { padding: 8px 9px; font-size: 12px; }
  .hero { min-height: 260px; padding-bottom: 28px; }
  .hero.short { min-height: 190px; }
  h2 { font-size: 23px; }
}
