/* Static content pages (how to play, rules, strategy, word lists). Same palette as the game. */
:root {
  --bg: #0a0b17;
  --panel: rgba(22, 25, 52, 0.72);
  --line: rgba(140, 150, 255, 0.14);
  --line-strong: rgba(140, 150, 255, 0.3);
  --text: #eef0ff;
  --muted: #8b90b8;
  --accent: #ff4d8d;
  --accent-2: #2ec5ff;
  --good: #22c55e;
  --bad: #ff4d5e;
  --tile: #f4e4c1;
  --tile-edge: #cdb483;
  --tile-ink: #1b1530;
  --font-display: 'Chakra Petch', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-tile: 'Rubik', system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 15% -10%, #2a1a5e 0%, transparent 60%),
              radial-gradient(900px 600px at 110% 10%, #0d3b5e 0%, transparent 55%),
              var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); }
h1, h2 { font-family: var(--font-display); letter-spacing: 0.02em; line-height: 1.2; }
h1 { font-size: clamp(30px, 6vw, 44px); margin: 0.6em 0 0.4em; }
h2 { font-size: 24px; margin: 1.8em 0 0.5em; }
kbd {
  font-family: var(--font-display); font-size: 0.85em; padding: 1px 7px; border-radius: 5px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,0.05);
}
.muted { color: var(--muted); }

.top {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  max-width: 900px; margin: 0 auto; padding: 18px 16px;
}
.brand { text-decoration: none; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; flex: 1; }
.top nav a { color: var(--muted); text-decoration: none; font-family: var(--font-display); font-weight: 600; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }

main { max-width: 900px; margin: 0 auto; padding: 0 16px 40px; }
.lead { font-size: 1.15em; color: #d4d7f5; }
.steps li { margin-bottom: 0.7em; }

/* Letter tiles, as in the game. */
.tiles { display: inline-flex; gap: 3px; vertical-align: middle; margin: 2px 0; }
.t {
  position: relative; display: inline-grid; place-items: center;
  width: 1.7em; height: 1.75em; border-radius: 6px;
  background: var(--tile); color: var(--tile-ink); box-shadow: 0 3px 0 var(--tile-edge);
  font: 800 0.95em var(--font-tile);
}
.t sub { position: absolute; right: 3px; bottom: 1px; font-size: 0.5em; line-height: 1; }
.logo .t { width: 1.5em; height: 1.55em; font-size: 15px; }
.add .t { background: #c9f5d9; box-shadow: 0 3px 0 var(--good); }
.steal { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 14px 4px 0; }
.steal .op { color: var(--muted); font-weight: 700; }
.steal.no { position: relative; opacity: 0.75; }
.steal.no::after { content: '✕'; color: var(--bad); font-weight: 800; margin-left: 2px; }
.examples { display: flex; flex-wrap: wrap; }

table { border-collapse: collapse; width: 100%; margin: 0.5em 0 1em; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-family: var(--font-display); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; }

.words {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px;
}
.words li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
}
.words li.common { border-color: var(--accent-2); }
.words b { font-family: var(--font-tile); letter-spacing: 0.06em; }
.words span { color: var(--muted); font-size: 0.85em; }
.list-index li { margin-bottom: 0.5em; }

.play {
  margin-top: 3em; padding: 24px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--panel);
  text-align: center;
}
.play h2 { margin-top: 0; }
.cta {
  display: inline-block; padding: 12px 22px; border-radius: 12px; text-decoration: none;
  background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.cta.small { padding: 8px 14px; font-size: 14px; }

footer { max-width: 900px; margin: 0 auto; padding: 24px 16px 48px; color: var(--muted); font-size: 0.9em; border-top: 1px solid var(--line); }

@media (max-width: 600px) {
  .top { gap: 12px; }
  .top .cta.small { display: none; }
}
