/* ---------- shared game bits ---------- */
.qhead { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-weight: 700; font-size: 1.3em; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4em; justify-content: center; }
.chip { background: rgba(255,255,255,0.08); border-radius: 999px; padding: 0.25em 0.7em; font-size: 1.1em; }
.chip.in { background: rgba(30,158,90,0.45); }
.pill { display: inline-block; background: rgba(255,255,255,0.1); padding: 6px 14px; border-radius: 999px; font-weight: 700; }
.good { color: #7ee2a8; } .bad { color: #ff9aa6; }
.big-emoji { font-size: 5em; line-height: 1; }
.game-screen { min-height: 0; }
.game-screen > div, .game-screen > div > div:first-child { min-height: 0; }

/* phone view wrapper */
.pv { display: grid; align-content: center; justify-items: center; text-align: center; gap: 14px; min-height: calc(100dvh - 40px); width: 100%; animation: rise .3s ease; }
.pv.top { align-content: start; }
.pv h1 { margin: 0; font-size: 1.9em; }
.pv h2 { margin: 0; }

/* ---------- trivia ---------- */
.tq { display: grid; grid-template-rows: auto auto 1fr auto; gap: 2vh; height: 100%; }
.qtext { font-size: 3.2em; font-weight: 800; text-align: center; line-height: 1.15; padding: 0.3em 0.6em; }
.mid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2vw; }
.timer { width: 8em; height: 8em; position: relative; }
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer .num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3em; font-weight: 900; }
.ready { text-align: center; font-size: 2.4em; font-weight: 800; color: var(--gold); }
.answered { text-align: center; }
.answered b { font-size: 4em; display: block; line-height: 1; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2vh 1.2vw; }
.choice { display: flex; align-items: center; gap: 0.6em; padding: 0.7em 1em; border-radius: 14px; font-size: 1.8em; font-weight: 700; min-height: 2.5em; box-shadow: var(--shadow); transition: opacity .3s, transform .3s; }
.choice .shape { font-size: 1.1em; background: rgba(0,0,0,0.2); border-radius: 8px; flex: none; }
.choice.dim { opacity: 0.25; }
.choice.right { transform: scale(1.03); outline: 4px solid #fff; }
.choice .count { margin-left: auto; font-size: 1.1em; font-weight: 900; background: rgba(0,0,0,0.25); border-radius: 999px; padding: 0 0.6em; }
.reveal-mid { display: grid; grid-template-columns: 1fr auto; gap: 3vw; align-items: end; }
.bars { display: flex; gap: 2vw; align-items: end; justify-content: center; min-height: 20vh; }
.bar { width: 6vw; display: grid; justify-items: center; gap: 0.3em; }
.bar .fill { width: 100%; border-radius: 10px 10px 0 0; transition: height 0.8s cubic-bezier(.2,.9,.3,1); min-height: 6px; }
.bar b { font-size: 1.6em; }
.leaders { display: grid; gap: .3em; font-size: 1.2em; min-width: 14em; }
.answer-grid { width: 100%; height: calc(100dvh - 150px); max-height: 620px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.has-host .answer-grid { height: calc(100dvh - 230px); }
.answer-grid button { border-radius: 18px; display: grid; place-items: center; align-content: center; gap: 6px; padding: 10px; color: #fff; font-weight: 800; font-size: 1.05em; box-shadow: var(--shadow); }
.answer-grid button .shape { font-size: 2em; }
.qbar { display: flex; justify-content: space-between; width: 100%; }
.timebar { width: 100%; height: 8px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.timebar div { height: 100%; background: var(--gold); transform-origin: left; }
.lockshape { font-size: 3em; border-radius: 16px; width: 1.8em; height: 1.8em; }

/* ---------- reindeer race ---------- */
.race { display: grid; grid-template-rows: auto 1fr; gap: 2vh; height: 100%; position: relative; }
.lanes { display: grid; gap: 0.5vh; align-content: center; min-height: 0; overflow: hidden; }
.lane { display: grid; grid-template-columns: 11em 1fr 3em; align-items: center; gap: 1em; }
.lname { font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.track { position: relative; height: 2.6em; background: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 40px, rgba(255,255,255,.1) 40px 80px); border-radius: 10px; }
.runner { position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-size: 2em; transition: left .25s linear; }
.lane.done .runner { filter: drop-shadow(0 0 8px var(--gold)); }
.finish { position: absolute; right: -0.2em; top: 50%; transform: translateY(-50%); font-size: 1.6em; }
.place { font-size: 1.8em; font-weight: 900; }
.big-count { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10em; font-weight: 900; color: var(--gold); text-shadow: 0 10px 40px rgba(0,0,0,.6); pointer-events: none; }
.tapbtn { width: min(78vw, 340px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff5468, var(--red)); color: #fff; font-size: 2.4em; font-weight: 900; box-shadow: 0 12px 0 #8c1424, var(--shadow); touch-action: manipulation; user-select: none; -webkit-user-select: none; margin-top: 4vh; }
.tapbtn:disabled { filter: grayscale(.8); }
.tapbtn.pulse { animation: tap .12s ease; }
@keyframes tap { 50% { transform: scale(.94) translateY(6px); box-shadow: 0 6px 0 #8c1424; } }
.race-msg { font-size: 1.6em; font-weight: 800; color: var(--gold); }

/* ---------- frozen pond ---------- */
.pond { display: grid; grid-template-rows: auto 1fr auto; gap: 2vh; height: 100%; }
.ice { border-radius: 40% / 30%; background: radial-gradient(ellipse at 50% 40%, #e8f6ff 0%, #9fd3f5 55%, #4f9bd0 100%); color: #0c1a2b; display: grid; place-items: center; align-content: center; gap: 1vh; transition: background .2s; }
.ice.go { background: radial-gradient(ellipse at 50% 40%, #fff7d1 0%, #f2c14e 60%, #c98f12 100%); }
.bell { font-size: 6em; }
.ice.go .bell { animation: ring .5s ease infinite; }
@keyframes ring { 25% { transform: rotate(-15deg); } 75% { transform: rotate(15deg); } }
.pond-msg { font-size: 3em; font-weight: 900; }
.skaters { display: flex; flex-wrap: wrap; gap: .4em; justify-content: center; font-size: 2.2em; max-width: 70%; }
.fastest { text-align: center; font-size: 2em; font-weight: 800; color: var(--gold); }
.reslist { display: grid; gap: .5vh; width: min(900px, 90%); margin: 0 auto; align-content: start; overflow: hidden; }
.pondbtn { width: min(80vw, 340px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #e8f6ff, #6fb6e6); color: #0c1a2b; font-size: 1.6em; font-weight: 900; touch-action: manipulation; user-select: none; -webkit-user-select: none; box-shadow: var(--shadow); }
.pondbtn.go { background: radial-gradient(circle, #fff3b0, var(--gold)); font-size: 2.6em; }

/* ---------- cocoa ---------- */
.cocoa-tv { display: grid; grid-template-rows: auto 1fr; gap: 2vh; height: 100%; }
.cocoa-stage { display: flex; gap: 4vw; align-items: center; justify-content: center; }
.mug { position: relative; width: 7em; height: 8em; border: 0.45em solid #f6f4ee; border-top: 0; border-radius: 0 0 1.4em 1.4em; overflow: visible; background: rgba(255,255,255,.06); }
.mug .cocoa { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(#8b5a2b, #5c3a1a); border-radius: 0 0 1em 1em; }
.mug .line { position: absolute; left: -0.9em; right: -0.9em; border-top: 0.25em dashed var(--gold); }
.mug .handle { position: absolute; right: -2.2em; top: 1.2em; width: 1.8em; height: 3.6em; border: 0.45em solid #f6f4ee; border-left: 0; border-radius: 0 1.4em 1.4em 0; }
.mug.big { font-size: 2em; }
.mug.spill .cocoa { background: linear-gradient(#a06a35, #5c3a1a); box-shadow: 0 -0.6em 0 #8b5a2b; }
.mug.spill::after { content: "💦"; position: absolute; top: -1.2em; left: 30%; font-size: 1.6em; }
.mug.phone-mug { font-size: 1.6em; margin: 3vh 0; }
.mugs { display: grid; grid-template-columns: repeat(auto-fill, minmax(11em, 1fr)); gap: 3vh 1.5vw; align-content: center; overflow: hidden; padding-top: 2vh; }
.mugcard { display: grid; justify-items: center; gap: .4em; animation: rise .4s ease backwards; font-size: .9em; }
.mugcard .mug { font-size: 1em; margin: 1.2em 0 .4em; }
.pourbtn { width: min(84vw, 340px); padding: 1.2em; border-radius: 20px; background: #8b5a2b; color: #fff; font-size: 1.3em; font-weight: 900; box-shadow: 0 8px 0 #5c3a1a; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pourbtn:disabled { opacity: .6; }

/* ---------- naughty or nice ---------- */
.nn { display: grid; grid-template-rows: auto 1fr auto; gap: 2vh; height: 100%; }
.nn.rev { grid-template-rows: auto auto 1fr auto; }
.nn-rq { text-align: center; font-size: 2em; font-weight: 800; font-family: Georgia, serif; }
.nn-card { align-self: center; justify-self: center; width: min(1100px, 90%); text-align: center; padding: 2em; border-radius: 24px; background: #f6f0dc; color: #3a2a00; box-shadow: var(--shadow); font-size: 1.4em; }
.nn-card .muted { color: #7a5a00; }
.nn-q { font-size: 2.4em; font-weight: 900; font-family: Georgia, serif; }
.nn-foot { display: flex; gap: 1em; justify-content: center; font-size: 1.2em; }
.nn-winners { display: flex; gap: 3vw; justify-content: center; align-items: center; }
.nn-win { display: grid; justify-items: center; gap: .3em; position: relative; animation: pop .6s cubic-bezier(.2,1.6,.4,1); }
.nn-win .avatar { font-size: 6em; }
.nn-win b { font-size: 2em; }
.stamp { font-size: 2em; font-weight: 900; padding: 0.1em 0.5em; border: 0.15em solid; border-radius: 10px; transform: rotate(-8deg); animation: pop .5s .4s backwards; }
.stamp.nice { color: #7ee2a8; } .stamp.naughty { color: #ff6b7d; }
.nn-bars { display: grid; gap: .6vh; width: min(900px, 85%); margin: 0 auto; }
.nn-bar { display: grid; grid-template-columns: 12em 1fr 2em; gap: 1em; align-items: center; font-size: 1.2em; }
.nn-track { height: 1em; background: rgba(255,255,255,.1); border-radius: 99px; overflow: hidden; }
.nn-track div { height: 100%; background: var(--gold); border-radius: 99px; }
.nn-pq { font-size: 1.5em; }
.vote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.vote-grid button { padding: 12px 6px; border-radius: 14px; background: rgba(255,255,255,0.09); display: grid; justify-items: center; gap: 2px; font-weight: 700; }
.vote-grid .avatar { font-size: 1.8em; }

/* ---------- punchlines ---------- */
.pl { display: grid; grid-template-rows: auto auto 1fr auto; gap: 2vh; height: 100%; }
.pl-write { display: grid; justify-items: center; align-content: center; gap: 1.5vh; text-align: center; grid-row: 2 / 4; }
.pl-prompt { text-align: center; font-size: 2.6em; font-weight: 800; }
.pl-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2vw; align-items: center; }
.pl-card { min-height: 9em; padding: 1.4em; border-radius: 24px; background: #f6f4ee; color: #0c1a2b; display: grid; align-content: center; justify-items: center; gap: .5em; text-align: center; box-shadow: var(--shadow); animation: pop .5s cubic-bezier(.2,1.6,.4,1); transition: transform .4s, opacity .4s; }
.pl-card .pl-text { font-size: 2.2em; font-weight: 800; }
.pl-card.won { transform: scale(1.05); outline: 6px solid var(--gold); }
.pl-card.lost { opacity: .6; }
.pl-votes { font-size: 1.5em; font-weight: 900; color: var(--red); }
.pl-author { font-weight: 700; }
.pl-card .gain { color: #1e9e5a; font-weight: 900; font-size: 1.4em; }
.vs { font-size: 3em; font-weight: 900; color: var(--gold); }
.sweep { text-align: center; font-size: 3em; font-weight: 900; color: var(--gold); animation: pop .6s cubic-bezier(.2,1.6,.4,1); }
.pl-foot { text-align: center; font-size: 1.3em; }
.pl-pprompt { font-size: 1.4em; }
.pl-input { width: 100%; border-radius: 14px; border: 2px solid rgba(255,255,255,.2); background: rgba(0,0,0,.3); padding: 12px; font-size: 1.15em; color: inherit; resize: none; }
.pl-choices { display: grid; gap: 12px; width: 100%; }
.pl-choices button { padding: 1.2em 1em; border-radius: 18px; color: #fff; font-size: 1.2em; font-weight: 800; box-shadow: var(--shadow); }

/* ---------- hot potato ---------- */
.hp { display: grid; grid-template-rows: auto 1fr; gap: 1vh; height: 100%; }
.hp-ring { position: relative; }
.hp-seat { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; transition: opacity .3s; }
.hp-seat .avatar { font-size: 3.4em; }
.hp-seat .nm { font-weight: 700; font-size: 1.1em; }
.hp-seat.holding .avatar { animation: shake .25s infinite; filter: drop-shadow(0 0 10px var(--gold)); }
.hp-seat.out { opacity: .3; }
@keyframes shake { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.hp-orn { position: absolute; transform: translate(-50%, -50%); transition: left .35s cubic-bezier(.3,1.4,.5,1), top .35s cubic-bezier(.3,1.4,.5,1); font-size: 2.4em; z-index: 2; }
.hp-orn.broken { font-size: 4em; }
.hp-center { position: absolute; inset: 30% 25%; display: grid; place-items: center; align-content: center; text-align: center; }
.hp-msg { font-size: 2.2em; font-weight: 900; }
.orn { display: inline-block; width: 1em; height: 1em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8a98, #d7263d 55%, #7d0f1e); position: relative; box-shadow: 0 0 12px rgba(215,38,61,.6); vertical-align: middle; }
.orn .cap { position: absolute; left: 35%; top: -0.15em; width: 30%; height: 0.2em; background: var(--gold); border-radius: 3px; }
.passbtn { width: min(80vw, 330px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd36b, #e0a020); color: #3a2a00; font-size: 2.2em; font-weight: 900; animation: shake .3s infinite; touch-action: manipulation; box-shadow: var(--shadow); }
.passbtn .orn { font-size: 2em; }
.passbtn:disabled { animation: none; opacity: .7; }

/* ---------- adventure map (TV) ---------- */
.board-screen { padding: 2.5vh 2.5vw 8vh; }
.map-wrap { display: grid; grid-template-columns: 1fr 23em; gap: 2vw; height: 100%; min-height: 0; }
.map { position: relative; height: 100%; border-radius: 28px; background: radial-gradient(ellipse at 50% 45%, #2a5a7a 0%, #17384f 60%, #0f2638 100%); box-shadow: inset 0 0 60px rgba(0,0,0,.4); overflow: hidden; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.decor { position: absolute; transform: translate(-50%, -50%); opacity: .85; }
.village { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; display: grid; gap: .2em; }
.village b { font-size: 1.3em; }
.space { position: absolute; transform: translate(-50%, -50%); width: 3em; height: 3em; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 1em; box-shadow: 0 4px 0 rgba(0,0,0,.35); border: 3px solid rgba(255,255,255,.8); }
.space.emo { font-size: 1.35em; width: 2.25em; height: 2.25em; }
.star-mark { position: absolute; transform: translate(-50%, -50%); font-size: 2.6em; transition: left .6s, top .6s; animation: bob 1.2s ease-in-out infinite; filter: drop-shadow(0 0 10px gold); z-index: 3; }
@keyframes bob { 50% { margin-top: -8px; } }
.token { position: absolute; transform: translate(-50%, -50%); font-size: 1.9em; transition: left .3s ease, top .3s ease; z-index: 4; filter: drop-shadow(0 3px 2px rgba(0,0,0,.5)); }
.token.hop { margin-top: -0.5em; }
.side { background: rgba(255,255,255,.06); border-radius: 22px; padding: 1.2em; overflow: auto; display: grid; gap: .6em; align-content: start; }
.side h2, .side h3 { margin: .2em 0; }
.side p { margin: 0; }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: .4em; }
.rules .dot { display: inline-grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; font-weight: 900; font-size: .8em; margin-right: .5em; color: #fff; }
.events { display: grid; gap: .35em; font-size: .95em; }
.ev { animation: rise .4s ease backwards; }
.nextgame { margin-top: .6em; padding: .8em; border-radius: 14px; background: rgba(242,193,78,.15); text-align: center; font-size: 1.1em; }
.stand { display: grid; gap: .25em; font-size: .95em; }
.stand div { display: flex; justify-content: space-between; gap: .6em; }

/* ---------- phone dice ---------- */
.dice { width: 150px; height: 150px; border-radius: 28px; background: #f6f4ee; color: #0c1a2b; font-size: 5em; font-weight: 900; display: grid; place-items: center; box-shadow: 0 10px 0 #b9b4a5, var(--shadow); }
.dice.rolling { animation: dice .5s linear infinite; }
@keyframes dice { 25% { transform: rotate(10deg) scale(1.05); } 75% { transform: rotate(-10deg) scale(.95); } }
.rollbtn { width: min(80vw, 320px); padding: 1em; border-radius: 22px; background: var(--gold); color: #3a2a00; font-size: 1.8em; font-weight: 900; box-shadow: 0 8px 0 #a37a12; }

/* ---------- shared: drawing pad ---------- */
.pad-canvas { width: min(100%, 62dvh); aspect-ratio: 1; border-radius: 16px; background: #fff; box-shadow: var(--shadow); touch-action: none; }
.pad-tools { display: grid; gap: 8px; width: 100%; justify-items: center; }
.pad-colors, .pad-sizes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pad-colors button { width: 36px; height: 36px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); }
.pad-colors button.sel, .sw-bases button.sel { border-color: var(--gold); transform: scale(1.15); }
.pad-sizes button { width: 42px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: 1.1em; }
.pad-sizes button.sel { background: var(--gold); color: #3a2a00; }
.pad-sizes i { display: block; border-radius: 50%; background: currentColor; }
.sk-phone { gap: 10px; }
.mine { opacity: .45; background: rgba(255,255,255,.08) !important; }

/* ---------- Emoji Carols ---------- */
.carols { display: grid; grid-template-rows: auto 1fr auto auto auto; gap: 2vh; height: 100%; text-align: center; }
.emoji-row { font-size: 9em; display: flex; justify-content: center; align-items: center; gap: .15em; }
.emoji-row span { animation: pop .5s cubic-bezier(.2,1.6,.4,1) both; }
.emoji-row.small { font-size: 4.5em; }
.timebar.big { height: 16px; }
.car-title { font-size: 4em; color: var(--gold); animation: pop .6s cubic-bezier(.2,1.6,.4,1); }
.car-sub { font-size: 1.6em; }
.car-lead { justify-self: center; text-align: left; }
.car-choices button { padding: .9em .8em; font-size: 1.1em; }

/* ---------- Count the Cookies ---------- */
.count { display: grid; grid-template-rows: auto auto 1fr auto; gap: 1.5vh; height: 100%; }
.count-msg { text-align: center; font-size: 2em; font-weight: 800; color: var(--gold); }
.count-stage { position: relative; border-radius: 28px; background: radial-gradient(circle, #c98a4a, #8a5526); box-shadow: inset 0 0 0 14px #6d3f17, var(--shadow); min-height: 50vh; }
.count-stage.small { min-height: 0; width: 34vw; aspect-ratio: 4/3; }
.tray { position: absolute; inset: 4%; transition: opacity .2s; }
.tray.hidden { opacity: 0; }
.tray span { position: absolute; font-size: 3.4em; }
.count-stage.small .tray span { font-size: 1.9em; }
.count-cover { position: absolute; inset: 0; display: grid; place-items: center; font-size: 9em; }
.count-in { text-align: center; font-size: 1.3em; }
.count-rev { display: flex; gap: 3vw; align-items: center; justify-content: center; text-align: center; }
.count-answer { font-size: 8em; font-weight: 900; color: var(--gold); line-height: 1; animation: pop .6s cubic-bezier(.2,1.6,.4,1); }
.count-guesses { display: grid; grid-template-columns: repeat(auto-fill, minmax(17em, 1fr)); gap: .5em; align-content: start; }
.cg { background: rgba(255,255,255,.08); border-radius: 14px; padding: .5em .8em; display: grid; grid-template-columns: auto 1fr auto auto; gap: .6em; align-items: center; font-size: 1.15em; animation: rise .4s both; }
.cg.exact { background: rgba(242,193,78,.3); outline: 3px solid var(--gold); }
.numshow { font-size: 3.4em; font-weight: 900; color: var(--gold); min-height: 1.2em; }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(100%, 340px); }
.numpad button { padding: .7em 0; font-size: 1.6em; font-weight: 800; border-radius: 16px; background: rgba(255,255,255,.1); }
.numpad button.ok { background: var(--gold); color: #3a2a00; }

/* ---------- Whose Wish? ---------- */
.wish { display: grid; grid-template-rows: auto 1fr auto auto; gap: 2.5vh; height: 100%; }
.wish-card { align-self: center; justify-self: center; max-width: 80vw; background: #fff6f8; color: #0c1a2b; border-radius: 26px; padding: 1.4em 2em; text-align: center; box-shadow: var(--shadow); animation: pop .5s cubic-bezier(.2,1.6,.4,1); border: 4px dashed #e88ca0; }
.wish-card .muted { color: #6b7785; font-weight: 700; font-size: 1.2em; }
.wish-prompt { font-size: 3em; font-weight: 900; }
.wish-text { font-size: 3em; font-weight: 800; font-family: Georgia, serif; font-style: italic; margin-top: .2em; }
.wish-author { text-align: center; font-size: 2.2em; animation: pop .6s cubic-bezier(.2,1.6,.4,1); }
.wish-author .avatar { font-size: 1.3em; }

/* ---------- Fruitcake Fibs ---------- */
.fibs { display: grid; grid-template-rows: auto auto 1fr auto; gap: 2vh; height: 100%; }
.fib-fact { font-size: 2.6em; font-weight: 800; text-align: center; line-height: 1.3; padding: 0 1em; }
.blank { display: inline-block; min-width: 4em; border-bottom: 5px solid var(--gold); color: var(--gold); }
.blank.filled { animation: pop .6s cubic-bezier(.2,1.6,.4,1) both; animation-delay: var(--d, 0s); }
.fib-sub { text-align: center; margin: 0; }
.fib-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(22vw, 1fr)); gap: 1.2em; align-content: center; }
.fib-opt { padding: 1em; border-radius: 20px; font-size: 1.8em; font-weight: 800; text-align: center; color: #fff; box-shadow: var(--shadow); animation: pop .5s cubic-bezier(.2,1.6,.4,1) both; }
.fib-reveal { display: grid; gap: 1em; align-content: center; justify-items: center; }
.fib-rv { width: min(70vw, 1000px); background: rgba(255,255,255,.08); border-radius: 18px; padding: .8em 1.2em; animation: rise .5s both; }
.fib-rv-text { font-size: 1.9em; font-weight: 800; }
.fib-rv.truth { background: rgba(30,158,90,.4); outline: 4px solid #7ee2a8; transform: scale(1.04); }

/* ---------- Light Up the Tree ---------- */
.lt { display: grid; grid-template-rows: auto 1fr; gap: 2vh; height: 100%; }
.lt-main { display: grid; grid-template-columns: 1fr 1fr; gap: 3vw; align-items: center; min-height: 0; }
.lt-tree { position: relative; height: 68vh; aspect-ratio: 3/4; justify-self: center; }
.lt-shape { position: absolute; inset: 8% 0 12% 0; background: linear-gradient(#1e7a46, #0f4d2b); clip-path: polygon(50% 0, 70% 30%, 60% 30%, 84% 60%, 72% 60%, 100% 100%, 0 100%, 28% 60%, 16% 60%, 40% 30%, 30% 30%); }
.lt-star { position: absolute; left: 50%; top: 0; transform: translate(-50%, -30%); font-size: 4em; }
.lt-trunk { position: absolute; left: 43%; width: 14%; bottom: 3%; height: 10%; background: #6d3f17; border-radius: 4px; }
.lt-bulb { position: absolute; width: 20%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: var(--c); opacity: .3; filter: saturate(.6); transition: opacity .1s, transform .1s; border: 4px solid rgba(0,0,0,.25); }
.lt-bulb.on { opacity: 1; filter: none; transform: translate(-50%, -50%) scale(1.25); box-shadow: 0 0 40px 18px var(--c); }
.lt-side { display: grid; gap: 2vh; align-content: center; }
.lt-msg { font-size: 2.4em; font-weight: 800; text-align: center; }
.lt-msg b { font-size: 1.6em; color: var(--gold); }
.lt-players { display: grid; grid-template-columns: repeat(auto-fill, minmax(14em, 1fr)); gap: .4em; }
.lt-p { display: flex; justify-content: space-between; gap: .5em; background: rgba(255,255,255,.07); padding: .35em .7em; border-radius: 12px; font-weight: 700; }
.lt-p.out { opacity: .4; }
.lt-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(26em, 1fr)); gap: .6em; align-content: center; }
.lt-r { display: grid; grid-template-columns: auto 1fr auto auto; gap: .7em; align-items: center; padding: .6em 1em; border-radius: 16px; background: rgba(255,255,255,.08); font-size: 1.3em; animation: rise .4s both; }
.lt-r.ok { background: rgba(30,158,90,.35); }
.lt-r.miss { background: rgba(215,38,61,.3); }
.lt-r.gone { opacity: .4; }
.lt-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.lt-dots i { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.18); }
.lt-pad { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: min(100%, 380px); }
.lt-pad button { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8, transparent 40%), var(--c); box-shadow: 0 8px 0 rgba(0,0,0,.35); touch-action: manipulation; }
.lt-pad button.flash { animation: bulb .25s ease; }
@keyframes bulb { 50% { transform: scale(.9); box-shadow: 0 0 40px 10px var(--c); } }

/* ---------- Present Sorter ---------- */
.sorter, .stacker { display: grid; grid-template-rows: auto 1fr; gap: 2vh; height: 100%; position: relative; }
.sort-board { display: grid; gap: .5em; align-content: start; overflow: hidden; }
.sort-row { display: grid; grid-template-columns: 2em 12em 1fr 5em; gap: 1em; align-items: center; font-size: 1.3em; }
.sort-rank { color: var(--muted); font-weight: 800; }
.sort-track { height: 1.4em; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.sort-track div { height: 100%; background: linear-gradient(90deg, #d7263d, #f2c14e); border-radius: 99px; transition: width .3s; }
.sorter-phone { gap: 8px; }
.s-lane { position: relative; width: 100%; height: 48dvh; border-radius: 18px; background: rgba(255,255,255,.05); overflow: hidden; }
.s-present { position: absolute; left: 50%; top: 0; font-size: 3.4em; width: 1.4em; height: 1.4em; display: grid; place-items: center; border-radius: 14px; background: var(--c); box-shadow: 0 6px 0 rgba(0,0,0,.3); }
.s-present.hit { animation: zip .2s ease forwards; }
.s-present.miss { filter: grayscale(1); animation: shake .3s; }
@keyframes zip { to { opacity: 0; transform: translate(-50%, 60dvh) scale(.4); } }
.s-bins { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; width: 100%; }
.s-bins button { padding: .8em 0; border-radius: 16px; font-size: 1.6em; background: var(--c); color: #fff; font-weight: 800; box-shadow: 0 6px 0 rgba(0,0,0,.3); touch-action: manipulation; }
.s-bins small { font-size: .5em; }
.s-count { font-size: 6em; }

/* ---------- Cookie Stacker ---------- */
.st-towers { display: flex; gap: 1.2vw; align-items: flex-end; justify-content: center; min-height: 0; }
.st-col { display: grid; justify-items: center; gap: .4em; width: 8vw; min-width: 5em; }
.st-col.over { opacity: .55; }
.st-h { font-size: 2em; font-weight: 900; color: var(--gold); }
.st-stack { height: 55vh; width: 100%; display: flex; flex-direction: column-reverse; align-items: center; border-bottom: 6px solid #ccc; }
.st-stack i { display: block; height: calc(55vh / 22); background: radial-gradient(circle at 30% 40%, #5a3214 0 6%, transparent 7%), radial-gradient(circle at 70% 60%, #5a3214 0 6%, transparent 7%), #d59a55; border-radius: 40%; border: 1px solid #8a5526; }
.st-col .lname { font-size: .95em; max-width: 100%; }
.st-area { position: relative; width: 100%; height: 52dvh; border-radius: 18px; background: rgba(255,255,255,.05); overflow: hidden; border-bottom: 8px solid #ccc; }
.st-layers i, .st-slider { position: absolute; height: 9%; background: radial-gradient(circle at 30% 40%, #5a3214 0 5%, transparent 6%), radial-gradient(circle at 70% 60%, #5a3214 0 5%, transparent 6%), #d59a55; border-radius: 40%; border: 2px solid #8a5526; }
.st-slider { filter: brightness(1.15); box-shadow: 0 0 20px rgba(242,193,78,.6); }
.st-perfect { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.4em; font-weight: 900; color: var(--gold); opacity: 0; pointer-events: none; }
.st-perfect.show { animation: perfect .8s ease; }
@keyframes perfect { 20% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0; transform: translateY(-40px); } }
.st-drop { width: 100%; font-size: 1.4em; padding: 1em; touch-action: manipulation; }
.st-count { font-size: 5em; }

/* ---------- Tug-of-War ---------- */
.tug { display: grid; grid-template-rows: auto auto 1fr auto; gap: 2vh; height: 100%; position: relative; }
.tug-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 3vw; }
.tug-team { border-radius: 20px; padding: 1em; background: color-mix(in srgb, var(--c) 25%, transparent); border: 3px solid var(--c); text-align: center; }
.tug-team:last-child { text-align: center; }
.tug-team h2 { margin: 0 0 .4em; }
.tug-field { position: relative; align-self: center; height: 18vh; overflow: hidden; }
.tug-mid { position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; background: #fff; transform: translateX(-50%); border-radius: 3px; }
.tug-zone { position: absolute; top: 0; bottom: 0; width: 18%; }
.tug-zone.l { left: 0; background: linear-gradient(90deg, rgba(255,77,109,.35), transparent); }
.tug-zone.r { right: 0; background: linear-gradient(-90deg, rgba(200,130,60,.35), transparent); }
.tug-rope { position: absolute; inset: 0; transition: transform .25s ease-out; }
.tug-cane { position: absolute; left: -10%; right: -10%; top: 50%; height: 4.5vh; transform: translateY(-50%); border-radius: 99px; background: repeating-linear-gradient(115deg, #fff 0 22px, #e0262f 22px 44px); box-shadow: var(--shadow); }
.tug-flag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 4em; }
.tug-win { text-align: center; }
.tug-phone { gap: 10px; }
.tug-badge { font-size: 1.6em; font-weight: 900; padding: .4em 1em; border-radius: 99px; background: var(--c); }
.tug-btn { background: radial-gradient(circle at 35% 30%, #fff6, transparent 40%), var(--c); box-shadow: 0 12px 0 rgba(0,0,0,.35), var(--shadow); }

/* ---------- Santa's Sketchbook ---------- */
.sk { display: grid; grid-template-rows: auto 1fr; gap: 2vh; height: 100%; }
.sk-main { display: grid; grid-template-columns: auto 1fr; gap: 3vw; align-items: center; min-height: 0; }
.sk-paper { position: relative; height: 74vh; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.sk-canvas { width: 100%; height: 100%; display: block; }
.sk-wait { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3em; font-weight: 900; color: #0c1a2b; }
.sk-side { display: grid; gap: 2vh; align-content: center; justify-items: start; }
.sk-artist { font-size: 1.7em; }
.sk-pattern { display: flex; flex-wrap: wrap; gap: .3em; }
.sk-pattern i { width: 1.4em; height: 1.6em; border-bottom: 5px solid var(--gold); font-size: 2.2em; font-style: normal; font-weight: 900; text-align: center; }
.sk-pattern i.gap { border: 0; width: .6em; }
.sk-pattern.small i { font-size: 1.4em; }
.sk-got { display: flex; flex-wrap: wrap; gap: .4em; align-items: center; }
.sk-feed { display: grid; gap: .3em; }
.sk-guess { font-size: 1.3em; opacity: .85; animation: rise .3s both; }
.sk-word { font-size: 4em; color: var(--gold); animation: pop .6s cubic-bezier(.2,1.6,.4,1); }
.sk-secret { font-size: 2.6em; font-weight: 900; color: var(--gold); }

/* ---------- Ugly Sweater Contest ---------- */
.sw { display: grid; grid-template-rows: auto 1fr auto; gap: 2vh; height: 100%; }
.sw .pl-write { grid-row: 2; }
.sw-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2vw; align-items: center; min-height: 0; }
.sw-card { display: grid; justify-items: center; gap: .5em; padding: 1em; border-radius: 26px; background: rgba(255,255,255,.07); transition: transform .4s, opacity .4s; animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
.sw-card.won { transform: scale(1.04); outline: 6px solid var(--gold); }
.sw-card.lost { opacity: .55; }
.sw-canvas { width: min(36vw, 52vh); aspect-ratio: 1; display: block; }
.sw-slogan { font-size: 2em; font-weight: 900; text-align: center; font-family: Georgia, serif; }
.sw-extra { display: grid; justify-items: center; gap: .3em; }
.sw-credit { font-size: 1.2em; color: var(--muted); }
.sw-foot { text-align: center; font-size: 1.3em; }
.sw-champ { display: grid; grid-template-columns: auto 1fr; gap: 3vw; align-items: center; }
.sw-champ .sw-canvas { width: min(44vw, 62vh); }
.sw-bases { display: flex; gap: 8px; }
.sw-bases button { width: 40px; height: 40px; border-radius: 10px; border: 3px solid rgba(255,255,255,.25); }
.sw-pad { background: transparent; box-shadow: none; }
.sw-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.sw-pick button { border-radius: 16px; background: rgba(255,255,255,.07); padding: 6px; border: 3px solid transparent; }
.sw-pick button.sel, .sw-slogans button.sel { border-color: var(--gold); background: rgba(242,193,78,.18); }
.sw-pick canvas { width: 100%; aspect-ratio: 1; display: block; }
.sw-slogans { display: grid; gap: 8px; width: 100%; }
.sw-slogans button { padding: .8em; border-radius: 14px; background: rgba(255,255,255,.08); border: 3px solid transparent; font-weight: 800; font-size: 1.05em; }
