/* Static SEO pages (answers archive, how to play). Same tokens and components as
   src/style.css so these pages look like the game; keep the two in step. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #121623; --surface: #1e2435; --border: #2e3550; --text: #e8eaf2; --muted: #7a8099;
  --accent: #6c8cff;
  --yellow-bg: #F9DF6D; --yellow-txt: #2a1800; --green-bg: #A0C35A; --green-txt: #0e1e00;
  --blue-bg: #7BAFD4; --blue-txt: #061626; --purple-bg: #BA81C5; --purple-txt: #1a0826;
  --radius: 10px; --radius-lg: 16px; --tile-radius: 8px;
  --font: 'Inter', system-ui, sans-serif;
}
html, body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.page { max-width: 600px; margin: 0 auto; padding: 20px 16px 48px; display: flex; flex-direction: column; gap: 20px; }

.site-head { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-mark { display: flex; gap: 4px; }
.logo-box { width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.logo-box.y { background: var(--yellow-bg); color: var(--yellow-txt); }
.logo-box.g { background: var(--green-bg); color: var(--green-txt); }
.logo-box.b { background: var(--blue-bg); color: var(--blue-txt); }
.logo-box.p { background: var(--purple-bg); color: var(--purple-txt); }
.brand { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }

.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "\203A"; margin-right: 6px; }

h1 { font-size: 26px; font-weight: 800; line-height: 1.25; }
h2 { font-size: 18px; font-weight: 700; margin-top: 4px; }
h3 { font-size: 15px; font-weight: 700; margin-top: 4px; }
.sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
p, li { font-size: 15px; }
.muted { color: var(--muted); }
.prose { display: flex; flex-direction: column; gap: 10px; }
.prose ol, .prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: var(--radius); font-size: 15px; font-weight: 600; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #7d9cff; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--border); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions .btn { flex: 1 1 200px; }

.spoiler { background: rgba(108,140,255,0.1); border: 1px solid rgba(108,140,255,0.25); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; color: var(--muted); }

.groups { display: flex; flex-direction: column; gap: 14px; }
.group { display: flex; flex-direction: column; gap: 8px; }
.solved-row { border-radius: var(--tile-radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.solved-row.y { background: var(--yellow-bg); color: var(--yellow-txt); }
.solved-row.g { background: var(--green-bg); color: var(--green-txt); }
.solved-row.b { background: var(--blue-bg); color: var(--blue-txt); }
.solved-row.p { background: var(--purple-bg); color: var(--purple-txt); }
.solved-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.solved-items { font-size: 16px; font-weight: 600; }
.why { font-size: 14px; color: #c3c7d6; padding: 0 2px; }
.why .tag { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 2px; }
.why b { color: var(--text); }
.why mark { background: rgba(108,140,255,0.28); color: var(--text); border-radius: 3px; padding: 0 1px; }

.pager { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.pager a, .pager span { flex: 1; }
.pager .mid { text-align: center; }
.pager .next { text-align: right; }

.archive-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.archive-list a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; font-size: 15px; }
.archive-list a:hover { border-color: var(--accent); }
.archive-list .n { font-weight: 700; }
.archive-list .d { color: var(--muted); font-size: 14px; white-space: nowrap; }
.month { margin-top: 8px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.how-colors { display: flex; flex-direction: column; gap: 6px; }
.how-color { padding: 10px 16px; border-radius: var(--tile-radius); font-size: 14px; font-weight: 600; }
.how-color.y { background: var(--yellow-bg); color: var(--yellow-txt); }
.how-color.g { background: var(--green-bg); color: var(--green-txt); }
.how-color.b { background: var(--blue-bg); color: var(--blue-txt); }
.how-color.p { background: var(--purple-bg); color: var(--purple-txt); }
code { font-size: 13px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }

.site-foot { border-top: 1px solid var(--border); padding-top: 16px; text-align: center; color: var(--muted); font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.site-foot a { color: inherit; }
