:root {
  font-family: "Manrope", "Noto Sans Malayalam", system-ui, sans-serif;
  color: #14213d;
  background: #edf2f8;
  font-synthesis: none;
  --navy: #5b328c;
  --navy-dark: #3e2168;
  --blue: #00aaa8;
  --gold: #00aaa8;
  --ink: #14213d;
  --muted: #6b7890;
  --line: #dbe3ee;
  --paper: #fff;
  --green: #138a59;
  --green-soft: #e8f7f0;
  --red: #d94242;
  --red-soft: #fff0f0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: radial-gradient(circle at 8% 12%, rgba(0, 170, 168, .12), transparent 28%), #f0f2f8;
}

button, input { font: inherit; }
button { touch-action: manipulation; }
[hidden] { display: none !important; }
.app-shell { min-height: 100vh; }

.login-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(480px, 1.08fr);
}

.brand-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 7vw, 96px);
  color: #fff;
  background: linear-gradient(145deg, #42206f 0%, #5b328c 52%, #008f98 120%);
}

.brand-panel::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  right: -220px;
  bottom: -100px;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .035), 0 0 0 140px rgba(255, 255, 255, .025);
}

.brand-logo-wrap { width: min(100%, 250px); padding: 10px 14px; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(30, 10, 55, .2); }
.brand-logo-wrap img { display: block; width: 100%; height: auto; }

.eyebrow, .step-label {
  margin: 44px 0 12px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .19em;
}

.brand-panel h1 {
  margin: 0;
  max-width: 520px;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: .94;
  letter-spacing: -.07em;
}

.brand-copy {
  max-width: 430px;
  margin: 28px 0 42px;
  color: #d9e5f7;
  font-size: 1.05rem;
  line-height: 1.7;
}

.mini-card {
  position: relative;
  z-index: 1;
  max-width: 420px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
}

.mini-card > span { font-size: .65rem; letter-spacing: .16em; color: #bed0eb; }
.mini-card strong { display: block; margin: 16px 0 20px; font-size: 1.22rem; }
.mini-card div { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mini-card i { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .28); }
.mini-card i:first-child, .mini-card i:nth-child(2) { background: #26d4ce; }

.login-panel { display: grid; place-items: center; padding: 48px; background: #fff; }
.login-form-wrap { width: min(100%, 480px); }
.login-form-wrap .step-label { margin: 0 0 10px; color: var(--blue); }
.login-form-wrap h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.08; letter-spacing: -.05em; }
.muted { margin: 16px 0 32px; color: var(--muted); line-height: 1.6; }
form { display: grid; gap: 10px; }
label { margin-top: 10px; font-size: .84rem; font-weight: 700; }

input {
  width: 100%;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 16px;
  color: var(--ink);
  outline: none;
  transition: .2s;
}

input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(35, 93, 178, .1); }
input[aria-invalid="true"] { border-color: var(--red); }
.phone-field { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.phone-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(35, 93, 178, .1); }
.phone-field span { padding: 0 14px; border-right: 1px solid var(--line); font-weight: 700; color: #4c5d76; }
.phone-field input { border: 0; box-shadow: none; }
.form-message { min-height: 1.25rem; margin: 0; color: var(--red); font-size: .78rem; }

.primary-button {
  min-height: 58px;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  padding: 0 20px;
  background: linear-gradient(110deg, #00aaa8, #168fa6);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 24px rgba(0, 170, 168, .24);
  transition: transform .2s, filter .2s;
}

.primary-button:hover { filter: brightness(.97); transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .72; transform: none; }
.privacy-note { margin-top: 18px; color: #8a95a7; font-size: .76rem; text-align: center; }

.practice-view { min-height: 100vh; }
.topbar { height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 5vw, 72px); background: #fff; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: 12px; }
.wordmark img { width: 106px; height: 34px; object-fit: contain; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.sync-status { color: #7d899c; font-size: .72rem; }
.sync-status.sync-warning { color: #b42318; font-weight: 800; }
.finish-button { border: 1px solid #cad5e4; background: #fff; border-radius: 8px; padding: 10px 16px; color: #5c6980; font-weight: 700; font-size: .8rem; cursor: pointer; }
.finish-button:hover { color: var(--navy); border-color: #9fb1ca; }
.practice-grid { min-height: calc(100vh - 74px); display: grid; grid-template-columns: 300px 1fr; }
.student-rail { padding: 56px 36px; background: linear-gradient(180deg, #5b328c, #42206f); color: #fff; }
.student-rail .step-label { margin: 0; color: #8ee4e1; }
.student-rail h2 { margin: 12px 0 32px; font-size: 2rem; }
.stat-grid { display: grid; gap: 10px; }
.stat-grid div { display: flex; align-items: center; justify-content: space-between; padding: 17px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.stat-grid strong { font-size: 1.55rem; }
.stat-grid span { font-size: .8rem; color: #bed0ea; }
.lifetime-panel { margin-top: 30px; padding: 20px; border-radius: 12px; color: var(--ink); background: #fff; }
.lifetime-panel > span { display: block; color: #77859a; font-size: .62rem; font-weight: 800; letter-spacing: .14em; }
.lifetime-panel strong { display: block; margin: 9px 0 5px; font-size: 1.25rem; }
.lifetime-panel strong b { color: #5b328c; font-size: 1.7rem; }
.lifetime-panel small { color: #8995a7; font-size: .7rem; line-height: 1.4; }
.rail-note { margin-top: 26px; padding: 18px; border-left: 3px solid var(--gold); background: rgba(255, 255, 255, .07); }
.rail-note span { color: var(--gold); font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.rail-note p { margin: 8px 0 0; color: #d8e3f4; font-size: .82rem; line-height: 1.55; }
.card-stage { display: grid; place-items: center; padding: 42px; overflow: hidden; }
.loading-state { display: grid; place-items: center; gap: 8px; color: var(--muted); }
.loading-state strong { margin-top: 10px; color: var(--ink); }
.loading-state span { font-size: .82rem; }
.loader { width: 42px; height: 42px; border: 4px solid #dce5f0; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

.question-card {
  width: min(100%, 780px);
  min-height: 630px;
  padding: 34px clamp(24px, 5vw, 54px) 26px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(28, 54, 94, .12);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, opacity .22s ease;
  touch-action: pan-y;
}
.question-card.card-exit { transform: translateX(-35px) rotate(-1deg); opacity: 0; }
.question-card.card-enter { animation: cardIn .28s ease both; }
@keyframes cardIn { from { transform: translateX(30px); opacity: 0; } }
.card-head { display: flex; justify-content: space-between; align-items: center; }
.subject-chip { display: inline-block; padding: 7px 10px; background: #e5f8f7; color: #007e7c; border-radius: 6px; font-size: .7rem; font-weight: 800; }
.topic-label { margin-left: 12px; color: #718097; font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.timer { --time-color: var(--blue); display: flex; align-items: baseline; justify-content: center; gap: 4px; min-width: 62px; color: var(--time-color); }
.timer.timer-low { --time-color: var(--red); animation: pulse .85s ease infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.timer span { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.timer small { font-size: .6rem; font-weight: 800; }
.progress-track { height: 4px; margin: 22px 0 30px; border-radius: 4px; background: #e8edf4; }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--gold); transition: width .35s ease; }
.question-count { margin: 0; color: #8290a4; font-size: .66rem; font-weight: 800; letter-spacing: .15em; }
.question-card h1 { margin: 14px 0 28px; font-size: clamp(1.45rem, 2.5vw, 2.08rem); line-height: 1.48; letter-spacing: -.035em; white-space: pre-line; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.options button { display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 700; font-size: .94rem; line-height: 1.45; text-align: left; cursor: pointer; transition: border .15s, background .15s, transform .15s; }
.options button:hover:not(:disabled) { border-color: #9fb2ce; background: #f8faff; transform: translateY(-1px); }
.options button > span { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: #eef3f8; color: #58708f; font-size: .8rem; }
.options button:disabled { color: var(--ink); cursor: default; opacity: 1; }
.options button.correct { border-color: var(--green); background: var(--green-soft); color: #0c6841; }
.options button.correct > span { color: #fff; background: var(--green); }
.options button.wrong { border-color: var(--red); background: var(--red-soft); color: #a62222; }
.options button.wrong > span { color: #fff; background: var(--red); }
.options button.dimmed { opacity: .58; }

.explanation { display: grid; grid-template-columns: auto 1fr; gap: 13px; margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--green); border-radius: 8px; background: #f1f8f5; }
.explanation.is-wrong, .explanation.is-skipped { border-left-color: var(--gold); background: #fff8e8; }
.explanation-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: #fff; background: var(--green); font-size: .75rem; font-weight: 800; }
.is-wrong .explanation-icon, .is-skipped .explanation-icon { background: var(--gold); color: #5b4100; }
.explanation strong { display: block; font-size: .82rem; }
.explanation p { margin: 5px 0 0; color: #57657a; font-size: .82rem; line-height: 1.55; }
.question-card footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 24px; }
.question-card footer > span { color: #98a3b2; font-size: .74rem; }
.question-card footer button { border: 0; background: transparent; color: var(--blue); font-weight: 800; font-size: .86rem; cursor: pointer; padding: 10px 0 10px 20px; }
.question-card footer b { margin-left: 8px; }

.results-view { min-height: 100vh; background: radial-gradient(circle at 80% 0, rgba(0, 170, 168, .13), transparent 28%), linear-gradient(180deg, #f1eff7, #f8fafc); }
.results-topbar { justify-content: center; }
.results-shell { width: min(1100px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 80px; }
.result-heading { margin-bottom: 34px; text-align: center; }
.result-heading .step-label { margin: 0 0 10px; color: var(--blue); }
.result-heading h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.055em; }
.result-heading > p:last-child { margin: 14px 0 0; color: var(--muted); }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.score-card, .total-card { min-height: 450px; padding: clamp(26px, 4vw, 48px); border-radius: 20px; background: #fff; box-shadow: 0 18px 50px rgba(28, 54, 94, .09); }
.score-card { text-align: center; }
.score-ring { --score: 0deg; display: grid; place-items: center; width: 190px; height: 190px; margin: 0 auto 24px; border-radius: 50%; background: conic-gradient(var(--blue) var(--score), #e7edf4 0); position: relative; }
.score-ring::after { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: #fff; }
.score-ring div { position: relative; z-index: 1; }
.score-ring strong { display: block; font-size: 2.4rem; letter-spacing: -.05em; }
.score-ring span { color: #8190a3; font-size: .64rem; font-weight: 800; letter-spacing: .13em; }
.score-card h2 { margin: 0 0 22px; font-size: 1.15rem; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.result-stats div { padding: 16px 8px; border-radius: 10px; background: #f5f7fa; }
.result-stats strong { display: block; font-size: 1.6rem; }
.result-stats span { color: #7d899a; font-size: .72rem; }
.result-stats .correct strong { color: var(--green); }
.result-stats .wrong strong { color: var(--red); }
.result-stats .skipped strong { color: #bd7f00; }
.total-card .step-label { margin: 2px 0 24px; color: #77879a; }
.rank-banner { display: flex; align-items: center; justify-content: space-between; margin: -10px -10px 24px; padding: 17px 20px; border-radius: 13px; background: linear-gradient(110deg, #5b328c, #7440a8); color: #fff; }
.rank-banner span { font-size: .67rem; font-weight: 800; letter-spacing: .13em; }
.rank-banner strong { font-size: 1.8rem; }
.total-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); }
.total-row span { color: #627087; }
.total-row strong { font-size: 1.2rem; }
.result-actions { margin-top: 25px; }
.result-actions .primary-button { width: 100%; }
.text-button { border: 0; background: transparent; color: var(--blue); font-weight: 700; font-size: .8rem; cursor: pointer; }
.result-actions .text-button { display: block; margin: 16px auto 0; }

.leaderboard-card { margin-top: 20px; padding: clamp(24px, 4vw, 42px); border-radius: 20px; background: #fff; box-shadow: 0 18px 50px rgba(53, 36, 87, .09); }
.leaderboard-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.leaderboard-head .step-label { margin: 0 0 7px; color: var(--blue); }
.leaderboard-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.leaderboard-head > span { color: var(--muted); font-size: .75rem; }
.leaderboard-list { display: grid; gap: 8px; }
.leaderboard-row, .current-student-row { display: grid; grid-template-columns: 48px 1fr auto auto; align-items: center; gap: 14px; min-height: 58px; padding: 10px 16px; border-radius: 10px; background: #f6f7fa; }
.leaderboard-row.is-me { border: 1px solid rgba(0, 170, 168, .4); background: #ecfafa; }
.leader-rank { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e9e2f3; color: var(--navy); font-weight: 800; font-size: .78rem; }
.leaderboard-row:nth-child(1) .leader-rank { background: #ffe8a3; color: #7a5200; }
.leaderboard-row:nth-child(2) .leader-rank { background: #e5e9ef; color: #485467; }
.leaderboard-row:nth-child(3) .leader-rank { background: #f4d3b8; color: #77421d; }
.leaderboard-row strong, .current-student-row strong { font-size: .9rem; }
.leaderboard-row > span:nth-child(3), .current-student-row > span:nth-child(3) { color: var(--navy); font-size: .78rem; font-weight: 800; }
.leaderboard-row em, .current-student-row em { color: var(--muted); font-size: .7rem; font-style: normal; }
.current-student-row { margin-top: 14px; border: 1px solid var(--blue); background: #eafafa; }
.leaderboard-empty { padding: 26px; border-radius: 10px; color: var(--muted); background: #f7f8fa; text-align: center; }

.finish-dialog { width: min(440px, calc(100% - 32px)); border: 0; border-radius: 18px; padding: 0; box-shadow: 0 30px 90px rgba(12, 31, 60, .3); }
.finish-dialog::backdrop { background: rgba(10, 27, 53, .58); backdrop-filter: blur(3px); }
.finish-dialog form { display: block; padding: 32px; text-align: center; }
.dialog-icon { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 17px; border-radius: 50%; background: #fff0cf; color: var(--gold); font-size: .8rem; }
.finish-dialog h2 { margin: 0; font-size: 1.6rem; }
.finish-dialog p { margin: 12px 0 24px; color: var(--muted); line-height: 1.55; }
.finish-dialog form > div:last-child { display: flex; justify-content: center; gap: 10px; }
.dialog-finish { border: 0; border-radius: 8px; padding: 12px 16px; background: var(--navy); color: #fff; font-weight: 700; cursor: pointer; }
.poster-dialog { width: min(620px, calc(100% - 24px)); max-height: calc(100vh - 24px); border: 0; border-radius: 18px; padding: 0; overflow: auto; background: #fff; box-shadow: 0 30px 90px rgba(22, 10, 52, .4); }
.poster-dialog::backdrop { background: rgba(28, 12, 57, .76); backdrop-filter: blur(5px); }
.poster-dialog > form { display: block; position: absolute; top: 10px; right: 10px; z-index: 2; }
.poster-close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: #1d2744; font-size: 1.6rem; cursor: pointer; box-shadow: 0 5px 20px rgba(12,22,50,.2); }
.poster-dialog > a { display: block; line-height: 0; }
.poster-dialog img { display: block; width: 100%; height: auto; }
.poster-continue { width: calc(100% - 32px); min-height: 50px; margin: 14px 16px 18px; border: 0; border-radius: 10px; background: linear-gradient(110deg, #5b328c, #00aaa8); color: #fff; font-weight: 800; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; transform: translate(-50%, 20px); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 9px; background: #102b55; color: #fff; font-size: .8rem; opacity: 0; pointer-events: none; transition: .25s; box-shadow: 0 10px 30px rgba(15, 39, 76, .25); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 900px) {
  .practice-grid { grid-template-columns: 240px 1fr; }
  .student-rail { padding: 42px 24px; }
  .card-stage { padding: 28px; }
  .question-card { padding-inline: 32px; }
}

@media (max-width: 760px) {
  .login-view { grid-template-columns: 1fr; }
  .brand-panel { min-height: auto; padding: 30px 24px 38px; }
  .brand-panel h1 { font-size: 3.2rem; }
  .brand-copy { margin: 17px 0 0; font-size: .94rem; }
  .mini-card { display: none; }
  .brand-panel .eyebrow { margin-top: 25px; }
  .login-panel { padding: 34px 24px 48px; place-items: start; }
  .practice-grid { display: block; }
  .student-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 16px;
    padding: 18px 16px;
    background: linear-gradient(135deg, #5b328c, #43216d 72%, #266b89);
  }
  .student-rail .step-label { align-self: end; font-size: .64rem; }
  .student-rail h2 { margin: 0; font-size: 1.25rem; text-align: right; }
  .stat-grid { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-grid div { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 9px; background: rgba(255, 255, 255, .07); }
  .stat-grid strong { font-size: 1.2rem; }
  .stat-grid span { font-size: .68rem; }
  .lifetime-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; margin-top: 2px; padding: 13px 15px; }
  .lifetime-panel > span { grid-column: 1; }
  .lifetime-panel strong { grid-column: 2; grid-row: 1 / span 2; margin: 0; white-space: nowrap; }
  .lifetime-panel strong b { font-size: 1.45rem; }
  .lifetime-panel small { grid-column: 1; }
  .rail-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 2px; padding: 9px 12px; }
  .rail-note p { margin: 0; font-size: .72rem; }
  .topbar { height: 64px; padding: 0 15px; }
  .wordmark strong { font-size: .82rem; }
  .wordmark img { width: 86px; height: 28px; }
  .sync-status { display: none; }
  .sync-status.sync-warning { display: block; position: fixed; z-index: 12; top: 64px; left: 0; right: 0; padding: 8px 14px; background: #fff0ed; border-bottom: 1px solid #f4bbb4; text-align: center; }
  .finish-button { padding: 9px 12px; }
  .card-stage { min-height: calc(100vh - 64px); padding: 12px 10px 20px; align-items: stretch; }
  .question-card { min-height: calc(100vh - 96px); padding: 22px 18px 18px; border-radius: 16px; }
  .topic-label { display: block; margin: 8px 0 0; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .question-card h1 { margin-bottom: 22px; font-size: 1.38rem; line-height: 1.48; }
  .options { grid-template-columns: 1fr; gap: 10px; }
  .options button { min-height: 57px; font-size: .9rem; }
  .question-card footer > span { display: none; }
  .question-card footer { justify-content: flex-end; padding: 14px 0 calc(58px + env(safe-area-inset-bottom)); }
  .question-card footer button { min-width: 132px; padding: 12px 18px; border-radius: 9px; color: #fff; background: linear-gradient(110deg, #5b328c, #00aaa8); text-align: center; }
  .explanation { margin-top: 14px; }
  .result-grid { grid-template-columns: 1fr; }
  .results-shell { padding: 40px 0 calc(130px + env(safe-area-inset-bottom)); }
  .score-card, .total-card { min-height: auto; }
  .leaderboard-head { align-items: start; flex-direction: column; gap: 5px; }
  .leaderboard-row, .current-student-row { grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 10px; row-gap: 3px; min-height: 72px; padding: 11px 12px; }
  .leaderboard-row .leader-rank, .current-student-row .leader-rank { grid-column: 1; grid-row: 1 / span 2; }
  .leaderboard-row strong, .current-student-row strong { grid-column: 2; grid-row: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .leaderboard-row > span:nth-child(3), .current-student-row > span:nth-child(3) { grid-column: 3; grid-row: 1; white-space: nowrap; }
  .leaderboard-row em, .current-student-row em { display: block; grid-column: 2 / 4; grid-row: 2; justify-self: start; font-size: .69rem; }
  .poster-dialog { width: min(94vw, 560px); }
}

@media (max-width: 420px) {
  .brand-panel h1 { font-size: 2.75rem; }
  .login-form-wrap h2 { font-size: 2rem; }
  .brand-copy { line-height: 1.55; }
  .question-card h1 { font-size: 1.25rem; }
  .timer span { font-size: 1.7rem; }
  .progress-track { margin: 18px 0 23px; }
  .result-heading h1 { font-size: 2.2rem; }
  .result-stats span { font-size: .65rem; }
  .leaderboard-card { padding: 21px 15px; }
  .leaderboard-head h2 { font-size: 1.55rem; }
  .leaderboard-row > span:nth-child(3), .current-student-row > span:nth-child(3) { font-size: .72rem; }
}

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