/* =====================================================================
   فريق همم التطوعي — اختبار التفسير
   تصميم متجاوب (الجوال أولًا)، RTL، ألوان مستوحاة من شعار الفريق
   ===================================================================== */

:root {
  --teal: #2E9E9B;
  --teal-dark: #1F7C7A;
  --teal-deep: #155E5C;
  --teal-light: #E3F4F3;
  --teal-soft: #F1FAF9;
  --gold: #B69A5E;
  --gold-dark: #8E7440;
  --gold-deeper: #7c6536;
  --gold-light: #F6EFE0;
  --cream: #FBF8F1;
  --paper: #FFFFFF;
  --ink: #1E2A32;
  --muted: #6B7A85;
  --line: #E6E1D6;
  --success: #2EA86F;
  --success-light: #E4F6EC;
  --danger: #D9534F;
  --danger-light: #FBE7E6;
  --warn: #F2B134;
  --warn-light: #FFF5DC;
  --shadow: 0 6px 22px rgba(30, 42, 50, 0.07);
  --shadow-lg: 0 16px 44px rgba(30, 42, 50, 0.13);
  --radius: 16px;
  --radius-sm: 11px;
  --font: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  --font-quran: 'Amiri', 'Scheherazade New', 'Traditional Arabic', serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-size: 15px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-dark); text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 { margin: 0 0 .45rem; line-height: 1.35; font-weight: 800; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .7rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* خلفية زخرفية خفيفة */
.bg-pattern {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(46,158,155,.10), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(182,154,94,.12), transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%232E9E9B' stroke-opacity='.06' stroke-width='1'%3E%3Cpath d='M40 4l10 10-10 10-10-10zM40 56l10 10-10 10-10-10zM4 40l10-10 10 10-10 10zM56 40l10-10 10 10-10 10z'/%3E%3Ccircle cx='40' cy='40' r='14'/%3E%3C/g%3E%3C/svg%3E");
}

/* ------------------------------------------------ الرأس والذيل */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem 1rem;
  max-width: 760px; width: 100%; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 800; }
.brand-logo { height: 44px; width: auto; }
.brand-text { font-size: .95rem; color: var(--gold-dark); }
.site-footer {
  margin-top: auto; padding: 1.25rem 1rem; text-align: center; color: var(--muted); font-size: .8rem;
}
.footer-contact { margin-top: .2rem; }

.page { width: 100%; max-width: 760px; margin: 0 auto; padding: .4rem 1rem 2rem; }

/* ------------------------------------------------ البطاقات */
.card {
  background: var(--paper);
  border: 1px solid rgba(30, 42, 50, .05);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.1rem;
  margin-bottom: 1rem;
  animation: fadeUp .45s ease both;
}
.card + .card { animation-delay: .07s; }
.card-tight { padding: .85rem 1rem; }
.card-teal { background: linear-gradient(135deg, var(--teal-dark), var(--teal)); color: #fff; border: 0; }
.card-teal .muted { color: rgba(255,255,255,.8); }
.card-gold { background: linear-gradient(135deg, var(--gold-deeper), var(--gold-dark)); color: #fff; border: 0; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.85); opacity: 0; } 70% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
@keyframes pulse { 0%,100% { transform: scale(1); box-shadow: 0 8px 26px rgba(182,154,94,.35);} 50% { transform: scale(1.03); box-shadow: 0 12px 36px rgba(182,154,94,.55);} }
@keyframes wiggle { 0%,100% { transform: rotate(0);} 25% { transform: rotate(-6deg);} 75% { transform: rotate(6deg);} }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-6px);} }
@keyframes blink { 50% { opacity: .35; } }

/* ------------------------------------------------ الأزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 0; cursor: pointer; border-radius: 999px;
  padding: .65rem 1.35rem; font-weight: 800; font-size: .97rem;
  color: #fff; background: var(--teal);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 6px 18px rgba(46,158,155,.28);
  text-decoration: none; min-height: 46px;
}
.btn:hover { transform: translateY(-2px); background: var(--teal-dark); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-gold { background: linear-gradient(135deg, var(--gold-deeper), var(--gold-dark)); box-shadow: 0 6px 18px rgba(182,154,94,.35); }
.btn-gold:hover { background: linear-gradient(135deg, #6a5630, var(--gold-deeper)); }
.btn-ghost { background: transparent; color: var(--teal-dark); box-shadow: none; border: 2px solid var(--teal-light); }
.btn-ghost:hover { background: var(--teal-light); }
.btn-danger { background: var(--danger); box-shadow: 0 6px 18px rgba(217,83,79,.3); }
.btn-lg { padding: .85rem 1.8rem; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-prize { animation: pulse 1.8s ease-in-out infinite; font-size: 1.15rem; padding: .95rem 2rem; }
.btn .ico { font-size: 1.2em; }
.btn.small { font-size: .85rem; min-height: 40px; padding: .45rem 1rem; }

/* ------------------------------------------------ النماذج */
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .3rem; font-size: .95rem; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.input {
  width: 100%; padding: .65rem .9rem; border-radius: var(--radius-sm);
  border: 2px solid var(--line); background: #fff; font-size: .98rem; color: var(--ink);
  transition: border-color .15s, box-shadow .15s; min-height: 46px;
}
.input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(46,158,155,.15); }
.input.is-invalid { border-color: var(--danger); }
.input[dir="ltr"] { text-align: left; }
.error-text { color: var(--danger); font-size: .85rem; margin-top: .3rem; font-weight: 700; }
.choice-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.choice { flex: 1 1 120px; position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem .9rem; border-radius: var(--radius-sm); border: 2px solid var(--line);
  background: #fff; font-weight: 700; cursor: pointer; min-height: 46px; transition: all .15s; font-size: .95rem;
}
.choice input:checked + span { border-color: var(--teal); background: var(--teal-light); color: var(--teal-deep); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(46,158,155,.2); }

/* ------------------------------------------------ التنبيهات */
.alert { padding: .75rem 1rem; border-radius: var(--radius-sm); margin-bottom: .9rem; font-weight: 700; font-size: .93rem; }
.alert-success { background: var(--success-light); color: #1a6b46; }
.alert-danger { background: var(--danger-light); color: #9b2c28; }
.alert-warning { background: var(--warn-light); color: #7a5a0e; }
.alert-info { background: var(--teal-light); color: var(--teal-deep); }

/* ------------------------------------------------ الصفحة الرئيسية */
.hero { text-align: center; padding: .3rem 0 .8rem; }
.hero-logo { width: 130px; margin: 0 auto .4rem; animation: float 4s ease-in-out infinite; }
.hero h1 { font-size: 1.4rem; color: var(--teal-deep); }
.hero .sub { color: var(--gold-dark); font-weight: 700; font-size: .95rem; }
.hero .intro { color: var(--muted); max-width: 540px; margin: .45rem auto 0; font-size: .93rem; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .9rem 0; }
.stat {
  background: var(--teal-soft); border: 1px solid var(--teal-light); border-radius: var(--radius-sm);
  padding: .6rem .4rem; text-align: center;
}
.stat .ico { font-size: 1.3rem; line-height: 1; }
.stat .val { font-weight: 900; color: var(--teal-deep); font-size: 1rem; margin-top: .15rem; }
.stat .lbl { font-size: .74rem; color: var(--muted); }
.rules { list-style: none; padding: 0; margin: 0 0 .5rem; }
.rules li { display: flex; gap: .55rem; align-items: flex-start; padding: .3rem 0; font-size: .93rem; }
.rules li .ico { flex: 0 0 auto; }

/* ------------------------------------------------ الاختبار */
.quiz-top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251,248,241,.94); backdrop-filter: blur(8px);
  padding: .5rem 0 .45rem; margin: 0 -1rem; padding-inline: 1rem;
  border-bottom: 1px solid var(--line);
}
.quiz-meta { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .4rem; }
.timer {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--teal-deep); color: #fff; border-radius: 999px; padding: .25rem .85rem;
  font-weight: 900; font-variant-numeric: tabular-nums; font-size: .98rem; letter-spacing: .5px;
}
.timer.warn { background: var(--warn); color: #3a2a00; }
.timer.danger { background: var(--danger); animation: blink 1s steps(2) infinite; }
.progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 999px; transition: width .35s ease;
}
.progress-label { font-size: .82rem; color: var(--muted); font-weight: 700; }

.q-card { position: relative; }
.q-surah {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--gold-light); color: var(--gold-dark); border-radius: 999px;
  padding: .15rem .75rem; font-weight: 800; font-size: .85rem; margin-bottom: .5rem;
}
.q-num { color: var(--muted); font-size: .8rem; font-weight: 700; margin-right: .5rem; }
.q-text { font-size: 1.05rem; font-weight: 700; margin-bottom: .85rem; line-height: 1.8; }
.ayah, .q-text .ayah { font-family: var(--font-quran); font-size: 1.22em; color: var(--teal-deep); }
.options { display: grid; gap: .5rem; }
.option {
  display: flex; align-items: center; gap: .65rem; width: 100%; text-align: right;
  padding: .7rem .85rem; border-radius: var(--radius-sm); border: 2px solid var(--line);
  background: #fff; cursor: pointer; transition: all .15s ease; font-size: .95rem; font-weight: 600; color: var(--ink);
  min-height: 48px; line-height: 1.55;
}
.option:hover { border-color: var(--teal); background: var(--teal-soft); }
.option .letter {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal-light); color: var(--teal-deep); font-weight: 900; font-size: .9rem;
}
.option.selected { border-color: var(--teal); background: var(--teal-light); box-shadow: 0 0 0 4px rgba(46,158,155,.15); }
.option.selected .letter { background: var(--teal); color: #fff; }
.option.correct { border-color: var(--success); background: var(--success-light); }
.option.correct .letter { background: var(--success); color: #fff; }
.option.wrong { border-color: var(--danger); background: var(--danger-light); }
.option.wrong .letter { background: var(--danger); color: #fff; }
.option:disabled { cursor: default; }

.q-nav { display: flex; gap: .5rem; justify-content: space-between; margin-top: 1rem; flex-wrap: wrap; }
.q-nav .btn { flex: 1 1 40%; }
.q-dots { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; margin-top: .9rem; }
.q-dot {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); background: #fff;
  font-size: .72rem; font-weight: 800; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.q-dot.answered { background: var(--teal-light); border-color: var(--teal); color: var(--teal-deep); }
.q-dot.current { background: var(--teal); color: #fff; border-color: var(--teal); transform: scale(1.1); }

#encourage { min-height: 0; }
.encourage {
  display: flex; align-items: center; gap: .55rem; margin: .8rem 0 0;
  background: var(--gold-light); color: var(--gold-dark); border-radius: var(--radius-sm); padding: .55rem .85rem;
  font-weight: 700; font-size: .93rem; animation: pop .35s ease both;
}
.encourage .ico { font-size: 1.3rem; animation: wiggle .8s ease; }

/* ------------------------------------------------ النتيجة */
.result-hero { text-align: center; padding: .8rem 0 .4rem; position: relative; overflow: hidden; }
.score-ring { position: relative; width: 170px; height: 170px; margin: 0 auto .4rem; }
.score-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.score-ring .track { fill: none; stroke: var(--line); stroke-width: 12; }
.score-ring .bar { fill: none; stroke: url(#ringGrad); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1.6s cubic-bezier(.22,.9,.3,1); }
.score-ring .val {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-ring .val .big { font-size: 2.2rem; font-weight: 900; color: var(--teal-deep); line-height: 1; }
.score-ring .val .small { color: var(--muted); font-weight: 700; font-size: .85rem; }
.tier-title { font-size: 1.4rem; color: var(--gold-dark); margin-top: .4rem; animation: pop .6s .3s ease both; }
.tier-msg { max-width: 540px; margin: .2rem auto 0; color: var(--ink); font-weight: 600; font-size: .95rem; }
.stars { display: flex; justify-content: center; gap: .2rem; font-size: 1.5rem; margin: .35rem 0; }
.stars span { opacity: .22; filter: grayscale(1); animation: starPop .4s ease both; }
.stars span.on { opacity: 1; filter: drop-shadow(0 4px 8px rgba(182,154,94,.5)); }
@keyframes starPop { 0% { transform: scale(.4); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .9rem 0 0; }
.result-stats .stat .val { font-size: 1.15rem; }
.stat.ok .val { color: var(--success); }
.stat.bad .val { color: var(--danger); }
.stat.skip .val { color: var(--muted); }

.prize-cta { text-align: center; padding: 1.2rem 1rem; }
.prize-cta h2 { color: #fff; font-size: 1.2rem; }
.prize-cta p { color: #fff; font-size: .93rem; }
.prize-cta .btn { margin-top: .5rem; background: #fff; color: var(--gold-dark); }

.review-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem; margin-bottom: .7rem; background: #fff; font-size: .93rem; }
.review-item.ok { border-color: rgba(46,168,111,.4); }
.review-item.bad { border-color: rgba(217,83,79,.4); }
.review-item.skip { border-color: rgba(107,122,133,.35); }
.review-head { display: flex; align-items: flex-start; gap: .55rem; margin-bottom: .5rem; }
.review-head .mark { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: .85rem; }
.review-item.ok .mark { background: var(--success); }
.review-item.bad .mark { background: var(--danger); }
.review-item.skip .mark { background: var(--muted); }
.review-q { font-weight: 700; flex: 1; line-height: 1.7; }
.review-line { display: flex; gap: .45rem; align-items: flex-start; padding: .3rem .55rem; border-radius: 8px; margin-bottom: .25rem; font-size: .92rem; }
.review-line.you { background: var(--danger-light); }
.review-line.you.ok { background: var(--success-light); }
.review-line.correct { background: var(--success-light); }
.review-line .tag { flex: 0 0 auto; font-weight: 800; font-size: .8rem; }
.review-exp { font-size: .87rem; color: var(--muted); margin-top: .35rem; border-right: 3px solid var(--gold); padding-right: .55rem; }
.summary-toggle { width: 100%; text-align: center; }

/* ------------------------------------------------ الجوائز */
.prize-head { text-align: center; }
.prize-head h1 { color: var(--teal-deep); font-size: 1.3rem; }
.prize-head p { font-size: .93rem; }
.section-title { display: flex; align-items: center; gap: .45rem; font-size: 1.05rem; color: var(--gold-dark); margin: .2rem 0 .7rem; font-weight: 800; }
.section-title .step {
  width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; flex: 0 0 auto; font-size: .85rem;
}
.pick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; }
.pick-card {
  position: relative; border: 3px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer;
  padding: .6rem .5rem .7rem; text-align: center; transition: all .18s ease; overflow: hidden;
}
.pick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal-light); }
.pick-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; margin: 0 auto .3rem; }
.pick-card .name { font-weight: 800; font-size: .95rem; }
.pick-card .sub { font-size: .78rem; color: var(--muted); }
.pick-card .check {
  position: absolute; top: .45rem; right: .45rem; width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal); color: #fff; display: none; align-items: center; justify-content: center; font-weight: 900;
  box-shadow: 0 4px 12px rgba(46,158,155,.45); animation: pop .3s ease both;
}
.pick-card.selected { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 0 0 4px rgba(46,158,155,.15); }
.pick-card.selected .check { display: inline-flex; }
.pick-card .flame {
  position: absolute; top: .45rem; left: .45rem; background: linear-gradient(135deg,#ff7a00,#ff3d00); color: #fff;
  border-radius: 999px; padding: .05rem .55rem; font-size: .75rem; font-weight: 800; box-shadow: 0 4px 10px rgba(255,61,0,.35);
}
.pick-card .mild {
  position: absolute; top: .45rem; left: .45rem; background: var(--teal-light); color: var(--teal-deep);
  border-radius: 999px; padding: .05rem .55rem; font-size: .75rem; font-weight: 800;
}
.pick-grid.drinks { grid-template-columns: repeat(4, 1fr); }
.pick-grid.drinks .pick-card { padding: .45rem .3rem .55rem; }
.pick-grid.drinks .name { font-size: .82rem; }
@media (max-width: 420px) { .pick-grid.drinks { grid-template-columns: repeat(2, 1fr); } }

.summary-box {
  display: flex; gap: .7rem; align-items: center; background: var(--gold-light); border-radius: var(--radius-sm); padding: .7rem .9rem; margin-top: .9rem;
  font-weight: 700; flex-wrap: wrap; font-size: .93rem;
}
.summary-box .item { display: flex; align-items: center; gap: .35rem; }
.summary-box .item .lbl { color: var(--muted); font-size: .82rem; }

/* ------------------------------------------------ قسيمة الجائزة */
.voucher {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; position: relative;
  border: 2px dashed var(--gold);
}
.voucher-head { background: linear-gradient(135deg, var(--teal-dark), var(--teal)); color: #fff; padding: 1rem; text-align: center; }
.voucher-head h2 { color: #fff; font-size: 1.15rem; }
.voucher-body { padding: 1rem; }
.voucher-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.voucher-row:last-child { border-bottom: 0; }
.voucher-row .k { color: var(--muted); font-weight: 700; }
.voucher-row .v { font-weight: 800; }
.voucher-code {
  text-align: center; font-size: 1.7rem; font-weight: 900; letter-spacing: 3px; direction: ltr;
  background: var(--gold-light); color: var(--gold-dark); border-radius: var(--radius-sm); padding: .5rem; margin: .7rem 0;
}
.voucher-imgs { display: flex; justify-content: center; gap: 1rem; margin: .4rem 0; }
.voucher-imgs img { width: 100px; height: 100px; object-fit: contain; }

/* ------------------------------------------------ مودال */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(20,30,35,.55); display: none; align-items: center; justify-content: center; z-index: 50; padding: 1rem;
}
.modal-backdrop.open { display: flex; }
.modal { background: #fff; border-radius: var(--radius); padding: 1.3rem; max-width: 400px; width: 100%; box-shadow: var(--shadow-lg); animation: pop .25s ease both; text-align: center; }
.modal h3 { color: var(--teal-deep); font-size: 1.1rem; }
.modal p { font-size: .95rem; }
.modal .actions { display: flex; gap: .5rem; margin-top: .9rem; }
.modal .actions .btn { flex: 1; }

/* ------------------------------------------------ توست */
#toast-root { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: .5rem; width: min(92vw, 420px); }
.toast { background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 999px; text-align: center; font-weight: 700; box-shadow: var(--shadow-lg); animation: pop .25s ease both; font-size: .9rem; }
.toast.success { background: var(--success); }
.toast.danger { background: var(--danger); }
.toast.gold { background: var(--gold-dark); }

/* ------------------------------------------------ كونفيتي */
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; }

/* ------------------------------------------------ متفرقات */
.badge { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.badge-teal { background: var(--teal-light); color: var(--teal-deep); }
.badge-gold { background: var(--gold-light); color: var(--gold-dark); }
.badge-green { background: var(--success-light); color: #1a6b46; }
.badge-red { background: var(--danger-light); color: #9b2c28; }
.divider { height: 1px; background: var(--line); margin: .9rem 0; }
.spacer { height: .5rem; }
.small { font-size: .86rem; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; }

@media (min-width: 640px) {
  html { font-size: 15.5px; }
  .hero h1 { font-size: 1.75rem; }
  .card { padding: 1.6rem; }
  .brand-logo { height: 52px; }
  .q-text { font-size: 1.12rem; }
  .pick-grid { grid-template-columns: repeat(3, 1fr); }
  .score-ring { width: 180px; height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .site-footer, .btn, .bg-pattern, #toast-root, #confetti, form { display: none !important; }
  .voucher { box-shadow: none; break-inside: avoid; }
  .voucher-head { background: none !important; color: var(--teal-deep); border-bottom: 2px solid var(--teal-dark); }
  .voucher-head h2 { color: var(--teal-deep); }
  .voucher-code { border: 2px solid var(--gold); }
}
