/* =====================================================================
   Giro Premiado — sistema visual
   Fontes: Sora (títulos/números) + Inter (texto), hospedadas em /fonts
   ===================================================================== */
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url('/fonts/sora-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url('/fonts/sora-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #07070b;
  --bg-2: #0c0c13;
  --surface: #111119;
  --surface-2: #171722;
  --surface-3: #1f1f2c;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --text: #f4f4f7;
  --muted: #9a9ab0;
  --faint: #66667c;
  --gold: #f2c46d;
  --gold-hi: #ffe6a6;
  --gold-lo: #c98a1f;
  --gold-grad: linear-gradient(135deg, #ffe7a8 0%, #f2c46d 45%, #d49a2e 100%);
  --violet: #8b6cff;
  --ok: #34d39a;
  --bad: #ff5d6c;
  --warn: #f5b544;
  --wa: #25d366;
  --tg: #2aa3e0;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Sora', 'Inter', system-ui, sans-serif;
  /* compatibilidade com nomes antigos usados no painel admin */
  --card: var(--surface);
  --bg2: var(--bg-2);
  --gold2: var(--gold-lo);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--bg);
  font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
}
body:not(.play) { background: radial-gradient(900px 500px at 50% -200px, rgba(242,196,109,.08), transparent 70%), var(--bg); }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.02em; margin: 0; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
b, strong { font-weight: 650; }
.hidden { display: none !important; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hint { font-size: 13px; color: var(--muted); }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
::selection { background: rgba(242,196,109,.35); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ícones */
.i { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.coin { width: 20px; height: 20px; }

/* fundo */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1000px 600px at 70% -10%, rgba(242,196,109,.10), transparent 60%),
    radial-gradient(800px 600px at 0% 100%, rgba(139,108,255,.10), transparent 60%),
    var(--bg); }
.backdrop::after { content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(900px 600px at 50% 20%, #000 20%, transparent 75%); mask-image: radial-gradient(900px 600px at 50% 20%, #000 20%, transparent 75%); }

/* ================= cabeçalho ================= */
header.top { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 11, .72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.top-inner { max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
header.top:not(:has(.top-inner)) { max-width: none; padding: 12px max(24px, calc((100% - 1192px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 32px; height: 32px; }
.brand-name span { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); transition: color .15s, border-color .15s, background .15s; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }
.balance { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 5px 0 12px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(242,196,109,.10), rgba(242,196,109,.03)); border: 1px solid rgba(242,196,109,.28); }
.balance b { font-family: var(--display); font-size: 16px; font-weight: 700; min-width: 14px; font-variant-numeric: tabular-nums; padding-right: 7px; }
.balance-plus { display: grid; place-items: center; width: 30px; height: 30px; margin-left: -7px; border-radius: 9px; border: 0; cursor: pointer;
  background: var(--gold-grad); color: #2a1900; box-shadow: 0 4px 14px -4px rgba(242,196,109,.7); transition: transform .15s; }
.balance-plus:hover { transform: scale(1.07); }
.balance-plus .i { width: 16px; height: 16px; }

/* letreiro de ganhadores */
.ticker { display: flex; align-items: center; border-bottom: 1px solid var(--line); background: rgba(12,12,19,.8); height: 38px; font-size: 13px; }
.live { flex: none; display: flex; align-items: center; gap: 7px; height: 100%; padding: 0 14px 0 20px; font: 700 11px/1 var(--display); letter-spacing: .12em; color: var(--text);
  border-right: 1px solid var(--line); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 0 rgba(255,93,108,.6); animation: livePulse 1.6s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px rgba(255,93,108,0); } 100% { box-shadow: 0 0 0 0 rgba(255,93,108,0); } }
.ticker-mask { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: inline-flex; white-space: nowrap; animation: marquee 40s linear infinite; }
.tick-item { display: inline-flex; align-items: center; gap: 6px; padding: 0 22px; color: var(--muted); }
.tick-item b { color: var(--text); font-weight: 600; }
.tick-item em { font-style: normal; font-weight: 600; color: var(--gold); }
.tick-item small { color: var(--faint); }
.tick-item .i { width: 14px; height: 14px; color: var(--gold); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ================= formulários e botões ================= */
label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin: 14px 0 6px; }
input, select, textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2);
  color: var(--text); font: 500 15px/1.3 var(--font); transition: border-color .15s, box-shadow .15s, background .15s; }
input::placeholder { color: var(--faint); }
input:hover, select:hover { border-color: rgba(255,255,255,.2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(242,196,109,.14); background: #0e0e16; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--gold); flex: none; }
input[type=color] { padding: 3px; height: 46px; cursor: pointer; }
.field label { margin-top: 0; }
.form .field + .field, .form .field + .hp + .field { margin-top: 14px; }
.form .btn.block { margin-top: 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: var(--radius-sm); cursor: pointer;
  font: 600 14px/1.2 var(--font); color: var(--text); background: var(--surface-3); border: 1px solid var(--line-2); text-decoration: none;
  transition: transform .12s, background .15s, border-color .15s, box-shadow .15s, filter .15s; white-space: nowrap; }
.btn:hover { background: #262635; border-color: rgba(255,255,255,.2); color: var(--text); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary { background: var(--gold-grad); color: #2a1900; border-color: transparent; font-weight: 700;
  box-shadow: 0 8px 24px -10px rgba(242,196,109,.75), inset 0 1px 0 rgba(255,255,255,.5); }
.btn.primary:hover { filter: brightness(1.06); color: #2a1900; }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--surface-2); }
.btn.danger { background: rgba(255,93,108,.12); border-color: rgba(255,93,108,.35); color: #ff8c97; }
.btn.danger:hover { background: rgba(255,93,108,.2); }
.btn.whatsapp { background: var(--wa); border-color: transparent; color: #04210f; font-weight: 700; }
.btn.whatsapp:hover { filter: brightness(1.06); color: #04210f; }
.btn.telegram { background: var(--tg); border-color: transparent; color: #fff; font-weight: 700; }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn.lg { padding: 15px 20px; font-size: 16px; }
.btn.block { display: flex; width: 100%; margin-top: 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.msg { margin-top: 12px; font-size: 14px; min-height: 18px; }
.msg.err { color: var(--bad); }
.msg.ok { color: var(--ok); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* cartões */
.card { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)), var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h3, .card h3 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.card-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--gold);
  background: rgba(242,196,109,.1); border: 1px solid rgba(242,196,109,.2); }
.card-ic .i { width: 16px; height: 16px; }
.card-label { font: 600 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.tabs { display: flex; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin-bottom: 20px; }
.tabs button { flex: 1; background: none; border: 0; color: var(--muted); padding: 10px; border-radius: 10px; font: 600 14px var(--font); cursor: pointer; transition: color .15s, background .15s; }
.tabs button:hover { color: var(--text); }
.tabs button.active { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 4px 12px -6px rgba(0,0,0,.6); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font: 600 12px/1 var(--font);
  color: var(--gold); background: rgba(242,196,109,.08); border: 1px solid rgba(242,196,109,.22); }
.eyebrow .i { width: 14px; height: 14px; }

/* ================= entrada (hero) ================= */
.hero { max-width: 1240px; margin: 0 auto; padding: 56px 24px 48px; display: grid; gap: 28px 56px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'copy wheel' 'card wheel' 'feat feat'; align-items: start; }
.hero-copy { grid-area: copy; }
.hero-wheel { grid-area: wheel; position: relative; display: flex; justify-content: center; align-items: center; align-self: center; }
.hero-wheel .wheel-glow { inset: 6%; }
.auth-card { grid-area: card; padding: 28px; width: 100%; max-width: 460px; }
.features { grid-area: feat; }
.hero-title { margin-top: 18px; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em; }
.hero-sub { margin: 18px 0 0; max-width: 520px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.features { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.features li { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.features b { display: block; font-size: 14px; font-weight: 600; }
.features small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.feat-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex: none; color: var(--gold); background: rgba(242,196,109,.1); }
.feat-ic .i { width: 16px; height: 16px; }
.mini-wheel { position: relative; z-index: 1; width: min(540px, 100%); aspect-ratio: 1; }
.mini-wheel canvas { width: 100%; height: 100%; display: block; }
.ref-banner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 16px; border-radius: 12px; font-size: 14px;
  background: linear-gradient(90deg, rgba(139,108,255,.18), rgba(242,196,109,.12)); border: 1px solid rgba(139,108,255,.3); }
.ref-banner .i { color: var(--gold); }

/* ================= jogo ================= */
.game { max-width: 1240px; margin: 0 auto; padding: 32px 24px 48px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.stage { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.stage-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.stage-title { font-size: clamp(24px, 3.2vw, 36px); font-weight: 700; line-height: 1.15; letter-spacing: -.03em; max-width: 560px; }

.wheel-wrap { position: relative; width: min(560px, 90vw); aspect-ratio: 1; margin-top: 8px; }
.wheel-wrap canvas { position: relative; z-index: 1; width: 100%; height: 100%; display: block; border-radius: 50%;
  box-shadow: 0 30px 60px rgba(0,0,0,.65); }
.wheel-glow { position: absolute; inset: 8%; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(242,196,109,.34) 20%, rgba(139,108,255,.14) 52%, rgba(139,108,255,.05) 64%, transparent 74%);
  transform: scale(1.18); opacity: .7; transition: opacity .6s, transform .6s; will-change: transform, opacity; }
.wheel-wrap.ready .wheel-glow { animation: breathe 3.2s ease-in-out infinite; }
.is-spinning .wheel-glow { opacity: 1; transform: scale(1.3); }
@keyframes breathe { 50% { opacity: 1; transform: scale(1.24); } }

.pointer { position: absolute; top: -4.2%; left: 50%; z-index: 3; width: 11%; transform: translateX(-50%); transform-origin: 50% 32%;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.55)); overflow: visible; }
.pointer.kick { animation: kick .16s ease-out; }
@keyframes kick { 40% { transform: translateX(-50%) rotate(-14deg); } 100% { transform: translateX(-50%) rotate(0); } }

.hub { position: absolute; inset: 50% auto auto 50%; z-index: 2; transform: translate(-50%, -50%); width: 21%; aspect-ratio: 1; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, #2b2b3a, #0b0b12 70%);
  box-shadow: 0 0 0 4px #0b0b12, 0 0 0 7px var(--gold), 0 0 0 9px rgba(0,0,0,.6), 0 12px 30px rgba(0,0,0,.7), inset 0 2px 1px rgba(255,255,255,.12); }
.hub span { font: 800 clamp(12px, 2.3vw, 18px)/1 var(--display); letter-spacing: .08em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hub:disabled { cursor: default; }
.hub:disabled span { opacity: .55; }
.hub::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 7px var(--gold-hi), 0 0 34px 6px rgba(242,196,109,.5); }
.wheel-wrap.ready .hub::after { animation: hubPulse 2s ease-in-out infinite; will-change: opacity; }
@keyframes hubPulse { 50% { opacity: 1; } }

.spin-btn { position: relative; overflow: hidden; display: inline-flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer;
  min-width: 300px; padding: 17px 48px; border-radius: 999px; border: 0; color: #2a1900; background: var(--gold-grad);
  font: 800 20px/1 var(--display); letter-spacing: .06em;
  box-shadow: 0 1px 0 rgba(255,255,255,.55) inset, 0 -3px 0 rgba(0,0,0,.18) inset, 0 18px 40px -14px rgba(242,196,109,.75); transition: transform .12s, box-shadow .2s, filter .2s; }
.spin-btn small { font: 600 12px/1 var(--font); letter-spacing: 0; opacity: .7; }
.spin-btn:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.spin-btn:active:not(:disabled) { transform: translateY(1px); }
.spin-shine { position: absolute; inset: 0; pointer-events: none; }
.spin-btn.ready .spin-shine::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; transform: translateX(-140%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: sweep 3s ease-in-out infinite; will-change: transform; }
@keyframes sweep { 0%, 60% { transform: translateX(-140%) skewX(-20deg); } 100% { transform: translateX(440%) skewX(-20deg); } }
.spin-btn:disabled { background: var(--surface-3); color: var(--faint); box-shadow: none; cursor: not-allowed; }
.spin-msg { min-height: 20px; font-size: 14px; color: var(--muted); text-align: center; }

/* coluna lateral */
.side { display: flex; flex-direction: column; gap: 16px; }
.balance-card { overflow: hidden; background: radial-gradient(400px 200px at 100% 0%, rgba(242,196,109,.14), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--surface);
  border-color: rgba(242,196,109,.2); }
.balance-big { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; }
.balance-big .coin-lg { width: 40px; height: 40px; filter: drop-shadow(0 6px 14px rgba(242,196,109,.35)); }
.balance-big b { font: 700 48px/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.balance-big span { align-self: flex-end; margin-bottom: 6px; color: var(--muted); font-weight: 500; }
.balance-card p { margin: 0; }
.balance-card .btn { margin-top: 16px; }
.notice-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-color: rgba(245,181,68,.3); background: rgba(245,181,68,.07); box-shadow: none; }
.notice-card .i { color: var(--warn); margin-top: 2px; }
.notice-card p { margin: 0; font-size: 14px; color: #f1dfb8; }
.notice { padding: 12px 14px; border-radius: 12px; font-size: 14px; background: rgba(245,181,68,.08); border: 1px solid rgba(245,181,68,.3); color: #f1dfb8; }

.prize-list { display: flex; flex-direction: column; gap: 8px; }
.prize-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--line); font-weight: 500; font-size: 14px; }
.prize-row .swatch { width: 10px; height: 28px; border-radius: 4px; background: var(--c); box-shadow: 0 0 12px -2px var(--c); flex: none; }
.prize-row .i { margin-left: auto; color: var(--faint); width: 16px; height: 16px; }

.list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; padding-bottom: 0; }
.list li:first-child { padding-top: 0; }
.list .row-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.list .row-main > div { min-width: 0; }
.list .title { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list small { display: block; color: var(--faint); font-size: 12px; }
.list .empty { color: var(--muted); justify-content: center; padding: 8px 0; }
.dot-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; flex: none; }
.dot-ic .i { width: 16px; height: 16px; }
.dot-ic.win { color: var(--gold); background: rgba(242,196,109,.12); }
.dot-ic.lose { color: var(--faint); background: rgba(255,255,255,.04); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.tag.ok { background: rgba(52,211,154,.12); color: var(--ok); }
.tag.wait { background: rgba(245,181,68,.12); color: var(--warn); }
.tag.bad { background: rgba(255,93,108,.12); color: #ff8c97; }
.tag.info { background: rgba(139,108,255,.14); color: #b7a6ff; }
.tag.muted { background: rgba(255,255,255,.05); color: var(--muted); }

.disclosure { margin-top: 14px; font-size: 14px; }
.disclosure summary { cursor: pointer; color: var(--muted); font-weight: 500; list-style: none; }
.disclosure summary:hover { color: var(--text); }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 2px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.disclosure[open] summary::before { transform: rotate(45deg); }
.disclosure .list { margin-top: 12px; }

/* afiliados */
.aff-card { background: radial-gradient(420px 220px at 0% 0%, rgba(139,108,255,.14), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--surface); }
.aff-card > p { margin: 0 0 14px; }
.copy-field { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); }
.copy-field > .i { color: var(--faint); width: 16px; height: 16px; }
.copy-field input { border: 0; background: transparent; padding: 8px 0; font-size: 13px; min-width: 0; color: var(--muted); }
.copy-field input:focus { box-shadow: none; background: transparent; }
.bar-head { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 10px; font-size: 14px; color: var(--muted); }
.bar-head b { font-family: var(--display); color: var(--text); font-size: 18px; }
.gift-bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-bottom: 22px; }
.gift-step { position: relative; height: 30px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--faint); }
.gift-step .i { width: 14px; height: 14px; }
.gift-step.has { color: var(--gold); border-color: rgba(242,196,109,.3); }
.gift-step.done { background: var(--gold-grad); border-color: transparent; color: #2a1900; box-shadow: 0 4px 14px -6px rgba(242,196,109,.8); }
.gift-step.next { border-color: var(--gold); animation: stepPulse 1.4s ease-in-out infinite; }
@keyframes stepPulse { 50% { box-shadow: 0 0 0 3px rgba(242,196,109,.25); } }
.gift-step small { position: absolute; bottom: -17px; font: 700 10px var(--display); color: var(--gold); white-space: nowrap; }
.gift-step.done small { color: var(--faint); }
.levels { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.levels th { font: 600 11px var(--font); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; text-align: left; padding: 0 6px 8px; }
.levels td { padding: 8px 6px; border-top: 1px solid var(--line); }
.levels td:nth-child(2) { color: var(--gold); font-weight: 700; font-family: var(--display); }
.aff-earned { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.aff-earned b { color: var(--gold); font-family: var(--display); }

/* rodapé */
.foot { max-width: 1240px; margin: 0 auto; padding: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  color: var(--faint); font-size: 12px; border-top: 1px solid var(--line); }

/* aviso flutuante */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 10px;
  max-width: calc(100% - 32px); padding: 14px 18px; border-radius: 14px; font-weight: 600; font-size: 14px;
  background: rgba(23,23,34,.95); border: 1px solid rgba(242,196,109,.35); color: var(--text); box-shadow: 0 20px 50px -10px rgba(0,0,0,.8);
  backdrop-filter: blur(10px); animation: rise .35s cubic-bezier(.2,1.2,.4,1); }
.toast .i { color: var(--gold); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ================= janelas ================= */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px;
  background: rgba(3,3,6,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px;
  border-radius: 24px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -20px rgba(0,0,0,.9);
  animation: pop .35s cubic-bezier(.2,1.2,.4,1); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.sheet-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.sheet-close:hover { color: var(--text); }
.sheet-head { text-align: center; margin-bottom: 22px; }
.sheet-head h2 { font-size: 24px; font-weight: 700; }
.sheet-head p { margin: 8px auto 0; max-width: 420px; font-size: 14px; }
.sheet-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px; border-radius: 14px; color: var(--gold);
  background: rgba(242,196,109,.1); border: 1px solid rgba(242,196,109,.25); }
.sheet-ic .i { width: 22px; height: 22px; }

/* loja */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 12px; }
.pkg { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px 12px 16px; border-radius: 16px; cursor: pointer;
  border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)), var(--surface-2);
  color: var(--text); font: inherit; transition: transform .15s, border-color .15s, box-shadow .15s; }
.pkg:hover { transform: translateY(-3px); border-color: rgba(242,196,109,.5); box-shadow: 0 16px 30px -16px rgba(242,196,109,.45); }
.pkg:disabled { opacity: .6; cursor: wait; }
.pkg.hot { border-color: var(--gold); background: radial-gradient(240px 140px at 50% 0%, rgba(242,196,109,.2), transparent 70%), var(--surface-2);
  box-shadow: 0 0 0 1px rgba(242,196,109,.4), 0 18px 40px -18px rgba(242,196,109,.6); }
.pkg-badge { position: absolute; top: -11px; padding: 4px 10px; border-radius: 999px; font: 700 10px/1.2 var(--display); letter-spacing: .08em; white-space: nowrap;
  background: var(--gold-grad); color: #2a1900; }
.pkg-badge.soft { background: var(--violet); color: #fff; }
.pkg .coin-lg { width: 34px; height: 34px; margin-bottom: 4px; }
.pkg-tokens { font: 700 34px/1 var(--display); letter-spacing: -.03em; }
.pkg-unit { font-size: 12px; color: var(--muted); }
.pkg-price { margin-top: 10px; font: 700 19px/1 var(--display); color: var(--gold); }
.pkg-old { color: var(--faint); text-decoration: line-through; font-size: 12px; }
.pkg-each { color: var(--faint); font-size: 11px; }
.pkg-save { margin-top: 6px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(52,211,154,.14); color: var(--ok); }
.custom-buy { margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.custom-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.custom-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.custom-row input { flex: 1; min-width: 70px; max-width: 120px; text-align: center; font: 700 18px var(--display); padding: 10px 6px; -moz-appearance: textfield; }
.custom-row input::-webkit-outer-spin-button, .custom-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 44px; height: 46px; flex: none; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-size: 20px; cursor: pointer; }
.qty-btn:hover { border-color: rgba(255,255,255,.22); }
.custom-row .btn { flex: 1; padding: 13px 16px; }
.custom-buy p { margin: 8px 0 0; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0; font-size: 12px; color: var(--faint); }
.secure-note .i { width: 14px; height: 14px; color: var(--ok); }
.pay-amount { margin-top: 8px; color: var(--muted); }
.pay-amount b { font: 700 34px/1 var(--display); color: var(--gold); letter-spacing: -.03em; }
.qr-box { background: #fff; border-radius: 16px; padding: 12px; width: 232px; margin: 4px auto 16px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.8); }
.qr-box img { width: 100%; display: block; }
.steps { padding-left: 20px; margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.steps b { color: var(--text); }
.pay-status { min-height: 22px; margin: 14px 0 4px; font-size: 14px; color: var(--text); text-align: center; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--gold); border-right-color: transparent; border-radius: 50%; vertical-align: -2px; margin-right: 6px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.done-ic { display: inline-grid; place-items: center; width: 72px; height: 72px; margin: 8px 0 14px; border-radius: 50%; color: #052b1c;
  background: linear-gradient(135deg, #7df2c4, var(--ok)); box-shadow: 0 0 0 8px rgba(52,211,154,.12), 0 16px 40px -10px rgba(52,211,154,.6); }
.done-ic .i { width: 34px; height: 34px; }

/* resultado */
.result-card { position: relative; width: 100%; max-width: 440px; border-radius: 26px; overflow: hidden; padding: 1.5px;
  background: linear-gradient(160deg, rgba(255,255,255,.18), rgba(255,255,255,.04)); animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
.result-card.win { background: linear-gradient(160deg, #fff1c9, #c98a1f 40%, #6b4410 70%, #e8c06a); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 90px -30px rgba(242,196,109,.6); }
.result-card .rays { position: absolute; inset: -50%; opacity: 0; pointer-events: none; }
.result-card.win .rays { opacity: 1; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,244,214,.9) 50%, transparent 65%); background-size: 250% 100%;
  animation: cardSheen 3.2s ease-in-out .3s infinite; }
@keyframes cardSheen { 0% { background-position: 120% 0; } 45%, 100% { background-position: -20% 0; } }
.result-inner { position: relative; padding: 34px 28px 24px; border-radius: 25px; text-align: center;
  background: radial-gradient(420px 260px at 50% 0%, rgba(242,196,109,.14), transparent 70%), var(--surface); }
.result-card.lose .result-inner { background: var(--surface); animation: shake .45s .1s; }
.result-ic { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; }
.result-ic .i { width: 40px; height: 40px; }
.win .result-ic { color: #2a1900; background: var(--gold-grad); box-shadow: 0 0 0 1px rgba(255,244,214,.6), 0 0 0 10px rgba(242,196,109,.08), 0 18px 40px -12px rgba(242,196,109,.7);
  animation: icReveal .9s cubic-bezier(.16,1,.3,1) both; }
@keyframes icReveal { from { opacity: 0; transform: scale(.6); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.win .res-kicker { animation: bwInPlain .8s ease both .2s; } .win .win-title { animation: bwPrize 1s cubic-bezier(.16,1,.3,1) both .3s; }
.lose .result-ic { color: var(--muted); background: var(--surface-3); box-shadow: 0 0 0 10px rgba(255,255,255,.03); }
@keyframes float { 50% { transform: translateY(-6px); } }
.res-kicker { margin-top: 20px; font: 700 12px/1 var(--display); letter-spacing: .2em; color: var(--gold); }
.lose .res-kicker { color: var(--muted); }
.win-title { margin: 10px 0 6px; font: 700 clamp(28px, 7vw, 38px)/1.1 var(--display); letter-spacing: -.03em;
  background: linear-gradient(180deg, #fff 30%, var(--gold-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.res-text { color: var(--muted); font-size: 15px; margin: 8px 0 16px; }
.res-code { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; margin-bottom: 8px; border-radius: 10px; font-size: 13px; color: var(--muted);
  background: var(--bg-2); border: 1px dashed rgba(242,196,109,.4); }
.res-code b { font-family: var(--display); color: var(--gold); letter-spacing: .06em; }
.btn.cta { animation: ctaPulse 2s ease-in-out infinite; }
@keyframes ctaPulse { 50% { box-shadow: 0 0 0 6px rgba(37,211,102,.18); } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }

/* ================= painel admin (mesmo sistema visual) ================= */
.wrap { max-width: 1240px; margin: 0 auto; padding: 24px; }
.auth { max-width: 440px; margin: 56px auto; padding: 28px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { padding: 16px 18px; border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--surface); border: 1px solid var(--line); }
.stat small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.stat b { display: block; margin-top: 6px; font: 700 26px/1.1 var(--display); letter-spacing: -.02em; }
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 11px; cursor: pointer; font: 600 13px var(--font);
  color: var(--muted); background: var(--surface); border: 1px solid var(--line); transition: color .15s, border-color .15s, background .15s; }
.admin-tabs button:hover { color: var(--text); border-color: var(--line-2); }
.admin-tabs button.active { color: #2a1900; background: var(--gold-grad); border-color: transparent; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
th { color: var(--faint); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
tbody tr:hover td { background: rgba(255,255,255,.015); }
code { font: 500 13px ui-monospace, 'SF Mono', Menlo, Consolas, monospace; color: var(--gold-hi); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.ok { background: rgba(52,211,154,.12); color: var(--ok); }
.badge.wait { background: rgba(245,181,68,.12); color: var(--warn); }
.badge.bad { background: rgba(255,93,108,.12); color: #ff8c97; }
.badge.risk { background: rgba(255,140,60,.14); color: #ffb37a; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: middle; margin-right: 8px; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 14px; align-items: end; }
.prob-total { margin-top: 12px; font-size: 14px; }
.tok-input { width: 84px; padding: 8px 10px; }
.secret { display: block; text-align: center; font: 600 15px ui-monospace, Menlo, monospace; letter-spacing: 1px; padding: 10px; margin-top: 6px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; word-break: break-all; user-select: all; }
.otp { font: 700 26px var(--display); letter-spacing: 10px; text-align: center; font-variant-numeric: tabular-nums; }
.group { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-top: 10px; background: rgba(255,255,255,.015); }
.group-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; font-size: 14px; }
.group table td { padding: 8px 6px; }
.protections { line-height: 1.9; font-size: 14px; padding-left: 18px; margin: 0; color: var(--muted); }
.mode-pick { display: grid; gap: 8px; }
.mode-opt { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px; border-radius: 14px; cursor: pointer; color: var(--text); font-size: 14px;
  border: 1px solid var(--line-2); background: var(--bg-2); transition: border-color .15s, background .15s; }
.mode-opt:has(input:checked) { border-color: var(--gold); background: rgba(242,196,109,.06); }
.mode-opt input { margin-top: 3px; }
.mode-opt small { display: block; color: var(--muted); margin-top: 2px; }
.cfg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.cfg-cell { margin: 0; font-size: 12px; }
.cfg-cell span { display: block; margin-bottom: 4px; }
.cfg-cell input { padding: 9px; text-align: center; }
label.check { display: flex; gap: 10px; align-items: center; color: var(--text); font-size: 14px; margin-top: 16px; }
.mp-box { margin-top: 10px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: 14px; font-size: 14px; }
.mp-box p { margin: 4px 0; }
.mp-box code, .hint code { word-break: break-all; }
.redeem-preview { margin-top: 12px; font-size: 14px; word-break: break-all; }
#barCfg h4, #lvlCfg h4, #shopForm h4 { margin: 18px 0 8px; font-size: 14px; }

/* ================= responsivo ================= */
@media (max-width: 1060px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: 'copy' 'card' 'feat' 'wheel'; padding-top: 36px; }
  .features { max-width: 640px; width: 100%; justify-self: center; }
  .mini-wheel { width: min(380px, 80vw); }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .auth-card { max-width: 460px; width: 100%; justify-self: center; }
  .hero-wheel { justify-content: center; }
  .game { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 640px) {
  .top-inner { padding: 10px 16px; }
  .brand-name { white-space: nowrap; }
  .brand-name { font-size: 16px; }
  .brand-mark { width: 28px; height: 28px; }
  .icon-btn { width: 38px; height: 38px; }
  .hero { padding: 28px 16px 24px; gap: 22px; }
  .features { grid-template-columns: 1fr; text-align: left; width: 100%; }
  .auth-card { padding: 22px; }
  .game { padding: 20px 16px 36px; gap: 24px; }
  .stage { gap: 20px; }
  .stage-head .eyebrow { display: none; }
  .spin-btn { min-width: 0; width: 100%; max-width: 360px; padding: 16px 24px; }
  .wheel-wrap { width: min(560px, 92vw); }
  .sheet { padding: 22px 18px; border-radius: 20px; }
  .custom-row .btn { flex-basis: 100%; }
  .custom-row input { max-width: none; }
  .live { padding-left: 16px; }
  .foot { justify-content: center; text-align: center; }
  .wrap { padding: 16px; }
}
@media (max-width: 480px) {
  body.logged .brand-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.msg:empty { margin: 0; min-height: 0; }

/* saldo clicável */
button.balance { font: inherit; color: var(--text); cursor: pointer; transition: border-color .15s, background .15s; }
button.balance:not(.shop-on) { padding-right: 12px; }
button.balance.shop-on:hover { border-color: rgba(242,196,109,.55); background: linear-gradient(180deg, rgba(242,196,109,.16), rgba(242,196,109,.05)); }
button.balance.shop-on:hover .balance-plus { transform: scale(1.07); }

/* roleta da tela de entrada: ponteiro e centro (só visual) */
.mini-wheel .pointer { width: 11%; top: -4.2%; }
.mini-wheel .hub { width: 21%; cursor: default; pointer-events: none; }
.mini-wheel .hub::after { animation: hubPulse 2.4s ease-in-out infinite; }

/* aviso de configuração no admin */
.setup-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; padding: 16px 18px;
  border-radius: 16px; border: 1px solid rgba(242,196,109,.35); background: linear-gradient(90deg, rgba(242,196,109,.12), rgba(139,108,255,.08)); }
.setup-banner b { display: block; font-family: var(--display); font-size: 15px; }
.setup-banner span { color: var(--muted); font-size: 14px; }

/* ================= ancoragem de preço ================= */
.anchor-ref { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--muted);
  background: var(--bg-2); border: 1px solid var(--line-2); }
.anchor-ref:empty { display: none; }
.anchor-ref b { color: var(--text); }
.anchor-ref .coin { width: 18px; height: 18px; }
.pkg { padding-top: 26px; }
.pkg-off { position: absolute; top: 10px; right: 10px; padding: 3px 7px; border-radius: 8px; font: 800 12px/1 var(--display); color: #062b1c; background: var(--ok); }
.pkg-badge.best { background: linear-gradient(135deg, #7df2c4, var(--ok)); color: #062b1c; }
.pkg.best:not(.hot) { border-color: rgba(52,211,154,.55); box-shadow: 0 0 0 1px rgba(52,211,154,.3), 0 18px 40px -18px rgba(52,211,154,.45); }
.pkg-prices { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 10px; }
.pkg-prices .pkg-old { font-size: 13px; color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(255,93,108,.8); text-decoration-thickness: 1.5px; }
.pkg-prices .pkg-old.none { text-decoration: none; font-size: 12px; }
.pkg-prices .pkg-price { margin-top: 0; font-size: 22px; }
.pkg-price small { font: 600 12px var(--font); color: var(--muted); }
.pkg-save { margin-top: 8px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(52,211,154,.14); color: var(--ok); }
.pkg-free { margin-top: 5px; font: 700 11px var(--display); color: var(--gold); letter-spacing: .02em; }
.pkg-each { margin-top: 4px; color: var(--faint); font-size: 11px; }
.pkg-each s { opacity: .8; }
.upsell { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 11px 14px; border-radius: 12px; cursor: pointer; text-align: left;
  font: 500 13px/1.4 var(--font); color: var(--text); background: rgba(52,211,154,.08); border: 1px solid rgba(52,211,154,.35); }
.upsell:hover { background: rgba(52,211,154,.14); }
.upsell .i { color: var(--ok); }
.upsell b { color: var(--ok); }
.pkg-left, .pkg-right, .pkg-qty { display: flex; flex-direction: column; align-items: center; }
.pkg-right { gap: 0; }
@media (max-width: 560px) {
  .pkg-grid { grid-template-columns: 1fr; gap: 14px; }
  .pkg { flex-direction: row; justify-content: space-between; align-items: center; padding: 20px 14px 14px; text-align: left; }
  .pkg-left { flex-direction: row; gap: 10px; }
  .pkg-left .coin-lg { width: 30px; height: 30px; margin: 0; }
  .pkg-qty { align-items: flex-start; }
  .pkg-tokens { font-size: 28px; }
  .pkg-right { align-items: flex-end; text-align: right; }
  .pkg-prices { align-items: flex-end; margin-top: 0; }
  .pkg-prices .pkg-price { font-size: 20px; }
  .pkg-save { margin-top: 6px; }
  .pkg-badge { left: 14px; }
  .pkg-off { top: -10px; right: 14px; }
}

/* ================= anúncios ================= */
.ann-sheet { max-width: 520px; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.ann-sheet .sheet-close { z-index: 2; background: rgba(12,12,19,.75); backdrop-filter: blur(6px); }
.ann-body { padding: 28px 26px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.ann-body > :first-child:is(img, .ann-media-link, .ann-figure, .ann-video-wrap) { margin: -28px -26px 0; border-radius: 0; }
.ann-body > :first-child:is(img, .ann-media-link, .ann-figure, .ann-video-wrap) img,
.ann-body > :first-child:is(img, .ann-media-link, .ann-figure, .ann-video-wrap) video { border-radius: 0; }
.ann-title { margin: 0; line-height: 1.12; letter-spacing: -.03em; font-weight: 700; padding-right: 0; }
.ann-md { font-size: 20px; } .ann-lg { font-size: 26px; } .ann-xl { font-size: 34px; }
.ann-text { color: var(--muted); font-size: 15px; line-height: 1.6; }
.ann-text p { margin: 0; } .ann-text p + p { margin-top: 10px; }
.ann-img, .ann-media-link img { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; }
.ann-media-link { display: block; }
.ann-figure { margin: 0; }
.ann-figure figcaption { margin-top: 6px; font-size: 12px; color: var(--faint); text-align: center; }
.ann-video-wrap video { display: block; width: 100%; max-height: 420px; border-radius: 14px; background: #000; }
.ann-audio-wrap { padding: 10px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.ann-audio-wrap audio { display: block; width: 100%; height: 40px; color-scheme: dark; }
.ann-needs-tap { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 10px; animation: ctaPulse 1.6s ease-in-out infinite; }
.ann-btn { margin-top: 0; }
.ann-divider { border: 0; border-top: 1px solid var(--line-2); margin: 4px 0; }
.ann-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--bg-2); }
.ann-body { flex: 1; min-height: 0; }
/* editor de anúncios (admin) */
.ann-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.ann-preview-wrap { position: sticky; top: 90px; }
.ann-preview { border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); max-height: 76vh; display: flex; flex-direction: column; }
.ann-preview .ann-body { overflow-y: auto; }
.blk { border: 1px solid var(--line-2); border-radius: 14px; padding: 14px; margin-top: 10px; background: var(--bg-2); }
.blk-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.blk-head b { font: 600 13px var(--display); color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.blk-tools { display: flex; gap: 4px; }
.blk-tools button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); cursor: pointer; font-size: 14px; }
.blk-tools button:hover { color: var(--text); }
.blk textarea { min-height: 110px; resize: vertical; font: 500 14px/1.5 var(--font); }
.blk .grid-form { gap: 0 10px; }
.blk-media { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.blk-media img, .blk-media video { width: 90px; height: 60px; object-fit: cover; border-radius: 8px; background: #000; }
.blk-media audio { height: 36px; color-scheme: dark; }
.add-blocks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ann-list-name { font-weight: 600; }
@media (max-width: 1000px) { .ann-editor-grid { grid-template-columns: 1fr; } .ann-preview-wrap { position: static; } }
/* imagem/vídeo no topo do anúncio ocupa a largura inteira, encostado nas bordas */
.ann-body > :first-child:is(img, .ann-media-link, .ann-figure, .ann-video-wrap) { width: calc(100% + 52px); max-width: none; }
.ann-body > :first-child:is(.ann-media-link, .ann-figure, .ann-video-wrap) img,
.ann-body > :first-child:is(.ann-video-wrap, .ann-figure) video { width: 100%; }
.ann-body > .ann-figure:first-child figcaption { padding: 0 26px; }

/* ================= bônus de boas-vindas ================= */
.welcome-pill { display: inline-flex; align-items: center; gap: 10px; margin: 14px 0 0 0; padding: 9px 16px 9px 10px; border-radius: 999px; font-size: 15px;
  background: linear-gradient(90deg, rgba(242,196,109,.18), rgba(139,108,255,.14)); border: 1px solid rgba(242,196,109,.4); box-shadow: 0 10px 30px -14px rgba(242,196,109,.6); }
.welcome-pill .coin { width: 24px; height: 24px; }
.welcome-pill b { color: var(--gold); font-family: var(--display); }
.hero-copy .welcome-pill { display: flex; width: fit-content; }
.hero-copy .welcome-pill.hidden { display: none; }
.welcome-note { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 16px; border-radius: 12px; font-size: 14px;
  background: rgba(242,196,109,.08); border: 1px solid rgba(242,196,109,.3); }
.welcome-note .i { color: var(--gold); }
.welcome-note b { color: var(--gold); }
@media (max-width: 1060px) { .hero-copy .welcome-pill { margin-left: auto; margin-right: auto; } }

/* ================= caixa de presente ================= */
.gift-float { position: fixed; right: 22px; bottom: 22px; z-index: 55; width: 96px; height: 96px; padding: 0; border: 0; background: none; cursor: pointer;
  animation: giftIn .6s cubic-bezier(.2,1.6,.4,1), giftBob 2.4s ease-in-out .6s infinite; }
.gift-svg { position: relative; z-index: 1; width: 100%; height: 100%; filter: drop-shadow(0 12px 18px rgba(0,0,0,.6)); animation: giftWiggle 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
.gift-glow { position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, rgba(242,196,109,.55), rgba(139,108,255,.25) 50%, transparent 70%); filter: blur(8px); animation: breathe 1.8s ease-in-out infinite; }
.gift-tag { position: absolute; z-index: 2; left: 50%; top: -10px; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  font: 800 11px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #2a1900; background: var(--gold-grad); box-shadow: 0 6px 16px -6px rgba(242,196,109,.8); }
.gift-timer { position: absolute; z-index: 2; left: 50%; bottom: -8px; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; font: 700 11px var(--display);
  color: var(--text); background: rgba(12,12,19,.9); border: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.gift-float:hover .gift-svg { animation-duration: .6s; }
@keyframes giftIn { from { transform: translateY(140px) scale(.4); opacity: 0; } }
@keyframes giftBob { 50% { transform: translateY(-8px); } }
@keyframes giftWiggle { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-9deg); } 80% { transform: rotate(8deg); } 85% { transform: rotate(-6deg); } 90% { transform: rotate(4deg); } }

.gift-stage { position: relative; width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.gift-rays { position: absolute; top: -60px; left: 50%; width: 560px; height: 560px; margin-left: -280px; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,196,109,.32), rgba(242,196,109,.08) 40%, transparent 65%); animation: breathe 3s ease-in-out infinite; }
.gift-big { position: relative; width: 220px; height: 220px; overflow: visible; filter: drop-shadow(0 24px 40px rgba(0,0,0,.7)); }
.gift-big .gift-lid { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .55s cubic-bezier(.2,1.4,.4,1), opacity .55s; }
.gift-big.shake { animation: giftShake .35s ease-in-out infinite; }
.gift-big.open .gift-lid { transform: translate(18px, -70px) rotate(28deg); opacity: 0; }
@keyframes giftShake { 25% { transform: rotate(-6deg) scale(1.03); } 75% { transform: rotate(6deg) scale(1.03); } }
.gift-coins { position: absolute; top: 110px; left: 50%; width: 0; height: 0; }
.gift-coin { position: absolute; width: 34px; height: 34px; margin: -17px; animation: coinPop 1.1s cubic-bezier(.2,.9,.3,1) forwards; }
@keyframes coinPop { 0% { transform: translate(0, 0) scale(.3); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--x), var(--y)) scale(1) rotate(200deg); opacity: 0; } }
.gift-reveal { position: relative; width: 100%; margin-top: 4px; padding: 22px 22px 18px; border-radius: 22px; background: var(--surface); border: 1px solid rgba(242,196,109,.4);
  box-shadow: 0 0 80px -20px rgba(242,196,109,.5); animation: pop .45s cubic-bezier(.2,1.4,.4,1); }
@media (max-width: 640px) { .gift-float { right: 14px; bottom: 14px; width: 84px; height: 84px; } }

/* ================= menu do jogador ================= */
.menu-wrap { position: relative; }
.menu-dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--bg); }
#menuBtn { position: relative; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; width: 320px; max-width: calc(100vw - 24px); padding: 6px; border-radius: 16px;
  background: rgba(17,17,25,.97); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -12px rgba(0,0,0,.85); backdrop-filter: blur(12px); animation: pop .2s ease-out; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 12px; background: none; color: var(--text); cursor: pointer; text-align: left; font: inherit; }
.menu-item:hover { background: var(--surface-2); }
.menu-item > .i { color: var(--gold); width: 20px; height: 20px; }
.menu-item > span:not(.switch) { flex: 1; min-width: 0; }
.menu-item b { display: block; font-size: 14px; font-weight: 600; }
.menu-item small { display: block; font-size: 12px; color: var(--faint); }
.switch { flex: none; width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.switch.on { background: rgba(242,196,109,.25); border-color: rgba(242,196,109,.5); }
.switch.on::after { transform: translateX(16px); background: var(--gold); }

/* saudação do tema */
.season-chip { padding: 5px 12px; border-radius: 999px; font: 700 12px/1 var(--display); white-space: nowrap; color: var(--season-fg, #2a1900); background: var(--season-bg, var(--gold-grad)); }
.top-inner { gap: 10px; }
.top-inner .brand { margin-right: auto; }

/* limite de gastos */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-2 .field + .field { margin-top: 0; }
.limit-usage { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.lu-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.lu-top b { color: var(--text); }
.lu-bar { margin-top: 6px; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.lu-bar i { display: block; height: 100%; border-radius: inherit; background: var(--gold-grad); }
.lu-bar i.hot { background: linear-gradient(90deg, #f59e0b, var(--bad)); }
.limit-next { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 13px; color: #d9d1ff;
  background: rgba(139,108,255,.1); border: 1px solid rgba(139,108,255,.35); }
.limit-next .i { color: #b7a6ff; flex: none; margin-top: 1px; }
.app-icon { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 12px; box-shadow: 0 12px 30px -10px rgba(242,196,109,.5); }

/* convite discreto (instalar / notificações) */
.nudge { position: fixed; left: 50%; bottom: 20px; z-index: 56; transform: translateX(-50%); width: min(440px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 16px; border-radius: 16px; background: rgba(23,23,34,.97); border: 1px solid rgba(242,196,109,.35); box-shadow: 0 20px 50px -10px rgba(0,0,0,.85);
  animation: rise .4s cubic-bezier(.2,1.2,.4,1); }
.nudge > .i { color: var(--gold); width: 22px; height: 22px; flex: none; }
.nudge > div { flex: 1; min-width: 0; }
.nudge b { display: block; font-size: 14px; }
.nudge small { display: block; font-size: 12px; color: var(--muted); }
.nudge-x { flex: none; width: 30px; height: 30px; border-radius: 8px; border: 0; background: none; color: var(--faint); cursor: pointer; display: grid; place-items: center; }

/* ================= suspense ================= */
.suspense-fx { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(ellipse 55% 50% at 50% 42%, transparent 30%, rgba(0,0,0,.7) 100%); }
body.suspense .suspense-fx { opacity: 1; }
/* tudo em volta esmaece; só a roleta fica em foco */
.ticker, .legend-banner, .stage-head, .side, .foot, .spin-btn, .spin-msg { transition: opacity .6s, filter .6s; }
body.suspense .ticker, body.suspense .legend-banner, body.suspense .stage-head,
body.suspense .side, body.suspense .foot, body.suspense .spin-btn, body.suspense .spin-msg { opacity: .18; filter: blur(1.5px); }
.wheel-wrap { transition: transform .9s cubic-bezier(.2,.8,.2,1); }
body.suspense .wheel-wrap { transform: scale(1.07) translateY(2%); }
body.suspense .pointer { filter: drop-shadow(0 0 18px rgba(255,61,110,.9)) drop-shadow(0 8px 10px rgba(0,0,0,.55)); animation: pointerPulse .5s ease-in-out infinite; }
@keyframes pointerPulse { 50% { transform: translateX(-50%) scale(1.12); } }

/* ================= BIG WIN (cinematográfico) ================= */
.big-win { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; overflow: hidden; cursor: pointer; background: #000;
  --gold-foil: linear-gradient(100deg, #8a5a14 0%, #e8c06a 18%, #fff4d2 32%, #f2c46d 46%, #a8711a 62%, #f6d27e 80%, #fff1c9 100%); }
.big-win.play { animation: bwBg 5.6s ease forwards; }
@keyframes bwBg { 0% { background: rgba(0,0,0,0); } 8% { background: rgba(3,3,6,.985); } 100% { background: rgba(3,3,6,.975); } }
.big-win.out { animation: bwOut .6s ease forwards; }
@keyframes bwOut { to { opacity: 0; } }
.big-win .confetti.inside { position: absolute; z-index: 2; }
/* brilho de fundo que respira */
.bw-glow { position: absolute; left: 50%; top: 46%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(242,196,109,.34), rgba(242,196,109,.1) 35%, transparent 62%); }
.play .bw-glow { animation: bwGlow 5.6s ease forwards .45s; }
@keyframes bwGlow { 0% { opacity: 0; transform: scale(.4); } 12% { opacity: 1; transform: scale(1.08); } 100% { opacity: .75; transform: scale(1); } }
/* linha de luz atravessando o centro e explodindo */
.bw-streak { position: absolute; left: 0; right: 0; top: 46%; height: 2px; margin-top: -1px; opacity: 0;
  background: linear-gradient(90deg, transparent, #fff4d2 45%, #fff 50%, #fff4d2 55%, transparent); box-shadow: 0 0 24px 4px rgba(255,236,180,.8); transform: scaleX(0); }
.play .bw-streak { animation: bwStreak 1.1s cubic-bezier(.7,0,.2,1) forwards; }
@keyframes bwStreak { 0% { opacity: 1; transform: scaleX(0); } 42% { opacity: 1; transform: scaleX(1); height: 2px; }
  58% { opacity: 1; height: 140px; margin-top: -70px; filter: blur(18px); } 100% { opacity: 0; height: 260px; margin-top: -130px; filter: blur(40px); } }
/* onda de luz no impacto */
.bw-ring { position: absolute; left: 50%; top: 46%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; opacity: 0;
  border: 1.5px solid rgba(255,236,180,.85); box-shadow: 0 0 40px rgba(242,196,109,.6), inset 0 0 30px rgba(242,196,109,.35); }
.play .bw-ring { animation: bwRing 1.5s cubic-bezier(.15,.8,.3,1) forwards .5s; }
@keyframes bwRing { 0% { opacity: .9; transform: scale(.2); } 100% { opacity: 0; transform: scale(5.5); } }
.bw-rain { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bw-coin { position: absolute; top: -70px; opacity: 0; animation-name: coinDrift; animation-timing-function: linear; animation-iteration-count: 1; animation-fill-mode: both; }
@keyframes coinDrift { 0% { transform: translateY(0) rotateY(0) rotateZ(-8deg); } 100% { transform: translateY(118vh) rotateY(720deg) rotateZ(12deg); } }
/* conteúdo */
.bw-content { position: relative; z-index: 3; text-align: center; padding: 0 20px; max-width: 980px; }
.bw-eyebrow, .bw-label, .bw-prize, .bw-sub, .bw-tap { opacity: 0; }
.bw-eyebrow { display: flex; align-items: center; justify-content: center; gap: 16px; font: 600 12px/1 var(--display); letter-spacing: .5em; padding-left: .5em; color: #f6d27e; }
.bw-eyebrow span { width: 56px; height: 1px; background: linear-gradient(90deg, transparent, #f6d27e); }
.bw-eyebrow span:last-child { transform: scaleX(-1); }
.bw-label { margin-top: 26px; font: 400 clamp(16px, 2.4vw, 22px)/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,244,214,.75); }
.bw-prize { margin-top: 14px; font: 700 calc(clamp(44px, 9vw, 112px) * var(--fs, 1))/1.08 var(--display); letter-spacing: -.035em; padding: .06em 0 .12em; }
.bw-prize span { position: relative; display: inline-block; color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(180deg, #fff6dc 0%, #f6d27e 38%, #d49a2e 62%, #f2c46d 80%, #fff1c9 100%);
  filter: drop-shadow(0 2px 0 rgba(90,54,5,.6)) drop-shadow(0 0 28px rgba(242,196,109,.3)); }
/* reflexo de luz: mesma palavra por cima, só com uma faixa branca que passa uma vez */
.bw-prize span::after { content: attr(data-text); position: absolute; inset: 0; color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.95) 50%, transparent 60%); background-size: 300% 100%; background-position: 120% 0; background-repeat: no-repeat; }
.bw-sub { margin-top: 18px; font: 400 15px/1.4 var(--font); color: rgba(255,244,214,.6); letter-spacing: .02em; }
.bw-sub::before { content: ''; display: block; width: 64px; height: 1px; margin: 0 auto 18px; background: linear-gradient(90deg, transparent, rgba(246,210,126,.8), transparent); }
.bw-tap { margin-top: 34px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.35); }
.play .bw-eyebrow { animation: bwIn .9s cubic-bezier(.2,.8,.2,1) forwards .75s; }
.play .bw-label { animation: bwIn .9s cubic-bezier(.2,.8,.2,1) forwards .9s; }
.play .bw-prize { animation: bwPrize 1.2s cubic-bezier(.16,1,.3,1) forwards .55s; }
.play .bw-prize span::after { animation: bwSheen 1.6s cubic-bezier(.4,0,.2,1) forwards 1.2s; }
.play .bw-sub { animation: bwIn 1s ease forwards 1.6s; }
.play .bw-tap { animation: bwIn 1s ease forwards 2.6s; }
@keyframes bwIn { from { opacity: 0; transform: translateY(10px); letter-spacing: .6em; } to { opacity: 1; transform: none; } }
.bw-label { animation-name: none; }
.play .bw-label { animation-name: bwInPlain; }
@keyframes bwInPlain { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bwPrize { 0% { opacity: 0; transform: scale(1.18); filter: blur(14px); } 100% { opacity: 1; transform: scale(1); filter: blur(0); } }
@keyframes bwSheen { from { background-position: 120% 0; } to { background-position: -20% 0; } }

/* ================= Roleta Lendária ================= */
.legend-banner { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 16px; cursor: pointer; font-size: 14px; color: #fff; text-align: center;
  background: linear-gradient(90deg, #3b1f86, #8b6cff, #f2c46d, #8b6cff, #3b1f86); background-size: 300% 100%; animation: legendFlow 6s linear infinite;
  box-shadow: 0 6px 30px -6px rgba(139,108,255,.7); }
.legend-banner > .i { width: 20px; height: 20px; color: #fff3cf; }
.legend-banner b { font-family: var(--display); letter-spacing: .08em; }
.lb-sub { opacity: .9; }
.lb-time { padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.35); font: 700 13px var(--display); font-variant-numeric: tabular-nums; }
@keyframes legendFlow { to { background-position: 300% 0; } }
body.legend-on .wheel-glow { background: radial-gradient(circle, rgba(196,181,253,.55), rgba(139,108,255,.35) 45%, rgba(242,196,109,.15) 60%, transparent 72%); opacity: 1; }
body.legend-on .wheel-wrap::before { content: ''; position: absolute; inset: -5%; border-radius: 50%; z-index: 0; pointer-events: none;
  background: conic-gradient(from 0deg, transparent, rgba(196,181,253,.5), transparent 30%, rgba(242,196,109,.45), transparent 60%, rgba(196,181,253,.5), transparent 90%);
  filter: blur(14px); animation: spin 5s linear infinite; }
body.legend-on .hub { box-shadow: 0 0 0 4px #0b0b12, 0 0 0 7px #c4b5fd, 0 0 0 9px rgba(0,0,0,.6), 0 0 40px 6px rgba(139,108,255,.6), inset 0 2px 1px rgba(255,255,255,.12); }
body.legend-on .hub::after { box-shadow: 0 0 0 7px #e9e4ff, 0 0 40px 8px rgba(139,108,255,.7); }
body.legend-on .hub span { background: linear-gradient(135deg, #fff, #c4b5fd); -webkit-background-clip: text; background-clip: text; }
body.legend-on .spin-btn:not(:disabled) { background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 40%, #8b6cff 100%); color: #1a0b3d; box-shadow: 0 18px 40px -14px rgba(139,108,255,.85); }
.legend-card { position: relative; width: 100%; max-width: 440px; border-radius: 26px; padding: 1.5px; overflow: hidden;
  background: linear-gradient(160deg, #ffffff, #8b6cff 45%, #f2c46d); box-shadow: 0 0 140px -20px rgba(139,108,255,.8); animation: pop .55s cubic-bezier(.2,1.4,.4,1); }
.legend-rays { position: absolute; inset: 0; opacity: 1; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.85) 50%, transparent 65%); background-size: 250% 100%;
  animation: cardSheen 3.6s ease-in-out .4s infinite; }
.legend-inner { position: relative; padding: 32px 26px 22px; border-radius: 25px; text-align: center; background: radial-gradient(420px 260px at 50% 0%, rgba(139,108,255,.25), transparent 70%), var(--surface); }
.legend-crown { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; color: #1a0b3d;
  background: linear-gradient(135deg, #fff, #c4b5fd 50%, #f2c46d); box-shadow: 0 0 0 10px rgba(139,108,255,.15), 0 20px 50px -10px rgba(139,108,255,.9); animation: float 2.4s ease-in-out infinite; }
.legend-crown .i { width: 42px; height: 42px; }
.legend-title { margin: 10px 0 8px; font: 800 clamp(26px, 6.5vw, 34px)/1.08 var(--display); letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff 20%, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.legend-inner .res-kicker { color: #c4b5fd; }
.legend-prizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 14px 0 6px; }
.legend-prize { padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; background: color-mix(in srgb, var(--c) 30%, transparent); border: 1px solid var(--c); }
.legend-card .btn.primary { background: linear-gradient(135deg, #ffffff, #c4b5fd 45%, #8b6cff); color: #1a0b3d; }

/* ================= temas sazonais ================= */
.season-fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
body[data-season="natal"]     { --season-bg: linear-gradient(135deg, #ef4444, #b91c1c); --season-fg: #fff; }
body[data-season="anonovo"]   { --season-bg: linear-gradient(135deg, #ffffff, #e5e7eb 40%, #f2c46d); --season-fg: #1f1400; }
body[data-season="carnaval"]  { --season-bg: linear-gradient(90deg, #ff3d8b, #facc15, #22d3ee, #a3e635); --season-fg: #1a0b26; }
body[data-season="halloween"] { --season-bg: linear-gradient(135deg, #fb923c, #a855f7); --season-fg: #1a0b26; }
body[data-season="natal"] .backdrop { background: radial-gradient(1000px 600px at 70% -10%, rgba(239,68,68,.14), transparent 60%), radial-gradient(800px 600px at 0% 100%, rgba(34,197,94,.12), transparent 60%), var(--bg); }
body[data-season="anonovo"] .backdrop { background: radial-gradient(1000px 600px at 70% -10%, rgba(255,255,255,.10), transparent 60%), radial-gradient(800px 600px at 0% 100%, rgba(242,196,109,.14), transparent 60%), var(--bg); }
body[data-season="carnaval"] .backdrop { background: radial-gradient(900px 600px at 80% -10%, rgba(255,61,139,.16), transparent 60%), radial-gradient(800px 600px at 0% 100%, rgba(34,211,238,.14), transparent 60%), radial-gradient(600px 400px at 50% 60%, rgba(250,204,21,.06), transparent 60%), var(--bg); }
body[data-season="halloween"] .backdrop { background: radial-gradient(1000px 600px at 70% -10%, rgba(251,146,60,.16), transparent 60%), radial-gradient(800px 600px at 0% 100%, rgba(168,85,247,.16), transparent 60%), var(--bg); }
body[data-season] header.top, body[data-season] main, body[data-season] .hero, body[data-season] .foot { position: relative; z-index: 2; }
body[data-season] header.top { position: sticky; z-index: 40; }

@media (max-width: 640px) {
  .season-chip { display: none; }
  .legend-banner { font-size: 13px; gap: 8px; padding: 9px 10px; flex-wrap: wrap; }
  .lb-sub { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2 .field + .field { margin-top: 14px; }
}
/* conteúdo sempre acima das camadas de efeito (partículas do tema e vinheta do suspense) */
main.game, .hero, .foot { position: relative; z-index: 2; }
.badge.legend { background: rgba(139,108,255,.16); color: #c4b5fd; }
#probTotal div + div { margin-top: 4px; }

/* decoração do tema na borda do cabeçalho */
body[data-season] header.top::after { content: ''; position: absolute; left: 0; right: 0; pointer-events: none; }
body[data-season="natal"] header.top::after { bottom: -8px; height: 16px;
  background:
    radial-gradient(circle at 50% 70%, #ff4d5e 0 3.5px, transparent 4.5px) 0 0 / 56px 16px repeat-x,
    radial-gradient(circle at 50% 70%, #4ade80 0 3.5px, transparent 4.5px) 14px 0 / 56px 16px repeat-x,
    radial-gradient(circle at 50% 70%, #ffe08a 0 3.5px, transparent 4.5px) 28px 0 / 56px 16px repeat-x,
    radial-gradient(circle at 50% 70%, #ffffff 0 3.5px, transparent 4.5px) 42px 0 / 56px 16px repeat-x,
    linear-gradient(#3b2a14, #3b2a14) 0 6px / 100% 1px no-repeat;
  filter: drop-shadow(0 0 4px rgba(255,255,255,.7)); animation: lights 1.2s steps(2) infinite; }
@keyframes lights { 50% { filter: drop-shadow(0 0 7px rgba(255,220,150,.95)) brightness(1.35); } }
body[data-season="anonovo"] header.top::after { bottom: -1px; height: 3px; background: linear-gradient(90deg, transparent, #ffe7a8, #fff, #f2c46d, transparent) 0 0 / 50% 100% repeat-x;
  box-shadow: 0 0 14px rgba(255,231,168,.8); animation: shimmer 2.2s linear infinite; }
@keyframes shimmer { to { background-position: 100% 0; } }
body[data-season="carnaval"] header.top::after { bottom: -9px; height: 9px;
  background:
    conic-gradient(from 135deg at 50% 0, #ff3d8b 90deg, transparent 0) 0 0 / 72px 9px repeat-x,
    conic-gradient(from 135deg at 50% 0, #facc15 90deg, transparent 0) 18px 0 / 72px 9px repeat-x,
    conic-gradient(from 135deg at 50% 0, #22d3ee 90deg, transparent 0) 36px 0 / 72px 9px repeat-x,
    conic-gradient(from 135deg at 50% 0, #a3e635 90deg, transparent 0) 54px 0 / 72px 9px repeat-x;
  transform-origin: top; animation: flags 2.4s ease-in-out infinite; }
@keyframes flags { 50% { transform: scaleY(.82) skewX(-4deg); } }
body[data-season="halloween"]::after { content: ''; position: fixed; left: -10%; right: -10%; bottom: -40px; height: 230px; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 40% 60% at 25% 100%, rgba(168,85,247,.6), transparent 70%), radial-gradient(ellipse 45% 60% at 75% 100%, rgba(251,146,60,.5), transparent 70%);
  filter: blur(8px); animation: fog 9s ease-in-out infinite alternate; }
@keyframes fog { to { transform: translateX(6%); } }

/* lua do Halloween */
body[data-season="halloween"]::before { content: ''; position: fixed; top: 90px; right: 6%; width: 120px; height: 120px; border-radius: 50%; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 40% 38%, #fff7d6, #fde68a 45%, #f59e0b 100%); box-shadow: 0 0 60px 18px rgba(251,191,36,.35), 0 0 160px 40px rgba(251,146,60,.18); opacity: .85; }
@media (max-width: 640px) { body[data-season="halloween"]::before { width: 70px; height: 70px; top: 120px; right: 4%; } }
/* véu escuro atrás do texto do BIG WIN: partículas passam por trás sem atrapalhar a leitura */
.bw-content::before { content: ''; position: absolute; z-index: -1; left: 50%; top: 50%; width: 140%; height: 150%; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(3,3,6,.86), rgba(3,3,6,.6) 55%, transparent); }
.bw-eyebrow { white-space: nowrap; }
@media (max-width: 640px) {
  .bw-eyebrow { letter-spacing: .32em; padding-left: .32em; gap: 10px; font-size: 11px; }
  .bw-eyebrow span { width: 28px; }
  .bw-content::before { width: 130%; height: 120%; }
}
/* partículas dentro de uma janela: atrás do cartão */
.modal > canvas.confetti.inside { position: absolute; z-index: 0; }
.modal > :not(canvas) { position: relative; z-index: 1; }

/* ================= desempenho no celular ================= */
@media (pointer: coarse), (max-width: 760px) {
  header.top { background: rgba(7, 7, 11, .94); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .modal { background: rgba(3, 3, 6, .86); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .ann-sheet .sheet-close, .toast, .menu-panel { backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.suspense .ticker, body.suspense .legend-banner, body.suspense .stage-head,
  body.suspense .side, body.suspense .foot, body.suspense .spin-btn, body.suspense .spin-msg { filter: none; opacity: .12; }
  body.legend-on .wheel-wrap::before { filter: none; opacity: .75; }
  body[data-season="halloween"]::after { filter: none; }
}
/* brilhos decorativos nunca alargam a página (corta na borda da tela, onde já são quase transparentes) */
html, body { overflow-x: clip; }
/* botão discreto em forma de link (ex.: cancelar pedido) */
.link-btn { display: block; margin: 10px auto 0; padding: 8px 12px; border: 0; background: none; color: var(--muted); font: 500 13px/1.2 var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--text); }
.backup-status { line-height: 1.9; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
