/* Shared styles for the static game pages under /games/ (served as plain files, outside the React app). */
:root {
  --bg: #fff8f3;
  --surface: #ffffff;
  --fg: #2a2030;
  --muted: #6d6073;
  --line: #f0e2dc;
  --accent: #d6336c;
  --accent-soft: #ffe3ec;
  --mint: #1f9d7a;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17121b;
    --surface: #211a27;
    --fg: #f1eaf4;
    --muted: #a99db2;
    --line: #342a3c;
    --accent: #ff78a6;
    --accent-soft: #3a2230;
    --mint: #5fd3ae;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.bar {
  max-width: 760px; margin: 0 auto; padding: 20px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { font: 600 1.15rem/1 "Fredoka", "Inter", sans-serif; color: var(--fg); text-decoration: none; }
.brand span { color: var(--accent); }
.bar nav { display: flex; gap: 16px; font-size: .92rem; }
.bar nav a { color: var(--muted); text-decoration: none; }
.bar nav a:hover { color: var(--fg); }

main { max-width: 760px; margin: 0 auto; padding: 24px 16px 72px; }
h1, h2, h3 { font-family: "Fredoka", "Inter", sans-serif; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.1; margin: 0 0 8px; }
h2 { font-size: 1.3rem; margin: 2.2rem 0 .5rem; }
h3 { font-size: 1.05rem; margin: 1.4rem 0 .3rem; }
p, li { margin: .45rem 0; }
ul, ol { padding-left: 1.3rem; }
.muted { color: var(--muted); }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 58ch; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin: 16px 0;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 20px 0; }
.grid a.card { display: block; margin: 0; color: var(--fg); text-decoration: none; transition: transform .15s, border-color .15s; }
.grid a.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.grid a.card strong { display: block; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.05rem; }
.grid a.card span { color: var(--muted); font-size: .92rem; }

.game { display: flex; gap: 18px; align-items: center; }
.game .icon {
  flex: none; width: 72px; height: 72px; border-radius: 20px;
  background: linear-gradient(145deg, #ff8fb1, #d6336c); display: grid; place-items: center;
  font-size: 2.1rem;
}
.pill {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
}

.btn {
  display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 600;
  background: var(--accent); color: #fff; text-decoration: none; margin: 6px 8px 6px 0;
}
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }

ol.steps { counter-reset: s; list-style: none; padding: 0; }
ol.steps li { counter-increment: s; position: relative; padding: 4px 0 14px 48px; }
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center;
}
.note { border-left: 3px solid var(--mint); padding: 4px 0 4px 14px; color: var(--muted); }

footer { border-top: 1px solid var(--line); }
footer .bar { flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
footer .bar a { color: var(--muted); }
