:root {
  color-scheme: dark;
  --paper: #fff1d5;
  --gold: #e7bd79;
  --gold-bright: #ffdfa4;
  --quiet: #d8c9a9;
  --pine: #112322;
  --line: #dfb77c36;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--paper);
  background: radial-gradient(ellipse at 52% 42%, #243e33 0%, #192f29 39%, #112322 78%);
  font: 15px var(--sans);
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
}
button { font: inherit; }
button:focus-visible { outline: 2px solid #ffedb2; outline-offset: 5px; }
button { -webkit-tap-highlight-color: transparent; }
.site-wrap { width: min(1120px, calc(100% - 72px)); margin: auto; position: relative; }
.masthead, .footer { display: flex; align-items: center; justify-content: space-between; }
.masthead { min-height: 78px; }
.wordmark { display: flex; align-items: center; gap: 10px; font: 19px/1 var(--serif); letter-spacing: .01em; }
.wordmark small { display: block; margin-top: 5px; font: 650 8px/1 var(--sans); letter-spacing: .205em; color: var(--gold); }
.sound {
  background: #142724; color: var(--paper); border: 1px solid var(--line); border-radius: 99px;
  padding: 8px 13px; display: flex; align-items: center; gap: 7px; cursor: pointer; min-height: 42px;
}
.sound:hover { border-color: var(--gold); }
.sound svg { width: 17px; height: 17px; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.sound-on, .sound[aria-pressed="true"] .sound-off { display: none; }
.sound[aria-pressed="true"] .sound-on { display: initial; }
.sound span { font-size: 12px; }
.hero {
  position: relative; isolation: isolate; text-align: center;
  padding: 38px 20px 27px; min-height: 675px;
  background: radial-gradient(ellipse at 50% 76%, #35504140, #15292400 60%);
}
.frame { position: absolute; inset: 0; border: 1px solid var(--line); z-index: -2; pointer-events: none; }
.frame::before { content: ''; position: absolute; inset: 7px; border: 1px solid #dfb77c21; }
.frame span { position: absolute; color: var(--gold); line-height: 16px; font-size: 14px; background: var(--pine); width: 18px; }
.frame span:nth-child(1) { top: -8px; left: -9px; }
.frame span:nth-child(2) { top: -8px; right: -9px; }
.frame span:nth-child(3) { bottom: -8px; left: -9px; }
.frame span:nth-child(4) { bottom: -8px; right: -9px; }
.sky { position: absolute; inset: 8px; z-index: -1; overflow: hidden; pointer-events: none; }
.sky::before, .sky::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, #f8d28f 0 1px, transparent 1.7px), radial-gradient(circle, #fbecbf 0 1px, transparent 1.4px);
  background-size: 111px 109px, 151px 137px; background-position: 28px 6px, 47px 49px; opacity: .38;
  mask-image: radial-gradient(ellipse at center, transparent 24%, #000 79%);
}
.sky::after { opacity: .12; transform: scale(1.6) translate(20px, -10px); }
.intro { position: relative; z-index: 1; }
.kicker, .hint, .footer, .tag-kicker {
  font-size: 10px; font-weight: 750; letter-spacing: .23em; line-height: 1.55; color: var(--gold);
}
.kicker { margin: 0 auto 13px; display: flex; align-items: center; justify-content: center; gap: 11px; }
.kicker span { font-size: 11px; }
h1 {
  margin: 0;
  font: 400 clamp(52px, 8vw, 100px)/.855 var(--serif);
  letter-spacing: -.073em; text-wrap: balance;
  text-shadow: 0 7px 30px #07140f69;
}
h1 em { color: var(--gold); font-weight: 400; }
#intro-copy { color: var(--quiet); font-size: 15px; margin: 20px 0 0; line-height: 1.45; text-wrap: balance; }
.stage {
  position: relative; isolation: isolate; display: grid; place-items: center; height: 371px;
  max-width: 770px; margin: -3px auto 0;
}
.stage-glow, .orbit, .flash, .stage-stars, .side-note { position: absolute; pointer-events: none; }
.stage-glow { width: 82%; height: 93%; top: 1%; z-index: -2; background: radial-gradient(ellipse, #d5a45631, #8494561a 36%, transparent 72%); transition: opacity .35s ease; }
.orbit { width: min(495px, 92%); height: 63%; top: 15%; border-radius: 50%; border: 1px solid #e9bf7933; z-index: -1; transform: rotate(-12deg); }
.orbit-two { width: min(462px, 86%); height: 68%; top: 14%; border-style: dashed; opacity: .5; transform: rotate(11deg); }
.stage-stars { inset: 0; z-index: -1; color: var(--gold-bright); }
.stage-stars i { position: absolute; font: normal 22px/1 var(--serif); text-shadow: 0 0 22px #edc078; }
.stage-stars i:nth-child(1) { left: 21%; top: 26%; }
.stage-stars i:nth-child(2) { left: 17%; top: 52%; font-size: 11px; }
.stage-stars i:nth-child(3) { right: 24%; top: 16%; font-size: 16px; }
.stage-stars i:nth-child(4) { right: 18%; top: 45%; }
.stage-stars i:nth-child(5) { right: 25%; bottom: 30%; font-size: 13px; }
.side-note {
  top: 41%; display: grid; gap: 3px; width: 90px;
  color: #e2c798; font-size: 9px; letter-spacing: .20em; line-height: 1.1;
}
.side-note span:first-child { font-size: 23px; margin: 0 auto 6px; color: var(--gold); }
.note-left { left: 1%; transform: rotate(-10deg); }
.note-right { right: 1%; transform: rotate(10deg); }
.gift-trigger {
  appearance: none; display: flex; align-items: center; flex-direction: column; justify-content: flex-end;
  width: min(100%, 448px); height: 100%; padding: 0 0 8px; border: none; border-radius: 45%;
  color: inherit; background: transparent; cursor: pointer; touch-action: manipulation;
}
.gift-trigger:disabled { cursor: default; }
.stage[data-state="locked"] .gift-trigger { padding-bottom: 55px; }
.stage[data-state="locked"] .gift-art { max-height: 90%; }
.gift-art {
  width: 100%; height: auto; max-height: 332px; object-fit: contain; transform-origin: 50% 62%;
  filter: drop-shadow(0 18px 23px #0815109c);
  transition: transform .35s cubic-bezier(.19,.77,.37,1.2), filter .3s ease;
}
@media (hover: hover) {
  .gift-trigger:not(:disabled):hover .gift-art { transform: translateY(-6px) rotate(-2deg) scale(1.045); filter: drop-shadow(0 20px 30px #c58e4e40); }
  .gift-trigger:not(:disabled):hover .unwrap-cta { background: #ffe4a8; box-shadow: 0 0 26px #daa76566, inset 0 0 0 3px #f6cf8c; }
}
.gift-trigger:not(:disabled):active .gift-art { transform: scale(.96); }
.unwrap-cta {
  min-height: 51px; position: relative; z-index: 1; white-space: nowrap; border-radius: 99px;
  border: 1px solid #ffe4ad; padding: 12px 26px; display: flex; align-items: center; gap: 9px;
  background: linear-gradient(125deg, #f8dfab, #e8b76d); color: #341c15;
  box-shadow: 0 7px 30px #0c1b0d8c, inset 0 0 0 3px #f6cf8c;
  font-size: 15px; font-weight: 800; letter-spacing: -.015em; transition: box-shadow .25s;
}
.unwrap-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.gift-trigger:disabled .unwrap-cta { opacity: .6; }
.gate {
  position: absolute; z-index: 2; inset: auto auto 0; width: min(100%, 390px); padding: 0 2px;
  display: grid; justify-items: start; text-align: left; gap: 7px;
}
.gate label { margin-left: 10px; color: var(--paper); font-size: 12px; font-weight: 650; letter-spacing: .025em; }
.gate-fields {
  display: flex; width: 100%; gap: 6px; padding: 5px; background: #132824;
  border: 1px solid #d7aa657d; border-radius: 15px; box-shadow: 0 7px 30px #0c1b0d8c;
}
.gate input {
  appearance: none; min-width: 0; width: 100%; border: 0; border-radius: 10px; padding: 0 9px;
  background: transparent; color: var(--paper); font: 16px var(--sans);
}
.gate input::placeholder { color: #cabc9d; }
.gate input:focus { outline: 1px solid #ecce94; outline-offset: -1px; }
.gate button {
  flex: none; min-height: 44px; padding: 6px 15px; border: 0; border-radius: 10px;
  background: linear-gradient(125deg, #f8dfab, #e8b76d); color: #341c15; font-weight: 800;
  font-size: 14px; cursor: pointer; white-space: nowrap;
}
.gate button:hover { background: #ffe4a8; }
.gate button:disabled { opacity: .75; cursor: wait; }
.gate button span { margin-left: 3px; }
.switch {
  display: inline-grid; place-items: center; color: var(--quiet); margin-top: 2px; border: 0; padding: 0 8px;
  background: transparent; min-height: 36px; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.hint { margin: 13px 0 0; color: #d7c39e; letter-spacing: .125em; min-height: 17px; text-wrap: balance; }
.hint[data-error="true"] { color: #ffd2c4; letter-spacing: .035em; font-size: 12px; }
.footer { min-height: 57px; padding: 8px 0; font-size: 9px; color: #c9b48d; letter-spacing: .18em; gap: 8px; }
.footer span:nth-child(2) { color: var(--gold); font-size: 17px; }
.result { width: min(100%, 440px); align-self: end; padding-bottom: 4px; }
.tag {
  min-height: 236px; padding: 52px 15px 25px; margin: 42px 5px 17px;
  position: relative; display: grid; align-content: center; justify-items: center;
  color: #fff0d3; background: radial-gradient(ellipse at 41% 22%, #934b48, transparent 75%), #662c39;
  border: 1px solid #e1b672; border-radius: 19px 19px 15px 15px;
  box-shadow: 0 16px 65px #0d1b16bc, 0 0 48px #e5ad6b29;
  animation: arrive .65s cubic-bezier(.15,.87,.3,1.13) both;
}
.tag::before { content: ''; position: absolute; inset: 7px; border: 1px solid #ebbd7777; border-radius: 12px; pointer-events: none; }
.tag-tie {
  position: absolute; top: -55px; left: calc(50% - 14px); height: 78px; width: 28px; transform: rotate(10deg);
  border-radius: 48%; border: 5px solid #eac387; box-shadow: inset 0 0 0 1px #986633, 0 0 0 1px #986633;
}
.tag-kicker { margin: 0 0 7px; color: #ffdda1; }
.tag-kicker span { margin: 0 3px; }
.tag h2 { font: 400 clamp(44px, 9vw, 70px)/1 var(--serif); margin: 0; letter-spacing: -.055em; overflow-wrap: anywhere; }
.tag h2:focus { outline: none; }
.tag-copy { margin: 13px 0 0; font-size: 13px; color: #ffead0; }
.tag-mark { color: #eec688; margin-top: 12px; line-height: 1; }
.replay {
  min-height: 42px; padding: 6px 14px; background: #1225236b; color: var(--paper); border: 1px solid var(--line);
  border-radius: 99px; cursor: pointer; font-size: 13px;
}
.replay:hover { border-color: var(--gold); }
.replay span { color: var(--gold); font-size: 15px; }
.flash { inset: -20px 0; z-index: 3; background: radial-gradient(ellipse at center, #fff4d4db, #e1b06921 46%, transparent 68%); opacity: 0; }
.stage[data-state="opening"] .flash { animation: light .83s .1s ease-in both; }
.stage[data-state="opening"] .gift-art { animation: unseal .93s ease-in-out both; }
.stage[data-state="opening"] .unwrap-cta { opacity: .24; }
.stage[data-state="revealed"] .stage-glow { width: 100%; }
#confetti { position: fixed; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; }
.confetto {
  position: absolute; top: var(--y); left: var(--x); width: var(--size); height: calc(var(--size) * .66); background: var(--color);
  border-radius: var(--radius); animation: scatter var(--time) var(--delay) cubic-bezier(.14,.58,.33,.98) both;
}
@keyframes unseal {
  0% { transform: scale(1); }
  24% { transform: scale(1.05) rotate(-6deg); }
  45% { transform: scale(1.07) rotate(6deg); }
  64% { transform: scale(1.10) rotate(-4deg) translateY(-13px); }
  78% { transform: scale(.99) rotate(3deg) translateY(5px); opacity: 1; }
  100% { transform: scale(1.13) translateY(-12px); opacity: 0; }
}
@keyframes light { 0%, 45% { opacity: 0; } 84% { opacity: .96; } 100% { opacity: .12; } }
@keyframes arrive { from { opacity: 0; transform: translateY(24px) rotate(-7deg) scale(.84); } to { opacity: 1; transform: none; } }
@keyframes scatter {
  0% { opacity: 0; transform: translate(0,0) rotate(0) scale(.2); }
  10% { opacity: 1; }
  62% { opacity: .95; transform: translate(calc(var(--dx) * .8), var(--up)) rotate(calc(var(--spin) * .75)) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--end)) rotate(var(--spin)) scale(.78); }
}
@media (max-width: 710px) {
  .site-wrap { width: calc(100% - 34px); }
  .masthead { min-height: 66px; }
  .hero { min-height: auto; padding: 33px 10px 22px; }
  h1 { font-size: clamp(53px, 11vw, 80px); }
  .stage { height: clamp(286px, 62vw, 355px); }
  .stage[data-state="locked"] { height: clamp(305px, 64vw, 355px); }
  .side-note { display: none; }
  .gift-trigger { width: min(100%, 420px); }
  .gift-art { max-height: calc(100% - 47px); }
  #intro-copy { margin-top: 17px; }
  .footer { min-height: 48px; font-size: 7px; }
}
@media (max-width: 390px) {
  .site-wrap { width: calc(100% - 28px); }
  .wordmark { font-size: 17px; }
  .wordmark img { width: 33px; height: 33px; }
  h1 { font-size: clamp(39px, 13vw, 53px); }
  .kicker { letter-spacing: .125em; gap: 6px; }
  #intro-copy { font-size: 13px; }
  .stage { height: 272px; }
  .stage[data-state="locked"] { height: 289px; }
  .gate button { padding-inline: 10px; font-size: 13px; }
  .tag { min-height: 185px; padding-top: 31px; }
  .tag-tie { top: -44px; height: 60px; }
  .footer { letter-spacing: .075em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
