/* Tamil: bundled Noto Sans Tamil (SIL OFL, fonts/OFL.txt) so phones and kiosks without a Tamil font still render it. No network request. */
@font-face { font-family: "SW Noto Sans Tamil"; src: url(../fonts/NotoSansTamil-Regular.ttf) format("truetype"); font-weight: 100 600; font-display: swap; unicode-range: U+0B80-0BFF, U+200C-200D; }
@font-face { font-family: "SW Noto Sans Tamil"; src: url(../fonts/NotoSansTamil-Bold.ttf) format("truetype"); font-weight: 601 900; font-display: swap; unicode-range: U+0B80-0BFF, U+200C-200D; }
/* SpinWheel mockup styles. No colour literals for the player UI: every colour is a theme token (CSS custom property set from js/data.js).
   Units inside .stage are stage pixels (1080 wide); the stage is scaled with --s. Animations use transform and opacity only. */
:root {
  --s: 0.36; --hit: 134px; --ts: 1;
  --bg0: #0A2E22; --bg1: #14503C; --ink: #FFF7E6; --inkSoft: #F1E6C8;
  --surface: #FFF7E6; --surfaceAlt: #F3E6C6; --surfaceText: #2A1A12; --surfaceMuted: #5B4636;
  --fieldBg: #fff; --fieldText: #1B1B1B; --fieldBorder: #7A5C46;
  --primary: #C8102E; --primaryText: #fff; --primaryShadow: #6E0A1A; --btnBorder: #6E0A1A;
  --accent: #F6C453; --accentText: #3A0B10; --danger: #A4001F; --ok: #14663A;
  --focus: #FFF7E6; --focusRing: #0A2E22; --deco1: #1F8A5B; --deco2: #C8102E; --deco3: #F6C453;
  --rim: #F6C453; --hub: #F6C453; --radius: 36px; --radiusLg: 56px;
  --fontDisplay: Georgia, serif;
  --fontBody: "SW Noto Sans Tamil", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #060d0a; overflow: hidden; }
body { font-family: var(--fontBody); -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 8px solid var(--focus); outline-offset: 4px; box-shadow: 0 0 0 14px var(--focusRing); }
.card :focus-visible, dialog :focus-visible { outline-color: var(--focusRing); box-shadow: 0 0 0 14px var(--focus); }

/* ---- viewport + stage ---- */
#viewport { position: fixed; inset: 0; overflow: hidden; background: radial-gradient(120% 90% at 50% 20%, var(--bg1), var(--bg0)); }
.stage { position: absolute; left: 0; top: 0; width: 1080px; transform-origin: 0 0; overflow: hidden; color: var(--ink);
  background: radial-gradient(90% 55% at 50% 38%, var(--bg1), var(--bg0) 88%); font-size: calc(46px * var(--ts)); line-height: 1.3; display: flex; flex-direction: column; }
.stage :lang(ta), dialog :lang(ta), :lang(ta) { line-height: 1.5; }

.decor { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.top-band { position: absolute; left: 0; right: 0; top: 0; height: 96px; }
.top-band svg { width: 100%; height: 100%; }
.hang { position: absolute; top: 230px; width: 104px; opacity: .95; }
.hang svg { width: 100%; display: block; transform-origin: 50% 0; animation: sway 6s ease-in-out infinite alternate; }
.hang-l { left: 6px; } .hang-r { right: 6px; } .hang-r svg { animation-delay: -3s; }
.particles span { position: absolute; top: -90px; opacity: 0; will-change: transform, opacity; animation: fall linear infinite; }
.particles svg { width: 100%; height: 100%; display: block; }
.twk { animation: twinkle 3.2s ease-in-out infinite; } .twk.t1 { animation-delay: -1.1s; } .twk.t2 { animation-delay: -2.1s; }
@keyframes sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
@keyframes twinkle { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes fall { 0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 0; } 8% { opacity: .5; } 90% { opacity: .5; } 100% { transform: translate3d(60px, 2300px, 0) rotate(160deg); opacity: 0; } }
#confetti { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 8; pointer-events: none; }

.offbanner { position: absolute; left: 0; right: 0; top: 0; z-index: 9; background: var(--accent); color: var(--accentText); font-weight: 700; text-align: center; padding: 22px; font-size: .85em; }
.kbadge { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 9; pointer-events: none; background: var(--surface); color: var(--surfaceText); border-radius: 999px; padding: 8px 26px; font-size: .62em; white-space: nowrap; }

/* ---- header ---- */
.top { position: relative; z-index: 4; display: flex; align-items: center; gap: 22px; padding: 100px 56px 0; flex: none; }
.logo { flex: 1; text-align: center; border: 4px dashed var(--inkSoft); color: var(--ink); border-radius: 999px; padding: 18px 20px; font-size: .78em; letter-spacing: .08em; }
.iconbtn { min-width: max(var(--hit), 128px); min-height: max(var(--hit), 128px); padding: 0 24px; border-radius: 999px; border: 6px solid var(--accent); background: var(--surface); color: var(--surfaceText); display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-weight: 700; font-size: .85em; }
.iconbtn svg { width: 60px; height: 60px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn.pill { padding: 0 30px; }
.langcode { background: var(--surfaceText); color: var(--surface); border-radius: 999px; padding: 4px 18px; font-size: .8em; letter-spacing: .04em; }

/* ---- first-screen language tip (one line per language) ---- */
.langnotice { position: absolute; z-index: 6; top: 246px; right: 56px; width: 780px; display: flex; align-items: flex-start; gap: 6px; background: var(--accent); color: var(--accentText); border-radius: 32px; border: 5px solid var(--accentText); padding: 12px 12px 12px 8px; box-shadow: 0 14px 28px rgba(0, 0, 0, .35); animation: enter .32s cubic-bezier(0, 0, .2, 1) both; }
.ln-arrow { position: absolute; top: -21px; right: 150px; width: 34px; height: 34px; background: var(--accent); border-left: 5px solid var(--accentText); border-top: 5px solid var(--accentText); transform: rotate(45deg); }
.ln-body { position: relative; flex: 1; min-width: 0; background: none; border: 0; color: inherit; text-align: left; padding: 10px 14px; border-radius: 24px; font-weight: 700; font-size: .66em; }
.ln-body .nl { display: block; line-height: 1.45; }
.ln-x { flex: none; min-width: max(var(--hit), 110px); min-height: max(var(--hit), 110px); border-radius: 50%; border: 5px solid var(--accentText); background: transparent; color: var(--accentText); font-size: 1.1em; font-weight: 800; line-height: 1; }
.langnotice :focus-visible { outline-color: var(--focusRing); box-shadow: 0 0 0 14px var(--focus); }
.iconbtn:active { transform: translateY(5px); }

/* ---- screens ---- */
.screens { position: relative; z-index: 3; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.screen { display: none; flex: 1; min-height: 0; flex-direction: column; padding: 20px 64px 40px; overflow-y: auto; overflow-x: hidden; gap: 26px; }
.screen.active { display: flex; animation: enter .32s cubic-bezier(0, 0, .2, 1) both; }
.screen.center { justify-content: center; text-align: center; align-items: stretch; }
@keyframes enter { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
h1 { font-family: var(--fontDisplay); font-size: 1.55em; line-height: 1.15; margin: 0; text-align: center; font-weight: 800; text-wrap: balance; }
h1:focus, h1:focus-visible { outline: none; box-shadow: none; }
h1.big { font-size: 1.9em; }
h2 { margin: 0; font-family: var(--fontDisplay); font-size: 1.25em; }
.kicker { margin: 0; text-align: center; color: var(--accent); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .95em; }
.lead { margin: 0; text-align: center; font-size: 1.05em; color: var(--ink); } .lead.small { font-size: .9em; color: var(--inkSoft); }
.foot { margin: 0; text-align: center; font-size: .82em; color: var(--inkSoft); }
.hint-ink { margin: 0; text-align: center; font-size: .82em; color: var(--inkSoft); }
.hero { flex: 1; min-height: 360px; display: flex; align-items: center; justify-content: center; }
.hero svg { max-height: 100%; max-width: 100%; width: 800px; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .35)); animation: bob 5s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-14px); } }
.steps { list-style: none; display: flex; justify-content: center; gap: 18px; margin: 0; padding: 0; font-size: .78em; }
.steps li { padding: 8px 26px; border-radius: 999px; border: 3px solid var(--inkSoft); color: var(--inkSoft); }
.steps li.on { background: var(--accent); color: var(--accentText); border-color: var(--accent); font-weight: 800; }

/* ---- launcher ---- */
.games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; flex: none; }
.games li { display: flex; }
.gcard { position: relative; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; text-align: left; min-height: 0; padding: 22px 28px 20px; border-radius: var(--radius); border: 6px solid var(--accent); background: var(--surface); color: var(--surfaceText); font-size: inherit; }
.gcard strong { display: block; font-family: var(--fontDisplay); font-size: 1.05em; line-height: 1.15; }
.gdesc { display: block; font-size: .7em; color: var(--surfaceMuted); }
.gicon { width: 96px; height: 96px; border-radius: 50%; background: var(--accent); color: var(--accentText); display: flex; align-items: center; justify-content: center; flex: none; }
.gicon svg { width: 54px; height: 54px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gcard[aria-pressed=true] { border-color: var(--btnBorder); border-width: 11px; background: var(--surfaceAlt); padding: 19px 23px 17px; }
.gcard[aria-pressed=true]::after { content: "\2713"; position: absolute; top: 22px; right: 24px; width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: var(--primaryText); font-weight: 900; text-align: center; line-height: 64px; font-size: 38px; }
.gcard.soon { border-style: dashed; background: var(--surfaceAlt); }
.gtag { margin-top: auto; padding: 6px 22px; border-radius: 999px; background: var(--accent); color: var(--accentText); font-weight: 800; font-size: .66em; }
.seggrp { display: flex; flex-direction: column; gap: 10px; flex: none; }
.seglabel { color: var(--inkSoft); font-weight: 800; font-size: .72em; letter-spacing: .1em; text-transform: uppercase; }
.segrow { display: flex; flex-wrap: wrap; gap: 14px; }
.segrow .segbtn { flex: 1 1 30%; padding: 0 22px; font-size: .8em; min-height: max(var(--hit), 100px); }
#s-launcher { gap: 14px; padding: 8px 64px 24px; }
#s-launcher .gcard { gap: 6px; padding: 14px 28px 12px; }
#s-launcher .gicon { width: 64px; height: 64px; }
#s-launcher .gicon svg { width: 38px; height: 38px; }
#s-launcher .segrow { gap: 10px; }
#s-launcher .segrow .segbtn { min-height: 88px; }
#s-launcher .btn { min-height: 120px; }
.gcard.soon .gdesc { display: none; }
#langSw .segbtn { flex-basis: 40%; }

/* ---- buttons ---- */
.btn { width: 100%; min-height: max(var(--hit), 148px); border-radius: var(--radius); border: 6px solid var(--btnBorder); background: var(--primary); color: var(--primaryText); font-weight: 800; font-size: 1.1em; padding: 18px 32px; box-shadow: 0 12px 0 var(--primaryShadow); text-wrap: balance; flex: none; margin-bottom: 12px; }
.btn:active { transform: translateY(8px); box-shadow: 0 4px 0 var(--primaryShadow); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn.alt { background: var(--fieldBg); color: var(--fieldText); display: flex; align-items: center; justify-content: center; gap: 22px; }
.btn.alt svg { width: 64px; height: 64px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn.line { background: transparent; color: var(--surfaceText); border-color: var(--surfaceText); box-shadow: none; }
.or { display: flex; align-items: center; gap: 22px; margin: 0; color: var(--surfaceMuted); font-size: .8em; }
.or::before, .or::after { content: ""; flex: 1; border-top: 4px solid var(--fieldBorder); }
.btn.spin { font-size: 1.5em; letter-spacing: .12em; }
.linkbtn { background: none; border: 0; padding: 0 6px; min-height: max(var(--hit), 64px); color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 4px; font-size: 1em; display: inline-flex; align-items: center; }
.linkbtn.dark { color: var(--surfaceText); }
.privline .linkbtn, .hint .linkbtn, .foot .linkbtn { min-height: 0; display: inline; padding: 6px 4px; }
body:not([data-screen=welcome]):not([data-screen=ready]):not([data-screen=win]) .hang { display: none; } .linkbtn.big { font-size: 1em; }

/* ---- form ---- */
.card { background: var(--surface); color: var(--surfaceText); border-radius: var(--radiusLg); padding: 30px 48px; display: flex; flex-direction: column; gap: 12px; border: 6px solid var(--accent); flex: none; }
.privline { margin: 0; font-size: .85em; color: var(--surfaceText); }
.field { display: flex; flex-direction: column; gap: 4px; }
label { font-weight: 800; font-size: .95em; }
input[type=text], input[type=tel], input[type=email] { width: 100%; min-height: max(var(--hit), 104px); font: inherit; font-size: 1em; color: var(--fieldText); background: var(--fieldBg); border: 5px solid var(--fieldBorder); border-radius: 24px; padding: 0 30px; }
.phone { display: flex; gap: 14px; } .phone input { flex: 1; min-width: 0; }
.prefix { display: inline-flex; align-items: center; padding: 0 30px; border-radius: 24px; background: var(--surfaceAlt); color: var(--surfaceText); font-weight: 800; border: 5px solid var(--fieldBorder); }
.hint { margin: 0; font-size: .8em; color: var(--surfaceMuted); }
dialog .hint { color: var(--surfaceMuted); }
.err { margin: 0; color: var(--danger); font-weight: 800; font-size: .82em; display: flex; gap: 12px; align-items: flex-start; }
.err::before { content: "!"; flex: none; width: 40px; height: 40px; margin-top: 2px; border-radius: 50%; background: var(--danger); color: var(--surface); text-align: center; line-height: 40px; font-size: 28px; }
.field.error input[type=text], .field.error input[type=tel], .field.error input[type=email] { border-color: var(--danger); border-width: 9px; }
.check { display: flex; align-items: center; gap: 24px; font-weight: 600; font-size: .9em; min-height: max(var(--hit), 72px); }
.check input { width: max(var(--hit), 72px); height: max(var(--hit), 72px); flex: none; accent-color: var(--primary); margin: 0; }
.field.error .check input { outline: 7px solid var(--danger); }
.summary { border: 8px solid var(--danger); border-radius: 24px; padding: 20px 28px; background: var(--fieldBg); } .summary:focus { outline: none; }
.summary h2 { color: var(--danger); font-size: 1em; } .summary ul { margin: 8px 0 0; padding-left: 40px; font-size: .85em; } .summary a { color: var(--danger); font-weight: 700; display: inline-flex; align-items: center; min-height: max(var(--hit), 64px); }

/* ---- OTP ---- */
.sent { margin: 0; font-weight: 800; word-break: break-word; }
.ok-msg { margin: 0; color: var(--ok); font-weight: 800; font-size: .85em; }
.otpbox { position: relative; }
.cells { display: flex; gap: 14px; justify-content: space-between; }
.cell { flex: 1; height: 170px; display: flex; align-items: center; justify-content: center; font-size: 1.6em; font-weight: 800; font-variant-numeric: tabular-nums; border: 6px solid var(--fieldBorder); background: var(--fieldBg); color: var(--fieldText); border-radius: 22px; }
.cell.cur { border-color: var(--btnBorder); border-width: 10px; }
.otpbox.error .cell { border-color: var(--danger); border-width: 9px; }
#otp { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 40px; border: 0; padding: 0; }
.otpbox:focus-within { outline: 8px solid var(--focusRing); outline-offset: 6px; border-radius: 26px; box-shadow: 0 0 0 14px var(--focus); }
.otp-actions { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---- wheel ---- */
.wheelwrap { position: relative; width: 880px; height: 880px; align-self: center; flex: none; margin-top: 64px; }
.wheel { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .4)); }
#wheelRot { transform-origin: 0 0; }
.pointer { position: absolute; left: 50%; top: -52px; width: 112px; transform: translateX(-50%); z-index: 2; transform-origin: 50% 20%; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .35)); }
.checking { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--surface); color: var(--surfaceText); padding: 26px 44px; border-radius: 999px; font-weight: 800; z-index: 3; animation: pulse 1.4s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: .75; } to { opacity: 1; } }
.how { margin: 0; padding: 0 0 0 44px; font-size: .8em; color: var(--inkSoft); display: flex; flex-direction: column; gap: 8px; }

/* ---- result ---- */
.ticket { background: var(--surface); color: var(--surfaceText); border-radius: 40px; padding: 40px 48px; text-align: left; border: 6px solid var(--accent); display: flex; flex-direction: column; gap: 22px;
  -webkit-mask: radial-gradient(circle 34px at 0 62%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 34px at 100% 62%, transparent 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 34px at 0 62%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 34px at 100% 62%, transparent 97%, #000) right / 51% 100% no-repeat; }
.t-row { display: flex; flex-direction: column; gap: 6px; } .t-label { font-size: .78em; color: var(--surfaceMuted); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.code { font-family: ui-monospace, "SFMono-Regular", Consolas, "Courier New", monospace; font-size: 1.5em; letter-spacing: .06em; word-break: break-all; }
.perf { border: 0; border-top: 5px dashed var(--fieldBorder); margin: 0; width: 100%; }
.t-meta { display: flex; flex-direction: column; gap: 10px; min-width: 0; } .who { margin: 0; font-weight: 800; font-size: .9em; } .when { margin: 0; font-size: .78em; color: var(--surfaceMuted); }
.yw { display: block; font-size: .5em; color: var(--inkSoft); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
#winPrize { display: block; color: var(--ink); }
.bigicon { align-self: center; width: 300px; height: 300px; border-radius: 50%; background: var(--surface); border: 10px solid var(--accent); color: var(--surfaceText); display: flex; align-items: center; justify-content: center; }
.bigicon svg { width: 62%; height: 62%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bigicon.warn { color: var(--danger); }

/* ---- host ---- */
.openbox { margin: 0; text-align: center; padding: 18px 26px; border: 5px dashed var(--accent); border-radius: 24px; color: var(--ink); font-size: .85em; }
.recs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.rec { background: var(--surface); color: var(--surfaceText); border-radius: 36px; padding: 30px 36px; border: 6px solid var(--accent); display: flex; flex-direction: column; gap: 10px; font-size: .8em; }
.rec .rh { display: flex; justify-content: space-between; gap: 16px; align-items: center; } .rec .rh strong { font-size: 1.25em; }
.rec dl { margin: 0; display: grid; grid-template-columns: 250px 1fr; gap: 4px 20px; } .rec dt { color: var(--surfaceMuted); } .rec dd { margin: 0; word-break: break-word; font-weight: 600; }
.badge { padding: 6px 22px; border-radius: 999px; font-weight: 800; font-size: .85em; border: 4px solid currentColor; white-space: nowrap; }
.badge.ready { color: var(--surfaceText); background: var(--accent); border-color: var(--accentText); color: var(--accentText); } .badge.given { color: var(--ok); }
.rec .btn { min-height: max(var(--hit), 110px); font-size: 1em; margin: 8px 0 0; }
.flagchip { display: inline-block; padding: 2px 16px; margin: 2px 8px 2px 0; border-radius: 999px; background: var(--surfaceAlt); border: 3px solid var(--fieldBorder); font-size: .9em; }

/* ---- dialogs: top layer, so scale them with --s here ---- */
dialog { position: fixed; left: 50%; top: 50%; margin: 0; padding: 0; border: 8px solid var(--accent); border-radius: 56px; width: 920px; max-width: none; max-height: calc(100dvh / var(--s) - 160px); transform: translate(-50%, -50%) scale(var(--s)); transform-origin: center; background: var(--surface); color: var(--surfaceText); font-family: var(--fontBody); font-size: calc(46px * var(--ts)); overflow: hidden; }
dialog[open] { animation: pop .28s cubic-bezier(0, 0, .2, 1) both; }
dialog::backdrop { background: rgba(4, 12, 9, .72); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(var(--s)); } to { opacity: 1; transform: translate(-50%, -50%) scale(var(--s)); } }
.dbody { padding: 52px 52px 44px; display: flex; flex-direction: column; gap: 24px; max-height: calc(100dvh / var(--s) - 176px); overflow-y: auto; }
.dbody p { margin: 0; } .dbody h2 { font-size: 1.3em; line-height: 1.15; }
.dicon { width: 130px; height: 130px; border-radius: 50%; background: var(--accent); color: var(--accentText); display: flex; align-items: center; justify-content: center; align-self: center; }
.dicon svg { width: 70px; height: 70px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#flagTitle, #flagBody { text-align: center; }
#dlgFlag .btn, dialog .btn { margin-bottom: 8px; }
dl#privBody { margin: 0; display: flex; flex-direction: column; gap: 14px; font-size: .85em; } #privBody dt { font-weight: 800; } #privBody dd { margin: 0; }
.seg { display: flex; gap: 12px; } .segbtn { min-height: max(var(--hit), 96px); min-width: 150px; border-radius: 999px; border: 5px solid var(--fieldBorder); background: var(--fieldBg); color: var(--fieldText); font-weight: 800; } .segbtn[aria-pressed=true]::before { content: "\2713 "; } .segbtn[aria-pressed=true] { background: var(--primary); color: var(--primaryText); border-color: var(--btnBorder); }
.rcpt { width: 100%; max-height: 420px; }
.lang-opt { display: flex; align-items: center; gap: 24px; min-height: max(var(--hit), 120px); padding: 0 32px; border: 5px solid var(--fieldBorder); border-radius: 28px; width: 100%; background: var(--fieldBg); color: var(--fieldText); font-weight: 800; margin-bottom: 14px; text-align: left; }
.lang-opt[aria-checked=true] { border-color: var(--btnBorder); border-width: 10px; background: var(--surfaceAlt); }
.lang-opt .dot { width: 44px; height: 44px; border-radius: 50%; border: 5px solid var(--fieldBorder); flex: none; display: flex; align-items: center; justify-content: center; } .lang-opt[aria-checked=true] .dot::after { content: "\2713"; color: var(--primaryText); font-size: 30px; font-weight: 900; line-height: 1; } .lang-opt[aria-checked=true] .dot { background: var(--primary); border-color: var(--btnBorder); }
/* ---- reduced motion: in-app switch (.rm) and OS setting both land here ---- */
.rm *, .rm *::before, .rm *::after { animation: none !important; transition-duration: .01ms !important; }
.rm .particles, .rm #confetti { display: none; } .rm #wheelRot { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .particles, #confetti { display: none; }
  #wheelRot { transition: none !important; }
}

.card .btn { margin-bottom: 0; }


:root { --bg0: #1b1b1f; --bg1: #2b2b31; --ink: #fff; --inkSoft: #e5e5ea; --surface: #fff; --surfaceAlt: #eee; --surfaceText: #1b1b1b; --surfaceMuted: #555; --fieldBg: #fff; --fieldText: #1b1b1b; --fieldBorder: #555; --primary: #c8102e; --primaryText: #fff; --primaryShadow: #600; --btnBorder: #600; --accent: #f6c453; --accentText: #3a0b10; --danger: #a4001f; --ok: #14663a; --focus: #fff; --focusRing: #000; --deco1: #1f8a5b; --deco2: #c8102e; --deco3: #f6c453; --rim: #f6c453; --hub: #f6c453; --radius: 36px; --radiusLg: 56px; --fontDisplay: Georgia, serif; } /* neutral fallback until the server theme loads */
/* ---- shipped client additions (classes replace inline style attributes: strict CSP) ---- */
.f-accent { fill: var(--accent); }
.f-accentText { fill: var(--accentText); }
.f-bg0 { fill: var(--bg0); }
.f-deco1 { fill: var(--deco1); }
.f-deco2 { fill: var(--deco2); }
.f-deco3 { fill: var(--deco3); }
.f-hub { fill: var(--hub); }
.f-ink { fill: var(--ink); }
.f-rim { fill: var(--rim); }
.f-surface { fill: var(--surface); }
.s-accentText { stroke: var(--accentText); }
.s-deco2 { stroke: var(--deco2); }
.s-deco3 { stroke: var(--deco3); }
.s-ink { stroke: var(--ink); }
.s-inkSoft { stroke: var(--inkSoft); }
.sprite { position: absolute; }
#btnMenu circle { fill: currentColor; stroke: none; }
.clean #btnMenu { display: none; }
#ocrChoices { margin: 8px 0 0; }
#ocrChoices[hidden] { display: none; }
.priv p { margin: 0 0 16px; }
.rec .btn[disabled] { opacity: .6; }