* { box-sizing: border-box; }
:root {
  --bg: #08090d;
  --text: #f3f0ea;
  --muted: #a9a5a0;
  --accent: #d9b99b;
  --accent-soft: rgba(217, 185, 155, 0.12);
  --border: rgba(243, 240, 234, 0.12);
}
html, body { width: 100%; min-height: 100%; margin: 0; background: var(--bg); color: var(--text); }
body {
  overflow: hidden;
  font-family: "Vazirmatn", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; }

/* ═══ آسمون و افکت‌ها ═══ */
#sky { position: fixed; inset: 0; z-index: 0; }
.nebula {
  position: fixed; width: 70vmax; height: 70vmax; border-radius: 50%;
  filter: blur(60px); opacity: .13; pointer-events: none; z-index: 0;
}
.nebula--a { background: radial-gradient(circle, #3b2f4d, transparent 60%); top: -20vmax; right: -15vmax; animation: nebDrift 42s ease-in-out infinite alternate; }
.nebula--b { background: radial-gradient(circle, #4d3a26, transparent 60%); bottom: -25vmax; left: -15vmax; animation: nebDrift 58s ease-in-out infinite alternate-reverse; }
.vignette { position: fixed; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.5)); }
.noise {
  position: fixed; inset: 0; z-index: 10; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
@keyframes nebDrift { from { transform: translate(0,0) scale(1); } to { transform: translate(6vmax, -4vmax) scale(1.08); } }

/* ═══ صحنه‌ها ═══ */
.journey { position: relative; width: 100%; height: 100vh; height: 100svh; z-index: 2; }
.scene {
  position: absolute; inset: 0; display: flex;
  padding: 56px 24px; overflow: auto; scrollbar-width: none;
  opacity: 0; visibility: hidden; filter: blur(8px);
  transform: translateY(26px) scale(.98);
  pointer-events: none;
  transition: opacity .7s ease, filter .8s ease, transform .8s cubic-bezier(.22,1,.36,1), visibility .7s;
}
.scene:not(.scene--active), .scene:not(.scene--active) * {
  pointer-events: none !important;
  visibility: hidden !important;
}
.scene::-webkit-scrollbar { display: none; }
.scene--active { opacity: 1; visibility: visible; filter: blur(0); transform: none; pointer-events: auto; }
.scene--active * { pointer-events: auto; }
.scene.is-blackout .scene__content { opacity: 0; transform: scale(.97); transition: .3s; }
.scene__content { margin: auto; position: relative; z-index: 2; width: min(760px, 100%); text-align: center; }

/* ═══ تایپوگرافی ═══ */
.eyebrow { display: block; margin-bottom: 26px; color: var(--accent); font-family: "Playfair Display", serif; font-size: 12px; letter-spacing: .24em; direction: ltr; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-weight: 400; line-height: 1.4; }
h1 { font-size: clamp(38px, 7vw, 78px); }
h2 { font-size: clamp(26px, 4.6vw, 52px); }
h1 em, h2 em, p em { color: var(--accent); font-style: normal; }
p { color: var(--muted); font-size: clamp(15px, 2vw, 18px); line-height: 2.1; }
.big-line { color: var(--text); font-size: clamp(18px, 2.6vw, 26px); line-height: 2; }
.accent-line { color: var(--text); }
.hint { color: var(--muted); font-size: 13px; opacity: .85; min-height: 1.5em; }
.micro { font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); direction: ltr; opacity: .7; }
.symbol { color: var(--accent); font-size: 30px; margin-bottom: 8px; animation: floatY 4s ease-in-out infinite alternate; }
.date-mono { direction: ltr; font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .35em; color: var(--accent); margin: 14px 0 26px; }
@keyframes floatY { from { transform: translateY(-3px); } to { transform: translateY(3px); } }

/* ═══ reveal — فقط متن‌ها؛ دکمه‌ها هیچ‌وقت قفل نمی‌شن ═══ */
body.js [data-reveal] {
  opacity: 0; transform: translateY(16px); filter: blur(5px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1), filter .8s ease;
}
body.js [data-reveal].is-shown { opacity: 1; transform: none; filter: none; }
body.js [data-reveal="manual"]:not(.is-shown),
body.js [data-reveal="click"]:not(.is-shown) { pointer-events: none; }

/* ═══ دکمه‌ها ═══ */
.next-button {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 30px;
  padding: 13px 22px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255,255,255,.025); color: var(--text); cursor: pointer;
  pointer-events: auto;
  transition: background .25s, border-color .25s, transform .25s, opacity .3s;
}
.next-button:hover { border-color: rgba(217,185,155,.5); background: var(--accent-soft); transform: translateX(-4px); }
.next-button span { color: var(--accent); }
.next-button.is-disabled { opacity: .3; pointer-events: none; }
.ghost-button {
  padding: 13px 22px; border: 1px solid var(--border); border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer; pointer-events: auto;
}

/* ═══ تایم‌لاین ═══ */
.timeline { display: grid; gap: 10px; margin: 34px auto; max-width: 500px; text-align: right; }
.timeline div { padding: 12px 16px; border-right: 1px solid var(--border); color: var(--muted); }
.timeline__highlight { color: var(--text) !important; border-right-color: var(--accent) !important; }

/* ═══ نقشه‌ی آسمون ═══ */
.skymap-wrap { margin: 8px auto 4px; }
.skymap { width: min(430px, 86vw); display: block; margin: 0 auto; direction: ltr; }
.skymap .horizon { fill: rgba(255,255,255,.015); stroke: var(--border); stroke-width: 1; }
.skymap .grid { fill: none; stroke: rgba(243,240,234,.06); stroke-width: 1; }
.skymap text { font-family: "Vazirmatn", sans-serif; font-size: 13px; fill: var(--muted); opacity: .7; }
.skymap .starbg { fill: #fff; opacity: .16; }
.skymap .star { fill: #fff; opacity: 0; transition: opacity .9s ease var(--d, 0s), fill .3s; }
.skymap.is-drawn .star { opacity: var(--o, .9); }
.skymap .cl {
  fill: none; stroke: rgba(217,185,155,.4); stroke-width: 1;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.5s ease var(--d, 0s), stroke .3s;
}
.skymap.is-drawn .cl { stroke-dashoffset: 0; }
.constellation { cursor: pointer; }
.constellation .tapzone { fill: none; pointer-events: all; }
.constellation.is-picked .cl { stroke: var(--accent); }
.constellation.is-picked .star { fill: #ffd9a0; }
#sky-caption { max-width: 460px; margin: 10px auto 0; }
#sky-caption strong { color: var(--accent); font-weight: 500; }

/* ═══ فاصله ═══ */
.distance-map-wrap { position: relative; width: min(560px, 92vw); margin: 30px auto 10px; }
.distance-map { width: 100%; height: auto; direction: ltr; }
.distance-km { position: absolute; top: 4%; left: 50%; transform: translateX(-50%); direction: ltr; font: 11px ui-monospace, monospace; letter-spacing: .25em; color: var(--accent); }
.distance-labels { display: flex; justify-content: space-between; direction: ltr; font: 11px ui-monospace, monospace; color: var(--muted); padding: 0 6px; }

/* ═══ کارت‌ها ═══ */
.love-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(620px, 100%); margin: 30px auto 14px; }
.love-card {
  min-height: 150px; padding: 18px; border: 1px solid var(--border); border-radius: 14px;
  background: rgba(255,255,255,.025); color: var(--text); cursor: pointer; text-align: center;
  pointer-events: auto;
  transition: transform .3s, border-color .3s, background .3s;
}
.love-card:hover, .love-card.is-open { border-color: rgba(217,185,155,.45); background: var(--accent-soft); transform: translateY(-5px); }
.love-card span, .love-card strong, .love-card em { display: block; }
.love-card span { direction: ltr; color: var(--accent); font: 11px ui-monospace, monospace; }
.love-card strong { margin-top: 25px; font-size: 20px; font-weight: 400; }
.love-card em { margin-top: 8px; color: var(--muted); font-size: 11px; font-style: normal; }
.love-card.is-open em::after { content: " ✓"; color: var(--accent); }
.love-card__message { min-height: 52px; margin: 10px auto 14px; color: var(--text); font-size: 15px; line-height: 2; max-width: 480px; }
.love-card__message.pop { animation: popIn .5s ease; }
@keyframes popIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ═══ ترمینال ═══ */
.terminal {
  width: min(620px, 100%); margin: 0 auto 24px; overflow: hidden; text-align: left; direction: ltr;
  border: 1px solid var(--border); border-radius: 14px; background: rgba(0,0,0,.35);
  box-shadow: 0 25px 80px rgba(0,0,0,.3);
}
.terminal__top { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.terminal__top span { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.terminal__body { padding: 22px; min-height: 240px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.9; }
.terminal__body p { margin: 0; color: #aaa; font-size: inherit; line-height: inherit; animation: popIn .4s ease; }
.terminal__body .cmd { color: #e8e4dc; }
.terminal__body .progress { color: var(--accent); }
.terminal__body .error { color: #d38d8d; }
.terminal__body .chk { color: #c9b9a2; }
.terminal__body .success { color: #b9c9b2; }

/* ═══ هدیه ═══ */
.gift { position: relative; width: 150px; height: 130px; margin: 26px auto 6px; background: none; border: 0; cursor: pointer; pointer-events: auto; }
.gift__box { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: 104px; height: 74px; border: 1px solid rgba(217,185,155,.6); border-radius: 6px; background: rgba(217,185,155,.05); }
.gift__lid { position: absolute; bottom: 96px; left: 50%; transform: translateX(-50%); width: 122px; height: 18px; border: 1px solid rgba(217,185,155,.7); border-radius: 4px; background: rgba(217,185,155,.1); transition: transform .7s cubic-bezier(.22,1,.36,1), opacity .7s; }
.gift__ribbon { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: 1px; height: 90px; background: rgba(217,185,155,.5); }
.gift__glow { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%) scale(.4); width: 120px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(217,185,155,.5), transparent 70%); opacity: 0; transition: opacity 1s, transform 1.2s; }
.gift__label { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); color: var(--accent); font-size: 12px; font-style: normal; white-space: nowrap; animation: floatY 2.6s ease-in-out infinite alternate; }
.gift.is-open .gift__lid { transform: translateX(-50%) translateY(-34px) rotate(-14deg); opacity: 0; }
.gift.is-open .gift__glow { opacity: 1; transform: translateX(-50%) scale(1.4); }
.gift.is-open .gift__label { opacity: 0; }

/* ═══ پولارویدها ═══ */
.polaroids { display: flex; justify-content: center; align-items: flex-start; margin: 34px auto 12px; }
.polaroid {
  width: min(190px, 46vw); margin: 0 -12px; padding: 10px 10px 14px; background: #f5f1e8; border-radius: 3px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45); cursor: pointer;
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0px));
  transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s;
}
.polaroid:hover { transform: rotate(var(--r, 0deg)) translateY(calc(var(--y, 0px) - 8px)); }
.polaroid.is-front { transform: rotate(0deg) translateY(-14px) scale(1.14); z-index: 6; box-shadow: 0 30px 70px rgba(0,0,0,.6); }
.polaroid__img { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #111318; }
.polaroid__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.03); display: block; }
.polaroid__ph { position: absolute; inset: 0; display: none; place-items: center; color: var(--accent); font-size: 24px; background: linear-gradient(160deg, #15161c, #0b0c10); }
.polaroid--empty img { display: none; }
.polaroid--empty .polaroid__ph { display: grid; }
.polaroid figcaption { padding-top: 10px; color: #4a4640; font-size: 11.5px; line-height: 1.7; text-align: center; }

/* ═══ بازی تصمیم ═══ */
.arena { position: relative; height: 230px; margin: 26px auto 6px; max-width: 520px; user-select: none; }
.btn-yes { position: absolute; left: calc(50% - 60px); top: 50%; transform: translate(-50%,-50%); margin: 0; }
.btn-yes.is-big { animation: pulseYes 1.5s ease-in-out infinite; border-color: rgba(217,185,155,.6); }
@keyframes pulseYes { 0%,100% { transform: translate(-50%,-50%) scale(1.15); } 50% { transform: translate(-50%,-50%) scale(1.28); } }
.btn-no {
  position: absolute; left: calc(50% + 80px); top: 50%; margin: 0;
  transform: translate(-50%,-50%) rotate(var(--rot, 0deg));
  transition: left .25s cubic-bezier(.22,1,.36,1), top .25s cubic-bezier(.22,1,.36,1), transform .25s, opacity .4s;
}
.btn-no.is-gone { opacity: 0; transform: translate(-50%,-50%) scale(0); pointer-events: none; }
.arena.is-settled .btn-yes, .arena.is-settled .btn-no { display: none; }

/* ═══ کرش / ۴۰۴ ═══ */
.crash { display: grid; }
.crash__panel { grid-area: 1/1; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.crash__panel.is-active { opacity: 1; visibility: visible; }
.crash__code { direction: ltr; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(90px, 20vw, 170px); line-height: 1; letter-spacing: .06em; margin-bottom: 18px; }
.glitch { position: relative; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; }
.glitch::before { color: #e58f8f; animation: gl1 2.7s infinite steps(1); }
.glitch::after { color: #8fb6e5; animation: gl2 3.4s infinite steps(1); }
@keyframes gl1 { 0%,91% { opacity: 0; transform: none; } 92% { opacity: .8; transform: translate(4px,-3px); } 95% { opacity: .6; transform: translate(-3px,2px); } 97%,100% { opacity: 0; } }
@keyframes gl2 { 0%,88% { opacity: 0; transform: none; } 89% { opacity: .7; transform: translate(-4px,2px); } 93% { opacity: .5; transform: translate(3px,-1px); } 95%,100% { opacity: 0; } }
.crash__mono { direction: ltr; text-align: center; font: 12px ui-monospace, monospace; color: #aaa; }
.crash__mono.err { color: #d38d8d; }
.crash__status { color: var(--accent); margin-top: 4px; }
.crash-bar { width: min(360px, 80vw); height: 7px; margin: 18px auto; border: 1px solid var(--border); border-radius: 99px; overflow: hidden; direction: ltr; }
.crash-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .12s linear; }
.crash-bar.is-error { border-color: rgba(211,141,141,.6); }
.crash__reveal { opacity: 0; transform: translateY(12px); transition: opacity .8s, transform .8s; }
.crash__reveal.is-shown { opacity: 1; transform: none; }
.scene.is-shaking { animation: shake .5s linear 2; }
@keyframes shake { 0%,100% { transform: none; } 20% { transform: translate(3px,-2px); } 40% { transform: translate(-3px,2px); } 60% { transform: translate(2px,2px); } 80% { transform: translate(-2px,-2px); } }

/* ═══ دکمه نگه‌دار ═══ */
.hold-wrap { margin-top: 26px; }
.hold { position: relative; width: 88px; height: 88px; background: none; border: 0; cursor: pointer; user-select: none; touch-action: none; }
.hold svg { transform: rotate(-90deg); }
.hold__track { fill: none; stroke: var(--border); stroke-width: 2; }
.hold__ring { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.hold__label { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.hold.is-done .hold__label { color: var(--accent); }

/* ═══ تایمر زنده ═══ */
.live-counter-wrap {
  margin: 20px auto 10px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  max-width: 480px;
}
.live-counter-title {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.live-counter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  direction: ltr;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.live-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}
.live-num {
  font-size: clamp(20px, 4.5vw, 28px);
  color: var(--accent);
  font-weight: 700;
  line-height: 1.2;
}
.live-lbl {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  font-family: "Vazirmatn", sans-serif;
}

/* ═══ فینال ═══ */
.scene--final { background: radial-gradient(circle at 50% 42%, rgba(217,185,155,.09), transparent 40%); }
.final-name { margin: 30px 0 4px; color: var(--accent); font-size: clamp(52px, 11vw, 110px); line-height: 1.1; text-shadow: 0 0 44px rgba(217,185,155,.35); animation: nameGlow 3.5s ease-in-out infinite alternate; }
@keyframes nameGlow { from { text-shadow: 0 0 26px rgba(217,185,155,.2); } to { text-shadow: 0 0 60px rgba(217,185,155,.5); } }
.final-hbd { font-size: clamp(28px, 5vw, 54px); margin-bottom: 6px; }
.final-message { max-width: 620px; margin: 26px auto 0; }
.signature { color: var(--muted); font-family: "Playfair Display", serif; font-size: 14px; direction: ltr; margin-top: 26px; }
.candles-container { margin: 20px auto 10px; }
.candles { display: flex; justify-content: center; align-items: flex-end; gap: 7px; direction: ltr; margin: 16px auto 10px; min-height: 46px; }
.candle { position: relative; width: 6px; height: 34px; display: flex; align-items: flex-end; justify-content: center; cursor: pointer; }
.candle::before { content: ""; width: 1.5px; height: 20px; background: rgba(243,240,234,.25); border-radius: 2px; }
.candle i {
  position: absolute; top: 3px; left: 50%; width: 7px; height: 10px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 80%, #fff3d6, #ffcf8a 55%, transparent 78%);
  transform: translateX(-50%) scale(0); transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .4s;
  filter: drop-shadow(0 0 6px rgba(255,207,138,.8));
}
.candle.is-lit i { transform: translateX(-50%) scale(1); animation: flicker 1.5s ease-in-out infinite alternate; }
.candle.is-blown i { transform: translateX(-50%) scale(0); opacity: 0; animation: none; }
.candle.is-blown::after {
  content: ""; position: absolute; top: -10px; left: 50%; width: 3px; height: 12px;
  background: rgba(200, 200, 200, 0.6); border-radius: 50%; filter: blur(2px);
  animation: smoke 1.2s ease-out forwards;
}
@keyframes smoke {
  0% { transform: translate(-50%, 0) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -18px) scale(3); opacity: 0; }
}
.blow-button { margin-top: 10px; font-size: 13px; padding: 10px 18px; }

/* ═══ کلیک مجانی / شناور ═══ */
.floating-sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 18px;
  color: #ffd9a0;
  user-select: none;
  animation: floatSparkle 1.2s ease-out forwards;
}
@keyframes floatSparkle {
  0% { transform: translate(-50%, -50%) scale(0.5) rotate(0deg); opacity: 1; }
  50% { transform: translate(-50%, -120%) scale(1.3) rotate(15deg); opacity: 0.9; }
  100% { transform: translate(-50%, -200%) scale(0.8) rotate(-15deg); opacity: 0; }
}

/* ═══ اورلی پایانی ═══ */
.finale {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(circle at 50% 40%, rgba(217,185,155,.1), rgba(5,6,9,.96) 62%);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s;
}
.finale.is-open { opacity: 1; visibility: visible; }
.finale__inner { text-align: center; max-width: 560px; transform: translateY(20px) scale(.97); transition: transform .9s .1s cubic-bezier(.22,1,.36,1); }
.finale.is-open .finale__inner { transform: none; }
.finale-photo { width: min(300px, 72vw); border-radius: 12px; margin: 22px auto 0; display: block; box-shadow: 0 24px 70px rgba(0,0,0,.5); }
.finale__close { position: absolute; top: 20px; left: 20px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255,255,255,.03); color: var(--muted); cursor: pointer; }

/* ═══ HUD & Wish Star Button ═══ */
.wish-star-btn {
  position: fixed; top: 20px; right: 20px; z-index: 40;
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(217,185,155,.4);
  background: rgba(217,185,155,.08); color: var(--accent); font-size: 13px;
  cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(217,185,155,.15);
  transition: all .3s ease;
}
.wish-star-btn:hover {
  background: rgba(217,185,155,.2); border-color: var(--accent); transform: scale(1.06);
  box-shadow: 0 6px 25px rgba(217,185,155,.3);
}
.sound-toggle {
  position: fixed; top: 20px; left: 20px; z-index: 40; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid var(--border); background: rgba(255,255,255,.03);
  color: var(--muted); cursor: pointer; transition: color .3s, border-color .3s;
}
.sound-toggle:hover { color: var(--accent); border-color: rgba(217,185,155,.5); }
.sound-toggle.is-muted { color: rgba(169,165,160,.4); }
.progress-indicator {
  position: fixed; left: 28px; bottom: 28px; z-index: 20; display: flex; align-items: center; gap: 10px;
  direction: ltr; color: var(--muted); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.progress-indicator__current { color: var(--text); }
.progress-indicator__line { width: 42px; height: 1px; background: var(--border); }
.toast {
  position: fixed; bottom: 34px; left: 50%; transform: translate(-50%, 14px); z-index: 70;
  padding: 10px 20px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(10,11,16,.9); color: var(--text); font-size: 13px;
  opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ═══ ریسپانسیو ═══ */
@media (max-width: 600px) {
  .scene { padding: 36px 18px; }
  .terminal__body { padding: 16px; font-size: 10px; min-height: 220px; }
  .love-cards { gap: 8px; }
  .love-card { min-height: 128px; padding: 14px 8px; }
  .love-card strong { margin-top: 18px; font-size: 16px; }
  .polaroid { width: min(150px, 44vw); }
  .progress-indicator { left: 20px; bottom: 20px; }
  .candles { gap: 5px; }
  .skymap { width: min(340px, 92vw); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; transition-duration: .15s !important; }
}
/* ═══ کوییز کلاد ═══ */
.quiz { display: grid; gap: 22px; width: min(560px, 100%); margin: 24px auto; text-align: right; }
.quiz-q__title { color: var(--text); font-size: 16px; margin-bottom: 12px; }
.quiz-options { display: grid; gap: 8px; }
.quiz-option {
  padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px;
  background: rgba(255,255,255,.025); color: var(--text); cursor: pointer; text-align: right;
  pointer-events: auto; transition: background .25s, border-color .25s;
}
.quiz-option:hover { border-color: rgba(217,185,155,.5); background: var(--accent-soft); }
.quiz-q.is-answered .quiz-option { pointer-events: none; opacity: .5; }
.quiz-q.is-answered .quiz-option.is-picked { opacity: 1; border-color: var(--accent); background: var(--accent-soft); }
.quiz-reaction { margin-top: 10px; color: var(--accent); font-size: 14px; }

/* ═══ رمز ورود ═══ */
.passgate {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: var(--bg);
}
.passgate__inner { text-align: center; max-width: 420px; }
.passgate__label { color: var(--muted); font-size: 13px; letter-spacing: .1em; margin-bottom: 6px; }
.passgate__question { font-size: clamp(22px, 5vw, 32px); margin-bottom: 26px; }
#passgate-form { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.passgate__input {
  width: min(280px, 80vw); padding: 13px 18px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255,255,255,.025); color: var(--text); font: inherit; text-align: center;
  outline: none; transition: border-color .25s;
}
.passgate__input:focus { border-color: rgba(217,185,155,.5); }
.passgate__input.is-shaking { animation: shake .4s linear; }
.passgate__hint { margin-top: 18px; min-height: 1.5em; }
.passgate.is-unlocking { opacity: 0; visibility: hidden; transition: opacity .8s, visibility .8s; }

.compat { margin: 20px auto 6px; }
.compat .crash-bar { margin: 14px auto; }
.file-box {
  width: min(420px, 100%); margin: 24px auto; padding: 22px 20px; text-align: left; direction: ltr;
  border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.02);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--text);
}
.file-box__title { color: var(--accent); margin-bottom: 14px; letter-spacing: .05em; }
.file-box__row { display: flex; justify-content: space-between; margin: 6px 0; color: var(--muted); }
.file-box__row span:last-child { color: var(--text); }
.file-box__bar { color: var(--accent); letter-spacing: -1px; margin: 6px 0 2px; }
.file-box__label { color: var(--accent); }
.file-box__warning { direction: ltr; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }


/* Birthday sky illustration */
.cosmic-scene { max-width: 650px; }
.cosmic-date { color: var(--accent); letter-spacing: .04em; }
.cosmic-date span { padding: 0 8px; opacity: .7; }
.cosmic-intro { max-width: 440px; margin: 18px auto 0; color: var(--muted); line-height: 2; }
.cosmic-art { width: min(340px, 88vw); margin: 8px auto -4px; position: relative; }
.cosmic-glow { position: absolute; width: 70%; aspect-ratio: 1; left: 15%; top: 15%; border-radius: 50%; background: radial-gradient(circle, rgba(217,185,155,.13), rgba(100,82,128,.06) 45%, transparent 72%); filter: blur(10px); animation: cosmicPulse 5s ease-in-out infinite alternate; }
.cosmic-orbits { display: block; width: 100%; overflow: visible; position: relative; }
.cosmic-orbits .orbit { fill: none; stroke: url(#orbitStroke); stroke-width: .8; stroke-dasharray: 3 5; animation: orbitTurn 28s linear infinite; transform-origin: 170px 150px; }
.cosmic-orbits .orbit-b { animation-duration: 36s; animation-direction: reverse; }
.cosmic-orbits .orbit-c { animation-duration: 48s; }
.cosmic-sun { fill: #f5dfbd; filter: drop-shadow(0 0 8px rgba(245,223,189,.8)); }
.cosmic-orb { cursor: pointer; outline: none; }
.cosmic-orb circle { fill: #f1d7b0; stroke: rgba(255,244,217,.55); stroke-width: 1; filter: drop-shadow(0 0 5px rgba(233,201,160,.7)); transition: r .25s ease, fill .25s ease; }
.cosmic-orb text { fill: #f3e4cc; font-size: 16px; font-family: sans-serif; }
.cosmic-orb:hover circle, .cosmic-orb:focus circle, .cosmic-orb.is-active circle { fill: #fff4d9; filter: drop-shadow(0 0 9px rgba(255,244,217,.95)); }
.cosmic-orb:focus-visible { outline: none; }
.cosmic-stars { fill: #fff0d9; opacity: .7; animation: starTwinkle 3s ease-in-out infinite alternate; }
.cosmic-note { max-width: 420px; min-height: 84px; margin: 0 auto 12px; padding: 15px 20px; border: 1px solid var(--border); border-radius: 18px; background: rgba(255,255,255,.025); display: grid; align-content: center; gap: 6px; text-align: center; }
.cosmic-note strong { color: var(--accent); font-weight: 500; }
.cosmic-note span { color: var(--muted); font-size: .9rem; line-height: 1.9; }
@keyframes orbitTurn { to { rotate: 360deg; } }
@keyframes cosmicPulse { from { opacity: .55; transform: scale(.94); } to { opacity: 1; transform: scale(1.08); } }
@keyframes starTwinkle { from { opacity: .35; } to { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .cosmic-orbits .orbit, .cosmic-glow, .cosmic-stars { animation: none; } }
