:root {
  --night: #070a1f;
  --deep: #0d1233;
  --violet: #5148a7;
  --pink: #f17aa9;
  --rose: #ffb2c9;
  --cream: #fff7f4;
  --muted: #b6b3d1;
  --glass: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .16);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--night); }
body { color: var(--cream); font-family: "Cairo", sans-serif; overflow-x: hidden; }
button { font: inherit; }
.experience { position: relative; min-height: 100svh; overflow-x: hidden; overflow-y: auto; isolation: isolate; background: radial-gradient(circle at 50% 88%, #251749 0, #101333 38%, #070a1f 83%); }
.aurora { position: absolute; width: 34rem; height: 34rem; border-radius: 50%; pointer-events: none; filter: blur(75px); opacity: .2; z-index: -3; }
.aurora-one { top: -19rem; right: -13rem; background: #6356d7; animation: float 10s ease-in-out infinite; }
.aurora-two { bottom: -21rem; left: -16rem; background: #df4c9a; animation: float 12s ease-in-out -2s infinite reverse; }
.stars, .stars::before, .stars::after { position: absolute; inset: 0; z-index: -2; content: ""; background-image: radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.7px), radial-gradient(circle, rgba(255,181,221,.6) 0 1px, transparent 1.5px); background-size: 77px 91px, 131px 109px; background-position: 20px 30px, 60px 20px; opacity: .3; animation: drift 24s linear infinite; }
.stars::before { transform: translate(34px, 49px); opacity: .18; animation-duration: 31s; }
.stars::after { transform: translate(-50px, 17px); opacity: .12; animation-duration: 18s; }
.grain { position: absolute; inset: 0; pointer-events: none; z-index: 20; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.screen { min-height: 100svh; width: min(100%, 520px); margin: 0 auto; position: relative; padding: max(24px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; transition: opacity .65s ease, transform .65s cubic-bezier(.2,.8,.2,1); }
.waiting-screen { justify-content: flex-start; }
.topline { margin-top: 6px; color: var(--muted); letter-spacing: .04em; font-size: .72rem; display: flex; align-items: center; gap: 8px; animation: rise .9s both; }
.topline-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff9abd; box-shadow: 0 0 14px #ff78aa; animation: pulse 1.8s infinite; }
.waiting-copy { text-align: center; margin-top: 25px; animation: rise .9s .12s both; }
.eyebrow { margin: 0 0 10px; color: var(--rose); font-size: .79rem; font-weight: 600; }
h1, h2 { margin: 0; line-height: 1.12; font-weight: 800; letter-spacing: -.04em; }
h1 { font-size: clamp(2.18rem, 10.5vw, 3.4rem); text-shadow: 0 8px 32px rgba(0,0,0,.24); }
h1 em, h2 em { font-style: normal; color: #ffbdd1; text-shadow: 0 0 25px rgba(255,127,177,.32); }
.intro { max-width: 285px; margin: 15px auto 0; color: #c5c4da; font-size: .86rem; line-height: 1.9; }
.clock-wrap { width: min(68vw, 260px); aspect-ratio: 1; margin-top: 22px; position: relative; display: grid; place-items: center; animation: rise .9s .28s both; }
.clock-glow { position: absolute; inset: 5%; border-radius: 50%; background: #c95eac; filter: blur(35px); opacity: .22; animation: pulse-glow 3s ease-in-out infinite; }
.clock-face { position: relative; width: 87%; height: 87%; border-radius: 50%; background: radial-gradient(circle at 35% 25%, rgba(130,125,207,.43), rgba(30,28,81,.95) 68%); border: 1px solid rgba(255,255,255,.4); box-shadow: inset 0 0 28px rgba(255,255,255,.08), 0 0 0 8px rgba(255,255,255,.035), 0 14px 30px rgba(0,0,0,.25); }
.clock-face::after { content: ""; position: absolute; inset: 7%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.12); }
.clock-mark { position: absolute; z-index: 2; color: rgba(255,255,255,.82); font-family: "Playfair Display", serif; font-weight: 600; font-size: 1rem; transform: translate(-50%, -50%); }
.mark-12 { top: 12%; left: 50%; }.mark-3 { top: 50%; left: 88%; }.mark-6 { top: 88%; left: 50%; }.mark-9 { top: 50%; left: 12%; }
.tick { position: absolute; width: 1px; height: 6px; background: rgba(255,255,255,.32); left: 50%; top: 5%; transform-origin: 50% 680%; }
.tick-1 { transform: rotate(45deg); }.tick-2 { transform: rotate(135deg); }.tick-3 { transform: rotate(225deg); }.tick-4 { transform: rotate(315deg); }
.hand { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; border-radius: 99px; z-index: 3; }
.hand-hour { width: 4px; height: 25%; background: #fff0f6; transform: translateX(-50%) rotate(2deg); box-shadow: 0 0 8px rgba(255,208,230,.6); }
.hand-minute { width: 2px; height: 34%; background: #ff9fbe; transform: translateX(-50%) rotate(5deg); box-shadow: 0 0 8px rgba(255,118,170,.8); }
.hand-second { width: 1px; height: 39%; background: #ffcedd; transform: translateX(-50%) rotate(20deg); animation: tick-tock 3s steps(60) infinite; }
.pin { position: absolute; z-index: 4; width: 11px; height: 11px; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #ffd3e1; box-shadow: 0 0 0 4px rgba(255,155,192,.18), 0 0 13px #ff88b2; }
.clock-center-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; pointer-events: none; padding-top: 58px; color: rgba(255,255,255,.86); font-size: .63rem; letter-spacing: .16em; text-transform: uppercase; }
.clock-center-copy small { margin-top: 4px; color: #ffb7cb; font-size: .57rem; letter-spacing: .2em; }
.clock-shadow { position: absolute; bottom: -4%; width: 63%; height: 14px; border-radius: 50%; background: rgba(0,0,0,.35); filter: blur(12px); }
.countdown { display: flex; direction: ltr; align-items: center; gap: clamp(6px, 2.5vw, 13px); margin-top: 14px; animation: rise .9s .4s both; }
.countdown div { display: flex; flex-direction: column; align-items: center; min-width: 38px; }
.countdown strong { color: #fff4f7; font-size: 1.16rem; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.countdown span { margin-top: 5px; color: #aaa9c4; font-size: .54rem; }
.countdown i { color: #ed86ad; font-style: normal; font-weight: 700; padding-bottom: 13px; }
.date-label { margin: 7px 0 0; color: #ffb4c9; font-size: .72rem; letter-spacing: .08em; animation: rise .9s .44s both; }
.surprise-button { border: 1px solid rgba(255,208,224,.55); border-radius: 999px; color: #fff; background: linear-gradient(135deg, #ec709f, #9c59b9); box-shadow: 0 10px 28px rgba(227,80,144,.26), inset 0 1px 0 rgba(255,255,255,.3); padding: 12px 18px 12px 14px; margin-top: 22px; min-width: 210px; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 16px; font-size: .86rem; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease; animation: rise .9s .5s both, button-breathe 2.5s 1.5s ease-in-out infinite; }
.surprise-button b { display: grid; place-items: center; width: 26px; height: 26px; color: #f57ca8; background: #fff3f7; border-radius: 50%; font-size: .9rem; }
.surprise-button:hover, .surprise-button:focus-visible { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 34px rgba(227,80,144,.38), inset 0 1px 0 rgba(255,255,255,.3); outline: none; }
.hint { text-align: center; color: #8587ab; font-size: .66rem; line-height: 1.9; margin: 12px 0 0; animation: rise .9s .62s both; }
.hint span { color: #b0aec7; }
.reveal-screen { display: none; justify-content: center; text-align: center; opacity: 0; transform: scale(1.04); }
.reveal-screen.is-active { display: flex; opacity: 1; transform: scale(1); }
.waiting-screen.is-hidden { display: none; }
#fireworks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.reveal-content { position: relative; z-index: 2; display: flex; align-items: center; flex-direction: column; padding-top: 2vh; animation: reveal-up 1.1s cubic-bezier(.2,.8,.2,1) both; }
.celebration-badge { display: flex; flex-direction: column; justify-content: center; width: 62px; height: 62px; border: 1px solid rgba(255,225,236,.48); border-radius: 50%; background: rgba(255,255,255,.1); box-shadow: 0 0 28px rgba(255,126,179,.23); transform: rotate(-9deg); }
.celebration-badge span { font-family: "Playfair Display", serif; font-size: 1.35rem; line-height: .9; }.celebration-badge small { color: #ffb4c9; font-size: .54rem; margin-top: 4px; }
.reveal-kicker { max-width: 300px; color: #ffb1c8; margin: 18px 0 8px; font-size: .75rem; line-height: 1.8; }
.heart-orbit { width: 132px; height: 105px; position: relative; display: grid; place-items: center; margin-bottom: 7px; }
.big-heart { color: #ff86af; font-size: 4.1rem; line-height: 1; filter: drop-shadow(0 0 20px rgba(255,100,157,.65)); animation: heartbeat 1.25s ease-in-out infinite; }
.orbit { position: absolute; border: 1px solid rgba(255,175,204,.4); border-radius: 50%; width: 116px; height: 38px; transform: rotate(25deg); animation: orbit 5s linear infinite; }.orbit-b { width: 104px; height: 42px; transform: rotate(-38deg); border-color: rgba(190,166,255,.38); animation-direction: reverse; }
.reveal-screen h2 { font-size: clamp(2.15rem, 10vw, 3.3rem); }
.love-note { max-width: 330px; color: #e4deea; font-size: .87rem; line-height: 2; margin: 16px 0 0; text-align: right; }
.signature { margin-top: 23px; display: flex; flex-direction: column; gap: 2px; color: #ffc4d5; font-size: .8rem; }.signature strong { color: #fff1f5; font-size: .72rem; font-weight: 500; }
.replay-button { z-index: 3; margin-top: 27px; border: 0; background: transparent; color: #aaa9c5; font-size: .7rem; cursor: pointer; }.replay-button span { font-size: 1rem; padding-right: 5px; color: #ff9fbd; }
.sound-note { position: fixed; z-index: 30; left: 50%; bottom: max(9px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: calc(100% - 30px); padding: 7px 12px; color: rgba(255,255,255,.62); border-radius: 999px; background: rgba(10,10,33,.45); backdrop-filter: blur(10px); font-size: .6rem; transition: opacity .4s ease; }
.sound-note.is-hidden { opacity: 0; pointer-events: none; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes reveal-up { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pulse { 50% { opacity: .42; transform: scale(.7); } }
@keyframes pulse-glow { 50% { transform: scale(1.13); opacity: .32; } }
@keyframes tick-tock { to { transform: translateX(-50%) rotate(380deg); } }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.15); } 28% { transform: scale(1); } 42% { transform: scale(1.1); } }
@keyframes orbit { to { transform: rotate(385deg); } }
@keyframes button-breathe { 50% { box-shadow: 0 13px 35px rgba(227,80,144,.4), inset 0 1px 0 rgba(255,255,255,.3); } }
@keyframes drift { to { transform: translate(40px, 20px); } }
@keyframes float { 50% { transform: translate(30px, 18px) scale(1.08); } }
@media (min-width: 600px) { .experience { min-height: 760px; max-width: 520px; margin: 0 auto; box-shadow: 0 0 80px rgba(0,0,0,.5); } .screen { min-height: 760px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }

.promise-card { width: min(100%, 286px); margin-top: 20px; padding: 12px 16px 14px; border: 1px solid rgba(255, 194, 214, .3); border-radius: 18px; background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,130,180,.08)); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 12px 30px rgba(0,0,0,.12); transform: rotate(-1deg); }
.promise-card span { color: #ffadc5; font-size: .62rem; letter-spacing: .06em; }
.promise-card p { margin: 5px 0 0; color: #fff4f7; font-family: "Playfair Display", "Cairo", serif; font-size: 1.06rem; line-height: 1.45; }
.final-note { margin: 18px 0 0; color: #ded9e8; font-size: .78rem; line-height: 1.9; }
.final-note strong { color: #ffc0d2; font-weight: 700; }

.forever-note { margin: 8px 0 0; color: #ffabc4; font: 600 1.08rem "Playfair Display", "Cairo", serif; }
.sound-toggle { z-index: 3; margin-top: 18px; padding: 7px 14px; border: 1px solid rgba(255, 190, 211, .28); border-radius: 999px; background: rgba(255,255,255,.07); color: #ffc0d2; font-size: .68rem; cursor: pointer; backdrop-filter: blur(8px); }
.sound-toggle.is-muted { color: #aaa9c5; border-color: rgba(255,255,255,.16); }
