/* Radio Geek — Sorteio. Mesmos tokens visuais da home (roxo/neon), com visual mais limpo. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0710;
  --surface: #120d1e;
  --surface-2: #181129;
  --purple: #9b30ff;
  --purple-lite: #c77dff;
  --pink: #e040fb;
  --text: #f0e6ff;
  --muted: #a99bc2;
  --line: rgba(155, 48, 255, .28);
  --ok: #4ade80;
  --err: #ff6b81;
  --radius: 16px;
  --display: 'Orbitron', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  min-height: 100vh;
  overflow-x: hidden;
}
.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(106, 13, 173, .35), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 85%, rgba(155, 48, 255, .15), transparent 60%);
}
.wrap, .foot { position: relative; z-index: 1; }

.wrap { max-width: 980px; margin: 0 auto; padding: calc(var(--nav-h) + 24px) 16px 48px; display: grid; gap: 24px; }

/* ── Hero ── */
.hero { display: grid; gap: 28px; align-items: center; }
.prize {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(155, 48, 255, .18);
}
.prize img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: #0f0b18; }
.prize figcaption { padding: 14px 18px 16px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
.prize figcaption strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: 2px; }
.sponsor { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .8rem; }
.sponsor a { display: inline-flex; padding: 3px 8px; border-radius: 8px; background: #fff; line-height: 0; }
.sponsor img { display: block; width: 120px; height: auto; aspect-ratio: auto; object-fit: contain; background: none; }

.eyebrow { font-family: var(--display); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--purple-lite); margin-bottom: 10px; }
h1 { font-family: var(--display); font-weight: 900; line-height: 1.1; font-size: clamp(1.8rem, 6vw, 2.8rem); margin-bottom: 14px; }
h1 span { background: linear-gradient(135deg, var(--purple), var(--purple-lite) 45%, var(--pink)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lead { color: var(--muted); margin-bottom: 16px; }
.lead strong { color: var(--text); font-weight: 600; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.facts li { font-size: .8rem; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(155, 48, 255, .1); color: var(--purple-lite); }

/* ── Cards ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
.card h2 { font-family: var(--display); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--purple-lite); margin-bottom: 14px; }
.rules { padding-left: 1.2em; display: grid; gap: 8px; color: var(--muted); }
.rules strong { color: var(--text); font-weight: 600; }

/* ── Steps ── */
.step { padding: 4px 0 20px; }
.step + .step, .step + form { border-top: 1px solid var(--line); padding-top: 20px; }
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.step-head h3 { font-size: 1.05rem; font-weight: 600; }
.step-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--pink)); font: 700 .85rem var(--display); color: #fff; flex: none; }
.muted { color: var(--muted); margin-bottom: 14px; }
.muted strong { color: var(--text); }

.btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-height: 48px; padding: 10px 22px; border-radius: 12px; border: 1px solid transparent; font: 600 1rem var(--body); text-decoration: none; cursor: pointer; transition: filter .2s, transform .2s, opacity .2s; }
.btn-primary { background: linear-gradient(135deg, var(--purple), var(--pink)); color: #fff; }
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--purple-lite); background: transparent; flex-direction: row; }
.btn-ghost:hover { background: rgba(155, 48, 255, .12); }
.btn-sub { font-size: .75rem; font-weight: 500; opacity: .85; }
.btn-block { width: 100%; margin-top: 8px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn:focus-visible, input:focus-visible { outline: 2px solid var(--purple-lite); outline-offset: 2px; }

/* ── Contagem ── */
.countdown { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.count-num { font: 900 2.4rem/1 var(--display); min-width: 2ch; text-align: center; color: var(--pink); }
.countdown.is-done .count-num { color: var(--ok); }
.countdown.is-done { border-color: rgba(74, 222, 128, .4); }
.countdown[hidden] { display: none; }

/* ── Form ── */
.is-locked { opacity: .5; }
.is-locked .lock-msg { display: block; }
.lock-msg { display: none; color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
fieldset { border: 0; display: grid; gap: 16px; }
fieldset:disabled { pointer-events: none; }
.field { display: grid; gap: 6px; }
label { font-weight: 600; font-size: .92rem; }
small { color: var(--muted); font-size: .8rem; }
input[type=text], input[type=file] { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; }
input[type=file] { padding: 9px 10px; }
input[type=file]::file-selector-button { margin-right: 12px; padding: 6px 12px; border: 0; border-radius: 8px; background: rgba(155, 48, 255, .25); color: var(--text); cursor: pointer; font: inherit; font-size: .85rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--purple); flex: none; }
.check strong { color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


.notice { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: .92rem; border: 1px solid var(--line); }
.notice[hidden], .success[hidden], [hidden] { display: none !important; }
.notice-error { border-color: rgba(255, 107, 129, .5); background: rgba(255, 107, 129, .08); color: #ffc2cc; }
.notice-info { background: rgba(155, 48, 255, .1); }
.success { text-align: center; padding: 20px 8px; }
.success h3 { color: var(--ok); font-family: var(--display); margin-bottom: 8px; }
.success p { color: var(--muted); }

/* ── Launch Countdown (antes de 03/12) ── */
.launch-countdown {
  text-align: center;
  padding: 8px 0 16px;
}
.launch-tag {
  font-family: var(--display);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 8px;
}
.launch-title {
  font-family: var(--display);
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.launch-desc {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 24px;
  font-size: .95rem;
}
.launch-desc strong {
  color: var(--purple-lite);
}

.timer-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.timer-unit {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 12px;
  min-width: 70px;
  flex: 1 1 70px;
  max-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
}
.timer-val {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  line-height: 1;
  color: var(--purple-lite);
}
.timer-lbl {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 600;
}

.launch-footer {
  display: flex;
  justify-content: center;
}

/* ── Closed state (após 13/12) ── */
.closed-notice {
  text-align: center;
  padding: 24px 12px;
}
.closed-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.closed-notice h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 8px;
}
.closed-notice p {
  color: var(--muted);
  margin-bottom: 8px;
}
.closed-notice .btn {
  margin-top: 16px;
}

/* ── Active Badge ── */
.active-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 222, 128, .12);
  border: 1px solid rgba(74, 222, 128, .3);
  color: var(--ok);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(0.85); }
}

.foot { text-align: center; color: var(--muted); font-size: .78rem; padding: 20px 16px 32px; border-top: 1px solid var(--line); }

@media (min-width: 820px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 40px; }
  .card { padding: 28px 32px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
