/* Hely Strike — the game's own palette, read from ui/ui_kit.gd (Figma-derived).
   Knewave is the game's only typeface; Archivo carries body copy and numerals,
   which Knewave is poor at. */
@import url('https://fonts.googleapis.com/css2?family=Knewave&family=Archivo:wght@400;600;700;800&display=swap');

:root {
  --page:   #0e1221;   /* medals_screen PAGE_BG */
  --row:    #161c32;
  --edge:   #29345a;
  --navy:   #1a2440;
  --gold:   #f7b80d;
  --gold-l: #ffd952;
  --blue:   #3b78db;
  --blue-l: #619ef7;
  --text:   #e8edf8;
  --muted:  #93a1c0;
  --dim:    #6f7d9c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
.kw { font-family: Knewave, "Comic Sans MS", cursive; font-weight: 400; letter-spacing: .5px; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 22px; }
a { color: var(--gold); }
a:hover { color: var(--gold-l); }

/* ---- header ---- */
header.top {
  border-bottom: 1px solid var(--edge);
  background: rgba(14,18,33,.92);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
}
header.top .wrap { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
header.top img { width: 34px; height: 34px; border-radius: 8px; }
header.top .name { font-family: Knewave, cursive; font-size: 21px; }
header.top nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
header.top nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; }
header.top nav a:hover { color: var(--gold-l); }

/* ---- hero ---- */
.hero { padding: 68px 0 52px; text-align: center; }
.hero img.icon { width: 116px; height: 116px; border-radius: 26px; box-shadow: 0 10px 34px rgba(0,0,0,.55); }
.hero h1 { font-family: Knewave, cursive; font-size: clamp(40px, 8vw, 68px); margin: 20px 0 6px; font-weight: 400; }
.hero p.tag { font-size: clamp(17px, 3vw, 21px); color: var(--muted); margin: 0 auto; max-width: 34ch; }

.shots { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 44px 0 0; }
.shots img { width: 260px; max-width: 78vw; border-radius: 14px; border: 3px solid #fff; box-shadow: 0 8px 24px rgba(0,0,0,.5); }

/* ---- sections ---- */
section { padding: 46px 0; border-top: 1px solid var(--edge); }
section h2 { font-family: Knewave, cursive; font-weight: 400; font-size: 30px; margin: 0 0 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 22px; }
.card { background: var(--row); border: 1px solid var(--edge); border-radius: 12px; padding: 18px 20px; }
.card h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: .3px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---- legal pages ---- */
.legal { padding: 44px 0 72px; }
.legal h1 { font-family: Knewave, cursive; font-weight: 400; font-size: 38px; margin: 0 0 4px; }
.legal .updated { color: var(--dim); font-size: 14px; margin: 0 0 30px; }
.legal h2 { font-size: 19px; margin: 34px 0 8px; color: var(--gold-l); }
.legal p, .legal li { color: #c6d0e4; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 7px; }
.legal .callout {
  background: var(--row); border: 1px solid var(--edge);
  border-left: 3px solid var(--gold); border-radius: 8px;
  padding: 16px 18px; margin: 22px 0;
}
.legal .callout p { margin: 0; }

footer {
  border-top: 1px solid var(--edge); padding: 28px 0 44px;
  color: var(--dim); font-size: 14px;
}
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--gold-l); }
footer .sp { margin-left: auto; }
