:root {
  color-scheme: dark;
  --fir: #122e26;
  --fir-dark: #0b211b;
  --berry: #ad2839;
  --berry-light: #d64551;
  --gold: #ffcf77;
  --cream: #fff5df;
  --muted: #dbd9bf;
  --line: #f6d39345;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--cream); background: radial-gradient(ellipse at 74% 27%, #38573b, #17392d 30%, transparent 56%), var(--fir-dark); }
button { font: inherit; }
button:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.frame { width: min(1230px, calc(100% - 100px)); margin-inline: auto; }
.brandbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 23px; letter-spacing: .23em; font-weight: 800; }
.edition, .eyebrow, .footer, .hub span, .signature span { font-size: .875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.edition { display: flex; align-items: center; gap: 12px; color: var(--cream); }
.edition b { color: var(--fir-dark); padding: 6px 9px; background: var(--gold); border-radius: 99px; }
.hero { min-height: 610px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 16px; padding: 32px 0 44px; }
.intro { position: relative; z-index: 2; }
.eyebrow { color: var(--gold); margin: 0 0 20px; }
.eyebrow span { margin-right: 6px; }
.holiday-tag { display: inline-block; padding: 9px 13px; border: 1px solid var(--line); border-radius: 100px; background: #173329; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; margin: 0; letter-spacing: -.055em; }
h1 { font: 800 clamp(2.8rem, 6.1vw, 5.45rem)/.96 Arial, Helvetica, sans-serif; letter-spacing: -.07em; }
.title-box { color: #ff6e73; }
.title-year { display: block; margin-top: 2px; color: #ff6e73; }
.campaign-line { margin: 19px 0 0; font: 700 clamp(1.02rem, 1.8vw, 1.3rem)/1.38 Georgia, serif; color: var(--cream); }
.campaign-line em { color: var(--gold); }
.lead { color: var(--muted); font-size: 1.1rem; line-height: 1.58; max-width: 450px; margin: 22px 0 25px; }
.lead strong { color: var(--cream); }
.spin { display: inline-flex; align-items: center; justify-content: center; gap: 19px; min-height: 54px; padding: 0 23px; border: 1px solid #f89286; border-radius: 100px; background: linear-gradient(155deg, var(--berry-light), var(--berry)); color: #fff9ed; font-weight: 800; cursor: pointer; box-shadow: 0 5px 0 #691626, 0 9px 21px #051812a0; transition: transform .15s, filter .15s; }
.spin:hover:not(:disabled) { filter: brightness(1.12); transform: translateY(-2px); }
.spin:active:not(:disabled) { transform: translateY(2px); }
.spin:disabled { cursor: wait; opacity: .75; }
.mode { color: var(--muted); font-size: .8125rem; margin: 16px 0 0; line-height: 1.45; }

.stage { isolation: isolate; position: relative; display: grid; place-items: center; min-width: 0; padding: 9%; aspect-ratio: 1; }
.orbit, .orbit::after { position: absolute; inset: 4%; content: ''; border: 1px dashed #ffdb875e; border-radius: 50%; pointer-events: none; }
.orbit::after { inset: -4%; border: 1px solid #ffdb872c; }
.snowbanks {
  position: absolute;
  inset: auto -2% 0;
  height: 20%;
  background:
    radial-gradient(ellipse 60% 75% at 27% 117%, #dcece3 0 97%, transparent 99%) 0 100% / 56% 82% no-repeat,
    radial-gradient(ellipse 62% 86% at 72% 122%, #f6fbef 0 97%, transparent 99%) 100% 100% / 64% 90% no-repeat,
    radial-gradient(ellipse 53% 92% at 54% 124%, #9cbcae 0 97%, transparent 99%) 50% 100% / 98% 100% no-repeat;
  mask-image: linear-gradient(#000 66%, transparent 100%);
}
.winter-flake {
  position: absolute;
  z-index: 3;
  color: #f5fff4;
  line-height: 1;
  text-shadow: 0 0 16px #d9f4ef91;
}
.winter-flake-left { top: 24%; left: 2%; font-size: clamp(1.25rem, 3vw, 2.7rem); transform: rotate(-12deg); }
.winter-flake-right { right: 2%; bottom: 28%; font-size: clamp(1rem, 2.35vw, 2rem); transform: rotate(16deg); }
.star { position: absolute; color: var(--gold); text-shadow: 0 0 16px #dcad66; font-size: 26px; line-height: 1; }
.star-a { top: 14%; right: 6%; }
.star-b { bottom: 11%; left: 7%; font-size: 37px; }
.star-c { bottom: 5%; right: 29%; font-size: 19px; }
.bauble { position: absolute; z-index: 3; display: grid; place-items: center; width: 10%; aspect-ratio: 1; border-radius: 50%; font-size: clamp(1rem, 2.5vw, 2rem); box-shadow: inset -4px -6px 12px #4c162547, 0 5px 20px #16221873; color: #fff4cc; }
.bauble::before { position: absolute; content: ''; top: -10%; left: 38%; width: 24%; height: 15%; border-radius: 3px 3px 0 0; background: #e9ae55; }
.bauble-red { top: 4%; left: 17%; transform: rotate(-17deg); background: radial-gradient(circle at 30% 25%, #ff8c85, #ae2639 58%, #8b1430); }
.bauble-gold { right: 6%; bottom: 13%; width: 8%; transform: rotate(22deg); background: radial-gradient(circle at 30% 25%, #ffe0a3, #ae611c 72%); }
.wheel-wrap { position: relative; width: 100%; aspect-ratio: 1; filter: drop-shadow(0 0 26px #ffcd7542); }
canvas { width: 100%; height: auto; display: block; transform: rotate(var(--rotation, 0deg)); will-change: transform; }
.pointer { position: absolute; z-index: 3; top: -6%; left: 50%; transform: translateX(-50%); width: 12%; aspect-ratio: 1; background: #f7bd58; clip-path: polygon(50% 0%, 63% 33%, 100% 38%, 73% 63%, 79% 100%, 50% 79%, 21% 100%, 27% 63%, 0 38%, 37% 33%); }
.pointer::after { position: absolute; content: ''; inset: 14%; background: #ffe5a1; clip-path: inherit; }
.hub { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%; position: absolute; inset: 35%; border: 3px solid #f7c461; border-radius: 50%; background: radial-gradient(circle at 35% 22%, #ad3c47, #6b1a30 75%); box-shadow: 0 0 0 4px #61252b, 0 4px 24px #1615148f; color: var(--cream); }
.hub strong { font-family: Georgia, serif; font-size: clamp(1.7rem, 4.5vw, 4.2rem); line-height: .85; letter-spacing: -.09em; padding-right: .09em; }
.hub span { font-size: clamp(.43rem, 1.03vw, .64rem); letter-spacing: .13em; white-space: nowrap; }
.hub .hub-star { color: var(--gold); font-size: clamp(.65rem, 1.8vw, 1.18rem); line-height: 1; }

.gifts { border-top: 1px solid var(--line); padding: 42px 0 55px; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.05; }
.gift-grid { list-style: none; margin: 23px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.gift-grid li { border: 1px solid var(--line); padding: 19px; background: #28513b6e; border-radius: 13px; }
.gift-grid li:last-child { grid-column: 1/-1; background: #793121a8; border-color: #eca35176; }
.gift-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 8px; background: #fff0b226; border-radius: 50%; }
.gift-grid strong { display: block; color: var(--gold); font-size: 1rem; line-height: 1.35; }
.gift-grid p { margin: 6px 0 0; color: var(--cream); font-size: 1rem; line-height: 1.48; }
.footer { display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding: 25px 0 28px; color: var(--muted); font-size: .75rem; }

dialog { width: min(506px, calc(100% - 28px)); max-height: calc(100% - 28px); overflow: auto; border: 2px solid #c59051; border-radius: 19px; background: radial-gradient(ellipse at 50% 0%, #3b6245, #15372d 60%); color: var(--cream); padding: 28px 28px 23px; text-align: center; box-shadow: 0 25px 100px #0009; }
dialog::backdrop { background: #061b16ce; backdrop-filter: blur(6px); }
dialog h2 { color: var(--gold); }
dialog .eyebrow { margin: 9px 0 12px; }
dialog p:not(.eyebrow) { line-height: 1.48; }
.close { position: absolute; z-index: 2; right: 10px; top: 9px; width: 44px; height: 44px; background: transparent; color: var(--cream); border: 0; border-radius: 50%; cursor: pointer; font-size: 1.65rem; }
.result-mark { display: grid; place-items: center; margin: 0 auto; width: 66px; height: 66px; border-radius: 50%; background: #fff0b22a; font-size: 2.35rem; color: var(--gold); }
.wish { border-top: 1px dashed var(--line); margin: 16px 0 0; padding-top: 16px; color: var(--muted); }
.signature { font-family: Georgia, serif; font-size: 1.15rem; color: var(--gold); margin-block: 13px 16px; }
.signature strong { font: 700 1.55rem Arial, Helvetica, sans-serif; color: var(--cream); letter-spacing: -.045em; }
.signature em { color: #ff6e73; font-style: normal; }
.signature span { font: 700 .75rem Arial, sans-serif; color: var(--muted); letter-spacing: .12em; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.modal-button { min-height: 44px; }
#registration { text-align: left; }
#registration h2 { margin-right: 35px; }
#registration-note { color: var(--muted); }
#registration-form { display: grid; gap: 12px; }
#registration-form label { display: grid; gap: 5px; color: var(--cream); font-weight: 700; }
#registration-form input { width: 100%; padding: 11px 12px; border: 1px solid #f6d39371; border-radius: 7px; background: var(--fir-dark); color: var(--cream); font: inherit; font-weight: 400; }
#registration-form input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
#registration-form .spin { justify-self: start; }
.form-error { color: #ffb9b9; margin: 0; }
.replay { min-height: 44px; padding: 0 13px; color: var(--cream); border: 1px solid var(--line); border-radius: 100px; background: transparent; cursor: pointer; }
.replay:hover { background: #ffffff15; }
.snow, .confetti { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.snow { z-index: 1; }
.snow i { position: absolute; top: 0; left: var(--x); opacity: var(--opacity); animation: drift 4.9s var(--delay) linear both; }
.snow .snow-dot { width: var(--size); height: var(--size); border-radius: 50%; background: #f3fff6; }
.snow .snow-crystal { color: #f3fff6; font-size: var(--size); font-style: normal; line-height: 1; text-shadow: 0 0 8px #ddfff569; }
.confetti { position: absolute; }
.confetti i { position: absolute; top: 12%; left: 50%; width: 8px; height: 11px; border-radius: 2px; background: var(--color); animation: burst 1.45s var(--delay) ease-out both; }
@keyframes drift { from { transform: translate(0, -12vh) rotate(0deg); } to { transform: translate(var(--sway), 110vh) rotate(105deg); } }
@keyframes burst { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 78% { opacity: 1; } to { transform: translate(var(--x), var(--y)) rotate(var(--tilt)); opacity: 0; } }

@media (max-width: 1050px) {
  .frame { width: calc(100% - 62px); }
  .hero { min-height: 535px; }
}
@media (max-width: 760px) {
  .frame { width: calc(100% - 36px); }
  .brandbar { min-height: 60px; }
  .wordmark { font-size: 17px; }
  .edition { font-size: .68rem; letter-spacing: .09em; gap: 7px; }
  .edition b { padding: 5px 7px; }
  .hero { display: flex; flex-direction: column; min-height: auto; gap: 16px; text-align: center; padding: 25px 0; }
  .holiday-tag { margin-bottom: 13px; font-size: .75rem; }
  h1 { font-size: clamp(2.5rem, 9.5vw, 4rem); }
  .title-year { display: inline; }
  .campaign-line { margin-top: 11px; }
  .lead { font-size: 1rem; margin: 14px auto 17px; line-height: 1.45; }
  .stage { width: min(100%, 465px); padding: min(9%, 42px); }
  .hub strong { font-size: clamp(1.7rem, 9.6vw, 4.1rem); }
  .hub span { font-size: clamp(.44rem, 1.65vw, .66rem); }
  .gifts { padding: 29px 0 35px; }
  .gift-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gift-grid li { padding: 13px; }
  .footer { line-height: 1.5; }
}
@media (max-width: 390px) {
  .gift-grid { grid-template-columns: 1fr; }
  dialog { padding: 24px 17px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .snow, .confetti { display: none; }
}
