:root {
  /* Step Up Learning look (matches stepuplearning.co and lifeskills.stepuplearning.co) */
  --bg: #f7fafc;          /* page */
  --panel: #ffffff;       /* cards */
  --ink: #2d3748;         /* headings */
  --text: #4a5568;        /* body text */
  --muted: #718096;
  --line: #e2e8f0;
  --accent: #4c51bf;      /* indigo: headings, outlines, highlights */
  --accent-ink: #ffffff;
  --cta: #c05621;         /* burnt orange: main buttons */
  --header: #a0cac1;      /* teal header */
  --nav: #d06767;         /* coral nav links */
  --mint: #e6f4f1;        /* pills */
  --good: #2f855a;
  --bad: #c53030;
  --card-back: linear-gradient(135deg, #4c51bf, #6b74d6);
  --radius: 8px;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex; flex-direction: column;
}
main.screen { flex: 1 0 auto; width: 100%; }
h1, h2, h3 { color: var(--ink); }

.hidden { display: none !important; }

.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px; min-height: 88px;
  background: var(--header);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 64px; height: 64px; }
.brand-text { display: grid; line-height: 1.1; }
.brand-kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.brand-name { font-size: 24px; font-weight: 700; }
.topnav { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.topnav a, .topnav .sound {
  color: var(--nav); font-weight: 600; font-size: 16px; text-decoration: none;
  background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit;
}
.topnav a:hover, .topnav .sound:hover { text-decoration: underline; }
.tag { font-size: 13px; color: var(--muted); background: var(--bg); padding: 3px 10px; border-radius: 99px; }

/* ---------- Home ---------- */
#home { max-width: 1000px; margin: 0 auto; padding: 28px 20px 48px; }
.hero {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 28px;
}
.hero-row { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: end; }
.hero-row .field { margin-bottom: 0; }
.name-field { flex: 1 1 240px; max-width: 340px; }
.join-inputs { display: flex; gap: 8px; }
.join-inputs input { width: 120px; }
.tiles-title { margin: 28px 0 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.tile {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; text-align: left;
  background: var(--panel); border: 2px solid var(--line); border-radius: 18px;
  padding: 18px; cursor: pointer; font: inherit; color: var(--ink); box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.tile:hover, .tile:focus-visible { transform: translateY(-3px); border-color: var(--accent); }
.tile-art {
  height: 96px; border-radius: 12px; display: grid; place-items: center; font-size: 56px;
  background: var(--tile-bg, #eef2ff);
}
.tile-name { font-size: 20px; font-weight: 700; margin-top: 4px; }
.tile-blurb { color: var(--muted); font-size: 14px; line-height: 1.4; }
.tile-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pill { font-size: 12px; background: var(--bg); color: var(--muted); border-radius: 99px; padding: 3px 9px; }
.pill.robo { background: #eef7ee; color: #2c7a4b; }
.card-panel {
  width: 100%; max-width: 400px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px;
}
h1 { margin: 0 0 6px; font-size: 30px; }
h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 20px 0 8px; }
.sub { color: var(--muted); margin: 0 0 22px; line-height: 1.45; }

.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
input, select {
  font: inherit; color: var(--ink);
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; width: 100%;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.btn {
  font: inherit; font-weight: 600; cursor: pointer;
  padding: 11px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.btn:hover { border-color: #c9c3b6; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); width: 100%; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 20px 0 14px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.join-row input { text-transform: uppercase; letter-spacing: .2em; font-weight: 700; text-align: center; }

.error { color: var(--bad); min-height: 1.2em; font-size: 14px; margin: 12px 0 0; }
.hint { color: var(--muted); font-size: 14px; }

/* ---------- Room ---------- */
#room {
  display: grid; grid-template-columns: 260px 1fr; gap: 20px;
  max-width: 1100px; margin: 0 auto; padding: 20px;
}
.side {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; align-self: start;
}
.room-code { display: grid; gap: 6px; }
.room-code .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.room-code strong { font-size: 34px; letter-spacing: .18em; }

.players { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.players li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 10px; background: var(--bg);
  border: 2px solid transparent;
}
.players li.turn { border-color: var(--accent); background: #eaf1ff; }
.players .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.players .dot.off { background: #c4c0b6; }
.players .pname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.players .score { font-weight: 700; }
.players .badge { font-size: 11px; color: var(--muted); }

.host-controls { margin-top: 14px; }
.mode-info {
  margin-top: 14px; padding: 10px 12px; border-radius: 10px;
  background: #f3effe; color: #4b3aa6; font-size: 13px; display: grid; gap: 2px;
}
.mode-info strong { font-size: 14px; }
#leave { margin-top: 0; width: auto; }

.play { min-width: 0; }
.status {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 16px; font-weight: 600; text-align: center;
}
.status.mine { background: #eaf1ff; border-color: var(--accent); color: var(--accent); }
.status.win { background: #e7f7ef; border-color: var(--good); color: var(--good); }

/* ---------- Board ---------- */
.board {
  --cols: 4;
  display: grid; grid-template-columns: repeat(var(--cols), 1fr);
  gap: 8px; max-width: 460px; margin: 0 auto;
}
.mcard {
  aspect-ratio: 3 / 4; perspective: 800px;
  border: 0; padding: 0; background: none; cursor: pointer;
}
.mcard:disabled { cursor: default; }
.mcard .inner {
  position: relative; width: 100%; height: 100%;
  transition: transform .35s ease; transform-style: preserve-3d;
}
.mcard.up .inner { transform: rotateY(180deg); }
.mcard .face, .mcard .back {
  position: absolute; inset: 0; border-radius: 12px;
  backface-visibility: hidden; display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.mcard .back {
  background: var(--card-back);
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.18) 0 22%, transparent 23%),
    var(--card-back);
}
.mcard .face {
  background: #fff; border: 1px solid var(--line);
  transform: rotateY(180deg);
  font-size: clamp(22px, 5vw, 38px);
}
.mcard.matched .face { background: #f2fbf6; border-color: #bfe6d1; }
.mcard.matched { animation: pop .3s ease; }
.mcard:not(:disabled):hover .back { filter: brightness(1.08); }
.mcard:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 12px; }

@keyframes pop { 50% { transform: scale(1.06); } }

/* Shuffle mode: cards that just moved wobble and glow briefly. */
.mcard.moved .back { box-shadow: 0 0 0 3px #f5b83d, var(--shadow); }
.mcard.moved { animation: wobble .6s ease; }
@keyframes wobble {
  20% { transform: rotate(-6deg) scale(.95); }
  40% { transform: rotate(5deg) scale(.95); }
  60% { transform: rotate(-3deg); }
  80% { transform: rotate(2deg); }
}

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-size: 14px; box-shadow: var(--shadow);
}

@media (max-width: 760px) {
  #room { grid-template-columns: 1fr; padding: 12px; }
  .side { order: 2; }
  .board { gap: 7px; }
  .board.dense { gap: 4px; }
}

/* ---------- Shared bits ---------- */
.topbar .sound { margin-left: auto; }
.big-btn { font-size: 18px; padding: 14px 22px; width: auto; }
.board.bingo, .board.gofish, .board.findit, .board.copyme { display: block; max-width: 640px; }

/* ---------- Bingo ---------- */
.bingo-caller {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.bingo-ball {
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 20%, #ffe28a 21% 100%);
  border: 4px solid #f5b83d; display: grid; place-content: center; text-align: center;
}
.bingo-ball.empty { background: #f3f1ec; border-color: var(--line); color: var(--muted); }
.bingo-ball .big { font-size: 52px; font-weight: 800; line-height: 1; }
.bingo-ball .word { font-size: 15px; font-weight: 600; margin-top: 4px; }
.bingo-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bingo-history { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.bingo-history:empty { display: none; }
.chip { background: var(--bg); border-radius: 99px; padding: 4px 10px; font-size: 18px; }

.bingo-card {
  display: grid; grid-template-columns: repeat(var(--side), 1fr); gap: 8px;
  max-width: 460px; margin: 0 auto;
}
.bcell {
  aspect-ratio: 1; border-radius: 14px; border: 2px solid var(--line); background: #fff;
  display: grid; place-content: center; text-align: center; cursor: pointer; padding: 4px;
  font: inherit; color: var(--ink); position: relative;
}
.bcell .blabel { font-size: clamp(26px, 7vw, 46px); font-weight: 700; line-height: 1.05; }
.bingo-card[style*="--side: 5"] .bcell .blabel { font-size: clamp(20px, 5vw, 32px); }
.bcell .bname { font-size: 12px; color: var(--muted); margin-top: 2px; }
.bcell.free { background: #f3effe; color: #4b3aa6; }
.bcell.free .blabel { font-size: 16px; }
.bcell.glow { border-color: #f5b83d; box-shadow: 0 0 0 4px rgba(245, 184, 61, .35); }
.bcell.marked { background: #e7f7ef; border-color: var(--good); cursor: default; }
.bcell.marked::after {
  content: "⭐"; position: absolute; top: 4px; right: 6px; font-size: 18px;
}
.bcell.win { background: #fff4d6; border-color: #f5b83d; }
.bcell:disabled { opacity: 1; }

/* ---------- Go Fish ---------- */
.gf-players { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 14px; }
.gf-player {
  min-width: 150px; background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 10px 14px; text-align: center; font: inherit; color: var(--ink);
}
.gf-player.turn { border-color: var(--accent); }
.gf-player.askable { cursor: pointer; border-color: #f5b83d; background: #fff8e6; }
.gf-player.askable:hover { filter: brightness(1.03); }
.gf-name { font-weight: 700; }
.gf-backs { font-size: 20px; letter-spacing: -4px; color: var(--accent); min-height: 26px; }
.gf-sets { font-size: 18px; min-height: 22px; }
.gf-ask { margin-top: 6px; font-weight: 700; color: #b07800; }
.gf-middle {
  display: grid; gap: 6px; background: #eaf4ff; border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 14px; text-align: center;
}
.gf-pond { font-weight: 700; color: #1d5fae; }
.gf-news { font-size: 15px; display: grid; gap: 2px; }
.gf-news div:last-child { font-weight: 600; }
.gf-hand { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 10px; }
.gf-card {
  width: 92px; height: 120px; border-radius: 14px; background: #fff; border: 2px solid var(--line);
  display: grid; place-content: center; gap: 4px; position: relative; cursor: pointer;
  font: inherit; color: var(--ink); box-shadow: var(--shadow);
}
.gf-card:disabled { cursor: default; opacity: .85; }
.gf-card.selected { border-color: #f5b83d; box-shadow: 0 0 0 4px rgba(245, 184, 61, .4); transform: translateY(-6px); }
.gf-emoji { font-size: 44px; line-height: 1; }
.gf-word { font-size: 13px; color: var(--muted); }
.gf-count {
  position: absolute; top: 6px; right: 6px; background: var(--accent); color: #fff;
  border-radius: 99px; font-size: 12px; font-weight: 700; padding: 1px 7px;
}
.gf-mysets { text-align: center; color: var(--muted); font-size: 15px; }

@media (max-width: 760px) {
  .bingo-caller { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .bingo-controls { justify-content: center; }
  .gf-card { width: 76px; height: 100px; }
  .gf-emoji { font-size: 36px; }
}

/* ---------- Find It! ---------- */
.fi-prompt {
  display: grid; justify-items: center; gap: 8px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.fi-round { font-size: 13px; color: var(--muted); }
.fi-ask { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 700; }
.fi-target { font-size: 56px; line-height: 1; }
.fi-word { color: var(--accent); }
.fi-grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 12px; max-width: 480px; margin: 0 auto; }
.fi-cell {
  aspect-ratio: 1; border-radius: 18px; border: 3px solid var(--line); background: #fff;
  display: grid; place-content: center; gap: 4px; text-align: center; cursor: pointer;
  font: inherit; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s ease;
}
.fi-cell:not(:disabled):hover { transform: scale(1.03); border-color: #c9c3b6; }
.fi-cell:disabled { cursor: default; }
.fi-emoji { font-size: clamp(40px, 10vw, 64px); line-height: 1; }
.fi-name { font-size: 14px; color: var(--muted); }
.fi-cell.tried { opacity: .35; }
.fi-cell.found { border-color: var(--good); background: #e7f7ef; animation: pop .4s ease; }

/* ---------- Copy Me ---------- */
.cm-info { display: grid; justify-items: center; gap: 6px; margin-bottom: 16px; }
.cm-dots { display: flex; gap: 8px; min-height: 18px; }
.cm-dot { width: 16px; height: 16px; border-radius: 50%; background: #e3dfd5; }
.cm-dot.done { background: var(--good); }
.cm-pads { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 16px; max-width: 420px; margin: 0 auto; }
.cm-pad {
  aspect-ratio: 1; border-radius: 24px; border: 0; cursor: pointer;
  background: color-mix(in srgb, var(--pad) 35%, white);
  display: grid; place-content: center; gap: 4px; font: inherit; color: var(--ink);
  box-shadow: inset 0 -6px 0 color-mix(in srgb, var(--pad) 60%, white), var(--shadow);
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.cm-pad:disabled { cursor: default; }
.cm-emoji { font-size: clamp(44px, 11vw, 72px); line-height: 1; }
.cm-name { font-size: 15px; font-weight: 600; }
.cm-pad.lit {
  background: var(--pad); transform: scale(1.06);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--pad) 45%, white), 0 0 28px var(--pad);
}
.cm-pad.miss { background: #e9e6df; transform: scale(.97); }

/* ---------- Play with Robo (room, right side) ---------- */
.board.lobby { display: block; max-width: none; }
.robo-panel {
  max-width: 460px; margin: 10px auto 0; text-align: center;
  background: var(--panel); border: 2px dashed #c9d8f5; border-radius: 18px; padding: 22px;
}
.robo-panel .robo-face { font-size: 56px; line-height: 1; }
.robo-panel h3 { margin: 8px 0 4px; font-size: 20px; }
.robo-panel p { color: var(--muted); margin: 0 0 14px; }
.robo-toggle {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px;
  padding: 10px 16px; border-radius: 12px; background: #eef4ff; cursor: pointer; user-select: none;
}
.robo-toggle input { width: 22px; height: 22px; accent-color: var(--accent); }
.robo-panel .btn.primary { margin-top: 14px; width: auto; padding: 12px 28px; font-size: 17px; }

/* ========== Game-page flow ========== */
a.tile { text-decoration: none; }
.hero h1 { font-size: 30px; }
.tiles { margin-top: 20px; }

#game { max-width: 900px; margin: 0 auto; padding: 16px 20px 40px; }
.game-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 10px; }
.game-head h1 { font-size: 26px; margin: 0; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: auto; }
.room-chip {
  font-size: 13px; font-weight: 700; background: #eef2ff; color: #3a4bb0;
  padding: 6px 12px; border-radius: 99px;
}

.players-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 12px; }
.players-row:empty { display: none; }
.pchip {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px;
  background: var(--panel); border: 2px solid var(--line); font-size: 15px;
}
.pchip.turn { border-color: var(--accent); background: #eaf1ff; }
.pchip.off { opacity: .55; }
.pchip .score { font-weight: 800; background: var(--bg); border-radius: 99px; padding: 0 8px; }
.pchip .badge { font-size: 11px; color: var(--muted); }

.controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-bottom: 16px; }
.controls .btn.primary { width: auto; padding: 12px 30px; font-size: 18px; }

/* Lobby card on the board while waiting */
.lobby-card {
  max-width: 420px; margin: 10px auto; text-align: center; background: var(--panel);
  border: 2px dashed #c9d8f5; border-radius: 18px; padding: 24px;
}
.lobby-card p { margin: 4px 0; color: var(--muted); }
.lobby-card .btn { margin-top: 12px; }
.lobby-emoji { font-size: 56px; }
.lobby-strong { color: var(--ink) !important; font-weight: 700; font-size: 18px; }

/* Faded board preview behind the join pop-up */
.board.preview { display: block; max-width: 520px; filter: blur(2px); opacity: .45; pointer-events: none; margin-top: 30px; }
.preview-grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 10px; }
.preview-cell {
  aspect-ratio: 1; border-radius: 14px; background: var(--card-back); display: grid; place-items: center;
  font-size: 40px;
}

/* Pop-ups */
.modal-back {
  position: fixed; inset: 0; background: rgba(31, 35, 48, .35); display: grid; place-items: center;
  padding: 16px; z-index: 10;
}
.modal {
  width: 100%; max-width: 420px; background: var(--panel); border-radius: 18px; padding: 24px;
  box-shadow: 0 20px 60px rgba(20, 25, 40, .25); display: grid; gap: 4px;
}
.modal h2 { margin: 0 0 4px; font-size: 24px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.modal .sub { margin: 0 0 12px; }
.modal .hint { margin: 0 0 12px; font-size: 13px; }
.modal .robo-toggle { justify-self: start; margin-bottom: 12px; }
.modal .btn.primary { font-size: 18px; padding: 13px; }
.with-dice { display: flex; gap: 8px; }
.with-dice input { flex: 1; }
.btn.dice { padding: 0 12px; font-size: 20px; }
.back-link { justify-self: center; margin-top: 8px; color: var(--muted); font-size: 14px; text-decoration: none; }
.back-link:hover { color: var(--ink); }

@media (max-width: 760px) {
  #game { padding: 12px; }
  .head-actions { margin-left: 0; }
}

/* ========== Step Up Learning theme overrides ========== */
.btn { border-radius: 5px; font-weight: 700; border: 2px solid var(--accent); color: var(--accent); background: #fff; }
.btn:hover { border-color: var(--accent); background: #f3f4fd; }
.btn.primary { background: var(--cta); border-color: var(--cta); color: #fff; }
.btn.primary:hover { background: #a84a1c; filter: none; }
.btn.ghost { border-color: transparent; color: var(--muted); background: transparent; }
.btn.dice { border-color: var(--line); color: var(--ink); }
.hero, .modal, .lobby-card, .fi-prompt, .bingo-caller, .status, .tile, .side {
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero { border: 0; text-align: center; padding: 34px 28px; }
.hero h1 { font-size: 36px; margin: 0 0 10px; }
.hero .sub { font-size: 18px; max-width: 640px; margin: 0 auto; color: var(--text); }
.kicker-pill {
  display: inline-block; background: var(--mint); color: var(--ink); border-radius: 999px;
  padding: 6px 14px; font-size: 14px; font-weight: 700; margin-bottom: 14px;
}
.tile { border: 1px solid var(--line); }
.tile:hover, .tile:focus-visible { border-color: var(--accent); }
.tile-name { color: var(--accent); }
.pill { background: var(--mint); color: var(--ink); }
.pill.robo { background: #fdf0e8; color: var(--cta); }
.room-chip { background: var(--mint); color: var(--ink); }
.modal h2 { color: var(--accent); }
.status.mine { background: #eef0fb; border-color: var(--accent); color: var(--accent); }
.pchip.turn { border-color: var(--accent); background: #eef0fb; }
.players li.turn { border-color: var(--accent); background: #eef0fb; }
.robo-toggle { background: var(--mint); color: var(--ink); }
.fi-word { color: var(--accent); }
.gf-pond { color: var(--accent); }
input:focus, select:focus { outline-color: var(--accent); }
.game-head h1 { color: var(--ink); }

/* Footer */
.site-footer { background: #2d3748; color: #fff; margin-top: 40px; padding: 28px 24px; font-size: 14px; }
.footer-inner { max-width: 1000px; margin: 0 auto; display: grid; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-copy { color: #cbd5e0; }

@media (max-width: 760px) {
  .topbar { min-height: 0; padding: 10px 14px; flex-wrap: wrap; }
  .brand img { width: 48px; height: 48px; }
  .brand-name { font-size: 20px; }
  .topnav { margin-left: 0; gap: 4px 16px; }
  .hero h1 { font-size: 28px; }
}
