@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --red: #ee2028;
  --deep: #171719;
  --paper: #f5f1ec;
  --ink: #19191b;
  --line: #d8d1ca;
  --gold: #ffc857;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Outfit, sans-serif; overflow-x: hidden; }

.noise {
  position: fixed; inset: 0; pointer-events: none; opacity: .035; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Intro --- */
html.intro-active, html.intro-active body { overflow: hidden; height: 100%; }
.intro {
  position: fixed; inset: 0; z-index: 100; background: var(--red); display: grid; place-items: center;
  overflow: hidden; text-align: center;
}
.intro[hidden] { display: none; }
.intro.exiting .intro-content { animation: intro-suck .6s cubic-bezier(.7, 0, .84, 0) forwards; }
.intro.exiting { animation: intro-fade .75s .1s ease forwards; }
@keyframes intro-fade { to { opacity: 0; } }
@keyframes intro-suck { to { transform: scale(.25); opacity: 0; filter: blur(6px); } }

.intro-glow {
  position: absolute; inset: -20%; z-index: 0;
  background: radial-gradient(circle at center, rgba(255, 200, 87, .35), rgba(238, 32, 40, 0) 60%);
  animation: intro-pulse 2.4s ease-in-out infinite;
}
@keyframes intro-pulse { 50% { transform: scale(1.15); opacity: .7; } }

.intro-ring { position: absolute; top: 50%; left: 50%; width: 140px; height: 140px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 50%; transform: translate(-50%, -50%) scale(0); opacity: 0; }
.intro-ring-a { animation: intro-ring-burst 2.2s .15s cubic-bezier(.16, 1, .3, 1) infinite; }
.intro-ring-b { border-color: rgba(255, 200, 87, .6); animation: intro-ring-burst 2.2s .55s cubic-bezier(.16, 1, .3, 1) infinite; }
@keyframes intro-ring-burst { 0% { transform: translate(-50%, -50%) scale(.3); opacity: .9; } 100% { transform: translate(-50%, -50%) scale(4.2); opacity: 0; } }

.intro-ghost-number {
  position: absolute; font: 800 clamp(220px, 40vw, 620px)/1 Outfit; color: rgba(0, 0, 0, .1); letter-spacing: -.08em;
  z-index: 0; opacity: 0; animation: intro-ghost-in 1.6s .1s var(--ease) forwards;
}
@keyframes intro-ghost-in { to { opacity: 1; } }

.intro-sparks { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.intro-spark {
  position: absolute; bottom: -10px; width: 4px; height: 4px; background: var(--gold); border-radius: 50%;
  opacity: 0; animation: intro-spark-rise linear infinite;
  box-shadow: 0 0 8px 1px rgba(255, 200, 87, .8);
}
@keyframes intro-spark-rise {
  0% { transform: translateY(0) scale(0); opacity: 0; }
  15% { opacity: 1; transform: translateY(-15vh) scale(1); }
  100% { transform: translateY(-105vh) scale(.4); opacity: 0; }
}

.intro-content { position: relative; z-index: 2; color: white; display: flex; flex-direction: column; align-items: center; }
.intro-crest {
  width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 0 0 6px rgba(255, 255, 255, .25), 0 20px 50px rgba(0, 0, 0, .35);
  margin-bottom: 22px; opacity: 0; transform: scale(0) rotate(-40deg);
  animation: intro-crest-in .7s .1s cubic-bezier(.34, 1.56, .64, 1) forwards;
}
@keyframes intro-crest-in { to { opacity: 1; transform: scale(1) rotate(0deg); } }

.intro-eyebrow {
  font: 500 12px 'DM Mono', monospace; letter-spacing: .4em; margin: 0 0 18px; opacity: 0;
  animation: intro-rise .7s .45s var(--ease) forwards;
}
.intro-title { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.intro-line {
  display: block; font: 800 clamp(52px, 11vw, 130px) Outfit; letter-spacing: .12em; line-height: 1;
  opacity: 0; filter: blur(14px); transform: scale(1.3); animation: intro-line-in .9s var(--ease) forwards;
}
.intro-line:nth-child(1) { animation-delay: .7s; }
.intro-line-accent { color: var(--gold); animation-delay: 1.15s !important; }
@keyframes intro-line-in { to { opacity: 1; filter: blur(0); transform: scale(1); letter-spacing: -.02em; } }
@keyframes intro-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.intro-skip {
  position: absolute; z-index: 3; bottom: 28px; right: 28px; background: none; border: 1px solid rgba(255, 255, 255, .4);
  color: white; font: 500 11px 'DM Mono', monospace; padding: 10px 16px; cursor: pointer; opacity: 0;
  animation: intro-rise .6s 1.6s var(--ease) forwards; transition: border-color .2s, background .2s;
}
.intro-skip:hover { border-color: white; background: rgba(255, 255, 255, .12); }

@media (max-width: 760px) {
  .intro-line { font-size: clamp(38px, 13vw, 70px); }
  .intro-crest { width: 72px; height: 72px; }
}

/* --- Reveal on scroll --- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* --- Header --- */
.topbar {
  height: 78px; padding: 0 clamp(22px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; background: rgba(245, 241, 236, .7);
  backdrop-filter: blur(0px); transition: height .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease), background .35s var(--ease);
}
.topbar.scrolled { height: 60px; backdrop-filter: blur(14px); box-shadow: 0 8px 30px rgba(0, 0, 0, .06); }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; font-size: 15px; }
.brand b { font-weight: 800; }
.crest {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; transform: rotate(-8deg); transition: transform .3s var(--ease);
}
.brand:hover .crest { transform: rotate(0deg) scale(1.06); }
nav { display: flex; gap: 30px; font-size: 13px; align-items: center; }
nav a { color: inherit; text-decoration: none; position: relative; }
nav a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--red); transition: width .25s var(--ease);
}
nav a:hover::after { width: 100%; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px; width: 32px; height: 32px; border: 0;
  background: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero --- */
.hero {
  min-height: 630px; padding: 80px clamp(22px, 9vw, 140px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  overflow: hidden; background: var(--red); color: white; position: relative; z-index: 2;
}
.hero::before {
  content: '1500'; font: 800 clamp(220px, 33vw, 530px)/.8 Outfit; position: absolute; right: -5vw; bottom: -20px;
  color: rgba(0, 0, 0, .11); letter-spacing: -.09em;
}
.hero-copy { position: relative; z-index: 1; max-width: 560px; }
.eyebrow { font: 500 11px 'DM Mono', monospace; letter-spacing: .15em; margin: 0 0 22px; }
.hero h1 { font-size: clamp(64px, 8vw, 116px); letter-spacing: -.075em; line-height: .84; margin: 0 0 30px; }
.hero h1 em, h2 em { font-style: normal; color: var(--gold); }
.lede { font-size: 18px; line-height: 1.45; max-width: 380px; margin-bottom: 35px; }
.primary-button {
  border: 0; background: var(--deep); color: white; display: inline-flex; align-items: center; justify-content: space-between;
  gap: 28px; font: 600 15px Outfit; padding: 16px 18px; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.primary-button:hover { transform: translateY(-3px); background: #000; box-shadow: 0 12px 24px rgba(0, 0, 0, .18); }
.primary-button:active { transform: translateY(-1px) scale(.98); }
.primary-button span { font-size: 22px; line-height: 12px; transition: transform .25s var(--ease); }
.primary-button:hover span { transform: translateX(4px); }
.hero .primary-button { background: white; color: var(--deep); }
.hero .primary-button:hover { background: var(--gold); }
.hero-stat { display: flex; gap: 10px; align-items: baseline; margin-top: 64px; font-family: 'DM Mono'; font-size: 11px; }
.hero-stat strong { font: 600 35px Outfit; }
.hero-art { position: relative; min-height: 390px; display: grid; place-items: center; perspective: 900px; }
.hero-art > * { transform: rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)); transition: transform .2s ease-out; }
.ticket {
  background: var(--paper); color: var(--deep); width: 240px; height: 300px; transform: rotate(8deg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 18px 18px 0 rgba(0, 0, 0, .16); position: relative; z-index: 1; animation: ticket-in .9s var(--ease);
}
.ticket::before, .ticket::after { content: ''; width: 28px; height: 28px; background: var(--red); border-radius: 50%; position: absolute; left: -14px; }
.ticket::before { top: 65px; }
.ticket::after { bottom: 65px; }
.ticket span { font: 500 14px 'DM Mono'; color: var(--red); border: 1px solid var(--red); padding: 8px; transform: rotate(-8deg); }
.ticket strong { font-size: 100px; line-height: 1; margin: 22px 0 2px; letter-spacing: -.1em; }
.ticket small { font: 11px 'DM Mono'; }
.burst {
  position: absolute; z-index: 2; top: 24px; right: 14%; background: var(--gold); color: var(--deep); width: 108px; height: 108px;
  border-radius: 50%; display: grid; place-items: center; text-align: center; transform: rotate(12deg); animation: float 4s ease-in-out infinite;
}
.burst span { font: 500 13px 'DM Mono'; }
.burst b { font: 800 38px Outfit; display: block; }
.burst small { font-size: 9px; }
.orbit { position: absolute; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; width: 460px; height: 220px; transform: rotate(-35deg); animation: spin-slow 22s linear infinite; }
.orbit-two { width: 400px; height: 180px; transform: rotate(35deg); border-color: rgba(255, 200, 87, .8); animation: spin-slow 28s linear infinite reverse; }

@keyframes float { 50% { transform: rotate(16deg) translateY(-12px); } }
@keyframes spin-slow { to { transform: rotate(325deg); } }
@keyframes ticket-in { from { opacity: 0; transform: rotate(8deg) translateY(40px) scale(.9); } to { opacity: 1; transform: rotate(8deg) translateY(0) scale(1); } }

/* --- Ticker --- */
.ticker { background: var(--deep); color: var(--gold); height: 44px; overflow: hidden; position: relative; z-index: 2; }
.ticker-track {
  display: flex; gap: 30px; white-space: nowrap; align-items: center; height: 100%; width: max-content;
  font: 500 10px 'DM Mono'; letter-spacing: .1em; animation: marquee 22s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Sections --- */
.numbers-section, .sponsors { padding: 100px clamp(22px, 9vw, 140px); position: relative; z-index: 2; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 40px; }
.section-heading.small { margin: 56px 0 24px; }
.section-heading.small h3 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.04em; margin: 6px 0 0; }
h2 { font-size: clamp(42px, 5vw, 70px); line-height: .9; letter-spacing: -.065em; margin: 0; }
h2 em { color: var(--red); }
.legend { display: flex; gap: 16px; font: 11px 'DM Mono'; color: #716d68; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.available { border: 1px solid #aaa; }
.selected { background: var(--red); }
.taken { background: #c9c2bc; }

/* --- Prizes --- */
.prizes { padding: 100px clamp(22px, 9vw, 140px); position: relative; z-index: 2; }

.winner-banner {
  background: var(--gold); color: var(--deep); text-align: center; font: 700 clamp(13px, 1.6vw, 16px) Outfit;
  letter-spacing: .02em; padding: 16px 20px; margin-bottom: 16px; position: relative; overflow: hidden;
}
.winner-banner em { font-style: normal; color: var(--red); }
.prize-footnote { text-align: center; font: 13px Outfit; color: #716d68; line-height: 1.6; max-width: 720px; margin: 28px auto 0; }
.prize-footnote b { color: var(--red); }

.prize-feature {
  position: relative; overflow: hidden; background: var(--deep); color: white; padding: 48px clamp(24px, 6vw, 60px);
  margin-bottom: 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
}
.prize-feature-shine {
  position: absolute; inset: -50% -20%; background: linear-gradient(100deg, transparent 40%, rgba(255, 200, 87, .18) 50%, transparent 60%);
  background-size: 250% 250%; animation: prize-shine 3.6s linear infinite;
}
@keyframes prize-shine { from { background-position: 200% 0; } to { background-position: -50% 0; } }
.prize-feature-tag {
  position: relative; font: 600 12px 'DM Mono', monospace; letter-spacing: .1em; background: rgba(255, 200, 87, .15);
  color: var(--gold); padding: 8px 16px; border: 1px solid rgba(255, 200, 87, .35);
}
.prize-feature-value { position: relative; font: 800 clamp(64px, 11vw, 128px) Outfit; letter-spacing: -.05em; color: var(--gold); line-height: 1; margin: 6px 0; }
.prize-feature-value span { animation: prize-pop 2.4s ease-in-out infinite; display: inline-block; }
@keyframes prize-pop { 50% { transform: scale(1.04); } }
.prize-feature-value small { font-size: .4em; color: white; }
.prize-feature-sub { position: relative; font: 12px 'DM Mono', monospace; color: #c9c4bf; letter-spacing: .02em; }

.prize-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.prize-card {
  position: relative; background: white; padding: 30px 20px 24px; border-top: 4px solid var(--prize-color, var(--gold));
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.prize-card:hover { transform: translateY(-10px); box-shadow: 0 20px 44px -8px color-mix(in srgb, var(--prize-color, var(--gold)) 55%, transparent); }
.prize-card:hover .prize-icon { transform: scale(1.15) rotate(-6deg); }
.prize-tag {
  position: absolute; top: 12px; right: 14px; font: 700 11px 'DM Mono', monospace; color: var(--prize-color, var(--gold));
  opacity: .55;
}
.prize-icon {
  font-size: 38px; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  background: color-mix(in srgb, var(--prize-color, var(--gold)) 14%, white); transition: transform .3s var(--ease);
}
.prize-card strong { font-size: 16px; letter-spacing: -.02em; line-height: 1.25; }
.prize-sponsor {
  font: 700 10px 'DM Mono', monospace; color: white; background: var(--prize-color, var(--red)); padding: 5px 12px;
  text-transform: uppercase; letter-spacing: .06em;
}

/* --- Mode tabs & random picker --- */
.mode-tabs { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.mode-tab {
  border: 1px solid var(--line); background: white; color: var(--ink); font: 600 13px Outfit; padding: 12px 20px;
  cursor: pointer; transition: all .2s var(--ease);
}
.mode-tab:hover { border-color: var(--red); }
.mode-tab.active { background: var(--deep); color: white; border-color: var(--deep); }
.mode-panel { background: white; padding: 32px; min-height: 300px; }
.mode-panel#mode-manual { padding: 0; background: none; }
.mode-hint { font-size: 14px; color: #716d68; line-height: 1.6; max-width: 440px; margin: 0 0 28px; }
.qty-row { margin-bottom: 26px; }
.qty-row .eyebrow { color: var(--red); }
.qty-picker { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.qty-btn {
  border: 1px solid var(--line); background: transparent; width: 56px; height: 56px; font: 600 16px 'DM Mono';
  cursor: pointer; transition: all .2s var(--ease);
}
.qty-btn:hover { border-color: var(--red); color: var(--red); }
.qty-btn.active { background: var(--red); color: white; border-color: var(--red); }
#qty-custom {
  width: 80px; height: 56px; border: 1px dashed var(--line); background: transparent; text-align: center;
  font: 600 14px Outfit; outline: 0;
}
#qty-custom:focus { border-color: var(--red); border-style: solid; }
.ghost-button {
  border: 1px solid var(--line); background: transparent; color: var(--ink); font: 600 13px Outfit; padding: 14px;
  cursor: pointer; margin-top: 12px; transition: all .2s var(--ease);
}
.ghost-button:hover { border-color: var(--red); color: var(--red); }

/* --- Number grid --- */
.pick-layout { display: grid; grid-template-columns: 1fr 290px; gap: 45px; }
.pick-main { min-width: 0; }
.number-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 7px; animation: grid-in .6s var(--ease); }
.number-grid.loading { min-height: 400px; background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%), #eae4dc; background-size: 200% 100%, 100% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0, 0 0; } }
@keyframes grid-in { from { opacity: 0; } to { opacity: 1; } }
.number {
  border: 1px solid var(--line); background: transparent; aspect-ratio: 1; border-radius: 0; cursor: pointer;
  font: 12px 'DM Mono'; color: var(--ink); transition: transform .15s var(--ease), border-color .15s, color .15s, background .15s;
}
.number:hover:not(:disabled) { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.number.selected { background: var(--red); color: white; border-color: var(--red); }
.number.pop { animation: pop .26s var(--ease); }
@keyframes pop { 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.number.taken { background: #ded8d2; color: #a9a29b; border-color: #ded8d2; cursor: not-allowed; text-decoration: line-through; }

.selection-card { background: white; padding: 26px; height: max-content; min-height: 300px; border-top: 4px solid var(--red); position: sticky; top: 90px; box-shadow: 0 20px 50px rgba(0, 0, 0, .05); }
.selection-card .eyebrow { color: var(--red); }
.empty-selection { text-align: center; padding: 24px 0; color: #9a938d; font: 11px 'DM Mono'; }
.empty-selection span { font: 40px Outfit; color: var(--red); }
.selected-chips { display: flex; gap: 5px; flex-wrap: wrap; min-height: 100px; align-content: start; }
.chip { background: var(--red); color: white; padding: 7px 9px; font: 11px 'DM Mono'; animation: chip-in .3s var(--ease); }
@keyframes chip-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
.total-row { border-top: 1px solid var(--line); padding-top: 14px; margin: 20px 0; display: flex; justify-content: space-between; font: 12px 'DM Mono'; }
.total-row strong { font: 700 22px Outfit; display: inline-block; }
.total-row strong.pulse { animation: pulse .35s var(--ease); }
@keyframes pulse { 40% { transform: scale(1.15); color: var(--red); } }
.full { width: 100%; }
.secure-note { font: 10px 'DM Mono'; line-height: 1.6; color: #9a938d; margin-top: 23px; }

/* --- How it works --- */
.how { background: var(--deep); color: white; padding: 100px clamp(22px, 9vw, 140px); display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; position: relative; z-index: 2; }
.how h2 { color: white; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.steps article { border-top: 1px solid #535154; padding-top: 20px; transition: transform .3s var(--ease); }
.steps article:hover { transform: translateY(-6px); }
.steps b { color: var(--gold); font: 11px 'DM Mono'; }
.steps h3 { font-size: 28px; margin: 28px 0 10px; }
.steps p { color: #aba6a2; line-height: 1.5; font-size: 14px; }
.section-note { font: 12px 'DM Mono'; line-height: 1.5; }

/* --- Sponsors --- */
.sponsor-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sponsor {
  background: white; min-height: 190px; padding: 25px; display: flex; flex-direction: column; justify-content: space-between;
  border-bottom: 4px solid var(--sponsor-color); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.sponsor:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 24px 40px rgba(0, 0, 0, .1); }
.sponsor-mark { font-size: 25px; font-weight: 800; letter-spacing: -.06em; }
.sponsor-detail { font: 11px 'DM Mono'; color: #777; }
.sponsor-num { font: 12px 'DM Mono'; color: var(--sponsor-color); }
.sponsor.has-logo { align-items: center; text-align: center; gap: 12px; }
.sponsor-logo-wrap { display: flex; align-items: center; justify-content: center; height: 84px; width: 100%; }
.sponsor-logo-wrap img { max-height: 84px; max-width: 100%; object-fit: contain; }

footer {
  padding: 28px clamp(22px, 9vw, 140px); border-top: 1px solid var(--line); display: flex; justify-content: space-between;
  align-items: center; font: 11px 'DM Mono'; color: #76706b; position: relative; z-index: 2; gap: 20px;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }

/* --- Dialogs --- */
dialog { border: 0; padding: 0; width: min(470px, calc(100% - 30px)); box-shadow: 0 20px 80px #0004; animation: dialog-in .3s var(--ease); }
dialog::backdrop { background: #171719aa; backdrop-filter: blur(2px); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.buyer-form { padding: 38px; position: relative; }
.buyer-form h2 { font-size: 42px; }
.buyer-form > p:not(.eyebrow) { color: #777; line-height: 1.5; margin-bottom: 28px; }
.buyer-form label, .admin-inline-form label { display: block; font: 11px 'DM Mono'; margin: 17px 0; }
.buyer-form input, .admin-inline-form input, .admin-login input {
  display: block; width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 12px 0; font: 16px Outfit; outline: 0; background: transparent;
  transition: border-color .2s;
}
.buyer-form input:focus, .admin-inline-form input:focus, .admin-login input:focus { border-color: var(--red); }
.form-message { font: 11px 'DM Mono'; color: var(--red); margin-top: 12px; min-height: 14px; }
.close { position: absolute; right: 18px; top: 12px; background: none; border: 0; font-size: 28px; cursor: pointer; line-height: 1; transition: transform .2s; }
.close:hover { transform: rotate(90deg); color: var(--red); }

/* --- Pix panel --- */
.pix-panel { padding: 38px; position: relative; text-align: center; }
.pix-state h2 { font-size: 34px; margin: 6px 0 14px; }
.pix-qr { margin: 10px auto 18px; width: 200px; height: 200px; display: grid; place-items: center; background: white; border: 1px solid var(--line); animation: chip-in .4s var(--ease); }
.pix-qr img { width: 100%; height: 100%; object-fit: contain; }
.pix-hint { font: 12px 'DM Mono'; color: #777; margin: 6px 0 14px; }
.pix-code-row { display: flex; gap: 8px; }
.pix-code-row input { flex: 1; border: 1px solid var(--line); background: var(--paper); padding: 12px; font: 11px 'DM Mono'; overflow: hidden; text-overflow: ellipsis; }
.pix-code-row button { padding: 12px 16px; gap: 0; }
.pix-code-row button.copied { background: #1c7a34; }
.pix-demo-row { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.pix-status { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; font: 11px 'DM Mono'; color: #9a938d; }
.pix-countdown { font: 11px 'DM Mono'; color: #9a938d; margin-top: 10px; }
.pix-countdown strong { color: var(--red); font-weight: 700; }
.spinner { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Meus números --- */
.nav-button { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 0; }
.my-numbers-panel { padding: 38px; position: relative; }
.my-numbers-panel h2 { font-size: 34px; margin: 6px 0 14px; }
.my-numbers-panel > div > p:not(.eyebrow) { color: #777; line-height: 1.5; margin-bottom: 24px; }
.my-numbers-winner-banner {
  background: var(--gold); color: var(--deep); text-align: center; font: 700 14px Outfit; padding: 14px; margin-bottom: 20px;
  animation: pop .5s var(--ease);
}
.chip-winner { background: var(--gold); color: var(--deep); font-weight: 700; }

/* --- WhatsApp support --- */
.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: white; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .25s var(--ease); animation: whatsapp-pulse 2.6s ease-in-out infinite;
}
.whatsapp-fab.fab-hidden { opacity: 0; transform: scale(.5); pointer-events: none; }
.whatsapp-fab svg { width: 30px; height: 30px; }
.whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 14px 36px rgba(0, 0, 0, .3); }
@keyframes whatsapp-pulse { 0%, 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, .25), 0 0 0 0 rgba(37, 211, 102, .5); } 50% { box-shadow: 0 10px 30px rgba(0, 0, 0, .25), 0 0 0 10px rgba(37, 211, 102, 0); } }
@media (max-width: 760px) { .whatsapp-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; } .whatsapp-fab svg { width: 26px; height: 26px; } }
.check-badge { width: 88px; height: 88px; margin: 0 auto 18px; }
.check-badge svg { width: 100%; height: 100%; }
.check-badge circle { fill: none; stroke: #1c7a34; stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw-circle .5s var(--ease) forwards; }
.check-badge path { fill: none; stroke: #1c7a34; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw-check .3s var(--ease) .5s forwards; }
@keyframes draw-circle { to { stroke-dashoffset: 0; } }
@keyframes draw-check { to { stroke-dashoffset: 0; } }

#confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: 0; transition: opacity .4s; }

/* --- Admin --- */
.admin-body { background: var(--paper); }
.admin-main { padding: 60px clamp(22px, 7vw, 100px) 100px; max-width: 1100px; margin: 0 auto; }
.admin-logout { border: 1px solid var(--red); background: none; color: var(--red); font: 600 12px Outfit; padding: 8px 14px; cursor: pointer; transition: .15s; }
.admin-logout:hover { background: var(--red); color: white; }
.admin-login { max-width: 420px; margin: 60px auto; text-align: left; }
.admin-login .eyebrow { color: var(--red); }
.admin-login h2 { margin-bottom: 14px; }
.admin-login > p:not(.eyebrow) { color: #716d68; line-height: 1.5; margin-bottom: 28px; }
.admin-login button { margin-top: 24px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.admin-stats > div { background: white; border-top: 4px solid var(--red); padding: 22px; transition: transform .25s var(--ease); }
.admin-stats > div:hover { transform: translateY(-4px); }
.admin-stats b { display: block; font-size: 34px; letter-spacing: -.04em; }
.admin-stats span { font: 11px 'DM Mono'; color: #9a938d; }
.admin-block { margin-top: 20px; }
.table-wrap { overflow-x: auto; background: white; }
.table-wrap-draw { border-top: 4px solid var(--gold); }
.admin-table-draw td:first-child { font: 700 15px 'DM Mono'; color: var(--red); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.admin-table th { text-align: left; font: 11px 'DM Mono'; color: #9a938d; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.admin-table tr { animation: row-in .35s var(--ease); }
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.admin-table tr:last-child td { border-bottom: 0; }
.status { font: 500 11px 'DM Mono'; padding: 4px 9px; text-transform: uppercase; letter-spacing: .04em; }
.status.pending { background: #fff3d6; color: #9a6b00; }
.status.paid { background: #dff5e1; color: #1c7a34; }
.status.cancelled { background: #f4d9d9; color: var(--red); }
.admin-sponsors-block { background: white; padding: 26px; border-top: 4px solid var(--gold); }
.admin-winner-block { background: white; padding: 26px; border-top: 4px solid var(--red); }
.winner-current { margin-bottom: 20px; }
.winner-card { display: flex; align-items: center; gap: 16px; background: var(--paper); padding: 16px 20px; border-left: 4px solid var(--gold); }
.winner-card strong { font: 800 28px 'DM Mono'; color: var(--red); }
.winner-card span { font: 12px 'DM Mono'; color: #716d68; }
.admin-winner-form { grid-template-columns: 1fr auto auto; }
.admin-inline-form { display: grid; grid-template-columns: 1.4fr 2fr 1fr 1.6fr auto; gap: 18px; align-items: end; }
.admin-inline-form input[type=color] { padding: 2px; height: 40px; border: 1px solid var(--line); cursor: pointer; }
.admin-inline-form button { white-space: nowrap; }
.admin-sponsor-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 24px; }
.admin-sponsor-card { display: flex; align-items: center; gap: 12px; background: var(--paper); border-left: 4px solid var(--sponsor-color); padding: 12px 14px; animation: row-in .35s var(--ease); }
.admin-sponsor-card img { width: 44px; height: 44px; object-fit: contain; background: white; border: 1px solid var(--line); }
.admin-sponsor-swatch { width: 44px; height: 44px; background: var(--sponsor-color); flex-shrink: 0; }
.admin-sponsor-card strong { display: block; font-size: 14px; }
.admin-sponsor-card span { font: 11px 'DM Mono'; color: #9a938d; }

@media (max-width: 1080px) {
  .prize-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  #main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 22px 18px; box-shadow: 0 20px 30px rgba(0, 0, 0, .1); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  #main-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  #main-nav a, #main-nav .nav-button { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; }
  #main-nav a:last-child, #main-nav .nav-button:last-child { border-bottom: 0; }
  .hero { grid-template-columns: 1fr; padding-top: 55px; min-height: 720px; }
  .hero-art { min-height: 270px; }
  .hero::before { font-size: 220px; bottom: 170px; }
  .section-heading { display: block; }
  .legend { margin-top: 25px; flex-wrap: wrap; }
  .pick-layout { grid-template-columns: 1fr; }
  .selection-card { position: static; }
  .number-grid { grid-template-columns: repeat(5, 1fr); gap: 9px; }
  .number { font-size: 13px; }
  .how { grid-template-columns: 1fr; gap: 50px; }
  .steps { grid-template-columns: 1fr; }
  .sponsor-list { grid-template-columns: 1fr 1fr; }
  .sponsor { min-height: 150px; padding: 16px; }
  .sponsor-mark { font-size: 18px; }
  .prize-grid { grid-template-columns: 1fr 1fr; }
  .mode-tabs { flex-direction: column; }
  .mode-panel { padding: 22px; }
  footer { display: block; }
  footer span { display: block; margin: 8px 0; }
  .footer-brand { margin-bottom: 8px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-inline-form { grid-template-columns: 1fr; }
}

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