@charset "UTF-8";

:root {
  --cream: #fff0d7;
  --ink: #9c2c12;
  --coral: #ed4a25;
  --muted: #9d513c;
  --blue: #4997d7;
  --gold: #ffce78;
  --sans: "Segoe UI", Arial, sans-serif;
  --display: "Arial Black", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100svh;
  isolation: isolate;
  overflow-x: hidden;
  overflow-x: clip;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #10478c; outline-offset: 5px; }
[hidden] { display: none !important; }

.sunset-scene, .sunset-light { position: fixed; inset: 0; pointer-events: none; z-index: -2; }
.sunset-scene {
  background: #ffe6ba url("assets/pearl-backdrop.png") center / cover no-repeat;
  animation: sunset-breathe 28s ease-in-out infinite alternate;
}
.sunset-light {
  z-index: -1;
  background: linear-gradient(90deg, #fff1daca 0%, #fff0d7bf 28%, #fff0d766 49%, #fff0d700 75%),
    linear-gradient(0deg, #fff0d750, transparent 30%);
}
.page { width: min(1600px, 100%); margin: auto; padding: 0 clamp(24px, 5.2vw, 84px); }
.topbar { display: flex; gap: 28px; align-items: center; min-height: 100px; }
.brand { display: flex; gap: 9px; align-items: center; text-decoration: none; font-size: 15px; line-height: .98; font-weight: 900; letter-spacing: -.035em; }
.brand-sun { font-size: 36px; font-weight: 400; color: #cd3a1b; }
.how-link { margin-left: 42px; font-size: 12px; text-decoration: none; }
.how-link span { display: inline-block; margin-left: 7px; font-size: 19px; transition: transform .2s; }
.how-link:hover span { transform: translate(3px, 3px); }
.birthday { margin-left: auto; font-size: 10px; letter-spacing: .16em; font-weight: 700; }
.birthday span { color: #df5529; margin: 0 10px; }
.motion-toggle { display: flex; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid #ab4b3638; border-radius: 99px; color: var(--ink); background: #fff5e653; min-height: 44px; font-size: 10px; backdrop-filter: blur(8px); }
.motion-toggle > span:first-child { font-size: 23px; }
.main { display: grid; grid-template-columns: .43fr .57fr; gap: 0; align-items: center; min-height: calc(100svh - 160px); padding: 0 0 18px; }
.intro, .experience { min-width: 0; }
.intro { position: relative; z-index: 2; padding: 12px 0 28px; }
.intro-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; animation: intro-in .8s .06s both; }
.date-tag { display: inline-flex; gap: 15px; align-items: center; padding: 9px 16px; border: 1px solid #b43b1966; border-radius: 99px; font-size: 13px; background: #fff4e444; }
.date-tag span { color: #dc6138; font-size: 13px; }
.edition-tag { font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }
.recipient { margin: 0 0 12px 3px; font-size: clamp(24px, 2.5vw, 35px); letter-spacing: -.04em; font-weight: 800; animation: intro-in .8s .13s both; }
h1 { margin: 0 0 25px; color: #bd3516; font: 900 clamp(76px, 8.5vw, 133px)/.92 var(--display); letter-spacing: -.082em; }
h1 > span { display: block; animation: intro-in .9s .22s both; }
h1 > span:nth-child(2) { animation-delay: .31s; }
h1 em { display: block; padding-right: 8px; margin: 2px 0 0 -3px; font: 700 italic 1.04em/.96 Georgia, "Times New Roman", serif; letter-spacing: -.065em; animation: intro-in 1s .4s both; }
.intro-text { margin: 0 0 22px 3px; max-width: 320px; color: var(--ink); font-size: 15px; line-height: 1.7; animation: intro-in .9s .5s both; }
.steps { display: flex; flex-wrap: wrap; gap: 13px; margin: 0 0 0 3px; padding: 0; list-style: none; scroll-margin-top: 26px; animation: intro-in .9s .57s both; }
.steps li { display: flex; align-items: center; gap: 6px; color: #a35b45; transition: color .25s; }
.steps li span { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #ac4d3c42; border-radius: 50%; font-size: 8px; background: #fff1da66; transition: background .3s, color .3s; }
.steps li b { font-size: 12px; font-weight: 600; }
.steps .active { color: #ad2d12; }
.steps .active span { background: #e84e2b; color: white; border-color: #e84e2b; box-shadow: 0 3px 10px #f1653430; }
.steps .done span { color: white; border-color: #ad3719; background: #ad3719; }
.handnote { display: flex; align-items: center; gap: 9px; margin: 20px 0 0 4px; color: #9e4935; font: italic 14px Georgia, serif; transform: rotate(-3deg); transform-origin: left; animation: note-in .9s .65s both; }
.handnote span { font-size: 31px; line-height: 1; }

.experience { position: relative; padding-top: 4px; animation: intro-in 1.2s .15s both; }
.stage { position: relative; height: clamp(470px, 64svh, 670px); isolation: isolate; }
.stage-halo { position: absolute; inset: 2% 0 0; border-radius: 50%; background: radial-gradient(ellipse, #fff1c65c, #fff7dc00 68%); }
.pedestal { position: absolute; left: 5%; right: 0; bottom: 0; height: 10%; background: linear-gradient(100deg, #66b5e9, #348bc4 36%, #4389bb 70%, #30608d); border-radius: 0 0 50% 50% / 0 0 30% 30%; box-shadow: 0 16px 32px #4c32212b, inset 0 -4px 10px #19457220; z-index: -1; }
.pedestal::before { content: ""; position: absolute; inset: -32% 0 auto; height: 65%; border-radius: 50%; background: radial-gradient(ellipse at 45% 40%, #ade1f4, #77c4ec 50%, #509fcc 80%); box-shadow: inset 0 2px 3px #c4e4ff, inset 0 -1px 1px #2876a1; }
.pedestal::after { content: ""; position: absolute; width: 60%; left: 20%; top: -10%; height: 35%; border-radius: 50%; background: #7441284a; filter: blur(10px); }
.machine { position: absolute; left: 50%; bottom: 10%; height: 88%; aspect-ratio: 1122/1402; max-width: 85%; transform: translateX(-50%); filter: drop-shadow(0 14px 8px #76422135); animation: machine-hover 6s 1.2s ease-in-out infinite alternate; }
.machine-art { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; pointer-events: none; }
.dispense { position: absolute; width: 22.8%; aspect-ratio: 1; left: 49.8%; top: 70.5%; transform: translate(-50%, -50%); padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff9e9; display: flex; align-items: center; justify-content: center; flex-direction: column; container-type: inline-size; transition: background .2s; }
.dispense > span { position: relative; z-index: 2; margin-top: 5cqw; font-size: 10px; font-size: 15cqw; line-height: 1; white-space: nowrap; text-transform: uppercase; font-weight: 600; letter-spacing: .13em; color: #fff0c9; text-shadow: 0 1px 4px #83190145; }
.spin-icon { position: relative; z-index: 2; display: block; width: 43%; height: auto; flex-shrink: 0; color: #fff0c9; filter: drop-shadow(0 1px 3px #83190140); transition: transform .35s; }
.dispense::before { content: ""; position: absolute; inset: 0; border: 1px solid #ffe4b4a6; border-radius: 50%; opacity: .55; box-shadow: 0 0 0 8px #fff0cc12; animation: press-pulse 2.7s ease-out infinite; pointer-events: none; }
.dispense::after { content: ""; position: absolute; inset: 4%; border-radius: 50%; background: linear-gradient(130deg, #fff5cf44, #fff5cf00 55%); opacity: 0; transition: opacity .2s; }
.dispense:not(:disabled):hover::after { opacity: 1; }
.dispense:not(:disabled):hover .spin-icon { transform: rotate(45deg); }
.dispense:not(:disabled):active .spin-icon { transform: rotate(65deg) scale(.92); }
.dispense:disabled::before { animation: none; opacity: 0; }
.dispense:disabled { color: #ffe7c9b3; }
.dome-seal { position: absolute; top: 30%; left: 29%; transform: rotate(-7deg); width: 42%; container-type: inline-size; text-align: center; line-height: 1; color: #b9782b; filter: drop-shadow(0 1px 1px #fff0b1ab); pointer-events: none; }
.seal-kicker { display: block; font: italic 12px Georgia, serif; font-size: 12cqw; margin-bottom: 3cqw; }
.dome-seal b { display: block; font: 700 italic 18px Georgia, serif; font-size: 17.5cqw; letter-spacing: -.025em; color: #b9782b; background: linear-gradient(165deg, #954a19 5%, #d39439 30%, #f3d17d 47%, #a25920 66%, #dfa347 88%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.dome-seal i { display: block; font-style: normal; font-size: 12px; font-size: 13cqw; margin-top: 4cqw; color: #c78a37; }
.glass-glint { position: absolute; color: #fff9d9; text-shadow: 0 0 15px #fff5c1; font-size: 42px; pointer-events: none; animation: glimmer 4s ease-in-out infinite; }
.glint-one { top: 26%; left: 18%; }
.glint-two { top: 43%; right: 22%; animation-delay: -1.8s; font-size: 32px; }
.glint-three { top: 17%; right: 28%; animation-delay: -3s; font-size: 25px; }
.selection-orbit { position: absolute; top: 18%; left: 13%; width: 72%; height: 40%; border: 2px solid transparent; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .3s; }
.orbit-capsule { position: absolute; width: clamp(44px, 5.3vw, 74px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 33% 25%, #fffefbaa 0%, #fffefa00 34%), linear-gradient(160deg, #ff7c46 0%, #f14f2c 49%, #ffe7b4e3 51%, #ebae7bd1 75%, #b9572c 100%); border: 1px solid #fff7e59c; box-shadow: inset -5px -5px 8px #90370f27, inset 3px 3px 5px #fff5d955, 7px 12px 14px #743c2923; animation: orb-float 5s ease-in-out infinite alternate; pointer-events: none; }
.orbit-capsule::before { content: ""; position: absolute; left: 16%; top: 11%; width: 36%; height: 18%; border-radius: 50%; background: #fffdf9a6; transform: rotate(-35deg); filter: blur(1px); }
.orbit-capsule::after { content: ""; position: absolute; left: 4%; top: 49%; width: 94%; border-top: 1px solid #fff3d7b3; }
.orb-one { top: 7%; left: 8%; transform: rotate(27deg); --rotation: 27deg; }
.orb-two { right: -1%; top: 65%; --rotation: -21deg; animation-delay: -1.9s; width: clamp(45px, 5.8vw, 80px); }
.orb-three { left: 4%; bottom: 3%; --rotation: 16deg; animation-delay: -3.1s; width: clamp(56px, 6.5vw, 89px); }
.stage-spark { position: absolute; pointer-events: none; font-family: Georgia, serif; color: #f3b53c; text-shadow: 2px 3px 0 #b7792790, 4px 5px 10px #b4623033; animation: star-turn 7s ease-in-out infinite alternate; }
.spark-one { top: 16%; right: 3%; font-size: 65px; }
.spark-two { bottom: 24%; left: 2%; font-size: 51px; animation-delay: -3s; }
.spark-three { right: 13%; bottom: 14%; color: #fff6d4; font-size: 45px; animation-delay: -1s; }

.capsule-slot { position: absolute; top: 84.7%; left: 49.8%; width: 20%; aspect-ratio: 1; transform: translateX(-50%); z-index: 4; }
.reward { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 50%; background: transparent; animation: capsule-drop .75s cubic-bezier(.24,.65,.4,1) both; }
.reward::after { content: "ОТКРОЙ ♡"; position: absolute; top: 112%; left: -40%; right: -40%; text-align: center; color: #812a11; font-size: 9px; font-weight: 700; letter-spacing: .1em; animation: hint-pulse 2.4s ease-in-out infinite; }
.capsule-shadow { position: absolute; width: 90%; height: 18%; left: 5%; bottom: -9%; border-radius: 50%; background: #42251c66; filter: blur(4px); }
.capsule-top, .capsule-bottom { position: absolute; inset: 0; border-radius: 50%; border: 1px solid #ffebc8; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .5s; }
.capsule-top { z-index: 3; clip-path: inset(0 0 49% 0); background: radial-gradient(ellipse at 26% 13%, #ffedd4aa, transparent 34%), linear-gradient(140deg, #ff9971, #f84c26 50%, #b72509); box-shadow: inset -9px -4px 12px #8f310e25; }
.capsule-top::after { content: ""; position: absolute; width: 30%; height: 13%; left: 15%; top: 14%; background: #fff6d887; border-radius: 50%; transform: rotate(-27deg); }
.capsule-top i { position: absolute; top: 13%; left: 42%; color: #fff6e2; font-size: 22px; font-style: normal; text-shadow: 0 2px 3px #ac351838; }
.capsule-bottom { z-index: 2; clip-path: inset(50% 0 0); background: radial-gradient(ellipse at 40% 45%, #fff3d8, #f6cd967d 70%), linear-gradient(135deg, #fff6d99e, #e3a570); box-shadow: inset -10px -7px 15px #994d1938; }
.mini-ticket { position: absolute; inset: 5% 0; padding: 12% 3%; border-radius: 5px; background: #fff7e5; color: #b63b1e; opacity: 0; transform: scale(.6) translateY(10px); transition: transform .7s, opacity .4s; box-shadow: 0 4px 15px #5c311936; z-index: 1; }
.mini-ticket small { display: block; font-size: 5px; font-weight: 700; letter-spacing: .1em; }
.mini-ticket b { display: block; font-size: 10px; font-weight: 900; margin: 7px 0 5px; }
.mini-ticket i { font-size: 20px; font-style: normal; }
.opening .reward, .revealed .reward { animation: none; }
.opening .capsule-top, .revealed .capsule-top { transform: translate(-15%, -72%) rotate(-25deg); opacity: .5; }
.opening .capsule-bottom, .revealed .capsule-bottom { transform: translate(17%, 28%) rotate(18deg); opacity: .5; }
.opening .mini-ticket, .revealed .mini-ticket { transform: translateY(-38%) rotate(-7deg) scale(1.1); opacity: 1; z-index: 5; }
.opening .reward::after, .revealed .reward::after { display: none; }
.machine[data-result="retry"] .capsule-top { background: radial-gradient(ellipse at 26% 13%, #ffffd6bb, transparent 34%), linear-gradient(140deg, #ffd99c, #f5b153 50%, #bf7227); }
.machine[data-result="bonus"] .capsule-top { background: radial-gradient(ellipse at 26% 13%, #e7f9ffbb, transparent 34%), linear-gradient(140deg, #abdffe, #609ee1 50%, #276cae); }
.machine.dispensing { animation: selection-rock .55s ease-in-out infinite; }
.machine.dispensing.choosing { animation-duration: .8s; }
.dispensing .selection-orbit { opacity: .7; border-top-color: #fff7d2; border-right-color: #ffca776e; box-shadow: 0 -4px 20px #fff0bb5c; animation: orbit-spin 1.2s linear infinite; }
.dispensing .glass-glint { animation: glimmer .65s ease-in-out infinite; }
.dispensing .spin-icon { animation: orbit-spin 1.2s linear infinite; }
.dispensing.almost, .dispensing.suspense { animation: none; }
.dispensing.almost .selection-orbit, .dispensing.suspense .selection-orbit { border: 2px solid #fff0b4; animation: chosen-glow 1s ease-in-out infinite alternate; }
.dispensing.suspense .selection-orbit { animation-duration: .6s; }
.machine.ready .dispense, .machine.revealed .dispense { color: #ffe9ce9c; }

.controls { position: relative; max-width: 360px; margin: 16px auto 0; min-height: 34px; text-align: center; }
.machine-readout { display: inline-flex; gap: 7px; align-items: center; border-radius: 99px; padding: 8px 13px; color: #84381f; background: #fff4decf; border: 1px solid #ffd0a48c; box-shadow: 0 4px 20px #77442810; backdrop-filter: blur(12px); font-size: 8px; letter-spacing: .06em; font-weight: 700; }
.screen-led { width: 5px; height: 5px; border-radius: 50%; background: #ed652f; box-shadow: 0 0 7px #f37442b3; }
#draw-count { border-left: 1px solid #c4916c70; padding-left: 8px; font-size: 7px; color: #a4684d; }
.machine-status { position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.capsule-action { margin-top: 14px; }
.capsule-action, .continue-spin, .save-ticket { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 12px; padding: 13px 21px; min-height: 54px; border: 1px solid #fff5d579; border-radius: 99px; background: linear-gradient(160deg, #ff8050, #ed4a25 55%, #d93818); color: #fff9eb; box-shadow: inset 0 1px 1px #ffdabcab, 0 7px 17px #c8472433; font-size: 13px; font-weight: 700; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.capsule-action span, .save-ticket > span:last-child { font-size: 24px; font-weight: 400; }
.capsule-action:not(:disabled):hover, .continue-spin:not(:disabled):hover, .save-ticket:hover { transform: translateY(-2px); box-shadow: inset 0 1px 1px #ffdabcab, 0 10px 22px #c8472440; }
.capsule-action:disabled, .continue-spin:disabled { opacity: .65; }
.small-actions button { min-height: 44px; padding: 7px 12px; border: 0; background: transparent; color: #8d4a32; font-size: 10px; text-decoration: underline; text-underline-offset: 4px; }
.small-actions button:disabled { opacity: .5; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 22px; border-top: 1px solid #b751282b; color: #803a22; font-size: 10px; }
.footer i { font-style: normal; font-size: 17px; margin-left: 4px; }

dialog { color: var(--ink); }
dialog::backdrop { background: #5e281c85; backdrop-filter: blur(12px); }
.dialog-close { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #b951263b; background: #fff1dbc9; color: #923017; border-radius: 50%; font-size: 27px; z-index: 10; backdrop-filter: blur(8px); }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tease-dialog { width: min(460px, calc(100% - 28px)); padding: 43px 35px 32px; max-height: calc(100dvh - 28px); border: 1px solid #fff2d1; border-radius: 26px; background: radial-gradient(ellipse at 50% 25%, #fff9ec, #ffe5c7 95%); box-shadow: 0 25px 100px #732b2245; overflow: auto; text-align: center; }
.tease-dialog[open] { animation: dialog-enter .5s cubic-bezier(.15,.8,.2,1) both; }
.tease-dialog .eyebrow { color: #c55732; margin: 8px 0 27px; }
.spin-token { width: 112px; height: 112px; display: grid; place-items: center; margin: 0 auto 28px; border-radius: 50%; background: radial-gradient(ellipse at 30% 17%, #ffe8b8, transparent 48%), linear-gradient(140deg, #ffb569, #ee6c35 52%, #c24422); border: 2px solid #fff4d7; box-shadow: 0 0 0 9px #ffc69733, inset -5px -6px 10px #a5331a30, 0 13px 28px #ac4d222d; font-size: 62px; font-weight: 500; color: #fff5d4; text-shadow: 0 2px 4px #ba412657; animation: token-float 3s ease-in-out infinite alternate; }
.tease-dialog.bonus .spin-token { background: radial-gradient(ellipse at 30% 17%, #e7f9ff, transparent 48%), linear-gradient(140deg, #a2dffc, #5594d1 52%, #2772b5); box-shadow: 0 0 0 9px #84bcec2d, inset -5px -6px 10px #0b55803d, 0 13px 28px #3772a02e; font-size: 46px; }
.tease-dialog h2 { margin: 0 0 17px; font: 900 43px/.98 var(--display); letter-spacing: -.065em; }
.tease-message { font-size: 13px; color: #9f5a42; line-height: 1.75; margin: 0 0 26px; text-wrap: balance; }
.continue-spin { justify-content: center; min-height: 56px; }
.tease-dialog > small { display: block; margin-top: 17px; font-size: 10px; color: #a96b51; }
.gift-dialog { width: min(940px, calc(100% - 36px)); max-height: calc(100dvh - 36px); padding: 0; border: 1px solid #ffe7bd; border-radius: 24px; background: #fff0d8; overflow: auto; box-shadow: 0 30px 100px #67281a55; }
.gift-dialog[open] { display: grid; grid-template-columns: .48fr .52fr; animation: gift-enter .7s cubic-bezier(.15,.8,.2,1) both; }
.gift-art { min-width: 0; overflow: hidden; background: #ffc58c; }
.gift-art img { display: block; width: 100%; height: auto; aspect-ratio: 941/1672; object-fit: cover; }
.gift-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 64px 34px 32px; background: radial-gradient(ellipse at 0 0, #ffdfb4, #fff0d8 70%); }
.gift-copy .eyebrow { margin: 0 0 20px; font-size: 9px; color: #b54a2c; }
.gift-copy .eyebrow span { display: inline; }
.gift-copy h2 { margin: 0 0 25px; font: 900 clamp(45px, 4.3vw, 65px)/.97 var(--display); letter-spacing: -.07em; color: #bb3618; }
.gift-copy h2 em { display: inline-block; font: 700 italic 1.05em/1.05 Georgia, serif; letter-spacing: -.065em; }
.gift-message { margin: 0; color: #935238; font-size: 13px; line-height: 1.85; }
.certificate-details { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10px; margin: 27px 0; padding: 18px 0; border-top: 1px dashed #ba6a433b; border-bottom: 1px dashed #ba6a433b; }
.certificate-details span { display: block; font-size: 9px; color: #b27450; margin-bottom: 7px; }
.certificate-details b { display: block; font-weight: 700; font-size: 12px; }
.certificate-details i { font-style: normal; font-size: 15px; color: #e55530; margin-left: 5px; }
.gift-actions { display: flex; flex-direction: column; align-items: center; }
.gift-actions button { font-size: 10px; min-height: 44px; margin-top: 9px; padding: 6px 10px; border: 0; background: transparent; color: #a46748; text-decoration: underline; text-underline-offset: 4px; }
.certificate-note { display: block; text-align: center; font-size: 9px; margin-top: 5px; color: #b77f5b; }
.confetti { position: fixed; z-index: 30; pointer-events: none; width: 7px; height: 13px; border-radius: 2px; background: var(--color); left: var(--left); top: -25px; animation: confetti-fall var(--duration) ease-in var(--delay) both; }
.no-script { background: #fff3de; padding: 25px; font-size: 15px; line-height: 1.7; border-top: 1px solid #cd855c66; }
body:has(dialog[open]) { overflow: hidden; }

@keyframes intro-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes note-in { from { opacity: 0; transform: rotate(-3deg) translateY(15px); } to { opacity: 1; transform: rotate(-3deg); } }
@keyframes machine-hover { from { transform: translateX(-50%); } to { transform: translate(-50%, -7px); } }
@keyframes sunset-breathe { to { transform: scale(1.035); } }
@keyframes press-pulse { 0% { opacity: .55; transform: scale(1); } 75%,100% { opacity: 0; transform: scale(1.27); } }
@keyframes glimmer { 0%,80%,100% { opacity: .1; transform: scale(.65) rotate(0); } 25%,50% { opacity: .9; transform: scale(1) rotate(15deg); } }
@keyframes orb-float { from { transform: translateY(0) rotate(var(--rotation, 0deg)); } to { transform: translateY(-18px) rotate(calc(var(--rotation, 0deg) + 12deg)); } }
@keyframes star-turn { from { transform: rotate(-12deg) translateY(0); } to { transform: rotate(14deg) translateY(-9px); } }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes selection-rock { 0%,100% { transform: translateX(-50%) rotate(0); } 25% { transform: translateX(calc(-50% - 3px)) rotate(-.7deg); } 75% { transform: translateX(calc(-50% + 3px)) rotate(.7deg); } }
@keyframes chosen-glow { to { opacity: .3; box-shadow: 0 0 40px #fff6b998, inset 0 0 25px #ffe3a38c; } }
@keyframes capsule-drop { 0% { opacity: 0; transform: translateY(-80px) scale(.7) rotate(-15deg); } 15% { opacity: 1; } 66% { transform: translateY(10px) scale(1.07,.94) rotate(6deg); } 83% { transform: translateY(-8px) scale(.98,1.02) rotate(-3deg); } 100% { transform: none; } }
@keyframes hint-pulse { 50% { opacity: .45; transform: translateY(3px); } }
@keyframes token-float { from { transform: rotate(-9deg) translateY(0); } to { transform: rotate(6deg) translateY(-6px); } }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(24px) scale(.93) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes gift-enter { from { opacity: 0; transform: translateY(30px) scale(.92); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes confetti-fall { 0% { opacity: 0; transform: translate(0,-10px) rotate(0); } 10% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--drift),108dvh) rotate(var(--spin)); } }

@media (min-width: 1500px) { .stage { height: 710px; } .main { padding-bottom: 32px; } }
@media (max-width: 1100px) {
  .page { padding: 0 38px; }
  .topbar { gap: 20px; min-height: 84px; }
  .how-link { margin-left: 15px; }
  .birthday { font-size: 9px; letter-spacing: .08em; }
  h1 { font-size: clamp(73px, 9vw, 100px); }
  .intro-text { font-size: 13px; }
  .steps { gap: 10px; }
  .steps li b { font-size: 10px; }
  .stage { height: 520px; }
  .controls { margin-top: 13px; }
  .gift-copy { padding: 58px 27px 28px; }
}
@media (max-width: 800px) and (min-width: 701px) {
  .page { padding: 0 24px; }
  .how-link { display: none; }
  .main { grid-template-columns: .46fr .54fr; }
  h1 { font-size: 72px; }
  .recipient { font-size: 25px; }
  .edition-tag { display: none; }
  .stage { height: 465px; }
  .spark-one { font-size: 47px; }
  .gift-copy h2 { font-size: 44px; }
}
@media (max-width: 700px) {
  .page { padding: 0 23px; }
  .sunset-scene { background-position: 57% bottom; }
  .sunset-light { background: linear-gradient(180deg, #fff1dadb 0%, #fff1daa6 33%, #fff1da22 68%, #fff1da66 100%); }
  .topbar { min-height: 72px; gap: 12px; }
  .brand { font-size: 12px; gap: 5px; }
  .brand-sun { font-size: 30px; }
  .how-link { display: none; }
  .birthday { font-size: 8px; letter-spacing: .04em; margin-left: auto; }
  .birthday span { margin: 0 4px; }
  .motion-toggle { padding: 0; width: 44px; min-width: 44px; justify-content: center; border-color: #ba653749; }
  .motion-label { display: none; }
  .main { display: block; min-height: 0; padding: 14px 0 20px; }
  .intro { max-width: 460px; margin: auto; padding: 0; }
  .intro-meta { margin-bottom: 10px; gap: 10px; }
  .date-tag { font-size: 10px; padding: 6px 12px; gap: 11px; }
  .edition-tag { font-size: 8px; letter-spacing: .1em; }
  .recipient { font-size: 23px; margin: 0 0 9px; }
  h1 { font-size: clamp(53px, 15.4vw, 87px); line-height: .91; margin-bottom: 15px; letter-spacing: -.08em; }
  h1 > span { display: inline; }
  h1 > span:first-child::after { content: " "; }
  h1 > span:nth-child(2) { display: block; }
  h1 em { line-height: .96; margin-top: 0; }
  .intro-text { font-size: 12px; line-height: 1.65; margin: 0 0 13px 1px; }
  .steps { margin-left: 1px; gap: 16px; }
  .steps li span { width: 22px; height: 22px; font-size: 7px; }
  .steps li b { font-size: 10px; }
  .handnote { display: none; }
  .experience { max-width: 460px; margin: 6px auto 0; padding-top: 0; }
  .stage { height: clamp(370px, 106vw, 470px); margin: 0 -8px; }
  .machine { height: 90%; max-width: 88%; bottom: 9%; }
  .pedestal { left: 1%; right: 0; height: 10%; }
  .glass-glint { font-size: 29px; }
  .glint-two { font-size: 24px; }
  .glint-three { font-size: 20px; }
  .orbit-capsule { width: 45px; }
  .orb-one { top: 3%; left: 4%; }
  .orb-two { right: -1%; width: 45px; }
  .orb-three { left: 0; bottom: 5%; width: 56px; }
  .spark-one { font-size: 43px; right: 0; top: 12%; }
  .spark-two { font-size: 39px; left: 0; bottom: 26%; }
  .spark-three { font-size: 32px; right: 3%; bottom: 14%; }
  .controls { max-width: 340px; margin-top: 16px; min-height: 34px; }
  .machine-readout { font-size: 7px; padding: 7px 11px; }
  #draw-count { font-size: 6px; }
  .reward::after { font-size: 7px; }
  .capsule-top i { font-size: 19px; }
  .mini-ticket b { font-size: 9px; margin: 5px 0 4px; }
  .mini-ticket small { font-size: 4px; }
  .mini-ticket i { font-size: 17px; }
  .capsule-action { min-height: 52px; font-size: 12px; }
  .footer { display: block; padding: 16px 0 21px; font-size: 9px; line-height: 1.7; }
  .footer > span { display: block; }
  .footer > span + span { margin-top: 4px; }
  .gift-dialog { width: min(450px, calc(100% - 20px)); max-height: calc(100dvh - 20px); border-radius: 20px; }
  .gift-dialog[open] { display: block; }
  .gift-art img { width: 100%; }
  .gift-copy { padding: 22px 23px 22px; }
  .gift-copy .eyebrow, .gift-copy h2 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .gift-message { font-size: 12px; line-height: 1.8; }
  .certificate-details { margin: 18px 0; padding: 13px 0; }
  .certificate-details b { font-size: 11px; }
  .save-ticket { min-height: 54px; font-size: 12px; }
  .certificate-note { font-size: 8px; }
  .dialog-close { top: 8px; right: 8px; background: #fff1dbd6; }
  .tease-dialog { padding: 40px 25px 28px; border-radius: 23px; }
  .tease-dialog h2 { font-size: 39px; }
  .tease-message { font-size: 12px; }
}
@media (max-width: 360px) {
  .page { padding: 0 19px; }
  .birthday { font-size: 7px; }
  .birthday span { display: none; }
  h1 { font-size: 54px; }
  .stage { height: 354px; }
  .steps { gap: 10px; }
  .steps li b { font-size: 9px; }
  .orb-two { width: 39px; }
  .orb-three { width: 49px; }
  .tease-dialog h2 { font-size: 34px; }
  .tease-dialog > small { font-size: 9px; }
  .gift-copy { padding: 20px 18px; }
}
@media (max-width: 700px) and (max-height: 740px) {
  .main { padding-top: 5px; }
  .topbar { min-height: 62px; }
  .intro-meta { margin-bottom: 7px; }
  .recipient { font-size: 20px; margin-bottom: 7px; }
  h1 { font-size: clamp(51px, 14vw, 66px); margin-bottom: 12px; }
  .intro-text { margin-bottom: 10px; }
  .stage { height: 350px; }
}
.motion-off *, .motion-off *::before, .motion-off *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.motion-off .confetti { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body:not(.motion-on) *, body:not(.motion-on) *::before, body:not(.motion-on) *::after { animation: none !important; transition: none !important; }
  body:not(.motion-on) .confetti { display: none; }
}

/* Pearl Atelier: materials, color and typography for the alternate version. */
:root { --cream: #fff4f0; --ink: #642b36; --coral: #8a3344; --muted: #9a7175; --blue: #c7b8c8; --gold: #c5a571; --display: Georgia, "Times New Roman", serif; }
body { background: #fff4f0; }
.sunset-scene { background: #f4e1dd url("assets/pearl-backdrop.png") center / cover no-repeat; }
.sunset-light { background: linear-gradient(90deg, #fff8f2bb, #fff8f282 33%, #fff8f233 55%, transparent 80%); }
.brand { font-weight: 500; letter-spacing: .15em; font-size: 12px; line-height: 1.35; gap: 13px; }
.brand-sun { color: #b59362; font: 37px Georgia, serif; }
.birthday { font-weight: 500; color: #875d60; letter-spacing: .17em; }
.birthday span { color: #b79569; }
.how-link { color: #886566; font-size: 11px; }
.motion-toggle { color: #77515a; background: #fff8f255; border-color: #be969540; }
.date-tag { color: #8a6262; border: 0; background: none; padding-left: 0; font-size: 12px; letter-spacing: .16em; }
.date-tag::before { content: ""; width: 24px; border-top: 1px solid #b99c7b; }
.date-tag span { color: #bba071; }
.edition-tag { color: #a07c78; font-size: 9px; }
.recipient { font-family: Georgia, serif; font-size: clamp(25px, 2.5vw, 34px); font-weight: 400; letter-spacing: -.035em; }
h1 { color: #692731; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(74px, 8.1vw, 124px); letter-spacing: -.075em; line-height: .97; }
h1 em { font-weight: 400; font-size: 1.02em; line-height: 1; color: #834050; letter-spacing: -.065em; margin-top: 2px; }
.intro-text { color: #8d6065; font-size: 14px; line-height: 1.85; }
.steps li { color: #967476; }
.steps li span { background: #fff5ee82; border-color: #bd989561; }
.steps .active { color: #70313d; }
.steps .active span { background: #823a4b; border-color: #823a4b; box-shadow: 0 3px 9px #823a4b1a; }
.steps .done span { background: #b39976; border-color: #b39976; }
.steps li b { font-weight: 400; }
.handnote { color: #9a777a; }
.stage-halo { background: radial-gradient(ellipse, #fffaf57d, #fff7dc00 70%); }
.pedestal { left: 13%; right: 8%; height: 8%; background: linear-gradient(100deg, #eddad4, #fff7f0 38%, #e8d0c7 78%, #c7a696); border-radius: 0 0 50% 50% / 0 0 30% 30%; box-shadow: 0 14px 30px #89595b20, inset 0 -2px 1px #bd966a8a; }
.pedestal::before { background: radial-gradient(ellipse at 42% 35%, #fffaf5, #f0dbd5 75%, #e2c0b3); box-shadow: inset 0 2px 2px #fffef3, inset 0 -1px 1px #ad875b70; }
.pedestal::after { background: #986f5f25; }
.machine { filter: drop-shadow(0 12px 10px #83585324); }
.dispense { top: 64.7%; width: 23.8%; }
.dispense > span { font-size: 8px; font-size: 12cqw; font-weight: 400; letter-spacing: .2em; color: #f5dfbd; }
.spin-icon { color: #f5dfbd; filter: drop-shadow(0 1px 2px #5926353b); }
.dispense::before { border-color: #f5ddb89c; box-shadow: 0 0 0 8px #f8e7ce12; }
.dispense::after { background: linear-gradient(130deg, #ffe9b22e, transparent 60%); }
.dome-seal { color: #740b28; filter: drop-shadow(0 1px 1px #fff9ede0); }
.dome-seal b { color: inherit; background: none; -webkit-text-fill-color: currentColor; -webkit-text-stroke: .7px #743b45; paint-order: stroke fill; }
.seal-kicker { -webkit-text-stroke: .4px #743b45; paint-order: stroke fill; }
.seal-kicker, .dome-seal i { color: inherit; }
.glass-glint { color: #fff9ec; text-shadow: 0 0 13px #fff6df; }
.orbit-capsule { background: radial-gradient(circle at 33% 23%, #fffffff2, #fff9ed3b 38%, transparent 56%), linear-gradient(160deg, #fce7e1, #e4bab7 49%, #fcf5ea 51%, #efdfcb 77%, #b99780); border-color: #fffaf0c7; box-shadow: inset -5px -5px 9px #ab7b7133, inset 3px 3px 6px #fffefbcc, 6px 12px 14px #94726b1f; }
.orbit-capsule::after { border-color: #be9a68a3; }
.orbit-capsule::before { background: #fffefdcc; }
.orb-one { width: 46px; left: 9%; top: 8%; }
.orb-two { width: 40px; right: 3%; top: 66%; }
.orb-three { width: 64px; left: 8%; bottom: 5%; }
.stage-spark { color: #c1a478; text-shadow: 1px 2px 3px #aa82672b; opacity: .5; }
.spark-one { font-size: 38px; right: 6%; }
.spark-two { font-size: 30px; left: 2%; bottom: 36%; }
.spark-three { font-size: 29px; color: #d6b789; }
.reward::after { color: #7c4952; font-weight: 500; }
.capsule-top, .capsule-bottom { border-color: #fff9ed; }
.capsule-top { background: radial-gradient(ellipse at 26% 13%, #fffef3, transparent 46%), linear-gradient(140deg, #f7e8e2, #ddb6b5 55%, #b57f89); box-shadow: inset -9px -4px 12px #a5716d25; }
.capsule-top i { color: #fef5e5; text-shadow: 0 2px 3px #9a656638; }
.capsule-bottom { background: radial-gradient(ellipse at 40% 45%, #fffdf6, #f2e6d57d 70%), linear-gradient(135deg, #fff9e89e, #d7b797); box-shadow: inset -10px -7px 15px #a4876338; }
.machine[data-result="retry"] .capsule-top { background: radial-gradient(ellipse at 26% 13%, #fffef4, transparent 46%), linear-gradient(140deg, #f8f0df, #dac59d 50%, #b09672); }
.machine[data-result="bonus"] .capsule-top { background: radial-gradient(ellipse at 26% 13%, #fff6fe, transparent 46%), linear-gradient(140deg, #e8d6df, #bb9db9 50%, #8e768c); }
.mini-ticket { background: #fffaf1; color: #7c3b4b; border: 1px solid #d1b792; box-shadow: 0 4px 15px #7c555336; }
.machine-readout { color: #76525c; background: #fff9f0bd; border-color: #d9bebe85; box-shadow: 0 4px 20px #94696d12; font-weight: 500; letter-spacing: .09em; }
.screen-led { background: #b29469; box-shadow: 0 0 7px #d6b27766; }
#draw-count { color: #a38178; border-color: #bb9a866e; }
.capsule-action, .continue-spin, .save-ticket { background: linear-gradient(150deg, #9b5260, #81394a 55%, #652536); color: #fff7ed; border-color: #e8cbbc8c; box-shadow: inset 0 1px 1px #cf999cab, 0 7px 17px #6d30472b; font-weight: 500; }
.capsule-action:not(:disabled):hover, .continue-spin:not(:disabled):hover, .save-ticket:hover { box-shadow: inset 0 1px 1px #cf999cab, 0 10px 22px #6d304735; }
.small-actions button, .gift-actions button { color: #9b747a; }
.footer { color: #8a6368; border-color: #b69a922b; }
dialog::backdrop { background: #5d3f4b7a; }
.dialog-close { color: #80555d; background: #fff7eed1; border-color: #b89a823b; }
.tease-dialog { background: radial-gradient(ellipse at 50% 25%, #fffaf5, #f5e4e0 95%); border-color: #fff7ef; box-shadow: 0 25px 100px #68415045; }
.tease-dialog .eyebrow { color: #a0807c; font-weight: 500; }
.spin-token { background: radial-gradient(ellipse at 30% 17%, #fffef8, transparent 48%), linear-gradient(140deg, #f8eee7, #e3bcb6 52%, #be8f87); color: #a27d55; border-color: #fff9ee; box-shadow: 0 0 0 9px #ead5cb44, inset -5px -6px 10px #ad7d7330, 0 13px 28px #a17e712d; text-shadow: 0 1px 1px #fff8d9b5; font-family: Georgia, serif; font-weight: 400; }
.tease-dialog.bonus .spin-token { background: radial-gradient(ellipse at 30% 17%, #fff8ff, transparent 48%), linear-gradient(140deg, #eadddf, #c2a8bd 52%, #988098); color: #73596d; box-shadow: 0 0 0 9px #ddd0dc44, inset -5px -6px 10px #90758f30, 0 13px 28px #90768c2d; }
.tease-dialog h2 { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.055em; font-size: 46px; line-height: 1.06; }
.tease-message { color: #97757a; }
.tease-dialog > small { color: #ad8c8f; }
.gift-dialog { background: #fff7ef; border-color: #efd9c7; box-shadow: 0 30px 100px #65424e55; }
.gift-art { background: #f1d6cf; }
.gift-art img { aspect-ratio: auto; }
.gift-copy { background: radial-gradient(ellipse at 0 0, #f4e1db, #fff7ef 70%); }
.gift-copy .eyebrow { color: #9e7775; font-weight: 500; }
.gift-copy h2 { color: #723340; font-family: Georgia, serif; font-weight: 400; font-size: clamp(46px, 4.3vw, 65px); line-height: 1.03; letter-spacing: -.06em; }
.gift-copy h2 em { font-weight: 400; }
.gift-message { color: #927079; }
.certificate-details { border-color: #ba9b843b; }
.certificate-details span { color: #ab8c82; }
.certificate-details b { font-weight: 500; }
.certificate-details i { color: #b79166; }
.certificate-note { color: #b1948a; }
.no-script { background: #fff7ef; border-color: #d9bda366; }
@media (max-width: 1100px) {
  h1 { font-size: clamp(73px, 8.9vw, 98px); }
  .brand { font-size: 11px; }
}
@media (max-width: 800px) and (min-width: 701px) {
  h1 { font-size: 70px; }
  .gift-copy h2 { font-size: 44px; }
}
@media (max-width: 700px) {
  .sunset-scene { background-position: 59% center; }
  .sunset-light { background: linear-gradient(180deg, #fff7efd6 0%, #fff7ef96 33%, #fff7ef22 68%, #fff7ef66 100%); }
  .brand { font-size: 10px; gap: 8px; }
  .brand-sun { font-size: 29px; }
  .birthday { font-size: 8px; letter-spacing: .04em; }
  .date-tag { font-size: 10px; }
  .date-tag::before { width: 16px; }
  .recipient { font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
  h1 { font-size: clamp(56px, 15.3vw, 86px); line-height: .96; }
  .intro-text { font-size: 12px; }
  .pedestal { left: 9%; right: 7%; height: 8%; }
  .orb-one { width: 35px; left: 4%; }
  .orb-two { width: 31px; right: 1%; }
  .orb-three { width: 46px; left: 5%; }
  .spark-one { font-size: 29px; right: 1%; }
  .spark-two { font-size: 25px; }
  .spark-three { font-size: 24px; }
  .motion-toggle { border-color: #bba49749; }
  .dialog-close { background: #fff7eedc; }
  .tease-dialog h2 { font-size: 42px; }
}
@media (max-width: 360px) {
  .brand { font-size: 9px; }
  h1 { font-size: 54px; }
  .birthday { font-size: 7px; }
  .tease-dialog h2 { font-size: 37px; }
}
@media (max-width: 700px) and (max-height: 740px) {
  h1 { font-size: clamp(52px, 14vw, 65px); }
  .recipient { font-size: 22px; }
}


