:root, [data-theme="light"] {
  --bg: #f5f7fb;
  --elev: #ffffff;
  --card: #ffffff;
  --line: rgba(16, 32, 68, 0.08);
  --text: #0c1733;
  --muted: #667085;
  --accent: #1e3a8a;
  --accent-ink: #f8faff;
  --ok: #0e7a45;
  --bad: #b42318;
  --soft: rgba(30, 58, 138, 0.08);
  --track: rgba(16, 32, 68, 0.08);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 28px rgba(16, 24, 40, 0.04);
  --nav: 86px;
  --radius: 20px;
  --font: "Shurjo", "Noto Sans Bengali", "Roboto", sans-serif;
}

[data-theme="dark"] {
  --bg: #070d1a;
  --elev: #10192d;
  --card: #10192d;
  --line: rgba(198, 214, 255, 0.12);
  --text: #eef3ff;
  --muted: #9aabc4;
  --accent: #9db7ff;
  --accent-ink: #07101f;
  --ok: #8dceab;
  --bad: #f0a398;
  --soft: rgba(157, 183, 255, 0.14);
  --track: rgba(198, 214, 255, 0.12);
  --shadow: none;
}

@font-face {
  font-family: "Shurjo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://assets.prothomalo.com/prothomalo/assets/ShurjoWeb_400_v5_1.woff2") format("woff2");
}
@font-face {
  font-family: "Shurjo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://assets.prothomalo.com/prothomalo/assets/ShurjoWeb_700_v5_1.woff2") format("woff2");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.app {
  width: min(720px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  padding: 18px 20px calc(var(--nav) + 92px);
}

.top {
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 -20px;
  padding: 14px 20px 12px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.brand strong { display: block; font-size: 1.12rem; line-height: 1.25; font-weight: 700; }
.brand span, .muted, .meta { color: var(--muted); }
.brand span { display: block; margin-top: 2px; font-size: 0.82rem; line-height: 1.4; }
.mark, .back, .icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  flex: none;
}
.mark { background: var(--accent); color: var(--accent-ink); font-weight: 700; border-color: transparent; box-shadow: none; }
.back, .icon { padding: 0; color: var(--text); }
.back svg, .icon svg { width: 18px; height: 18px; display: block; }
.icon { margin-left: auto; }

.stack { display: grid; gap: 14px; }
.card, .hero, .row-card, .q-card, .list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card, .hero, .q-card { padding: 22px; }
.hero h2, .card h2, .q-card h2 { margin: 0 0 8px; font-size: 1.45rem; line-height: 1.3; font-weight: 700; }
.card > strong { display: block; font-size: 1.05rem; line-height: 1.45; }
.section-title {
  margin: 10px 4px 0;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--muted);
}
.row-card, .subject-row, .leaf-row, .list-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
}
.list { overflow: hidden; }
.list .subject-row, .list .leaf-row, .list .list-row {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  border-top: 1px solid var(--line);
}
.list > :first-child { border-top: 0; }
.subject-row strong, .leaf-row strong, .list-row strong { display: block; line-height: 1.45; }
.copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.copy strong { font-weight: 700; }
.copy p, .meta, .muted { margin: 0; font-size: 0.92rem; line-height: 1.55; }
.stat {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent);
  flex: none;
}
.stat:empty { display: none; }
.chev {
  width: 8px;
  height: 8px;
  border-right: 1.8px solid var(--muted);
  border-top: 1.8px solid var(--muted);
  transform: rotate(45deg);
  flex: none;
  margin-right: 4px;
}
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px 14px;
  display: grid;
  gap: 2px;
  align-content: start;
}
.tile b { font-size: 1.55rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tile span { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }

.bar, .track {
  height: 6px;
  border-radius: 99px;
  background: var(--track);
  overflow: hidden;
  display: flex;
  margin-top: 8px;
}
.bar { flex: 1; margin-top: 0; }
.ok { background: var(--ok); height: 100%; }
.bad { background: var(--bad); height: 100%; }
.track > span { display: block; height: 100%; background: var(--accent); }
.track > span.ok { background: var(--ok); }
.track > span.bad { background: var(--bad); }

.actions, .confirm-actions, .dock { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions, .dock { margin-top: 16px; }
.card .chips { margin-top: 14px; }
button, a.chip { scroll-margin-bottom: calc(var(--nav) + 20px); }
button.primary, button.ghost, .chip, .option, .mini {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--elev);
  padding: 0 14px;
  min-height: 40px;
  line-height: 1.3;
}
button.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
  font-weight: 700;
  padding: 0 18px;
}
button.ghost { background: transparent; }
button:disabled:not(.option) { opacity: 0.45; cursor: default; }
.option:disabled { cursor: default; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; }
.chip.on, .mini.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-size: 0.78rem;
  line-height: 1.6;
  vertical-align: 1px;
}

.q-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.stem { font-size: 1.22rem; line-height: 1.75; }
.stem p, .explain p { margin: 0 0 0.7em; }
.stem p:last-child, .explain p:last-child { margin-bottom: 0; }
.stem img, .explain img { max-width: 100%; height: auto; border-radius: 14px; margin: 14px 0; display: block; }
.options { display: grid; gap: 10px; margin-top: 20px; }
.option {
  width: 100%;
  text-align: left;
  border-radius: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  line-height: 1.6;
  padding: 10px 12px;
  min-height: 52px;
}
.option .letter {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 700;
}
.option.picked { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.option.correct { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--card)); box-shadow: none; }
.option.correct .letter { background: var(--ok); color: #f7fffb; }
.option.wrong { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, var(--card)); box-shadow: none; }
.option.wrong .letter { background: var(--bad); color: #fff8f7; }
.explain {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  line-height: 1.8;
}
.palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 148px;
  overflow: auto;
  margin-top: 4px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.mini {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.mini.filled { box-shadow: inset 0 0 0 1.5px var(--accent); }
.mini.correct { background: var(--ok); color: #f7fffb; border-color: transparent; }
.mini.wrong { background: var(--bad); color: #fff8f7; border-color: transparent; }
.dock {
  position: sticky;
  bottom: calc(var(--nav) + 8px);
  padding: 10px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}
.timer { font-variant-numeric: tabular-nums; font-weight: 700; }

.nav {
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(688px, calc(100% - 16px));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 68px;
  padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--elev) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  backdrop-filter: blur(16px);
  z-index: 6;
}
.nav a {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  font-size: 0.68rem;
  line-height: 1.15;
  color: var(--muted);
  border-radius: 14px;
  margin: 6px 2px;
  min-height: 52px;
}
.nav .ico { width: 22px; height: 22px; }
.nav a.on { color: var(--accent); font-weight: 700; background: var(--soft); }
.group-label { margin: 8px 4px 0; color: var(--muted); font-size: 0.86rem; font-weight: 700; }
.empty { color: var(--muted); padding: 8px 4px; }
.gate {
  min-height: 70vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 12px;
  max-width: 420px;
}
.gate h1 { margin: 0; font-size: 2rem; }
.gate input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav) + 18px);
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 8;
  max-width: min(90vw, 420px);
  line-height: 1.45;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: var(--text);
  padding: 22px;
  width: min(420px, calc(100% - 32px));
  box-shadow: var(--shadow);
}
dialog p { margin: 0 0 16px; line-height: 1.6; }
dialog::backdrop { background: rgba(7, 14, 28, 0.46); }
.bands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bands div { background: var(--bg); border-radius: 14px; padding: 14px 12px; }
.bands b { display: block; font-size: 1.35rem; line-height: 1.2; }
.miss { padding: 14px 0; border-top: 1px solid var(--line); }
.miss:first-child { border-top: 0; padding-top: 0; }
.miss summary { cursor: pointer; line-height: 1.5; }
.path { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin: 0 0 14px; }
.path a { color: var(--muted); }
.path a:hover { color: var(--text); }
.sep { margin: 0 8px; color: color-mix(in srgb, var(--muted) 70%, transparent); }
.q-card .meta { margin-bottom: 14px; }

.exam-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.exam-hero .ico { width: 28px; height: 28px; color: var(--accent); flex: none; }
.exam-hero h2 { margin-bottom: 4px; }
.tile .ico { width: 20px; height: 20px; color: var(--accent); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; line-height: 1.5; margin-bottom: 8px; }
.crumbs button {
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 6px 0;
  min-height: 44px;
  font-weight: 700;
}
.hier {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  min-height: 64px;
}
.list > .hier:first-child { border-top: 0; }
.hier .ico { width: 22px; height: 22px; color: var(--accent); flex: none; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 14px; }
.stepper b { font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; min-width: 7rem; text-align: center; }
.stepper button, .presets button {
  min-width: 48px;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-weight: 700;
}
.presets { display: flex; gap: 8px; flex-wrap: wrap; }
.presets button { flex: 1; padding: 0 10px; }
.presets button.on, .stepper button:active { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.wide { width: 100%; margin-top: 12px; min-height: 48px; }
.fine { margin-top: 12px; font-size: 0.86rem; }
.make {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 5;
  width: min(688px, calc(100% - 16px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 16px;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.make b { display: block; font-size: 1.05rem; line-height: 1.2; }
.make span { color: var(--muted); font-size: 0.86rem; }
.make .primary { flex: 1; min-height: 48px; }
@media (max-width: 420px) {
  .app { padding-left: 14px; padding-right: 14px; }
  .top { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  .card, .hero, .q-card { padding: 18px 16px; }
  .tiles { gap: 8px; }
  .tile { padding: 14px 10px; }
  .tile b { font-size: 1.35rem; }
}
.app.public {
  width: min(1080px, 100%);
  padding-bottom: 36px;
}
.app.public .icon { margin-left: 0; }
.end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.land-enter {
  font-weight: 700;
  color: var(--accent);
  padding: 8px 4px;
}
.land { display: grid; gap: 28px; }
.land-hero {
  display: grid;
  gap: 8px;
  align-items: center;
  padding-top: 8px;
}
.land-copy h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.15rem, 8vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.lead { margin: 0; max-width: 38rem; font-size: 1.12rem; color: var(--muted); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
}
.eyebrow .ico { width: 16px; height: 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.pills li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
}
.land-stage { min-width: 0; }
.art-notes { justify-content: center; margin-top: 0; }
.desk-art { width: min(280px, 86%); margin: 0 auto; }
.desk-art, .bank-art { width: 100%; height: auto; display: block; overflow: visible; }
.desk-art .blob, .bank-art .blob { fill: var(--accent); opacity: 0.12; }
.desk-art .blob.soft { opacity: 0.07; }
.desk-art .phone > rect:first-child,
.desk-art .float rect,
.desk-art .panel,
.bank-art .d-stack rect,
.bank-art .seat rect {
  fill: var(--card);
  stroke: var(--line);
  stroke-width: 1.5;
}
.desk-art .notch, .desk-art .d-track { fill: var(--track); stroke: none; }
.desk-art .d-fill { fill: var(--accent); stroke: none; }
.desk-art .d-badge, .bank-art .seat circle, .bank-art .d-top { fill: var(--accent); stroke: none; }
.desk-art text, .bank-art text {
  font-family: var(--font);
  fill: var(--text);
  font-size: 13px;
}
.desk-art .title, .desk-art .strong, .bank-art .strong { font-weight: 700; font-size: 15px; }
.desk-art .dim, .bank-art .dim { fill: var(--muted); font-size: 12px; }
.desk-art .mark-letter, .bank-art .seat text:first-of-type { fill: var(--accent-ink); font-weight: 700; font-size: 14px; }
.desk-art .float.left text, .desk-art .float.right text { font-size: 13px; font-weight: 700; }
.desk-art .float.left .dim, .desk-art .float.right .dim { font-weight: 400; }
.desk-art .float.left { color: var(--ok); }
.desk-art .float.left circle { fill: var(--ok); }
.desk-art .float.left path { stroke: #fff; }
.desk-art .float { filter: drop-shadow(0 10px 18px rgba(16, 24, 40, 0.08)); }
.desk-art .float.left { transform: translate(6px, 168px); }
.desk-art .float.right { transform: translate(228px, 300px); color: var(--accent); }
.land-block h2, .bank h2, .land-close h2 {
  margin: 6px 0 0;
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.steps li, .feats article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.bank {
  display: grid;
  gap: 4px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 8px 16px 18px;
}
.steps span, .feat-ico {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--accent);
  font-weight: 700;
}
.feat-ico .ico { width: 22px; height: 22px; }
.steps h3, .feats h3 { margin: 0 0 4px; font-size: 1.08rem; }
.steps p, .feats p, .bank p { margin: 0; color: var(--muted); }
.feats { display: grid; gap: 12px; margin-top: 18px; }
.bank { margin: 0; align-items: center; }
.bank-art { max-width: 420px; }
.land-close {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 28px;
  padding: 28px 22px 24px;
}
.land-close p { margin: 8px 0 0; max-width: 36rem; opacity: 0.88; }
.land-close a.primary { background: var(--accent-ink); color: var(--accent); }
.land-close .ghost-link { color: var(--accent-ink); font-weight: 700; padding: 10px 4px; }
.land-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
  padding: 4px 2px 12px;
}
@media (min-width: 840px) {
  .land-hero { grid-template-columns: 1.05fr 0.95fr; gap: 12px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr 1fr; }
  .bank { grid-template-columns: 0.9fr 1.1fr; padding: 22px; }
}
.gate label { display: grid; gap: 6px; width: 100%; }
a.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
button.out { min-height: 36px; padding: 0 12px; }
.feature h2 { margin: 0 0 6px; font-size: 1.2rem; }
.feature p { margin: 0; }
.hero h2 { margin: 0 0 8px; font-size: 1.8rem; line-height: 1.25; }
.hero p { margin: 0; }
