/* ═══ examsite.uz — neumorfik dizayn tizimi ═══════════════════════════════
   Bitta yumshoq sirt: elementlar fondan "ko'tarilgan" (chiqib turgan) yoki
   "bosilgan" (ichiga botgan) ko'rinadi. Ko'tarilgan = karta, tugma, belgi;
   botgan = kiritish maydoni, tanlangan variant, progress izi, faol tab.
   Holat faqat soyaga emas, rang va belgiga ham tayanadi (kontrast uchun). */

:root {
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: var(--sans);
  --radius: 1.375rem;
  /* Sahifa kengligi (standart konteynerlar: 1140px, katta ekranda 1320px); sahifaga qarab body klassida o'zgaradi */
  --page-w: 71.25rem;
  /* Matn shkalasi (16px asosda): 12 · 13 · 14 · 16 · 18 · 20 · 24 · 30 · 36 · 48 · 60 · 72. 12px dan kichik matn yo'q. */
  /* Boshqaruv elementlari balandligi: sichqoncha — 32/40/48px, sensorli ekran — 36/44/52px (Apple HIG / WCAG maqsad o'lchami) */
  --h-sm: 2rem; --h-md: 2.5rem; --h-lg: 3rem;
  --radius-sm: 0.875rem;
  /* Xavfsiz hududlar: qurilma o'yig'i (env) va Telegram to'liq ekran rejimidagi o'z elementlari
     (holat satri, "Close" va "⋮" tugmalari) — Telegram ularni --tg-* o'zgaruvchilari orqali beradi. */
  --safe-top: calc(max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px)) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --safe-left: max(env(safe-area-inset-left, 0px), var(--tg-safe-area-inset-left, 0px), var(--tg-content-safe-area-inset-left, 0px));
  --safe-right: max(env(safe-area-inset-right, 0px), var(--tg-safe-area-inset-right, 0px), var(--tg-content-safe-area-inset-right, 0px));

  --sh-out: 0.5625rem 0.5625rem 1.25rem var(--sd), -0.5625rem -0.5625rem 1.25rem var(--sl);
  --sh-out-sm: 0.3125rem 0.3125rem 0.6875rem var(--sd), -0.3125rem -0.3125rem 0.6875rem var(--sl);
  --sh-in: inset 0.375rem 0.375rem 0.75rem var(--sd), inset -0.375rem -0.375rem 0.75rem var(--sl);
  --sh-in-sm: inset 0.1875rem 0.1875rem 0.4375rem var(--sd), inset -0.1875rem -0.1875rem 0.4375rem var(--sl);
}

@media (pointer: coarse) { :root { --h-sm: 2.25rem; --h-md: 2.75rem; --h-lg: 3.25rem; } }
@media (min-width: 1400px) { :root { --page-w: 82.5rem; } }

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #e4e9f2;
  --face: linear-gradient(145deg, #eaeff8, #dfe5f0);
  --bg-2: #dbe1ed;
  --surface: #e4e9f2;
  --surface-2: #d9dfeb;
  --sd: rgba(150, 164, 192, 0.62);
  --sl: rgba(255, 255, 255, 0.95);
  --ink: #232b4a;
  --ink-2: #394263;
  --muted: #59627f;
  --line: rgba(120, 134, 168, 0.28);
  --accent: #3b56e6;
  --accent-2: #6a7dff;
  --accent-ink: #ffffff;
  --accent-soft: rgba(59, 86, 230, 0.12);
  --blue: #2563eb;
  --blue-soft: rgba(37, 99, 235, 0.14);
  --hot: #c2305a;
  --hot-soft: rgba(194, 48, 90, 0.12);
  --good: #1f7a4d;
  --good-soft: rgba(31, 122, 77, 0.14);
  --warn: #946200;
  --warn-soft: rgba(148, 98, 0, 0.14);
  --bad: #b3302a;
  --bad-soft: rgba(179, 48, 42, 0.13);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #20243a;
  --face: linear-gradient(145deg, #252a42, #1c2034);
  --bg-2: #1b1f33;
  --surface: #20243a;
  --surface-2: #1a1e31;
  --sd: rgba(8, 10, 22, 0.72);
  --sl: rgba(255, 255, 255, 0.055);
  --ink: #e8ebf8;
  --ink-2: #c6cbe3;
  --muted: #98a0c2;
  --line: rgba(160, 172, 220, 0.16);
  --accent: #8a9bff;
  --accent-2: #a7b4ff;
  --accent-ink: #11152e;
  --accent-soft: rgba(138, 155, 255, 0.16);
  --blue: #6ea8ff;
  --blue-soft: rgba(110, 168, 255, 0.18);
  --hot: #ff7b9c;
  --hot-soft: rgba(255, 123, 156, 0.15);
  --good: #5fd39a;
  --good-soft: rgba(95, 211, 154, 0.15);
  --warn: #f0be59;
  --warn-soft: rgba(240, 190, 89, 0.15);
  --bad: #ff8a80;
  --bad-soft: rgba(255, 138, 128, 0.15);
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  /* Standart: 16px (brauzerning o'z o'lchami), ekran kengligiga qarab o'zgarmaydi. Barcha o'lchamlar rem da,
     shuning uchun foydalanuvchining brauzer sozlamasi va Ctrl +/- masshtabi to'g'ri ishlaydi. */
  font-size: 100%;
}
body {
  margin: 0; min-height: 100vh;
  font-family: var(--sans); font-size: 1rem; line-height: 1.5;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  font-variant-numeric: lining-nums;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); line-height: 1.15; }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.25; }
h3 { font-size: 1.125rem; line-height: 1.25; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.icon { flex: none; vertical-align: middle; width: calc(var(--s, 20) * 0.0625rem); height: calc(var(--s, 20) * 0.0625rem); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 0.1875rem; border-radius: 0.75rem; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }
.justify-center { justify-content: center; }

/* ═══ Sirtlar ═════════════════════════════════════════════════════════════ */
.pattern, .pattern-band { position: relative; }
.glass, .card-surface, .glass-strong, .frost {
  background: var(--face); border: 0; box-shadow: var(--sh-out);
}
.card { border-radius: var(--radius); padding: 1.5rem; }

.container {
  width: min(var(--page-w), 100%); margin: 0 auto;
  padding: 1.875rem max(1.25rem, var(--safe-right)) calc(3.75rem + var(--safe-bottom)) max(1.25rem, var(--safe-left));
  display: flex; flex-direction: column; gap: 2rem;
}

/* ═══ Yuqori panel ════════════════════════════════════════════════════════ */
.topbar { position: sticky; top: 0; z-index: 30; padding: var(--safe-top) 0 0; background: var(--bg); box-shadow: 0 0.5rem 1.125rem -0.625rem var(--sd); }
.topbar-inner {
  width: min(var(--page-w), 100%); margin: 0 auto; padding: 0.75rem max(1.25rem, var(--safe-right)) 0.75rem max(1.25rem, var(--safe-left));
  display: flex; align-items: center; gap: 1.125rem;
  background: none; border: 0; box-shadow: none; border-radius: 0;
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand-mark { display: inline-grid; place-items: center; width: var(--h-md); height: var(--h-md); border-radius: 0.75rem; background: var(--face); box-shadow: var(--sh-out-sm); color: var(--accent); }
.brand-name em { font-style: normal; font-weight: 800; color: var(--accent); }
.topnav { display: flex; gap: 0.625rem; margin-left: 0.5rem; margin-right: auto; }
.nav-link { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 0.75rem; font-weight: 700; font-size: 0.875rem; color: var(--muted); transition: color .2s, box-shadow .2s; }
.nav-link:hover { color: var(--ink); box-shadow: var(--sh-out-sm); }
.nav-link.is-active { color: var(--accent); box-shadow: var(--sh-in-sm); }
.topbar-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.topnav + .topbar-actions { margin-left: 0; }
.inline-form { margin: 0; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  min-width: var(--h-md); height: var(--h-md); padding: 0 0.75rem; border: 0; border-radius: 0.75rem;
  background: var(--face); box-shadow: var(--sh-out-sm); list-style: none; color: var(--ink-2);
  transition: box-shadow .15s, color .15s;
}
.icon-btn:hover { color: var(--accent); }
.icon-btn:active, .menu[open] > .icon-btn { box-shadow: var(--sh-in-sm); }
.lang-code { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; }
summary::-webkit-details-marker { display: none; }
.menu { position: relative; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 0.875rem); min-width: 11.25rem; padding: 0.625rem; border-radius: 1.125rem; display: flex; flex-direction: column; gap: 0.25rem; z-index: 40; }
.menu-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.875rem; border-radius: 0.625rem; font-size: 0.875rem; font-weight: 600; }
.menu-item:hover { color: var(--accent); }
.menu-item.is-active { font-weight: 800; color: var(--accent); box-shadow: var(--sh-in-sm); }
.menu-item-btn { width: 100%; border: 0; background: none; color: inherit; font-family: inherit; text-align: left; cursor: pointer; }
.user-menu .menu-panel { min-width: 13.5rem; }
.menu-user { padding: 0.375rem 0.875rem 0.625rem; margin-bottom: 0.25rem; border-bottom: 1px solid var(--line); font-size: 0.875rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root[data-theme="dark"] .when-light, :root[data-theme="light"] .when-dark { display: none; }

/* ═══ Tugmalar ════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: var(--h-md); padding: 0 1.25rem; border-radius: 0.75rem; border: 0;
  background: var(--face); color: var(--ink); font-weight: 800; font-size: 1rem;
  box-shadow: var(--sh-out-sm);
  transition: box-shadow .15s ease, transform .15s ease, color .15s;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.btn:hover { box-shadow: var(--sh-out); color: var(--accent); }
.btn:active { box-shadow: var(--sh-in-sm); transform: scale(0.985); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: var(--sh-out-sm); transform: none; color: var(--muted); }
.btn-primary { background: linear-gradient(145deg, var(--accent-2), var(--accent)); color: var(--accent-ink); }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.06); }
.btn-primary:active { box-shadow: inset 0.1875rem 0.1875rem 0.5rem rgba(0, 0, 0, 0.28), inset -0.125rem -0.125rem 0.375rem rgba(255, 255, 255, 0.12); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 0.0625rem var(--line); color: var(--ink-2); }
.btn-ghost:hover { box-shadow: var(--sh-out-sm); }
.btn-ghost:active { box-shadow: var(--sh-in-sm); }
.btn-danger { color: var(--bad); }
.btn-danger:hover { color: var(--bad); }
.btn-finish { background: linear-gradient(145deg, #ff8aa8, var(--hot)); color: #fff; }
:root[data-theme="dark"] .btn-finish { background: linear-gradient(145deg, #ff9db6, #e8587f); color: #2a0a16; }
.btn-finish:hover { color: #fff; filter: brightness(1.05); }
:root[data-theme="dark"] .btn-finish:hover { color: #2a0a16; }
.btn-lg { height: var(--h-lg); padding: 0 1.75rem; font-size: 1rem; border-radius: 0.875rem; }
.btn-sm { height: var(--h-sm); padding: 0 0.875rem; font-size: 0.875rem; border-radius: 0.625rem; }

/* ═══ Belgilar ════════════════════════════════════════════════════════════ */
.pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.875rem; border-radius: 62.4375rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); box-shadow: var(--sh-in-sm); }
.badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.6875rem; border-radius: 62.4375rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.badge-info { background: var(--accent-soft); color: var(--accent); }
.badge-owner { background: var(--hot-soft); color: var(--hot); }
.chip { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2rem; padding: 0 0.875rem; border-radius: 62.4375rem; font-size: 0.8125rem; font-weight: 700; background: var(--face); box-shadow: var(--sh-out-sm); }
.chip-good { color: var(--good); }
.chip-bad { color: var(--bad); }
.chip-filter { cursor: pointer; border: 0; color: var(--muted); }
.chip-filter.is-active { color: var(--accent); box-shadow: var(--sh-in-sm); background: transparent; }
.score-chip { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.6875rem; border-radius: 62.4375rem; font-size: 0.8125rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.score-chip.good { background: var(--good-soft); color: var(--good); }
.score-chip.mid { background: var(--warn-soft); color: var(--warn); }
.score-chip.low { background: var(--bad-soft); color: var(--bad); }
.score-chip.neutral { background: transparent; color: var(--muted); font-weight: 600; box-shadow: var(--sh-in-sm); }
.feature-icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 0.875rem; color: var(--accent); background: var(--face); box-shadow: var(--sh-out-sm); }
.feature-icon.warn { color: var(--hot); }
.back-link { display: inline-flex; align-items: center; gap: 0.375rem; color: var(--muted); font-weight: 700; font-size: 0.875rem; width: fit-content; }
.back-link:hover { color: var(--accent); }
.section-title { margin-bottom: 1rem; display: flex; align-items: center; gap: 0.625rem; }
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.section-row .section-title { margin: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 0.375rem; }
.page-head p { margin-top: 0.5rem; max-width: 60ch; }
.eyebrow { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

/* ═══ Landing ═════════════════════════════════════════════════════════════ */
.page-landing .container { gap: 0; padding-top: 0.75rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center; padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.25rem, 6vw, 4.5rem); }
.hero-copy { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
.hero-title { font-size: clamp(2.25rem, 5vw, 3rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 15ch; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub { max-width: 52ch; color: var(--ink-2); font-size: clamp(1rem, 1.6vw, 1.125rem); }
.hero-cta { display: flex; gap: 1.125rem; flex-wrap: wrap; }
.autologin-status { color: var(--muted); font-size: 0.875rem; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

.hero-art { position: relative; min-height: 25rem; display: grid; place-items: center; }
.sheet { position: absolute; background: var(--face); border-radius: 1.625rem; padding: 1.375rem 1.375rem 1.625rem; box-shadow: var(--sh-out); }
.sheet-docx { width: 60%; left: 0; top: 4%; }
.sheet-quiz { width: 66%; right: 0; bottom: 4%; }
.sheet-tag { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; padding: 0.3125rem 0.75rem; border-radius: 62.4375rem; color: var(--muted); box-shadow: var(--sh-in-sm); margin-bottom: 1rem; }
.sheet-quiz .sheet-tag { color: var(--accent); }
.sheet-line { height: 0.625rem; border-radius: 0.375rem; box-shadow: var(--sh-in-sm); margin: 0.75rem 0; }
.sheet-line.w90 { width: 90%; } .sheet-line.w70 { width: 70%; } .sheet-line.w50 { width: 50%; } .sheet-line.w80 { width: 80%; }
.sheet-line.hit { background: linear-gradient(90deg, var(--accent-2), var(--accent)); box-shadow: none; }
.sheet-q { font-weight: 800; font-size: 1.125rem; margin-bottom: 0.75rem; }
.sheet-opt { display: flex; align-items: center; gap: 0.75rem; padding: 0.4375rem 0; font-size: 0.875rem; }
.bubble { display: inline-grid; place-items: center; width: 1.875rem; height: 1.875rem; border-radius: 50%; box-shadow: var(--sh-in-sm); font-size: 0.75rem; font-weight: 800; flex: none; color: var(--muted); }
.bubble.fill { background: linear-gradient(145deg, var(--accent-2), var(--accent)); color: var(--accent-ink); box-shadow: var(--sh-out-sm); }
.sheet-arrow { position: absolute; left: 22%; top: 58%; z-index: 2; color: var(--accent); background: var(--face); border-radius: 50%; width: 3.625rem; height: 3.625rem; display: grid; place-items: center; box-shadow: var(--sh-out-sm); transform: rotate(35deg); }

.how { padding: clamp(2rem, 5vw, 4rem) 0; }
.how-title { margin-bottom: 1.875rem; font-size: clamp(1.5rem, 2.6vw, 1.875rem); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.step { display: flex; flex-direction: column; gap: 0.625rem; padding: 1.75rem; border-radius: var(--radius); background: var(--face); box-shadow: var(--sh-out); }
.step p { color: var(--ink-2); font-size: 1rem; }
.step-num { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; font-weight: 800; font-size: 1.25rem; color: var(--accent); box-shadow: var(--sh-in-sm); margin-bottom: 0.375rem; }
.features-wrap { padding: clamp(1.75rem, 5vw, 3.5rem) 0; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.feature { display: flex; flex-direction: column; gap: 0.75rem; padding: 0.25rem 0.5rem; }
.feature p { color: var(--ink-2); font-size: 1rem; }
.cta-band { margin: clamp(1.5rem, 4vw, 3rem) 0; padding: clamp(2.25rem, 6vw, 3.75rem) 1.5rem; text-align: center; border-radius: 2rem; box-shadow: var(--sh-in); }
.cta-band .hero-cta { justify-content: center; margin-top: 1.5rem; }
.footer { text-align: center; color: var(--muted); font-size: 0.875rem; padding: 1.625rem 0 0.5rem; }
.center-card { width: min(33.75rem, 100%); margin: 6vh auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 2.5rem 1.875rem; border-radius: 1.875rem; }
.error-code { font-weight: 800; font-size: 4.5rem; line-height: 1; letter-spacing: -0.05em; color: var(--accent); }

/* ═══ Bosh sahifa ═════════════════════════════════════════════════════════ */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.375rem; background: none; border: 0; box-shadow: none; }
.stat { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--face); box-shadow: var(--sh-out); border: 0; }
.stat-icon { display: none; }
.stat-value { font-size: clamp(1.5rem, 2.6vw, 1.875rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--accent); }
.stat-label { color: var(--muted); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.tabs { display: flex; gap: 0.375rem; padding: 0.375rem; border-radius: 1rem; width: fit-content; max-width: 100%; box-shadow: var(--sh-in); background: none; overflow-x: auto; scrollbar-width: none; border: 0; }
.tab { display: inline-flex; align-items: center; gap: 0.5rem; border: 0; background: transparent; height: var(--h-md); padding: 0 1.125rem; border-radius: 0.75rem; font-weight: 800; font-size: 0.875rem; color: var(--muted); white-space: nowrap; transition: color .15s, box-shadow .15s; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--accent); background: var(--face); box-shadow: var(--sh-out-sm); }
.tab-count { font-size: 0.75rem; padding: 0.0625rem 0.5625rem; border-radius: 62.4375rem; background: var(--accent-soft); font-variant-numeric: tabular-nums; }
.tab-alert { background: var(--hot); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18.75rem, 1fr)); gap: 1.75rem; }
.quiz-card, .group-card { display: flex; flex-direction: column; gap: 0.875rem; position: relative; transition: box-shadow .2s, transform .2s; }
.quiz-card:hover, .group-card:hover { transform: translateY(-0.1875rem); }
.quiz-card-top { display: flex; align-items: center; justify-content: space-between; min-height: 1.75rem; }
.quiz-icon { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; color: var(--accent); box-shadow: var(--sh-in-sm); }
.quiz-icon.lg { width: 3.5rem; height: 3.5rem; border-radius: 1rem; }
.group-card .quiz-icon { color: var(--hot); }
.quiz-title { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 1.25rem; }
.quiz-meta { display: flex; flex-wrap: wrap; gap: 0.375rem 1rem; color: var(--muted); font-size: 0.875rem; }
.quiz-meta span { display: inline-flex; align-items: center; gap: 0.375rem; }
.quiz-card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.875rem; border-top: 1px solid var(--line); }
.go { display: inline-flex; align-items: center; gap: 0.375rem; font-weight: 800; color: var(--accent); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; padding: 3rem 1.25rem; box-shadow: var(--sh-in); background: none; border-radius: 1.75rem; }
.list { display: flex; flex-direction: column; gap: 1.125rem; }
.list-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.375rem; border-radius: 1.25rem; transition: box-shadow .2s, transform .2s; }
a.list-row:hover { transform: translateY(-0.125rem); }
.list-main { flex: 1; min-width: 0; }
.list-title { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-ring-sm { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; font-weight: 800; font-size: 0.875rem; box-shadow: var(--sh-in-sm); flex: none; font-variant-numeric: tabular-nums; }
.score-ring-sm.good { color: var(--good); } .score-ring-sm.mid { color: var(--warn); } .score-ring-sm.low { color: var(--bad); }
.panel-intro { margin: 0 0 1.125rem; max-width: 60ch; }

/* ═══ Savol va javoblar jadvali ═══════════════════════════════════════════ */
.table-note { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-size: 0.875rem; }
.qtable-wrap { padding: 0; overflow: clip; }
.qtable { width: 100%; border-collapse: collapse; }
.qtable th { position: sticky; top: calc(var(--safe-top) + 4rem); z-index: 2; padding: 0.875rem 1.125rem; text-align: left; white-space: nowrap; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--line); }
.qtable td { padding: 1rem 1.125rem; vertical-align: top; border-bottom: 1px solid var(--line); }
.qtable tbody tr:last-child td { border-bottom: 0; }
.qtable .col-num { width: 3.5rem; text-align: center; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.qtable .col-q { width: 32%; font-weight: 700; }
.qtable .col-key { width: 10rem; text-align: center; }
.qtext, .opt-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.opts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(max(13rem, 40%), 1fr)); gap: 0.5rem 0.75rem; }
.opt { display: flex; align-items: flex-start; gap: 0.625rem; padding: 0.5rem 0.75rem; border-radius: 0.875rem; font-size: 0.875rem; font-weight: 600; box-shadow: var(--sh-in-sm); }
.opt-key { flex: none; display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 0.5rem; background: var(--face); box-shadow: var(--sh-out-sm); font-size: 0.75rem; font-weight: 800; color: var(--muted); }
.opt-text { flex: 1; min-width: 0; padding-top: 0.125rem; }
.opt-mark { display: none; flex: none; align-items: center; padding-top: 0.125rem; color: var(--good); }
.qtable:not(.hide-answers) .opt.is-correct { background: var(--good-soft); color: var(--good); font-weight: 800; }
.qtable:not(.hide-answers) .opt.is-correct .opt-key { background: var(--good); color: #fff; box-shadow: none; }
.qtable:not(.hide-answers) .opt-mark { display: inline-flex; }
.key-badge { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 0.5rem; margin: 0.125rem; border-radius: 0.625rem; background: var(--good-soft); color: var(--good); font-weight: 800; }
.qtable.hide-answers .col-key { display: none; }
.qtable .q-img { max-height: 11.25rem; margin: 0.25rem 0; }

/* ═══ Faol sessiyalar ═════════════════════════════════════════════════════ */
.session-row { flex-wrap: wrap; }
.session-row .list-title { white-space: normal; overflow-wrap: anywhere; }
.session-row .session-revoke { margin-left: auto; }

/* ═══ Test sahifasi ═══════════════════════════════════════════════════════ */
.quiz-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 25rem); gap: 1.75rem 2.5rem; padding: 2rem; border-radius: 1.75rem; position: relative; }
.quiz-hero-info { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; min-width: 0; }
.quiz-hero-start { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.5rem; border-radius: 1.5rem; box-shadow: var(--sh-in-sm); align-self: start; }
.quiz-hero-start .quiz-actions { flex-direction: column; }
.quiz-hero-start .quiz-actions .btn { width: 100%; }
.quiz-hero-main { display: flex; align-items: center; gap: 1.25rem; }
.quiz-hero-main h1 { overflow-wrap: anywhere; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.quiz-actions, .owner-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.owner-actions { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.resume-note { display: flex; align-items: flex-start; gap: 0.625rem; padding: 0.75rem 1rem; border-radius: 1rem; box-shadow: var(--sh-in-sm); font-size: 0.875rem; color: var(--ink-2); }
.resume-note .icon { margin-top: 0.1875rem; color: var(--accent); }
.switch { display: inline-flex; align-items: center; gap: 0.875rem; cursor: pointer; width: fit-content; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { position: relative; width: 3.375rem; height: 1.875rem; border-radius: 62.4375rem; box-shadow: var(--sh-in-sm); transition: background .2s; }
.switch-track::after { content: ""; position: absolute; top: 0.25rem; left: 0.25rem; width: 1.375rem; height: 1.375rem; border-radius: 50%; background: var(--face); box-shadow: 0.125rem 0.125rem 0.3125rem var(--sd), -0.0625rem -0.0625rem 0.25rem var(--sl); transition: transform .2s, background .2s; }
.switch input:checked + .switch-track { background: var(--accent-soft); }
.switch input:checked + .switch-track::after { transform: translateX(1.5rem); background: linear-gradient(145deg, var(--accent-2), var(--accent)); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--accent); outline-offset: 0.1875rem; }
.switch-label { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; }

/* ═══ Test ishlash ════════════════════════════════════════════════════════
   Kompyuterda: chapda savol kartasi va unga yopishgan "Oldingi / Keyingi" paneli,
   o'ngda yopishqoq yon panel (taymer, progress, savollar tarmog'i, "Yakunlash").
   Telefon (≤900px) maketi fayl oxiridagi media-blokda. */
.page-runner { --page-w: 82.5rem; --side-w: 22rem; }
.page-runner .topbar { position: static; box-shadow: none; }
.page-runner .container { padding-top: 1.5rem; padding-bottom: 2.5rem; gap: 0; }
.runner { display: grid; grid-template-columns: minmax(0, 1fr) var(--side-w); gap: 1.75rem; align-items: start; }
.runner-main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.runner-side { position: sticky; top: calc(var(--safe-top) + 1rem); display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }

/* Yon panel: sarlavha, taymer, progress */
.runner-head { display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem; border-radius: 1.5rem; }
.runner-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.7rem 0.75rem; }
.runner-name { font-weight: 800; font-size: 1rem; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.timer-box { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.85rem; }
.timer-caption { font-size: 0.8125rem; font-weight: 700; color: var(--muted); }
.timer.is-low { color: var(--bad); animation: pulse 1s ease-in-out infinite; }
.timer { display: inline-flex; align-items: center; gap: 0.5rem; font-variant-numeric: tabular-nums; font-weight: 800; color: var(--hot); font-size: 1.5rem; line-height: 1.1; padding: 0.375rem 1rem; border-radius: 62.4375rem; box-shadow: var(--sh-in-sm); }
.progress { height: 0.75rem; border-radius: 62.4375rem; box-shadow: var(--sh-in-sm); overflow: hidden; padding: 0.125rem; }
.progress-bar { display: block; height: 100%; width: 0; border-radius: 62.4375rem; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .35s cubic-bezier(.3, .8, .3, 1); }
.runner-sub { display: flex; justify-content: space-between; gap: 0.75rem; }

/* Savol kartasi */
.q-card { padding: 2rem 2.25rem 2.25rem; min-height: 22rem; border-radius: 1.75rem; animation: rise .3s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(0.5rem); } to { opacity: 1; transform: none; } }
.q-number { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; padding: 0.3125rem 0.9rem; border-radius: 62.4375rem; box-shadow: var(--sh-in-sm); }
.q-text { font-size: 1.5rem; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; margin-bottom: 1.75rem; font-weight: 700; letter-spacing: -0.01em; }
.options { display: flex; flex-direction: column; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.option {
  display: flex; align-items: center; gap: 1rem; width: 100%; text-align: left;
  padding: 0.875rem 1.25rem 0.875rem 0.875rem; border-radius: 1rem; border: 0;
  background: var(--face); box-shadow: var(--sh-out-sm);
  transition: box-shadow .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.option:hover { box-shadow: var(--sh-out); transform: translateX(0.15rem); }
.option:active { box-shadow: var(--sh-in-sm); transform: none; }
.option-key { display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; box-shadow: var(--sh-in-sm); font-weight: 800; font-size: 0.875rem; color: var(--muted); transition: background .15s, color .15s; }
.option-text { flex: 1; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 1.125rem; line-height: 1.45; font-weight: 600; }
.option:disabled { cursor: default; color: inherit; }
.option:disabled:hover { box-shadow: var(--sh-out-sm); transform: none; }
/* Holatlar: tanlangan = ko'k, to'g'ri = yashil, xato = qizil (rang + belgi + halqa) */
.option.is-selected { background: var(--blue-soft); box-shadow: var(--sh-in-sm), 0 0 0 0.125rem var(--blue); }
.option.is-selected .option-key { background: var(--blue); color: #fff; box-shadow: none; }
.option.is-selected .option-text { color: var(--blue); font-weight: 800; }
.option.is-correct { background: var(--good-soft); box-shadow: var(--sh-in-sm), 0 0 0 0.125rem var(--good); }
.option.is-correct .option-key { background: var(--good); color: #fff; box-shadow: none; }
.option.is-correct .option-text { color: var(--good); font-weight: 800; }
.option.is-wrong { background: var(--bad-soft); box-shadow: var(--sh-in-sm), 0 0 0 0.125rem var(--bad); }
.option.is-wrong .option-key { background: var(--bad); color: #fff; box-shadow: none; }
.option.is-wrong .option-text { color: var(--bad); font-weight: 800; }
.q-feedback { margin-top: 1.5rem; padding: 0.85rem 1.25rem; border-radius: 1rem; box-shadow: var(--sh-in-sm); font-size: 1rem; }
.q-feedback.is-correct strong { color: var(--good); }
.q-feedback.is-wrong strong { color: var(--bad); }

/* Rasmli savol, keng ekran: chapda savol va rasm, o'ngda variantlar (tik scrollsiz sig'adi) */
@media (min-width: 1100px) {
  .q-card.has-image { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "num num" "text opts" "text feedback"; column-gap: 2.5rem; align-items: start; }
  .q-card.has-image .q-number { grid-area: num; justify-self: start; }
  .q-card.has-image .q-text { grid-area: text; margin-bottom: 0; }
  .q-card.has-image .options { grid-area: opts; }
  .q-card.has-image .q-feedback { grid-area: feedback; }
  .q-card.has-image .q-img { max-height: min(24rem, 46vh); }
}

/* Oldingi / Keyingi: kartaning pastida; savol uzun bo'lsa ekran pastiga yopishadi */
.runner-actions { position: sticky; bottom: calc(var(--safe-bottom) + 1rem); z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem; border-radius: 1.5rem; }
.runner-actions .btn { height: var(--h-lg); min-width: 9.5rem; }
.runner-actions .bar-finish { display: none; }
.runner-keys { display: none; margin: 0; text-align: center; }
@media (hover: hover) and (pointer: fine) { .runner-keys { display: block; } }
.runner-keys kbd { display: inline-block; min-width: 1.6em; padding: 0.05em 0.45em; margin: 0 0.1em; border-radius: 0.4em; font: inherit; font-weight: 800; color: var(--ink-2); box-shadow: var(--sh-out-sm); }

/* Savollar tarmog'i va izoh */
.q-nav { padding: 1.25rem; border-radius: 1.5rem; }
.q-nav-title { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.875rem; }
.q-nav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.5rem, 1fr)); gap: 0.5rem; max-height: max(10rem, calc(100vh - 25rem)); overflow-y: auto; padding: 0.4rem; }
.q-dot { height: 2.5rem; border-radius: 0.75rem; border: 0; background: var(--face); box-shadow: var(--sh-out-sm); font-weight: 800; font-size: 0.875rem; font-variant-numeric: tabular-nums; color: var(--muted); transition: box-shadow .15s, color .15s; }
.q-dot:hover { color: var(--ink); }
.q-dot.is-answered { background: var(--blue-soft); box-shadow: var(--sh-in-sm); color: var(--blue); }
.q-dot.is-correct { background: var(--good-soft); box-shadow: var(--sh-in-sm); color: var(--good); }
.q-dot.is-wrong { background: var(--bad-soft); box-shadow: var(--sh-in-sm); color: var(--bad); }
.q-dot.is-current { outline: 2px solid var(--hot); outline-offset: 0.125rem; color: var(--ink); }
.q-legend { list-style: none; margin: 1.1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.q-legend li { display: inline-flex; align-items: center; gap: 0.45rem; }
.q-legend .dot { width: 1rem; height: 1rem; border-radius: 0.35rem; background: var(--face); box-shadow: 0.1rem 0.1rem 0.2rem var(--sd), -0.1rem -0.1rem 0.2rem var(--sl); }
.q-legend .dot.is-answered { background: var(--blue); box-shadow: none; }
.q-legend .dot.is-correct { background: var(--good); box-shadow: none; }
.q-legend .dot.is-wrong { background: var(--bad); box-shadow: none; }
.q-legend .dot.is-current { outline: 2px solid var(--hot); outline-offset: 0.1rem; }
.runner[data-mode="exam"] .practice-only { display: none; }
.side-finish { width: 100%; }
.btn-finish.is-ready { animation: ready-pulse 1.8s ease-in-out infinite; }
@keyframes ready-pulse { 0%, 100% { box-shadow: var(--sh-out-sm), 0 0 0 0 rgba(194, 48, 90, 0.5); } 50% { box-shadow: var(--sh-out-sm), 0 0 0 0.65rem rgba(194, 48, 90, 0); } }
.skeleton { display: flex; flex-direction: column; gap: 1rem; }
.skeleton span { height: 3.375rem; border-radius: 1.125rem; box-shadow: var(--sh-in-sm); animation: pulse 1.3s ease-in-out infinite; }
.skeleton span:first-child { height: 4.75rem; }

/* ═══ Oyna ════════════════════════════════════════════════════════════════ */
.modal { border-radius: 1.75rem; padding: 1.875rem; width: min(29.375rem, calc(100% - 2rem)); color: var(--ink); margin: auto; border: 0; background: var(--face); box-shadow: var(--sh-out); }
.modal::backdrop { background: rgba(20, 26, 48, 0.45); -webkit-backdrop-filter: blur(0.25rem); backdrop-filter: blur(0.25rem); }
.modal h2 { margin-bottom: 0.5rem; }
.modal-actions { display: flex; gap: 0.875rem; justify-content: flex-end; margin-top: 1.625rem; flex-wrap: wrap; }
.modal form { max-width: 100%; }


/* Test boshlash oynasi: kompyuterda markazdagi oyna, telefonda pastdan chiqadigan sheet */
.start-dialog { padding: 0; width: min(35rem, calc(100% - 1.5rem)); max-height: min(92dvh, 48.75rem); overflow: hidden; background: var(--bg); }
.start-dialog[open] { display: flex; }
.sheet-form { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1.25rem 1.375rem 0.5rem; }
.sheet-head h2 { margin: 0; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0.25rem 1.375rem 1rem; -webkit-overflow-scrolling: touch; }
.sheet-foot { display: flex; flex-direction: column; gap: 0.625rem; padding: 0.875rem 1.375rem calc(1.125rem + var(--safe-bottom)); background: var(--bg); box-shadow: 0 -0.625rem 1.125rem -0.75rem var(--sd); }
.sheet-foot .btn { width: 100%; }
.start-summary { margin: 0; text-align: center; font-weight: 800; font-size: 0.875rem; color: var(--accent); }
.start-dialog .field { margin-top: 1.125rem; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; padding: 0.375rem; }
.choice { position: relative; display: block; cursor: pointer; }
.choice .choice-card { height: 100%; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; min-height: 4rem; padding: 0.75rem 0.625rem; text-align: center; border-radius: 1.125rem; background: var(--face); box-shadow: var(--sh-out-sm); color: var(--ink-2); transition: box-shadow .15s, color .15s; }
.choice-card strong { font-size: 0.875rem; line-height: 1.25; }
.choice-card small { font-weight: 700; color: var(--muted); font-size: 0.75rem; }
.choice input:checked + .choice-card { background: var(--blue-soft); box-shadow: var(--sh-in-sm), 0 0 0 0.125rem var(--blue); color: var(--blue); }
.choice input:checked + .choice-card small { color: var(--blue); }
.choice input:focus-visible + .choice-card { outline: 3px solid var(--accent); outline-offset: 0.1875rem; }
.choice input:disabled + .choice-card { opacity: .45; cursor: not-allowed; }
.choice-grid-3 { grid-template-columns: repeat(3, 1fr); }
.retry-desc { margin: 0.25rem 0 0.25rem; }
.retry-shuffle { margin-top: 1.25rem; }
.btn-count { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 0.5rem; border-radius: 62.4375rem; background: var(--hot-soft); color: var(--hot); font-size: 0.75rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.choice-hint { margin: 0.375rem 0.5rem 0; font-size: 0.875rem; line-height: 1.45; color: var(--muted); }
.count-options { display: flex; flex-wrap: wrap; gap: 0.75rem; padding: 0.375rem; }
.count-options .chip { min-height: var(--h-md); padding: 0 1.125rem; font-size: 0.875rem; }
@keyframes sheet-up { from { transform: translateY(2.5rem); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) {
  .start-dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 1.75rem 1.75rem 0 0; max-height: 92dvh; }
  .start-dialog[open] { animation: sheet-up .25s ease both; }
  .sheet-head { padding: 1.125rem 1.125rem 0.375rem; }
  .sheet-body { padding: 0.125rem 1rem 0.75rem; }
  .sheet-foot { padding: 0.75rem 1rem calc(0.875rem + var(--safe-bottom)); }
}

/* ═══ Natija ══════════════════════════════════════════════════════════════ */
.result-hero { display: flex; align-items: center; gap: clamp(1.5rem, 5vw, 3.5rem); padding: clamp(1.625rem, 4vw, 2.625rem); flex-wrap: wrap; border-radius: 2rem; }
.result-hero.good { --tone: var(--good); } .result-hero.mid { --tone: var(--warn); } .result-hero.low { --tone: var(--bad); }
.result-main { flex: 1; min-width: 16.25rem; display: flex; flex-direction: column; gap: 0.875rem; }
.result-chips, .result-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }
.result-actions { margin-top: 0.5rem; }
.stamp { position: relative; flex: none; width: 12.5rem; height: 12.5rem; display: grid; place-content: center; text-align: center; border-radius: 50%; color: var(--tone, var(--accent)); box-shadow: var(--sh-in); }
.stamp::before { content: ""; position: absolute; inset: 0.875rem; border-radius: 50%; background: var(--face); box-shadow: var(--sh-out-sm); }
.stamp > * { position: relative; }
.stamp-num { font-weight: 800; font-size: 3rem; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stamp-sub { margin-top: 0.375rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.review-list { display: flex; flex-direction: column; gap: 1.375rem; }
@media (min-width: 1100px) { .review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; } }
.review-item { padding: 1.375rem 1.5rem; border-radius: 1.5rem; }
.review-head { display: flex; align-items: flex-start; gap: 0.875rem; margin-bottom: 1rem; }
.review-num { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; box-shadow: var(--sh-in-sm); font-weight: 800; font-size: 0.875rem; color: var(--muted); }
.review-q { flex: 1; font-size: 1rem; overflow-wrap: anywhere; white-space: pre-wrap; font-weight: 700; padding-top: 0.375rem; }
.review-status { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; color: var(--muted); padding-top: 0.5625rem; }
.is-correct .review-status, .is-correct .review-num { color: var(--good); }
.is-wrong .review-status, .is-wrong .review-num { color: var(--bad); }
.is-skipped .review-status, .is-skipped .review-num { color: var(--warn); }
.review-choices { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.review-choice { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: 1rem; box-shadow: var(--sh-in-sm); font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.review-choice > span:nth-child(2) { flex: 1; white-space: pre-wrap; }
.review-mark { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; flex: none; border-radius: 50%; color: transparent; box-shadow: var(--sh-out-sm); }
.review-choice.is-right { background: var(--good-soft); color: var(--good); font-weight: 800; }
.review-choice.is-right .review-mark { background: var(--good); color: #fff; box-shadow: none; }
.review-choice.is-picked-wrong { background: var(--bad-soft); color: var(--bad); font-weight: 800; }
.review-choice.is-picked-wrong .review-mark { background: var(--bad); color: #fff; box-shadow: none; }
.review-you { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.1875rem 0.625rem; border-radius: 62.4375rem; background: var(--accent-soft); color: var(--accent); }
.filters { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ═══ Rasm, formula, obyektlar ════════════════════════════════════════════ */
.q-img { display: block; max-width: 100%; max-height: 21.25rem; margin: 0.75rem 0; padding: 0.5rem; border-radius: 1rem; background: #fff; box-shadow: var(--sh-out-sm); cursor: zoom-in; object-fit: contain; }
.option-text .q-img, .review-choice .q-img { max-height: 11.25rem; margin: 0.375rem 0; }
.math { display: inline-block; vertical-align: middle; padding: 0 0.125rem; }
.math math { font-size: 1.18em; font-family: "STIX Two Math", "Cambria Math", "Latin Modern Math", var(--serif); }
math[display="block"] { display: block math; margin: 0.5rem 0; }
.unsupported-obj { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.1875rem 0.75rem; border-radius: 62.4375rem; background: var(--warn-soft); color: var(--warn); font-size: 0.8125rem; font-weight: 700; vertical-align: middle; }
.lightbox { border: 0; padding: 0.875rem; border-radius: 1.5rem; background: var(--face); box-shadow: var(--sh-out); max-width: min(96vw, 68.75rem); max-height: 94vh; margin: auto; }
.lightbox::backdrop { background: rgba(20, 26, 48, 0.7); -webkit-backdrop-filter: blur(0.375rem); backdrop-filter: blur(0.375rem); }
.lightbox img { display: block; max-width: 100%; max-height: 86vh; border-radius: 0.875rem; background: #fff; }

/* ═══ Guruhlar ════════════════════════════════════════════════════════════ */
.join-mode-note { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.125rem; border-radius: 1rem; font-size: 0.875rem; max-width: 46ch; text-align: left; background: none; box-shadow: var(--sh-in-sm); }
.invite { display: flex; flex-direction: column; gap: 0.875rem; background: none; box-shadow: var(--sh-in); }
.invite-row { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 0.75rem; align-items: center; }
.invite-label { color: var(--muted); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.row-actions { display: inline-flex; gap: 0.75rem; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.avatar { display: inline-grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; color: var(--accent); background: var(--face); box-shadow: var(--sh-out-sm); font-weight: 800; font-size: 1rem; }
.avatar.lg { width: 4rem; height: 4rem; font-size: 1.5rem; }
.person { display: inline-flex; align-items: center; gap: 0.875rem; min-width: 0; }
.person-name { display: flex; flex-direction: column; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; font-weight: 800; }
.person-name small { color: var(--muted); font-weight: 600; font-size: 0.75rem; }
.list-row .person { flex: 1; }

/* Faxriy taxta (top-3) */
.podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 12.5rem)); justify-content: center; align-items: end; gap: 1.125rem; padding: 1.375rem 0 0; }
.podium-item { display: flex; flex-direction: column; align-items: center; gap: 0.3125rem; text-align: center; padding: 0 0.375rem; position: relative; }
.podium-medal { font-size: 1.5rem; line-height: 1; margin-bottom: 0.125rem; }
.podium-name { font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-score { font-size: 1.875rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--accent); }
.podium-sub { margin-bottom: 0.625rem; }
.podium-step { width: 100%; display: grid; place-items: center; border-radius: 1.375rem 1.375rem 0.5rem 0.5rem; font-weight: 800; font-size: 2.25rem; background: var(--face); color: var(--muted); box-shadow: var(--sh-out); }
.place-1 .podium-step { height: 7.75rem; background: linear-gradient(145deg, var(--accent-2), var(--accent)); color: var(--accent-ink); }
.place-2 .podium-step { height: 5.5rem; color: var(--accent); }
.place-3 .podium-step { height: 3.875rem; color: var(--ink-2); }
.place-1 .avatar.lg { color: var(--hot); }
.podium-item.is-me .podium-name { color: var(--hot); }
.mini-top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.875rem; }
.mini-top li { display: flex; gap: 0.5rem; align-items: center; }
.mini-top li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Jadvallar */
.table-wrap { padding: 0.625rem 0.875rem; overflow-x: auto; border-radius: 1.5rem; }
.table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.table th { text-align: left; color: var(--muted); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.875rem 0.75rem; white-space: nowrap; border-bottom: 1px solid var(--line); }
.table td { padding: 0.75rem; border-top: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.table tbody tr:first-child td { border-top: 0; }
.table tr.is-me td { background: var(--accent-soft); }
.table tr.is-me td:first-child { border-radius: 0.875rem 0 0 0.875rem; }
.table tr.is-me td:last-child { border-radius: 0 0.875rem 0.875rem 0; }
.rank { display: inline-grid; place-items: center; min-width: 1.875rem; font-weight: 800; font-size: 1rem; }
.matrix th:first-child, .matrix td:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); }
.th-clip { display: inline-block; max-width: 7.5rem; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }

/* Shakllar */
.field { display: flex; flex-direction: column; gap: 0.5rem; margin: 1.125rem 0 0; border: 0; padding: 0; min-width: 0; }
.field > span, .field > legend { font-weight: 800; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 0.125rem; }
.input { width: 100%; min-height: var(--h-md); padding: 0.5625rem 1rem; border-radius: 0.75rem; border: 0; background: transparent; box-shadow: var(--sh-in-sm); color: var(--ink); font: inherit; font-weight: 600; resize: vertical; }
.input::placeholder { color: var(--muted); font-weight: 500; }
.input:focus { outline: 2px solid var(--accent); outline-offset: 0.125rem; }
.radio-card { display: flex; gap: 0.875rem; align-items: flex-start; padding: 0.875rem 1.125rem; border-radius: 1.125rem; background: var(--face); box-shadow: var(--sh-out-sm); cursor: pointer; margin-bottom: 0.875rem; transition: box-shadow .15s; }
.radio-card:has(input:checked) { background: none; box-shadow: var(--sh-in-sm); }
.radio-card:has(input:checked) strong { color: var(--accent); }
.radio-card input { margin-top: 0.25rem; accent-color: var(--accent); }
.radio-card strong { display: flex; align-items: center; gap: 0.375rem; }
.radio-card small { display: block; color: var(--muted); margin-top: 0.125rem; }
.check-list { display: flex; flex-direction: column; gap: 0.75rem; max-height: 50vh; overflow-y: auto; margin-top: 0.875rem; padding: 0.5rem; }
.check-row { display: flex; gap: 0.875rem; align-items: center; padding: 0.75rem 1rem; border-radius: 1rem; background: var(--face); box-shadow: var(--sh-out-sm); cursor: pointer; }
.check-row:has(input:checked) { background: none; box-shadow: var(--sh-in-sm); }
.check-row input { accent-color: var(--accent); width: 1.125rem; height: 1.125rem; }

/* ═══ Xabarnoma ═══════════════════════════════════════════════════════════ */
.toasts { position: fixed; top: calc(5rem + var(--safe-top)); left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 0.75rem; width: min(26.25rem, calc(100% - 1.5rem)); pointer-events: none; }
.toast { padding: 0.875rem 1.25rem; border-radius: 1.125rem; font-weight: 700; font-size: 0.875rem; animation: rise .25s ease both; background: var(--face); color: var(--ink); box-shadow: var(--sh-out); border-left: 5px solid var(--accent); }
.toast.error { border-left-color: var(--bad); color: var(--bad); }
.toast.success { border-left-color: var(--good); color: var(--good); }

/* ═══ QR orqali kirish ═══ */
.qr-login { display: grid; grid-template-columns: 13.75rem minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 2.5rem); align-items: center; border-radius: 1.75rem; margin-top: 0.5rem; }
.qr-box { position: relative; width: 13.75rem; height: 13.75rem; padding: 0.625rem; border-radius: 1.375rem; background: #fff; box-shadow: var(--sh-in-sm); display: grid; place-items: center; }
.qr-box svg { display: block; width: 100%; height: 100%; transition: opacity .2s, filter .2s; }
.qr-box.is-stale svg { opacity: .18; filter: blur(0.125rem); }
.qr-placeholder { text-align: center; color: #555; }
.qr-info h2 { display: flex; align-items: center; gap: 0.625rem; font-size: 1.25rem; margin-bottom: 0.5rem; }
.qr-steps { margin: 0.875rem 0 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 0.375rem; color: var(--ink-2); }
.qr-steps li::marker { color: var(--accent); font-weight: 800; }
.qr-status { margin-top: 0.875rem; font-weight: 700; min-height: 1.4em; color: var(--muted); }
.qr-status[data-tone="good"] { color: var(--good); }
.qr-status[data-tone="bad"] { color: var(--bad); }
.qr-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 0.875rem; }
/* Bosh sahifada QR karta hero ustunining o'ng tomonida: tik joylashuv */
.hero .qr-login { grid-template-columns: 1fr; justify-items: center; margin: 0; padding: 1.75rem; }
.hero .qr-login .qr-info { width: 100%; }
@media (max-width: 640px) { .qr-login { grid-template-columns: 1fr; justify-items: center; text-align: left; } .qr-info { width: 100%; } }

/* ═══ QR skaner ═══ */
.scan { width: min(32.5rem, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 1.375rem; }
.scan-head h1 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
.scan-head p { margin-top: 0.5rem; }
.scan-stage { display: flex; flex-direction: column; align-items: center; gap: 1.125rem; text-align: center; border-radius: 1.75rem; }
.scan-viewport { position: relative; width: 100%; aspect-ratio: 1; max-width: 23.75rem; border-radius: 1.5rem; overflow: hidden; background: #000; box-shadow: var(--sh-in-sm); }
.scan-viewport video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 18%; border: 3px solid rgba(255, 255, 255, 0.9); border-radius: 1.375rem; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.35); pointer-events: none; }
.scan-idle { display: grid; place-items: center; width: 8.75rem; height: 8.75rem; border-radius: 50%; color: var(--accent); box-shadow: var(--sh-in); }
.scan-status { min-height: 1.5em; margin: 0; font-weight: 700; color: var(--muted); }
.scan-status[data-tone="good"] { color: var(--good); }
.scan-status[data-tone="bad"] { color: var(--bad); }
.scan-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; justify-content: center; width: 100%; }
.scan-device { margin: 1.125rem 0 0; display: flex; flex-direction: column; gap: 0.625rem; }
.scan-device div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; border-radius: 0.875rem; box-shadow: var(--sh-in-sm); }
.scan-device dt { color: var(--muted); font-weight: 700; }
.scan-device dd { margin: 0; font-weight: 800; text-align: right; }
@media (max-width: 560px) { .scan-actions .btn { width: 100%; } }

/* ═══ Ommaviy oferta ═══ */
.offer { width: min(51.25rem, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 1.625rem; }
.offer-head { display: flex; align-items: center; gap: 1.25rem; border-radius: 1.75rem; }
.offer-head h1 { font-size: clamp(1.5rem, 3vw, 1.875rem); text-transform: uppercase; letter-spacing: 0.02em; }
.offer-sub { font-weight: 700; margin-top: 0.25rem; color: var(--ink-2); }
.offer-head .muted { margin-top: 0.5rem; }
.offer-section h2 { display: flex; align-items: center; gap: 0.75rem; font-size: 1.125rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.875rem; }
.offer-num { display: inline-grid; place-items: center; width: 2.125rem; height: 2.125rem; border-radius: 50%; box-shadow: var(--sh-in-sm); color: var(--accent); font-size: 0.875rem; flex: none; }
.offer-items, .offer-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.offer-items li { display: flex; gap: 0.75rem; color: var(--ink-2); }
.offer-item-no { flex: none; min-width: 2.6em; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.offer-history li { display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap; padding: 0.625rem 1rem; border-radius: 0.875rem; box-shadow: var(--sh-in-sm); }
.offer-date { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.offer-link { color: var(--accent); font-weight: 800; }
.offer-accept { display: flex; align-items: center; justify-content: center; gap: 0.625rem; text-align: center; font-weight: 800; color: var(--good); padding: 0.5rem 0 0.25rem; }

/* ═══ Moslashuvchanlik ════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 22.5rem; max-width: 32.5rem; width: 100%; margin-inline: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.125rem; }
  .steps, .features { grid-template-columns: 1fr; gap: 1.375rem; }
}
/* Kompyuter/planshetda menyu havolalari ham boshqa boshqaruvlar bilan bir xil balandlikda */
@media (min-width: 701px) { .nav-link { height: var(--h-md); padding: 0 1rem; } }
@media (max-width: 700px) {
  .topnav { gap: 0.375rem; margin-left: 0.125rem; }
  .nav-link { padding: 0.625rem 0.75rem; }
  .nav-label { display: none; }
  .brand-name { display: none; }
  .topbar-actions { gap: 0.5rem; }
  .invite-row { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .podium { grid-template-columns: repeat(3, 1fr); gap: 0.625rem; }
  .avatar.lg { width: 3rem; height: 3rem; font-size: 1.25rem; }
  .podium-score { font-size: 1.25rem; }
  .podium-item { padding: 0 0.125rem; }
  .table th, .table td { padding: 0.5625rem 0.375rem; }
  .table .avatar { width: 2rem; height: 2rem; font-size: 0.875rem; }
  .row-actions .btn { padding: 0 0.75rem; }
}
@media (max-width: 700px) {
  /* Menyu 7 ta elementdan iborat bo'lgani uchun telefonda zichroq */
  .topbar-inner { gap: 0.5rem; }
  .brand-mark { width: 2.375rem; height: 2.375rem; border-radius: 0.75rem; }
  .topnav { gap: 0.125rem; }
  .nav-link { padding: 0.5625rem 0.625rem; }
  .topbar-actions { gap: 0.375rem; }
  .icon-btn { min-width: 2.375rem; height: 2.375rem; padding: 0 0.5rem; }
}
@media (max-width: 560px) {
  .modal-actions { flex-wrap: nowrap; }
  .modal-actions .btn { flex: 1; padding-inline: 0.75rem; }
}
@media (max-width: 560px) {
  .card { padding: 1.125rem; }
  .container { gap: 1.625rem; }
  .btn-lg { width: 100%; }
  .hero-cta { width: 100%; }
  /* Bosh sahifadagi 3 ta yorliq telefonda yonma-yon, teng kenglikda sig'adi (aks holda uchinchisi ko'rinmay qoladi) */
  .tabs-equal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; overflow: visible; }
  .tabs-equal .tab { flex-direction: column; justify-content: center; height: auto; min-height: var(--h-md); gap: 0.25rem; padding: 0.5rem 0.25rem; font-size: 0.8125rem; line-height: 1.2; text-align: center; white-space: normal; }
  .quiz-hero-start .quiz-actions .btn { width: 100%; }
  .session-row .session-revoke { width: 100%; }
  .quiz-hero { padding: 1.375rem; }
  .result-hero { justify-content: center; text-align: center; }
  .result-chips, .result-actions { justify-content: center; }
  .result-actions .btn { width: 100%; }
  .stamp { width: 10.5rem; height: 10.5rem; }
  .stamp-num { font-size: 2.25rem; }
  .sheet-arrow { display: none; }
  .grid { grid-template-columns: minmax(0, 1fr); }
}
/* Telefonda jadval qatorlari kartalarga aylanadi: raqam, savol, variantlar, to'g'ri javob */
@media (max-width: 700px) {
  .qtable, .qtable tbody, .qtable tr, .qtable td { display: block; }
  .qtable thead { position: absolute; width: 0.0625rem; height: 0.0625rem; overflow: hidden; clip-path: inset(50%); }
  .qtable tr { padding: 1rem 1rem 0.875rem; border-bottom: 1px solid var(--line); }
  .qtable tbody tr:last-child { border-bottom: 0; }
  .qtable td { padding: 0; border: 0; }
  .qtable .col-num { width: auto; margin-bottom: 0.25rem; text-align: left; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
  .qtable .col-num::before { content: "№ "; }
  .qtable .col-q { width: auto; margin-bottom: 0.75rem; }
  .qtable .col-key { width: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin-top: 0.75rem; text-align: left; }
  .qtable .col-key::before { content: attr(data-label); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  .key-badge { margin: 0; }
  .opts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) { .hide-xs { display: none; } .stat { padding: 1.125rem; } }
/* Past noutbuk ekranlari (balandligi ≤800px): savol va variantlar scrollsiz sig'ishi uchun zichroq */
@media (min-width: 901px) and (max-height: 800px) {
  .page-runner .container { padding-top: 1rem; padding-bottom: 1.5rem; }
  .runner { gap: 1.25rem; }
  .runner-main, .runner-side { gap: 0.9rem; }
  .runner-head { padding: 1rem 1.2rem; gap: 0.75rem; }
  .q-card { padding: 1.5rem 2rem 1.75rem; min-height: 0; }
  .q-number { margin-bottom: 0.7rem; }
  .q-text { font-size: 1.25rem; margin-bottom: 1.25rem; }
  .options { gap: 0.7rem; }
  .option { padding: 0.7rem 1.2rem 0.7rem 0.8rem; }
  .option-key { width: 2rem; height: 2rem; }
  .option-text { font-size: 1rem; }
  .q-feedback { margin-top: 1rem; padding: 0.6rem 1rem; }
  .runner-actions { padding: 0.55rem; }
  .runner-actions .btn { height: var(--h-md); }
  .q-nav { padding: 1rem 1.2rem 1.2rem; }
  .q-nav-grid { max-height: max(8rem, calc(100vh - 25rem)); }
}

/* ═══ Telefonda (≤900px) test ishlash: savol va variantlar ekranga sig'sin ═════════
   Yon panel "yoyiladi" (display: contents): sarlavha+taymer tepada yopishqoq, savollar ingichka tasma,
   so'ng savol; Oldingi/Yakunlash/Keyingi paneli ekran pastiga mahkamlanadi. */
@media (max-width: 1100px) { .page-runner { --side-w: 19rem; } }
@media (max-width: 900px) {
  .quiz-hero { display: flex; flex-direction: column; padding: 1.5rem; }
  .quiz-hero-info { display: contents; }
  .quiz-hero-main { order: 1; }
  .quiz-hero-start { order: 2; padding: 0; box-shadow: none; align-self: stretch; }
  .owner-actions { order: 3; }
}
@media (min-width: 561px) and (max-width: 900px) {
  .quiz-hero-start .quiz-actions { flex-direction: row; }
  .quiz-hero-start .quiz-actions .btn { width: auto; }
}
@media (max-width: 900px) {
  .page-runner .topbar-inner { padding-block: 0.5rem; }
  .page-runner .container { padding-top: 0.625rem; padding-bottom: calc(5.5rem + var(--safe-bottom)); }
  .runner { display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .runner-side { display: contents; }
  .runner-head { order: 1; position: sticky; top: var(--safe-top); z-index: 25; padding: 0.625rem 0.875rem; gap: 0.5rem; border-radius: 1.125rem; background: var(--bg); box-shadow: var(--sh-out-sm), 0 0 0 0.375rem var(--bg); }
  .runner-title { display: flex; align-items: center; gap: 0.5rem; }
  .runner-name { flex: 1; min-width: 0; display: block; font-size: 1rem; white-space: nowrap; text-overflow: ellipsis; }
  .timer-box { grid-column: auto; }
  .timer-caption { display: none; }
  .timer { padding: 0.25rem 0.75rem; font-size: 1rem; gap: 0.375rem; }
  .progress { height: 0.5rem; padding: 0.0625rem; }
  .runner-sub { font-size: 0.75rem; }
  .q-nav { order: 2; padding: 0.375rem 0.5rem; border-radius: 1rem; }
  .q-nav-title, .q-legend, .side-finish, .runner-keys { display: none; }
  .q-nav-grid { display: flex; overflow-x: auto; max-height: none; padding: 0.25rem 0.25rem 0.5rem; gap: 0.625rem; scrollbar-width: none; }
  .q-dot { height: 2.25rem; min-width: 2.25rem; flex: none; border-radius: 0.625rem; }
  .runner-main { order: 3; gap: 0; }
  .q-card { padding: 1rem 0.875rem 1.125rem; min-height: 0; border-radius: 1.375rem; }
  .q-number { margin-bottom: 0.5rem; padding: 0.1875rem 0.625rem; font-size: 0.75rem; }
  .q-text { font-size: 1.125rem; line-height: 1.38; margin-bottom: 0.875rem; }
  .options { gap: 0.625rem; }
  .option { gap: 0.75rem; padding: 0.625rem 0.75rem 0.625rem 0.625rem; border-radius: 1rem; }
  .option:hover { transform: none; }
  .option-key { width: 2rem; height: 2rem; font-size: 0.8125rem; }
  .option-text { font-size: 1rem; line-height: 1.35; }
  .q-img { max-height: 24vh; margin: 0.5rem 0; padding: 0.25rem; border-radius: 0.75rem; }
  .option-text .q-img { max-height: 16vh; }
  .q-feedback { margin-top: 0.75rem; padding: 0.5rem 0.875rem; font-size: 0.875rem; }
  .runner-actions { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr auto 1fr; width: 100%; padding: 0.5rem 0.75rem calc(0.5rem + var(--safe-bottom)); border-radius: 1.375rem 1.375rem 0 0; gap: 0.625rem; }
  .runner-actions .bar-finish { display: inline-flex; }
  .runner-actions .btn { width: 100%; height: var(--h-md); min-width: 0; padding: 0 0.875rem; }
}
@media (max-width: 560px) {
  .runner-actions .btn span { display: none; }
  .runner-actions .bar-finish span { display: inline; }
}
@media (max-height: 700px) and (max-width: 900px) {
  .q-text { font-size: 1rem; margin-bottom: 0.625rem; }
  .q-img { max-height: 22vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.stamp.sm { width: 6.75rem; height: 6.75rem; box-shadow: var(--sh-in-sm); }
.stamp.sm::before { inset: 0.5625rem; }
.stamp.sm .stamp-num { font-size: 1.5rem; }
.stamp.mini-stamp { position: absolute; right: 4%; top: 2%; z-index: 3; background: var(--bg); }
