/* donaluz × release day — GTA VI-style prompt landing */
@font-face { font-family: "Anton"; src: url("fonts/anton.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Grotesk"; src: url("fonts/grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Vazir"; src: url("fonts/vazirmatn.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --night: #1b0a2b;
  --night-2: #2a0f3d;
  --violet: #7b3fe4;
  --magenta: #ff3ea5;
  --coral: #ff7a59;
  --orange: #ffb347;
  --teal: #2ee6d6;
  --white: #fff6fb;
  --dim: rgba(255, 246, 251, .72);
  --glass: rgba(27, 10, 43, .55);
  --line: rgba(255, 255, 255, .16);
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sunset: linear-gradient(100deg, var(--orange) 0%, var(--coral) 28%, var(--magenta) 62%, var(--violet) 100%);
}
html[lang="fa"] { --body: "Vazir", "Grotesk", system-ui, sans-serif; --display: "Vazir", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; min-height: 100svh; color: var(--white); background: var(--night);
  font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--magenta); color: #fff; }

/* ---------- sky ---------- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, #2b0d48 0%, #5a1a78 22%, #b22d8c 42%, #ff6a6a 56%, #ffa25a 62%, #2a0f3d 62.2%, #1b0a2b 100%); }
.sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 10, 43, .35), rgba(27, 10, 43, .15) 40%, rgba(27, 10, 43, .55)); }
.sky__sun { position: absolute; left: 50%; top: 62%; width: min(120vw, 760px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: linear-gradient(180deg, #ffe066 0%, #ff9a3c 40%, #ff3ea5 75%, #b42ad6 100%);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% 32% no-repeat, repeating-linear-gradient(180deg, #000 0 12px, transparent 12px 19px) bottom / 100% 68% no-repeat;
          mask: linear-gradient(#000 0 0) top / 100% 32% no-repeat, repeating-linear-gradient(180deg, #000 0 12px, transparent 12px 19px) bottom / 100% 68% no-repeat;
  clip-path: inset(0 0 50% 0); filter: drop-shadow(0 0 60px rgba(255, 90, 140, .55)); opacity: .9; }
.sky__grid { position: absolute; left: -50%; right: -50%; top: 62%; bottom: -10%; transform-origin: top; transform: perspective(300px) rotateX(62deg);
  background-image: linear-gradient(rgba(255, 62, 165, .55) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 62, 165, .55) 1px, transparent 1px);
  background-size: 60px 60px; animation: drive 2.4s linear infinite; -webkit-mask: linear-gradient(#000 0%, transparent 85%); mask: linear-gradient(#000 0%, transparent 85%); }
@keyframes drive { to { background-position: 0 60px, 0 0; } }
.palm { position: absolute; bottom: 36%; width: min(46vw, 320px); color: #1b0a2b; opacity: .95; }
.palm--l { left: -12vw; transform: rotate(-6deg); }
.palm--r { right: -14vw; transform: scaleX(-1) rotate(-4deg); width: min(40vw, 280px); }
.palm { animation: sway 6s ease-in-out infinite; transform-origin: 52% 100%; }
.palm--r { animation-delay: -3s; }
@keyframes sway { 50% { rotate: 1.6deg; } }
.sky__scan { position: absolute; inset: 0; opacity: .08; background: repeating-linear-gradient(180deg, #000 0 1px, transparent 1px 3px); }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) clamp(16px, 4vw, 48px) 12px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(27, 10, 43, .75), rgba(27, 10, 43, .2)); }
.top__logo { font: italic 400 24px/1 Georgia, "Times New Roman", serif; letter-spacing: -.01em; direction: ltr; }
.top__logo i { color: var(--orange); }
.lang { display: flex; padding: 3px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass); direction: ltr; }
.lang button { min-width: 44px; height: 32px; padding: 0 12px; border: 0; border-radius: 99px; background: transparent; font-weight: 600; font-size: 13px; color: var(--dim); transition: background .3s, color .3s; }
.lang button[lang="fa"] { font-family: "Vazir", sans-serif; font-size: 14px; }
.lang button[aria-pressed="true"] { background: var(--white); color: var(--night); }

/* ---------- layout ---------- */
.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 8px clamp(16px, 4vw, 48px) 0;
  display: grid; gap: 28px; grid-template-areas: "intro" "deck" "prompt" "tag"; }
.intro { grid-area: intro; text-align: center; padding-top: 10px; }
.deck { grid-area: deck; }
.prompt { grid-area: prompt; }
.tag { grid-area: tag; }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .wrap { grid-template-columns: 1.05fr .95fr; grid-template-areas: "intro deck" "prompt deck" "tag deck"; column-gap: 56px; row-gap: 26px; align-items: start; padding-top: 28px; }
  .intro { text-align: start; }
  .deck { position: sticky; top: 90px; }
}

/* ---------- intro ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.title { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .9; letter-spacing: .005em; font-size: clamp(3.4rem, 15vw, 7.2rem); }
.title span { display: block; }
.title > span:first-child { color: var(--white); text-shadow: 0 0 24px rgba(255, 62, 165, .55), 4px 4px 0 var(--night); }
.title__neon { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(4px 4px 0 var(--night)) drop-shadow(0 0 22px rgba(255, 62, 165, .45)); padding-bottom: .04em; }
html[lang="fa"] .title { text-transform: none; font-weight: 900; line-height: 1.15; font-size: clamp(2.8rem, 13vw, 5.6rem); }
.sub { max-width: 30em; margin: 16px auto 0; color: rgba(255, 246, 251, .86); text-shadow: 0 1px 12px rgba(27, 10, 43, .9); font-size: clamp(15px, 3.8vw, 18px); }
@media (min-width: 900px) { .sub { margin-inline: 0; } }

/* ---------- deck ---------- */
.deck { position: relative; display: grid; justify-items: center; user-select: none; -webkit-user-select: none; }
.deck { --w: min(74vw, 340px); }
@media (min-width: 900px) { .deck { --w: min(36vw, 430px); } }
.deck::before { content: ""; display: block; width: var(--w); aspect-ratio: 4 / 5; }
.deck__card { position: absolute; top: 0; left: 50%; width: var(--w); aspect-ratio: 4 / 5; margin: 0 0 0 calc(var(--w) / -2);
  border-radius: 18px; overflow: hidden; background: var(--night-2); cursor: pointer;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .14);
  transition: transform .8s var(--ease), opacity .6s, filter .6s; will-change: transform; }
.deck__card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.deck__card[data-pos="0"] { z-index: 4; transform: none; }
.deck__card[data-pos="1"] { z-index: 3; transform: translateX(16%) rotate(7deg) scale(.9); filter: brightness(.7); }
.deck__card[data-pos="2"] { z-index: 2; transform: translateX(-16%) rotate(-7deg) scale(.86); filter: brightness(.6); }
.deck__card[data-pos="3"] { z-index: 1; transform: scale(.8); opacity: 0; }
.deck__card[data-pos="out"] { z-index: 5; transform: translateX(-120%) rotate(-18deg); opacity: 0; }
.deck__card[data-pos="0"]::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .25) 50%, transparent 65%); transform: translateX(-100%); animation: shine 4s 1s ease-in-out infinite; }
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
.deck__dots { display: flex; gap: 6px; margin-top: 18px; }
.deck__dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .35); transition: width .4s var(--ease), background .4s; }
.deck__dots i.on { width: 22px; background: var(--white); }
.deck__hint { margin: 8px 0 0; font-size: 12.5px; color: var(--dim); }

/* ---------- prompt ---------- */
.prompt { padding: clamp(18px, 4vw, 28px); border-radius: 24px; border: 1px solid var(--line); background: rgba(27, 10, 43, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.prompt__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.prompt__head h2 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 26px; letter-spacing: .02em; }
html[lang="fa"] .prompt__head h2 { font-weight: 800; text-transform: none; font-size: 22px; }
.prompt__meta { font-size: 12px; color: var(--dim); white-space: nowrap; }
.prompt__note { margin: 4px 0 14px; font-size: 13px; color: var(--dim); }
.prompt__box { position: relative; border-radius: 16px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .08); }
.prompt__text { margin: 0; padding: 16px 16px 0; font: 400 14px/1.65 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; text-align: left;
  max-height: calc(1.65em * 2 + 16px); overflow: hidden; transition: max-height .6s var(--ease); outline: none;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent); mask-image: linear-gradient(180deg, #000 45%, transparent); }
.prompt__box[data-open="true"] .prompt__text { -webkit-mask-image: none; mask-image: none; padding-bottom: 8px; }
.prompt__more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 46px; border: 0; border-top: 1px solid rgba(255, 255, 255, .08); background: transparent; color: var(--orange); font-weight: 600; font-size: 14px; }
.prompt__more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.prompt__more[aria-expanded="true"] svg { transform: rotate(180deg); }

.actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 22px; border: 0; border-radius: 16px; font-weight: 700; font-size: 16px; transition: transform .2s, filter .3s, background .3s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn--copy { background: var(--sunset); color: #1b0a2b; box-shadow: 0 10px 30px -10px rgba(255, 62, 165, .8); }
.btn--copy:hover { filter: brightness(1.08) saturate(1.1); }
.btn--copy.is-done { background: var(--teal); box-shadow: 0 10px 30px -10px rgba(46, 230, 214, .8); }
.btn--share { background: rgba(255, 255, 255, .1); border: 1px solid var(--line); color: var(--white); }
.btn--share:hover { background: rgba(255, 255, 255, .18); }
.btn--icon { width: 56px; padding: 0; }

.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--dim); }
.steps b { width: 26px; height: 26px; display: grid; place-items: center; flex: none; border-radius: 8px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); color: var(--white); font-size: 13px; }

/* ---------- tag ---------- */
.tag { text-align: center; padding: 6px 0 10px; }
@media (min-width: 900px) { .tag { text-align: start; } }
.tag p { margin: 0 0 12px; color: var(--dim); font-size: 14.5px; }
.tag__ig { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); font-weight: 600; transition: background .3s; }
.tag__ig:hover { background: rgba(255, 255, 255, .15); }
.tag__ig svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.tag__ig svg .fill { fill: currentColor; stroke: none; }

.foot { width: min(1180px, 100%); margin: 26px auto 0; padding: 18px clamp(16px, 4vw, 48px) 24px; display: flex; gap: 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); font-size: 11.5px; color: rgba(255, 246, 251, .55); }
.foot p { margin: 0; max-width: 60em; }

/* ---------- mobile dock ---------- */
.dock { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(27, 10, 43, 0), rgba(27, 10, 43, .92) 35%);
  transition: transform .45s var(--ease), opacity .3s; }
.dock.is-hidden { transform: translateY(110%); opacity: 0; }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- share sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; justify-items: center; }
.sheet[hidden] { display: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(10, 3, 18, .6); backdrop-filter: blur(4px); animation: fade .3s; }
.sheet__panel { position: relative; width: min(520px, 100%); padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: #2a0f3d; border: 1px solid var(--line); animation: up .45s var(--ease); }
@media (min-width: 600px) { .sheet { align-items: center; } .sheet__panel { border-radius: 26px; } }
.sheet__grab { width: 40px; height: 4px; margin: 0 auto 14px; border-radius: 99px; background: rgba(255, 255, 255, .25); }
.sheet h3 { margin: 0 0 16px; text-align: center; font-size: 17px; }
.sheet__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sheet__grid > * { display: grid; justify-items: center; gap: 8px; padding: 14px 6px; border-radius: 16px; border: 1px solid transparent; background: rgba(255, 255, 255, .06); font-size: 13px; }
.sheet__grid > *:hover { border-color: var(--line); background: rgba(255, 255, 255, .1); }
.ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: 20px; color: #fff; }
.ic--tg { background: #2aabee; } .ic--wa { background: #25d366; } .ic--sms { background: #34c759; } .ic--x { background: #000; border: 1px solid var(--line); } .ic--mail { background: var(--coral); } .ic--link { background: var(--violet); }
.sheet__close { width: 100%; height: 50px; margin-top: 14px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .08); font-weight: 600; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 60; left: 50%; top: calc(16px + env(safe-area-inset-top)); transform: translate(-50%, -160%); max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 14px; background: var(--white); color: var(--night); font-weight: 600; font-size: 14px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6);
  transition: transform .5s var(--ease); text-align: center; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); }

/* ---------- entrance ---------- */
.intro, .deck, .prompt, .tag { animation: rise .9s var(--ease) both; }
.deck { animation-delay: .12s; } .prompt { animation-delay: .22s; } .tag { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
.deck { touch-action: pan-y; }
