/* Copyright (c) 2026 Dr. Vignesh Nayak Ullal. All rights reserved. Proprietary — see LICENSE. Work ID NK-VNU-A97331039B35. */
/* Nikasha — a touchstone shows what is true gold. The one bold element is the metal scale (ore → copper → silver → gold)
   used for mastery; everything around it stays cool, quiet and readable on a cheap phone in sunlight. */
@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap; src: url(../lib/fonts/figtree-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-style: normal; font-display: swap; src: url(../lib/fonts/figtree-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-style: normal; font-display: swap; src: url(../lib/fonts/figtree-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-style: normal; font-display: swap; src: url(../lib/fonts/figtree-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 500; font-style: normal; font-display: swap; src: url(../lib/fonts/unbounded-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 600; font-style: normal; font-display: swap; src: url(../lib/fonts/unbounded-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Kannada"; font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0C80-0CFF, U+200C-200D, U+25CC; src: url(../lib/fonts/noto-sans-kannada-kannada-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Kannada"; font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0C80-0CFF, U+200C-200D, U+25CC; src: url(../lib/fonts/noto-sans-kannada-kannada-600-normal.woff2) format("woff2"); }
:root {
  --paper: #EDF0F4; --surface: #FFFFFF; --sunken: #E3E8EE; --ink: #172230; --muted: #566273; --line: #D5DCE4;
  --cobalt: #2346C8; --cobalt-soft: #E3E9FB; --on-cobalt: #FFFFFF;
  --good: #17805A; --good-soft: #DDF2E8; --bad: #B83232; --bad-soft: #F8E1E1; --warn: #9A5B00; --warn-soft: #FBEBD1;
  --ore: radial-gradient(circle at 20% 30%, rgba(255,255,255,.18) 0 1.5px, transparent 2px) 0 0/11px 11px, radial-gradient(circle at 70% 60%, rgba(0,0,0,.18) 0 1.5px, transparent 2px) 0 0/13px 13px, linear-gradient(135deg, #7E848C, #545A62); --ore-ink: #FFFFFF;
  --copper: linear-gradient(135deg, #EDB48D, #B9652F 70%, #8F4A1E); --copper-ink: #FFFFFF;
  --silver: linear-gradient(135deg, #FAFCFE, #C9D2DC 55%, #9AA6B3); --silver-ink: #1E2833;
  --gold: linear-gradient(135deg, #FCE7A1, #E2AE2A 55%, #A87406); --gold-ink: #2A1C00;
  --f-display: "Unbounded", "Figtree", system-ui, sans-serif;
  --f-body: "Figtree", "Noto Sans Kannada", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 8px; --r: 14px; --r-lg: 22px;
  --shadow: 0 1px 0 rgba(23,34,48,.04), 0 6px 18px -10px rgba(23,34,48,.28);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E141B; --surface: #151D27; --sunken: #1B2531; --ink: #E6ECF2; --muted: #9AA7B5; --line: #263342;
    --cobalt: #7D98FF; --cobalt-soft: #1C2846; --on-cobalt: #0B1220;
    --good: #4CC795; --good-soft: #10291F; --bad: #FF7B7B; --bad-soft: #321616; --warn: #F2B356; --warn-soft: #2E2210;
    --ore: linear-gradient(135deg, #4A525D, #353C46); --ore-ink: #E6ECF2; --silver-ink: #142030;
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 8px 22px -12px rgba(0,0,0,.7); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E141B; --surface: #151D27; --sunken: #1B2531; --ink: #E6ECF2; --muted: #9AA7B5; --line: #263342;
  --cobalt: #7D98FF; --cobalt-soft: #1C2846; --on-cobalt: #0B1220;
  --good: #4CC795; --good-soft: #10291F; --bad: #FF7B7B; --bad-soft: #321616; --warn: #F2B356; --warn-soft: #2E2210;
  --ore: linear-gradient(135deg, #4A525D, #353C46); --ore-ink: #E6ECF2; --silver-ink: #142030;
  --shadow: 0 1px 0 rgba(0,0,0,.3), 0 8px 22px -12px rgba(0,0,0,.7); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; min-height: 100vh; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; text-wrap: balance; }
h1 { font: 600 1.75rem/1.15 var(--f-display); letter-spacing: -.01em; }
h2 { font: 600 1.25rem/1.25 var(--f-display); letter-spacing: -.005em; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--cobalt); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.num { font-variant-numeric: tabular-nums; }
.ic { flex: none; vertical-align: -4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* layout */
.wrap { max-width: 760px; margin: 0 auto; padding: 16px; }
.wrap.wide { max-width: 1180px; }
.stack > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 22px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card.tint { background: var(--cobalt-soft); border-color: transparent; box-shadow: none; }
.card.warn { background: var(--warn-soft); border-color: transparent; box-shadow: none; }
.divider { height: 1px; background: var(--line); margin: 14px 0; border: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--cobalt); border-color: var(--cobalt); color: var(--on-cobalt); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: .9rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.iconbtn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.iconbtn:hover { background: var(--sunken); color: var(--ink); }

/* forms */
.field { display: grid; gap: 6px; }
.field > span { font-size: .9rem; font-weight: 600; }
.field small { color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
textarea.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; min-height: 340px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cobalt); outline-offset: -1px; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cobalt); }
.err { color: var(--bad); font-size: .9rem; min-height: 1.2em; }

/* segmented control */
.seg { display: flex; background: var(--sunken); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { flex: 1; min-height: 38px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* chips and pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--sunken); color: var(--muted); }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.blue { background: var(--cobalt-soft); color: var(--cobalt); }

/* ---------------- the metal scale */
.metal { background: var(--ore); color: var(--ore-ink); }
.metal.copper { background: var(--copper); color: var(--copper-ink); }
.metal.silver { background: var(--silver); color: var(--silver-ink); }
.metal.gold { background: var(--gold); color: var(--gold-ink); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { position: relative; border-radius: var(--r); padding: 12px 12px 10px; min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border: 0; text-align: left; cursor: default; }
.tile b { font-size: .95rem; line-height: 1.25; }
.tile .lv { font-size: .78rem; font-weight: 700; opacity: .85; }
.tile.gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%); transform: translateX(-120%); }
.tile.gold.shine::after { animation: shine 1.4s ease-out 1; }
@keyframes shine { to { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .tile.gold.shine::after { animation: none; } }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 5px; }
.bar { height: 8px; border-radius: 999px; background: var(--sunken); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--cobalt); border-radius: inherit; }

/* ---------------- app chrome */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
.brand svg { flex: none; }
.brand { display: flex; align-items: center; gap: 8px; font: 600 1.05rem var(--f-display); letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.coursepick { max-width: 52vw; min-height: 38px; padding: 4px 30px 4px 12px; border-radius: 999px; font-weight: 600; font-size: .9rem; background: var(--surface); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 8px 0 7px; font-size: .74rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.tabbar a[aria-current="page"] { color: var(--cobalt); }
body.has-tabs { padding-bottom: 76px; }
@media (min-width: 900px) {
  .tabbar { position: sticky; top: 57px; bottom: auto; border: 0; background: transparent; max-width: 760px; margin: 0 auto; padding: 8px 16px 0; grid-template-columns: repeat(4, auto); justify-content: start; gap: 6px; }
  .tabbar a { display: flex; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: .9rem; }
  .tabbar a[aria-current="page"] { background: var(--cobalt-soft); }
  body.has-tabs { padding-bottom: 0; }
}

/* teacher layout: rail + main */
.shell { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - 57px); }
.rail { display: flex; gap: 4px; overflow-x: auto; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.rail a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; font-size: .92rem; }
.rail a[aria-current="page"] { background: var(--cobalt-soft); color: var(--cobalt); }
@media (min-width: 900px) {
  .shell { grid-template-columns: 228px 1fr; }
  .rail { flex-direction: column; border-bottom: 0; border-right: 1px solid var(--line); padding: 18px 12px; overflow: visible; position: sticky; top: 57px; height: calc(100vh - 57px); background: transparent; }
  .rail a { border-radius: var(--r-sm); }
}

/* ---------------- auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth .panel { width: 100%; max-width: 440px; }
.hero h1 { font-size: 2.1rem; }
.touch { display: flex; gap: 6px; margin: 14px 0 4px; }
.touch span { flex: 1; height: 10px; border-radius: 999px; }

/* ---------------- today */
.goal { display: flex; gap: 16px; align-items: center; }
.ring { --p: 0; width: 76px; height: 76px; border-radius: 50%; background: conic-gradient(var(--cobalt) calc(var(--p) * 1%), var(--sunken) 0); display: grid; place-items: center; flex: none; }
.ring > div { width: 60px; height: 60px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.task { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; width: 100%; }
.task:hover { border-color: var(--cobalt); }
.task .k { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--cobalt-soft); color: var(--cobalt); flex: none; }
.task.done { opacity: .6; }
.streak { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--warn); }

/* ---------------- reader */
.reader { font-size: 1.04rem; line-height: 1.7; }
.reader h2 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.reader p, .reader ul, .reader ol, .reader table, .reader .katex-display { margin: 0 0 1em; }
.reader ul, .reader ol { padding-left: 1.3em; }
.reader table { border-collapse: collapse; width: 100%; font-size: .95rem; display: block; overflow-x: auto; }
.reader th, .reader td { border-bottom: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.reader th { font-weight: 700; }
.reader img { border-radius: var(--r-sm); }
.reader code { background: var(--sunken); padding: 1px 5px; border-radius: 5px; font-size: .92em; }
.reader .katex-display { overflow-x: auto; overflow-y: hidden; padding: 4px 0; }
.verify { background: var(--warn-soft); color: var(--warn); border-radius: 4px; padding: 0 4px; font-weight: 700; font-size: .85em; }

/* ---------------- practice */
.qhead { display: flex; align-items: center; gap: 10px; }
.qprog { flex: 1; }
.stem { font-size: 1.12rem; line-height: 1.55; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 13px 14px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; line-height: 1.45; }
.opt .key { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--sunken); font-weight: 700; font-size: .9rem; flex: none; }
.opt:hover:not([disabled]) { border-color: var(--cobalt); }
.opt[aria-pressed="true"] { border-color: var(--cobalt); background: var(--cobalt-soft); }
.opt.right { border-color: var(--good); background: var(--good-soft); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt[disabled] { cursor: default; }
.numin { display: flex; gap: 8px; align-items: center; }
.numin input { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.numin .unit { font-weight: 700; color: var(--muted); min-width: 2.5em; }
.feedback { border-radius: var(--r); padding: 14px 16px; }
.feedback.right { background: var(--good-soft); }
.feedback.wrong { background: var(--bad-soft); }
.feedback h3 { margin-bottom: 4px; }
.flashcard { min-height: 220px; display: grid; place-items: center; text-align: center; padding: 28px; border-radius: var(--r-lg); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-size: 1.2rem; box-shadow: var(--shadow); }
.flashcard .back { font: 600 1.25rem/1.4 var(--f-display); }
.grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.grades .btn { padding: 0 6px; font-size: .9rem; }
.tutor { border-top: 1px solid var(--line); padding-top: 12px; }
.bubble { padding: 10px 12px; border-radius: 14px; max-width: 92%; }
.bubble.me { background: var(--cobalt-soft); margin-left: auto; }
.bubble.ai { background: var(--sunken); }

/* ---------------- teacher tables and charts */
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .8rem; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--sunken); }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.heat { border-collapse: separate; border-spacing: 3px; font-size: .82rem; }
.heat th { font-weight: 600; color: var(--muted); padding: 4px 6px; text-align: left; }
.heat th.rot { height: 120px; white-space: nowrap; vertical-align: bottom; padding: 0 0 6px; }
.heat th.rot > div { transform: rotate(-50deg); transform-origin: 14px 100%; width: 28px; }
.heat td, .heat th { line-height: 1.2; }
.heat td.cell { width: 30px; min-width: 30px; height: 30px; padding: 0; border-radius: 6px; }
.heat tbody th { white-space: nowrap; padding: 0 10px 0 0; }
.heat td.empty { background: var(--sunken); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.kpi { padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.kpi b { display: block; font: 600 1.5rem var(--f-display); }
.kpi span { color: var(--muted); font-size: .85rem; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 64px; }
.spark i { flex: 1; background: var(--cobalt); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }
.cal { display: grid; grid-template-rows: repeat(7, 12px); grid-auto-flow: column; grid-auto-columns: 12px; gap: 3px; }
.cal i { border-radius: 3px; background: var(--sunken); }
.cal i.l1 { background: color-mix(in srgb, var(--cobalt) 35%, var(--sunken)); }
.cal i.l2 { background: color-mix(in srgb, var(--cobalt) 65%, var(--sunken)); }
.cal i.l3 { background: var(--cobalt); }
.risk { border-left: 4px solid var(--warn); }
.editor-item { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; background: var(--surface); }
.lesson-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.lesson-row:last-child { border-bottom: 0; }
.drop { border: 2px dashed var(--line); border-radius: var(--r); padding: 22px; text-align: center; cursor: pointer; }
.drop.over { border-color: var(--cobalt); background: var(--cobalt-soft); }

/* ---------------- dialogs, toasts, banners */
dialog.sheet { border: 0; padding: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 24px 60px -20px rgba(0,0,0,.5); }
dialog.sheet.wide { width: min(980px, calc(100vw - 24px)); }
dialog.sheet::backdrop { background: rgba(10,16,24,.5); }
.sheet-body { padding: 20px; overflow: auto; max-height: calc(100vh - 32px); }
.sheet-body > * + * { margin-top: 14px; }
#toasts { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow); transition: opacity .4s, transform .4s; }
.toast.bad { background: var(--bad); color: #fff; }
.toast.out { opacity: 0; transform: translateY(8px); }
.banner { background: var(--warn-soft); color: var(--warn); font-size: .88rem; font-weight: 600; text-align: center; padding: 6px 12px; }
.sync { font-size: .78rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.sync i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.sync.pending i { background: var(--warn); }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.foot { text-align: center; color: var(--muted); font-size: .78rem; padding: 26px 16px 18px; }
@media print { .topbar, .tabbar, .rail, .noprint { display: none !important; } body { background: #fff; } .card { box-shadow: none; } }
.flip { transform: scaleX(-1); }

/* ---------------- study certificate */
.cert { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.cert-brand { font: 600 1.15rem var(--f-display); }
.cert-foot { border-top: 1px solid var(--line); padding-top: 16px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; }
.verdict { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r); font-weight: 600; }
.verdict.ok { background: var(--good-soft); color: var(--good); }
.verdict.no { background: var(--bad-soft); color: var(--bad); }
@media print { .cert { border: 0; box-shadow: none; padding: 0; } .verdict, .banner { display: none !important; } .kpi { break-inside: avoid; } .metal { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ---------------- live quiz */
.live-hero { text-align: center; padding: 6vh 0; }
.live-big { font: 600 2.2rem var(--f-display); }
.live-clock { font: 600 1.6rem var(--f-display); min-width: 2.4em; text-align: center; padding: 4px 12px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.live-stem { font-size: clamp(1.25rem, 2.6vw, 2rem); line-height: 1.4; font-weight: 600; }
.live-opts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.live-opt { position: relative; overflow: hidden; display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r); background: var(--surface); border: 2px solid var(--line); font-size: clamp(1rem, 1.8vw, 1.35rem); }
.live-opt .key { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--sunken); font-weight: 700; flex: none; z-index: 1; }
.live-opt > span, .live-opt > .num { position: relative; z-index: 1; }
.live-opt > i { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--cobalt) 16%, transparent); transition: width .6s ease; }
.live-opt.right { border-color: var(--good); background: var(--good-soft); }
.live-opt.right > i { background: color-mix(in srgb, var(--good) 22%, transparent); }
.live-opt.dim { opacity: .75; }
.live-banner { border: 2px solid var(--bad); }

/* Kannada: the script needs a little more size and line height to read as easily as the Latin text */
:lang(kn) body, [lang="kn"] { line-height: 1.7; }
:lang(kn) .small { font-size: .92rem; }
:lang(kn) .tiny { font-size: .84rem; }

/* two languages on the page: the container's class picks one */
.lx .le { display: none; }
.lx.show-en .lt { display: none; }
.lx.show-en .le { display: revert; }
.lt-seg { display: inline-flex; padding: 3px; }
.lt-seg button { min-height: 32px; padding: 0 12px; flex: none; font-size: .85rem; }
