/* ============================================================
   JJ RIFAS — página de sorteio (campanha)
   Mesma identidade da bridge page principal.
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --void: #08080A;
  --steel: #15151B;
  --line: #2A2A33;
  --gold: #E8A317;
  --wa: #25D366;
  --wa-hi: #2FE574;
  --chrome: #EDEEF0;
  --ash: #8A8A93;
}

html, body { height: 100%; }

body {
  background:
    radial-gradient(130% 70% at 50% 6%, rgba(232, 163, 23, 0.12), transparent 55%),
    var(--void);
  color: var(--chrome);
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 22px calc(52px + env(safe-area-inset-bottom));
  text-align: center;
}

/* ---------- Marca ---------- */

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 18px;
}

.brand img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
}

.brand .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232, 163, 23, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(232, 163, 23, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 163, 23, 0); }
}

/* ---------- Tag "sorteio grátis" ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  background: rgba(232, 163, 23, 0.08);
  color: var(--gold);
  border: 1px solid rgba(232, 163, 23, 0.45);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 14px;
  animation: rise 0.6s both;
}

/* ---------- Imagem da skin ---------- */

/* PNG recortado (fundo transparente): a faca flutua sobre a página */
.skin-wrap {
  position: relative;
  width: min(90vw, 440px);
  margin: 4px 0 2px;
  animation: rise 0.7s 0.05s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.skin-wrap img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.65));
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Título e valor ---------- */

h1 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 8.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--chrome);
  margin: 6px 0 8px;
  text-wrap: balance;
}

h1 em { color: var(--gold); font-style: normal; }

.value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 4px;
}

.value b { color: var(--gold); }

/* ---------- Contador de vagas ---------- */

.vagas {
  width: 100%;
  max-width: 400px;
  margin-bottom: 22px;
  animation: rise 0.7s 0.1s both;
}

.vagas-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 8px;
}

.vagas-top b {
  color: var(--gold);
  font-weight: 600;
  font-size: 15px;
}

.bar {
  height: 8px;
  border-radius: 100px;
  background: var(--steel);
  border: 1px solid var(--line);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #F4C04E);
  border-radius: 100px;
  transition: width 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  width: 0;
}

/* ---------- CTA ---------- */

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  padding: 22px;
  border: none;
  border-radius: 14px;
  background: var(--wa);
  color: #05230F;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(16px, 4.4vw, 19px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.32);
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  animation: rise 0.7s 0.16s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.cta:hover {
  background: var(--wa-hi);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.42);
}

.cta:active { transform: scale(0.98); }

.cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.cta svg { width: 23px; height: 23px; flex: none; }

.cta.lotado {
  background: var(--steel);
  color: var(--ash);
  box-shadow: none;
  cursor: default;
  border: 1px solid var(--line);
  pointer-events: none;
}

.sub {
  margin-top: 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ash);
  animation: rise 0.7s 0.22s both;
}

/* ---------- Rodapé ---------- */

footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: #3C3C44;
}

/* ---------- Acessibilidade / movimento ---------- */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
