:root {
  color-scheme: dark;
  --night: #071b1f;
  --pine: #0c2b2e;
  --cream: #fff3d4;
  --gold: #f0cb82;
  --muted: #c3d6d2;
  --line: #d3b07855;
  font-family: system-ui, -apple-system, Arial, sans-serif;
  color: var(--cream);
  background: var(--night);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 50% 20%, #20474b 0, transparent 63%); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #fff0c0; outline-offset: 4px; }
.shell { width: min(940px, calc(100% - 32px)); margin: 24px auto 0; padding-bottom: max(42px, env(safe-area-inset-bottom)); position: relative; }
.hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 400px; display: grid; align-items: center;
  border: 1px solid var(--line); border-radius: 30px 30px 104px 30px; background: #10292c; box-shadow: 0 24px 70px #020e1360;
}
.hero-image { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: center 38%; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #091f24ed 0%, #091f2499 45%, transparent 76%); }
.hero-copy { padding: clamp(24px, 5vw, 56px); }
.eyebrow { color: var(--gold); font-weight: 760; font-size: .82rem; letter-spacing: .13em; margin: 0 0 .65rem; }
.eyebrow span { margin-right: .25em; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; margin: 0; }
.hero h1, .manager-shell h1 { font-size: clamp(2.1rem, 5.2vw, 4.1rem); line-height: 1.03; letter-spacing: -.042em; text-shadow: 0 4px 24px #000b; }
.hero-copy > p:last-child { color: var(--muted); line-height: 1.5; margin: 1rem 0 0; max-width: 24rem; }
.ticket, .tiers { width: min(100%, 656px); margin-inline: auto; }
.ticket {
  position: relative; z-index: 1; margin-top: -35px; text-align: center; padding: 21px 26px 23px;
  background: linear-gradient(140deg, #193c3d, #0d272c 75%); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 16px 48px #020b1080, inset 0 0 0 4px #d2a35a0c;
}
.ticket-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 7px; }
.ticket-top p { margin: 0; }
.count { font-size: .86rem; color: var(--muted); }
.ticket h2, .tiers h2 { font-size: clamp(1.6rem, 4vw, 2.45rem); letter-spacing: -.025em; line-height: 1.09; }
#scratch-instruction { margin: .55rem 0 .95rem; color: var(--muted); line-height: 1.35; }
.scratch-area, .gift { width: 100%; min-height: 146px; border-radius: 16px; position: relative; }
.scratch-area { height: 154px; background: #7a303b; isolation: isolate; }
.underlay, #foil { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
.underlay { display: grid; place-items: center; background: radial-gradient(ellipse, #9e4d59, #4a2d3e); color: #fedb96; font-size: 4rem; box-shadow: inset 0 0 0 1px #fff3; }
#foil { cursor: grab; touch-action: none; }
#foil:active { cursor: grabbing; }
.coin {
  pointer-events: none; position: absolute; top: 0; left: 0; width: 46px; height: 46px;
  display: grid; place-items: center; border-radius: 100%; font-size: 1.25rem; font-weight: 900; color: #573510;
  background: radial-gradient(circle at 30% 26%, #ffecb4, #dba548 65%, #87511f);
  border: 3px double #704623; box-shadow: 0 5px 11px #241308a0; transform: translate(-100px, -100px);
}
.gift {
  background: radial-gradient(ellipse at 50% 0, #9c4a59, #542d41 72%); display: grid; place-content: center;
  min-height: 154px; gap: 4px; padding: 16px; border: 1px solid #fae2a56b;
}
.gift strong { font-family: Georgia, serif; font-size: clamp(1.55rem, 4.5vw, 2.5rem); line-height: 1.06; overflow-wrap: anywhere; }
.gift p { margin: .25rem 0 0; color: #f7ded8; }
#gift-mark { font-size: 1.6rem; color: #f6d793; }
#status, .demo { color: var(--muted); line-height: 1.45; }
#status { margin: .75rem 0 0; }
#status:empty { display: none; }
.demo { margin: 0 0 14px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: .86rem; }
.quiet { color: #f4dbab; background: transparent; border: 0; min-height: 44px; padding: 7px 8px; text-decoration: underline; text-underline-offset: .25em; }
.quiet:hover { color: white; }
.primary {
  display: inline-flex; min-height: 46px; justify-content: center; align-items: center; text-align: center; font-weight: 760;
  text-decoration: none; color: #2b2114; background: linear-gradient(115deg, #ffe8ac, #eab764);
  padding: .67rem 1rem; border: 1px solid #ffe4ab; border-radius: 12px; line-height: 1.2;
}
.primary:hover { background: #ffe8ac; }
button:disabled, select:disabled { opacity: .58; cursor: default; }
#next { margin-top: 13px; }
.card-nav { margin: 15px auto 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.card-nav button {
  width: 40px; min-height: 40px; font-weight: 700; border: 1px solid var(--line); border-radius: 10px;
  background: #0002; color: var(--cream);
}
.card-nav button[aria-current="true"] { border-color: #ffe3a2; background: #ebc47133; }
.tiers { margin-top: 29px; text-align: center; }
.tiers h2 { max-width: 28rem; margin-inline: auto; }
.tiers dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 19px 0 0; }
.tiers dl > div { background: #0a2427c0; min-width: 0; padding: 13px 10px; border: 1px solid var(--line); border-radius: 12px; }
.tiers dt { font-weight: 760; color: var(--gold); margin-bottom: .35rem; }
.tiers dd { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.35; overflow-wrap: anywhere; }
.contact { margin-top: 21px; }
.contact p { color: var(--muted); margin: .8rem 0 0; }
.contact .primary { margin: .85rem .25rem 0; }
.contact strong { color: var(--cream); letter-spacing: .05em; }
.snow { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 4; }
.snow i {
  position: absolute; inset: -250px 0 0;
  background-image: radial-gradient(2px 2px at 38px 62px, #ffffffe0, transparent),
    radial-gradient(1.5px 1.5px at 127px 105px, #fff, transparent),
    radial-gradient(1px 1px at 201px 189px, white, transparent);
  background-size: 240px 250px; opacity: .23; animation: snowfall 14s linear infinite;
}
.snow i + i { opacity: .17; background-position: 105px 141px; animation-duration: 22s; }
@keyframes snowfall { to { transform: translateY(250px); } }
.manager-shell { width: min(670px, calc(100% - 30px)); margin: 40px auto; }
.manager-shell > p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.manager-panel { margin-top: 22px; text-align: left; }
.manager-panel label { display: block; font-weight: 700; margin-bottom: 7px; }
.form-row { display: flex; align-items: stretch; gap: 8px; }
.form-row input, .form-row select {
  min-width: 0; width: 100%; min-height: 46px; background: #091f23; border: 1px solid var(--line);
  padding: .55rem .7rem; border-radius: 10px; color: var(--cream);
}
.form-row .primary { flex-shrink: 0; }
#record { margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
#record ol { line-height: 1.42; padding-left: 1.35rem; }
#record li { padding-bottom: 7px; }
@media (max-width: 620px) {
  .shell { width: calc(100% - 20px); margin-top: 10px; }
  .hero { border-radius: 20px 20px 65px 20px; min-height: 310px; align-items: end; }
  .hero-image { object-position: 73% 32%; }
  .hero::after { background: linear-gradient(0deg, #0b2327 1%, #0b2327dc 24%, #0b232722 68%),
    linear-gradient(90deg,#091f2470,transparent 71%); }
  .hero-copy { padding: 18px 17px 37px; }
  .hero h1 { font-size: clamp(1.8rem, 6.8vw, 2.6rem); }
  .hero-copy > p:last-child { margin-top: .55rem; font-size: .94rem; }
  .ticket { margin-top: -22px; padding: 15px 13px 12px; border-radius: 17px; }
  .ticket-top { margin-bottom: 8px; }
  .scratch-area { height: 139px; }
  .tiers dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manager-panel { margin-top: 18px; }
}
@media (max-width: 370px) { .form-row { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .snow i { animation: none; } }
