:root {
  --green: #024445;  /* brand teal */
  --green-2: #0a6466;
  --green-soft: #e3f0f0;
  --gold: #f3836e;  /* brand coral */
  --gold-soft: #fde6e1;
  --ink: #152625;
  --ink-2: #4f6463;
  --line: #dde7e7;
  --bg: #fbfcfc;
  --card: #ffffff;
  --warn: #a8402b;
  --warn-bg: #fde6e1;
  --danger: #b3261e;
  --radius: 16px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green: #6fcfcb;
    --green-2: #8fdcd8;
    --green-soft: #12302f;
    --gold: #ff9a85;
    --gold-soft: #3a1f19;
    --ink: #eef5f5;
    --ink-2: #a3b8b7;
    --line: #263636;
    --bg: #0d1717;
    --card: #152222;
    --warn: #ffb3a3;
    --warn-bg: #3a1f19;
    --danger: #ff8a80;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { min-height: 100vh; padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px); -webkit-text-size-adjust: 100%; }
a { color: var(--green-2); }
button, input, select, textarea { font: inherit; color: inherit; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 10px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { flex: 1; margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .back, .topbar .gear {
  display: grid; place-items: center; width: 40px; height: 40px; margin: -6px;
  border: 0; background: none; color: var(--green); border-radius: 999px; cursor: pointer;
}
.topbar .back[hidden] { display: none; }

main { max-width: 720px; margin: 0 auto; padding: 16px; outline: none; }

/* Bottom tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(6, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--card); border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--ink-2); text-decoration: none; font-size: 11.5px; font-weight: 600;
}
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.on { color: var(--green); }

/* Building blocks */
h2 { font-size: 22px; margin: 4px 0 6px; letter-spacing: -0.015em; }
h3 { font-size: 16px; margin: 0 0 4px; }
p { line-height: 1.5; }
.muted { color: var(--ink-2); }
.small { font-size: 13.5px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin: 10px 0;
}
.stack > * + * { margin-top: 10px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }

.hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
  color: #fff; border-radius: 20px; padding: 18px; margin-bottom: 14px;
}
@media (prefers-color-scheme: dark) { .hero { color: #0b1411; } }
.hero h2 { margin: 0 0 4px; font-size: 21px; }
.hero h2::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--gold); margin-top: 8px; }
.hero p { margin: 0 0 12px; opacity: 0.92; font-size: 14.5px; }

.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); color: var(--ink); border-radius: 14px; padding: 0 12px; border: 1px solid var(--line);
}
.search input { flex: 1; border: 0; outline: none; background: none; padding: 12px 0; font-size: 16px; }
.search svg { width: 20px; height: 20px; stroke: var(--ink-2); fill: none; stroke-width: 2; flex: none; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  display: flex; flex-direction: column; gap: 4px; min-height: 108px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; color: var(--ink); text-decoration: none;
}
.tile .ico { font-size: 24px; line-height: 1; }
.tile strong { font-size: 15.5px; }
.tile span { font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.tile.wide { grid-column: span 2; min-height: auto; }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: var(--green-soft); color: var(--green);
  white-space: nowrap;
}
.chip.gold { background: var(--gold-soft); color: var(--warn); }
.chip.grey { background: var(--line); color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.pill-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.pill-tabs::-webkit-scrollbar { display: none; }
.pill-tabs button {
  flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  padding: 7px 13px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.pill-tabs button.on { background: var(--green); border-color: var(--green); color: var(--card); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 12px; padding: 11px 16px; font-weight: 700; font-size: 15px;
  background: var(--green); color: var(--card); cursor: pointer; text-decoration: none;
}
.btn.ghost { background: var(--green-soft); color: var(--green); }
.btn.plain { background: none; color: var(--green); padding: 8px 10px; }
.btn.danger { background: none; color: var(--danger); }
.btn.block { width: 100%; }
.btn.sm { padding: 7px 11px; font-size: 13.5px; border-radius: 10px; }
.btn:disabled { opacity: 0.5; }

.say {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: var(--gold-soft); color: var(--warn);
  font-weight: 700; font-size: 14px; padding: 5px 10px; border-radius: 999px; cursor: pointer;
}
.say svg { width: 16px; height: 16px; fill: currentColor; }

.note {
  background: var(--warn-bg); color: var(--warn);
  border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; margin: 10px 0;
}
.draft { font-size: 12px; font-weight: 700; color: var(--warn); }

/* Glossary */
.term h3 { font-size: 17px; }
.term .alt { color: var(--ink-2); font-weight: 500; font-size: 14px; }
.term p { margin: 6px 0 0; }
.term .why { font-size: 14px; color: var(--ink-2); }
.az { font-size: 13px; font-weight: 800; color: var(--ink-2); margin: 18px 4px 4px; letter-spacing: 0.06em; }

/* Level ladder */
.ladder { position: relative; padding-left: 22px; }
.ladder::before { content: ""; position: absolute; left: 9px; top: 18px; bottom: 18px; width: 2px; background: var(--line); }
.rung { position: relative; }
.rung::before {
  content: attr(data-n); position: absolute; left: -22px; top: 16px;
  width: 20px; height: 20px; border-radius: 999px; background: var(--green); color: var(--card);
  display: grid; place-items: center; font-size: 11.5px; font-weight: 800;
}
.rung.me { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft); }
dl.facts { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; font-size: 14px; }
dl.facts dt { color: var(--ink-2); font-weight: 600; }
dl.facts dd { margin: 0; }

/* Checklists */
.check { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; }
.check:first-of-type { border-top: 0; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green); flex: none; }
.check.done > span { color: var(--ink-2); }
.check.done .ct { text-decoration: line-through; }
.check .tip { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: var(--green); border-radius: 99px; }

/* Forms */
label.field { display: block; margin: 12px 0; }
label.field > span { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 5px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); font-size: 16px;
}
.field textarea { min-height: 70px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two label.field { margin: 6px 0; }
.toggle { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-weight: 600; }
.toggle input { width: 22px; height: 22px; accent-color: var(--green); }

/* Score tracker */
.dance-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.dance-row:first-of-type { border-top: 0; }
.dance-row .name { flex: 1; font-weight: 600; }
.dance-row select { padding: 7px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 14px; max-width: 52%; }
.result { display: flex; gap: 12px; align-items: flex-start; }
.place {
  flex: none; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
  background: var(--green-soft); color: var(--green);
}
.place.p1 { background: #f6e2a8; color: #6b4b00; }
.place.p2 { background: #e3e6ea; color: #3c4650; }
.place.p3 { background: #f0d2b8; color: #6b3a12; }
.result .meta { flex: 1; min-width: 0; }
.result .meta strong { display: block; }
.thumb { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex: none; border: 1px solid var(--line); }
.photo-preview { width: 100%; max-height: 260px; object-fit: contain; border-radius: 12px; background: var(--line); margin-top: 8px; }
.banner {
  background: var(--gold-soft); color: var(--warn); border-radius: 14px; padding: 12px 14px; margin: 10px 0;
  display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600;
}
.banner .btn { margin-left: auto; flex: none; }
.chart { width: 100%; height: auto; display: block; margin-top: 6px; }
.chart text { fill: var(--ink-2); font-size: 10px; }
.empty { text-align: center; padding: 26px 10px; color: var(--ink-2); }
.empty .big { font-size: 40px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px);
  transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600;
  transition: opacity .2s, transform .2s; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.install { display: none; }
.install.show { display: flex; }

@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .tile.wide { grid-column: span 3; }
}

/* Reading results from a photo */
.read-text { white-space: pre-wrap; font-size: 12px; background: var(--line); padding: 8px; border-radius: 8px; max-height: 240px; overflow: auto; margin: 6px 0 0; }
.found-row { border-left: 4px solid var(--green); }
.read-prog { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--green); animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.read-prog[hidden] { display: none; }

/* 1st place celebration */
.celebrate { position: fixed; inset: 0; z-index: 100; background: rgba(8, 12, 28, 0.9); display: grid; place-items: center; padding: 16px; animation: cel-in 0.25s ease-out; }
.celebrate.out { opacity: 0; transition: opacity 0.25s; }
.celebrate canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.celebrate-card { position: relative; background: var(--card, #fff); color: var(--ink); border-radius: 20px; padding: 22px 20px 18px; max-width: 340px; width: 100%; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.35); animation: cel-pop 0.5s cubic-bezier(.2,1.4,.4,1); }
.celebrate-medal { font-size: 64px; line-height: 1; animation: cel-bob 1.2s ease-in-out infinite alternate; }
.celebrate-card h2 { margin: 10px 0 6px; font-size: 24px; color: var(--green); }
.celebrate-card p { margin: 0 0 16px; color: var(--ink-2); }
@keyframes cel-in { from { opacity: 0; } }
@keyframes cel-pop { from { transform: scale(0.6); opacity: 0; } }
@keyframes cel-bob { to { transform: translateY(-6px) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .celebrate, .celebrate-card, .celebrate-medal { animation: none; } }

/* Friends */
.tabbar a { position: relative; }
.tabbar a.has-new::after { content: ""; position: absolute; top: 9px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--danger); border: 2px solid var(--card); }
.center { text-align: center; }
.group-link { display: block; text-decoration: none; color: inherit; }
.group-link strong { display: block; font-size: 16px; }
.group-link span { display: block; margin-top: 2px; }
.code { font-size: 26px; font-weight: 800; letter-spacing: 0.18em; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.win.fresh { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); }
.cheers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cheer { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-size: 17px; cursor: pointer; }
.cheer span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.cheer.on { background: var(--green-soft); border-color: var(--green); }
.cheer.on span { color: var(--green); }
.msgs { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; }
.msgs li { padding: 6px 10px; background: var(--bg); border-radius: 10px; margin-top: 4px; }

/* Judges */
.judge-row { margin-bottom: 8px; }
.judge-places { display: flex; flex-wrap: wrap; gap: 4px; }
.pill-tabs button { white-space: nowrap; }

/* Several children */
.kid-switch { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.kid-switch a { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.kid-switch a.on { background: var(--green); border-color: var(--green); color: #fff; }
.kid-switch a.add { color: var(--green); border-style: dashed; font-weight: 500; }
.who-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.who-pick label { cursor: pointer; }
.who-pick input { position: absolute; opacity: 0; pointer-events: none; }
.who-pick span { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 14px; }
.who-pick input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.who-pick input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

/* Brand wordmark on the home page */
.brand { display: flex; justify-content: center; padding: 6px 0 14px; }
.brand img { width: min(300px, 78%); height: auto; }
@media (prefers-color-scheme: dark) { .brand img { filter: brightness(0) invert(1); } }

/* Feis calendar */
.feis h3 { margin: 2px 0 0; }
.feis-date { font-size: 13px; font-weight: 800; color: var(--green); letter-spacing: 0.02em; }
.feis.cancelled h3 { text-decoration: line-through; color: var(--ink-2); }

/* judge profiles */
.judge-line { font-size: 0.85rem; color: var(--green); margin-top: 2px; }
.judge-line .muted { color: var(--ink-2); }
.judge-tag { color: var(--gold); font-weight: 600; font-size: 0.9rem; margin: 2px 0 0; }
.judge-profile { border-top: 4px solid var(--green); }
.judge-head { display: flex; gap: 12px; align-items: center; }
.judge-head h2 { margin: 0; font-size: 1.3rem; }
.judge-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--green-soft); display: grid; place-items: center; font-size: 1.5rem; flex: none; }
.judge-facts { list-style: none; padding: 0; margin: 12px 0 0; line-height: 1.8; }
.role-pick { border: 0; padding: 0; margin: 10px 0 0; }
.role-pick legend { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.role-pick label { display: inline-flex; gap: 6px; align-items: center; margin: 0 14px 6px 0; font-size: 0.95rem; }
.school-hit h3 { font-size: 1rem; }

/* championship score sheet: every judge's rank for every round */
.grid-wrap { overflow-x: auto; margin-top: 6px; }
.panel-grid { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.panel-grid th, .panel-grid td { border-bottom: 1px solid var(--line); padding: 6px 6px; text-align: center; vertical-align: top; }
.panel-grid thead th { font-size: 0.75rem; color: var(--ink-2); font-weight: 600; }
.panel-grid tbody th { text-align: left; font-weight: 600; }
.panel-grid td strong { color: var(--green); }

/* Judges' comment trends */
.theme-card h3 { font-size: 1.05rem; }
.trend { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--line, #e6eef0); font-size: .78rem; color: inherit; }
.trend.good { background: #dff3ef; color: #0f6b5c; }
.trend.warn { background: #ffe6df; color: #a83a1d; }
.theme-quotes { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; }
.theme-quotes a { display: block; font-size: .88rem; font-style: italic; color: inherit; text-decoration: none; padding: 6px 10px; border-left: 3px solid var(--green); background: rgba(0,0,0,.03); border-radius: 6px; }
.theme-quotes a .muted { font-style: normal; font-size: .78rem; }
.tips-h { margin: 10px 0 4px; font-size: .9rem; }
.tips { margin: 0; padding-left: 20px; font-size: .9rem; }
.tips li { margin: 3px 0; }
@media (prefers-color-scheme: dark) { .trend.good { background: #12423b; color: #bfeee4; } .trend.warn { background: #4a2219; color: #ffd2c4; } .theme-quotes a { background: rgba(255,255,255,.05); } }
.sec-h { font-size: 1.05rem; margin: 16px 4px 6px; }
.journal-form textarea { width: 100%; }
.journal-entry { padding: 10px 14px; }
/* Games */
.game-card { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.game-card .ico { font-size: 30px; line-height: 1; }
.game-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.game-status { color: var(--green); font-weight: 600; }
.ws-top { gap: 8px; margin: 0 0 8px; flex-wrap: nowrap; align-items: flex-start; }
.ws-note { font-size: 12.5px; }
.ws-top .pill-tabs button { padding: 6px 12px; font-size: 14px; }
.ws-top > div:first-child { flex: 1; min-width: 0; }
.ws-top .pill-tabs { margin: 0; padding: 0; flex: none; overflow: visible; }
.ws-stats { margin: 0 2px 6px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ws-grid {
  display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px;
  max-width: 480px; margin: 0 auto; padding: 6px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.ws-cell {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px;
  font-weight: 700; font-size: clamp(14px, calc(78vw / var(--n)), 22px); color: var(--ink);
  cursor: pointer; transition: background .12s;
}
.ws-cell.found { color: #fff; }
.ws-cell.found[data-c="0"] { background: #0a8a87; }
.ws-cell.found[data-c="1"] { background: #e8664f; }
.ws-cell.found[data-c="2"] { background: #7a5cc9; }
.ws-cell.found[data-c="3"] { background: #c28a12; }
.ws-cell.found[data-c="4"] { background: #2f7fc1; }
.ws-cell.found[data-c="5"] { background: #c24a8a; }
.ws-cell.sel { background: var(--gold); color: #fff; }
.ws-grid.nope { animation: ws-shake .3s; }
@keyframes ws-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .ws-grid.nope { animation: none; } }
.ws-help { text-align: center; margin: 8px 0; }
.ws-hint { margin: 8px 0; padding: 10px 14px; }
.ws-words { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ws-words li { padding: 3px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 600; }
.ws-words li.got { text-decoration: line-through; opacity: .5; }

/* "What to work on": make it easy to find */
.workon-tile { background: var(--gold); border-color: var(--gold); color: #fff; }
.workon-tile strong, .workon-tile span { color: #fff; }
.workon-cta { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin: 12px 0 4px; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--gold); color: #fff; font: inherit; cursor: pointer; box-shadow: 0 2px 8px rgba(243,131,110,.35); }
.workon-cta .ico { font-size: 1.6rem; }
.workon-cta strong { display: block; font-size: 1.05rem; }
.workon-cta span span { display: block; font-size: .85rem; opacity: .95; }
.workon-cta > span:last-child { margin-left: auto; font-size: 1.4rem; }
.pill-tabs button.workon-pill:not(.on) { border-color: var(--gold); color: #c4553f; font-weight: 600; }

/* Feis day bingo */
.bingo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; max-width: 480px; margin: 0 auto; }
.bingo-sq {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer;
  font-size: 10px; line-height: 1.15; text-align: center; overflow: hidden; color: var(--ink); transition: background .12s, transform .12s;
}
.bingo-e { font-size: 20px; line-height: 1; }
.bingo-t { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bingo-sq.on { background: var(--green); border-color: var(--green); color: var(--card); }
.bingo-sq.free { background: var(--gold); border-color: var(--gold); color: #fff; cursor: default; }
.bingo-sq.win { box-shadow: 0 0 0 3px var(--gold); }
.bingo-sq.free.win { box-shadow: 0 0 0 3px var(--green); }
.bingo-sq:active { transform: scale(.96); }
@media (min-width: 420px) { .bingo-sq { font-size: 11.5px; } .bingo-e { font-size: 24px; } }

/* Rhythm tap */
.rt-pills { margin: 0 -16px 8px; }
.rt-info { margin: 4px 0 10px; padding: 10px 14px; }
.rt-stage { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 6px 0 4px; }
.rt-msg { min-height: 24px; font-weight: 700; text-align: center; color: var(--ink-2); }
.rt-msg.perfect { color: var(--green); }
.rt-msg.good { color: #2f7fc1; }
.rt-msg.off { color: var(--warn); }
.rt-dots { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; max-width: 340px; }
.rt-dots i { width: 12px; height: 12px; border-radius: 99px; background: var(--line); }
.rt-dots i.perfect { background: var(--green); }
.rt-dots i.good { background: #2f7fc1; }
.rt-dots i.off { background: var(--gold); }
.rt-dots i.miss { background: var(--line); box-shadow: inset 0 0 0 2px var(--warn); }
.rt-pad {
  --pulse: 0;
  width: min(48vw, 190px); aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, var(--green-2), var(--green));
  color: var(--card); font-size: 22px; font-weight: 800;
  box-shadow: 0 0 0 calc(var(--pulse) * 18px) color-mix(in srgb, var(--gold) 55%, transparent), 0 8px 24px rgba(0,0,0,.18);
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.rt-pad.live { background: radial-gradient(circle at 35% 30%, #f7a594, var(--gold)); color: #fff; }
.rt-pad.pop { animation: rt-pop .12s; }
@keyframes rt-pop { 50% { transform: scale(.94); } }
@media (prefers-reduced-motion: reduce) { .rt-pad.pop { animation: none; } }
.rt-score { width: 100%; max-width: 340px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Daily feis trivia */
.tq-dots { display: flex; gap: 6px; justify-content: center; margin: 0 0 10px; }
.tq-dots i { width: 28px; height: 6px; border-radius: 99px; background: var(--line); }
.tq-dots i.now { background: var(--gold); }
.tq-dots i.ok { background: var(--green); }
.tq-dots i.no { background: var(--warn); }
.tq-card .tq-q { font-size: 20px; margin: 4px 0 14px; line-height: 1.3; }
.tq-opt { text-align: left; justify-content: flex-start; padding: 13px 16px; font-size: 16px; }
.tq-opt.right { background: var(--green); color: var(--card); }
.tq-opt.wrong { background: var(--warn-bg); color: var(--warn); }
.tq-opt:disabled { opacity: 1; cursor: default; }
.tq-why { margin-top: 12px; }
.tq-why p { margin: 0 0 12px; }
.tq-done { text-align: center; }
.tq-done h3 { margin: 4px 0; font-size: 22px; }
.tq-big { font-size: 46px; line-height: 1; }
.tq-review-h { margin: 18px 4px 8px; font-size: 16px; }
.tq-review { padding: 12px 14px; }
.tq-review .small { margin-top: 4px; }
