/* ================= حصين — الأنماط ================= */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #070b11;
  --panel: #0d1621;
  --panel-2: #111c2a;
  --line: rgba(147, 180, 214, 0.14);
  --line-strong: rgba(147, 180, 214, 0.26);
  --text: #e9eff7;
  --muted: #8fa3ba;
  --mint: #2ee6a8;
  --cyan: #22b8ff;
  --amber: #f7b955;
  --red: #ff6470;
  --radius: 20px;
  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.3; }

/* ---------- خلفية ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(147, 180, 214, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 180, 214, 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(720px 420px at 84% -8%, rgba(46, 230, 168, 0.15), transparent 66%),
    radial-gradient(680px 400px at 12% -6%, rgba(34, 184, 255, 0.13), transparent 66%);
}

/* ---------- الهيدر ---------- */
.app-header {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1120px; margin-inline: auto;
  padding: 18px clamp(16px, 4vw, 40px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 14px; color: var(--mint);
  background: linear-gradient(150deg, rgba(46, 230, 168, 0.2), rgba(34, 184, 255, 0.14));
  border: 1px solid rgba(46, 230, 168, 0.34);
  box-shadow: 0 10px 26px -14px rgba(46, 230, 168, 0.85);
}
.brand-mark svg { width: 23px; height: 23px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.16rem; font-weight: 700; }
.brand-text small { font-size: 0.7rem; color: var(--muted); }
.header-tag {
  font-size: 0.74rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; background: rgba(255, 255, 255, 0.02);
}

/* ---------- التخطيط العام ---------- */
.app-main {
  position: relative; z-index: 2;
  max-width: 1120px; margin-inline: auto;
  padding: 8px clamp(16px, 4vw, 40px) 72px;
}
.screen { animation: fadeUp 0.45s ease both; }
.is-hidden { display: none !important; }

.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 34px 80px -60px #000;
}
.card-title { margin: 0 0 16px; font-size: 1.05rem; font-weight: 700; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- الشاشة الأولى ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.78fr);
  gap: 22px;
  align-items: start;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; padding: 6px 13px;
  font-size: 0.76rem; color: var(--mint);
  background: rgba(46, 230, 168, 0.08);
  border: 1px solid rgba(46, 230, 168, 0.24);
  border-radius: 999px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 0 4px rgba(46, 230, 168, 0.16);
}
.intro-title {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 4.6vw, 2.85rem);
  font-weight: 700; line-height: 1.28;
}
.title-accent {
  background: linear-gradient(100deg, #2ee6a8, #22b8ff);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.intro-lead { margin: 0 0 22px; color: var(--muted); font-size: 1rem; line-height: 1.9; max-width: 54ch; }
.intro-points { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; }
.intro-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.94rem; color: #c6d5e4; }
.p-ico {
  flex: 0 0 24px; width: 24px; height: 24px; margin-top: 2px;
  display: grid; place-items: center; border-radius: 8px;
  font-size: 0.72rem; font-weight: 700; color: var(--mint);
  background: rgba(46, 230, 168, 0.1);
  border: 1px solid rgba(46, 230, 168, 0.24);
}
.intro-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.best-pill {
  font-size: 0.8rem; color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 999px; padding: 9px 16px;
}
.fineprint { margin: 20px 0 0; font-size: 0.77rem; color: #6d8299; line-height: 1.8; }

.intro-side { display: grid; gap: 16px; }
.mini-card {
  background: rgba(255, 255, 255, 0.024);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.mini-card h2 { margin: 0 0 8px; font-size: 0.93rem; font-weight: 600; color: #cfe0f0; }
.mini-card p { margin: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.85; }
.mini-card.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.mini-card.stats strong { display: block; font-size: 1.35rem; font-weight: 700; color: var(--mint); line-height: 1.3; }
.mini-card.stats span { font-size: 0.68rem; color: var(--muted); }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 15px 24px;
  font-family: inherit; font-size: 0.98rem; font-weight: 700; line-height: 1;
  border-radius: 14px; border: 1px solid transparent;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform 0.14s ease, box-shadow 0.2s ease, background 0.2s, border-color 0.2s, filter 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.994); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--mint); }
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(135deg, #2ee6a8, #22b8ff);
  color: #04120d;
  box-shadow: 0 16px 40px -20px rgba(46, 230, 168, 0.85);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn:disabled { opacity: 0.55; cursor: default; }
@media (hover: hover) {
  .btn-primary:hover { filter: brightness(1.07); }
  .btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(46, 230, 168, 0.4); }
}

/* ---------- شريط التقدّم والحماية ---------- */
.play-top {
  display: grid; grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px; align-items: end; margin-bottom: 18px;
}
.progress-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; font-size: 0.8rem; color: var(--muted); margin-bottom: 10px;
}
.progress-head b { color: var(--text); font-size: 1rem; }
.step-name {
  font-size: 0.76rem; color: #7fbfae;
  max-width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dots { display: flex; gap: 6px; }
.dot {
  flex: 1; height: 6px; border-radius: 999px;
  background: rgba(147, 180, 214, 0.16);
  transition: background 0.3s, box-shadow 0.3s;
}
.dot.is-current { background: var(--mint); box-shadow: 0 0 12px rgba(46, 230, 168, 0.7); }
.dot.is-done { background: rgba(46, 230, 168, 0.6); }
.dot.is-mid { background: var(--amber); }
.dot.is-bad { background: var(--red); }

.safety {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.safety-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.74rem; color: var(--muted); margin-bottom: 8px;
}
.safety-head b { font-size: 0.95rem; color: var(--mint); }
.safety-bar { height: 8px; border-radius: 999px; background: rgba(147, 180, 214, 0.14); overflow: hidden; }
#safety-fill {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #22b8ff, #2ee6a8);
  transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s;
}
.safety.is-low #safety-fill { background: linear-gradient(90deg, #ff6470, #f7b955); }
.safety.is-low .safety-head b { color: var(--amber); }

/* ---------- بطاقة المشهد ---------- */
.scene-card {
  background: linear-gradient(180deg, rgba(16, 26, 39, 0.92), rgba(10, 17, 25, 0.94));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(16px, 3vw, 26px);
  box-shadow: 0 44px 90px -70px #000;
}
.scene-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.scene-tag {
  font-size: 0.72rem; color: #9fd8c6;
  background: rgba(46, 230, 168, 0.09);
  border: 1px solid rgba(46, 230, 168, 0.22);
  padding: 5px 12px; border-radius: 999px;
}
.scene-hint { font-size: 0.7rem; color: #647a92; }

.msg {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #0f1a27, #0b1420);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 16px 16px 18px;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.msg.is-good { border-color: rgba(46, 230, 168, 0.5); box-shadow: 0 0 0 1px rgba(46, 230, 168, 0.14), 0 26px 60px -50px rgba(46, 230, 168, 0.9); }
.msg.is-mid { border-color: rgba(247, 185, 85, 0.5); box-shadow: 0 0 0 1px rgba(247, 185, 85, 0.12); }
.msg.is-bad { border-color: rgba(255, 100, 112, 0.5); box-shadow: 0 0 0 1px rgba(255, 100, 112, 0.12); }

.msg-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.avatar {
  flex: 0 0 44px; width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px; font-weight: 700; font-size: 1rem; color: #04120d;
  background: linear-gradient(150deg, #2ee6a8, #22b8ff);
}
.msg-id { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.msg-sender { font-size: 0.94rem; font-weight: 600; color: #eaf3fb; }
.msg-meta { font-size: 0.71rem; color: #7f93aa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-time { margin-inline-start: auto; font-size: 0.71rem; color: #647a92; white-space: nowrap; }
.msg-text {
  margin: 0; font-size: 0.98rem; line-height: 1.95;
  color: #dbe7f2; white-space: pre-line; overflow-wrap: anywhere;
}
.msg-extra { display: flex; flex-wrap: wrap; gap: 8px; }
.msg-extra:not(:empty) { margin-top: 14px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 100%; padding: 8px 12px;
  border-radius: 10px; font-size: 0.76rem;
  overflow: hidden;
}
.chip-url {
  direction: ltr; unicode-bidi: isolate;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #ffd479; background: rgba(255, 212, 121, 0.08);
  border: 1px solid rgba(255, 212, 121, 0.28);
}
.chip-attach {
  color: #8fd8ff; background: rgba(34, 184, 255, 0.08);
  border: 1px solid rgba(34, 184, 255, 0.28);
}
.chip-ico { display: inline-flex; flex: 0 0 auto; }
.chip-ico svg { width: 14px; height: 14px; }
.chip-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.scanline {
  position: absolute; inset-inline: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(46, 230, 168, 0.85), transparent);
  animation: scan 6s linear infinite;
}
@keyframes scan {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 0.9; }
  88% { opacity: 0.9; }
  100% { transform: translateY(520px); opacity: 0; }
}

/* ---------- الخيارات ---------- */
.q-title { margin: 26px 0 4px; font-size: 1.14rem; font-weight: 700; }
.q-sub { margin: 0 0 16px; font-size: 0.8rem; color: var(--muted); }
.options { display: grid; gap: 11px; }
.opt {
  display: flex; align-items: flex-start; gap: 14px;
  width: 100%; min-height: 58px; padding: 15px 16px;
  text-align: start; font-family: inherit; font-size: 0.96rem; line-height: 1.7;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background 0.18s, border-color 0.18s, transform 0.12s;
}
.opt:active { transform: scale(0.994); }
.opt:focus-visible { outline: none; box-shadow: 0 0 0 2px #0a121b, 0 0 0 4px var(--mint); }
@media (hover: hover) {
  .opt:hover { background: rgba(46, 230, 168, 0.07); border-color: rgba(46, 230, 168, 0.42); }
}
.opt .letter {
  flex: 0 0 30px; width: 30px; height: 30px; margin-top: 1px;
  display: grid; place-items: center;
  border-radius: 10px; font-size: 0.82rem; font-weight: 700; color: #9fd8c6;
  background: rgba(46, 230, 168, 0.1);
  border: 1px solid rgba(46, 230, 168, 0.2);
}
.opt .opt-text { flex: 1; }
.opt:disabled { cursor: default; opacity: 0.5; }
.opt.is-picked { opacity: 1; border-color: rgba(147, 180, 214, 0.45); background: rgba(255, 255, 255, 0.05); }
.opt.is-picked .letter { background: rgba(147, 180, 214, 0.16); border-color: rgba(147, 180, 214, 0.3); color: #cfe0f0; }

/* ---------- التغذية الراجعة ---------- */
.feedback {
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--line);
  animation: fadeUp 0.32s ease both;
}
.fb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.fb-badge {
  font-size: 0.76rem; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; border: 1px solid transparent;
}
.fb-badge.good { color: #04120d; background: var(--mint); }
.fb-badge.mid { color: #2a1c04; background: var(--amber); }
.fb-badge.bad { color: #2a0409; background: var(--red); }
.fb-delta { font-size: 0.76rem; color: var(--muted); }
.fb-title { margin: 0 0 8px; font-size: 1.08rem; }
.fb-text { margin: 0 0 16px; font-size: 0.94rem; line-height: 1.95; color: #c3d3e2; }
.fb-correct {
  margin-bottom: 16px; padding: 14px 16px;
  border-radius: 14px;
  background: rgba(46, 230, 168, 0.06);
  border: 1px solid rgba(46, 230, 168, 0.22);
}
.fb-correct-label { display: block; margin-bottom: 6px; font-size: 0.7rem; font-weight: 700; color: var(--mint); }
.fb-correct p { margin: 0; font-size: 0.92rem; line-height: 1.85; color: #d4e6e0; }
.fb-flags { margin-bottom: 20px; }
.fb-flags-label { display: block; margin-bottom: 8px; font-size: 0.7rem; color: var(--muted); }
.fb-flags ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.fb-flags li {
  font-size: 0.71rem; color: #f0c583;
  background: rgba(247, 185, 85, 0.08);
  border: 1px solid rgba(247, 185, 85, 0.24);
  border-radius: 8px; padding: 4px 10px;
}

/* ---------- شاشة النتيجة ---------- */
.end-wrap { display: grid; gap: 20px; max-width: 760px; margin-inline: auto; }
.end-card { text-align: center; }
.ring-wrap { position: relative; width: 152px; height: 152px; margin: 0 auto 6px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); transform-origin: center; }
.ring-bg { fill: none; stroke: rgba(147, 180, 214, 0.14); stroke-width: 9; }
.ring-fg {
  fill: none; stroke: var(--mint); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.4s ease;
}
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-center b { font-size: 2.05rem; font-weight: 700; line-height: 1; }
.ring-center span { font-size: 0.7rem; color: var(--muted); }
.rank-badge {
  display: inline-block; margin: 12px 0 0;
  padding: 6px 18px; border-radius: 999px;
  font-size: 0.84rem; font-weight: 700;
  border: 1px solid var(--line-strong);
  color: var(--mint);
}
.end-title { margin: 14px 0 10px; font-size: clamp(1.3rem, 3.6vw, 1.6rem); }
.end-summary { margin: 0 auto; max-width: 56ch; font-size: 0.93rem; line-height: 1.95; color: var(--muted); }
.end-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 4px; }
.stat {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 8px; text-align: center;
}
.stat b { display: block; font-size: 1.3rem; line-height: 1.3; }
.stat span { font-size: 0.7rem; color: var(--muted); }
.stat--good b { color: var(--mint); }
.stat--mid b { color: var(--amber); }
.stat--bad b { color: var(--red); }
.end-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.end-actions .btn { flex: 1 1 200px; }

.review-card, .rules-card { text-align: start; }
.review-item {
  display: flex; gap: 14px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.review-item:first-child { border-top: none; padding-top: 0; }
.review-num {
  flex: 0 0 28px; width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 9px; font-size: 0.75rem; font-weight: 700;
  background: rgba(147, 180, 214, 0.1); color: #b9cbdd;
}
.review-body { min-width: 0; }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-topic { font-size: 0.93rem; font-weight: 600; }
.pill { font-size: 0.67rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.pill.good { background: rgba(46, 230, 168, 0.14); color: #6ff0c0; }
.pill.mid { background: rgba(247, 185, 85, 0.14); color: #f7c979; }
.pill.bad { background: rgba(255, 100, 112, 0.14); color: #ff9aa2; }
.review-choice { margin: 7px 0 4px; font-size: 0.84rem; line-height: 1.8; color: #a9bccf; }
.review-correct { margin: 0; font-size: 0.84rem; line-height: 1.8; color: #7fd9b8; }

#rules-list { list-style: none; counter-reset: r; margin: 0; padding: 0; display: grid; gap: 13px; }
#rules-list li { counter-increment: r; display: flex; gap: 12px; align-items: flex-start; font-size: 0.89rem; line-height: 1.85; color: #c3d3e2; }
#rules-list li::before {
  content: counter(r);
  flex: 0 0 24px; width: 24px; height: 24px; margin-top: 2px;
  display: grid; place-items: center;
  border-radius: 8px; font-size: 0.7rem; font-weight: 700; color: var(--mint);
  background: rgba(46, 230, 168, 0.1);
  border: 1px solid rgba(46, 230, 168, 0.22);
}

/* ---------- لوحة الصدارة ---------- */
.lb-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.lb-head .card-title { margin: 0; }
.lb-tag {
  font-size: 0.66rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}
.lb-note { font-size: 0.85rem; color: var(--muted); line-height: 1.85; margin: 10px 0 14px; }
.lb-status { font-size: 0.85rem; color: #b7c9da; margin: 12px 0 14px; }
.lb-row {
  display: flex; align-items: center; gap: 12px;
  margin-top: 8px; padding: 10px 12px;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.lb-row.is-you { border-color: rgba(46, 230, 168, 0.45); background: rgba(46, 230, 168, 0.07); }
.lb-rank {
  flex: 0 0 26px; width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px; font-size: 0.72rem; font-weight: 700;
  background: rgba(46, 230, 168, 0.12); color: var(--mint);
}
.lb-handle { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-score { font-weight: 700; color: var(--mint); }

/* ---------- التوست ---------- */
.toast {
  position: fixed; inset-inline: 0; bottom: 26px; z-index: 60;
  width: max-content; max-width: 90vw; margin-inline: auto;
  padding: 12px 18px; border-radius: 12px;
  font-size: 0.84rem; color: var(--text);
  background: #12202e; border: 1px solid var(--line-strong);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.is-on { opacity: 1; transform: none; }

/* ---------- الاستجابة ---------- */
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: minmax(0, 1fr); }
  .intro-side { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .play-top { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .step-name { max-width: 48%; }
}
@media (max-width: 520px) {
  .header-tag { display: none; }
  .scene-card { padding: 14px; border-radius: 18px; }
  .msg { padding: 14px; }
  .msg-text { font-size: 0.94rem; }
  .avatar { flex-basis: 40px; width: 40px; height: 40px; }
  .intro-cta { flex-direction: column; align-items: stretch; }
  .best-pill { text-align: center; }
  #btn-start { width: 100%; }
  .end-stats { gap: 8px; }
  .stat b { font-size: 1.12rem; }
}

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