/* مینی‌اپ جشنواره مجتمع آموزشی شیخی — دنیای «پاسخ‌برگ»: کاغذ سفید، جوهر مشکی، حباب‌های قرمز لوگو */
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Black.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --paper: #FBFAF7;
  --card: #FFFFFF;
  --ink: #141414;
  --ink-2: #3F3C39;
  --muted: #6B6661;
  --line: #E6E1D9;
  --line-2: #D6D0C6;
  --red: #DB0210;
  --red-ink: #B4000D;
  --red-wash: #FCEBEC;
  --green: #1F5C3A;
  --green-wash: #E7F0EA;
  --amber-wash: #FFF4DC;
  --r: 16px;
  --r-sm: 10px;
  --sh-1: 0 1px 2px rgba(20, 20, 20, .05), 0 6px 18px -10px rgba(20, 20, 20, .16);
  --sh-2: 0 2px 4px rgba(20, 20, 20, .06), 0 18px 40px -18px rgba(20, 20, 20, .32);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: 'Vazirmatn', 'Vazir', Tahoma, system-ui, sans-serif;
  --display: 'Lalezar', 'Vazirmatn', Tahoma, sans-serif;
  --tabs-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.8 var(--font); font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
}
::selection { background: var(--red-wash); color: var(--red-ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 6px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--red-ink); text-underline-offset: 3px; }
bdi, .ltr { unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
input { caret-color: var(--red); }

#app { max-width: 520px; margin: 0 auto; padding: 0 16px calc(var(--tabs-h) + var(--safe-b) + 28px); }
#app.no-tabs { padding-bottom: 32px; }

/* ── boot ── */
.boot { min-height: 80dvh; display: grid; place-content: center; justify-items: center; gap: 18px; }
.boot-dots { display: flex; gap: 8px; }
.boot-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: bub 1s var(--ease) infinite; }
.boot-dots i:nth-child(2) { animation-delay: .15s; } .boot-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bub { 0%, 100% { transform: scale(.6); opacity: .35; } 50% { transform: scale(1); opacity: 1; } }

/* ── header ── */
.top { display: flex; align-items: center; gap: 12px; padding: 16px 0 10px; }
.top img { width: 44px; height: 44px; flex: none; }
.top .t1 { font-weight: 700; font-size: 15px; line-height: 1.5; }
.top .t2 { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.top .sp { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.chip svg { width: 15px; height: 15px; color: var(--red); }

h1, h2, h3 { margin: 0; line-height: 1.5; text-wrap: balance; }
h2.sec { font-size: 17px; font-weight: 900; margin: 28px 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
h2.sec small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ── surfaces ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
.pad { padding: 16px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .15s var(--ease), background .2s, box-shadow .2s; user-select: none; }
.btn:active { transform: scale(.98); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 8px 18px -10px rgba(219, 2, 16, .7); }
.btn-red:hover { background: #C8020F; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }
.btn.is-loading::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-inline-start-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 6px 2px; color: var(--red-ink); font-weight: 700; font-size: 13.5px; }

/* ── gate / onboarding ── */
.gift {
  position: relative; margin-top: 6px; padding: 22px 20px 20px; border-radius: 20px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, #2A2A2A 0%, var(--ink) 55%);
  box-shadow: var(--sh-2);
}
.gift::before, .gift::after { content: ''; position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); transform: translateY(-50%); }
.gift::before { inset-inline-start: -11px; } .gift::after { inset-inline-end: -11px; }
.gift .perf { position: absolute; inset-inline: 22px; top: 50%; border-top: 2px dashed rgba(255,255,255,.14); }
.gift .k { font-size: 13px; color: #CFCAC3; }
.gift .amt { font: 900 40px/1.25 var(--font); letter-spacing: -.5px; margin-top: 2px; }
.gift .amt small { font-size: 16px; font-weight: 700; color: #CFCAC3; margin-inline-start: 4px; }
.gift .lo { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: 30px; font-size: 13px; color: #E9E5DF; }
.gift .stamp { width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--red); display: grid; place-items: center; color: #fff; background: var(--red); font: 400 15px/1.1 var(--display); text-align: center; transform: rotate(-12deg); flex: none; }
.festival { font: 400 26px/1.45 var(--display); margin: 18px 0 4px; }
.festival em { font-style: normal; color: var(--red); }

.sheet-steps { margin-top: 18px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 0 12px; padding: 16px; }
.step + .step { border-top: 1px dashed var(--line-2); }
.bubble { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 15px; background: var(--card); transition: background .35s var(--ease), border-color .35s, color .35s; }
.step.done .bubble { background: var(--red); border-color: var(--red); color: #fff; animation: fill .5s var(--ease); }
.step.done .bubble svg { width: 18px; height: 18px; }
@keyframes fill { from { transform: scale(.7); } to { transform: scale(1); } }
.step .st { font-weight: 700; font-size: 15.5px; }
.step .sd { color: var(--muted); font-size: 13.5px; }
.step .body { grid-column: 2; margin-top: 12px; }
.step.locked { opacity: .5; }
.step.done .body { display: none; }

/* ── form ── */
.field { display: block; }
.field + .field { margin-top: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field > span i { font-style: normal; color: var(--muted); font-weight: 400; }
.input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20,20,20,.08); }
.input.ltr { direction: ltr; text-align: right; }
.input::placeholder { color: #8E8984; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grades { display: flex; flex-wrap: wrap; gap: 8px; }
.grades label { position: relative; }
.grades input { position: absolute; opacity: 0; }
.grades span { display: inline-flex; min-height: 40px; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-size: 14px; font-weight: 500; }
.grades input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.grades input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.err { color: var(--red-ink); font-size: 13px; margin-top: 8px; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--amber-wash); font-size: 13px; color: #5A4310; }
.note svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }

/* ── home ── */
.cheque { position: relative; padding: 18px 18px 16px; border-radius: 20px; color: #fff; background: var(--ink); box-shadow: var(--sh-2); overflow: hidden; }
.cheque .logo-w { position: absolute; inset-inline-end: -36px; top: -30px; width: 150px; opacity: .07; filter: grayscale(1) invert(1); pointer-events: none; }
.cheque .k { font-size: 13px; color: #CFCAC3; }
.cheque .amt { font: 900 34px/1.3 var(--font); }
.cheque .amt small { font-size: 14px; color: #CFCAC3; font-weight: 700; margin-inline-start: 4px; }
.cheque .meta { margin-top: 14px; padding-top: 12px; border-top: 2px dashed rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: #DAD5CE; }

.tally { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tally button { text-align: start; padding: 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; }
.tally .v { font: 900 26px/1.3 var(--font); }
.tally .l { grid-column: 1; font-size: 13px; color: var(--muted); }
.tally svg { grid-row: 1 / span 2; grid-column: 2; width: 34px; height: 34px; color: var(--red); }

.streak { padding: 16px; }
.streak .bubbles { display: flex; justify-content: space-between; margin: 14px 0; }
.streak .b { display: grid; justify-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); }
.streak .b i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; }
.streak .b.on i { background: var(--red); border-color: var(--red); }
.streak .b.on i::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.streak .b.today i { border-color: var(--ink); border-style: dashed; }
.streak .b.goal i { border-color: var(--red); color: var(--red); }
.streak .b.goal i svg { width: 15px; height: 15px; }

.countdown { display: flex; align-items: center; gap: 14px; padding: 16px; }
.countdown .cells { display: flex; gap: 6px; direction: rtl; }
.countdown .cell { min-width: 48px; padding: 6px 4px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); text-align: center; }
.countdown .cell b { display: block; font: 900 20px/1.3 var(--font); }
.countdown .cell span { font-size: 11px; color: var(--muted); }

.ways { counter-reset: w; }
.way { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; padding: 13px 16px; }
.way + .way { border-top: 1px solid var(--line); }
.way .d { width: 26px; height: 26px; border-radius: 50%; background: var(--red-wash); color: var(--red-ink); display: grid; place-items: center; }
.way .d svg { width: 15px; height: 15px; }
.way .wt { font-weight: 700; font-size: 14.5px; }
.way .ws { font-size: 12.5px; color: var(--muted); }
.way .wr { font-size: 12.5px; font-weight: 700; color: var(--green); white-space: nowrap; text-align: end; }

.ledger .li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; font-size: 13.5px; }
.ledger .li + .li { border-top: 1px solid var(--line); }
.ledger .li .p { color: var(--green); font-weight: 700; white-space: nowrap; }
.ledger .li .m { color: var(--muted); font-size: 12px; }

/* ── wheel ── */
.wheel-wrap { position: relative; width: min(100%, 340px); margin: 18px auto 0; aspect-ratio: 1; }
.wheel-wrap svg.wheel { width: 100%; height: 100%; transition: transform 5.2s cubic-bezier(.12, .78, .12, 1); filter: drop-shadow(0 14px 22px rgba(20,20,20,.22)); }
.wheel-wrap .pin { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 34px; height: 44px; z-index: 2; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
.wheel-wrap .hub { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 26%; aspect-ratio: 1; border-radius: 50%; background: #fff; border: 4px solid var(--ink); display: grid; place-items: center; box-shadow: var(--sh-1); }
.wheel-wrap .hub img { width: 86%; }
.spins-left { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.spins-left b { color: var(--ink); font-size: 18px; }
.odds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.odds div { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 13px; }
.odds i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; }

/* ── exams ── */
.exam { padding: 16px; }
.exam + .exam { margin-top: 10px; }
.exam .et { font-weight: 700; font-size: 15.5px; }
.exam .em { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.exam .em span { display: inline-flex; align-items: center; gap: 4px; }
.exam .em svg { width: 14px; height: 14px; }
.exam .ef { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tag-red { background: var(--red-wash); color: var(--red-ink); }
.tag-green { background: var(--green-wash); color: var(--green); }
.tag-ink { background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.score { font: 900 22px/1.2 var(--font); }

.runner-top { position: sticky; top: 0; z-index: 5; background: rgba(251,250,247,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 12px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.timer { display: inline-flex; align-items: center; gap: 6px; font: 900 18px/1 var(--font); padding: 8px 12px; border-radius: 10px; background: var(--ink); color: #fff; }
.timer.warn { background: var(--red); }
.timer svg { width: 17px; height: 17px; }
.qdots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.qdots button { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--card); font-size: 12px; font-weight: 700; padding: 0; }
.qdots button.ans { background: var(--ink); color: #fff; border-color: var(--ink); }
.qdots button.cur { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--red); }
.q { padding: 18px 16px; }
.q .qn { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.q .qb { font-size: 16.5px; font-weight: 700; margin: 6px 0 16px; line-height: 1.9; }
.q .qb.en, .opt.en .ot { direction: ltr; text-align: left; font-family: 'Vazirmatn', system-ui, sans-serif; }
.opt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); text-align: start; min-height: 52px; transition: border-color .2s, background .2s; }
.opt + .opt { margin-top: 8px; }
.opt .ob { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-size: 13px; font-weight: 900; flex: none; transition: background .2s var(--ease), color .2s; }
.opt .ot { flex: 1; font-size: 15px; }
.opt.sel { border-color: var(--ink); background: #F6F4EF; }
.opt.sel .ob { background: var(--ink); color: #fff; }
.opt.right { border-color: var(--green); background: var(--green-wash); }
.opt.right .ob { background: var(--green); border-color: var(--green); color: #fff; }
.opt.wrong { border-color: var(--red); background: var(--red-wash); }
.opt.wrong .ob { background: var(--red); border-color: var(--red); color: #fff; }
.qnav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.expl { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--paper); font-size: 13.5px; color: var(--ink-2); }

.result-hero { text-align: center; padding: 24px 16px; }
.result-hero .pc { font: 900 54px/1.2 var(--font); }
.result-hero .pc small { font-size: 22px; }
.sheet-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; border-top: 1px dashed var(--line-2); }
.sheet-stats div { padding: 12px 4px 0; }
.sheet-stats b { display: block; font: 900 20px/1.3 var(--font); }
.sheet-stats span { font-size: 12px; color: var(--muted); }

/* ── invite ── */
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 2px dashed var(--ink); background: var(--card); }
.code-box .c { font: 900 24px/1 var(--font); letter-spacing: 1.5px; direction: ltr; min-width: 0; overflow-wrap: anywhere; }
.win .code-box .c { font-size: 20px; letter-spacing: .5px; }
.big-ic { width: 44px; height: 44px; color: var(--red); flex: none; }
.share-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 12px; }
.inv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.inv-stats div { padding: 12px; text-align: center; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.inv-stats b { display: block; font: 900 20px/1.35 var(--font); }
.inv-stats span { font-size: 12px; color: var(--muted); }
.person { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.person + .person { border-top: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 900; font-size: 14px; flex: none; }
.person.me { background: var(--red-wash); }
.rank { width: 24px; text-align: center; font-weight: 900; color: var(--muted); }
.rank.r1 { color: var(--red); }

/* ── prizes ── */
.prize { display: flex; gap: 14px; padding: 16px; align-items: center; }
.prize + .prize { border-top: 1px solid var(--line); }
.prize .pi { width: 52px; height: 52px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; flex: none; color: var(--ink); }
.prize .pi svg { width: 28px; height: 28px; }
.prize.top .pi { background: var(--red); color: #fff; border-color: var(--red); }
.prize .pt { font-weight: 700; }
.prize .pd { font-size: 13px; color: var(--muted); }
.prize .pq { font-weight: 900; white-space: nowrap; }
.voucher { position: relative; display: flex; align-items: stretch; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); overflow: hidden; }
.voucher + .voucher { margin-top: 10px; }
.voucher .vl { width: 86px; flex: none; display: grid; place-content: center; text-align: center; background: var(--red); color: #fff; padding: 10px 6px; }
.voucher .vl b { font: 900 24px/1.1 var(--font); }
.voucher .vl span { font-size: 11px; }
.voucher.used { opacity: .55; }
.voucher.used .vl { background: var(--muted); }
.voucher.free .vl { background: var(--green); }
.voucher .vr { flex: 1; padding: 12px 14px; border-inline-start: 2px dashed var(--line-2); }
.voucher .vt { font-weight: 700; }
.voucher .vc { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 900; direction: ltr; font-size: 15px; background: none; border: 0; padding: 0; color: var(--ink); }
.voucher .vc svg { width: 15px; height: 15px; color: var(--muted); }
.voucher .vx { font-size: 12px; color: var(--muted); }

.empty { text-align: center; padding: 28px 18px; color: var(--muted); font-size: 14px; }
.empty svg { width: 40px; height: 40px; color: var(--line-2); margin: 0 auto 8px; display: block; }

/* ── tabs ── */
.tabs { position: fixed; z-index: 20; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabs-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tabs button { background: none; border: 0; display: grid; place-content: center; justify-items: center; gap: 2px; font-size: 11.5px; font-weight: 500; color: var(--muted); position: relative; }
.tabs button svg { width: 23px; height: 23px; }
.tabs button[aria-current="page"] { color: var(--ink); font-weight: 700; }
.tabs button[aria-current="page"] svg { color: var(--red); }
.tabs button[aria-current="page"]::before { content: ''; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--red); }
.tabs .badge { position: absolute; top: 8px; inset-inline-end: calc(50% - 20px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; line-height: 1; }

/* ── bottom sheet & toast ── */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(20,20,20,.42); animation: fade .25s var(--ease); }
.bsheet { position: fixed; z-index: 41; inset-inline: 0; bottom: 0; max-width: 520px; margin: 0 auto; max-height: 88dvh; overflow: auto;
  background: var(--card); border-radius: 22px 22px 0 0; padding: 10px 18px calc(22px + var(--safe-b)); animation: up .42s var(--ease); }
.bsheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 0 auto 14px; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.win { text-align: center; padding: 6px 0 4px; }
.win .burst { width: 92px; height: 92px; margin: 4px auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; animation: pop .6s var(--ease); }
.win .burst svg { width: 44px; height: 44px; }
.win h3 { font-size: 22px; font-weight: 900; }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.06); } 100% { transform: scale(1); } }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--tabs-h) + var(--safe-b) + 14px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 11px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--sh-2); transition: opacity .25s, transform .35s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--red-ink); }

.fade-in { animation: fade .35s var(--ease); }
.foot { margin-top: 28px; text-align: center; font-size: 12px; color: var(--muted); }


/* ── درباره ما ── */
.partner { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.partner img { width: 44px; height: auto; }
.about-teaser { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: start; }
.about-teaser img { width: 52px; height: 52px; flex: none; }
.about-teaser b { display: block; font-size: 15px; }
.about { padding-bottom: 4px; }
.about-head { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 4px 0 8px; }
.about-head img { height: auto; }
.about-t { font-size: 19px; font-weight: 900; margin-bottom: 6px; }
.about p { font-size: 14.5px; color: var(--ink-2); max-width: 62ch; }
.about p + p { margin-top: 10px; }
.about .lead { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.svc { margin-top: 16px; display: grid; gap: 4px; }
.svc-i { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.svc-i:first-child { border-top: 0; }
.svc-i .d { width: 34px; height: 34px; border-radius: 50%; background: var(--red-wash); color: var(--red-ink); display: grid; place-items: center; }
.svc-i .d svg { width: 18px; height: 18px; }
.method { margin: 12px 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.method li { position: relative; padding-inline-start: 22px; font-size: 14px; color: var(--ink-2); }
.method li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .7em; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.method b { color: var(--ink); }
.contact { display: grid; gap: 8px; margin-top: 10px; }
.contact .ct { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font-size: 14px; }
.contact .ct svg { width: 20px; height: 20px; color: var(--red); flex: none; }
.contact .ct .cl { display: block; font-size: 12px; color: var(--muted); }
.contact .ct bdi { font-weight: 700; font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (min-width: 400px) { .gift .amt { font-size: 44px; } }
