:root {
  --red: #ed1027;
  --red-hot: #ff3044;
  --red-deep: #8b0012;
  --red-dark: #260005;
  --white: #fff;
  --silver: #d9dade;
  --ink: #140003;
  --header-h: 72px;
  --cut: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background: var(--red-dark);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--red-dark); scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; overflow-x: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.site-header {
  height: var(--header-h);
  padding: 0 clamp(22px, 5vw, 78px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 2px 0 rgba(255,255,255,.38), 0 12px 38px rgba(46,0,5,.16);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--red);
  text-decoration: none;
  font-weight: 1000;
  font-style: italic;
  letter-spacing: -1.7px;
  font-size: clamp(20px, 2.2vw, 30px);
  transform: skew(-5deg);
}
.brand strong { color: #0b0b0e; font-weight: 1000; }
.brand-crown { position: absolute; left: 31px; top: -12px; font-size: 10px; transform: rotate(45deg); }
.rules-link {
  appearance: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 6px 0 3px;
  background: none;
  color: #2e2426;
  cursor: pointer;
  font-size: 14px;
}

.stage {
  min-height: calc(100vh - var(--header-h));
  isolation: isolate;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 35px 20px 75px;
  background:
    radial-gradient(circle at 50% 55%, rgba(255,42,57,.58) 0, rgba(175,0,20,.16) 32%, transparent 57%),
    linear-gradient(140deg, transparent 0 19%, rgba(255,255,255,.045) 19.2% 23%, transparent 23.2% 100%),
    linear-gradient(220deg, transparent 0 19%, rgba(255,255,255,.04) 19.2% 23%, transparent 23.2% 100%),
    linear-gradient(180deg, #4c0009 0%, #a60018 48%, #430007 100%);
}

.stage::before, .stage::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: auto -12vw -44vh;
  height: 72vh;
  background: repeating-linear-gradient(90deg, transparent 0 7.7%, rgba(255,255,255,.07) 7.9% 8.1%);
  transform: perspective(450px) rotateX(67deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(to bottom, transparent, #000 42%);
}
.stage::after {
  inset: 0;
  height: auto;
  transform: none;
  opacity: .55;
  background-image:
    radial-gradient(circle at 20% 37%, #ff7481 0 1px, transparent 2px),
    radial-gradient(circle at 75% 23%, #ff5969 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 86% 68%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 34% 70%, #ff5364 0 1px, transparent 2px);
  background-size: 210px 180px, 270px 240px, 320px 270px, 190px 230px;
  animation: drift 16s linear infinite;
}

.stage-lines { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.stage-lines::before, .stage-lines::after {
  content: "";
  position: absolute;
  top: 16%; bottom: 5%; width: min(24vw, 320px);
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,.045) 25.5% 43%, transparent 43.5%);
  transform: skewY(-11deg);
  box-shadow: 22px 0 55px rgba(255,0,27,.18);
}
.stage-lines::before { left: -7vw; }
.stage-lines::after { right: -7vw; transform: scaleX(-1) skewY(-11deg); }

.hero { width: min(1040px, 100%); text-align: center; position: relative; }
.headline-wrap { margin-bottom: 24px; }
.headline-wrap h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(46px, 8vw, 94px);
  line-height: .92;
  letter-spacing: .3px;
  text-transform: uppercase;
  text-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.headline-wrap h1 em { color: var(--red-hot); font-style: normal; }
.headline-wrap p { margin: 13px 0 0; font-size: clamp(17px, 2vw, 26px); letter-spacing: .07em; font-weight: 350; }

.scratch-shell {
  width: min(820px, 95vw);
  margin: 0 auto;
  padding: 12px;
  position: relative;
  filter: drop-shadow(0 25px 32px rgba(16,0,2,.5));
  background: linear-gradient(135deg, #f8f8fa, #6c6d70 18%, #eee 52%, #747579 82%, #fafafa);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
.scratch-shell::before {
  content: ""; position: absolute; inset: 4px; z-index: 0;
  background: linear-gradient(145deg, #74000c, #d30920 45%, #7e000e);
  clip-path: inherit;
}
.scratch-card {
  aspect-ratio: 2.26 / 1;
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(255,255,255,.07) 18.5% 25%, transparent 25.5%),
    radial-gradient(circle at 50% 50%, #e1152d 0, #9e0014 42%, #5f000a 100%);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
}
.prize { position: relative; z-index: 1; width: 100%; padding: 22px; display: grid; place-items: center; }
.prize::before {
  content: ""; position: absolute; inset: -70%; z-index: -1;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.12) 0 2deg, transparent 2.2deg 12deg);
  animation: spin 36s linear infinite;
}
.prize-label { font-size: 11px; letter-spacing: .35em; font-weight: 850; opacity: .75; }
.prize strong {
  margin-top: -4px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(78px, 13vw, 138px);
  line-height: .84;
  letter-spacing: .02em;
  text-shadow: 0 4px 0 #69000b, 0 0 30px rgba(255,255,255,.35);
}
.prize-name { margin-top: 8px; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(23px, 4vw, 42px); letter-spacing: .04em; }
.prize-detail { margin-top: 5px; font-size: clamp(10px, 1.7vw, 14px); font-weight: 800; letter-spacing: .08em; opacity: .82; }
.promo-code-row {
  margin-top: 14px; display: flex; align-items: center; gap: 11px;
  padding: 8px 9px 8px 14px; color: #9b0012; background: #fff;
  box-shadow: 0 0 24px rgba(255,255,255,.28);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.promo-label { font-size: 9px; letter-spacing: .16em; font-weight: 900; color: #63585a; }
.promo-code-row code { font: 900 20px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.copy-mini { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: #f0ebec; color: #870010; cursor: pointer; }
.copy-mini svg, .modal-code svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
#scratchCanvas { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#scratchCanvas:active { cursor: grabbing; }

.scratch-instruction {
  position: absolute; z-index: 7; left: 50%; bottom: 29px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; pointer-events: none;
  color: #fff; font-size: 16px; letter-spacing: .04em; text-shadow: 0 2px 12px #490008;
  transition: opacity .25s ease, transform .25s ease;
}
.scratch-instruction svg { width: 29px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.scratch-shell.started .scratch-instruction { opacity: 0; transform: translate(-50%, 8px); }
.progress-track { position: absolute; left: 21%; right: 21%; bottom: 14px; z-index: 7; height: 2px; background: rgba(255,255,255,.25); opacity: 0; transition: opacity .2s; }
.scratch-shell.started .progress-track { opacity: 1; }
.progress-track span { display: block; width: 0%; height: 100%; background: #fff; box-shadow: 0 0 10px #fff; transition: width .12s linear; }
.reset-button { position: absolute; right: 26px; top: 25px; z-index: 8; border: 1px solid rgba(255,255,255,.5); background: rgba(77,0,8,.55); color: #fff; padding: 8px 12px; cursor: pointer; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: .2s; }
.scratch-shell.completed .reset-button { opacity: 1; transform: none; pointer-events: auto; }

.age-note { position: absolute; bottom: 24px; display: flex; align-items: center; gap: 16px; color: rgba(255,255,255,.77); font-size: 12px; letter-spacing: .03em; }
.age-note span { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid #fff; border-radius: 50%; font-weight: 800; color: #fff; }
.age-note i { width: 1px; height: 28px; background: rgba(255,255,255,.48); }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: rgba(25,0,3,.76); backdrop-filter: blur(5px);
}
.modal-backdrop[hidden] { display: none; }
.winner-modal, .rules-modal {
  width: min(570px, 100%); position: relative; z-index: 2; text-align: center;
  padding: clamp(37px, 7vw, 58px) clamp(24px, 7vw, 62px) 38px;
  border: 1px solid rgba(255,255,255,.75);
  background:
    linear-gradient(135deg, rgba(255,255,255,.11), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(237,16,39,.32), transparent 45%),
    linear-gradient(145deg, #250005, #62000c 58%, #190003);
  box-shadow: 0 0 0 6px rgba(120,120,125,.65), 0 0 0 8px rgba(255,255,255,.65), 0 32px 80px rgba(0,0,0,.65), 0 0 80px rgba(255,0,30,.34);
  clip-path: polygon(17px 0, calc(100% - 17px) 0, 100% 17px, 100% calc(100% - 17px), calc(100% - 17px) 100%, 17px 100%, 0 calc(100% - 17px), 0 17px);
  animation: modalIn .42s cubic-bezier(.16, 1, .3, 1) both;
}
.close-button { position: absolute; right: 18px; top: 11px; border: 0; background: none; color: #fff; font-size: 31px; font-weight: 200; cursor: pointer; line-height: 1; }
.win-kicker { margin: 0 0 3px; color: var(--red-hot); font-weight: 950; letter-spacing: .36em; font-size: 11px; }
.winner-modal h2, .rules-modal h2 { margin: 0; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(45px, 9vw, 73px); line-height: 1; letter-spacing: .025em; }
.win-copy { margin: 8px 0 25px; font-size: clamp(17px, 3.5vw, 23px); }
.modal-code {
  width: 100%; min-height: 68px; display: flex; align-items: center; justify-content: space-between;
  border: 0; padding: 8px 10px 8px 25px; background: #fff; color: #9a0012; cursor: pointer;
  box-shadow: 0 0 30px rgba(255,255,255,.2);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.modal-code code { font: 950 clamp(23px, 5vw, 32px)/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.modal-code span { height: 48px; padding: 0 14px; display: flex; align-items: center; gap: 7px; background: #eee9ea; }
.modal-code b { font-size: 10px; letter-spacing: .08em; }
.redeem-button, .secondary-button {
  min-height: 62px; margin-top: 19px; display: flex; align-items: center; justify-content: center; gap: 13px;
  border: 1px solid #ff6878; color: #fff; background: linear-gradient(#fa1931, #ad0015);
  box-shadow: 0 8px 0 #66000c, 0 10px 30px rgba(255,0,33,.35);
  text-decoration: none; font-weight: 950; letter-spacing: .04em; cursor: pointer;
  clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 20px 100%, 0 50%);
  transition: transform .18s ease, filter .18s ease;
}
.redeem-button:hover, .secondary-button:hover { filter: brightness(1.16); transform: translateY(-2px); }
.redeem-button svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.winner-modal small { display: block; margin-top: 20px; opacity: .58; font-size: 10px; }
.sparks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sparks i { position: absolute; left: 50%; top: 50%; width: 3px; height: 35px; background: linear-gradient(#fff, #ff2039, transparent); transform-origin: 50% 0; animation: spark .9s ease-out both; }

.rules-modal { width: min(520px, 100%); text-align: left; }
.rules-modal h2 { font-size: 42px; }
.rules-modal p { line-height: 1.65; color: rgba(255,255,255,.76); }
.secondary-button { width: 100%; border: 0; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 30px; transform: translate(-50%, 18px); padding: 12px 18px; color: #8f0011; background: #fff; font-weight: 800; box-shadow: 0 12px 40px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.site-footer {
  position: relative; z-index: 2; padding: 28px clamp(20px, 5vw, 72px) 32px;
  text-align: center; color: rgba(255,255,255,.78); background: #150006;
  border-top: 1px solid rgba(255,255,255,.14);
}
.footer-brand { color: #ef3449; font-weight: 950; font-style: italic; letter-spacing: -.04em; }
.footer-brand strong { color: #fff; }
.footer-links { margin: 16px auto 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; }
.footer-links a { color: #fff; font-size: 13px; text-underline-offset: 4px; }
.footer-links a:hover, .footer-links a:focus-visible { color: #ff4a5f; }
.site-footer p, .site-footer small { margin: 6px 0 0; font-size: 12px; line-height: 1.55; }

.legal-body { min-height: 100vh; background: #f5f5f6; color: #18181b; }
.legal-header { position: sticky; top: 0; z-index: 10; box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.legal-back { color: #79000e; font-size: 14px; font-weight: 800; text-decoration: none; }
.legal-main { width: min(960px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0 70px; }
.legal-hero { margin-bottom: 26px; }
.legal-kicker { margin: 0 0 8px; color: #b90016; font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.legal-hero h1 { margin: 0; color: #51000a; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(40px, 7vw, 72px); line-height: .95; letter-spacing: .015em; }
.legal-intro { margin: 20px 0 0; max-width: 780px; color: #55545a; line-height: 1.7; }
.legal-notice { margin: 24px 0; padding: 16px 18px; color: #65000d; background: #fff0f2; border-left: 4px solid #c7001b; border-radius: 8px; line-height: 1.6; }
.legal-nav { margin: 24px 0 32px; display: flex; flex-wrap: wrap; gap: 9px; }
.legal-nav a { padding: 9px 12px; color: #76000e; background: #fff; border: 1px solid #dedee2; border-radius: 999px; font-size: 12px; font-weight: 800; text-decoration: none; }
.legal-section { scroll-margin-top: 105px; margin: 20px 0; padding: clamp(22px, 4vw, 38px); background: #fff; border: 1px solid #e4e4e7; border-radius: 18px; box-shadow: 0 16px 46px rgba(48,0,7,.07); }
.legal-section h2 { margin: 0 0 18px; color: #850011; font-size: clamp(24px, 4vw, 34px); }
.legal-section h3 { margin: 24px 0 8px; color: #2d2b30; font-size: 17px; }
.legal-section p, .legal-section li { color: #4d4b51; line-height: 1.72; }
.legal-section ul { padding-left: 20px; }
.placeholder-list { padding: 18px 20px; background: #f7f7f8; border: 1px dashed #aaaab1; border-radius: 10px; }
.placeholder-list p { margin: 5px 0; }
.blank { display: inline-block; min-width: 220px; border-bottom: 1px solid #777; }
.legal-section a { color: #a50016; }

@keyframes spin { to { transform: rotate(1turn); } }
@keyframes drift { to { background-position: 210px 180px, -270px 240px, 320px -270px, -190px -230px; } }
@keyframes modalIn { from { opacity: 0; transform: scale(.78) translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes spark { from { opacity: 1; transform: rotate(var(--a)) translateY(-20px) scaleY(.2); } to { opacity: 0; transform: rotate(var(--a)) translateY(-380px) scaleY(1); } }

@media (max-width: 680px) {
  :root { --header-h: 62px; --cut: 16px; }
  .site-header { padding: 0 18px; }
  .brand { font-size: 20px; gap: 5px; }
  .brand-crown { left: 23px; top: -10px; }
  .rules-link { font-size: 12px; }
  .stage { align-content: start; padding: 44px 12px 78px; }
  .headline-wrap { margin-bottom: 28px; }
  .headline-wrap h1 { max-width: 350px; margin: auto; font-size: clamp(47px, 15vw, 68px); line-height: .88; }
  .headline-wrap h1 em { display: block; }
  .headline-wrap p { margin-top: 16px; font-size: 15px; }
  .scratch-shell { width: min(94vw, 520px); padding: 8px; }
  .scratch-card { aspect-ratio: 1.12 / 1; }
  .prize { padding: 18px 8px; }
  .prize strong { font-size: clamp(86px, 27vw, 118px); }
  .prize-name { font-size: clamp(25px, 8vw, 35px); }
  .promo-code-row { margin-top: 15px; }
  .scratch-instruction { bottom: 24px; font-size: 14px; white-space: nowrap; }
  .progress-track { bottom: 10px; }
  .reset-button { top: 16px; right: 17px; font-size: 11px; }
  .age-note { bottom: 19px; }
  .age-note span { width: 31px; height: 31px; font-size: 11px; }
  .winner-modal { padding-top: 44px; }
  .modal-code { min-height: 60px; padding-left: 16px; }
  .modal-code span { height: 43px; padding: 0 10px; }
  .modal-code b { display: none; }
  .site-footer { padding: 25px 18px 28px; }
  .footer-links { flex-direction: column; gap: 11px; }
  .legal-header { position: relative; }
  .legal-main { padding-top: 34px; }
  .legal-section { padding: 22px 18px; border-radius: 14px; }
  .blank { min-width: 150px; }
}

@media (max-height: 760px) and (min-width: 681px) {
  .stage { padding-top: 22px; }
  .headline-wrap { margin-bottom: 16px; }
  .headline-wrap h1 { font-size: clamp(48px, 6.5vw, 76px); }
  .scratch-shell { width: min(720px, 86vw); }
  .age-note { bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
