/* নিরীক্ষা — a masterclass online exam centre.
   Obsidian & graphite, ivory type, one gold accent. Serif display (Noto Serif Bengali 600), sans interface.
   Covers carry the colour; the interface stays quiet. */
:root {
  --bg: #0D0D0F; --bg-2: #121215; --card: #16161A; --card-2: #1C1C21; --line: #2A2A31; --line-2: #212127;
  --ink: #F3EFE7; --ink-2: #CFCAC0; --muted: #9A968E;
  --gold: #C8A96A; --gold-2: #E2C88E; --gold-ink: #1A1408; --gold-soft: rgba(200, 169, 106, .12);
  --ok: #6FBF8E; --ok-bg: rgba(111, 191, 142, .12); --bad: #E07A6B; --bad-bg: rgba(224, 122, 107, .12); --warn: #E2B45C; --warn-bg: rgba(226, 180, 92, .12);
  --live: #E0524A;
  --serif: "Noto Serif Bengali", Georgia, serif; --sans: "Noto Sans Bengali", system-ui, sans-serif;
  --r: 14px; --r-sm: 10px; --wrap: 1280px; --gut: 16px;
  --ease: cubic-bezier(.22, .8, .24, 1); --out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gut: 36px; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
main { flex: 1; position: relative; z-index: 1; }
#app:focus { outline: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; }
p { margin: 0; }
svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.neon { color: var(--gold-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(1200px 600px at 80% -10%, rgba(200, 169, 106, .07), transparent 60%); }
.bg__grid, .bg__orb { display: none; }

/* buttons & fields */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 1.35rem; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-weight: 500; text-decoration: none; cursor: pointer; overflow: hidden; transition: border-color .25s, background-color .25s, color .25s, transform .2s var(--ease); }
.btn:hover { border-color: var(--ink-2); background: rgba(255, 255, 255, .03); }
.btn:active { transform: scale(.98); }
.btn--neon, .btn--gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 600; }
.btn--neon:hover, .btn--gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn--neon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn--neon:hover::after { transform: translateX(120%); }
.btn--danger { border-color: rgba(224, 122, 107, .45); color: var(--bad); }
.btn--sm { min-height: 36px; padding: 0 .9rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--google { background: #fff; color: #1F1F1F; border-color: #fff; font-weight: 500; }
.btn--google:hover { background: #F2F2F2; border-color: #F2F2F2; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.is-busy { color: transparent !important; }
.btn.is-busy::before { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid currentColor; border-color: var(--ink); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn--neon.is-busy::before { border-color: var(--gold-ink); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.field { display: grid; gap: 6px; }
.field > span { font-size: .9rem; color: var(--ink-2); }
.input { width: 100%; min-height: 50px; padding: .6rem 1rem; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.err { color: var(--bad); font-size: .9rem; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 6px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gsi { display: flex; justify-content: center; min-height: 44px; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(13, 13, 15, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-2); }
.top__row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark svg { width: 30px; height: 30px; stroke: var(--gold); stroke-width: 2.2; }
.logo__name { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--ink); letter-spacing: -.01em; }
.top__nav { display: none; gap: 2px; margin-left: 10px; }
.top__nav a { position: relative; text-decoration: none; padding: .45rem .8rem; color: var(--ink-2); font-size: .95rem; transition: color .2s; }
.top__nav a::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .15rem; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.top__nav a:hover, .top__nav a[aria-current="page"] { color: var(--ink); }
.top__nav a:hover::after, .top__nav a[aria-current="page"]::after { transform: scaleX(1); }
.top__store { color: var(--muted) !important; }
.top__me { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; background: var(--card-2); border: 1px solid var(--gold); color: var(--gold-2); text-decoration: none; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) { .top__nav { display: flex; } }
.mnav { display: flex; gap: 6px; padding: 0 var(--gut) 10px; overflow-x: auto; scrollbar-width: none; }
.mnav a { flex: none; text-decoration: none; padding: .35rem .85rem; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--ink-2); }
@media (min-width: 960px) { .mnav { display: none; } }

/* exam cover (image or a generated plate) */
.cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--card-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--out); }
.cover--plate { display: grid; place-items: end start; padding: 18px; background: radial-gradient(120% 90% at 100% 0%, var(--c1, #3A3326), transparent 60%), linear-gradient(160deg, var(--c2, #1E1D22), #111114); }
.cover--plate::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 14px); }
.cover--plate b { position: absolute; right: 16px; top: 4px; font-family: var(--serif); font-weight: 600; font-size: 5.5rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(200, 169, 106, .45); }
.cover--plate span { position: relative; font-size: .8rem; color: var(--ink-2); letter-spacing: .02em; }
.cover__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .65)); pointer-events: none; }

/* hero — featured exam, cinematic */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line-2); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
@media (min-width: 960px) { .hero__media { left: 34%; } .hero__media::after { background: linear-gradient(90deg, var(--bg) 0%, rgba(13, 13, 15, .6) 30%, rgba(13, 13, 15, .1) 70%, rgba(13, 13, 15, .45)), linear-gradient(0deg, var(--bg) 0%, transparent 40%) !important; } }
.hero__media img, .hero__media .cover { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 13, 15, .97) 0%, rgba(13, 13, 15, .85) 38%, rgba(13, 13, 15, .25) 75%, rgba(13, 13, 15, .55)), linear-gradient(0deg, var(--bg) 0%, transparent 40%); }
.hero__inner { width: 100%; padding-block: 120px 64px; }
.hero__eyebrowless { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-2); font-size: .95rem; }
.hero__eyebrowless i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(224, 82, 74, .2); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hero h1 { margin-top: 18px; font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1.04; letter-spacing: -.03em; max-width: 13ch; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln > span { display: inline-block; }
.hero__lede { margin-top: 22px; font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; }
.hero__cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero__feature { margin-top: 44px; display: inline-flex; gap: 14px; align-items: center; padding: 10px 16px 10px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(13, 13, 15, .6); backdrop-filter: blur(8px); text-decoration: none; max-width: 100%; }
.hero__feature .cover { width: 92px; border-radius: 8px; flex: none; }
.hero__feature small { display: block; color: var(--muted); font-size: .8rem; }
.hero__feature b { font-family: var(--serif); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 26px var(--gut); border-right: 1px solid var(--line-2); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--muted); }
.deck, .qcard, .marquee, .hero__pill { display: none; }

/* sections & rails */
.sec { padding: 80px 0 10px; position: relative; }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.sec__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.sec__head p { color: var(--muted); margin-top: 8px; max-width: 56ch; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 60px) / 4); } }
.rail > * { scroll-snap-align: start; }

/* category row */
.cats { display: flex; gap: 10px; flex-wrap: wrap; }
.cat { display: inline-flex; align-items: baseline; gap: 10px; padding: 12px 18px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; transition: border-color .25s, background-color .25s; }
.cat:hover { border-color: var(--gold); background: var(--gold-soft); }
.cat b { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.cat span { font-size: .85rem; color: var(--muted); }
.cat i { display: none; }

/* exam cards */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { min-height: 38px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; font-size: .92rem; text-decoration: none; display: inline-flex; align-items: center; transition: all .25s var(--ease); }
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.exams { display: grid; gap: 28px 22px; }
@media (min-width: 680px) { .exams { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .exams { grid-template-columns: repeat(3, 1fr); } }
.ex { position: relative; display: flex; flex-direction: column; text-decoration: none; }
.ex .cover { border-radius: var(--r); border: 1px solid var(--line-2); }
.ex:hover .cover img { transform: scale(1.06); }
.ex__badges { position: absolute; left: 12px; top: 12px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.ex__body { flex: 1; padding: 16px 2px 0; display: flex; flex-direction: column; gap: 4px; }
.ex__body .ex__foot { margin-top: auto; }
.ex__body .ex__meta { margin-bottom: 12px; }
.ex__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.tag { font-size: .75rem; padding: 2px 9px; border-radius: 6px; background: rgba(13, 13, 15, .72); color: var(--ink-2); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px); }
.tag--free { color: var(--ok); border-color: rgba(111, 191, 142, .4); }
.tag--live { color: #fff; background: var(--live); border-color: var(--live); }
.tag--soon { color: var(--warn); border-color: rgba(226, 180, 92, .4); }
.tag--battle { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); font-weight: 600; }
.tag--mcq, .tag--written { color: var(--ink-2); }
.ex h3 { font-size: 1.2rem; line-height: 1.35; transition: color .2s; }
.ex:hover h3 { color: var(--gold-2); }
.ex__sub { color: var(--muted); font-size: .9rem; }
.ex__meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; font-size: .85rem; color: var(--muted); }
.ex__meta span { display: inline-flex; align-items: center; gap: 6px; }
.ex__meta svg { width: .95rem; height: .95rem; color: var(--gold); }
.ex__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.price { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.price s { font-family: var(--sans); font-weight: 400; font-size: .85rem; color: var(--muted); margin-left: 6px; }
.price--free { color: var(--ok); }
.ex__best { font-size: .8rem; color: var(--gold-2); }
.ex__go { font-size: .9rem; color: var(--ink-2); }
.ex__glow { display: none; }

/* features → three numbered steps */
.feats { display: grid; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
@media (min-width: 720px) { .feats { grid-template-columns: repeat(3, 1fr); } }
.feat { padding: 28px; background: var(--bg); }
.feat__ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold); margin-bottom: 16px; }
.feat h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; }
.feat p { color: var(--muted); font-size: .92rem; margin-top: 6px; }

/* leaderboard */
.board { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.board__row { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-2); transition: background-color .2s; }
@media (min-width: 720px) { .board__row { grid-template-columns: 64px 1fr 110px 110px 120px; } }
.board__row:last-child { border-bottom: 0; }
.board__row:hover { background: rgba(255, 255, 255, .02); }
.board__row.is-me { background: var(--gold-soft); }
.board__head { color: var(--muted); font-size: .8rem; background: var(--bg-2); }
.board__head:hover { background: var(--bg-2); }
.board__rank { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink-2); text-align: center; }
.board__row:nth-child(2) .board__rank, .board__row:nth-child(3) .board__rank, .board__row:nth-child(4) .board__rank { color: var(--gold-2); }
.board__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.board__who .avatar { width: 36px; height: 36px; font-size: .9rem; }
.board__who div { min-width: 0; }
.board__who b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board__who small { color: var(--muted); font-size: .8rem; }
.board__num { text-align: right; font-variant-numeric: tabular-nums; }
.board__num b { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.board__num small { display: block; color: var(--muted); font-size: .75rem; }
.board__opt { display: none; }
@media (min-width: 720px) { .board__opt { display: block; } }
.top3 { display: grid; gap: 16px; margin-bottom: 26px; }
@media (min-width: 760px) { .top3 { grid-template-columns: 1fr 1.12fr 1fr; align-items: end; } }
.top3__card { position: relative; text-align: center; padding: 26px 18px 22px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-2), var(--card)); }
.top3__card--1 { border-color: rgba(200, 169, 106, .6); background: linear-gradient(180deg, rgba(200, 169, 106, .14), var(--card)); padding-top: 36px; }
.top3__medal { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: #1A1408; background: linear-gradient(135deg, #F0DCA5, #B8924A); box-shadow: 0 0 0 4px rgba(200, 169, 106, .15); }
.top3__card--2 .top3__medal { background: linear-gradient(135deg, #EEF0F3, #A3A9B3); box-shadow: 0 0 0 4px rgba(200, 200, 210, .12); }
.top3__card--3 .top3__medal { background: linear-gradient(135deg, #EDC2A0, #A86A42); box-shadow: 0 0 0 4px rgba(200, 130, 90, .14); }
.top3__card .avatar { width: 64px; height: 64px; margin: 0 auto 10px; font-size: 1.4rem; }
.top3__card b { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; display: block; }
.top3__card small { color: var(--muted); }
.top3__pts { margin-top: 10px; font-family: var(--serif); font-size: 1.6rem; color: var(--gold-2); }

/* exam detail */
.dhero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line-2); }
.dhero__media { position: absolute; inset: 0; z-index: -1; }
.dhero__media .cover, .dhero__media img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.dhero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 13, 15, .96) 20%, rgba(13, 13, 15, .6) 70%, rgba(13, 13, 15, .8)), linear-gradient(0deg, var(--bg), transparent 50%); }
.dhero__in { padding-block: 90px 50px; }
.detail { display: grid; gap: 28px; padding: 40px 0 10px; }
@media (min-width: 960px) { .detail { grid-template-columns: 1.45fr 1fr; gap: 48px; align-items: start; } .detail > aside { position: sticky; top: 92px; } }
.dhero h1, .detail h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); margin-top: 14px; max-width: 20ch; }
.detail__sub { color: var(--ink-2); margin-top: 10px; font-size: 1.1rem; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 30px; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--line-2); gap: 1px; }
@media (min-width: 600px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 18px; background: rgba(13, 13, 15, .85); }
.fact b { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.fact span { font-size: .85rem; color: var(--muted); }
.panel { padding: 26px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line-2); }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; }
.rules { margin: 0; padding-left: 1.2em; color: var(--ink-2); display: grid; gap: 8px; }
.prose { color: var(--ink-2); white-space: pre-line; }
.countdown { display: flex; gap: 8px; margin: 6px 0 14px; }
.countdown div { flex: 1; text-align: center; padding: 10px 4px; border-radius: 10px; border: 1px solid var(--line); }
.countdown b { display: block; font-family: var(--serif); font-size: 1.5rem; }
.countdown span { font-size: .75rem; color: var(--muted); }
.lb { list-style: none; margin: 0; padding: 0; display: grid; }
.lb li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line-2); }
.lb li:last-child { border-bottom: 0; }
.lb li.is-me { background: var(--gold-soft); border-radius: 8px; padding-inline: 8px; }
.lb__r { font-family: var(--serif); font-weight: 600; color: var(--ink-2); text-align: center; }
.lb li:nth-child(-n+3) .lb__r { color: var(--gold-2); }
.lb small { color: var(--muted); display: block; font-size: .78rem; }
.lb__s { font-weight: 600; text-align: right; }

/* auth */
.auth { display: grid; min-height: calc(100vh - 68px); }
@media (min-width: 960px) { .auth { grid-template-columns: 1.1fr 1fr; } }
.auth__art { position: relative; display: none; overflow: hidden; border-right: 1px solid var(--line-2); }
@media (min-width: 960px) { .auth__art { display: block; } }
.auth__art .cover { position: absolute; inset: 0; aspect-ratio: auto; }
.auth__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13, 13, 15, .95), rgba(13, 13, 15, .2) 60%); }
.auth__quote { position: absolute; z-index: 2; left: 48px; right: 48px; bottom: 48px; }
.auth__quote p { font-family: var(--serif); font-size: 2rem; line-height: 1.3; }
.auth__quote span { display: block; margin-top: 12px; color: var(--muted); }
.auth__box { width: 100%; max-width: 440px; margin: auto; padding: 48px var(--gut); }
.auth__box h1 { font-size: 2.2rem; }
.auth__box > p { color: var(--muted); margin: 8px 0 26px; }
.auth .panel { padding: 0; border: 0; background: none; }
.tabs { display: flex; gap: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line-2); }
.tabs button { min-height: 42px; border: 0; background: transparent; color: var(--muted); font-weight: 500; cursor: pointer; padding: 0; position: relative; }
.tabs button[aria-pressed="true"] { color: var(--ink); }
.tabs button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); }
.form { display: grid; gap: 14px; }

/* exam room */
.room { padding: 18px 0 120px; }
.room__bar { position: sticky; top: 68px; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px 18px; margin-bottom: 20px; border-radius: 12px; background: rgba(18, 18, 21, .94); backdrop-filter: blur(12px); border: 1px solid var(--line-2); }
.room__title { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room__title small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.timer { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--line); font-family: var(--serif); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 1.15rem; }
.timer svg { color: var(--gold); }
.timer.is-low { border-color: var(--live); color: #FFB3AC; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(224, 82, 74, .15); } }
.progress { position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; background: var(--line-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--gold); width: 0; transition: width .6s var(--ease); }
.room__grid { display: grid; gap: 22px; }
@media (min-width: 980px) { .room__grid { grid-template-columns: 1fr 310px; align-items: start; } .room__side { position: sticky; top: 152px; display: grid; gap: 16px; } }
.qbox { padding: 34px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line-2); min-height: 380px; }
.qbox__n { color: var(--muted); font-size: .9rem; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.qbox__q { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.65rem); font-weight: 500; line-height: 1.5; margin: 14px 0 22px; white-space: pre-line; }
.qbox__img { border-radius: 10px; margin: 0 0 20px; max-height: 340px; width: auto; background: #fff; }
.opt { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 15px 18px; margin-top: 10px; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; transition: border-color .2s, background-color .2s; }
.opt:hover { border-color: var(--ink-2); }
.opt__k { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 600; border: 1px solid var(--line); color: var(--ink-2); transition: all .2s; }
.opt img { max-height: 120px; border-radius: 8px; background: #fff; }
.opt[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); }
.opt[aria-pressed="true"] .opt__k { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.opt.is-correct { border-color: var(--ok); background: var(--ok-bg); }
.opt.is-correct .opt__k { background: var(--ok); border-color: var(--ok); color: #0B1F12; }
.opt.is-wrong { border-color: var(--bad); background: var(--bad-bg); }
.opt.is-wrong .opt__k { background: var(--bad); border-color: var(--bad); color: #2A0A06; }
.qnav { display: flex; gap: 10px; justify-content: space-between; margin-top: 26px; flex-wrap: wrap; }
.palette { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.palette button { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; font-size: .88rem; position: relative; transition: all .2s; }
.palette button.is-done { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.palette button.is-mark::after { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.palette button.is-cur { outline: 2px solid var(--gold); outline-offset: 1px; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.mark-btn[aria-pressed="true"] { border-color: var(--warn); color: var(--warn); }
.saved { font-size: .8rem; color: var(--muted); }

/* written answers */
.wq { padding: 28px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line-2); margin-bottom: 18px; }
.wq__head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .9rem; }
.wq__q { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; line-height: 1.55; margin: 10px 0 18px; white-space: pre-line; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.shot { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot button { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; cursor: pointer; display: grid; place-items: center; }
.shot--add { display: grid; place-items: center; text-align: center; border: 1px dashed var(--line); background: transparent; cursor: pointer; color: var(--ink-2); font-size: .85rem; padding: 10px; transition: border-color .2s, background-color .2s; }
.shot--add:hover { border-color: var(--gold); background: var(--gold-soft); }
.shot--add svg { width: 1.7rem; height: 1.7rem; margin: 0 auto 6px; color: var(--gold); }
.shot--busy::after { content: ""; position: absolute; inset: 0; background: rgba(13, 13, 15, .6) linear-gradient(90deg, transparent, rgba(200, 169, 106, .35), transparent) no-repeat; background-size: 60% 100%; animation: scan 1.1s linear infinite; }
@keyframes scan { from { background-position: -100% 0; } to { background-position: 200% 0; } }

/* result */
.res { display: grid; gap: 26px; padding: 44px 0 10px; }
@media (min-width: 960px) { .res { grid-template-columns: 370px 1fr; gap: 44px; align-items: start; } .res > aside { position: sticky; top: 92px; } }
.ring { position: relative; width: 210px; height: 210px; margin: 6px auto 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .track { stroke: var(--line); }
.ring .bar { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset 2s var(--out); filter: drop-shadow(0 0 8px rgba(200, 169, 106, .5)); }
.ring__v { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring__v b { display: block; font-family: var(--serif); font-size: 3rem; font-weight: 600; line-height: 1; }
.ring__v span { color: var(--muted); font-size: .88rem; }
.verdict { position: relative; text-align: center; margin-top: 18px; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; overflow: hidden; }
.verdict--pass { color: var(--gold-2); }
.verdict--pass::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 240, 200, .55) 50%, transparent 70%); transform: translateX(-120%); animation: sheen 2.4s 1.6s var(--ease) 2; }
@keyframes sheen { to { transform: translateX(120%); } }
.verdict--fail { color: var(--ink-2); }
.tally { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; gap: 1px; background: var(--line-2); }
.tally div { text-align: center; padding: 12px 6px; background: var(--card); }
.tally b { display: block; font-family: var(--serif); font-size: 1.35rem; }
.tally .t-ok b { color: var(--ok); } .tally .t-bad b { color: var(--bad); } .tally .t-skip b { color: var(--ink-2); }
.rank { margin-top: 16px; text-align: center; padding: 12px; border-radius: 10px; border: 1px solid rgba(200, 169, 106, .4); background: var(--gold-soft); }
.rank b { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-2); }
.review { padding: 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line-2); margin-bottom: 14px; }
.review__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.review .qbox__q { font-size: 1.15rem; margin: 10px 0 8px; }
.review .opt { cursor: default; padding: 11px 14px; }
.review .opt:hover { border-color: var(--line); }
.review .opt.is-correct:hover { border-color: var(--ok); } .review .opt.is-wrong:hover { border-color: var(--bad); }
.exp { margin-top: 14px; padding: 14px 18px; border-radius: 10px; background: var(--bg-2); border-left: 2px solid var(--gold); color: var(--ink-2); white-space: pre-line; }
.exp b { color: var(--gold-2); display: block; margin-bottom: 4px; font-weight: 600; }
.exp img { margin-top: 10px; border-radius: 10px; max-height: 340px; background: #fff; }
.badge { font-size: .75rem; font-weight: 600; padding: 2px 9px; border-radius: 6px; }
.badge--ok { background: var(--ok-bg); color: var(--ok); } .badge--bad { background: var(--bad-bg); color: var(--bad); } .badge--skip { background: rgba(255, 255, 255, .06); color: var(--ink-2); } .badge--warn { background: var(--warn-bg); color: var(--warn); }
.bm { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 4px; }
.bm[aria-pressed="true"] { color: var(--gold); }
.bm[aria-pressed="true"] svg { fill: currentColor; }
.grading { text-align: center; padding: 28px 10px; }
.grading__scan { width: 112px; height: 144px; margin: 0 auto 18px; border-radius: 8px; border: 1px solid var(--line); background: repeating-linear-gradient(180deg, transparent 0 14px, rgba(255, 255, 255, .06) 14px 15px); position: relative; overflow: hidden; }
.grading__scan::after { content: ""; position: absolute; left: 0; right: 0; height: 28%; background: linear-gradient(transparent, rgba(200, 169, 106, .45), transparent); animation: scanY 1.9s ease-in-out infinite; }
@keyframes scanY { from { top: -30%; } to { top: 100%; } }

/* dashboard */
.me-head { display: flex; align-items: center; gap: 18px; padding: 48px 0 22px; flex-wrap: wrap; }
.me-head .avatar { width: 72px; height: 72px; font-size: 1.8rem; }
.hist { width: 100%; border-collapse: collapse; }
.hist th, .hist td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line-2); font-size: .93rem; }
.hist th { color: var(--muted); font-weight: 400; font-size: .82rem; background: var(--bg-2); }
.hist tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line-2); }

/* modal, toasts, misc */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); animation: fade .25s ease; }
.modal__box { position: relative; width: min(480px, 100%); max-height: 90vh; overflow: auto; padding: 28px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: 0 40px 100px -30px #000; animation: pop .35s var(--out); }
.modal__box h2 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin-bottom: 10px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.paylist { display: grid; gap: 8px; margin: 16px 0; }
.payopt { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; }
.payopt:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.payopt.is-off { opacity: .45; cursor: not-allowed; }
.payopt input { accent-color: #C8A96A; width: 18px; height: 18px; }
.payopt small { display: block; color: var(--muted); font-size: .8rem; }
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast { padding: 13px 18px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); border-left: 2px solid var(--gold); box-shadow: 0 20px 50px -20px #000; animation: pop .35s var(--out); font-size: .93rem; }
.toast--err { border-left-color: var(--bad); color: #FFD9D3; }
.empty { padding: 44px 0; max-width: 48ch; }
.empty h2 { font-size: 1.6rem; margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 18px; }
.skel { border-radius: var(--r); aspect-ratio: 16 / 12; background: linear-gradient(90deg, var(--card), var(--card-2), var(--card)); background-size: 200% 100%; animation: sh 1.4s linear infinite; }
@keyframes sh { to { background-position: -200% 0; } }
.confetti { display: none; }
.foot { position: relative; z-index: 1; margin-top: 90px; border-top: 1px solid var(--line-2); padding: 44px 0 34px; color: var(--muted); font-size: .92rem; }
.foot__row { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--gold-2); }
.foot__links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ===================================================== live battle */
.arena { position: relative; margin-top: 24px; padding: 30px; border-radius: var(--r); overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #17150F, var(--card)); border: 1px solid rgba(200, 169, 106, .35); }
.arena::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 220px at 0% 0%, rgba(200, 169, 106, .14), transparent 70%); }
.arena__state { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--gold-2); }
.arena__state i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); animation: blink 1.3s infinite; }
.arena--live .arena__state i { background: var(--live); }
.arena--ended .arena__state i { background: var(--muted); animation: none; }
.arena h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); margin-top: 12px; }
.arena__sub { color: var(--ink-2); margin-top: 6px; }
.bigclock { display: grid; grid-template-columns: repeat(4, 1fr); margin: 24px 0 20px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; gap: 1px; background: var(--line); }
.bigclock div { text-align: center; padding: 16px 6px 12px; background: var(--bg-2); }
.bigclock b { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 5.6vw, 3.4rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.bigclock b.tick { animation: flipIn .5s var(--out); }
@keyframes flipIn { from { transform: translateY(-30%); opacity: .2; } }
.bigclock span { font-size: .78rem; color: var(--muted); }
.arena__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.arena__count { color: var(--ink-2); font-size: .93rem; }
.arena__count b { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.joined { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 8px; border: 1px solid rgba(111, 191, 142, .4); color: var(--ok); }
.lobby { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; }
.lobby span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--line); font-size: .86rem; animation: popIn .5s var(--out) both; }
.lobby span i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .75rem; border: 1px solid var(--gold); color: var(--gold-2); }
.lobby span.is-me { border-color: var(--gold); }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } }
.go321 { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; pointer-events: none; background: rgba(13, 13, 15, .9); }
.go321 b { font-family: var(--serif); font-weight: 600; font-size: clamp(8rem, 28vw, 17rem); line-height: 1; color: var(--gold-2); animation: boom .8s var(--out) both; }
@keyframes boom { 0% { transform: scale(1.8); opacity: 0; letter-spacing: .1em; } 35% { opacity: 1; } 100% { transform: scale(.9); opacity: 0; } }
.race { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; }
.race li { position: relative; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); overflow: hidden; }
.race li.is-me { border-color: rgba(200, 169, 106, .6); }
.race__pos { font-family: var(--serif); font-weight: 600; text-align: center; color: var(--ink-2); }
.race li:nth-child(-n+3) .race__pos { color: var(--gold-2); }
.race__name { min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.race__name small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.race__bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--gold); transition: width .9s var(--out); }
.race li.is-done .race__bar { background: var(--ok); }
.race__val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.race__val small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; }
.race--mini li { padding: 8px 10px; grid-template-columns: 24px 1fr auto; }
.race-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.race-head span { color: var(--muted); font-size: .85rem; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 10px; margin: 26px auto 10px; max-width: 560px; }
.podium__col { text-align: center; }
.podium__who { font-weight: 500; font-size: .95rem; margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium__who small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; }
.podium__block { border-radius: 10px 10px 2px 2px; display: grid; place-items: start center; padding-top: 14px; font-family: var(--serif); font-weight: 600; font-size: 2.2rem; color: rgba(20, 16, 8, .6); transform-origin: bottom; }
.podium__col--1 .podium__block { height: 168px; background: linear-gradient(180deg, #EAD39A, #B8924A); box-shadow: 0 0 60px rgba(200, 169, 106, .25); }
.podium__col--2 .podium__block { height: 122px; background: linear-gradient(180deg, #E9ECF0, #9EA4AE); }
.podium__col--3 .podium__block { height: 92px; background: linear-gradient(180deg, #E8BD9A, #A2683F); }
.podium__crown { display: block; width: 26px; height: 2px; margin: 0 auto 10px; background: var(--gold); box-shadow: 0 0 12px var(--gold); font-size: 0; }
.home-battle { margin-top: 70px; }


/* =====================================================================================
   v9 — "পরীক্ষার হল" (the exam hall). The page is the hall at night: ink-blue walls, tube
   lights, a brass wall clock, rows of desks. Everything a student touches is paper —
   question papers, the OMR sheet, the marksheet — printed in serif, marked in ballpoint
   blue, judged with a red rubber stamp. Lights switch (হলের বাতি) flips night <-> day.
   ===================================================================================== */
:root {
  --bg: #111726; --bg-2: #161D30; --card: #1A2238; --card-2: #212B45; --line: #2E3A57; --line-2: #243049;
  --ink: #EEF1F6; --ink-2: #C5CCDA; --muted: #8E98AE;
  --gold: #D9A441; --gold-2: #F0C46E; --gold-ink: #1D1606; --gold-soft: rgba(217, 164, 65, .13);
  --paper: #F3EDE0; --paper-2: #E6DDCA; --paper-ink: #1F2535; --paper-mute: #6C6A66; --rule: rgba(47, 85, 212, .16);
  --pen: #2B4FC8; --stamp: #C4362E;
  --serif: "Anek Bangla", "Noto Sans Bengali", sans-serif;
  --print: "Noto Serif Bengali", Georgia, serif;
  --wall-1: #141B2E; --wall-2: #0E1322; --floor: #0B0F1B; --desk: #3A2C22; --desk-top: #4A392C;
  --tube: rgba(220, 235, 255, .28);
  --r: 12px;
}
:root[data-theme="light"] {
  --bg: #E9E5DB; --bg-2: #E1DCD0; --card: #F4F1EA; --card-2: #ECE7DC; --line: #CFC7B6; --line-2: #DAD3C4;
  --ink: #1B2132; --ink-2: #384056; --muted: #6E7385;
  --gold: #B9821F; --gold-2: #8F6212; --gold-ink: #FFF8E8; --gold-soft: rgba(185, 130, 31, .12);
  --wall-1: #E4E2D6; --wall-2: #D7D5C7; --floor: #BFB6A3; --desk: #8A6646; --desk-top: #A47C57;
  --tube: rgba(255, 255, 250, .95);
  color-scheme: light;
}
h1, h2, h3 { font-weight: 800; font-variation-settings: "wdth" 80; letter-spacing: -.005em; line-height: 1.08; }
.bg { background: none; }
body { transition: background-color .5s, color .5s; }
.top { background: color-mix(in srgb, var(--bg) 84%, transparent); }
.logo__mark svg { stroke: var(--gold); }
.logo__name { font-weight: 800; font-variation-settings: "wdth" 78; font-size: 1.7rem; color: var(--ink); }
.btn--neon, .btn--gold { background: var(--gold); border: 1px solid var(--gold); color: var(--gold-ink); box-shadow: 0 10px 26px -14px rgba(217, 164, 65, .9); }
.btn--neon:hover, .btn--gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tag { background: color-mix(in srgb, var(--bg) 80%, transparent); color: var(--ink-2); border-color: var(--line); }
.tag--battle { background: var(--stamp); border-color: var(--stamp); color: #fff; }
.sec__head h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.toast--err { color: var(--ink); }
.timer.is-low { color: var(--stamp); }

/* ---- lights switch in the header */
.lights { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; font-size: .88rem; white-space: nowrap; }
.lights__sw { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--line); transition: background-color .3s; }
.lights__sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-2); transition: transform .35s var(--out), background-color .3s; }
.lights[aria-pressed="true"] .lights__sw { background: var(--gold); }
.lights[aria-pressed="true"] .lights__sw::after { transform: translateX(14px); background: #fff; }
@media (max-width: 560px) { .lights__lbl { display: none; } .lights { padding: 0 6px; } }
.flicker { animation: flicker .7s steps(1) 1; }
@keyframes flicker { 0% { opacity: .2 } 12% { opacity: 1 } 20% { opacity: .35 } 34% { opacity: 1 } 46% { opacity: .55 } 60%, 100% { opacity: 1 } }

.lights + .top__me { margin-left: 0; }

/* =================== HERO: the hall =================== */
.hall { position: relative; display: flex; flex-direction: column; min-height: min(100svh, 920px); overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--wall-1) 0%, var(--wall-2) 100%); transition: background .5s; }
.hall__tubes { position: absolute; inset: 0 0 auto; height: 120px; display: flex; justify-content: space-around; padding: 22px 8% 0; z-index: 1; pointer-events: none; }
.hall__tubes i { width: clamp(90px, 14vw, 200px); height: 7px; border-radius: 4px; background: var(--tube); box-shadow: 0 0 22px 4px var(--tube), 0 0 140px 50px color-mix(in srgb, var(--tube) 25%, transparent); }
.hall__wall { position: relative; z-index: 3; flex: 1; display: grid; gap: 30px; padding-top: clamp(96px, 14vh, 150px); padding-bottom: 40px; }
.hall__title { font-family: var(--serif); font-weight: 800; font-variation-settings: "wdth" 75; font-size: clamp(5rem, 17vw, 14rem); line-height: .82; letter-spacing: -.02em; color: var(--ink); }
.hall__title span { display: inline-block; }
.hall__sub { margin-top: 18px; max-width: 38ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-2); }
.hall__cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.hall__cta .btn:not(.btn--neon) { background: var(--card); border-color: var(--line); color: var(--ink); }
.hall__cta .btn:not(.btn--neon):hover { border-color: var(--ink-2); }
.hall__side { display: flex; align-items: flex-start; gap: 22px; }

/* brass wall clock */
.wclock { position: relative; width: clamp(150px, 18vw, 240px); aspect-ratio: 1; flex: none; transform-origin: 50% 0; }
.wclock svg { width: 100%; height: 100%; stroke: none; overflow: visible; }
.wclock .rim { fill: none; stroke: var(--gold); stroke-width: 7; }
.wclock .face { fill: #F4EEDF; }
.wclock .tk { stroke: #2A2E3A; stroke-width: 1.2; } .wclock .tk.h { stroke-width: 3; }
.wclock .num { fill: #2A2E3A; font: 700 13px "Noto Sans Bengali", sans-serif; text-anchor: middle; dominant-baseline: central; }
.wclock .hand { stroke: #1D2130; stroke-linecap: round; }
.wclock .hand.s { stroke: #C4362E; stroke-width: 1.6; }
.wclock .pin { fill: #C4362E; }
.wclock .brand { fill: #8A8577; font: 600 8px "Noto Sans Bengali", sans-serif; text-anchor: middle; }
.wclock::after { content: ""; position: absolute; inset: 8% 10% auto auto; width: 40%; height: 30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .35), transparent); pointer-events: none; }

/* chalkboard */
.chalk { position: relative; flex: 1; min-width: 0; width: 100%; max-width: 360px; padding: 16px 22px 18px; border-radius: 4px; background: radial-gradient(120% 120% at 30% 20%, #2E4A3E, #1C2E27); border: 10px solid #5B4330; box-shadow: inset 0 0 40px rgba(0, 0, 0, .45), 0 20px 40px -20px rgba(0, 0, 0, .7); color: #E9EFE6; font-family: var(--serif); font-variation-settings: "wdth" 88; }
.chalk p { font-weight: 600; font-size: 1.05rem; line-height: 1.5; opacity: .92; display: flex; justify-content: space-between; gap: 12px; }
.chalk p + p { margin-top: 2px; }
.chalk b { font-weight: 800; font-size: 1.3rem; }
.chalk__date { font-size: .95rem !important; opacity: .7 !important; margin-bottom: 6px; display: block !important; }

/* desks in perspective */
.hall__floor { position: relative; z-index: 2; flex: none; height: clamp(190px, 30vh, 320px); overflow: hidden; perspective: 900px; perspective-origin: 50% -30%; pointer-events: none; background: linear-gradient(180deg, var(--floor), var(--floor)); border-top: 2px solid color-mix(in srgb, var(--wall-2) 60%, #000); }
.desks { position: absolute; top: 0; bottom: -30%; left: -40%; right: -40%; display: grid; grid-template-columns: repeat(9, 1fr); grid-auto-rows: 1fr; gap: 9% 3%; padding: 2% 4% 0; transform: rotateX(56deg); transform-origin: 50% 0; transform-style: preserve-3d; }
.desk { position: relative; border-radius: 4px; background: linear-gradient(180deg, var(--desk-top), var(--desk)); box-shadow: 0 26px 26px -12px rgba(0, 0, 0, .55); transform-style: preserve-3d; }
.desk i { position: absolute; left: 24%; top: 12%; width: 46%; height: 76%; background: var(--paper); box-shadow: 1px 2px 0 rgba(0, 0, 0, .2); }
.desk i::before { content: ""; position: absolute; inset: 14% 14% auto; height: 52%; background: repeating-linear-gradient(180deg, rgba(31, 37, 53, .35) 0 2px, transparent 2px 9px); }
.hall__fade { position: absolute; inset: auto 0 0; height: 22%; z-index: 2; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }
@media (min-width: 900px) {
  .hall__wall { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .hall__side { flex-direction: row; justify-content: flex-end; align-items: flex-start; padding-top: 6px; }
  .hall__side .chalk { max-width: 300px; margin-top: 40px; }
}
@media (max-width: 899px) {
  .hall__side { order: -1; align-items: stretch; }
  .wclock { width: 112px; }
  .chalk { padding: 12px 16px; border-width: 8px; }
  .hall__floor { height: 170px; }
  .hall__wall { padding-top: 32px; padding-bottom: 32px; }
}

/* =================== QUESTION PAPER CARDS =================== */
.ex.qp { display: block; position: relative; padding: 0; text-decoration: none; color: var(--paper-ink); isolation: isolate; }
.qp__stack { position: absolute; inset: 0; z-index: -1; }
.qp__stack::before, .qp__stack::after { content: ""; position: absolute; inset: 0; background: var(--paper-2); border-radius: 3px; box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .7); transition: transform .5s var(--out); }
.qp__stack::before { transform: rotate(-2.4deg) translate(-4px, 6px); }
.qp__stack::after { transform: rotate(1.8deg) translate(5px, 4px); background: #DCD2BC; }
.qp__sheet { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--paper); border-radius: 3px; padding: 18px 18px 16px; box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .75); transition: transform .5s var(--out), box-shadow .5s; background-image: linear-gradient(90deg, transparent 30px, rgba(196, 54, 46, .25) 30px 31px, transparent 31px); }
.ex.qp:hover .qp__sheet, .ex.qp:focus-visible .qp__sheet { transform: translateY(-10px) rotate(-.6deg); box-shadow: 0 30px 50px -22px rgba(0, 0, 0, .85); }
.ex.qp:hover .qp__stack::before { transform: rotate(-4deg) translate(-8px, 8px); }
.ex.qp:hover .qp__stack::after { transform: rotate(3.4deg) translate(9px, 6px); }
.ex.qp:hover h3 { color: var(--paper-ink); }
.qp__head { text-align: center; padding: 2px 0 10px 18px; border-bottom: 1.5px solid var(--paper-ink); }
.qp__org { font-size: .74rem; color: var(--paper-mute); }
.qp__title { font-family: var(--print); font-weight: 700; font-size: 1.1rem; line-height: 1.4; margin-top: 2px; color: var(--paper-ink); font-variation-settings: normal; letter-spacing: 0; }
.qp__meta { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0 0 18px; font-family: var(--print); font-size: .84rem; color: var(--paper-ink); }
.qp__lines { margin: 12px 0 0 18px; flex: 1; min-height: 46px; display: grid; gap: 7px; align-content: start; }
.qp__lines i { display: block; height: 6px; border-radius: 3px; background: rgba(31, 37, 53, .13); }
.qp__lines i:nth-child(2) { width: 82%; } .qp__lines i:nth-child(3) { width: 64%; } .qp__lines i:nth-child(4) { width: 74%; }
.qp__photo { margin: 12px 0 0 18px; aspect-ratio: 16 / 8; overflow: hidden; border: 1px solid rgba(31, 37, 53, .2); position: relative; }
.qp__photo img { width: 100%; height: 100%; object-fit: cover; }
.qp__clip { position: absolute; top: -12px; right: 26px; z-index: 3; width: 16px; height: 46px; border: 2.5px solid #9AA2B1; border-radius: 9px; border-bottom-color: transparent; }
.qp__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 0 18px; padding-top: 10px; border-top: 1px dashed rgba(31, 37, 53, .3); font-size: .85rem; color: var(--paper-mute); padding-right: 64px; min-height: 40px; }
.qp__foot b { color: var(--paper-ink); font-weight: 600; }
.qp__best { color: var(--pen); font-weight: 600; font-family: var(--print); }
.qp__badges { position: absolute; left: 30px; top: -10px; z-index: 3; display: flex; gap: 6px; }
.qp__badges .tag { background: var(--paper-ink); color: #fff; border-color: var(--paper-ink); }
.qp__badges .tag--battle, .qp__badges .tag--live { background: var(--stamp); border-color: var(--stamp); }
/* price as an ink stamp in the corner */
.qp__price { position: absolute; right: 10px; bottom: 12px; z-index: 2; display: grid; place-items: center; align-content: center; width: 68px; height: 68px; border-radius: 50%; border: 2.5px solid var(--stamp); color: var(--stamp); font-family: var(--serif); font-weight: 800; font-variation-settings: "wdth" 80; font-size: 1.1rem; line-height: 1; text-align: center; transform: rotate(-14deg); opacity: .85; mix-blend-mode: multiply; }
.qp__price::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px solid currentColor; }
.qp__price s { display: block; font-size: .68rem; font-weight: 600; opacity: .7; margin-top: 2px; }
.qp__price--free { color: var(--pen); border-color: var(--pen); }
.rail .ex.qp { flex: 0 0 min(300px, 78vw); }
.exams .ex.qp, .rail .ex.qp { margin-top: 12px; }
.rail { padding-top: 14px; padding-bottom: 26px; }

/* =================== EXAM ROOM: question paper + OMR =================== */
.qbox { background: var(--paper); color: var(--paper-ink); border: 0; border-radius: 4px; box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .8); background-image: linear-gradient(90deg, transparent 40px, rgba(196, 54, 46, .25) 40px 41px, transparent 41px); padding-left: 64px; }
.qbox__n { color: var(--paper-mute); }
.qbox__n .btn, .qbox .qnav .btn:not(.btn--neon) { color: var(--paper-ink); border-color: rgba(31, 37, 53, .3); }
.qbox__q { font-family: var(--print); font-weight: 500; color: var(--paper-ink); font-variation-settings: normal; }
.qbox .opt { border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; margin-top: 0; padding: 14px 4px; color: var(--paper-ink); font-family: var(--print); font-size: 1.06rem; }
.qbox .opt:hover { background: rgba(43, 79, 200, .05); border-color: var(--rule); }
.qbox .opt[aria-pressed="true"] { background: transparent; border-color: var(--rule); }
.qbox .opt__k { position: relative; z-index: 0; overflow: hidden; width: 34px; height: 34px; border: 1.6px solid var(--paper-ink); color: var(--paper-ink); font-family: var(--sans); background: transparent; }
.qbox .opt__k::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--pen); transform: scale(0); transition: transform .35s var(--out); }
.qbox .opt[aria-pressed="true"] .opt__k { background: transparent; border-color: var(--pen); color: #fff; }
.qbox .opt[aria-pressed="true"] .opt__k::after { transform: scale(1); }
@media (max-width: 640px) { .qbox { padding: 22px 18px 22px 40px; background-image: linear-gradient(90deg, transparent 24px, rgba(196, 54, 46, .25) 24px 25px, transparent 25px); } }
.palette button { border-radius: 50%; border: 1.5px solid var(--line); }
.palette button.is-done { background: var(--pen); border-color: var(--pen); color: #fff; }
.room__bar { background: color-mix(in srgb, var(--bg) 88%, transparent); }

/* =================== MARKSHEET + STAMP =================== */
.msheet { position: relative; background: var(--paper); color: var(--paper-ink); border-radius: 4px; padding: 26px 24px 22px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85); overflow: hidden; }
.msheet::before { content: ""; position: absolute; inset: 8px; border: 3px double rgba(31, 37, 53, .35); pointer-events: none; }
.msheet__org { text-align: center; font-size: .8rem; color: var(--paper-mute); }
.msheet__t { text-align: center; font-family: var(--print); font-weight: 700; font-size: 1.35rem; margin-top: 2px; font-variation-settings: normal; letter-spacing: 0; color: var(--paper-ink); }
.msheet__exam { text-align: center; font-family: var(--print); font-size: .95rem; margin-top: 4px; padding-bottom: 12px; border-bottom: 1.5px solid var(--paper-ink); }
.msheet__who { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; padding: 10px 0; color: var(--paper-mute); }
.msheet__who b { color: var(--paper-ink); font-weight: 600; }
.mtab { width: 100%; border-collapse: collapse; font-family: var(--print); font-size: .95rem; }
.mtab td { padding: 8px 4px; border-bottom: 1px solid rgba(31, 37, 53, .15); }
.mtab td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.mtab tr.total td { border-top: 1.5px solid var(--paper-ink); border-bottom: 0; padding-top: 12px; vertical-align: bottom; }
.mtab .score { font-family: var(--serif); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--pen); font-variation-settings: "wdth" 80; }
.mtab .score small { font-size: .95rem; color: var(--paper-mute); font-weight: 600; }
.mtab .ok { color: #2E7D4F; } .mtab .bad { color: var(--stamp); }
.msheet__sign { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-top: 20px; font-size: .78rem; color: var(--paper-mute); }
.msheet__sign span { border-top: 1px solid rgba(31, 37, 53, .4); padding-top: 4px; min-width: 100px; text-align: center; }
.msheet__sign .pen { font-family: var(--print); color: var(--pen); font-size: 1.1rem; border: 0; font-style: italic; }
.stamp { position: absolute; right: 20px; top: 150px; z-index: 3; padding: 8px 16px 6px; border: 5px double var(--stamp); border-radius: 10px; color: var(--stamp); font-family: var(--serif); font-weight: 800; font-variation-settings: "wdth" 78; font-size: 2.4rem; line-height: 1; transform: rotate(-16deg); mix-blend-mode: multiply; opacity: .85; pointer-events: none; text-align: center; }
.stamp small { display: block; font-size: .78rem; font-weight: 700; margin-top: 3px; }
.stamp--fail { color: #6E6A62; border-color: #6E6A62; }
.shake { animation: shake .4s cubic-bezier(.36, .07, .19, .97) 1; }
@keyframes shake { 10%, 90% { transform: translate(-1px, 1px) } 20%, 80% { transform: translate(3px, -2px) } 30%, 50%, 70% { transform: translate(-5px, 2px) } 40%, 60% { transform: translate(5px, -1px) } }
.msheet .grading h2 { color: var(--paper-ink); }
.msheet .muted { color: var(--paper-mute); }
.msheet .exp { background: var(--paper-2); color: var(--paper-ink); }

/* =================== MERIT LIST on the notice board =================== */
.notice { position: relative; padding: 34px 16px 18px; border-radius: 8px; background-color: #3B3127; background-image: radial-gradient(rgba(0, 0, 0, .2) 1px, transparent 1.5px), radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.5px); background-size: 7px 7px, 11px 11px; box-shadow: inset 0 0 0 10px #5A4532, inset 0 0 30px rgba(0, 0, 0, .5); margin-top: 26px; }
.notice .board { position: relative; overflow: visible; background: var(--paper); color: var(--paper-ink); border: 0; border-radius: 2px; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .9); transform: rotate(-.3deg); }
.notice .board::before, .notice .board::after { content: ""; position: absolute; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #F07A6C, #C4362E 60%, #7A1E19); box-shadow: 0 3px 4px rgba(0, 0, 0, .5); z-index: 2; }
.notice .board::before { left: 18px; } .notice .board::after { right: 18px; }
.notice .board__row { border-color: rgba(31, 37, 53, .14); }
.notice .board__row:hover { background: rgba(43, 79, 200, .05); }
.notice .board__row.is-me { background: rgba(43, 79, 200, .1); }
.notice .board__head, .notice .board__head:hover { background: transparent; color: var(--paper-mute); border-bottom: 1.5px solid var(--paper-ink); }
.notice .board__rank { color: var(--paper-ink); font-family: var(--print); }
.notice .board__row:nth-child(2) .board__rank, .notice .board__row:nth-child(3) .board__rank, .notice .board__row:nth-child(4) .board__rank { color: var(--stamp); }
.notice .board__who small, .notice .board__num small { color: var(--paper-mute); }
.notice .board__num b { color: var(--pen); font-family: var(--print); }
.notice .avatar { border-color: rgba(31, 37, 53, .3); color: var(--paper-ink); background: var(--paper-2); }
.notice .empty h2, .notice .empty p { color: var(--paper-ink); }
.notice__title { position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(-1.2deg); padding: 5px 20px; background: var(--paper); color: var(--paper-ink); font-family: var(--print); font-weight: 700; font-size: 1rem; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .7); white-space: nowrap; z-index: 3; }

/* wanted-level stars: strength = average % */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars i { width: 14px; height: 14px; display: inline-block; background: rgba(31, 37, 53, .16); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.stars i.on { background: var(--gold); }
.top3__card { background: var(--paper); color: var(--paper-ink); border: 0; border-radius: 3px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .8); }
.top3__card small { color: var(--paper-mute); }
.top3__card--1 { background: var(--paper); }
.top3__card .avatar { color: var(--paper-ink); border-color: rgba(31, 37, 53, .3); background: var(--paper-2); }
.top3__card .stars { margin-top: 8px; }
.top3__card .stars i { width: 18px; height: 18px; }
.top3__pts { color: var(--pen); font-weight: 800; }
.top3__medal { color: #1F2535 !important; }
.top3__card--1 .top3__medal { background: linear-gradient(135deg, #F3D58C, #B8862E) !important; }

/* =================== loading screen: papers being handed out =================== */
.loadscr { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; background: var(--bg); padding: 20px; }
.loadscr__in { width: min(520px, 100%); }
.loadscr__paper { background: var(--paper); color: var(--paper-ink); padding: 22px 24px; border-radius: 3px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); text-align: center; }
.loadscr__paper small { color: var(--paper-mute); font-size: .8rem; }
.loadscr__title { font-family: var(--print); font-weight: 700; font-size: clamp(1.3rem, 4vw, 1.8rem); line-height: 1.3; margin-top: 4px; }
.loadscr__tip { margin-top: 18px; color: var(--ink-2); text-align: center; }
.loadscr__tip b { color: var(--gold-2); }
.loadscr__bar { margin: 16px auto 0; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; max-width: 300px; }
.loadscr__bar i { display: block; height: 100%; width: 0; background: var(--gold); animation: loadbar 1.5s ease-out forwards; }
@keyframes loadbar { to { width: 100%; } }

.stats { display: none; }
.feat__ic { color: var(--gold); }
.verdict--pass { color: var(--gold-2); }
.home-battle .arena h2, .arena h2 { font-variation-settings: "wdth" 78; }

.admin-entry { display: block; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .9rem; text-decoration: none; }
.admin-entry:hover { color: var(--ink); text-decoration: underline; }
.smsteps { margin: 14px 0 6px; padding-left: 1.3rem; display: grid; gap: 4px; }
.smrow { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); }
.smrow b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
