/* Khelo India Quiz (copy of the Telangana quiz site look, system fonts only) - mobile first. Court blue, scoreboard navy, medal gold. */
:root {
  --court: #0E4DA4;
  --court-d: #0A3A7E;
  --navy: #0A2550;
  --ink: #16203A;
  --muted: #56627C;
  --page: #F2F5FA;
  --card: #FFFFFF;
  --line: #D8E0EC;
  --gold: #F2B705;
  --gold-d: #C99400;
  --green: #1C8A4C;
  --green-bg: #E2F3E9;
  --red: #CC3328;
  --red-bg: #FBE5E3;
  --display: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Telugu', sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Telugu', 'Noto Sans Devanagari', sans-serif;
  --r: 14px;
  --r-s: 10px;
  --shadow: 0 1px 2px rgba(10, 37, 80, .06), 0 6px 18px rgba(10, 37, 80, .07);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.55 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
body.noscroll { overflow: hidden; }
main { flex: 1; outline: none; }
:lang(te) body, body:lang(te), html:lang(te) body { line-height: 1.7; }
img, video { max-width: 100%; display: block; }
a { color: var(--court); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5em 1em; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.row { display: flex; align-items: center; }
.row.between { justify-content: space-between; }
.row.center { justify-content: center; }
.gap { gap: 12px; }
.wrap-gap { flex-wrap: wrap; gap: 10px; }
.page-h { margin-top: 24px; }

/* ---------- header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 700; min-width: 0; }
.brand .mark { width: 32px; height: 32px; flex: none; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95rem; }
.top-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.langs { display: flex; background: var(--page); border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.langs button { border: 0; background: none; font: 600 .85rem/1 var(--body); color: var(--muted); min-width: 34px; height: 30px; border-radius: 999px; cursor: pointer; padding: 0 6px; }
.langs button[aria-pressed="true"] { background: var(--court); color: #fff; }
.acct { position: relative; }
.acct-btn { border: 1px solid var(--line); background: #fff; color: var(--court); font: 600 .85rem/1 var(--body); height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.acct-btn.avatar { width: 34px; padding: 0; background: var(--court); color: #fff; border-color: var(--court); font-size: .95rem; }
.menu { position: absolute; right: 0; top: 42px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: var(--shadow); min-width: 190px; padding: 6px; display: flex; flex-direction: column; }
.menu[hidden] { display: none; }
.menu a, .menu button { display: block; text-align: left; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--page); }
@media (max-width: 380px) { .brand span { display: none; } }

/* ---------- buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 0; background: var(--court); color: #fff; font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background .15s, transform .08s; text-align: center; }
.btn:hover { background: var(--court-d); }
.btn:active { transform: scale(.98); }
.btn[disabled] { background: #9AA7BD; cursor: not-allowed; transform: none; }
.btn.big { min-height: 54px; font-size: 1.05rem; border-radius: 14px; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: .875rem; border-radius: 10px; }
.btn.wide { width: 100%; }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.gold:hover { background: #FFC81F; }
.btn.ghost { background: #fff; color: var(--court); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--court); background: #fff; }
.btn.ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); }
.link { background: none; border: 0; color: var(--court); font: inherit; text-decoration: underline; cursor: pointer; padding: 6px 0; }
.link[disabled] { color: var(--muted); text-decoration: none; cursor: default; }
.icon-btn { background: none; border: 0; font-size: 1.15rem; width: 36px; height: 36px; cursor: pointer; border-radius: 8px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.field.inline { flex-direction: row; align-items: center; gap: 10px; }
.field input, .field select, input[name=id] { width: 100%; min-height: 48px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; font: 400 1rem var(--body); background: #fff; color: var(--ink); }
.field.inline select { width: auto; }
.field input:focus, .field select:focus { border-color: var(--court); outline: none; box-shadow: 0 0 0 3px rgba(14, 77, 164, .15); }
.field input:disabled, .field select:disabled { background: var(--page); color: var(--muted); }
.field input.code { font: 700 1.6rem/1 var(--display); letter-spacing: .35em; text-align: center; }
.err { color: var(--red); font-weight: 500; min-height: 0; }
.err:empty { display: none; }
.hint { color: var(--muted); font-size: .85rem; margin: -4px 0 0; }
.msg { color: var(--red); font-size: .925rem; margin: 0; }
.msg:empty { display: none; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- loading */
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50vh; color: var(--muted); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--court); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 48px 0; }

/* ---------- hero: a badminton court seen from above, with the scoreboard beside it */
.hero { position: relative; background: var(--court); color: #fff; overflow: hidden; }
.court { position: absolute; inset: 0; opacity: .22; pointer-events: none;
  background:
    linear-gradient(#fff, #fff) 50% 0 / 2px 100% no-repeat,
    linear-gradient(#fff, #fff) 0 50% / 100% 2px no-repeat,
    linear-gradient(#fff, #fff) 0 18% / 100% 2px no-repeat,
    linear-gradient(#fff, #fff) 0 82% / 100% 2px no-repeat,
    linear-gradient(#fff, #fff) 12% 0 / 2px 100% no-repeat,
    linear-gradient(#fff, #fff) 88% 0 / 2px 100% no-repeat; }
.hero-in { position: relative; display: grid; gap: 22px; padding-top: 28px; padding-bottom: 32px; }
.organiser { font-size: .85rem; opacity: .85; margin-bottom: 10px; }
.hero h1 { font: 700 clamp(2.4rem, 11vw, 4.4rem)/.95 var(--display); letter-spacing: -.01em; margin-bottom: 14px; }
html:lang(te) .hero h1, html:lang(hi) .hero h1 { font-family: var(--body); font-size: clamp(2rem, 8.5vw, 3.4rem); line-height: 1.2; font-weight: 800; }
.lede { font-size: 1.05rem; opacity: .92; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cta-row .btn { flex: 1 1 220px; }
.cta-note { font-size: .85rem; opacity: .8; margin: 10px 0 0; }
.cta-note:empty { display: none; }

/* ---------- scoreboard panel (used on home, intro, result) */
.board { background: var(--navy); color: #fff; border-radius: var(--r); padding: 6px; box-shadow: 0 10px 30px rgba(4, 18, 45, .35); align-self: start; }
.board-row { display: flex; gap: 6px; }
.cell { flex: 1; background: rgba(255, 255, 255, .06); border-radius: 10px; padding: 12px 8px 10px; text-align: center; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cell b { font: 700 2.4rem/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.cell span { font-size: .78rem; color: rgba(255, 255, 255, .78); }
.board-clock { margin-top: 6px; background: rgba(0, 0, 0, .25); border-radius: 10px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.board-clock span { font-size: .85rem; color: rgba(255, 255, 255, .78); }
.board-clock b { font: 700 1.7rem/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.board-foot { padding: 10px 12px 6px; font-size: .85rem; color: rgba(255, 255, 255, .85); }
/* prizes and certificates line on the home scoreboard: a flat gold band so it is not missed (flat, so it does not look like a button) (11 Nov 2026) */
.board-foot.prize { display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 12px 14px; border-radius: 10px;
  background: var(--gold); color: #16233B; font-size: 1rem; font-weight: 700; line-height: 1.35; }
/* the main home button is the one that should look pressable: lit from above, raised, with a soft gold glow */
#playBtn { background: linear-gradient(180deg, #FFDD55, #F2B705); border-bottom: 3px solid #C99500;
  box-shadow: 0 0 0 5px rgba(242, 183, 5, .22), 0 10px 24px rgba(4, 18, 45, .45); transition: transform .12s ease, box-shadow .12s ease, filter .12s ease; }
@media (hover: hover) and (pointer: fine) { #playBtn:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 0 0 7px rgba(242, 183, 5, .28), 0 14px 28px rgba(4, 18, 45, .5); } }
#playBtn:active { transform: translateY(2px); border-bottom-width: 1px; box-shadow: 0 0 0 3px rgba(242, 183, 5, .22), 0 4px 10px rgba(4, 18, 45, .4); }
.board-foot.prize svg { flex: none; }
.board.small .cell b { font-size: 2rem; }

/* ---------- home bands */
.band { padding-top: 36px; padding-bottom: 4px; }
.band h2 { font-size: 1.35rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--card); border-radius: var(--r); padding: 16px 16px 16px 64px; position: relative; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--navy); font: 700 1.3rem/34px var(--display); text-align: center; }
.steps span { color: var(--muted); font-size: .95rem; }
.two { display: grid; gap: 28px; }
.rules { padding-left: 1.2em; margin: 0; }
.rules li { margin-bottom: .45em; }
.tiers { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tiers li { display: flex; justify-content: space-between; gap: 12px; background: var(--card); border-radius: var(--r-s); padding: 10px 14px; border-left: 4px solid var(--gold); }
.tiers span { color: var(--muted); font-size: .9rem; text-align: right; }
.faq details { background: var(--card); border-radius: var(--r-s); margin-bottom: 8px; box-shadow: var(--shadow); }
.faq summary { padding: 14px 16px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--court); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 16px 14px; margin: 0; color: var(--muted); }
.contact { padding-bottom: 40px; }

/* ---------- catalogue */
.cards { display: grid; gap: 14px; padding-bottom: 32px; }
.qcard { display: block; background: var(--card); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border: 1.5px solid transparent; }
.qcard:hover { border-color: var(--court); }
.qcard img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.qcard-in { padding: 16px; }
.qcard p { color: var(--muted); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 12px; }
.chips li { background: var(--page); border-radius: 999px; padding: 3px 10px; font-size: .8rem; }
.chips li.live { background: var(--red-bg); color: var(--red); font-weight: 600; }
.best { font-weight: 600; color: var(--green); }

/* ---------- quiz intro */
.intro { padding-top: 22px; padding-bottom: 96px; }
.intro .cover { border-radius: var(--r); margin-bottom: 16px; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.intro h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
.intro .lede { color: var(--muted); }
.intro .board { margin: 16px 0 18px; }
.rulebox { background: var(--card); border-radius: var(--r); padding: 4px 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.rulebox summary { font-weight: 700; padding: 10px 0; cursor: pointer; }
.sticky-cta { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--page) 30%); margin-top: 8px; z-index: 5; }

/* ---------- play: the quiz.tackon.org layout, refined */
body[data-view="quiz"] { background: #fff; }
.play { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "timers" "media" "main" "finish"; padding-top: 16px; padding-bottom: 40px; max-width: 640px; }
.pcard { background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(10, 37, 80, .08), 0 4px 14px rgba(10, 37, 80, .07); border: 1px solid #EEF1F6; }
.p-head { grid-area: head; padding: 12px 14px 12px; }
.p-head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.02rem; white-space: nowrap; }
.qn svg { width: 22px; height: 22px; color: var(--ink); flex: none; }
.p-tools { display: inline-flex; align-items: center; gap: 6px; }
.score-pill { display: inline-flex; align-items: center; gap: 6px; background: #E3F2E1; color: #2E6B2F; font-weight: 700; border-radius: 10px; padding: 6px 12px; white-space: nowrap; }
.score-pill svg { width: 20px; height: 20px; }
.score-pill.bump, #score.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.15); } }
.dots { list-style: none; display: flex; gap: 5px; padding: 0; margin: 10px 0 0; }
.dots li { flex: 1; height: 6px; border-radius: 3px; background: #E6EAF1; transition: background .25s; }
.dots li.now { background: var(--court); }
.dots li.ok { background: var(--green); }
.dots li.no { background: var(--red); }
.dots li.done { background: #8FA3C4; }
.p-timers { grid-area: timers; display: flex; padding: 6px; gap: 6px; position: sticky; top: 64px; z-index: 6; }
.tbox { flex: 1; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; position: relative; overflow: hidden; min-width: 0; }
.tbox svg { width: 34px; height: 34px; flex: none; }
.tbox small { display: block; font-size: .75rem; font-weight: 600; line-height: 1.1; }
.tbox b { display: block; font: 700 1.5rem/1.1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.tquiz { color: #1F3A78; }
.tquiz svg { background: #E4E9F4; border-radius: 50%; padding: 4px; }
.tquiz.low { color: var(--red); }
.tq { background: #FBF3DD; color: #8A6A0B; }
.tq .tbar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(138, 106, 11, .15); }
.tq .tbar i { display: block; height: 100%; width: 100%; background: var(--gold-d); transition: width .25s linear; }
.tq.low { background: var(--red-bg); color: var(--red); }
.tq.low .tbar i { background: var(--red); }
.tq.low svg { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.12); } }
.p-media { grid-area: media; }
.p-main { grid-area: main; }
.p-finish { grid-area: finish; }
.p-finish .btn.armed { background: var(--red); color: #fff; }
.p-finish .btn[disabled] { background: #E9D9A0; color: #7A6A3A; }
.stage { padding-top: 0; }
.media { margin: 0; background: #F6F8FB; border-radius: 14px; overflow: hidden; display: flex; justify-content: center; }
.media img { max-height: min(27vh, 420px); width: auto; max-width: 100%; object-fit: contain; }
.media video { width: 100%; max-height: 30vh; background: #000; }
.media.audio { padding: 14px; }
.media audio { width: 100%; }
.qtext { font-size: clamp(1.2rem, 4.8vw, 1.5rem); font-weight: 600; line-height: 1.45; margin: 4px 0 16px; outline: none; text-align: left; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; text-align: left; background: #fff; border: 1.5px solid #EEF1F6; box-shadow: 0 1px 2px rgba(10, 37, 80, .06), 0 3px 10px rgba(10, 37, 80, .06); border-radius: 14px; padding: 10px 14px; font: 600 1.02rem/1.35 var(--body); color: var(--ink); cursor: pointer; transition: border-color .12s, background .12s, transform .08s, opacity .2s; -webkit-tap-highlight-color: transparent; }
/* hover only where there is a real pointer: on a touch phone the 'hover' stays on the spot last tapped,
   so the next question's option in that spot looked selected (11 Nov 2026) */
@media (hover: hover) and (pointer: fine) { .opt:hover { border-color: var(--court); } }
.opt:active { transform: scale(.985); }
.opt .letter { flex: none; width: 36px; height: 36px; border-radius: 50%; font: 700 1.05rem/36px var(--body); text-align: center; }
.opt[data-i="0"] .letter { background: #F7E1E6; color: #A3274A; }
.opt[data-i="1"] .letter { background: #E5E9F2; color: #2B4572; }
.opt[data-i="2"] .letter { background: #FBE7D3; color: #A4520E; }
.opt[data-i="3"] .letter { background: #DDEFE3; color: #1F6E43; }
.opt .otext { flex: 1; }
.opt .mark { flex: none; font-size: 1.3rem; font-weight: 700; }
.opt.locked { cursor: default; }
.opt.locked:hover { border-color: var(--line); }
.opt.picked { border-color: var(--court); background: #EEF3FC; }
.opt.right { border-color: var(--green); background: var(--green-bg); color: #0E5530; }
.opt.right .letter, .opt[data-i].right .letter { background: var(--green); color: #fff; }
.opt.right .mark { color: var(--green); }
.opt.wrong { border-color: var(--red); background: var(--red-bg); color: #8E1E16; }
.opt.wrong .letter, .opt[data-i].wrong .letter { background: var(--red); color: #fff; }
.opt.wrong .mark { color: var(--red); }
.opt.dim { opacity: .55; }
.feedback { min-height: 1.6em; margin: 14px 0 8px; font-weight: 700; text-align: center; font-size: 1.1rem; }
.feedback.good { color: var(--green); }
.feedback.bad { color: var(--red); }
.trivia { background: #FFF8E1; border-left: 4px solid var(--gold); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.waiting { text-align: center; padding: 40px 0; }
.bigclock { display: block; font: 700 3.4rem/1 var(--display); color: var(--court); margin-top: 12px; }

/* ---------- result */
.result { padding-top: 20px; padding-bottom: 40px; }
.scoreboard { background: var(--navy); color: #fff; border-radius: 18px; padding: 18px 8px 8px; text-align: center; margin: 6px 0 16px; box-shadow: 0 12px 30px rgba(4, 18, 45, .3); position: relative; overflow: hidden; }
.scoreboard::before { content: ''; position: absolute; inset: 0; background: linear-gradient(#fff, #fff) 0 64% / 100% 2px no-repeat; opacity: .07; }
.cheer { font-weight: 700; font-size: 1.1rem; margin: 0; position: relative; }
.scoreboard .big { display: flex; justify-content: center; align-items: baseline; gap: 4px; margin: 4px 0 12px; position: relative; }
.scoreboard .big b { font: 700 clamp(5rem, 26vw, 7.5rem)/.9 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.scoreboard .big span { font: 700 2.2rem/1 var(--display); color: rgba(255, 255, 255, .7); }
.scoreboard .board-row { position: relative; }
.scoreboard .cell b { font-size: 1.8rem; color: #fff; }
.scoreboard p.small { margin: 8px 0 4px; color: rgba(255, 255, 255, .75); position: relative; }
.actions { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 22px; }
.review summary { font-weight: 700; padding: 12px 0; cursor: pointer; }
.review ol { padding-left: 1.3em; }
.review li { background: var(--card); border-radius: var(--r-s); padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.review li p { margin: 0 0 4px; }
.review .rq { font-weight: 600; margin-bottom: 8px; }
.review img { max-height: 160px; border-radius: 8px; margin-bottom: 8px; }
.tag { display: inline-block; width: 22px; height: 22px; border-radius: 50%; text-align: center; line-height: 22px; color: #fff; font-size: .8rem; }
.tag.good { background: var(--green); }
.tag.bad { background: var(--red); }

/* ---------- lists, leaderboard, account, verify */
.list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 10px; }
.item { background: var(--card); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.item > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.item-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.board-list { list-style: none; padding: 0; margin: 0 0 20px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.board-list li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.board-list li:last-child { border-bottom: 0; }
.board-list li.me { background: #FFF8E1; }
.rk { font: 700 1.3rem/1 var(--display); color: var(--muted); }
.board-list li:nth-child(-n+3) .rk { color: var(--gold-d); }
.sc { font: 700 1.3rem/1 var(--display); font-variant-numeric: tabular-nums; }
.sc small { color: var(--muted); font-size: .8em; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; word-break: break-word; }
.card { background: var(--card); border-radius: var(--r); padding: 18px 16px; box-shadow: var(--shadow); margin: 18px 0; }
#vf { margin: 12px 0 18px; }
.verified { background: var(--green-bg); border-radius: var(--r); padding: 16px; }
.verified b { color: var(--green); }
.vname { font-size: 1.3rem; font-weight: 700; margin: 6px 0; }
.notverified { background: var(--red-bg); color: var(--red); border-radius: var(--r); padding: 16px; font-weight: 600; }
.prose { padding-bottom: 40px; }
.prose h2 { margin-top: 1.4em; }

/* ---------- sheet (bottom sheet on phones, dialog on larger screens) */
.sheet-back { position: fixed; inset: 0; z-index: 40; background: rgba(6, 18, 40, .55); display: flex; align-items: flex-end; justify-content: center; animation: fade .16s ease; }
.sheet-back.out { opacity: 0; transition: opacity .16s; }
.sheet { position: relative; background: #fff; width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; border-radius: 20px 20px 0 0; padding: 22px 18px calc(20px + env(safe-area-inset-bottom)); animation: rise .2s ease; }
.sheet h2 { padding-right: 36px; font-size: 1.3rem; }
.sheet .sub { color: var(--muted); }
.sheet-x { position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--page); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--muted); }
@keyframes rise { from { transform: translateY(30px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- share sheet */
.share-preview { border-radius: 12px; overflow: hidden; background: var(--page); margin: 4px 0 14px; display: flex; justify-content: center; }
.share-preview img { max-height: 46vh; width: auto; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.share-grid a, .share-grid button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font: 600 .78rem/1.2 var(--body); cursor: pointer; text-align: center; }
.share-grid i { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-style: normal; font-weight: 700; font-size: .95rem; }
.share-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* ---------- dashboard */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0; }
.kpi { background: var(--card); border-radius: var(--r-s); padding: 12px; box-shadow: var(--shadow); }
.kpi b { display: block; font: 700 2rem/1 var(--display); color: var(--court); }
.kpi span { font-size: .82rem; color: var(--muted); }
.tbl { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--r-s); overflow: hidden; box-shadow: var(--shadow); font-size: .9rem; }
.tbl th, .tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { background: var(--page); font-weight: 700; }
.tbl td.n, .tbl th.n { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; margin-bottom: 18px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; background: var(--card); border-radius: var(--r-s); padding: 12px; box-shadow: var(--shadow); margin-bottom: 18px; overflow-x: auto; }
.bars div { flex: 0 0 26px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; }
.bars i { display: block; background: var(--court); border-radius: 3px 3px 0 0; min-height: 2px; }
.bars i.p { background: var(--gold); position: absolute; bottom: 0; left: 25%; right: 25%; }
.dash-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }

/* ---------- footer, toast */
.foot { border-top: 1px solid var(--line); background: #fff; padding: 18px 0 calc(18px + env(safe-area-inset-bottom)); margin-top: 24px; }
.foot p { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
body[data-view="quiz"] .foot { display: none; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 60; opacity: 0; transition: .2s; max-width: calc(100% - 32px); }
.toast.in { opacity: 1; transform: translate(-50%, 0); }

/* ---------- tablets and laptops */
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .item { flex-direction: row; align-items: center; justify-content: space-between; }
  .kpis { grid-template-columns: repeat(5, 1fr); }
  .actions { flex-direction: row; flex-wrap: wrap; }
  .actions > .btn { flex: 1 1 240px; }
  .actions > .row { flex-basis: 100%; }
  .sheet-back { align-items: center; padding: 16px; }
  .sheet { border-radius: 20px; padding: 26px 24px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .hero-in { grid-template-columns: 1.25fr 1fr; align-items: center; padding-top: 64px; padding-bottom: 72px; gap: 48px; }
  .two { grid-template-columns: 1fr 1fr; gap: 48px; }
  /* laptop: question on the left; timers, picture and Finish on the right (as on quiz.tackon.org) */
  .play { max-width: 1240px; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); column-gap: 56px; row-gap: 22px; padding-top: 32px;
    grid-template-areas: "head timers" "main media" "main finish" "main ."; grid-template-rows: auto auto auto 1fr; }
  .p-head { align-self: start; }
  .p-timers { position: static; align-self: start; }
  .p-media { align-self: start; }
  .media img { max-height: 420px; }
  .p-finish { align-self: start; }
  .qtext { font-size: 1.65rem; margin: 6px 0 24px; }
  .opts { gap: 12px; }
  .opt { min-height: 66px; font-size: 1.15rem; padding: 12px 18px; }
  .opt .letter { width: 42px; height: 42px; line-height: 42px; font-size: 1.15rem; }
  .media img { max-height: min(40vh, 420px); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .sticky-cta { position: static; background: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

h2 select, .dash-tools select { font: inherit; font-size: 1rem; min-height: 40px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 10px; background: #fff; }
.tbl th { text-transform: capitalize; }

/* ---------- dashboard: filters, count by, cross table */
.dash { padding-bottom: 32px; }
.dpanel { background: var(--card); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); margin: 14px 0; }
.dpanel h2 { font-size: 1.1rem; margin: 0 0 10px; }
.dpanel-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; background: #E8F0FC; color: var(--court-d); border-radius: 999px; padding: 4px 4px 4px 12px; font-size: .9rem; }
.fchip button { border: 0; background: #fff; color: var(--court); width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1; }
.addf { display: flex; flex-wrap: wrap; gap: 8px; }
.addf select, .field.inline select { min-height: 42px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; background: #fff; max-width: 100%; }
.bychip { border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 14px; font: 600 .9rem var(--body); cursor: pointer; }
.bychip[aria-pressed="true"] { background: var(--court); border-color: var(--court); color: #fff; }
.tbl td.barcol, .tbl th.barcol { width: 28%; min-width: 80px; position: relative; padding: 0 10px; }
.tbl td.barcol i { display: block; height: 8px; border-radius: 4px; background: var(--court); margin: 3px 0; }
.tbl td.barcol i.p { background: var(--gold); }
.cell-link { text-align: left; padding: 0; text-decoration: none; font-weight: 600; }
.cell-link:hover { text-decoration: underline; }
.tbl.cross td, .tbl.cross th { white-space: nowrap; }
.tbl.cross tr.tot td { background: var(--page); }
.tbl.cross td.heat { transition: none; }
@media (max-width: 639px) { .tbl td.barcol, .tbl th.barcol { display: none; } }

/* ---------- sign-in buttons (each provider's own colours, as their guidelines ask) */
.socials { display: flex; flex-direction: column; gap: 10px; }
.btn.social { width: 100%; justify-content: center; gap: 12px; min-height: 50px; font-weight: 600; }
.btn.social svg { width: 20px; height: 20px; flex: none; }
.s-google { background: #fff; color: #1F1F1F; border: 1.5px solid #DADCE0; }
.s-google:hover { background: #F7F8FA; }
.s-facebook { background: #1877F2; color: #fff; }
.s-facebook:hover { background: #166FE5; }
.s-apple { background: #000; color: #fff; }
.s-apple:hover { background: #222; }

@media (max-width: 639px) {
  .play { gap: 10px; padding-top: 10px; }
  .p-head { padding: 10px 12px; }
  .p-timers { padding: 4px; }
  .tbox { padding: 5px 10px; gap: 8px; }
  .tbox svg { width: 26px; height: 26px; }
  .tbox small { display: inline; margin-right: 6px; }
  .tbox div { display: flex; align-items: baseline; }
  .tbox b { font-size: 1.35rem; }
  .qtext { margin-bottom: 12px; }
  .opts { gap: 8px; }
  .opt { min-height: 54px; padding: 8px 12px; }
}

/* Khelo India copy: numbers were set in Barlow Condensed; with system fonts they need a heavier weight and slightly smaller size */
.cell b, .board-clock b, .tbox b, .rk, .sc, .kpi b, .bigclock { font-weight: 800; }
.cell b { font-size: 2rem; }
.hero h1 { font-weight: 900; font-size: clamp(2.2rem, 10vw, 4rem); line-height: 1; letter-spacing: -.02em; }
.scoreboard .big b { font-weight: 900; font-size: clamp(4.4rem, 22vw, 6.5rem); }
.steps li::before { font-weight: 800; font-size: 1.1rem; }

.hero .tagline { font-weight: 700; font-size: 1.05rem; color: var(--gold); margin: -6px 0 0; max-width: 34em; }

/* government logos: white strip at the top of the home page, small row in the footer */
.logo-strip { display: inline-flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px; padding: 8px 14px; margin: 0 0 16px; box-shadow: 0 6px 18px rgba(4, 18, 45, .25); }
.logo-strip img { height: 52px; width: auto; display: block; }
.foot-logos { background: none; box-shadow: none; padding: 0; margin: 0 0 12px; gap: 12px; }
.foot-logos img { height: 40px; }
@media (min-width: 900px) { .logo-strip { gap: 20px; padding: 10px 18px; margin-bottom: 22px; } .logo-strip img { height: 72px; } .foot-logos img { height: 44px; } }

.foot-logos a { display: block; border-radius: 8px; }
.foot p.credit { gap: 0 6px; margin-bottom: 4px; }
.foot p.credit b { font-weight: 700; }

/* ---------- quiz screen on phones: one status row, small timers, Finish pinned (11 Nov 2026).
   Every rule needs .compact, which app.js puts on the screen once it has moved the timers into the
   top row - so a phone still holding an older app.js keeps the old layout instead of a broken one. */
@media (max-width: 639px) {
  body[data-view="quiz"] .top-in { height: 44px; }
  body[data-view="quiz"] .brand .mark { width: 26px; height: 26px; }
  body[data-view="quiz"] .brand span { font-size: .85rem; }
  body[data-view="quiz"] .langs button { height: 26px; min-width: 30px; font-size: .78rem; }
  body[data-view="quiz"] .acct-btn { height: 30px; }
  body[data-view="quiz"] .acct-btn.avatar { width: 30px; }
  .play.compact { gap: 8px; padding-top: 8px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); grid-template-areas: "head" "media" "main" "finish"; }
  .play.compact .p-head { position: relative; padding: 0 0 7px; background: none; border: 0; box-shadow: none; border-radius: 0; }
  .play.compact .p-head-row { gap: 6px; min-height: 28px; }
  .play.compact .qn { font-size: 0; gap: 0; }
  .play.compact .qn svg { display: none; }
  .play.compact #qNum::after { content: attr(data-short); font-size: .95rem; }
  .play.compact .p-tools { gap: 5px; min-width: 0; }
  .play.compact .icon-btn { width: 26px; height: 26px; font-size: .9rem; }
  .play.compact .score-pill { padding: 3px 8px; border-radius: 8px; gap: 4px; }
  .play.compact .score-pill svg { width: 14px; height: 14px; }
  .play.compact #score { font-size: 0; }
  .play.compact #score::after { content: attr(data-n); font-size: .82rem; }
  .play.compact .p-timers { position: static; padding: 0; gap: 5px; background: none; border: 0; box-shadow: none; display: inline-flex; border-radius: 0; }
  .play.compact .tbox { position: static; flex: none; padding: 3px 8px; gap: 4px; border-radius: 8px; overflow: visible; }
  .play.compact .tbox svg { width: 14px; height: 14px; padding: 0; background: none; }
  .play.compact .tbox div { display: flex; align-items: baseline; }
  .play.compact .tbox small { display: none; }
  .play.compact .tquiz small { display: inline; font-size: .68rem; margin-right: 3px; }
  .play.compact .tbox b { font-size: .82rem; font-weight: 700; line-height: 1.3; }
  .play.compact .tquiz { background: #EEF1F7; }
  .play.compact .tq.low svg { animation: none; }
  .play.compact .tq .tbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; overflow: hidden; background: #F1E6C4; }
  .play.compact .dots { margin-top: 6px; gap: 3px; }
  .play.compact .dots li { height: 4px; }
  .play.compact .media { border-radius: 10px; }
  .play.compact .media img { max-height: 170px; }
  .play.compact .media video { max-height: 170px; }
  .play.compact .qtext { font-size: 1.08rem; line-height: 1.32; margin: 2px 0 8px; }
  .play.compact .opts { gap: 6px; }
  .play.compact .opt { min-height: 44px; padding: 5px 10px; gap: 10px; font-size: .98rem; border-radius: 11px; }
  .play.compact .opt .letter { width: 28px; height: 28px; line-height: 28px; font-size: .9rem; }
  .play.compact .feedback { margin: 6px 0 2px; min-height: 1.3em; font-size: 1rem; }
  .play.compact .trivia { padding: 8px 10px; margin-bottom: 8px; font-size: .95rem; }
  .play.compact .p-finish { position: fixed; left: 0; right: 0; bottom: 0; z-index: 12; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); }
  .play.compact .p-finish .btn.big { min-height: 44px; font-size: 1rem; }
  body[data-view="quiz"] .toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media (max-width: 374px) { .play.compact .tquiz small { display: none; } .play.compact .p-tools, .play.compact .p-timers { gap: 4px; } .play.compact .tbox, .play.compact .score-pill { padding-left: 6px; padding-right: 6px; } }

/* phones: the screen is one column as tall as the phone; a picture or video grows into whatever room the
   question and answers leave, so there is no empty band above Finish Quiz (11 Nov 2026) */
@media (max-width: 639px) {
  .play.compact { display: flex; flex-direction: column; min-height: calc(100vh - 45px); min-height: calc(100dvh - 45px); }
  .play.compact .p-media[data-kind="image"], .play.compact .p-media[data-kind="video"] { position: relative; flex: 1 1 130px; min-height: 130px; max-height: 340px; }
  .play.compact .p-media[data-kind="image"] .media, .play.compact .p-media[data-kind="video"] .media { position: absolute; inset: 0; }
  .play.compact .p-media[data-kind="image"] img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
  .play.compact .p-media[data-kind="video"] video { width: 100%; height: 100%; max-height: none; object-fit: contain; }
  /* no picture: the question and answers themselves get bigger (scaled to the phone's height) and sit a little lower */
  .play.compact .p-media[hidden] + .p-main { margin-top: 3vh; }
  .play.compact .p-media[hidden] + .p-main .qtext { font-size: 1.36rem; line-height: 1.3; margin: 6px 0 clamp(12px, 2.6vh, 24px); }
  .play.compact .p-media[hidden] + .p-main .opts { gap: clamp(8px, 1.8vh, 16px); }
  .play.compact .p-media[hidden] + .p-main .opt { min-height: clamp(50px, 8.6vh, 74px); font-size: 1.1rem; }
}
/* with a picture, slightly larger question and answers - only where the phone is tall enough to spare it */
@media (max-width: 639px) and (min-height: 660px) {
  .play.compact .p-media:not([hidden]) + .p-main .qtext { font-size: 1.16rem; line-height: 1.32; margin: 4px 0 10px; }
  .play.compact .p-media:not([hidden]) + .p-main .opts { gap: 7px; }
  .play.compact .p-media:not([hidden]) + .p-main .opt { min-height: 48px; font-size: 1.02rem; }
  .play.compact .p-media:not([hidden]) + .p-main .opt .letter { width: 30px; height: 30px; line-height: 30px; }
}

/* laptop: Finish Quiz sits under the answers, so it stays put whether or not the question has a picture (11 Nov 2026) */
@media (min-width: 900px) {
  .play { grid-template-areas: "head timers" "main media" "finish media"; grid-template-rows: auto auto 1fr; }
  .p-finish { align-self: start; margin-top: 4px; }
}
