/* کارت تولد Mina Invite — ۴ تم: balloons, pastel, noir, mina */
@font-face { font-family: "BVazir"; src: url("../fonts/vazirmatn-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "BVazir"; src: url("../fonts/vazirmatn-arabic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "BVazir"; src: url("../fonts/vazirmatn-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "BVazir"; src: url("../fonts/vazirmatn-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "BLalezar"; src: url("../fonts/lalezar-arabic-400-normal.woff2") format("woff2"); font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "BLalezar"; src: url("../fonts/lalezar-latin-400-normal.woff2") format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --accent: #ff5d73;
  --bg: #fffaf3; --paper: #ffffff; --ink: #2b2140; --muted: #7a6f88; --line: #f1e6da;
  --c2: #4cc3ff; --c3: #ffc93c; --c4: #9b6bff; --c5: #3ddc97;
  --on-accent: #ffffff;
  --display: "BLalezar", "BVazir", Tahoma, sans-serif;
  --body: "BVazir", Tahoma, "Segoe UI", sans-serif;
  --radius: 26px;
  --shadow: 0 10px 30px rgba(80, 40, 90, .10);
  --hero-ring: conic-gradient(var(--accent), var(--c3), var(--c5), var(--c2), var(--c4), var(--accent));
  --intro-bg: radial-gradient(120% 80% at 50% 100%, #ffe1e6 0%, #fff6e8 55%, #e9f6ff 100%);
  color-scheme: light;
}
[data-theme="pastel"] {
  --bg: #fdf6f8; --paper: #ffffff; --ink: #4a3a48; --muted: #9a8796; --line: #f3e3ea;
  --c2: #a9d3f0; --c3: #f9e1a8; --c4: #cdb8f0; --c5: #bfe6d0;
  --radius: 30px; --shadow: 0 10px 30px rgba(200, 120, 150, .12);
  --hero-ring: conic-gradient(var(--accent), var(--c2), var(--c4), var(--c3), var(--accent));
  --intro-bg: radial-gradient(120% 80% at 50% 100%, #fde3ec 0%, #fdf6f8 55%, #e6f2fb 100%);
}
[data-theme="noir"] {
  --bg: #0e0e10; --paper: #17171b; --ink: #f3ecdc; --muted: #a39d90; --line: #2b2a2f;
  --c2: #e9d9b0; --c3: #a8864a; --c4: #f6efe0; --c5: #6f5a33;
  --on-accent: #1a140a;
  --display: "BVazir", Tahoma, sans-serif;
  --radius: 18px; --shadow: 0 14px 40px rgba(0, 0, 0, .45);
  --hero-ring: conic-gradient(#f3dfae, var(--accent), #8a6a2e, #f3dfae, var(--accent), #f3dfae);
  --intro-bg: radial-gradient(110% 80% at 50% 110%, #2a2216 0%, #121214 60%, #0a0a0b 100%);
  color-scheme: dark;
}
[data-theme="mina"] {
  --bg: #f4f0e8; --paper: #fffdf9; --ink: #1f2a27; --muted: #6b726c; --line: #e2d9c8;
  --c2: #1d3530; --c3: #8a3b4a; --c4: #e6d3ad; --c5: #2c4b44;
  --on-accent: #1d2a26;
  --radius: 22px; --shadow: 0 10px 30px rgba(29, 53, 48, .10);
  --hero-ring: conic-gradient(var(--accent), #1d3530, var(--accent), #8a3b4a, var(--accent));
  --intro-bg: radial-gradient(120% 80% at 50% 100%, #2c4b44 0%, #1d3530 60%, #13231f 100%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 16px/1.85 var(--body); overflow-x: hidden; }
body.intro-on { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }

/* زمینه‌ی تزئینی */
.bg-deco { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-deco i { position: absolute; bottom: -140px; width: 54px; height: 66px; border-radius: 50% 50% 48% 52% / 58% 58% 42% 42%; opacity: .55; animation: floatUp 22s linear infinite; }
.bg-deco i::after { content: ""; position: absolute; top: 100%; left: 50%; width: 1px; height: 70px; background: color-mix(in srgb, var(--ink) 25%, transparent); }
.bg-deco i:nth-child(1) { left: 6%; background: var(--accent); animation-delay: -2s; }
.bg-deco i:nth-child(2) { left: 84%; background: var(--c2); animation-delay: -9s; width: 44px; height: 54px; }
.bg-deco i:nth-child(3) { left: 30%; background: var(--c3); animation-delay: -15s; }
.bg-deco i:nth-child(4) { left: 64%; background: var(--c4); animation-delay: -5s; width: 40px; height: 50px; }
.bg-deco i:nth-child(5) { left: 92%; background: var(--c5); animation-delay: -18s; }
@keyframes floatUp { from { transform: translate(0, 0) rotate(-4deg); } 50% { transform: translate(14px, -60vh) rotate(4deg); } to { transform: translate(-6px, -125vh) rotate(-3deg); } }
[data-theme="pastel"] .bg-deco i { opacity: .45; }
[data-theme="noir"] .bg-deco i, [data-theme="mina"] .bg-deco i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent) !important; opacity: .7; box-shadow: 0 0 12px var(--accent); animation-duration: 30s; }
[data-theme="noir"] .bg-deco i::after, [data-theme="mina"] .bg-deco i::after { display: none; }
[data-theme="mina"] body { background-image: radial-gradient(circle at 20% 0%, rgba(201,169,110,.14), transparent 40%); }

.confetti { position: fixed; inset: 0; z-index: 60; width: 100%; height: 100%; pointer-events: none; }

/* نوارهای بالا */
.top-bar { position: sticky; top: 0; z-index: 20; padding: 9px 16px; text-align: center; font-weight: 700; font-size: 14.5px; }
.surprise-bar { background: var(--ink); color: var(--bg); }
.today-bar { background: var(--accent); color: var(--on-accent); font-family: var(--display); font-size: 18px; letter-spacing: .3px; }

/* قاب کارت */
.card { position: relative; z-index: 1; width: 100%; max-width: 540px; margin: 0 auto; padding: 18px 16px calc(80px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.sec { position: relative; padding: 24px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.sec h2 { margin: 0 0 10px; font: 400 28px/1.4 var(--display); color: var(--accent); }
[data-theme="noir"] .sec h2 { font-weight: 700; font-size: 22px; letter-spacing: .5px; background: linear-gradient(90deg, #f3dfae, var(--accent), #f3dfae); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="mina"] .sec h2 { color: #1d3530; }
[data-theme="balloons"] .sec:nth-of-type(4n+1) h2 { color: var(--c4); }
[data-theme="balloons"] .sec:nth-of-type(4n+2) h2 { color: #1aa0e0; }
[data-theme="balloons"] .sec:nth-of-type(4n+3) h2 { color: var(--accent); }
[data-theme="balloons"] .sec:nth-of-type(4n) h2 { color: #20b07a; }
[data-theme="balloons"] .sec { border: 2px dashed var(--line); }
.sec p { margin: 0 0 8px; }
.muted { color: var(--muted); font-size: 14px; }
.center { text-align: center; }
.kicker { font-size: 13px; color: var(--muted); letter-spacing: .3px; }

/* سرصفحه */
.hero { padding-top: 30px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 120px; background:
  radial-gradient(circle at 12% 30%, var(--c3) 0 5px, transparent 6px), radial-gradient(circle at 85% 22%, var(--c2) 0 6px, transparent 7px),
  radial-gradient(circle at 70% 70%, var(--c4) 0 4px, transparent 5px), radial-gradient(circle at 25% 80%, var(--c5) 0 4px, transparent 5px),
  radial-gradient(circle at 50% 12%, var(--accent) 0 4px, transparent 5px); opacity: .8; pointer-events: none; }
[data-theme="noir"] .hero::before, [data-theme="mina"] .hero::before { opacity: .35; }
.hero-photo { position: relative; width: 196px; height: 196px; margin: 4px auto 14px; }
.hero-ring { position: absolute; inset: -8px; border-radius: 50%; background: var(--hero-ring); animation: spin 14s linear infinite; }
.hero-photo img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 6px solid var(--paper); background: var(--bg); }
.hero-age { position: absolute; inset: auto -14px -6px auto; display: grid; place-items: center; min-width: 76px; height: 76px; padding: 0 10px; border-radius: 40px; background: var(--accent); color: var(--on-accent); font: 400 46px/1 var(--display); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 45%, transparent); border: 4px solid var(--paper); transform: rotate(-8deg); }
[dir="ltr"] .hero-age { inset: auto auto -6px -14px; transform: rotate(8deg); }
[data-theme="noir"] .hero-age { font-weight: 700; font-size: 38px; background: linear-gradient(135deg, #f3dfae, var(--accent) 55%, #8a6a2e); }
@keyframes spin { to { transform: rotate(1turn); } }
.hero-guest { display: inline-block; margin-bottom: 4px !important; padding: 2px 14px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--ink); font-weight: 700; font-size: 14.5px; }
.hero-name { margin: 2px 0 0; font: 400 clamp(44px, 13vw, 60px)/1.25 var(--display); color: var(--ink); }
[data-theme="noir"] .hero-name { font-weight: 700; font-size: clamp(36px, 11vw, 50px); background: linear-gradient(180deg, #fff3d2, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="mina"] .hero-name { color: #1d3530; }
.hero-line { font-weight: 700; color: var(--accent); font-size: 18px; }
[data-theme="mina"] .hero-line { color: #8a3b4a; }
.invite-text { max-width: 30em; margin: 10px auto 0 !important; font-size: 16.5px; line-height: 2.05; }
.thanks { margin-top: 14px; display: grid; gap: 12px; }
.thanks h2 { margin: 0; }
.thanks img, .thanks video { width: 100%; border-radius: calc(var(--radius) - 8px); }

/* تاریخ */
.big-date { font-weight: 700; font-size: 21px; }
.big-date.small { font-size: 17px; }
.alt-date { color: var(--muted); font-size: 14px; }
.time-line { font-size: 17px; }
.pill-note { display: inline-block; margin: 6px auto 10px !important; padding: 8px 16px; border-radius: 16px; background: color-mix(in srgb, var(--c3) 30%, transparent); font-weight: 700; font-size: 15px; line-height: 1.8; }
[data-theme="noir"] .pill-note { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.pill-note small { font-weight: 400; color: var(--muted); }
.parents-mode { font-size: 14.5px; color: var(--muted); }
.countdown { margin: 14px 0 12px; }
.cd-cells { display: flex; justify-content: center; gap: 8px; direction: ltr; }
[dir="rtl"] .cd-cells { flex-direction: row-reverse; }
.cd-cells span { display: grid; flex: 0 1 66px; min-width: 0; padding: 10px 6px 6px; border-radius: 18px; background: color-mix(in srgb, var(--accent) 10%, var(--paper)); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.cd-cells b { font: 400 30px/1.1 var(--display); color: var(--accent); }
[data-theme="noir"] .cd-cells b { font-weight: 700; }
.cd-cells i { font-style: normal; font-size: 12px; color: var(--muted); }
.countdown.mini .cd-cells span { flex-basis: 56px; padding: 6px 4px 4px; }
.countdown.mini .cd-cells b { font-size: 22px; }
.cd-label { margin-top: 6px !important; color: var(--muted); font-size: 13.5px; }
.cd-today { font: 400 26px/1.5 var(--display); color: var(--accent); }

/* دکمه‌ها و فرم */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 8px 20px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 30%, transparent); transition: transform .15s, filter .15s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
[data-theme="mina"] .btn:not(.ghost) { background: #1d3530; color: #f4f0e8; box-shadow: none; }
.btn.sm { min-height: 36px; padding: 4px 14px; font-size: 13.5px; }
.btn.big { min-height: 54px; padding: 10px 28px; font-size: 17px; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.field { display: grid; gap: 4px; text-align: start; font-size: 14px; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--ink); font-size: 16px; outline: none; }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field.small input { min-height: 44px; text-align: center; }
form { display: grid; gap: 12px; margin-top: 12px; }
.form-msg { min-height: 1.5em; margin: 0 !important; font-weight: 700; font-size: 14.5px; color: var(--accent); }
.form-msg.err { color: #d23b4f; }
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.seg.three { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: grid; place-items: center; min-height: 50px; padding: 6px; border-radius: 16px; border: 1.5px solid var(--line); font-weight: 700; cursor: pointer; transition: .15s; }
.seg input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: translateY(-1px); }
[data-theme="mina"] .seg input:checked + span { background: #1d3530; border-color: #1d3530; color: #f4f0e8; }
.seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.counts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stepper { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg); }
.stepper input { border: 0 !important; border-radius: 0 !important; min-width: 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper button { width: 44px; flex: none; border: 0; background: transparent; font-size: 22px; font-weight: 700; color: var(--accent); cursor: pointer; }
.kid-rows { display: grid; gap: 8px; }
.kid-row { display: grid; grid-template-columns: 1fr 76px; gap: 8px; }
.kid-row input { min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); font-size: 15px; width: 100%; }
.rsvp-form [data-when] { display: none; }
.rsvp-form[data-status="yes"] [data-when~="yes"], .rsvp-form[data-status="maybe"] [data-when~="maybe"], .rsvp-form[data-status="no"] [data-when~="no"] { display: grid; gap: 12px; }
.story-btn { margin-top: 12px; width: 100%; background: linear-gradient(90deg, var(--c4), var(--accent), var(--c3)); }

/* محل */
.venue-photo { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: calc(var(--radius) - 8px); margin-bottom: 12px; }
.venue-name { font-weight: 700; font-size: 19px; }
.venue-address { color: var(--muted); }
.venue-note { font-size: 14px; }
.contact-row { margin-top: 6px; }

/* برنامه */
.timeline { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; text-align: start; }
.timeline li { display: grid; grid-template-columns: 44px 62px 1fr; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 18px; background: color-mix(in srgb, var(--accent) 6%, var(--paper)); border: 1px solid var(--line); }
.tl-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); font-size: 20px; box-shadow: 0 3px 10px rgba(0,0,0,.06); }
.timeline b { color: var(--accent); font-size: 16px; }

/* کد پوشش */
.dress-dots { display: flex; justify-content: center; gap: 10px; margin: 6px 0 12px; }
.dress-dots i { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--paper); box-shadow: 0 0 0 1.5px var(--line), 0 4px 10px rgba(0,0,0,.08); }

/* گالری */
.slider { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; border-radius: calc(var(--radius) - 8px); scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slides figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.slides img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: calc(var(--radius) - 8px); }
.slides figcaption { margin-top: 6px; font-size: 14px; color: var(--muted); }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 9px; background: var(--line); cursor: pointer; transition: width .2s; }
.dots button[aria-current] { width: 24px; background: var(--accent); }

/* لیست کادو */
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 10px; }
.gift { display: grid; align-content: start; gap: 6px; padding: 12px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--bg); }
.gift img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.gift-ico { font-size: 40px; line-height: 1.4; }
.gift h3 { margin: 0; font-size: 15px; }
.gift p { margin: 0; font-size: 12.5px; }
.gift-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 4px; }
.gift.is-taken { opacity: .65; }
.taken { font-weight: 700; color: var(--muted); font-size: 13.5px; padding: 6px 0; }

/* کوئیز */
.quiz { margin-top: 10px; }
.q-card { display: grid; gap: 10px; text-align: start; animation: pop .35s ease; }
.q-step { font-size: 13px; color: var(--muted); }
.q-text { font-weight: 700; font-size: 18px; margin: 0; }
.q-opts { display: grid; gap: 8px; }
.q-opts button { min-height: 50px; padding: 8px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 700; text-align: start; cursor: pointer; transition: .15s; }
.q-opts button:hover { border-color: var(--accent); }
.q-opts button.right { background: #2fb26b; color: #fff; border-color: #2fb26b; }
.q-opts button.wrong { background: #e5485d; color: #fff; border-color: #e5485d; }
.q-result { display: grid; gap: 8px; place-items: center; animation: pop .4s ease; }
.q-result b { font: 400 44px/1.2 var(--display); color: var(--accent); }
.board { margin-top: 18px; text-align: start; }
.board h3 { margin: 0 0 6px; font-size: 16px; text-align: center; }
.board ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 14px; background: var(--bg); }
.board i { font-style: normal; font-weight: 700; color: var(--accent); }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(6px); } to { opacity: 1; transform: none; } }

/* دفتر تبریک: کیکی که با هر پیام یک شمع می‌گیرد */
.wish-cake { position: relative; width: 220px; margin: 8px auto 4px; padding-top: 60px; }
.wc-candles { position: absolute; inset: 0 22px auto 22px; height: 64px; display: flex; flex-wrap: wrap-reverse; justify-content: center; align-content: flex-start; gap: 2px 5px; }
.wc-candle { position: relative; width: 7px; height: 26px; border-radius: 3px; background: repeating-linear-gradient(45deg, var(--paper) 0 4px, var(--accent) 4px 8px); }
.wc-candle::before { content: ""; position: absolute; left: 50%; top: -13px; width: 8px; height: 12px; margin-left: -4px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 70%, #fff6b0, #ffb92e 55%, #ff7a1a); animation: flick .4s ease-in-out infinite alternate; }
.wc-candle.new { animation: pop .6s ease; }
.wc-tier { margin: 0 auto; border-radius: 14px 14px 6px 6px; }
.wc-tier.t1 { width: 150px; height: 44px; background: linear-gradient(var(--paper) 0 10px, color-mix(in srgb, var(--accent) 70%, #fff) 10px); box-shadow: inset 0 -6px 0 rgba(0,0,0,.06); position: relative; }
.wc-tier.t1::before { content: ""; position: absolute; inset: 6px 0 auto 0; height: 12px; background: radial-gradient(circle at 10px 0, var(--paper) 9px, transparent 10px) 0 0 / 20px 12px repeat-x; }
.wc-tier.t2 { width: 196px; height: 54px; margin-top: -2px; background: linear-gradient(var(--c3) 0 12px, color-mix(in srgb, var(--c2) 60%, #fff) 12px); }
[data-theme="noir"] .wc-tier.t1 { background: linear-gradient(#f3dfae 0 10px, #2a2a30 10px); }
[data-theme="noir"] .wc-tier.t2 { background: linear-gradient(var(--accent) 0 12px, #1f1f24 12px); }
.wc-plate { width: 224px; height: 10px; margin: 0 auto; border-radius: 10px; background: var(--line); }
.wc-count { margin-top: 6px !important; font-weight: 700; color: var(--accent); }
@keyframes flick { from { transform: scale(1, 1) rotate(-3deg); } to { transform: scale(.9, 1.12) rotate(3deg); } }
.wishes { display: grid; gap: 10px; margin-top: 14px; text-align: start; }
.wishes blockquote { margin: 0; padding: 12px 16px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.wishes blockquote:nth-child(3n+1) { border-inline-start: 4px solid var(--accent); }
.wishes blockquote:nth-child(3n+2) { border-inline-start: 4px solid var(--c2); }
.wishes blockquote:nth-child(3n) { border-inline-start: 4px solid var(--c3); }
.wishes p { margin: 0 0 4px; }
.wishes cite { font-style: normal; font-weight: 700; font-size: 13.5px; color: var(--muted); }

/* کپسول، رسانه، کادوی نقدی، پایان */
.capsule-ico { font-size: 52px; line-height: 1.3; animation: tilt 3s ease-in-out infinite; }
@keyframes tilt { 50% { transform: rotate(180deg); } }
.capsule-count { font-weight: 700; color: var(--accent); }
.file-btn { cursor: pointer; }
.up-list { display: grid; gap: 6px; }
.up-item { display: grid; gap: 4px; padding: 8px 12px; border-radius: 12px; background: var(--bg); font-size: 13.5px; text-align: start; }
.up-item progress { width: 100%; height: 8px; accent-color: var(--accent); }
.cash-card { display: grid; gap: 6px; justify-items: center; margin-top: 10px; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--paper)), var(--paper)); border: 1px solid var(--line); }
.cash-card b { font-size: 21px; letter-spacing: 1.5px; }
.closing-photo { width: 100%; border-radius: calc(var(--radius) - 8px); margin-bottom: 12px; }
.closing-text { font: 400 30px/1.6 var(--display); color: var(--accent); }
[data-theme="noir"] .closing-text { font-weight: 700; font-size: 24px; }
.foot { display: grid; justify-items: center; gap: 8px; padding: 10px 0 0; color: var(--muted); font-size: 13px; }
.foot a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.foot img { border-radius: 50%; }
.lang-link { padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; }

.music-btn { position: fixed; z-index: 30; inset: auto auto calc(16px + env(safe-area-inset-bottom, 0px)) 16px; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); font-size: 22px; box-shadow: var(--shadow); cursor: pointer; }
[dir="ltr"] .music-btn { inset: auto 16px calc(16px + env(safe-area-inset-bottom, 0px)) auto; }
.music-btn { display: grid; place-items: center; }
.music-btn[hidden] { display: none; }
.music-btn[aria-pressed="true"] svg { animation: notebob 1.2s ease-in-out infinite; }
@keyframes notebob { 50% { transform: translateY(-3px) rotate(-6deg); } }
.toast { position: fixed; z-index: 70; inset: auto 16px calc(80px + env(safe-area-inset-bottom, 0px)) 16px; max-width: 420px; margin: 0 auto; padding: 12px 16px; border-radius: 16px; background: var(--ink); color: var(--bg); text-align: center; font-weight: 700; box-shadow: var(--shadow); }

/* ورودی‌ها (پایه‌ی مشترک) */
.intro { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-rows: 1fr auto; background: var(--intro-bg); color: var(--ink); transition: opacity .8s ease, transform .9s ease; touch-action: manipulation; user-select: none; -webkit-user-select: none; overflow: hidden; }
[data-theme="noir"] .intro, [data-theme="mina"] .intro { color: #f6ecd6; }
.intro.out { opacity: 0; transform: scale(1.06); pointer-events: none; }
.intro-stage { position: relative; min-height: 0; }
.intro-text { position: relative; z-index: 3; pointer-events: none; padding: 0 20px calc(26px + env(safe-area-inset-bottom, 0px)); text-align: center; display: grid; gap: 6px; justify-items: center; }
.intro-guest { margin: 0; font: 400 clamp(26px, 8vw, 36px)/1.4 var(--display); }
[data-theme="noir"] .intro-guest { font-weight: 700; color: #f3dfae; }
[data-theme="mina"] .intro-guest { color: #e3c993; }
.intro-hint { margin: 0; font-size: 15px; opacity: .8; animation: breathe 2.2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }
.intro-mic { pointer-events: auto; min-height: 46px; padding: 6px 22px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.intro-mic.on { background: #2fb26b; color: #fff; animation: breathe 1.2s ease-in-out infinite; }
.intro-skip { position: absolute; z-index: 4; top: calc(12px + env(safe-area-inset-top, 0px)); inset-inline-end: 12px; padding: 4px 14px; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font-size: 13px; opacity: .55; cursor: pointer; }

/* ورودی شمع‌ها */
.cake-wrap { position: absolute; left: 50%; bottom: 4%; width: min(86vw, 380px); transform: translateX(-50%); }
.cake-svg { width: 100%; height: auto; display: block; overflow: visible; }
.candles { position: absolute; inset: 0 0 auto 0; height: 0; }
.candle { position: absolute; bottom: 0; width: 14px; margin-left: -7px; border-radius: 4px 4px 2px 2px; cursor: pointer; background: repeating-linear-gradient(-45deg, #fff 0 6px, var(--cc, var(--accent)) 6px 12px); box-shadow: inset -3px 0 0 rgba(0,0,0,.08); }
.candle.digit { width: auto; margin-left: 0; background: none; box-shadow: none; transform: translateX(-50%); font: 400 120px/0.9 var(--display); color: var(--cc, var(--accent)); -webkit-text-stroke: 3px #fff; paint-order: stroke; text-shadow: 0 6px 0 rgba(0,0,0,.12); }
[data-theme="noir"] .candle.digit { font-weight: 700; color: var(--accent); -webkit-text-stroke: 2px #f3dfae; }
.candle::after { content: ""; position: absolute; left: 50%; top: -9px; width: 2px; height: 9px; margin-left: -1px; background: #3a2a1a; border-radius: 1px; }
.candle.digit::after { top: -12px; }
.flame { position: absolute; left: 50%; bottom: calc(100% + 6px); width: 18px; height: 30px; margin-left: -9px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(circle at 50% 72%, #fffbe0 0 18%, #ffd34d 40%, #ff9a1f 70%, rgba(255,90,20,.0) 74%); transform-origin: 50% 90%; animation: flame .18s ease-in-out infinite alternate; filter: drop-shadow(0 0 10px rgba(255,190,60,.85)); transition: opacity .25s, transform .25s; }
.candle.digit .flame { bottom: calc(100% + 8px); }
.flame::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 10px; margin-left: -3px; border-radius: 50%; background: rgba(80,140,255,.5); }
.candle.out .flame { opacity: 0; transform: scale(.2, .1); }
@keyframes flame { from { transform: scale(1, 1) skewX(-2deg); } to { transform: scale(.92, 1.08) skewX(3deg); } }
.glow { position: absolute; left: 50%; bottom: 40%; width: 120%; height: 120%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255,200,90,.35), transparent); pointer-events: none; transition: opacity .8s; }
.intro.dark-done .glow { opacity: 0; }
.smoke { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.meter { width: 160px; height: 6px; border-radius: 6px; background: color-mix(in srgb, currentColor 20%, transparent); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .08s; }

/* ورودی بادکنک */
.bal { position: absolute; left: 0; bottom: -180px; width: 92px; cursor: pointer; will-change: transform; -webkit-tap-highlight-color: transparent; }
.bal svg { width: 100%; height: auto; overflow: visible; display: block; }
.bal.popped { pointer-events: none; animation: popOut .22s ease-out forwards; }
@keyframes popOut { to { transform: var(--t) scale(1.5); opacity: 0; } }
.bal-tag { position: absolute; left: 50%; top: 32%; transform: translate(-50%, -50%); width: 120%; text-align: center; font: 400 17px/1.35 var(--display); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.25); pointer-events: none; }
.bal-count { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); inset-inline-start: 14px; z-index: 4; padding: 2px 12px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 70%, transparent); font-weight: 700; font-size: 14px; }

/* ورودی جعبه‌ی کادو */
.gbox { position: absolute; left: 50%; bottom: 10%; width: min(70vw, 300px); transform: translateX(-50%); touch-action: none; }
.gbox svg { width: 100%; height: auto; display: block; overflow: visible; }
.gbox .lid { transform-origin: 50% 100%; transition: transform 1s cubic-bezier(.2,.9,.3,1.2); }
.gbox.open .lid { transform: translate(-30%, -120%) rotate(-28deg); }
.gbox .bow { transition: transform .5s, opacity .5s; transform-origin: 50% 50%; }
.gbox.untied .bow { transform: scale(.2) translateY(-40px); opacity: 0; }
.gbox .rays { opacity: 0; transition: opacity .6s .2s; transform-origin: 50% 100%; }
.gbox.open .rays { opacity: 1; animation: spin 18s linear infinite; }
.gbox-card { position: absolute; left: 50%; bottom: 40%; z-index: 0; width: 82%; padding: 18px 12px; transform: translate(-50%, 80%) scale(.6); opacity: 0; border-radius: 16px; background: var(--paper); color: var(--ink); text-align: center; font: 400 22px/1.5 var(--display); box-shadow: var(--shadow); transition: transform 1s cubic-bezier(.2,1.2,.3,1) .35s, opacity .4s .35s; }
.gbox.open .gbox-card { transform: translate(-50%, -40%) scale(1); opacity: 1; }
.ribbon-tail { cursor: grab; }
.pull-hint { position: absolute; z-index: 3; left: 50%; bottom: 3%; transform: translateX(-50%); font-size: 30px; animation: nudge 1.2s ease-in-out infinite; pointer-events: none; }
@keyframes nudge { 50% { transform: translate(-50%, 10px); } }

/* ورودی ویدیو */
.intro-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 700px) { .card { padding-top: 32px; } }
@media (prefers-reduced-motion: reduce) {
  .bg-deco i, .hero-ring, .capsule-ico, .music-btn[aria-pressed="true"] svg, .intro-hint { animation: none !important; }
}

.intro-title { position: absolute; z-index: 3; top: calc(9vh + env(safe-area-inset-top, 0px)); left: 0; right: 0; display: grid; justify-items: center; text-align: center; pointer-events: none; }
.intro-title span { font-size: 16px; opacity: .75; }
.intro-title b { font: 400 clamp(44px, 14vw, 72px)/1.2 var(--display); color: var(--accent); }
[data-theme="noir"] .intro-title b { font-weight: 700; background: linear-gradient(180deg, #fff3d2, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="mina"] .intro-title b { color: #e3c993; }
