/* Children's Bible Games */
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito-latin-900-normal.woff2') format('woff2'); font-weight: 900; font-display: swap; }
:root { --g-purple: #4b3fd1; --g-purple-dark: #2f2496; --g-yellow: #ffc83d; --g-green: #0b7a5a; --g-pink: #ff5d8f; --g-sky: #3aa0ff;
  --a0: #e8475f; --a1: #2f7de1; --a2: #e3a008; --a3: #129e8a; --g-font: 'Nunito', 'Trebuchet MS', system-ui, sans-serif; }
.games-body { background: #f4f2ff; }
.games-body main h1, .games-body main h2, .games-body main h3 { font-family: var(--g-font); font-weight: 900; color: #231b6b; }
.g-hero { background: radial-gradient(circle at 85% 20%, rgba(255,200,61,.35), transparent 40%), linear-gradient(135deg, #4b3fd1, #7a3fd1 60%, #b23fa8); color: #fff; overflow: hidden; }
.g-hero .wrap { display: grid; gap: 24px; align-items: center; padding-top: clamp(36px, 7vw, 72px); padding-bottom: clamp(36px, 7vw, 72px); }
@media (min-width: 860px) { .g-hero .wrap { grid-template-columns: 1.3fr 1fr; } }
.g-hero h1 { color: #fff; font-size: clamp(2.6rem, 8vw, 4.4rem); margin: 0 0 .2em; letter-spacing: -.01em; }
.g-hero p { font-size: clamp(1.05rem, 2.6vw, 1.3rem); color: #f1ecff; max-width: 560px; }
.g-eyebrow { display: inline-block; background: rgba(255,255,255,.18); padding: 4px 14px; border-radius: 999px; font: 800 .85rem var(--g-font); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.g-hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.g-hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; font-size: clamp(2.4rem, 7vw, 4.2rem); text-align: center; }
.g-hero-art span { background: rgba(255,255,255,.14); border-radius: 22px; padding: 12px 0; animation: g-float 4s ease-in-out infinite; }
.g-hero-art span:nth-child(2n) { animation-delay: -2s; }
@keyframes g-float { 50% { transform: translateY(-8px); } }
.g-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 12px 26px; border-radius: 18px; border: 0; font: 900 1.15rem var(--g-font); text-decoration: none; cursor: pointer; box-shadow: 0 5px 0 rgba(0,0,0,.18); transition: transform .1s, box-shadow .1s; color: #231b6b; }
.g-btn:hover { transform: translateY(-2px); color: #231b6b; }
.g-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.g-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.g-btn-yellow { background: var(--g-yellow); }
.g-btn-green { background: var(--g-green); color: #fff; } .g-btn-green:hover { color: #fff; }
.g-btn-purple { background: var(--g-purple); color: #fff; } .g-btn-purple:hover { color: #fff; }
.g-btn-white { background: #fff; }
.g-btn-ghost { background: rgba(255,255,255,.16); color: #fff; box-shadow: none; } .g-btn-ghost:hover { color: #fff; background: rgba(255,255,255,.26); }
.g-btn-sm { min-height: 44px; padding: 8px 16px; font-size: 1rem; border-radius: 14px; }
.g-section { padding: clamp(28px, 5vw, 56px) 0 64px; }
.g-h1 { font-size: clamp(2rem, 6vw, 3rem); }
.g-h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 40px 0 16px; }
.g-note { color: #5b5585; }
.g-back { font: 800 1rem var(--g-font); color: var(--g-purple); text-decoration: none; }
.g-ages { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font: 800 1rem var(--g-font); color: #231b6b; }
.g-age { background: #fff; border: 3px solid #e3defc; color: #231b6b; padding: 8px 16px; border-radius: 999px; text-decoration: none; }
.g-age small { color: #5f5890; font-weight: 700; }
.g-age.on { background: var(--g-purple); border-color: var(--g-purple); color: #fff; } .g-age.on small { color: #e3defc; }
.g-weekly { margin-top: 26px; display: grid; gap: 6px; padding: 22px 24px; border-radius: 24px; background: linear-gradient(120deg, #ffd166, #ffb703); color: #3b2a00; text-decoration: none; box-shadow: 0 8px 0 #e09b00; }
.g-weekly:hover { color: #3b2a00; transform: translateY(-2px); }
.g-weekly strong { font: 900 1.6rem var(--g-font); }
.g-weekly .g-btn { justify-self: start; margin-top: 8px; background: #fff; }
.g-weekly-badge { font: 900 .9rem var(--g-font); text-transform: uppercase; letter-spacing: .08em; }
.g-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .g-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .g-grid { grid-template-columns: repeat(3, 1fr); } }
.g-card { background: #fff; border-radius: 24px; overflow: hidden; text-decoration: none; color: #231b6b; box-shadow: 0 6px 0 #e3defc; transition: transform .15s; display: flex; flex-direction: column; }
.g-card:hover { transform: translateY(-4px); color: #231b6b; }
.g-card-top { height: 110px; display: grid; place-items: center; background: linear-gradient(135deg, #6c5ce7, #a29bfe); }
.g-card-top[data-format=who] { background: linear-gradient(135deg, #ff7675, #fd79a8); }
.g-card-top[data-format=verse] { background: linear-gradient(135deg, #00b894, #55efc4); }
.g-card-top[data-format=tf] { background: linear-gradient(135deg, #0984e3, #74b9ff); }
.g-card-top[data-format=match] { background: linear-gradient(135deg, #e17055, #fab1a0); }
.g-card-top[data-format=picture] { background: linear-gradient(135deg, #fdcb6e, #ffeaa7); }
.g-card-top[data-format=word] { background: linear-gradient(135deg, #00cec9, #81ecec); }
.g-card-top[data-format=adventure] { background: linear-gradient(135deg, #2d3436, #6c5ce7); }
.g-card-icon { font-size: 3.4rem; filter: drop-shadow(0 4px 6px rgba(0,0,0,.2)); }
.g-card-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.g-card-body h3 { margin: 0; font-size: 1.3rem; }
.g-card-body p { margin: 0; color: #5b5585; font-size: .98rem; }
.g-chip { align-self: flex-start; background: #efeaff; color: var(--g-purple); font: 800 .78rem var(--g-font); padding: 3px 10px; border-radius: 999px; }
.g-meta { margin-top: auto; padding-top: 8px; display: flex; gap: 14px; font: 700 .88rem var(--g-font); color: #5f5890; }
.g-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 720px) { .g-cats { grid-template-columns: repeat(4, 1fr); } }
.g-cat { background: #fff; border-radius: 20px; padding: 18px; text-align: center; text-decoration: none; color: #231b6b; box-shadow: 0 5px 0 #e3defc; display: grid; gap: 2px; }
.g-cat:hover { color: #231b6b; transform: translateY(-2px); }
.g-cat span { font-size: 2.4rem; }
.g-cat b { font: 900 1.05rem var(--g-font); }
.g-cat small { color: #5f5890; font-weight: 700; }
.g-boards { display: grid; gap: 18px; }
@media (min-width: 760px) { .g-boards { grid-template-columns: 1fr 1fr; } }
.g-board { background: #fff; border-radius: 22px; padding: 18px 20px; box-shadow: 0 5px 0 #e3defc; }
.g-board h3 { margin: 0 0 10px; }
.g-board ol { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.g-board li { counter-increment: r; display: grid; grid-template-columns: 30px 36px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px dashed #e3defc; font: 800 1rem var(--g-font); color: #231b6b; }
.g-board li::before { content: counter(r); color: #5f5890; }
.g-board li:last-child { border: 0; }
.g-av { font-size: 1.6rem; }
.g-score { color: var(--g-purple); }
.g-progress-link { text-align: center; margin-top: 40px; }

/* ---------- Play screen ---------- */
.g-play-wrap { min-height: calc(100vh - 114px); background: linear-gradient(160deg, #4b3fd1, #2f2496); padding: 16px 12px 40px; }
.g-stage { max-width: 900px; margin: 0 auto; color: #fff; font-family: var(--g-font); }
.g-panel { background: #fff; color: #231b6b; border-radius: 28px; padding: clamp(20px, 4vw, 36px); box-shadow: 0 10px 0 rgba(0,0,0,.18); }
.g-panel h1, .g-panel h2 { color: #231b6b; }
.g-intro { text-align: center; }
.g-intro .g-big-icon { font-size: 4.5rem; }
.g-howto { text-align: left; background: #f4f2ff; border-radius: 18px; padding: 14px 20px; margin: 18px 0; font-weight: 700; }
.g-howto li { margin: 4px 0; }
.g-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-weight: 800; flex-wrap: wrap; }
.g-pill { background: rgba(255,255,255,.18); border-radius: 999px; padding: 6px 14px; font-weight: 800; }
.g-icon-btn { background: rgba(255,255,255,.18); color: #fff; border: 0; border-radius: 999px; min-width: 44px; min-height: 44px; font-size: 1.2rem; cursor: pointer; }
.g-timer { height: 14px; background: rgba(255,255,255,.2); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.g-timer > div { height: 100%; background: var(--g-yellow); border-radius: 999px; transition: width .25s linear; }
.g-timer.low > div { background: #ff6b6b; }
.g-q { background: #fff; color: #231b6b; border-radius: 26px; padding: clamp(18px, 4vw, 30px); text-align: center; box-shadow: 0 8px 0 rgba(0,0,0,.18); margin-bottom: 16px; }
.g-q h2 { font-size: clamp(1.35rem, 4.4vw, 2.1rem); margin: 0; line-height: 1.25; }
.g-q .blank { display: inline-block; min-width: 3.5em; border-bottom: 4px solid var(--g-purple); color: var(--g-purple); }
.g-picture { font-size: clamp(4rem, 16vw, 7rem); line-height: 1.1; margin-bottom: 8px; }
.g-q-img { max-height: 240px; width: auto; margin: 0 auto 12px; border-radius: 16px; }
.g-clues { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.g-clues li { background: #f4f2ff; border-radius: 14px; padding: 10px 14px; font-weight: 800; font-size: 1.08rem; animation: g-pop .3s ease; }
.g-clues li.hidden-clue { background: #f4f2ff; color: #b3acd9; animation: none; }
@keyframes g-pop { from { transform: scale(.9); opacity: 0; } }
.g-answers { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .g-answers { grid-template-columns: 1fr 1fr; } }
.g-ans { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 18px; border-radius: 20px; border: 0; color: #fff; font: 900 clamp(1.1rem, 3.4vw, 1.4rem) var(--g-font); text-align: left; cursor: pointer; box-shadow: 0 6px 0 rgba(0,0,0,.25); transition: transform .1s, opacity .2s, box-shadow .1s; }
.g-ans:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.g-ans .shape { flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 1.5rem; }
.g-ans[data-i="0"] { background: var(--a0); } .g-ans[data-i="1"] { background: var(--a1); } .g-ans[data-i="2"] { background: var(--a2); } .g-ans[data-i="3"] { background: var(--a3); }
.g-ans.dim { opacity: .35; }
.g-ans.right { outline: 5px solid #fff; box-shadow: 0 0 0 9px #1fbf8f; }
.g-ans.chosen { outline: 5px solid #fff; }
.g-ans[disabled] { cursor: default; }
.g-tf { grid-template-columns: 1fr 1fr !important; }
.g-tf .g-ans { min-height: 110px; justify-content: center; font-size: 1.6rem; }
.g-feedback { margin-top: 16px; border-radius: 22px; padding: 18px 20px; text-align: center; font-weight: 800; animation: g-pop .3s ease; }
.g-feedback.ok { background: #e3fff4; color: #0b6b4e; }
.g-feedback.no { background: #fff1f3; color: #8a1730; }
.g-feedback .big { font-size: 1.8rem; font-weight: 900; display: block; }
.g-feedback .ref { display: inline-block; margin-top: 6px; background: rgba(0,0,0,.06); padding: 3px 12px; border-radius: 999px; font-size: .92rem; }
.g-next { margin-top: 14px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.g-hint { background: #fff8e1; color: #6b4b00; border-radius: 14px; padding: 10px 14px; margin-top: 12px; font-weight: 800; }
.g-countdown { min-height: 60vh; display: grid; place-items: center; font: 900 clamp(6rem, 30vw, 12rem) var(--g-font); color: #fff; }
.g-countdown span { animation: g-zoom .9s ease both; }
@keyframes g-zoom { from { transform: scale(1.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* match */
.g-match { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-match-col { display: grid; gap: 10px; align-content: start; }
.g-tile { min-height: 64px; border-radius: 16px; border: 3px solid transparent; background: #fff; color: #231b6b; font: 800 1.05rem var(--g-font); padding: 10px 12px; cursor: pointer; box-shadow: 0 5px 0 rgba(0,0,0,.18); text-align: center; }
.g-tile.sel { border-color: var(--g-yellow); background: #fff8e1; }
.g-tile.done { background: #0b7a5a; color: #fff; box-shadow: none; cursor: default; }
.g-tile.wrong { animation: g-shake .4s; background: #ffe3e8; }
@keyframes g-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
/* word */
.g-slots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.g-slot { width: 52px; height: 60px; border-radius: 14px; background: #fff; border: 3px dashed #c9c2f2; display: grid; place-items: center; font: 900 1.8rem var(--g-font); color: #231b6b; }
.g-slot.filled { border-style: solid; border-color: var(--g-purple); }
.g-slots.wrong { animation: g-shake .4s; }
.g-slots.right .g-slot { background: #0b7a5a; color: #fff; border-color: #0b7a5a; }
.g-letters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.g-letter { width: 58px; height: 62px; border-radius: 16px; border: 0; background: var(--g-yellow); color: #231b6b; font: 900 1.8rem var(--g-font); cursor: pointer; box-shadow: 0 5px 0 #d9a100; }
.g-letter:disabled { opacity: .25; cursor: default; }
/* results */
.g-results { text-align: center; }
.g-stars { font-size: 3.6rem; letter-spacing: .1em; margin: 8px 0; }
.g-stars .off { filter: grayscale(1); opacity: .3; }
.g-scoreline { font: 900 2.4rem var(--g-font); color: var(--g-purple); }
.g-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 16px 0; }
.g-badge { background: #fff8e1; border: 3px solid var(--g-yellow); border-radius: 18px; padding: 10px 14px; font-weight: 900; color: #6b4b00; animation: g-pop .4s ease; }
.g-badge.locked { background: #f4f2ff; border-color: #e3defc; color: #9a93c4; }
.g-review { text-align: left; margin-top: 20px; display: grid; gap: 8px; }
.g-review div { background: #f4f2ff; border-radius: 14px; padding: 10px 14px; font-weight: 700; }
.g-nextgames { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 640px) { .g-nextgames { grid-template-columns: repeat(3, 1fr); } }
.g-nextgames a { background: #f4f2ff; border-radius: 16px; padding: 12px; font-weight: 900; color: #231b6b; text-decoration: none; }
.g-stagebar { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.g-stagebar span { background: rgba(255,255,255,.18); padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: .9rem; }
.g-stagebar span.on { background: var(--g-yellow); color: #231b6b; }
.g-stagebar span.done { background: var(--g-green); }
.g-confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 60; }
.g-confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: g-fall 2.6s linear forwards; }
@keyframes g-fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- Live game ---------- */
.g-live { min-height: 100vh; background: linear-gradient(160deg, #4b3fd1, #2f2496); color: #fff; font-family: var(--g-font); padding: 16px; display: flex; flex-direction: column; }
.g-live .g-panel { max-width: 520px; margin: 0 auto; width: 100%; }
.g-live-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 800; flex-wrap: wrap; }
.g-live-top img { height: 42px; width: auto; }
.g-pin-input { width: 100%; font: 900 2.6rem var(--g-font); text-align: center; letter-spacing: .25em; border: 4px solid #e3defc; border-radius: 18px; padding: 10px; color: #231b6b; min-height: 80px; }
.g-pin-input:focus { outline: none; border-color: var(--g-purple); }
.g-text-input { width: 100%; font: 800 1.4rem var(--g-font); border: 4px solid #e3defc; border-radius: 16px; padding: 12px 16px; color: #231b6b; min-height: 60px; }
.g-text-input:focus { outline: none; border-color: var(--g-purple); }
.g-emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin: 10px 0 16px; }
@media (max-width: 420px) { .g-emoji-grid { grid-template-columns: repeat(6, 1fr); } }
.g-emoji-grid button { font-size: 1.7rem; aspect-ratio: 1; border-radius: 14px; border: 3px solid transparent; background: #f4f2ff; cursor: pointer; padding: 0; }
.g-emoji-grid button[aria-pressed=true] { border-color: var(--g-purple); background: #fff8e1; transform: scale(1.08); }
.g-error { background: #fff1f3; color: #8a1730; border-radius: 14px; padding: 10px 14px; font-weight: 800; margin: 10px 0; }
.g-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.g-me { font-size: 5rem; line-height: 1; }
.g-me-name { font: 900 2rem var(--g-font); }
.g-status { font: 800 1.2rem var(--g-font); color: #e3defc; }
.g-result-big { font: 900 clamp(2.4rem, 10vw, 4rem) var(--g-font); }
.g-live .g-answers { flex: 1; }
.g-live-player .g-ans { min-height: 96px; }
.g-banner { position: fixed; top: 0; left: 0; right: 0; background: #ffb703; color: #231b6b; text-align: center; font-weight: 900; padding: 8px; z-index: 70; }
/* host / projector */
.host-body .g-live { padding: 20px 28px; }
.g-host-lobby { display: grid; gap: 22px; }
.g-joinbox { background: #fff; color: #231b6b; border-radius: 28px; padding: 20px 28px; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: center; text-align: center; box-shadow: 0 10px 0 rgba(0,0,0,.2); }
.g-joinbox .lbl { font: 800 1.2rem var(--g-font); color: #5b5585; }
.g-joinbox .url { font: 900 clamp(1.6rem, 3.6vw, 2.6rem) var(--g-font); }
.g-joinbox .pin { font: 900 clamp(3rem, 9vw, 6rem) var(--g-font); letter-spacing: .08em; color: var(--g-purple); line-height: 1; }
.g-host-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.g-host-bar .count { font: 900 1.6rem var(--g-font); }
.g-players { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.g-player { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #231b6b; border-radius: 999px; padding: 8px 16px 8px 10px; font: 900 1.25rem var(--g-font); border: 0; cursor: pointer; animation: g-pop .35s ease; box-shadow: 0 4px 0 rgba(0,0,0,.2); }
.g-player .e { font-size: 1.8rem; }
.g-player:hover { background: #ffe3e8; }
.g-player:hover::after { content: '✕'; color: #c2183d; margin-left: 4px; }
.g-player.off { opacity: .55; }
.g-host-q { display: grid; gap: 16px; flex: 1; }
.g-host-q .g-q h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); }
.g-host-mid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
.g-clock { width: 120px; height: 120px; border-radius: 50%; background: var(--g-purple-dark); display: grid; place-items: center; font: 900 3.2rem var(--g-font); border: 8px solid var(--g-yellow); }
.g-clock.low { border-color: #ff6b6b; animation: g-pulse 1s infinite; }
@keyframes g-pulse { 50% { transform: scale(1.06); } }
.g-answered { text-align: center; font: 900 2.6rem var(--g-font); }
.g-answered small { display: block; font-size: 1rem; color: #e3defc; }
.g-host-q .g-ans { min-height: 96px; font-size: clamp(1.3rem, 2.6vw, 2rem); cursor: default; }
.g-bars { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 14px; align-items: end; height: 180px; }
.g-bar { border-radius: 12px 12px 0 0; display: flex; align-items: flex-start; justify-content: center; font: 900 1.6rem var(--g-font); padding-top: 6px; min-height: 40px; transition: height .6s ease; }
.g-bar[data-i="0"] { background: var(--a0); } .g-bar[data-i="1"] { background: var(--a1); } .g-bar[data-i="2"] { background: var(--a2); } .g-bar[data-i="3"] { background: var(--a3); }
.g-explain { background: #fff; color: #231b6b; border-radius: 20px; padding: 14px 20px; font: 800 1.3rem var(--g-font); text-align: center; }
.g-leader { max-width: 820px; margin: 0 auto; width: 100%; display: grid; gap: 12px; }
.g-leader .row { display: grid; grid-template-columns: 54px 56px 1fr auto; align-items: center; gap: 12px; background: #fff; color: #231b6b; border-radius: 20px; padding: 12px 20px; font: 900 1.6rem var(--g-font); animation: g-pop .4s ease both; }
.g-leader .row:nth-child(2) { animation-delay: .1s; } .g-leader .row:nth-child(3) { animation-delay: .2s; } .g-leader .row:nth-child(4) { animation-delay: .3s; } .g-leader .row:nth-child(5) { animation-delay: .4s; }
.g-leader .row .e { font-size: 2.2rem; }
.g-leader .row .s { color: var(--g-purple); }
.g-podium { display: flex; align-items: flex-end; justify-content: center; gap: 16px; margin: 20px 0; }
.g-podium .p { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 900 1.4rem var(--g-font); text-align: center; width: min(28vw, 220px); }
.g-podium .p .e { font-size: 3.6rem; }
.g-podium .p .block { width: 100%; border-radius: 18px 18px 0 0; display: grid; place-items: center; font-size: 3rem; color: #231b6b; }
.g-podium .p1 .block { height: 200px; background: var(--g-yellow); } .g-podium .p2 .block { height: 150px; background: #dfe6f0; } .g-podium .p3 .block { height: 110px; background: #f2b27a; }
.g-controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .g-hero-art span, .g-clock.low { animation: none; } .g-confetti { display: none; } }
@media print {
  .games-body { background: #fff; }
  .g-cert-actions, .site-header, .topbar, .site-footer { display: none !important; }
}
.g-cert { background: #fff; color: #231b6b; border: 10px solid #c9a54a; outline: 3px solid #0e1b3a; outline-offset: -22px; border-radius: 12px; padding: 48px 36px; text-align: center; max-width: 900px; margin: 0 auto; font-family: var(--font-head); }
.g-cert .logos { display: flex; justify-content: center; gap: 18px; margin-bottom: 10px; }
.g-cert .logos img { height: 70px; width: auto; }
.g-cert h1 { font-family: var(--font-brand); font-size: clamp(1.6rem, 4vw, 2.6rem); color: #0e1b3a; letter-spacing: .06em; }
.g-cert .name { font: 700 clamp(2rem, 6vw, 3.4rem) var(--font-head); color: #a8822a; border-bottom: 2px solid #c9a54a; display: inline-block; padding: 0 20px 4px; margin: 10px 0 16px; }
.g-cert p { font-family: var(--font-body); font-size: 1.1rem; }

.g-qr { background: #fff; border-radius: 16px; padding: 6px; width: clamp(150px, 18vw, 230px); flex: none; }
.g-qr svg { display: block; width: 100%; height: auto; }

/* ---------- Live game: Kahoot-style "You're in!" and name bar ---------- */
.g-live-player { padding-bottom: 84px; }
.g-namebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; color: #231b6b; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); font: 900 1.25rem var(--g-font); box-shadow: 0 -6px 20px rgba(0,0,0,.18); }
.g-namebar .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.g-namebar .who span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-namebar .e { font-size: 1.8rem; line-height: 1; }
.g-namebar .pts { background: #231b6b; color: #fff; border-radius: 999px; padding: 4px 14px; font-size: 1.05rem; white-space: nowrap; }
.g-in { gap: 14px; }
.g-in-badge { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff 0, #f4f2ff 55%, #d9d3ff 100%);
  box-shadow: 0 0 0 10px rgba(255,255,255,.14), 0 0 0 22px rgba(255,255,255,.07), 0 18px 40px rgba(0,0,0,.3); font-size: 5.2rem; line-height: 1; }
.g-in-badge span { animation: g-bob 2.4s ease-in-out infinite; display: inline-block; }
.g-live h1.g-in-title { color: #fff; font: 900 clamp(2.6rem, 11vw, 4rem)/1 var(--g-font); margin: 6px 0 0; text-shadow: 0 4px 0 rgba(0,0,0,.18); }
.g-in-name { background: #fff; color: #231b6b; border-radius: 16px; padding: 10px 26px; font: 900 clamp(1.6rem, 7vw, 2.4rem)/1.15 var(--g-font); box-shadow: 0 6px 0 rgba(0,0,0,.22); max-width: 100%; overflow-wrap: anywhere; }
.g-wait { display: flex; align-items: center; gap: 10px; font: 800 1.05rem var(--g-font); color: #e3defc; margin-top: 8px; }
.g-wait .dots { display: inline-flex; gap: 5px; }
.g-wait .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--g-yellow); animation: g-dot 1.2s ease-in-out infinite; }
.g-wait .dots i:nth-child(2) { animation-delay: .15s; } .g-wait .dots i:nth-child(3) { animation-delay: .3s; }
.g-in.is-new .g-in-badge { animation: g-zoom .6s cubic-bezier(.2,1.6,.4,1) both; }
.g-in.is-new .g-in-title { animation: g-zoom .6s .15s cubic-bezier(.2,1.6,.4,1) both; }
.g-in.is-new .g-in-name { animation: g-slide .55s .3s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes g-bob { 50% { transform: translateY(-8px) rotate(-6deg); } }
@keyframes g-dot { 0%, 80%, 100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }
@keyframes g-zoom { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes g-slide { from { transform: translateY(30px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
/* host: names pop in once; the newest one glows */
.g-player.still { animation: none; }
.g-player.is-new { animation: g-zoom .5s cubic-bezier(.2,1.6,.4,1) both; }
.g-player.is-newest { box-shadow: 0 4px 0 rgba(0,0,0,.2), 0 0 0 4px var(--g-yellow), 0 0 28px rgba(255,214,10,.75); }
.g-host-bar .count .num { display: inline-block; color: var(--g-yellow); animation: g-zoom .4s cubic-bezier(.2,1.6,.4,1) both; }
@media (prefers-reduced-motion: reduce) { .g-in-badge span, .g-wait .dots i, .g-in.is-new *, .g-player.is-new, .g-host-bar .count .num { animation: none !important; } }

/* ---------- Solo games: 5 stages ---------- */
.g-stagerule { display: inline-block; background: #fff8e1; color: #6b4b00; border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: .92rem; margin: 6px 0 14px; }
.g-stages { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; text-align: left; counter-reset: none; }
.g-stagecard { width: 100%; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; border: 0; border-radius: 20px; padding: 12px 16px; cursor: pointer; color: #fff; font-family: var(--g-font);
  box-shadow: 0 6px 0 rgba(0,0,0,.18); transition: transform .15s ease, box-shadow .15s ease; text-align: left; }
.g-stagecard:hover:not([disabled]) { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(0,0,0,.18); }
.g-stagecard:active:not([disabled]) { transform: translateY(2px); box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.g-stagecard.s1 { background: linear-gradient(135deg, #12805c, #0b5e44); }
.g-stagecard.s2 { background: linear-gradient(135deg, #2f6fd1, #1f4ea0); }
.g-stagecard.s3 { background: linear-gradient(135deg, #7b4fd6, #5532a8); }
.g-stagecard.s4 { background: linear-gradient(135deg, #c2510e, #933805); }
.g-stagecard.s5 { background: linear-gradient(135deg, #8a6a12, #5c450a); }
.g-stagecard .num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; background: rgba(255,255,255,.18); }
.g-stagecard .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.g-stagecard .txt strong { font-size: 1.2rem; font-weight: 900; }
.g-stagecard .txt small { font-size: .92rem; font-weight: 700; opacity: .95; }
.g-stagecard .stars { font-size: 1.35rem; letter-spacing: 2px; color: #ffd84d; white-space: nowrap; }
.g-stagecard .stars i { font-style: normal; }
.g-stagecard .stars i.off { color: rgba(255,255,255,.3); }
.g-stagecard.locked { background: #e7e4f5; color: #5b5585; box-shadow: none; cursor: not-allowed; }
.g-stagecard.locked .num { background: #d6d1ef; }
.g-stagecard.passed { outline: 3px solid #ffd84d; outline-offset: -3px; }
.g-results.g-pass { border: 4px solid var(--g-yellow); }
@media (max-width: 420px) { .g-stagecard { grid-template-columns: 46px 1fr auto; gap: 10px; padding: 10px 12px; } .g-stagecard .num { width: 46px; height: 46px; font-size: 1.5rem; } .g-stagecard .txt strong { font-size: 1.05rem; } }

/* Final podium reveal (3rd, then 2nd, then 1st) */
.g-pod-say { text-align: center; color: #ffe08a; font: 900 1.8rem var(--g-font); min-height: 2.4em; margin: 8px 0 0; }
.g-podium .p .who { display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0; transform: translateY(30px) scale(.6); transition: opacity .5s, transform .6s cubic-bezier(.2, 1.6, .4, 1); }
.g-podium .p .block { transform: scaleY(.08); transform-origin: bottom; transition: transform .7s cubic-bezier(.2, 1.2, .4, 1); }
.g-podium .p.up .who { opacity: 1; transform: none; }
.g-podium .p.up .block { transform: none; }
.g-podium .p1.up .who .e { animation: g-crown 1s ease-in-out .6s 2; }
@keyframes g-crown { 50% { transform: scale(1.35) rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .g-podium .p .who, .g-podium .p .block { transition: none; } .g-podium .p1.up .who .e { animation: none; } }

/* Final results: drumroll and top-10 bar chart */
.g-pod-say.drum { animation: g-drum .18s ease-in-out infinite alternate; }
.g-drum { animation: g-drum .18s ease-in-out infinite alternate; }
@keyframes g-drum { from { transform: translateX(-3px); } to { transform: translateX(3px); } }
.g-chart-wrap { max-width: 980px; margin: 0 auto; width: 100%; }
.g-chart { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.g-chart li { display: grid; grid-template-columns: 52px minmax(90px, 220px) 1fr auto; align-items: center; gap: 12px; background: rgba(255,255,255,.1); border-radius: 14px; padding: 5px 14px; color: #fff; font: 900 1.15rem var(--g-font); animation: g-pop .4s ease both; animation-delay: var(--d); }
.g-chart .rk { font-size: 1.4rem; text-align: center; }
.g-chart .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-chart .track { height: 32px; background: rgba(255,255,255,.12); border-radius: 12px; overflow: hidden; }
.g-chart .bar { display: flex; align-items: center; justify-content: flex-end; height: 100%; width: 0; padding: 0 12px; border-radius: 12px; background: #8f7dff; color: #fff; font-size: 1.05rem; animation: g-grow 1s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d); white-space: nowrap; }
.g-chart .r1 .bar { background: var(--g-yellow); color: #231b6b; } .g-chart .r2 .bar { background: #dfe6f0; color: #231b6b; } .g-chart .r3 .bar { background: #f2b27a; color: #231b6b; }
.g-chart .ok { font-size: 1rem; color: #c9f7d4; }
@keyframes g-grow { to { width: var(--w); } }
@media (max-width: 640px) { .g-chart li { grid-template-columns: 36px 1fr; font-size: 1.05rem; } .g-chart .track { grid-column: 1 / -1; height: 30px; } .g-chart .ok { grid-column: 2; justify-self: end; } }
@media (prefers-reduced-motion: reduce) { .g-chart li, .g-chart .bar, .g-drum, .g-pod-say.drum { animation-duration: .01s; animation-iteration-count: 1; } }
