:root {
  color-scheme: dark;
  --ink: #f9f3ff;
  --muted: #c2bed4;
  --line: rgba(255, 255, 255, 0.13);
  --violet: #9d83df;
  --pink: #e9b8cb;
  --deep: #11132b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #0c1025;
  overflow-x: hidden;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid #f8d3ec; outline-offset: 4px; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
.night { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse 56% 53% at 49% 48%, #29234c 0%, #14152e 59%, #0b0f24 100%);
}
.night::after { content: ""; position: absolute; inset: 0; opacity: 0.25;
  background: repeating-linear-gradient(120deg, transparent 0, transparent 82px, rgba(255,255,255,.012) 83px, transparent 84px);
}
.aura { position: absolute; border-radius: 50%; filter: blur(75px); opacity: .26; }
.aura-one { width: 500px; height: 500px; background: #6948ac; left: -12%; top: 22%; }
.aura-two { width: 430px; height: 430px; background: #a75593; right: -11%; bottom: 5%; opacity: .18; }
.night-stars { position: absolute; inset: 0; }
.night-stars i { position: absolute; background: #fff8ed; border-radius: 50%; opacity: .66;
  box-shadow: 0 0 9px 2px rgba(255,255,255,.19); animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: .88; transform: scale(1.35); } }
.page-shell { width: min(100% - 48px, 910px); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
.topbar { min-height: 103px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.brand { display: flex; align-items: center; gap: 13px; font-size: 12px; font-weight: 650; letter-spacing: .125em; text-transform: uppercase; }
.brand-icon { color: #efc7e5; font-size: 23px; filter: drop-shadow(0 0 12px #e6b6e6); }
.topbar-note { font-size: 12px; color: #b9b6d1; letter-spacing: .06em; }
.topbar-note span { color: #edbcdd; }
.card { position: relative; isolation: isolate; width: 100%; min-height: 625px; overflow: hidden;
  border: 1px solid rgba(239, 214, 255, .23); border-radius: 30px;
  background: linear-gradient(138deg, rgba(58, 45, 91, .64) 0%, rgba(30, 31, 61, .94) 42%, rgba(39, 30, 60, .93) 100%);
  box-shadow: 0 26px 110px rgba(2, 2, 21, .41), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}
.card::before { content: ""; z-index: -1; position: absolute; width: 600px; height: 600px; left: -310px; top: -380px;
  background: radial-gradient(circle, rgba(214,172,242,.25), transparent 69%); pointer-events: none; }
.card::after { content: ""; position: absolute; z-index: -1; right: -270px; bottom: -350px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(228,143,199,.13), transparent 64%); pointer-events: none; }
.card-top { height: 74px; display: flex; justify-content: space-between; align-items: center; padding: 0 44px; }
.eyebrow, .overline, .key-heading { color: #d6b6df; letter-spacing: .24em; font-size: 10px; font-weight: 750; }
.eyebrow { color: #d7c5df; letter-spacing: .16em; }
.dots { display: flex; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 100%; background: rgba(222, 208, 238, .24); transition: .35s; }
.dot.active { background: #f0c0da; box-shadow: 0 0 13px rgba(238,172,229,.64); }
.scene { min-height: 523px; padding: 16px 48px 50px; display: none; text-align: center; flex-direction: column; align-items: center; justify-content: center; }
.scene.active { display: flex; animation: sceneIn .55s ease-out both; }
@keyframes sceneIn { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }
h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.17; letter-spacing: -.036em; }
h1 { font-size: clamp(37px, 5.2vw, 58px); }
h2 { font-size: clamp(34px, 4.5vw, 50px); }
h1 em, h2 em { font-weight: 400; font-style: italic; color: #ebc3da; }
.overline { margin: 0 0 16px; }
.description { color: #cbc6db; line-height: 1.8; font-size: 15px; max-width: 440px; margin: 20px auto 27px; }
.description.compact { margin-top: 16px; margin-bottom: 24px; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; padding: 13px 30px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #30223b;
  background: linear-gradient(108deg, #f5cde0 0%, #dec3f1 100%); font-weight: 750; font-size: 13px;
  box-shadow: 0 8px 30px rgba(218, 152, 207, .2), inset 0 1px 0 rgba(255,255,255,.6); transition: transform .2s, box-shadow .2s, opacity .2s; }
.primary-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 11px 36px rgba(218,152,207,.32); }
.primary-button:active:not(:disabled) { transform: translateY(0); }
.primary-button:disabled { opacity: .4; filter: grayscale(.45); }
.subtle-hint { margin-top: 19px; color: #a9a3c5; font-size: 11px; letter-spacing: .045em; }
.moon-wrap { height: 160px; width: 240px; position: relative; margin: -9px 0 7px; }
.moon-glow { position: absolute; left: 50%; top: 51%; width: 160px; height: 160px; transform: translate(-50%,-50%); border-radius: 50%;
  background: #ebbdff; filter: blur(38px); opacity: .27; animation: breathe 5s ease-in-out infinite; }
.moon { position: absolute; top: 20px; left: 70px; width: 106px; height: 106px; border-radius: 50%;
  background: radial-gradient(circle at 37% 27%, #fffaf1, #f5e5ed 54%, #d3b9df 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 0 48px rgba(245,200,240,.55), 0 0 92px rgba(189,147,249,.24);
}
.moon::after { content: ""; position: absolute; width: 31px; height: 31px; left: 22px; top: 21px; border-radius: 50%; background: rgba(198,171,205,.12); box-shadow: 37px 49px 0 -5px rgba(194,158,196,.18); }
.moon-star { position: absolute; color: #f8e5ee; text-shadow: 0 0 14px rgba(255,255,255,.7); animation: float 4.4s ease-in-out infinite; }
.moon-star-a { top: 26px; left: 43px; font-size: 26px; }.moon-star-b { top: 15px; right: 19px; font-size: 17px; animation-delay: .6s; }.moon-star-c { bottom: 9px; right: 48px; font-size: 22px; animation-delay: 1.5s; }
.little-heart { position: absolute; top: 77px; right: 22px; color: #e9aac9; font-size: 19px; animation: float 5s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; transform: translate(-50%,-50%) scale(1.13); } }
@keyframes float { 50% { transform: translateY(-9px); opacity: .74; } }
.letter-icon { width: 65px; height: 65px; display: grid; place-items: center; margin: 2px 0 20px; border: 1px solid rgba(243,201,227,.36); border-radius: 20px; transform: rotate(-8deg);
  background: linear-gradient(145deg, rgba(255,203,229,.23), rgba(191,164,229,.06)); box-shadow: 0 13px 45px rgba(244,166,214,.09); }
.letter-icon span { font-size: 30px; color: #f1bbd4; transform: rotate(8deg); }
.letter-paper { position: relative; max-width: 555px; margin: 25px auto 24px; padding: 23px 33px 21px; background: rgba(15, 16, 41, .23);
  border: 1px solid rgba(244,215,248,.15); border-radius: 18px; text-align: left; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.letter-paper::before { content: "“"; position: absolute; left: 12px; top: 0; font: 52px Georgia, serif; color: rgba(242, 201, 231, .16); }
.letter-paper p { margin: 0 0 13px; color: #ded7e8; font-size: 14px; line-height: 1.85; }
.letter-signature { text-align: right; color: #e9bdd8; font: italic 16px Georgia, serif; padding-top: 6px; }
.constellation { position: relative; width: min(100%, 420px); height: 225px; background: radial-gradient(ellipse at center, rgba(132,94,176,.12), transparent 70%);
  margin: 0 auto 6px; }
.star-path { position: absolute; inset: 0; height: 100%; width: 100%; overflow: visible; }
.star-path path { stroke: rgba(236,191,233,.25); stroke-width: 1.4; stroke-dasharray: 4 8; fill: none; transition: stroke .5s; }
.constellation.complete .star-path path { stroke: rgba(239,188,219,.85); stroke-dasharray: none; filter: drop-shadow(0 0 6px #e8a4e3); }
.pick-star { position: absolute; width: 75px; height: 75px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,207,247,.12), transparent 68%); color: #ffdcf1; transition: transform .2s, filter .2s; }
.pick-star span { font-size: 46px; text-shadow: 0 0 15px #f8c0e6, 0 0 35px rgba(238,174,241,.65); animation: twinkling 2.8s ease-in-out infinite; }
.pick-star:hover { transform: scale(1.2) rotate(12deg); }
.pick-star.collected { color: #fff7d6; filter: drop-shadow(0 0 13px #f6d4eb); }
.pick-star.collected span { animation: none; }
@keyframes twinkling { 50% { opacity: .54; transform: scale(.85); } }
.star-pos-1 { left: calc(19.5% - 37px); top: 117px; }.star-pos-2 { left: calc(53.5% - 37px); top: 40px; }.star-pos-3 { left: calc(83.7% - 37px); top: 108px; }
.tiny-star { position: absolute; color: rgba(245,211,255,.58); font-size: 23px; pointer-events: none; }.t1 { left: 35%; top: 20px; }.t2 { right: 23%; top: 32px; }.t3 { bottom: 16px; right: 31%; }
.star-feedback { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; min-height: 26px; margin: 5px 0 19px; font-size: 13px; color: #dbb9d3; }
.star-feedback strong { font-size: 12px; letter-spacing: .1em; color: #fff0fc; }
.gift-illustration { position: relative; width: 200px; height: 175px; margin: -9px 0 12px; }
.gift-rays { width: 150px; height: 150px; position: absolute; left: 25px; top: 10px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,185,214,.38), rgba(226,142,216,.1) 48%, transparent 70%); filter: blur(14px); animation: breathe 5s infinite; }
.present { position: absolute; left: 55px; top: 52px; width: 90px; height: 100px; filter: drop-shadow(0 16px 18px rgba(0,0,0,.28)); animation: giftFloat 4s ease-in-out infinite; }
.present-body { position: absolute; width: 90px; height: 70px; top: 29px; border-radius: 4px 4px 10px 10px;
  background: linear-gradient(120deg, #bd83ae, #f1b0cf 52%, #dba2d1); box-shadow: inset 0 -7px 0 rgba(97,55,111,.13); }
.present-lid { position: absolute; z-index: 2; top: 19px; left: -7px; width: 104px; height: 23px; border-radius: 5px; background: linear-gradient(110deg, #f5c6e0, #fbe1e6, #dcb0de);
  box-shadow: 0 3px 0 rgba(91,42,94,.22); }
.ribbon-vertical { position: absolute; z-index: 3; top: 19px; left: 39px; width: 15px; height: 80px; background: linear-gradient(90deg, #76529b, #a881cc, #79549a); }
.ribbon-horizontal { position: absolute; z-index: 4; top: 25px; left: -7px; width: 104px; height: 9px; background: #af86d2; }
.bow { position: absolute; z-index: 5; top: 0; width: 32px; height: 26px; border: 8px solid #c7a1e3; border-radius: 80% 15% 80% 18%; }
.bow-left { left: 20px; transform: rotate(25deg); }.bow-right { right: 18px; transform: scaleX(-1) rotate(25deg); }
.gift-spark { position: absolute; color: #f7cfe7; text-shadow: 0 0 14px rgba(248,187,224,.8); animation: float 3.5s infinite; }.spark-a { top: 15px; right: 21px; font-size: 28px; }.spark-b { bottom: 40px; left: 15px; font-size: 20px; animation-delay: 1s; }
@keyframes giftFloat { 50% { transform: translateY(-9px) rotate(2deg); } }
.unlock-form { width: min(100%, 350px); display: flex; flex-direction: column; align-items: stretch; }
.form-label { text-align: left; font-size: 12px; color: #d7c8dc; margin-bottom: 10px; }
.input-row { position: relative; }
.input-row input { width: 100%; height: 52px; padding: 10px 50px 10px 17px; background: rgba(11,13,32,.47); border: 1px solid rgba(223,190,237,.34);
  border-radius: 13px; color: #fff; font-size: 15px; outline: none; transition: border-color .2s; }
.input-row input::placeholder { color: #938da7; }
.input-row input:focus { border-color: #ebc1de; box-shadow: 0 0 0 3px rgba(242,189,222,.12); }
.show-password { position: absolute; right: 7px; top: 5px; width: 40px; height: 41px; border: 0; border-radius: 9px; color: #e4bedb; background: transparent; font-size: 19px; }
.show-password:hover { background: rgba(255,255,255,.08); }
.form-feedback { color: #f2b5c9; min-height: 16px; margin: 9px 0 11px; font-size: 12px; line-height: 1.4; }
.unlock-form .primary-button { align-self: center; }
.reveal-heart { margin: 0 0 21px; font-size: 68px; line-height: 1; color: #f2bbd7; text-shadow: 0 0 36px #bd76c2;
  animation: heartBeat 2.4s infinite; }
@keyframes heartBeat { 15% { transform: scale(1.12); } 30%, 100% { transform: scale(1); } }
.key-card { width: min(100%, 440px); border: 1px solid rgba(238,189,222,.34); padding: 23px 20px 18px; border-radius: 18px;
  background: linear-gradient(145deg, rgba(233,170,218,.14), rgba(172,132,213,.08)); box-shadow: 0 11px 50px rgba(5,5,20,.13); }
.key-heading { display: block; margin-bottom: 14px; }
.gift-key { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; overflow-wrap: anywhere; user-select: all;
  color: #fff5d8; font-size: clamp(15px, 3vw, 21px); letter-spacing: .045em; line-height: 1.6; }
.copy-button { margin-top: 18px; padding: 9px 17px; border-radius: 999px; background: rgba(231,194,230,.14); border: 1px solid rgba(239,216,238,.28);
  color: #f9dce9; font-size: 12px; font-weight: 650; transition: background .2s; }
.copy-button:hover { background: rgba(231,194,230,.25); }
.ending-text { margin: 22px 0 0; font-family: Georgia, serif; color: #ddc5db; font-style: italic; font-size: 15px; }
.footer { display: flex; justify-content: center; align-items: center; gap: 14px; color: #9b98b8; padding: 27px 0 30px;
  font-size: 11px; letter-spacing: .09em; }
.footer span:nth-child(2) { color: #d5aed0; font-size: 15px; }
@media (max-width: 600px) {
  .page-shell { width: min(100% - 26px, 480px); }
  .topbar { min-height: 70px; }
  .brand { font-size: 10px; letter-spacing: .06em; gap: 7px; }.brand-icon { font-size: 18px; }
  .topbar-note { display: none; }
  .card { min-height: 670px; border-radius: 24px; }
  .card-top { height: 64px; padding: 0 22px; }
  .scene { min-height: 575px; padding: 16px 20px 45px; }
  .moon-wrap { transform: scale(.85); margin: -10px 0 0; }
  h1 { font-size: clamp(34px, 8.4vw, 44px); } h2 { font-size: clamp(33px, 8vw, 42px); }
  .description { font-size: 14px; line-height: 1.7; }
  .letter-paper { padding: 20px 21px; margin: 25px 0; }
  .letter-paper p { font-size: 13px; line-height: 1.75; }
  .star-pos-1 { top: 117px; }.star-pos-2 { top: 40px; }.star-pos-3 { top: 108px; }
  .footer { padding: 23px 0; font-size: 9px; gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
