/*
VOICE  festive, loud-but-warm — a shaadi sangeet at night
IDEA   a decorated living-room TV during a Diwali party: toran garland, rangoli, diya glow
PICTURE marigold toran across the top of every screen, rangoli medallion behind the lobby
COLOUR deep maroon-magenta ground, marigold + saffron lead, peacock teal and rani pink accents
TYPE   Baloo 2 for everything shouted, Mukta for small print
*/
@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Baloo+Chettan+2:wght@700;800&family=Baloo+Thambi+2:wght@700;800&family=Mukta:wght@400;600&display=swap");
:root {
  --bg: #3a0824; --bg2: #521035; --card: #661841; --card2: #7a2050; --line: #9a3366;
  --marigold: #ffb81c; --saffron: #ff7a1a; --rani: #ff4f9a; --teal: #17b2a8; --green: #3fcf6e; --red: #ff4d4d;
  --ink: #fff4e0; --muted: #f3c4d6;
  --display: "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; min-width: 0; }
html, body { height: 100%; }
body { font-family: "Mukta", system-ui, sans-serif; background: var(--bg); color: var(--ink); -webkit-tap-highlight-color: transparent; }
h1, h2, h3, button, .brand, .big { font-family: var(--display); }
button { font: inherit; font-family: var(--display); cursor: pointer; border: 0; border-radius: 14px; color: var(--on-accent, #3a0824); background: var(--marigold); font-weight: 800; padding: 12px 18px; box-shadow: 0 4px 0 #b9790a; transition: transform .08s, box-shadow .08s; }
button:active { transform: translateY(3px); box-shadow: 0 1px 0 #b9790a; }
button:disabled { opacity: .35; cursor: default; }
button:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
button.ghost { background: transparent; color: var(--muted); border: 2px solid var(--line); box-shadow: none; }
.muted { color: var(--muted); }
.brand { font-weight: 800; }
.brand span { color: var(--marigold); }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 4px 14px; font-weight: 600; }
.chip.off { opacity: .4; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.chip.off .dot { background: var(--red); box-shadow: none; }
.timer { height: 12px; background: var(--bg2); border-radius: 99px; overflow: hidden; }
.timer > div { height: 100%; background: linear-gradient(90deg, var(--saffron), var(--marigold)); width: 100%; transition: width .25s linear; }
.score-row { display: flex; justify-content: space-between; padding: 7px 14px; border-radius: 12px; background: var(--card); margin-bottom: 7px; font-weight: 600; }
.score-row:first-child { background: linear-gradient(90deg, #8a5a00, var(--card)); }
.score-row span:last-child { font-variant-numeric: tabular-nums; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0 } 70% { transform: scale(1.06) } 100% { transform: scale(1); opacity: 1 } }
.pop { animation: pop .45s ease-out both; }
@keyframes sway { 0%,100% { transform: rotate(-1.2deg) } 50% { transform: rotate(1.2deg) } }
@media (prefers-reduced-motion: reduce) { .pop, .toran g.strand { animation: none !important; } }
.role-raja { --rc: #ffb81c; } .role-mantri { --rc: #17b2a8; } .role-chor { --rc: #ff4d4d; } .role-sipahi { --rc: #7fb0ff; }

/* ---------- Toran (marigold garland) ---------- */
.toran { display: block; width: 100%; height: 100%; pointer-events: none; }
.toran g.strand { transform-origin: top center; transform-box: fill-box; animation: sway 4s ease-in-out infinite; }

/* ---------- TV (fixed 1280×720 stage, scaled to fit) ---------- */
.tv-fit { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.tv { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; font-size: 20px; overflow: hidden;
  background: radial-gradient(ellipse at 50% -10%, #7a1a4e 0%, var(--bg) 60%), var(--bg); }
.tv .tv-toran { position: absolute; left: 0; right: 0; top: 0; height: 78px; z-index: 2; }
.tv .rangoli { position: absolute; right: -150px; bottom: -170px; width: 560px; opacity: .16; z-index: 0; }
.tv .app { position: relative; z-index: 1; height: 100%; padding: 96px 56px 24px; display: flex; flex-direction: column; gap: 16px; }
.tv header { display: flex; justify-content: space-between; align-items: center; }
.tv header .brand { font-size: 38px; }
.tv .code { font-size: 22px; } .tv .code b { color: var(--marigold); letter-spacing: 4px; font-size: 30px; font-family: var(--display); }
.tv main { flex: 1; min-height: 0; display: flex; gap: 36px; }
.tv .col { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tv .center { align-items: center; justify-content: center; text-align: center; }
.tv h1 { font-size: 52px; line-height: 1.05; text-wrap: balance; }
.tv h2 { font-size: 32px; line-height: 1.1; }
.tv .qrbox { background: #fff; padding: 12px; border-radius: 20px; width: 300px; border: 6px solid var(--marigold); box-shadow: 0 0 0 6px var(--rani); }
.tv .qrbox img { width: 100%; display: block; }
.tv .games { display: grid; gap: 12px; }
.tv .game { display: flex; gap: 18px; align-items: center; background: var(--card); border: 3px solid var(--line); border-radius: 20px; padding: 7px 18px; text-align: left; color: var(--ink); font-weight: 500; box-shadow: none; }
.tv .game:hover { border-color: var(--marigold); }
.tv .game .ic { font-size: 38px; width: 56px; text-align: center; }
.tv .game h3 { font-size: 26px; line-height: 1.1; } .tv .game p { color: var(--muted); font-size: 16px; font-family: "Mukta", system-ui, sans-serif; }
.tv .players { display: flex; flex-wrap: wrap; gap: 8px; }
.tv .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tv .opt { display: flex; gap: 12px; align-items: center; padding: 14px 20px; font-size: 24px; border-radius: 40px; background: var(--card); border: 3px solid var(--marigold); font-weight: 600; }
.tv .opt b { color: var(--marigold); font-family: var(--display); }
.tv .opt.right { background: #127a3e; border-color: var(--green); }
.tv .opt.wrong { opacity: .4; }
.tv .card4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: 100%; }
.tv .rcard { background: var(--card); border: 4px solid var(--rc, var(--line)); border-radius: 22px; padding: 18px 10px; }
.tv .rcard .em { font-size: 56px; }
.tv .rcard .rn { color: var(--rc); font-size: 26px; font-weight: 800; font-family: var(--display); }
.tv .big { font-size: 96px; font-weight: 800; color: var(--marigold); line-height: 1; }
.tv .teams { display: flex; gap: 28px; width: 100%; }
.tv .team { flex: 1; background: var(--card); border: 4px solid var(--line); border-radius: 22px; padding: 14px 20px; }
.tv .team.on { border-color: var(--marigold); box-shadow: 0 0 40px #ffb81c55; }
.tv .team .pts { font-size: 60px; font-weight: 800; color: var(--marigold); font-family: var(--display); line-height: 1; }
.tv .foot { display: flex; justify-content: space-between; align-items: center; font-size: 17px; }
.tv .foot button { font-size: 15px; padding: 6px 14px; }
.tv .toast { position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%); background: var(--red); padding: 10px 22px; border-radius: 14px; font-weight: 700; z-index: 5; }

/* ---------- Phone controller ---------- */
.phone { font-size: 18px; user-select: none; -webkit-user-select: none; display: flex; flex-direction: column; min-height: 100%; position: relative;
  background: radial-gradient(ellipse at 50% 0%, #6e1746 0%, var(--bg) 55%), var(--bg); }
.phone .ph-toran { height: 48px; flex: none; }
.phone .ph-app { flex: 1; padding: 10px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.phone .ph-head { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.phone .ph-main { flex: 1; display: flex; flex-direction: column; gap: 12px; justify-content: flex-start; text-align: center; }
/* centred when short, scrollable from the top when long (plain centring cut off the top of long game menus) */
.phone .ph-main > :first-child { margin-top: auto; } .phone .ph-main > :last-child { margin-bottom: auto; }
.phone h1 { font-size: 28px; line-height: 1.1; } .phone h2 { font-size: 21px; }
.phone .hero { font-size: 64px; line-height: 1.1; }
.phone .err { color: var(--red); font-weight: 700; min-height: 1em; }
.phone .big-btn { font-size: 21px; padding: 16px; width: 100%; }
.phone .menu { display: grid; gap: 10px; }
.phone .menu button { background: var(--card); color: var(--ink); border: 2px solid var(--line); text-align: left; display: flex; gap: 12px; align-items: center; box-shadow: none; }
.phone .menu .ic { font-size: 28px; }
.phone .menu small { font-family: "Mukta"; font-weight: 400; color: var(--muted); }
.phone .rolecard { border-radius: 24px; padding: 24px 14px; background: var(--card); border: 4px solid var(--rc, var(--line)); min-height: 220px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.phone .rolecard .em { font-size: 72px; line-height: 1.1; }
.phone .rolecard .rn { font-size: 32px; font-weight: 800; color: var(--rc); font-family: var(--display); }
.phone .covered { cursor: pointer; background: repeating-conic-gradient(from 0deg at 50% 50%, var(--card) 0 15deg, var(--card2) 15deg 30deg); }
.phone .ans { display: grid; gap: 10px; }
.phone .ans button { font-size: 19px; padding: 16px; text-align: left; display: flex; gap: 12px; align-items: center; color: #fff; }
.phone .ans .A { background: #e8663d; box-shadow: 0 4px 0 #9c3a1c; } .phone .ans .B { background: #1f8fb5; box-shadow: 0 4px 0 #11586f; }
.phone .ans .C { background: #2a9d5a; box-shadow: 0 4px 0 #17603a; } .phone .ans .D { background: #b14bd1; box-shadow: 0 4px 0 #6d2a82; }
.phone .ans button.picked { outline: 4px solid var(--marigold); }
.phone .ans button.gone { visibility: hidden; }
.phone .movie { background: var(--card); border: 4px dashed var(--marigold); border-radius: 22px; padding: 22px 12px; }
.phone .movie .t { font-size: 32px; font-weight: 800; line-height: 1.1; font-family: var(--display); }
.phone .row { display: flex; gap: 10px; } .phone .row button { flex: 1; font-size: 20px; padding: 16px; }
.phone .green { background: var(--green); box-shadow: 0 4px 0 #1f7a3e; } .phone .red { background: var(--red); color: #fff; box-shadow: 0 4px 0 #a32020; }
.phone .vipbar { display: flex; justify-content: center; } .phone .vipbar button { font-size: 14px; padding: 6px 14px; }
.phone input { font: inherit; font-size: 21px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink); width: 100%; text-align: center; }
.phone input.code { letter-spacing: 8px; text-transform: uppercase; font-weight: 800; }
.phone input:focus-visible { outline: 3px solid var(--marigold); }

/* ---------- Race ---------- */
.tv .race-wrap { position: relative; flex: 1; border-radius: 18px; overflow: hidden; border: 4px solid var(--marigold); }
.tv .race-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tv .race-hud { position: absolute; left: 196px; top: 140px; background: #000a; border-radius: 12px; padding: 6px 10px; font-size: 15px; min-width: 190px; }
.tv .race-hud div { display: flex; gap: 8px; align-items: center; padding: 2px 0; }
.tv .race-hud b { width: 22px; height: 22px; border-radius: 6px; color: #111; display: grid; place-items: center; font-family: var(--display); }
.tv .race-hud span { margin-left: auto; color: var(--muted); }
.tv .race-feed { position: absolute; left: 770px; top: 160px; width: 260px; text-align: left; font-size: 18px; font-weight: 600; }
.tv .race-feed div { background: #000a; border-radius: 10px; padding: 2px 12px; margin-top: 4px; }
.tv .race-res { position: absolute; inset: 40px 260px; background: #2a061bf2; border: 3px solid var(--marigold); border-radius: 20px; padding: 20px 28px; text-align: center; }
.tv .race-res h1 { font-size: 40px; margin-bottom: 10px; }
.tv .race-res .score-row i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 8px; vertical-align: -1px; }
.phone .race-pad { display: flex; flex-direction: column; gap: 12px; }
.phone .race-top { display: flex; justify-content: space-between; align-items: center; background: var(--card); border-radius: 16px; padding: 8px 14px; border-left: 10px solid var(--car, var(--marigold)); }
.phone .rpos { font-family: var(--display); font-weight: 800; font-size: 38px; color: var(--marigold); line-height: 1; }
.phone .rlap { font-weight: 600; text-align: right; }
.phone .nmeter { height: 14px; border-radius: 9px; background: var(--bg2); overflow: hidden; }
.phone .nmeter div { height: 100%; background: linear-gradient(90deg, #ff4d4d, #ff7a1a, #ffe066); transition: width .3s; }
.phone .pads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.phone [data-hold] { touch-action: none; -webkit-touch-callout: none; user-select: none; }
.phone .pads button { height: 150px; font-size: 54px; background: var(--card2); color: var(--ink); box-shadow: 0 6px 0 #3a0824; border: 3px solid var(--line); }
.phone [data-hold].down { transform: translateY(4px); box-shadow: 0 2px 0 #3a0824; border-color: var(--marigold); }
.phone .nitro { background: linear-gradient(90deg, #ff4d4d, #ff7a1a); color: #fff; font-size: 24px; flex: 2 !important; }
.phone .nitro.down { box-shadow: 0 0 24px #ff7a1a; }
.phone .spun { color: var(--marigold); font-weight: 700; min-height: 1.4em; }

/* ---------- Meme reactions ---------- */
.meme { position: absolute; inset: 0; z-index: 20; pointer-events: none; display: flex; align-items: flex-start; justify-content: center; padding-top: 70px; transition: opacity .35s; }
.meme.out { opacity: 0; }
.meme-big { align-items: center; padding-top: 0; }
.meme-card { background: #fff4e0; color: #3a0824; border: 5px solid var(--marigold); box-shadow: 0 0 0 5px var(--rani), 0 20px 50px #000a; border-radius: 22px; padding: 12px 18px; text-align: center; max-width: 88%; animation: pop .45s ease-out both; transform: rotate(-2deg); }
.meme-big .meme-card { padding: 22px 40px; max-width: 760px; }
.meme-emoji { font-size: 60px; line-height: 1.1; display: inline-block; }
.meme-big .meme-emoji { font-size: 120px; }
.meme-line { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.1; text-wrap: balance; }
.meme-big .meme-line { font-size: 46px; }
.meme-who { font-weight: 600; color: #8a1a52; margin-top: 2px; }
.meme-big .meme-who { font-size: 22px; }
.meme-rain { position: absolute; inset: 0; overflow: hidden; }
.meme-rain i { position: absolute; top: -60px; font-style: normal; font-size: 28px; animation: fall linear both; }
.meme-big .meme-rain i { font-size: 44px; }
@keyframes fall { to { transform: translateY(820px) rotate(200deg); } }
.a-bounce { animation: bounce .6s ease-in-out infinite alternate; }
@keyframes bounce { from { transform: translateY(0) scale(1); } to { transform: translateY(-14px) scale(1.1); } }
.a-shake { animation: shake .25s linear infinite; }
@keyframes shake { 0%,100% { transform: translateX(0) } 25% { transform: translateX(-8px) rotate(-6deg) } 75% { transform: translateX(8px) rotate(6deg) } }
.a-spin { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.a-droop { animation: droop 1.2s ease-in-out infinite alternate; }
@keyframes droop { from { transform: translateY(0) rotate(0); } to { transform: translateY(8px) rotate(-12deg); } }
@media (prefers-reduced-motion: reduce) { .meme-rain, .a-bounce, .a-shake, .a-spin, .a-droop, .meme-card { animation: none !important; } }
.meme-gif { display: block; height: 130px; max-width: 100%; margin: 0 auto 6px; border-radius: 12px; object-fit: cover; }
.meme-big .meme-gif { height: 260px; }
.giphy { font-size: 10px; color: #8a1a52; margin: -4px 0 4px; }
.meme-big .giphy { font-size: 13px; }
.roast { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.roast button { padding: 6px 14px; font-size: 15px; background: var(--card); color: var(--ink); border: 2px solid var(--line); box-shadow: none; }
.roast button.on { background: var(--marigold); color: #3a0824; border-color: var(--marigold); }

/* ---------- Dadi mascot ---------- */
.brand-row { display: flex; align-items: center; gap: 10px; }
.tv .dadi-mini { width: 58px; height: 66px; margin: -10px 0 -6px; }
/* Character host: mascot + name tag share one centred column beside the QR, so nothing overlaps the game tiles */
.tv .qrwrap { position: relative; display: flex; align-items: flex-end; gap: 4px; }
.host-card { flex: 0 0 auto; width: 136px; display: flex; flex-direction: column; align-items: center; position: relative; isolation: isolate; }
.host-card::before { content: ""; position: absolute; left: 50%; top: 44%; width: 170px; height: 170px; transform: translate(-50%, -50%); border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--marigold) 42%, transparent) 0%, transparent 66%); }
.tv .dadi-qr { width: 136px; height: 154px; display: block; filter: drop-shadow(0 8px 12px #0007); animation: hostBob 3.2s ease-in-out infinite; }
.tv .app.with-np .host-card, .tv .app.with-mv .host-card { width: 100px; } .tv .app.with-np .dadi-qr, .tv .app.with-mv .dadi-qr { width: 100px; height: 114px; }
.tv .app.with-np .host-card::before, .tv .app.with-mv .host-card::before { width: 130px; height: 130px; }
.tv .app.with-np .char-tag, .tv .app.with-mv .char-tag { font-size: 13px; padding: 5px 9px; }
.char-tag { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 16px; line-height: 1; letter-spacing: .2px; white-space: nowrap; text-align: center;
  color: #3a0824; background: var(--marigold); padding: 6px 12px; border-radius: 999px; border: 2px solid #fff4e0; box-shadow: 0 3px 0 #0006; margin-top: -10px; position: relative; z-index: 1; }
@keyframes hostBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.phone .dadi-phone { width: 150px; height: 170px; align-self: center; filter: drop-shadow(0 8px 12px #0007); animation: hostBob 3.2s ease-in-out infinite; }
.phone .char-tag { align-self: center; font-size: 18px; }
/* The reacting character peeks in at the corner of TV meme pop-ups */
.meme-big .meme-card { position: relative; }
.meme-host { position: absolute; left: -118px; bottom: -30px; width: 150px; display: flex; flex-direction: column; align-items: center; transform: rotate(2deg); animation: hostIn .5s .15s ease-out both; }
.meme-mascot { width: 150px; height: 170px; display: block; filter: drop-shadow(0 10px 16px #000a); }
.meme-host .char-tag { font-size: 18px; }
.meme-lose .meme-mascot, .meme-wrong .meme-mascot { transform: rotate(-8deg) translateY(6px); }
.meme-win .meme-host { animation: hostIn .5s .15s ease-out both, hostBob .6s .7s ease-in-out 3; }
@keyframes hostIn { from { opacity: 0; transform: translateX(40px) rotate(2deg) scale(.7); } to { opacity: 1; transform: rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .tv .dadi-qr, .phone .dadi-phone, .meme-host { animation: none !important; } }

/* ---------- Loader: Dadi making cocktails / snacks ---------- */
.loader { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  background: radial-gradient(ellipse at 50% 30%, #6e1746 0%, var(--bg) 65%); transition: opacity .35s; padding: 20px; }
.loader.fixed { position: fixed; }
.loader.out { opacity: 0; pointer-events: none; }
.loader-art { width: min(340px, 80%); height: auto; overflow: visible; }
.loader-line { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--marigold); min-height: 1.3em; }
.tv .loader-art { width: 460px; } .tv .loader-line { font-size: 34px; }
.loader-dots { display: flex; gap: 8px; } .loader-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--rani); animation: dot 1s ease-in-out infinite; }
.loader-dots i:nth-child(2) { animation-delay: .15s; } .loader-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-8px); background: var(--marigold); } }
.loader .shaker { transform-origin: 230px 120px; animation: shake-it .32s ease-in-out infinite alternate; }
@keyframes shake-it { from { transform: translate(0, 8px) rotate(-14deg); } to { transform: translate(4px, -10px) rotate(12deg); } }
.loader .sparkles text { font-size: 18px; animation: twinkle 1s ease-in-out infinite; }
.loader .sparkles text:nth-child(2) { animation-delay: .35s; } .loader .sparkles text:nth-child(3) { animation-delay: .7s; }
@keyframes twinkle { 0%,100% { opacity: 0; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }
.loader .steam path { animation: steam 1.8s ease-in infinite; opacity: 0; }
.loader .steam path:nth-child(2) { animation-delay: .6s; } .loader .steam path:nth-child(3) { animation-delay: 1.2s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(10px); } 40% { opacity: .7; } 100% { opacity: 0; transform: translateY(-30px); } }
.loader .jhara { transform-origin: 228px 118px; animation: stir 1.2s ease-in-out infinite alternate; }
@keyframes stir { from { transform: rotate(-10deg); } to { transform: rotate(14deg) translateX(-30px); } }
.loader .pakoda { animation: bob .7s ease-in-out infinite alternate; } .loader .p2 { animation-delay: .25s; } .loader .p3 { animation-delay: .5s; }
@keyframes bob { to { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .loader *, .loader-dots i { animation: none !important; } .loader .steam path { opacity: .5; } }

/* ---------- Reaction language picker + Malayalam reactions ---------- */
.hdr-r, .ph-hr { display: flex; align-items: center; gap: 14px; }
.ph-hr { gap: 8px; }
.lang { display: inline-flex; align-items: center; gap: 4px; background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 2px 4px 2px 10px; }
.lang select { font: inherit; font-weight: 600; color: var(--ink); background: transparent; border: 0; padding: 4px 6px; cursor: pointer; }
.lang select option { color: #3a0824; }
.lang select:focus-visible { outline: 2px solid var(--marigold); border-radius: 8px; }
.tv .lang { font-size: 17px; }
.ph-lang { font-size: 13px; padding-left: 6px; }
.ph-lang span { display: none; }
.meme-line.ml { font-family: "Baloo Chettan 2", var(--display); font-size: 22px; line-height: 1.25; }
.meme-big .meme-line.ml { font-size: 42px; }
.meme-sub { font-size: 14px; font-style: italic; color: #8a1a52; margin-top: 2px; }
.meme-big .meme-sub { font-size: 22px; }

/* ---------- Kerala theme (switches on with Malayalam) ---------- */
[data-theme=kerala] {
  --bg: #0c3024; --bg2: #124232; --card: #18513e; --card2: #1f604a; --line: #3a8566;
  --marigold: #e3b23c; --saffron: #f08a24; --rani: #c8312b; --teal: #5fd3a5; --ink: #fbf6e9; --muted: #cfe6d8;
}
.tv[data-theme=kerala] { background: radial-gradient(ellipse at 50% -10%, #1f6a4e 0%, var(--bg) 60%), var(--bg); }
.phone[data-theme=kerala] { background: radial-gradient(ellipse at 50% 0%, #1f6a4e 0%, var(--bg) 55%), var(--bg); }
.loader[data-theme=kerala] { background: radial-gradient(ellipse at 50% 30%, #1f6a4e 0%, var(--bg) 65%); }
[data-theme=kerala] button { box-shadow: 0 4px 0 #8a6a14; }
[data-theme=kerala] button.ghost, [data-theme=kerala] .menu button, [data-theme=kerala] .game { box-shadow: none; }
.tv[data-theme=kerala] .qrbox { border-color: var(--marigold); box-shadow: 0 0 0 6px #fbf6e9; }
.tv[data-theme=kerala] .rangoli { opacity: .22; }
body[data-theme=kerala] { background: #0c3024; }
.loader .chaya-top { transform-origin: 232px 70px; animation: pull 1.1s ease-in-out infinite alternate; }
@keyframes pull { from { transform: translateY(0); } to { transform: translateY(-18px); } }
.loader .chaya-pour { animation: pour 1.1s ease-in-out infinite alternate; stroke-dasharray: 100; }
@keyframes pour { from { stroke-dashoffset: 0; opacity: 1; } to { stroke-dashoffset: 20; opacity: .7; } }

/* ---------- TV-first lobby: 9 games, no scrolling ---------- */
.tv .lobby-l { gap: 12px; }
.tv h1.lobby-h { font-size: 40px; }
.tv .games { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tv .game { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; min-height: 100px; position: relative; transition: transform .12s, border-color .12s, box-shadow .12s; }
.tv .game .ic { position: absolute; right: 10px; top: 8px; font-size: 34px; width: auto; }
.tv .game h3 { font-size: 21px; padding-right: 40px; margin-top: 4px; }
.tv .game p { font-size: 14px; }
.tv .game:focus-visible, .tv .game:hover { outline: none; border-color: var(--marigold); transform: scale(1.05); box-shadow: 0 0 0 4px var(--marigold), 0 10px 30px #0008; z-index: 2; }
.tv button:focus-visible, .tv select:focus-visible { outline: 4px solid var(--marigold); outline-offset: 3px; }
.tv .lobby-foot { display: flex; flex-direction: column; gap: 8px; }
.tv .lobby-foot .players { gap: 6px; align-items: center; }
.tv .lobby-foot .chip { padding: 2px 12px; font-size: 16px; }
.tv .voice-btn { font-size: 16px; padding: 6px 14px; }

/* ---------- Pictionary (TV) ---------- */
.tv .draw-wrap { flex: 1; display: flex; gap: 20px; min-height: 0; }
.tv .paper-box { position: relative; width: 800px; height: 482px; border-radius: 16px; overflow: hidden; border: 5px solid var(--marigold); background: #fffdf6; flex: none; }
.tv .paper-box canvas { width: 100%; height: 100%; display: block; }
.tv .paper-over { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: #2a061bd9; padding: 30px; }
[data-theme=kerala] .paper-over { background: #0c3024e0; }
.tv .draw-side { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tv .d-hint .hint { font-family: var(--display); font-size: 34px; letter-spacing: 2px; color: var(--marigold); line-height: 1.1; }
.tv .hint-word { font-family: var(--display); font-size: 36px; color: var(--green); }
.tv .d-feed { flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; font-size: 17px; }
.tv .d-feed div { background: var(--card); border-radius: 10px; padding: 3px 10px; }
.tv .d-feed .ok { background: #127a3e; font-weight: 700; }

/* ---------- Vallam Kali (TV) ---------- */
.tv .river-wrap { border-color: #e3b23c; }
.tv .chant { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); font-family: var(--display); font-weight: 800; font-size: 40px; color: #fbf6e9; text-shadow: 0 3px 10px #000a; }
.tv .boat-res { position: absolute; inset: 70px 280px; background: #0c3024f2; border: 3px solid var(--marigold); border-radius: 20px; padding: 26px; text-align: center; display: grid; place-content: center; gap: 8px; }

/* ---------- Tambola (TV) ---------- */
.tv .tam { flex: 1; display: grid; grid-template-columns: 260px 1fr 250px; gap: 20px; align-items: center; min-height: 0; }
.tv .tam-ball-col { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.tv .tam-ball { width: 200px; height: 200px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 96px; color: #3a0824;
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, var(--marigold) 45%, var(--saffron) 100%); box-shadow: 0 14px 30px #0009, inset 0 -10px 20px #0003; }
.tv .tam-call { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--marigold); min-height: 2.4em; }
.tv .tam-recent { display: flex; gap: 6px; } .tv .tam-recent span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--card); font-weight: 700; }
.tv .tam-board { display: grid; grid-template-columns: repeat(10, 50px); grid-auto-rows: 45px; gap: 5px; justify-content: center; }
.tv .tam-board span { display: grid; place-items: center; border-radius: 9px; background: var(--card); color: var(--muted); font-weight: 700; font-size: 18px; opacity: .55; }
.tv .tam-board span.on { background: var(--marigold); color: #3a0824; opacity: 1; }
.tv .tam-board span.last { background: var(--rani); color: #fff; transform: scale(1.15); box-shadow: 0 0 18px var(--rani); }
.tv .tam-side .score-row.won { background: #127a3e; }

/* ---------- Imposter / Mafia (TV) ---------- */
.tv .cat-chip { font-size: 26px; background: var(--card); border: 2px solid var(--marigold); border-radius: 999px; padding: 4px 22px; }
.tv .order, .tv .tally { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; align-items: center; font-size: 20px; }
.tv .order .arrow { color: var(--marigold); font-weight: 800; }
.tv .mafia { flex: 1; display: flex; flex-direction: column; gap: 14px; border-radius: 20px; padding: 10px; transition: background .6s; }
.tv .mafia.night { background: #05030acc; }
.tv .maf-main { flex: 1; gap: 8px; }
.tv .town { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tv .tcard { min-width: 110px; background: var(--card); border: 3px solid var(--line); border-radius: 16px; padding: 6px 12px; text-align: center; display: flex; flex-direction: column; }
.tv .tcard .em { font-size: 30px; } .tv .tcard small { color: var(--marigold); font-weight: 700; }
.tv .tcard.dead { opacity: .45; filter: grayscale(.8); }

/* ---------- Phone: new games ---------- */
.phone .pad-canvas { width: 100%; aspect-ratio: 880 / 530; background: #fffdf6; border-radius: 14px; border: 3px solid var(--marigold); touch-action: none; display: block; }
.phone .swatches { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.phone .swatches button { width: 38px; height: 38px; padding: 0; border-radius: 50%; box-shadow: none; border: 3px solid transparent; }
.phone .swatches button.on { border-color: var(--ink); transform: scale(1.12); }
.phone .word-big { font-family: var(--display); font-size: 30px; font-weight: 800; color: var(--marigold); }
.phone .row-btn { height: 260px; border-radius: 50%; width: 260px; align-self: center; font-size: 40px; background: radial-gradient(circle at 40% 35%, #ffe08a, var(--marigold) 60%, #b98a14); color: #3a0824; touch-action: none; }
.phone .row-btn.beat { animation: beatpulse var(--beat, 650ms) ease-out infinite; }
@keyframes beatpulse { 0% { transform: scale(1.08); box-shadow: 0 0 0 0 #e3b23caa; } 60% { transform: scale(1); box-shadow: 0 0 0 22px #e3b23c00; } 100% { transform: scale(1); } }
.phone .row-fb { font-family: var(--display); font-weight: 800; font-size: 26px; min-height: 1.3em; }
.phone .ticket { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; background: var(--marigold); padding: 4px; border-radius: 10px; }
.phone .ticket button { aspect-ratio: 1; padding: 0; border-radius: 6px; font-size: 15px; background: #fffdf6; color: #3a0824; box-shadow: none; font-weight: 800; }
.phone .ticket button.blank { background: #f1e2b8; pointer-events: none; }
.phone .ticket button.mark { background: var(--rani); color: #fff; text-decoration: line-through; }
.phone .ticket button.no { animation: shake .3s 2; }
.phone .claims { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone .claims button { font-size: 15px; padding: 10px 6px; }
.phone .claims button.taken { opacity: .35; }
.phone .ball-sm { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; align-self: center; font-family: var(--display); font-weight: 800; font-size: 40px; color: #3a0824; background: radial-gradient(circle at 35% 30%, #fff 0 18%, var(--marigold) 45%, var(--saffron) 100%); }
.phone .targets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone .targets button { font-size: 17px; padding: 12px 8px; background: var(--card2); color: var(--ink); box-shadow: none; border: 2px solid var(--line); }
.phone .targets button.picked { background: var(--marigold); color: #3a0824; }
.phone .guess-row { display: flex; gap: 8px; } .phone .guess-row input { flex: 1; font-size: 18px; } .phone .guess-row button { flex: none; }
.phone .menu2 { grid-template-columns: 1fr 1fr; gap: 8px; } .phone .menu2 button { font-size: 14px; padding: 8px; gap: 8px; line-height: 1.15; } .phone .menu2 .ic { font-size: 22px; }
.phone .vipbar { gap: 6px; flex-wrap: wrap; }
[hidden] { display: none !important; }
.tv .games.few { gap: 14px; } .tv .games.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tv .games.few .game { min-height: 150px; padding: 16px 20px; justify-content: flex-end; }
.tv .games.few .game h3 { font-size: 27px; padding-right: 0; } .tv .games.few .game p { font-size: 17px; } .tv .games.few .game .ic { font-size: 46px; }

/* ---------- Festival themes (picked in the admin panel) ---------- */
[data-theme=diwali] { --bg: #1d0b33; --bg2: #2a1248; --card: #35185a; --card2: #42206c; --line: #5f3a8e; --marigold: #ffc23d; --saffron: #ff8a1a; --rani: #ff4f9a; --ink: #fff4e0; --muted: #e0cdf5; }
[data-theme=christmas] { --bg: #0b2a1d; --bg2: #103826; --card: #154630; --card2: #1b553a; --line: #2f7a55; --marigold: #e8c25a; --saffron: #d7263d; --rani: #d7263d; --teal: #8fe3c0; --ink: #fbf7ee; --muted: #cfe8da; }
[data-theme=holi] { --bg: #2a0b47; --bg2: #3a1260; --card: #46196f; --card2: #552182; --line: #7a3fb0; --marigold: #ffd400; --saffron: #ff7a1a; --rani: #ff3d8b; --teal: #20c0e0; --ink: #fff8ff; --muted: #e8d2ff; }
[data-theme=newyear] { --bg: #070b1f; --bg2: #0e1430; --card: #151d42; --card2: #1c2652; --line: #34407a; --marigold: #e8c25a; --saffron: #ff7a1a; --rani: #ff5fa2; --teal: #7fd3ff; --ink: #f4f6ff; --muted: #c6cdea; }
[data-theme=eid] { --bg: #062b2a; --bg2: #0a3a38; --card: #0f4845; --card2: #145752; --line: #2d7d76; --marigold: #e8c25a; --saffron: #e89b3a; --rani: #e8c25a; --teal: #8fe3d6; --ink: #fbf6e9; --muted: #cbe7e2; }
.tv[data-theme=diwali] { background: radial-gradient(ellipse at 50% -10%, #4a1f7a 0%, var(--bg) 60%), var(--bg); }
.tv[data-theme=christmas] { background: radial-gradient(ellipse at 50% -10%, #1f6a48 0%, var(--bg) 60%), var(--bg); }
.tv[data-theme=holi] { background: radial-gradient(circle at 12% 80%, #ff3d8b55 0, transparent 30%), radial-gradient(circle at 88% 20%, #20c0e055 0, transparent 30%), radial-gradient(ellipse at 50% -10%, #6a2ca8 0%, var(--bg) 60%), var(--bg); }
.tv[data-theme=newyear] { background: radial-gradient(ellipse at 50% -10%, #23306b 0%, var(--bg) 60%), var(--bg); }
.tv[data-theme=eid] { background: radial-gradient(ellipse at 50% -10%, #145e59 0%, var(--bg) 60%), var(--bg); }
.phone[data-theme=diwali], .phone[data-theme=christmas], .phone[data-theme=holi], .phone[data-theme=newyear], .phone[data-theme=eid] { background: radial-gradient(ellipse at 50% 0%, var(--card2) 0%, var(--bg) 55%), var(--bg); }
body[data-theme=diwali] { background: #1d0b33; } body[data-theme=christmas] { background: #0b2a1d; } body[data-theme=holi] { background: #2a0b47; }
body[data-theme=newyear] { background: #070b1f; } body[data-theme=eid] { background: #062b2a; } body[data-theme=kerala] { background: #0c3024; }
[data-theme=christmas] button, [data-theme=diwali] button, [data-theme=holi] button, [data-theme=newyear] button, [data-theme=eid] button { box-shadow: 0 4px 0 #0006; }
[data-theme] button.ghost, [data-theme] .menu button, [data-theme] .game, [data-theme] .targets button { box-shadow: none; }
.tv[data-theme=christmas] .rangoli, .tv[data-theme=newyear] .rangoli { opacity: .14; }
/* falling snow for Christmas */
.tv[data-theme=christmas]::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(#fff 1.5px, transparent 2px), radial-gradient(#fff 1px, transparent 1.5px); background-size: 90px 90px, 55px 55px; background-position: 0 0, 30px 40px; opacity: .25; animation: snow 14s linear infinite; }
@keyframes snow { to { background-position: 0 900px, 30px 600px; } }
@media (prefers-reduced-motion: reduce) { .tv[data-theme=christmas]::after { animation: none; } }

/* ---------- Tamil mode (Kevin Dadi) ---------- */
[data-theme=tamil] { --bg: #3a0d0f; --bg2: #4a1316; --card: #5a1a1d; --card2: #6b2226; --line: #8f3a3e; --marigold: #f2b705; --saffron: #ff8c3a; --rani: #e2336b; --teal: #3fc18a; --ink: #fff7e8; --muted: #f1d3c6; }
.tv[data-theme=tamil] { background: radial-gradient(ellipse at 50% -10%, #7a2026 0%, var(--bg) 60%), var(--bg); }
.phone[data-theme=tamil] { background: radial-gradient(ellipse at 50% 0%, #6b2226 0%, var(--bg) 55%), var(--bg); }
.loader[data-theme=tamil] { background: radial-gradient(ellipse at 50% 30%, #6b2226 0%, var(--bg) 65%); }
body[data-theme=tamil] { background: #3a0d0f; }
[data-theme=tamil] button { box-shadow: 0 4px 0 #0006; }
.tv[data-theme=tamil] .rangoli { opacity: .18; }
.meme-line.ta { font-family: "Baloo Thambi 2", var(--display); font-size: 21px; line-height: 1.3; }
.meme-big .meme-line.ta { font-size: 40px; }

/* ---------- Venue branding: "Dadicool × BARN" ---------- */
.brand .bx { color: var(--muted); font-weight: 600; margin: 0 .28em; font-size: .7em; vertical-align: .12em; }
.brand .blogo { height: 1.05em; max-width: 3.2em; object-fit: contain; vertical-align: -.2em; margin-right: .25em; border-radius: 6px; }
.brand .bname { color: var(--ink); }
.tv header.has-brand .brand { font-size: 34px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 720px; }
.ph-head.has-brand .brand { font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv[data-theme=brand] { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, transparent), var(--bg) 85%), var(--brand-img, none) center / cover, radial-gradient(ellipse at 50% -10%, var(--glow) 0%, var(--bg) 60%), var(--bg); }
.phone[data-theme=brand] { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 72%, transparent), var(--bg) 70%), var(--brand-img, none) center / cover, var(--bg); }
.loader[data-theme=brand], body[data-theme=brand] { background: var(--bg); }
[data-theme=brand] button { box-shadow: 0 4px 0 #0006; }
.tv .brand-mark { position: absolute; right: -40px; bottom: -40px; width: 380px; height: 380px; object-fit: contain; opacity: .1; z-index: 0; filter: grayscale(.2); }

/* ---------- Song vote, now playing, lyrics (TV) ---------- */
.tv .app.with-np { padding-bottom: 74px; gap: 10px; }
.tv .app.with-np .lobby-l { gap: 8px; } .tv .app.with-np h1.lobby-h { font-size: 32px; }
.tv .app.with-np .games .game { padding-top: 2px; padding-bottom: 2px; } .tv .app.with-np .games .game h3 { font-size: 23px; }
.tv .app.with-np .qrbox { width: 250px; }
.tv .mv { position: absolute; z-index: 4; background: color-mix(in srgb, var(--bg) 92%, black); border: 3px solid var(--marigold); border-radius: 24px; padding: 18px 20px; box-shadow: 0 18px 50px #0008; display: flex; flex-direction: column; gap: 10px; }
/* vote panel docks in its own right-hand column; .app gives up that space so nothing is covered */
.tv .mv { top: 168px; right: 24px; max-height: calc(100% - 192px); overflow: hidden; }
.tv .mv.mv-lg { width: 360px; padding: 14px 16px; gap: 8px; }
.tv .mv.mv-lg .mv-h { font-size: 21px; } .tv .mv.mv-lg .mv-t { font-size: 24px; }
.tv .mv.mv-lg .mv-o { font-size: 17px; padding: 6px 10px; gap: 8px; } .tv .mv.mv-lg .mv-n, .tv .mv.mv-lg .mv-c { font-size: 21px; }
.tv .mv.mv-sm { width: 320px; padding: 12px 14px; gap: 6px; font-size: 16px; border-width: 2px; }
.tv .app.with-mv main, .tv .app.with-mv .foot { margin-right: 344px; }
.tv .app.with-mv.mv-big main, .tv .app.with-mv.mv-big .foot { margin-right: 384px; }
.tv .app.with-mv .qrbox { width: 220px; } .tv .app.with-mv.mv-big .qrbox { width: 180px; padding: 8px; }
.tv .app.with-mv.mv-big .games .game { padding-top: 4px; padding-bottom: 4px; }
.tv .app.with-np ~ .mv { max-height: calc(100% - 242px); }
.tv .app.with-mv .race-wrap canvas { object-fit: contain; background: #0006; }
.tv .mv-h { display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-weight: 800; font-size: 26px; }
.tv .mv.mv-sm .mv-h { font-size: 17px; }
.tv .mv-t { color: var(--marigold); font-size: 30px; min-width: 2.2em; text-align: right; }
.tv .mv.mv-sm .mv-t { font-size: 20px; }
.tv .mv-list { display: grid; gap: 8px; }
.tv .mv.mv-sm .mv-list { gap: 5px; }
.tv .mv-o { position: relative; display: flex; align-items: center; gap: 12px; background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 8px 14px; overflow: hidden; font-size: 22px; font-weight: 600; }
.tv .mv.mv-sm .mv-o { font-size: 15px; padding: 4px 10px; gap: 8px; border-radius: 12px; }
.tv .mv-o > * { position: relative; z-index: 1; }
.tv .mv-o .mv-bar { position: absolute; z-index: 0; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--marigold) 32%, transparent); transition: width .4s ease-out; }
.tv .mv-o .mv-s { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv .mv-o .mv-s .muted { font-weight: 400; }
.tv .mv-n { font-family: var(--display); color: var(--marigold); font-size: 26px; width: 26px; text-align: center; }
.tv .mv.mv-sm .mv-n { font-size: 17px; width: 16px; }
.tv .mv-c { font-family: var(--display); font-size: 28px; color: var(--marigold); min-width: 1.4em; text-align: right; font-variant-numeric: tabular-nums; }
.tv .mv.mv-sm .mv-c { font-size: 18px; }
.tv .mv-o.win { border-color: var(--marigold); box-shadow: 0 0 30px color-mix(in srgb, var(--marigold) 50%, transparent); }
.tv .mv-o.lost { opacity: .4; }
.tv .mv-f { text-align: center; font-weight: 600; }
.tv .cv { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex: none; display: inline-grid; place-items: center; background: var(--card2); font-size: 26px; }
.tv .mv.mv-sm .cv { width: 30px; height: 30px; font-size: 16px; border-radius: 6px; }
.tv .cv.sm { width: 52px; height: 52px; }
.tv .cv.lg { width: 120px; height: 120px; border-radius: 16px; font-size: 56px; }
.tv .np { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 56px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 96%, black), color-mix(in srgb, var(--card) 90%, black)); border-top: 2px solid var(--line); }
.tv .np-s { display: flex; flex-direction: column; min-width: 0; max-width: 380px; line-height: 1.15; }
.tv .np-s small { color: var(--muted); font-size: 14px; } .tv .np-s b { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv .np-s b .muted { font-weight: 400; }
.tv .np-l { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.15; }
.tv .np-l b { font-family: var(--display); font-size: 26px; color: var(--marigold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tv .np-l span { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tv .np-up { flex: 1; text-align: right; color: var(--muted); font-size: 18px; } .tv .np-up b { color: var(--ink); }
.tv .lyr { position: absolute; inset: 0; z-index: 4; overflow: hidden; background: var(--bg); }
.tv .lyr-bg { position: absolute; inset: -40px; background: var(--card) center / cover; filter: blur(40px) brightness(.35); }
.tv .lyr-in { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 96px 80px 40px; text-align: center; }
.tv .lyr-top { display: flex; align-items: center; gap: 20px; text-align: left; font-size: 26px; }
.tv .lyr-top b { font-family: var(--display); font-size: 34px; }
.tv .lyr-dadi { width: 110px; height: 124px; }
.tv .lyr-lines { display: flex; flex-direction: column; gap: 14px; max-width: 1100px; }
.tv .lyr-lines p { font-family: var(--display); font-weight: 800; line-height: 1.1; text-wrap: balance; }
.tv .lyr-lines .cur { font-size: 62px; color: var(--marigold); text-shadow: 0 4px 24px #0008; }
.tv .lyr-lines .dim { font-size: 30px; color: var(--muted); opacity: .7; min-height: 1.1em; }
@media (prefers-reduced-motion: reduce) { .tv .mv-o .mv-bar { transition: none; } }

/* ---------- Song vote (phone) ---------- */
.mvote { margin: 8px 0 0; padding: 10px; border: 2px solid var(--marigold); border-radius: 18px; background: color-mix(in srgb, var(--bg) 85%, black); display: grid; gap: 8px; }
.mvote .mv-h { display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-weight: 800; font-size: 17px; }
.mvote .mv-btns { display: grid; gap: 6px; }
.mvote button { display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left; background: var(--card); color: var(--ink); border: 2px solid var(--line); box-shadow: none; padding: 8px 12px; font-size: 16px; }
.mvote button small { grid-column: 1; color: var(--muted); font-family: "Mukta", system-ui, sans-serif; font-weight: 400; font-size: 13px; }
.mvote button .mv-c { grid-column: 2; grid-row: 1 / span 2; font-size: 20px; color: var(--marigold); padding-left: 10px; }
.mvote button.picked { border-color: var(--marigold); background: color-mix(in srgb, var(--marigold) 22%, var(--card)); }
.mvote.compact { padding: 6px 8px; gap: 5px; } .mvote.compact .mv-h { font-size: 14px; }
.mvote.compact .mv-btns { grid-template-columns: 1fr 1fr; gap: 5px; }
.mvote.compact button { padding: 5px 8px; font-size: 13px; } .mvote.compact button small { display: none; } .mvote.compact button .mv-c { font-size: 15px; grid-row: 1; }
.tv .app.with-mv.mv-big .foot .hint { visibility: hidden; }

/* ---------- How to play (before each game) ---------- */
.howto { display: flex; flex-direction: column; gap: 14px; max-width: 980px; margin: 0 auto; width: 100%; }
.tv .howto { justify-content: center; height: 100%; }
.howto .ht-h { display: flex; align-items: center; gap: 18px; }
.howto .ht-ic { font-size: 64px; line-height: 1; }
.howto .ht-h small { color: var(--muted); font-size: 18px; text-transform: uppercase; letter-spacing: .08em; }
.tv .howto .ht-h h1 { font-size: 52px; line-height: 1.05; }
.howto .ht-n { margin-left: auto; font-family: var(--display); font-size: 54px; color: var(--marigold); }
.howto .ht-goal { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--marigold); }
.howto .ht-steps { list-style: none; display: grid; gap: 10px; padding: 0; margin: 0; }
.howto .ht-steps li { display: flex; align-items: center; gap: 16px; background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 12px 18px; font-size: 25px; font-weight: 600; line-height: 1.25; }
.howto .ht-si { font-size: 34px; width: 46px; text-align: center; flex: none; }
.howto .ht-f { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 19px; }
.howto.ph { gap: 10px; text-align: left; }
.howto.ph h1 { font-size: 28px; }
.howto.ph .ht-goal { font-size: 20px; }
.howto.ph .ht-steps li { font-size: 16px; padding: 8px 12px; gap: 10px; border-radius: 14px; }
.howto.ph .ht-si { font-size: 22px; width: 28px; }
.howto.ph .big-btn, .howto.ph .ghost { width: 100%; }
