:root {
  --bg: #0b1220;
  --panel: #131c2f;
  --line: rgba(255,255,255,0.10);
  --text: #e8edf7;
  --muted: #9aa8c2;
  --gold: #f5c542;
  --accent: #5ba8f5;
  --purple: #8b6cf0;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* A faint hex wash, echoing the game's board. */
  background-image:
    radial-gradient(900px 500px at 18% -8%, rgba(91,168,245,0.14), transparent 60%),
    radial-gradient(700px 420px at 88% 8%, rgba(139,108,240,0.12), transparent 60%);
  background-attachment: fixed;
}

.wrap { max-width: 820px; margin: 0 auto; padding: 0 22px; }

header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(8,13,24,0.72);
  backdrop-filter: saturate(140%) blur(12px);
  position: sticky; top: 0; z-index: 10;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap;
}
.brand {
  font-weight: 800; font-size: 19px; letter-spacing: 0.3px;
  color: var(--gold); text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--text); }
header.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
header.site nav a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600;
}
header.site nav a:hover { color: var(--text); }

main.wrap { padding-top: 40px; padding-bottom: 72px; }

h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.5px; }
h2 { font-size: 21px; margin: 38px 0 12px; letter-spacing: -0.2px; }
h3 { font-size: 17px; margin: 26px 0 8px; }
p, li { color: #cdd7ea; }
a { color: var(--accent); }

.updated { color: var(--muted); font-size: 14px; margin: 0 0 26px; }
.lede { font-size: 18px; color: var(--text); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 18px 0;
}

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 26px 0; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.tile h3 { margin-top: 0; color: var(--gold); }
.tile p { margin-bottom: 0; font-size: 15px; }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; }

.btn {
  display: inline-block; background: var(--purple); color: #fff; text-decoration: none;
  font-weight: 700; padding: 13px 22px; border-radius: 13px; border-bottom: 3px solid rgba(0,0,0,0.30);
}
.btn:hover { filter: brightness(1.08); }

footer.site { border-top: 1px solid var(--line); padding: 26px 0 50px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

@media (max-width: 560px) {
  main.wrap { padding-top: 28px; }
  header.site nav { gap: 14px; }
}
