:root {
  --bg: #0e1015;
  --bg-2: #181a1e;
  --bg-3: #212328;
  --line: #3e4044;
  --text: #ffffff;
  --muted: #a6a7a9;
  --gold: #fcd516;
  --gold-2: #e4c115;
  --ink: #0b0b0b;
  --danger: #ef4444;
  --ok: #3bc117;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  font-family: Inter, "Roboto Condensed", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(14, 16, 21, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.logo { height: 42px; width: auto; }
.grow { flex: 1; }
.saldo {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 12px; font-weight: 700; color: var(--gold);
}
.btn {
  border: 0; border-radius: 10px; padding: 10px 14px; font-weight: 800;
  background: var(--bg-3); color: var(--text);
}
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

.wrap { width: min(1100px, calc(100% - 24px)); margin: 0 auto; padding: 18px 0 48px; }
.hero { position: relative; border-radius: 18px; overflow: hidden; background: var(--bg-2); min-height: 140px; }
.hero img { width: 100%; height: min(280px, 42vw); object-fit: cover; }
.dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; }
.dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: rgba(255,255,255,.4); padding: 0; }
.dots button.on { background: var(--gold); width: 18px; }

.wins {
  position: relative;
  margin: 16px 0 4px;
  border-radius: 14px;
  overflow: hidden;
}
.wins-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px 10px;
  position: relative;
}
.wins-head::before {
  content: "";
  position: absolute;
  left: -70px;
  top: 50%;
  width: 200px;
  height: 200px;
  transform: translateY(-55%);
  background: radial-gradient(circle, rgba(34, 197, 94, .35) 0%, transparent 70%);
  pointer-events: none;
}
.live {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #16a34a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
  border-radius: 8px;
  padding: 7px 9px;
}
.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: live-pulse 1.4s ease-out infinite;
}
@keyframes live-pulse {
  70% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
}
.wins-head h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: .4px;
}
.wins-viewport { overflow: hidden; }
.wins-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: wins-marquee 32s linear infinite;
}
.wins-viewport:hover .wins-track { animation-play-state: paused; }
@keyframes wins-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.win {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 176px;
  background: #1a1c20;
  border: 1px solid #2c2e33;
  border-radius: 12px;
  padding: 8px 12px 8px 8px;
}
.win img {
  width: 52px;
  height: 40px;
  max-width: none;
  object-fit: contain;
  flex: none;
}
.win .who { display: block; color: #8b8d91; font-size: 11px; line-height: 1.15; }
.win .what { display: block; color: #fff; font-size: 13px; font-weight: 650; line-height: 1.2; white-space: nowrap; }
.win strong { display: block; color: #fde047; font-size: 13px; line-height: 1.2; }

h1 { font-size: 22px; margin: 22px 0 6px; }
.sub { color: var(--muted); margin: 0 0 16px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.section-head { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.section-head h1 { margin: 18px 0 12px; }
.card {
  background: #16181c; border: 1px solid #3a3a3a; border-radius: 16px;
  overflow: hidden; text-align: left; color: inherit; width: 100%;
  box-shadow: 0 0 0 1px rgba(252, 213, 22, .08);
}
.card img.cover { width: 100%; aspect-ratio: 16/8.2; object-fit: cover; background: #111; }
.card .meta { padding: 12px 14px 14px; }
.card strong { display: block; font-size: 18px; font-weight: 800; }
.cap { color: #fbc901; font-size: 12px; font-weight: 800; letter-spacing: .2px; margin: 6px 0 12px; text-transform: uppercase; }
.card-actions { display: flex; gap: 8px; align-items: center; }
.play {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; border: 0; border-radius: 10px; background: #ffdc19; color: #111;
  font-weight: 800; padding: 0 10px;
}
.play:hover { transform: scale(1.02); }
.play-price {
  display: inline-flex; align-items: center; gap: 3px;
  background: #111; color: #fff; border-radius: 7px; padding: 4px 7px; font-size: 12px;
}
.play-price em { color: #34d399; font-style: normal; font-weight: 800; }
.prizes-link {
  flex: 1; background: transparent; border: 0; color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .2px;
}
.prizes-link:hover { color: var(--gold); }
.price { color: var(--gold); font-weight: 800; margin-top: 4px; }
.back {
  background: transparent; border: 0; color: #fff; font-weight: 700; padding: 4px 0 12px;
}
.prizes-cover { width: 100%; max-height: 240px; object-fit: cover; border-radius: 16px; }
.prize-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 16px;
}
.prize-tile {
  background: #1a1c20; border: 1px solid #2c2e33; border-radius: 14px; padding: 12px; text-align: center;
}
.prize-tile img { width: 100%; height: 88px; object-fit: contain; margin: 0 auto 8px; }
.prize-tile span { display: block; color: #ddd; font-size: 13px; min-height: 34px; }
.prize-tile strong { color: #fde047; font-size: 14px; }

.mask {
  position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.72);
  display: flex; align-items: flex-end; justify-content: center;
}
.mask.center { align-items: center; }
.sheet {
  width: min(560px, 100%); max-height: min(92vh, 900px); overflow: auto;
  background: var(--bg-2); border-radius: 18px 18px 0 0; padding: 16px;
  box-shadow: var(--shadow);
}
.mask.center .sheet { border-radius: 18px; margin: 16px; }
.sheet h2 { margin: 0 0 8px; font-size: 20px; }
.sheet header { display: flex; align-items: center; gap: 8px; }
.sheet header .grow { flex: 1; }
.close { background: transparent; color: var(--text); border: 0; font-size: 22px; }

.play-cover { width: 100%; border-radius: 12px; margin: 10px 0; }
.board-wrap { position: relative; border-radius: 14px; overflow: hidden; background: #111; }
.board {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px;
}
.cell {
  background: var(--bg-3); border-radius: 10px; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cell img { width: 78%; height: 78%; object-fit: contain; }
.scratch {
  position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair;
}
.result {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(8, 8, 10, .78); text-align: center; padding: 16px;
}
.result h3 { margin: 0 0 6px; font-size: 28px; }
.result .win { color: var(--gold); }
.prizes { display: flex; gap: 8px; overflow: auto; padding: 8px 0 4px; }
.prize {
  flex: 0 0 92px; background: var(--bg-3); border-radius: 12px; padding: 8px; text-align: center;
}
.prize img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 6px; }
.prize span { display: block; font-size: 11px; color: var(--muted); min-height: 28px; }
.prize b { color: var(--gold); font-size: 12px; }

label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
input[type="text"], input[type="password"], input[type="tel"] {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px;
}
.err { color: #ffb4b4; background: rgba(239,68,68,.12); padding: 8px 10px; border-radius: 8px; }
.pix {
  word-break: break-all; background: var(--bg); border-radius: 10px; padding: 10px; font-size: 13px;
}
.hint { color: var(--muted); font-size: 13px; }
@media (min-width: 720px) {
  .mask { align-items: center; }
  .sheet { border-radius: 18px; }
}
