/* =============================================================
   اختبار إشارات المرور — النسخة النهائية v3
   تطوير: سليمان بن خالد الحسني
   إشراف: خالد بن سالم الحسني
   جميع الحقوق محفوظة © 2026
   ============================================================= */

/* ─── TOKENS ─────────────────────────────────────────────────── */
:root {
  --bg:         #0b0f14;
  --surface:    #111820;
  --card:       #151d28;
  --border:     #1e2f45;
  --border-hi:  #2a4060;

  --red:        #c0392b;
  --red-lt:     #e74c3c;
  --gold:       #d4a843;
  --gold-lt:    #f0c060;
  --green:      #1e8a4a;
  --green-lt:   #27ae60;
  --blue:       #2980b9;

  --txt:        #e8e0d4;
  --txt-sec:    #8fa4bc;
  --txt-muted:  #4a6278;

  --r-sm: 8px;  --r-md: 14px;  --r-lg: 22px;  --r-xl: 32px;

  --shadow-red:  0 0 28px rgba(192,57,43,.35);
  --shadow-gold: 0 0 20px rgba(212,168,67,.2);

  --tr: .24s cubic-bezier(.4,0,.2,1);

  /* Font stacks — swapped by JS on lang change */
  --font-ar: 'Tajawal', sans-serif;
  --font-en: 'Inter', sans-serif;
  --font: var(--font-ar);
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg); color: var(--txt);
  direction: rtl;
  min-height: 100dvh; overflow-x: hidden; line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); }

/* ── LTR override (English mode) ─────────────────────────────── */
html[lang="en"] body { direction: ltr; font-family: var(--font-en); }
html[lang="en"] .btn-arrow { transform: scaleX(-1); }
html[lang="en"] .back-arrow { transform: scaleX(-1) !important; display: inline-block; }
html[lang="en"] .hero-title { letter-spacing: -0.03em; }

/* ─── SCREEN SYSTEM ──────────────────────────────────────────── */
.screen { display: none; min-height: 100dvh; flex-direction: column; }
.screen.active { display: flex; animation: screenIn .38s ease forwards; }
@keyframes screenIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── LANDING BG ─────────────────────────────────────────────── */
#landing-screen {
  position: relative;
  background: radial-gradient(ellipse at 30% 0%, #1a2535 0%, var(--bg) 60%);
}
.hero-bg {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.road-lines {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 6px; height: 100%;
  background: repeating-linear-gradient(
    to bottom, transparent 0, transparent 28px,
    rgba(212,168,67,.07) 28px, rgba(212,168,67,.07) 60px
  );
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(30,47,69,.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,47,69,.25) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

/* ─── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
}
.header-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,168,67,.1);
  border: 1px solid rgba(212,168,67,.25);
  color: var(--gold); font-size: .78rem; font-weight: 700;
  padding: 6px 14px; border-radius: 50px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-lt);
  box-shadow: 0 0 8px var(--green-lt);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .4; }
}

/* Language toggle */
.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-hi);
  border-radius: 50px;
  padding: 7px 14px; cursor: pointer;
  color: var(--txt-sec); font-size: .8rem; font-weight: 700;
  transition: var(--tr);
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold); }
.lang-icon { font-size: .9rem; }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero-content {
  flex: 1; position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 22px 40px; text-align: center;
  max-width: 640px; margin: 0 auto; width: 100%;
}
.hero-title {
  font-size: clamp(2.8rem, 11vw, 5rem);
  font-weight: 900; line-height: 1.02; margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.title-accent  { color: var(--gold); display: block; }
.title-outline {
  -webkit-text-stroke: 2px var(--txt-sec);
  color: transparent; display: block;
}
.hero-subtitle {
  font-size: clamp(.88rem, 3vw, 1rem);
  color: var(--txt-sec); line-height: 1.8;
  margin-bottom: 26px; max-width: 400px; font-weight: 400;
}

/* Stats */
.stats-row {
  display: flex; align-items: center;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 20px; margin-bottom: 26px;
  width: 100%; max-width: 340px;
}
.stat-item { flex: 1; text-align: center; }
.stat-number { font-size: 1.45rem; font-weight: 900; color: var(--gold); line-height: 1; }
.stat-label  { font-size: .68rem; color: var(--txt-muted); margin-top: 2px; font-weight: 600; }
.stat-divider{ width: 1px; height: 32px; background: var(--border); margin: 0 4px; }

/* Count selector */
.count-selector-block {
  width: 100%; max-width: 380px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px; margin-bottom: 20px;
}
.count-label {
  font-size: .83rem; font-weight: 700;
  color: var(--txt-sec); margin-bottom: 10px;
}
.count-options {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 10px;
}
.count-btn {
  padding: 11px 6px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--txt-sec); font-size: .9rem; font-weight: 800;
  cursor: pointer; transition: var(--tr);
}
.count-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(212,168,67,.06); }
.count-btn.active {
  background: rgba(212,168,67,.12);
  border-color: var(--gold); color: var(--gold);
  box-shadow: 0 0 12px rgba(212,168,67,.15);
}
.count-hint {
  font-size: .75rem; color: var(--txt-muted); text-align: center;
}
.count-hint strong { color: var(--gold-lt); }

/* Start button */
.btn-start {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; max-width: 320px; padding: 17px 24px;
  background: linear-gradient(135deg, var(--red) 0%, #8b1a0f 100%);
  border: none; border-radius: var(--r-lg);
  color: #fff; font-size: 1.08rem; font-weight: 800;
  cursor: pointer; margin-bottom: 22px;
  box-shadow: var(--shadow-red), 0 2px 0 rgba(0,0,0,.3);
  transition: var(--tr); position: relative; overflow: hidden;
}
.btn-start::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.07));
  pointer-events: none;
}
.btn-start:hover { transform: translateY(-2px); box-shadow: 0 0 38px rgba(192,57,43,.5), 0 6px 20px rgba(0,0,0,.4); }
.btn-start:active { transform: none; }
.btn-arrow { font-size: 1.1rem; transition: transform var(--tr); }
.btn-start:hover .btn-arrow { transform: translateX(-4px); }

/* Features grid */
.features-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px; width: 100%; max-width: 380px;
}
.feature-card {
  display: flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 11px 14px; transition: var(--tr);
}
.feature-card:hover { background: rgba(255,255,255,.04); border-color: var(--border-hi); }
.feature-icon { font-size: 1rem; }
.feature-text { font-size: .75rem; font-weight: 600; color: var(--txt-sec); }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.3);
}
.footer-main {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 20px 20px 12px; text-align: center;
}
.footer-credit p {
  font-size: .76rem; color: var(--txt-sec); line-height: 1.7;
}
.footer-credit strong { color: var(--gold-lt); font-weight: 700; }

/* Contact buttons */
.footer-contact { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.contact-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 50px;
  font-size: .78rem; font-weight: 700;
  transition: var(--tr); cursor: pointer;
}
.contact-btn.whatsapp {
  background: rgba(37,211,102,.12);
  border: 1px solid rgba(37,211,102,.3);
  color: #25d166;
}
.contact-btn.whatsapp:hover { background: rgba(37,211,102,.22); }
.contact-btn.email {
  background: rgba(41,128,185,.12);
  border: 1px solid rgba(41,128,185,.3);
  color: #5baee0;
}
.contact-btn.email:hover { background: rgba(41,128,185,.22); }

/* Disclaimer */
.footer-disclaimer {
  padding: 10px 20px;
  border-top: 1px solid rgba(255,255,255,.04);
  text-align: center;
}
.footer-disclaimer p {
  font-size: .68rem; color: var(--txt-muted);
  line-height: 1.65; max-width: 500px; margin: 0 auto;
}

/* Copyright */
.footer-copy {
  padding: 8px 20px 14px; text-align: center;
}
.footer-copy p { font-size: .64rem; color: rgba(255,255,255,.18); }

/* Compact footer (test screen) */
.site-footer--compact .footer-copy { padding: 12px 20px; }
.site-footer--compact .footer-copy p { font-size: .68rem; color: var(--txt-muted); }

/* ─── TEST TOPBAR ────────────────────────────────────────────── */
.test-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,15,20,.96); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; gap: 8px;
}
.back-btn {
  display: flex; align-items: center; gap: 5px;
  background: none; border: 1px solid var(--border);
  color: var(--txt-sec); font-size: .74rem; font-weight: 700;
  padding: 6px 12px; border-radius: 50px; cursor: pointer;
  transition: var(--tr); white-space: nowrap;
}
.back-btn:hover { border-color: var(--gold); color: var(--gold); }
.progress-info  { font-size: .8rem; font-weight: 700; color: var(--txt); }
.answered-info  { font-size: .72rem; color: var(--txt-muted); white-space: nowrap; }
#answered-count { color: var(--green-lt); font-weight: 800; }
.progress-track { height: 3px; background: rgba(255,255,255,.04); }
.progress-fill  {
  height: 100%;
  background: linear-gradient(90deg, var(--green) 0%, var(--gold) 100%);
  transition: width .4s ease; border-radius: 0 3px 3px 0;
}

/* ─── QUESTION CARDS ─────────────────────────────────────────── */
.questions-container {
  flex: 1; padding: 18px 14px;
  max-width: 680px; margin: 0 auto; width: 100%;
}
.question-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px; margin-bottom: 12px;
  transition: border-color var(--tr);
}
.question-card.answered { border-color: rgba(39,174,96,.35); }

.q-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.q-num {
  min-width: 32px; height: 32px;
  background: rgba(212,168,67,.1); border: 1px solid rgba(212,168,67,.2);
  color: var(--gold); font-size: .76rem; font-weight: 800;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.question-card.answered .q-num {
  background: rgba(39,174,96,.15); border-color: rgba(39,174,96,.35); color: var(--green-lt);
}
.q-text { font-size: .92rem; font-weight: 600; color: var(--txt); line-height: 1.55; flex: 1; }

.q-image-area {
  width: 100%; aspect-ratio: 16/7;
  background: rgba(255,255,255,.03); border: 2px dashed rgba(255,255,255,.06);
  border-radius: var(--r-md); display: flex; align-items: center;
  justify-content: center; margin-bottom: 12px; overflow: hidden;
}
.q-image-area img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-sm); }
.q-image-placeholder { font-size: .8rem; color: var(--txt-muted); }

.options-list { display: flex; flex-direction: column; gap: 7px; }
.option-label {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  cursor: pointer; transition: var(--tr);
  background: rgba(255,255,255,.02);
}
.option-label:hover { background: rgba(212,168,67,.05); border-color: rgba(212,168,67,.3); }
.option-label input[type="radio"] { display: none; }
.option-dot {
  width: 17px; height: 17px;
  border: 2px solid var(--border-hi);
  border-radius: 50%; flex-shrink: 0; transition: var(--tr); position: relative;
}
.option-label input:checked ~ .option-dot {
  border-color: var(--gold); background: var(--gold);
  box-shadow: 0 0 10px rgba(212,168,67,.4);
}
.option-label input:checked ~ .option-dot::after {
  content: ''; position: absolute; inset: 3px;
  background: var(--bg); border-radius: 50%;
}
.option-label:has(input:checked) {
  background: rgba(212,168,67,.07); border-color: rgba(212,168,67,.4);
}
.option-text { font-size: .86rem; font-weight: 500; color: var(--txt); line-height: 1.45; }

/* Submit */
.submit-zone {
  padding: 16px 14px 8px;
  max-width: 680px; margin: 0 auto; width: 100%;
}
.submit-warning {
  display: flex; align-items: center; gap: 10px;
  background: rgba(192,57,43,.1); border: 1px solid rgba(192,57,43,.3);
  border-radius: var(--r-md); color: #e07060;
  font-size: .84rem; font-weight: 600; padding: 11px 16px; margin-bottom: 10px;
}
.submit-warning.hidden { display: none; }
.btn-submit {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 24px;
  background: linear-gradient(135deg, var(--green) 0%, #145c32 100%);
  border: none; border-radius: var(--r-lg);
  color: #fff; font-size: 1rem; font-weight: 800; cursor: pointer;
  box-shadow: 0 0 22px rgba(30,138,74,.3), 0 2px 0 rgba(0,0,0,.3);
  transition: var(--tr);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(30,138,74,.5), 0 6px 20px rgba(0,0,0,.4); }

/* ─── RESULT SCREEN ──────────────────────────────────────────── */
#result-screen { background: var(--bg); }
.result-header {
  position: relative; padding: 34px 22px 50px;
  text-align: center; overflow: hidden;
}
.result-header-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(212,168,67,.1) 0%, transparent 70%);
}
.result-header-content { position: relative; z-index: 1; }
.result-medal {
  font-size: 3rem; margin-bottom: 8px;
  animation: bounceIn .6s cubic-bezier(.175,.885,.32,1.275);
}
@keyframes bounceIn {
  from { transform: scale(0) rotate(-20deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}
.result-title { font-size: 1.3rem; font-weight: 800; }

.result-body {
  flex: 1; padding: 0 14px 22px;
  max-width: 520px; margin: 0 auto; width: 100%;
}

/* Score ring */
.score-display {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; margin-bottom: 20px;
}
.score-ring-wrapper { position: relative; width: 148px; height: 148px; }
.score-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg   { fill: none; stroke: rgba(255,255,255,.05); stroke-width: 10; }
.ring-fill {
  fill: none; stroke: var(--gold); stroke-width: 10; stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1), stroke .5s ease;
}
.score-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-number { font-size: 2.3rem; font-weight: 900; color: var(--gold); line-height: 1; }
.score-denom  { font-size: .74rem; color: var(--txt-muted); font-weight: 600; }
.score-meta   { text-align: center; }
.score-pct-badge    { font-size: 1.65rem; font-weight: 900; margin-bottom: 4px; }
.score-status-text  { font-size: .88rem; font-weight: 700; color: var(--txt-sec); }

/* Comparison */
.comparison-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 15px 17px; margin-bottom: 14px;
  display: flex; align-items: flex-start; gap: 13px;
  animation: slideUp .5s ease .3s both;
}
@keyframes slideUp {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.comparison-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.comparison-text { font-size: .87rem; font-weight: 500; color: var(--txt-sec); line-height: 1.65; }
.comparison-text strong { color: var(--txt); font-weight: 700; }

/* Stats row */
.result-stats-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px;
  animation: slideUp .5s ease .4s both;
}
.result-stat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 15px; text-align: center;
}
.rs-value { font-size: 1.85rem; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.rs-value.correct { color: var(--green-lt); }
.rs-value.wrong   { color: var(--red-lt); }
.rs-label { font-size: .72rem; color: var(--txt-muted); font-weight: 600; }

/* Review section */
.review-section {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); margin-bottom: 18px; overflow: hidden;
  animation: slideUp .5s ease .5s both;
}
.review-section.hidden { display: none; }
.review-header {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 17px; cursor: pointer; transition: background var(--tr);
}
.review-header:hover { background: rgba(255,255,255,.03); }
.review-icon  { font-size: 1.1rem; }
.review-title { flex: 1; font-size: .92rem; font-weight: 800; }
.review-toggle{ font-size: .74rem; font-weight: 700; color: var(--gold); white-space: nowrap; }

.review-list { padding: 0 15px 15px; }
.review-item {
  border-bottom: 1px solid var(--border); padding: 15px 0;
}
.review-item:last-child { border-bottom: none; }
.review-q-num {
  display: inline-block;
  background: rgba(192,57,43,.12); border: 1px solid rgba(192,57,43,.25);
  color: #e07060; font-size: .68rem; font-weight: 800;
  padding: 2px 10px; border-radius: 50px; margin-bottom: 7px;
}
.review-q-text {
  font-size: .86rem; font-weight: 600; color: var(--txt);
  margin-bottom: 9px; line-height: 1.5;
}
.review-answers { display: flex; flex-direction: column; gap: 6px; }
.review-answer {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 8px 11px; border-radius: var(--r-sm);
  font-size: .8rem; font-weight: 600; line-height: 1.4;
}
.review-answer.wrong-ans {
  background: rgba(192,57,43,.1); border: 1px solid rgba(192,57,43,.22); color: #e07060;
}
.review-answer.correct-ans {
  background: rgba(39,174,96,.1); border: 1px solid rgba(39,174,96,.22); color: var(--green-lt);
}
.review-ans-icon { flex-shrink: 0; }
.review-ans-label { font-size: .68rem; opacity: .7; display: block; margin-bottom: 1px; }

/* Result actions */
.result-actions {
  display: flex; flex-direction: column; gap: 9px;
  animation: slideUp .5s ease .6s both;
}
.btn-retry {
  padding: 15px;
  background: linear-gradient(135deg, var(--red) 0%, #8b1a0f 100%);
  border: none; border-radius: var(--r-lg);
  color: #fff; font-size: .97rem; font-weight: 800; cursor: pointer;
  box-shadow: var(--shadow-red); transition: var(--tr);
}
.btn-retry:hover { transform: translateY(-2px); }
.btn-home-result {
  padding: 13px; background: transparent;
  border: 1px solid var(--border-hi); border-radius: var(--r-lg);
  color: var(--txt-sec); font-size: .92rem; font-weight: 700; cursor: pointer;
  transition: var(--tr);
}
.btn-home-result:hover { border-color: var(--gold); color: var(--gold); }

/* ─── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 10px; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (min-width: 480px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
  .count-options { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .hero-content    { padding: 28px 40px 52px; }
  .footer-main     { flex-direction: row; justify-content: space-between; text-align: right; }
  html[lang="en"] .footer-main { text-align: left; }
  .questions-container, .submit-zone { padding: 24px 28px; }
  .topbar-inner    { padding: 12px 28px; }
  .result-body     { padding: 0 28px 30px; }
  .result-actions  { flex-direction: row; }
  .btn-retry, .btn-home-result { flex: 1; }
}

/* ─── UTILITY ─────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ─── ACCESSIBILITY: FOCUS VISIBLE ───────────────────────────── */
button:focus-visible,
.option-label:focus-visible,
.count-btn:focus-visible,
.contact-btn:focus-visible,
.lang-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── SHARE RESULT BUTTON ─────────────────────────────────────── */
.btn-share {
  width: 100%;
  padding: 15px 24px;
  background: linear-gradient(135deg, #1877f2 0%, #0f52b8 100%);
  border: none;
  border-radius: var(--r-lg);
  color: #fff;
  font-size: .97rem;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 22px rgba(24,119,242,.3), 0 2px 0 rgba(0,0,0,.3);
  transition: var(--tr);
}
.btn-share:hover  { transform: translateY(-2px); box-shadow: 0 0 34px rgba(24,119,242,.5), 0 6px 20px rgba(0,0,0,.4); }
.btn-share:active { transform: none; }
.btn-share:disabled { opacity: .65; cursor: default; transform: none; }

/* ─── MOBILE CRITICAL FIXES ───────────────────────────────────── */
@media (max-width: 380px) {
  .hero-title   { font-size: 2.3rem; }
  .btn-start    { font-size: .93rem; padding: 14px 16px; }
  .count-btn    { padding: 9px 4px; font-size: .8rem; }
  .stats-row    { padding: 10px 10px; }
  .stat-number  { font-size: 1.2rem; }
  .topbar-inner { padding: 8px 10px; gap: 5px; }
  .back-btn     { padding: 5px 9px; font-size: .68rem; }
  .progress-info{ font-size: .7rem; }
  .result-body  { padding: 0 10px 16px; }
  .score-ring-wrapper { width: 120px; height: 120px; }
  .score-number { font-size: 1.9rem; }
}

/* ─── SAFE AREA INSETS (iPhone notch) ────────────────────────── */
@supports (padding: max(0px)) {
  .submit-zone,
  .site-footer {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}
