:root {
  --red: #e93225;
  --red-deep: #b8241a;
  --paper: #f4f3f2;
  --paper-2: #e9e8e7;
  --ink: #141414;
  --asphalt: #1c1c1f;
  --asphalt-2: #26262a;
  --muted: #6d6b69;
  --line: #d6d4d2;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

h1, h2, h3 { font-stretch: 125%; line-height: 1.02; letter-spacing: -0.015em; margin: 0; }
h1 { font-weight: 850; font-size: clamp(2.4rem, 6.2vw, 5.2rem); max-width: 14ch; }
h2 { font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-weight: 700; font-size: 1.15rem; font-stretch: 110%; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 0; cursor: pointer;
  background: var(--red); color: #fff; font: 700 1rem/1 var(--font); font-stretch: 112%; text-decoration: none;
  padding: .9em 1.4em; border-radius: 999px; transition: background .15s; }
.btn:hover { background: var(--red-deep); }
.btn-small { padding: .6em 1.1em; font-size: .9rem; }
.btn-big { padding: 1.1em 1.8em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Top bar */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center;
  padding: calc(12px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 48px) 12px; color: #fff;
  background: linear-gradient(rgba(20,20,20,.7), rgba(20,20,20,0)); }
.brand img { width: 132px; height: auto; }
.topbar nav { display: flex; gap: clamp(12px, 2.4vw, 28px); align-items: center; font-weight: 600; font-size: .95rem; }
.topbar nav a:not(.btn) { text-decoration: none; opacity: .9; }
.topbar nav a:not(.btn):hover { opacity: 1; text-decoration: underline; }
@media (max-width: 640px) { .topbar nav a:not(.btn) { display: none; } }

/* Home: clock + machine + form */
.home { position: relative; color: #fff; overflow: hidden; background: var(--asphalt); }
.home-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,.72) 0%, rgba(20,20,20,.86) 38%, rgba(28,28,31,.97) 70%); }
.home-inner { position: relative; padding: calc(84px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 56px) clamp(40px, 6vw, 80px); max-width: 1440px; margin: 0 auto; }

.clock-block { text-align: center; margin-bottom: clamp(16px, 3vw, 32px); }
.prize-banner { margin: 0 auto clamp(18px, 3vw, 34px); text-transform: uppercase; }
.pb-label { display: inline-block; background: var(--red); color: #fff; font-weight: 800; font-stretch: 125%; letter-spacing: .08em;
  font-size: clamp(.9rem, 1.6vw, 1.25rem); padding: .45em 1.1em; border-radius: 999px; margin-bottom: 14px; }
.pb-main { font-weight: 900; font-stretch: 125%; line-height: .98; letter-spacing: -.01em; font-size: clamp(2rem, 5.6vw, 4.6rem); }
.pb-value { font-weight: 900; font-stretch: 100%; color: var(--red); line-height: .95; margin-top: 8px;
  font-size: clamp(3.4rem, 10vw, 8rem); text-shadow: 0 6px 40px rgba(233,50,37,.35); }
.pb-value span { display: block; color: #fff; font-stretch: 125%; font-weight: 800; letter-spacing: .1em; font-size: clamp(.95rem, 1.8vw, 1.4rem); margin-top: 6px; }
.clock-label { font-weight: 700; color: var(--red); font-stretch: 112%; font-size: clamp(1rem, 1.6vw, 1.3rem); margin-bottom: 4px; }
.clock { display: flex; justify-content: center; align-items: flex-start; gap: clamp(4px, 1.4vw, 20px); }
.clock .unit { display: flex; flex-direction: column; align-items: center; min-width: 1.9ch; }
.clock span, .clock .sep { font-weight: 850; font-stretch: 62%; font-size: clamp(3.6rem, 11vw, 8.5rem); line-height: .9; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.clock .sep { color: var(--red); opacity: .9; }
.clock small { font-size: clamp(.75rem, 1.2vw, 1rem); font-weight: 600; opacity: .7; margin-top: 6px; }
.clock-when { margin-top: 12px; font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.25rem); }
.clock-block.live .clock span { color: var(--red); }
.clock-block.live .clock .sep { color: #fff; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: clamp(20px, 3.5vw, 56px); align-items: start; }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } }
.machine-col canvas { width: 100%; height: auto; aspect-ratio: 10 / 7.4; }
.stage-status { color: rgba(255,255,255,.85); font-size: 1.1rem; margin: 6px 0 16px; min-height: 1.6em; }
.stage-status.live { color: #fff; font-weight: 700; font-size: 1.25rem; }
.winner { border-left: 4px solid var(--red); padding: 6px 0 6px 20px; margin-bottom: 20px; }
.winner-label { font-weight: 600; opacity: .8; }
.winner-name { font-weight: 850; font-stretch: 125%; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; margin: 4px 0; }
.winner-meta { opacity: .75; }
.winner.reveal { animation: reveal .9s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
.last { color: rgba(255,255,255,.85); display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.last strong { color: #fff; }
.last-meta { font-size: .9rem; opacity: .7; }
.pool { font-size: .95rem; color: rgba(255,255,255,.65); margin-top: 16px; }

.entry-form { background: #fff; color: var(--ink); padding: clamp(22px, 3vw, 36px); border-radius: 12px; display: grid; gap: 14px; position: relative;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.entry-form h1 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 850; max-width: none; }
.form-lede { margin: 0 0 4px; color: #3b3a38; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }
.entry-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.entry-form input:not([type="checkbox"]) { font: 500 1.05rem/1.3 var(--font); padding: .75em .9em; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
.entry-form input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(233,50,37,.25); }
.entry-form input[aria-invalid="true"] { border-color: var(--red); }

.promo { background: var(--red); color: #fff; border-radius: 10px; padding: 16px 18px 18px; display: grid; gap: 12px; }
.promo-head { display: flex; gap: 14px; align-items: center; }
.promo-x { font-weight: 900; font-stretch: 62%; font-size: 3.4rem; line-height: .85; flex: none; }
.promo-head strong { display: block; font-size: 1.12rem; font-stretch: 112%; line-height: 1.2; }
.promo-head div span { display: block; font-size: .88rem; opacity: .92; margin-top: 3px; }
.entry-form .promo-field { color: #fff; }
.entry-form .promo-field input { border-color: #fff; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; font-size: 1.15rem; }
.entry-form .promo-field input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 500; }
.entry-form .promo-field input:focus { box-shadow: 0 0 0 3px rgba(20,20,20,.5); }
.promo.valid-look .promo-field input { background: #fff6f5; }

.check { grid-template-columns: 22px 1fr !important; align-items: start; font-weight: 500 !important; font-size: .86rem !important; color: #3b3a38; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; color: var(--red-deep); font-weight: 600; }
.fine { color: var(--muted); font-size: .85rem; margin: 0; }
.success { position: absolute; inset: 0; background: #fff; border-radius: 12px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(22px, 4vw, 48px); gap: 12px; animation: reveal .5s ease both; }
.success h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 850; }
.success p { font-size: 1.1rem; max-width: 40ch; margin: 0; }

/* Prize */
.prize { padding: clamp(56px, 8vw, 110px) clamp(20px, 5vw, 72px) clamp(56px, 8vw, 110px); max-width: 1320px; margin: 0 auto; }
.prize-lede { font-size: 1.15rem; max-width: 60ch; color: #3b3a38; margin: 16px 0 30px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery figure { margin: 0; position: relative; border-radius: 6px; overflow: hidden; background: var(--asphalt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-wide img { aspect-ratio: 16 / 7; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: #fff; font-weight: 700;
  background: linear-gradient(transparent, rgba(20,20,20,.8)); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery .g-wide { grid-column: span 2; } }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.7); font-size: .85rem; display: flex; justify-content: space-between; gap: 24px; align-items: flex-end;
  padding: 36px clamp(20px, 5vw, 72px) calc(36px + env(safe-area-inset-bottom, 0px)); }
.footer p { max-width: 90ch; margin: 0 0 10px; }
.pit { opacity: .35; cursor: default; user-select: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-video { display: none; }
  .home { background: url(/assets/hero-poster.jpg) center / cover; }
  .winner.reveal, .success { animation: none; }
}
