:root {
  --bg: #0c0c11;
  --bg-2: #13131a;
  --card: #17171f;
  --line: #262631;
  --text: #ecebf2;
  --muted: #9a99a8;
  --accent: #c6ff3d;
  --accent-ink: #0c0c11;
  --twitch: #9147ff;
  --live: #ff3b4e;
  --danger: #ff6b6b;
  --radius: 14px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
h2 { font-size: 28px; margin-bottom: 20px; }
h3 { font-size: 18px; }
.muted { color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.demo-banner { background: var(--accent); color: var(--accent-ink); text-align: center; font-size: 13px; font-weight: 600; padding: 6px 16px; }

/* Topo */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(12,12,17,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; height: 68px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .02em; text-decoration: none; justify-self: center; }
.brand span { color: var(--accent); }
.account { display: flex; align-items: center; gap: 10px; justify-self: end; }
.user-chip { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px 4px 4px; }
.user-chip .who, .user-chip a { display: none; } /* Admin e Sair ficam dentro do menu */
.user-chip img, .user-chip .mini-avatar { width: 30px; height: 30px; border-radius: 50%; }
.mini-avatar { display: grid; place-items: center; background: var(--twitch); font-weight: 700; font-size: 13px; }
.user-chip .who { font-size: 14px; font-weight: 600; line-height: 1.2; }
.user-chip .pts { font-size: 12px; color: var(--accent); font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
/* Moeda do canal (MackCoins): a imagem vem do config.js (iconePontos) */
.coin { display: inline-block; width: 1.35em; height: 1.35em; vertical-align: -.3em; border-radius: 50%; background: var(--coin-img, url("img/mackcoin.webp")) center/78% no-repeat, #15110a; box-shadow: 0 0 0 1px rgba(242,201,76,.35); flex: none; }
.btn-buy span .coin { margin-left: 3px; }
.btn-buy span:has(.coin) { opacity: 1; display: inline-flex; align-items: center; gap: 4px; }
.price-sticker .coin { margin-right: 3px; align-self: center; }
.user-chip a { font-size: 12px; color: var(--muted); text-decoration: none; padding: 4px 8px; }
.user-chip a:hover { color: var(--text); }
/* Topo: só a foto; passar o mouse ou clicar mostra nome e saldo num balão */
.user-chip { position: relative; padding: 3px; cursor: pointer; transition: border-color .15s; }
.user-chip img, .user-chip .mini-avatar { width: 34px; height: 34px; }
.user-chip .chip-info { display: none; }
.user-chip.open { border-color: var(--accent); }
.user-chip.open .chip-info { display: block; position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; min-width: 150px; padding: 10px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 14px 30px -10px rgba(0,0,0,.7); text-align: right; animation: chip-pop .16s ease-out; }
.user-chip.open .chip-info::before { content: ""; position: absolute; top: -6px; right: 14px; width: 10px; height: 10px; background: var(--bg-2); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.user-chip.open .who { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.user-chip.open .pts { font-size: 16px; justify-content: flex-end; }
@keyframes chip-pop { from { opacity: 0; transform: translateY(-4px); } }
/* No computador o balão também abre só de passar o mouse */
@media (hover: hover) {
  .user-chip:hover { border-color: var(--accent); }
  .user-chip:hover .chip-info { display: block; position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; min-width: 150px; padding: 10px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 14px 30px -10px rgba(0,0,0,.7); text-align: right; animation: chip-pop .16s ease-out; }
  .user-chip:hover .chip-info::before { content: ""; position: absolute; top: -6px; right: 14px; width: 10px; height: 10px; background: var(--bg-2); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
  .user-chip:hover .who { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
  .user-chip:hover .pts { font-size: 16px; justify-content: flex-end; }
  /* Ponte invisível entre a foto e o balão, pro mouse não "cair" no caminho */
  .user-chip:hover::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
}

/* Menu sanduíche (só no celular) */
.burger { display: block; justify-self: start; position: relative; width: 40px; height: 40px; flex: none; border: 1px solid transparent; border-radius: 10px; background: transparent; cursor: pointer; transition: border-color .2s; }
.burger span { position: absolute; left: 11px; width: 16px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s, opacity .2s, top .25s; }
.burger span:nth-child(1) { top: 13px; } .burger span:nth-child(2) { top: 18px; } .burger span:nth-child(3) { top: 23px; }
.burger[aria-expanded="true"] { border-color: var(--accent); }
.burger[aria-expanded="true"] span { background: var(--accent); }
.burger[aria-expanded="true"] span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 18px; transform: rotate(-45deg); }
.mobile-menu { position: absolute; left: 0; right: 0; top: 100%; height: calc(100dvh - 100%); overflow-y: auto; background: var(--bg); padding: 8px 16px 24px; display: flex; flex-direction: column; animation: menu-in .22s ease-out; }
.mobile-menu[hidden] { display: none; }
.mobile-menu > a { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font: 500 18px var(--display); }
.mobile-menu > a::after { content: "›"; color: #5a5a68; font-size: 22px; line-height: 1; }
.mobile-menu > a:active { color: var(--accent); }
/* Caixas (e Rifas, quando tem rifa aberta) no topo do menu */
.menu-duo { margin: 8px 0 6px; }
.menu-duo > a { display: flex; align-items: center; justify-content: flex-start; gap: 14px; padding: 14px; border: 1px solid rgba(255,200,61,.35); border-radius: 14px; background: rgba(255,200,61,.07); text-decoration: none; font: 500 18px var(--display); color: var(--text); }
.menu-duo > a[hidden] { display: none; }
.menu-duo > a::after { content: "›"; margin-left: auto; color: #ffc83d; font-size: 22px; line-height: 1; }
.menu-duo > a:hover { border-color: #ffc83d; }
/* Rifa: mesmo card, verde-água */
.menu-duo > a.menu-rifa { border-color: rgba(50,188,173,.45); background: rgba(50,188,173,.08); }
.menu-duo > a.menu-rifa::after { color: #32bcad; }
.menu-duo > a.menu-rifa:hover { border-color: #32bcad; }
.menu-rifa .menu-box-icon { background: #0b2421; border-color: #32bcad; }
.menu-rifa .menu-box-icon svg { fill: none; stroke: #32bcad; stroke-width: 1.8; }
.menu-rifa .menu-box-text b { color: #7ee8d8; }
.menu-rifa .menu-box-text small { color: #7ee8d8; }
/* Com rifa aberta: Caixas e Rifas lado a lado, cada um com metade da largura */
.menu-duo.has-rifa { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu-duo.has-rifa > a { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; position: relative; }
.menu-duo.has-rifa > a::after { position: absolute; right: 12px; top: 12px; }
.menu-duo.has-rifa .menu-box-icon { width: 36px; height: 36px; }
.menu-duo.has-rifa .menu-box-count { position: absolute; right: 30px; top: 12px; }
.menu-box-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #231c0b; border: 1px solid #ffc83d; }
.menu-box-icon svg { width: 22px; height: 22px; fill: #ffc83d; }
.menu-box.is-ready .menu-box-icon svg { animation: box-wiggle 2.6s ease-in-out infinite; }
.menu-box-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.menu-box-text b { color: #ffd77a; font-weight: 500; }
.menu-box-text small { font: 500 12px var(--font); color: var(--muted); }
.menu-box.is-ready .menu-box-text small { color: #ffc83d; }
.menu-box-count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: #ffc83d; color: #231c0b; font: 700 12px/24px var(--font); text-align: center; }
.burger.has-box::after { content: ""; position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: #ffc83d; border: 2px solid var(--bg); }
.burger.has-box[aria-expanded="true"]::after { display: none; }
.mobile-account { display: flex; gap: 10px; margin-top: 20px; }
.mobile-account:empty { display: none; }
.mobile-account .btn { flex: 1; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
body.menu-open { overflow: hidden; }
.burger:hover { border-color: var(--line); }
/* No computador o menu abre como painel lateral */
@media (min-width: 861px) {
  .mobile-menu { right: auto; width: 360px; height: calc(100dvh - 68px); border-right: 1px solid var(--line); padding: 12px 24px 24px; animation: drawer-in .28s cubic-bezier(.22,.8,.24,1); }
  body.menu-open::after { content: ""; position: fixed; inset: 0; z-index: 5; background: rgba(0,0,0,.55); animation: menu-in .2s ease-out; }
  .mobile-menu > a { font-size: 17px; padding: 15px 4px; transition: color .15s, padding .2s; }
  .mobile-menu > a:hover { color: var(--accent); padding-left: 10px; }
}
@keyframes drawer-in { from { transform: translateX(-24px); opacity: 0; } }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font: 600 15px var(--font); cursor: pointer; text-decoration: none; transition: transform .1s, filter .15s; }
.btn:active { transform: translateY(1px); }
.btn > svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-twitch { background: var(--twitch); color: #fff; }
.btn-twitch:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: #3a3a48; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 14px; white-space: nowrap; }
@media (max-width: 760px) { .topbar .lbl-long { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 64px 0 56px; }
/* Fundo: imagem da live borrada (ou imagem offline) + escurecido */
.hero-bg { position: absolute; inset: -60px; z-index: -2; background: var(--bg-2) center/cover; filter: blur(28px) saturate(1.2); transform: scale(1.1); transition: background-image .6s; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,12,17,.9) 0%, rgba(12,12,17,.62) 55%, rgba(12,12,17,.5) 100%), linear-gradient(180deg, transparent 60%, var(--bg) 100%); }
.hero-inner { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 48px; }
.hero-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 18px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--muted); }
.hero-stats span + span::before { content: "·"; margin: 0 8px; color: #55556a; }
.hero-stats b { color: var(--text); font-weight: 700; }
.avatar { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg-2) center/cover; display: grid; place-items: center; font: 700 18px var(--display); color: var(--accent); }
.hero.is-live .avatar { border-color: var(--live); box-shadow: 0 0 0 4px rgba(255,59,78,.18); }
.hero-player { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 60px -25px rgba(0,0,0,.8); }
.hero-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-hint { position: absolute; z-index: 2; left: 12px; bottom: 12px; pointer-events: none; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0,0,0,.7); padding: 5px 10px; border-radius: 8px; transition: opacity .5s; }
.player-hint.gone { opacity: 0; }
.hero h1 { font-size: 52px; letter-spacing: -.02em; }
.tagline { color: var(--accent); font-size: 16px; font-weight: 600; margin: 8px 0 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; min-width: 0; background: rgba(255,255,255,.06); color: #c9c8d4; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; max-width: 100%; }
.hero.is-live .live-badge { background: rgba(255,59,78,.14); color: #ff9aa4; border-color: rgba(255,59,78,.4); }
.live-badge b { flex: none; white-space: nowrap; color: #fff; background: var(--live); border-radius: 4px; padding: 0 6px; font-size: 11px; letter-spacing: .05em; }
.live-badge span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* Meta de subs: faixa abaixo do topo, mini no topo e mini no menu */
.goal-bar { display: block; height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.goal-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--twitch), #c38bff 60%, var(--accent)); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.subgoal { position: relative; z-index: 1; margin-top: 8px; }
.sg-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 22px 26px; border-radius: var(--radius); border: 1px solid rgba(145,71,255,.45); background: linear-gradient(120deg, rgba(145,71,255,.16), rgba(145,71,255,.04) 60%), var(--card); }
.sg-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sg-tag { font: 700 12px var(--display); letter-spacing: .14em; text-transform: uppercase; color: #c9a6ff; }
.sg-text strong { font: 700 22px var(--display); }
.sg-prize { color: var(--muted); font-size: 14px; }
.sg-nums { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.sg-nums b { font: 700 30px var(--display); color: var(--accent); }
.sg-nums span { color: var(--muted); font-size: 14px; }
.sg-progress .goal-bar { height: 12px; }
.subgoal.is-done .sg-card { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.mobile-menu > a.menu-goal { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 0 0 6px; padding: 12px 14px; border: 1px solid rgba(145,71,255,.4); border-radius: 14px; background: rgba(145,71,255,.08); font: 500 14px var(--font); }
.mobile-menu > a.menu-goal::after { display: none; }
.mobile-menu > a.menu-goal[hidden], .mobile-menu > a[hidden] { display: none; }
.mg-top { display: flex; justify-content: space-between; align-items: baseline; }
.mg-top b { color: #c9a6ff; font-weight: 600; }
.mg-top span { color: var(--muted); font-size: 13px; }
.menu-goal .goal-bar { height: 6px; }
@media (max-width: 860px) {
  .sg-card { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .sg-card .btn { width: 100%; justify-content: center; }
}

/* Seções */
.section { --cut: 56px; padding: 72px 0; }
/* Seções alternadas: fundo mais claro com corte inclinado em cima e embaixo */
.section-alt { background: #17171f; padding: calc(72px + var(--cut)) 0; clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%); margin: calc(var(--cut) * -0.5) 0; }
.section-alt .social { background: #1e1e28; }

/* Título da seção: etiqueta verde torta + frase */
.sec-title { margin-bottom: 28px; }
.sec-title h2 { margin: 12px 0 0; font-size: 32px; letter-spacing: -.01em; }
.sec-tag { display: inline-block; background: var(--sec, var(--accent)); color: var(--sec-ink, var(--accent-ink)); font: 700 13px var(--display); letter-spacing: .14em; text-transform: uppercase; padding: 4px 12px; transform: skewX(-12deg); box-shadow: 4px 4px 0 var(--sec-soft, color-mix(in srgb, var(--accent) 18%, transparent)); }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
/* Sobre dentro do topo */
.hero-about p { margin: 0 0 10px; color: #cfcfdb; font-size: 15px; line-height: 1.6; max-width: 520px; }
.hero-quote { margin: 4px 0 14px; padding-left: 16px; border-left: 3px solid var(--accent); font: 700 22px/1.3 var(--display); color: var(--text); max-width: 520px; }
.hero-chips { display: flex; flex-wrap: wrap; align-items: center; margin: 2px 0 24px; font-size: 13px; font-weight: 600; color: var(--muted); }
.hero-chips span + span::before { content: "·"; margin: 0 8px; color: #55556a; }
.hero-chips span:last-child { color: var(--accent); }

/* Agenda: próxima live + semana, em faixa larga */
.agenda-strip { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.6fr) minmax(0, .8fr); grid-template-areas: "next week box"; gap: 16px; align-items: stretch; }
.next-live { grid-area: next; } .week-card { grid-area: week; } .agenda-box { grid-area: box; }
.week-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
/* Card das caixas na agenda: "assistiu, ganhou" */
.agenda-box { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 16px; background: #1a140f; border: 1.5px solid #e8935a; text-decoration: none; color: var(--text); transition: transform .2s, border-color .2s; }
.agenda-box:hover { transform: translateY(-3px); border-color: #f2b385; }
.agenda-box > :not(svg) { position: relative; }
.agenda-box .week-label { color: #e8935a; }
.agenda-box strong { font: 700 20px/1.2 var(--display); margin-top: 4px; }
.agenda-box-sub { color: var(--muted); font-size: 13px; line-height: 1.45; max-width: 200px; }
.agenda-box-art { position: absolute; right: -16px; bottom: -20px; width: 120px; height: 120px; fill: #3a2618; animation: box-wiggle 2.6s ease-in-out infinite; transform-origin: 50% 60%; }
.agenda-box-btn { margin-top: auto; align-self: flex-start; background: #e8935a; color: #2a1408; border-radius: 10px; padding: 8px 14px; font-size: 14px; font-weight: 700; }
@media (max-width: 1100px) { .agenda-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "next box" "week week"; } }
@media (max-width: 860px) { .agenda-strip { grid-template-columns: 1fr; grid-template-areas: "next" "week" "box"; } .agenda-box-btn { margin-top: 10px; } }

/* Card da rifa na agenda (só aparece com rifa aberta), ao lado do de Caixas */
.agenda-rifa { grid-area: rifa; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 16px; background: #0f1a19; border: 1.5px solid #32bcad; text-decoration: none; color: var(--text); transition: transform .2s, border-color .2s; }
.agenda-rifa[hidden] { display: none; }
.agenda-rifa:hover { transform: translateY(-3px); border-color: #7ee8d8; }
.agenda-rifa .week-label { color: #7ee8d8; }
.agenda-rifa > :not(svg) { position: relative; }
.agenda-rifa strong { font: 700 20px/1.2 var(--display); margin-top: 4px; }
.agenda-rifa-art { position: absolute; right: -16px; bottom: -20px; width: 120px; height: 120px; fill: #123b36; animation: box-wiggle 2.6s ease-in-out infinite; transform-origin: 50% 60%; }
.agenda-rifa .ar-btn { margin-top: auto; align-self: flex-start; background: #32bcad; color: #032a25; border-radius: 10px; padding: 8px 14px; font-size: 14px; font-weight: 700; }
/* Com rifa aberta: Caixas e Rifa ficam empilhados na coluna da direita, em versão compacta */
.agenda-strip.has-rifa { grid-template-areas: "next week box" "next week rifa"; }
.agenda-strip.has-rifa .agenda-box, .agenda-strip.has-rifa .agenda-rifa { padding: 14px 16px; gap: 4px; }
.agenda-strip.has-rifa .agenda-box strong, .agenda-strip.has-rifa .agenda-rifa strong { font-size: 16px; }
.agenda-strip.has-rifa .agenda-box strong br, .agenda-strip.has-rifa .agenda-rifa strong br { display: none; }
.agenda-strip.has-rifa .agenda-box-sub { display: none; }
.agenda-strip.has-rifa .agenda-box-art, .agenda-strip.has-rifa .agenda-rifa-art { width: 80px; height: 80px; right: -12px; bottom: -14px; }
.agenda-strip.has-rifa .agenda-box-btn, .agenda-strip.has-rifa .ar-btn { padding: 6px 12px; font-size: 13px; margin-top: 8px; }

@media (max-width: 1100px) { .agenda-strip.has-rifa { grid-template-areas: "next box" "next rifa" "week week"; } }
@media (max-width: 860px) { .agenda-strip.has-rifa { grid-template-areas: "next" "week" "box" "rifa"; } }
.next-live { background: color-mix(in srgb, var(--accent) 7%, transparent); border: 1.5px solid var(--accent); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.next-live.is-live { background: rgba(255,59,78,.08); border-color: var(--live); }
.nl-label { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.next-live.is-live .nl-label { color: #ff8a96; }
.nl-when { font: 400 32px "Russo One", var(--display); letter-spacing: .02em; margin-top: 4px; }
.nl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.nl-count { display: flex; gap: 6px; }
.nl-count div { min-width: 54px; text-align: center; background: var(--bg); border-radius: 10px; padding: 8px 6px; }
.nl-count div[hidden] { display: none; }
.nl-count b { display: block; font: 400 22px "Russo One", var(--display); }
.nl-count span { color: var(--muted); font-size: 11px; }
.nl-row .btn { white-space: nowrap; }
.week-label { display: block; margin: 0 0 12px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.week-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.week-chip { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 14px; color: #cfcfdb; }
.week-chip b { font-weight: 700; color: var(--text); }
.week-chip.today { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.week-chip.today b { color: var(--accent); }
.week-chip.off { opacity: .45; }
@media (max-width: 560px) {
  .next-live, .week-card { padding: 16px; }
  .nl-when { font-size: 26px; }
  .nl-count div { min-width: 46px; }
  .nl-row .btn { width: 100%; }
}

/* Redes: grade de botões (5 por linha no computador, 2 no celular) */
.socials-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .socials-grid { gap: 10px; } .socials-grid .social { padding: 12px; gap: 10px; } .socials-grid .social svg { width: 22px; height: 22px; } }
@media (max-width: 900px) { .socials-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .socials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .socials-grid .social { padding: 12px; gap: 10px; } .socials-grid .social svg { width: 22px; height: 22px; } }
.social { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .15s, transform .15s; }
.social:hover { border-color: var(--c, var(--accent)); transform: translateY(-2px); background: color-mix(in srgb, var(--c, var(--accent)) 8%, var(--card)); }
.social svg { width: 26px; height: 26px; flex: none; fill: var(--c, var(--text)); }
.social div { min-width: 0; }
.social strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social span { color: var(--muted); font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Parceiros: carrossel */
.carousel { --per: 4; --gap: 16px; }
.carousel-viewport { overflow: hidden; margin: -4px; padding: 4px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.carousel-viewport img { -webkit-user-drag: none; pointer-events: none; }
.carousel-track { display: flex; gap: var(--gap); }
/* Troca de página. Loja ("rise"): o card sai subindo e o novo sobe de baixo, em cascata.
   Parceiros ("stamp"): o cupom encolhe e some, e o novo cai grande e "carimba" no lugar. */
.carousel-track > .c-out { opacity: 0; transition: opacity .2s ease-in, transform .2s ease-in; }
.carousel[data-fx="rise"] .carousel-track > .c-out { transform: translateY(-10px); }
.carousel[data-fx="stamp"] .carousel-track > .c-out { transform: scale(.9); }
.carousel[data-fx="rise"] .carousel-track > .c-enter { animation: fx-rise .42s cubic-bezier(.2,.8,.2,1) backwards; }
.carousel[data-fx="stamp"] .carousel-track > .c-enter { animation: fx-stamp .45s cubic-bezier(.3,.7,.3,1) backwards; }
@keyframes fx-rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes fx-stamp { 0% { opacity: 0; transform: scale(1.3) rotate(-4deg); } 70% { opacity: 1; transform: scale(.97) rotate(0); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .carousel-track > .c-enter { animation-duration: .01s; } }
.carousel-track > * { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-width: 0; transition: opacity .3s ease-out, transform .3s ease-out, border-color .2s, box-shadow .2s; }
.carousel-track > .c-off { display: none !important; }

.partner-link { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text); }
.partner-link .ic { width: 15px; height: 15px; fill: currentColor; opacity: .6; transition: transform .15s; }
.partner-link:hover { color: var(--accent); }
.partner-link:hover .ic { transform: translate(2px, -2px); opacity: 1; }

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.dot { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #34343f; cursor: pointer; overflow: hidden; transition: width .35s, background .2s; }
.dot:hover { background: #4a4a58; }
.dot.active { width: 44px; background: #2a2a34; }
.dot i { position: absolute; inset: 0; width: 0; background: var(--sec, var(--accent)); border-radius: inherit; }
.dot.active i { animation: dot-fill var(--interval, 10s) linear forwards; }
.carousel.paused .dot.active i, body:has(dialog[open]) .dot.active i { animation-play-state: paused; }
@keyframes dot-fill { to { width: 100%; } }
@media (max-width: 720px) { .carousel { --gap: 12px; } }

/* ===== Cada seção com sua cor ===== */
#rifas, .rifa-vars { --sec: #32bcad; --sec-ink: #032a25; --sec-text: #7ee8d8; --sec-soft: rgba(50,188,173,.22); --sec-bg: #17171f; }
.rifas-how { margin: -10px 0 26px; max-width: 640px; font-size: 15px; }
#sorteios, .raffle-vars { --sec: #9147ff; --sec-ink: #fff; --sec-text: #b48bff; --sec-soft: rgba(145,71,255,.22); --sec-bg: #17171f; }
#loja { --sec: var(--accent); --sec-ink: var(--accent-ink); --sec-text: var(--accent); --sec-soft: color-mix(in srgb, var(--accent) 18%, transparent); --sec-bg: var(--bg); }
#parceiros { --sec: #ff8a2a; --sec-ink: #3d1a02; --sec-text: #ffab66; --sec-soft: rgba(255,138,42,.22); --sec-bg: #17171f; }
.btn-sec { background: var(--sec); color: var(--sec-ink); }
.btn-sec:hover { filter: brightness(1.1); }
.sec-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.store-balance { font-size: 15px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.store-balance b { color: var(--accent); font: 700 18px var(--display); }

/* ===== Sorteio: ticket picotado ===== */
.ticket { position: relative; display: flex; min-height: 210px; background: #1e1e28; border: 1px solid #2f2a44; border-radius: 14px; transition: border-color .2s; }
.ticket:hover { border-color: var(--sec); }
.ticket.closed { opacity: .65; }
.raffle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.winner-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; min-height: 210px; padding: 18px 16px 16px; border-radius: 14px; background: #5b2bd1; color: #fff; text-decoration: none; transition: transform .2s, background .2s; }
.winner-card:hover { transform: translateY(-3px); background: #6332de; }
.wc-trophy { position: absolute; right: -14px; bottom: -18px; width: 120px; height: 120px; fill: #6d3fe0; }
.winner-card > :not(svg) { position: relative; }
.wc-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #d9c8ff; }
.wc-avatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; background: #2a1270; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.wc-name { font: 700 17px var(--display); line-height: 1.2; }
.wc-prize { font-size: 13px; color: #e2d6ff; line-height: 1.45; }
.wc-prize b { color: #fff; }
.wc-when { display: block; }
/* Sem ganhador ainda: card "Quer mais chance?" com a lista de vantagens */
.winner-card.is-perks { align-items: flex-start; text-align: left; background: linear-gradient(160deg, #5b2bd6, #2c1080); }
.winner-card.is-perks:hover { background: linear-gradient(160deg, #6332de, #34139a); }
.is-perks .wc-name { font-size: 16px; line-height: 1.3; }
.wc-perks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 13px; line-height: 1.35; color: #e4d8ff; }
.wc-perks li { display: flex; gap: 7px; }
.wc-perks li::before { content: "✓"; color: #fff; font-weight: 800; }
.is-perks .wc-btn { align-self: center; }
/* Aviso de sorteios abertos: separado da lista, com bolinha piscando (não é vantagem) */
.wc-live { margin-top: auto; align-self: center; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: rgba(0,0,0,.28); font-size: 12px; font-weight: 700; color: #fff; }
.wc-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 var(--live); animation: wc-pulse 1.6s infinite; }
@keyframes wc-pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.wc-live + .wc-btn { margin-top: 10px; }
.wc-btn { margin-top: auto; background: #fff; color: #3b1a8a; border-radius: 10px; padding: 9px 16px; font-size: 14px; font-weight: 700; }
.sorteios-page { padding-top: 56px; }
.sorteios-page .sec-title h1 { margin: 12px 0 0; font-size: 40px; letter-spacing: -.01em; }
@media (max-width: 1100px) {
  .raffle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Tablet: o card do ganhador vira uma faixa larga embaixo dos 2 sorteios */
  .winner-card { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "av label btn" "av name btn" "av prize btn"; align-items: center; column-gap: 16px; row-gap: 2px; text-align: left; padding: 18px 22px; }
  .wc-avatar { grid-area: av; width: 56px; height: 56px; } .wc-label { grid-area: label; } .wc-name { grid-area: name; } .wc-prize { grid-area: prize; } .wc-btn { grid-area: btn; margin: 0; }
  .wc-when { display: inline; } .wc-when::before { content: " · "; }
  .winner-card.is-perks { grid-template-columns: 1fr auto; grid-template-areas: "label btn" "name btn" "perks btn"; row-gap: 4px; }
  .wc-perks { grid-area: perks; flex-direction: row; flex-wrap: wrap; column-gap: 16px; }
  .winner-card.is-perks { grid-template-areas: "label btn" "name btn" "perks btn" "live btn"; }
  .wc-live { grid-area: live; align-self: start; margin: 4px 0 0; }
  .wc-live + .wc-btn { margin-top: 0; }
}
@media (max-width: 720px) {
  .winner-card { display: flex; text-align: center; padding: 18px 16px 16px; }
  .winner-card.is-perks { text-align: left; }
  .wc-perks { flex-direction: column; }
  .wc-btn { margin-top: 8px; }
  .wc-when { display: block; } .wc-when::before { content: none; }
}
@media (max-width: 720px) { .raffle-grid { grid-template-columns: 1fr; } .sorteios-page .sec-title h1 { font-size: 30px; } }
.ticket-img { position: relative; width: 40%; flex: none; overflow: hidden; border-radius: 13px 0 0 13px; background: linear-gradient(135deg, #2c1d4d, #1a1430); display: grid; place-items: center; }
.ticket-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ticket:hover .ticket-img img { transform: scale(1.06); }
.ticket-img > svg { width: 40px; height: 40px; fill: rgba(180,139,255,.35); }
/* picote: linha tracejada + dois "furos" com a cor do fundo da seção */
.ticket-body { position: relative; flex: 1; min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 7px; border-left: 2px dashed #3a2f5c; }
.ticket-body::before, .ticket-body::after { content: ""; position: absolute; left: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--sec-bg); }
.ticket-body::before { top: -10px; } .ticket-body::after { bottom: -10px; }
.ticket-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ticket h3 { font-size: 16px; line-height: 1.25; }
.countdown { display: inline-flex; align-items: center; gap: 6px; color: var(--sec-text); font: 700 15px var(--display); }
.countdown svg { width: 15px; height: 15px; fill: currentColor; }
.ticket .meta { font-size: 12px; gap: 4px 10px; }
.ticket-buy { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ticket-buy .btn { flex: 1 0 auto; white-space: nowrap; }
.ticket .price { font-size: 17px; color: var(--sec-text); white-space: nowrap; }
.ticket .price small { font-size: 12px; }
#sorteios .tag.ok, .raffle-vars .tag.ok { color: #c9a6ff; border-color: rgba(145,71,255,.45); }

/* ===== Loja: produto com etiqueta de preço ===== */
.product { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s; }
.product:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.product.sold-out { opacity: .6; }
.product-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #26301a, #161b10); display: grid; place-items: center; }
.product-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product:hover .product-img img { transform: scale(1.06); }
.product-img > svg { width: 44px; height: 44px; fill: color-mix(in srgb, var(--accent) 25%, transparent); }
.price-sticker { position: absolute; top: 12px; right: 12px; display: flex; align-items: baseline; gap: 4px; background: var(--accent); color: #173404; font: 700 17px var(--display); padding: 5px 10px; border-radius: 6px; transform: rotate(4deg); box-shadow: 3px 3px 0 rgba(0,0,0,.35); }
.price-sticker small { font: 600 11px var(--font); }
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; align-items: flex-start; }
.product-body h3 { font-size: 17px; }
.product-body p { margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 1.4; flex: 1; }
.product-body .btn { width: 100%; }
.pill { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); }
.pill-ok { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }

/* ===== Parceiro: cupom recortável ===== */
.coupon-card { position: relative; display: flex; flex-direction: column; background: #1e1e28; border: 1.5px dashed #5c3a1f; border-radius: 14px; transition: border-color .2s; }
.coupon-card:hover { border-color: var(--sec); }
.cc-head { display: flex; gap: 12px; align-items: center; padding: 16px; flex: 1; }
.cc-logo { width: 56px; height: 56px; flex: none; border-radius: 12px; object-fit: cover; background: #fff; }
.cc-logo.ph { display: grid; place-items: center; background: var(--bg-2); color: var(--sec-text); font: 700 24px var(--display); }
.cc-name { min-width: 0; }
.cc-name span { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sec-text); }
.cc-name strong { display: block; font: 700 17px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-name p { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
/* linha de recorte com furos nas laterais */
.cc-cut { position: relative; height: 0; border-top: 1.5px dashed #3a2f26; margin: 0 14px; }
.cc-cut::before, .cc-cut::after { content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--sec-bg); }
.cc-cut::before { left: -25px; } .cc-cut::after { right: -25px; }
.cc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 16px 14px; min-height: 64px; box-sizing: border-box; }
.cc-code { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; padding: 0; color: var(--sec-text); cursor: pointer; font: 600 12px var(--font); }
.cc-code svg { width: 15px; height: 15px; fill: currentColor; }
.cc-code code { font: 700 15px var(--display); letter-spacing: .06em; }
.cc-code span { color: var(--muted); }
.cc-code:hover span { color: var(--text); }
.cc-visit { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: var(--sec); color: var(--sec-ink); font: 700 14px var(--display); text-decoration: none; transition: filter .15s, transform .15s; }
.cc-visit .ic { width: 14px; height: 14px; fill: currentColor; }
.cc-visit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.coupon-card .partner-link { margin: 0; font-size: 13px; white-space: nowrap; }
.cc-code code { white-space: nowrap; }

@media (max-width: 720px) {
  .ticket { min-height: 190px; }
  .cc-head { flex-direction: column; align-items: flex-start; padding: 14px; gap: 10px; }
  .cc-logo { width: 46px; height: 46px; }
  .cc-foot { flex-direction: column; align-items: flex-start; padding: 12px 14px; }
  .cc-code span { display: none; }
}

/* Cards de sorteio / loja */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-img { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #15151d; border-bottom: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.22,.8,.24,1); }
.card:hover .card-img img { transform: scale(1.05); }
.card-img-empty { display: grid; place-items: center; background: linear-gradient(135deg, #1f1f2b, #15151d); }
.card-img-empty svg { width: 44px; height: 44px; fill: #3a3a4a; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.price { font: 700 20px var(--display); color: var(--accent); }
.price small { font: 500 13px var(--font); color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.meta b { color: var(--text); font-weight: 600; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); }
.tag.ok { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.tag.end { color: var(--muted); }
.tag.mine { color: #c9a6ff; border-color: rgba(145,71,255,.4); }
.card.closed { opacity: .7; }
.winner { font-size: 14px; }
.winner b { color: var(--accent); }
.empty { color: var(--muted); padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }

.my-orders { margin-top: 32px; }
.my-orders h3 { margin-bottom: 12px; }
.my-orders ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.my-orders li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.my-orders li:last-child { border-bottom: 0; }

/* Modal */
.modal { background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 24px; width: min(440px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(0,0,0,.6); }
.modal h3 { font-size: 22px; margin-bottom: 12px; }
.modal label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
.modal input { width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 16px var(--font); }
.modal input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.modal .summary { display: flex; justify-content: space-between; margin-top: 16px; padding: 12px 14px; background: var(--bg); border-radius: 10px; font-size: 14px; }
.modal .summary b { color: var(--accent); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.error { color: var(--danger); font-size: 14px; margin: 12px 0 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); font-weight: 600; padding: 12px 20px; border-radius: 12px; z-index: 50; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: calc(100vw - 32px); }
.toast.err { background: var(--danger); color: #fff; }

/* Rodapé */
.footer { padding: 64px 0 28px; text-align: center; }
.live-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 26px; margin-bottom: 56px; transition: border-color .3s, background .3s; }
.live-cta-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.live-cta-text strong { font: 700 22px var(--display); display: flex; align-items: center; gap: 10px; }
.live-cta-text .muted { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-cta .btn { flex: none; height: 46px; padding: 0 22px; }
.live-cta .btn svg { width: 18px; height: 18px; fill: currentColor; }
.live-cta.is-live { border-color: rgba(255,59,78,.45); background: linear-gradient(90deg, rgba(255,59,78,.1), var(--card) 60%); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255,59,78,.6); animation: live-pulse 1.6s infinite; flex: none; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 10px rgba(255,59,78,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,78,0); } }
.footer-brand { font: 700 30px var(--display); text-decoration: none; letter-spacing: -.01em; }
.footer-brand > span { color: var(--text); }
.footer-main > p { margin: 6px 0 22px; }
.footer-socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.footer-socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, transform .15s, background .15s; }
.footer-socials svg { width: 19px; height: 19px; fill: #cfcfdb; transition: fill .15s; }
.footer-socials a:hover { border-color: var(--c); transform: translateY(-2px); background: var(--card); }
.footer-socials a:hover svg { fill: var(--c); }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px; margin-top: 24px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 22px; font-size: 13px; }
@media (max-width: 640px) {
  .live-cta { flex-direction: column; align-items: stretch; text-align: center; padding: 20px; margin-bottom: 44px; }
  .live-cta-text strong { justify-content: center; font-size: 20px; }
  .live-cta-text .muted { white-space: normal; }
  .live-cta .btn { width: 100%; }
  .footer-nav { gap: 8px 18px; }
}

/* Celular */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-player { order: -1; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 28px; }
  .hero-inner { gap: 22px; }
  .hero-actions .btn { flex: 1; white-space: nowrap; padding: 0 12px; font-size: 14px; }
  .hero::before { background: linear-gradient(180deg, rgba(12,12,17,.55), rgba(12,12,17,.85) 70%, var(--bg)); }
  .hero h1 { font-size: 38px; }
  .section { padding: 52px 0; --cut: 28px; }
  .section-alt { padding: calc(52px + var(--cut)) 0; }
  .sec-title h2 { font-size: 26px; }
  .btn-twitch .lbl-long { display: none; }
}

/* ===== Logo MACKZÃO: fonte e-sports, Z em verde ===== */
.brand, .hero h1, .footer-brand { font-family: "Russo One", var(--display); font-weight: 400; letter-spacing: .04em; }
.brand { font-size: 23px; }
.hero h1 { font-size: 60px; letter-spacing: .03em; line-height: 1; }
#hero-name { display: flex; align-items: center; gap: 12px; }
#hero-name .verified { width: .5em; height: .5em; flex: none; color: var(--accent); }
.logo-z { color: var(--accent); }
/* Logo em imagem (enviada na página Aparência) */
.brand-img { height: 1.15em; width: auto; max-width: 260px; vertical-align: middle; object-fit: contain; }
.footer-brand { display: inline-flex; flex-direction: column; align-items: center; font-size: 34px; line-height: 1; }
.footer-brand small { font: 600 11px var(--font); letter-spacing: .5em; margin-right: -.5em; color: var(--muted); margin-top: 8px; text-transform: uppercase; }
@media (max-width: 560px) { .hero h1 { font-size: 44px; } .brand { font-size: 20px; } }

/* ===== Caixas: Global (dourada) e Prata ===== */
#caixas { --sec: #ffc83d; --sec-ink: #3d2a02; --sec-text: #ffd76a; --sec-soft: rgba(255,200,61,.22); --sec-bg: #17171f; }
.boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }

/* Card com borda de metal (dourado ou prateado) */
/* Cores das caixas (escolhidas no painel) */
.box-t-ouro { --box: #ffc83d; --box-ink: #3d2a02; --box-soft: rgba(255,200,61,.14); --box-dark: #231c0b; --metal: linear-gradient(135deg, #fff1b8, #ffc83d 30%, #8a6510 55%, #ffd76a 80%, #fff1b8); --metal-text: linear-gradient(180deg, #fff1b8, #ffc83d 60%, #b8860b); }
.box-t-prata { --box: #c9ccd6; --box-ink: #1d1f26; --box-soft: rgba(201,204,214,.1); --box-dark: #191a20; --metal: linear-gradient(135deg, #ffffff, #c9ccd6 30%, #6b6f7a 55%, #e6e8ee 80%, #ffffff); --metal-text: linear-gradient(180deg, #ffffff, #c9ccd6 60%, #7a7e89); }
.box-t-bronze { --box: #e8935a; --box-ink: #3a1c08; --box-soft: rgba(232,147,90,.13); --box-dark: #22160f; --metal: linear-gradient(135deg, #ffe0c4, #e8935a 30%, #7a4120 55%, #f2b385 80%, #ffe0c4); --metal-text: linear-gradient(180deg, #ffe0c4, #e8935a 60%, #9a5226); }
.box-t-roxo { --box: #b57bff; --box-ink: #22103d; --box-soft: rgba(181,123,255,.14); --box-dark: #1b1426; --metal: linear-gradient(135deg, #f0e2ff, #b57bff 30%, #5b2bd1 55%, #d6b8ff 80%, #f0e2ff); --metal-text: linear-gradient(180deg, #f0e2ff, #b57bff 60%, #6b3fd6); }
.box-t-vermelho { --box: #ff5a5f; --box-ink: #3d0a0c; --box-soft: rgba(255,90,95,.13); --box-dark: #241012; --metal: linear-gradient(135deg, #ffd6d7, #ff5a5f 30%, #8a1c20 55%, #ff9a9d 80%, #ffd6d7); --metal-text: linear-gradient(180deg, #ffd6d7, #ff5a5f 60%, #a8262b); }
.box-t-azul { --box: #4db5ff; --box-ink: #062a45; --box-soft: rgba(77,181,255,.13); --box-dark: #0f1b26; --metal: linear-gradient(135deg, #d9f0ff, #4db5ff 30%, #14578a 55%, #9ad5ff 80%, #d9f0ff); --metal-text: linear-gradient(180deg, #d9f0ff, #4db5ff 60%, #1c6aa6); }
.box-t-verde { --box: #4ee08a; --box-ink: #06331a; --box-soft: rgba(78,224,138,.13); --box-dark: #0f2118; --metal: linear-gradient(135deg, #d8ffe7, #4ee08a 30%, #16703a 55%, #9df0bd 80%, #d8ffe7); --metal-text: linear-gradient(180deg, #d8ffe7, #4ee08a 60%, #1f8a4a); }
.box-card { padding: 2px; border-radius: 20px; background: var(--metal); background-size: 250% 250%; transition: transform .25s, box-shadow .25s; }
.box-card.is-ready { opacity: 1; animation: metal-shine 5s linear infinite; box-shadow: 0 20px 50px -25px color-mix(in srgb, var(--box) 60%, transparent); }
.box-card:hover { transform: translateY(-3px); }
@keyframes metal-shine { 0% { background-position: 0% 50%; } 100% { background-position: 250% 50%; } }
.box-inner { height: 100%; border-radius: 18px; background: #121016; padding: 28px 24px 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.box-art { position: relative; display: grid; place-items: center; width: 150px; height: 130px; }
.box-art::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--box) 32%, transparent), transparent 68%); }
.box-art svg { position: relative; width: 104px; height: 104px; fill: var(--box); filter: drop-shadow(0 12px 26px color-mix(in srgb, var(--box) 45%, transparent)); }
.box-card.is-ready .box-art svg { animation: box-wiggle 2.6s ease-in-out infinite; }
@keyframes box-wiggle { 0%, 78%, 100% { transform: rotate(0); } 82% { transform: rotate(-7deg); } 86% { transform: rotate(6deg); } 90% { transform: rotate(-4deg); } 94% { transform: rotate(2deg); } }
.box-name { margin-top: 10px; font: 400 30px "Russo One", var(--display); letter-spacing: .05em; background: var(--metal-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.box-kind { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--box); margin-bottom: 16px; }
.box-status { margin: 4px 0 10px; color: var(--muted); font-size: 14px; }
.btn-box { background: var(--box); color: var(--box-ink); min-width: 170px; }
.btn-box:hover { filter: brightness(1.08); }
.box-inner .btn { min-width: 170px; margin-top: auto; }
.box-odds { width: 100%; margin-top: 14px; font-size: 13px; text-align: left; border-top: 1px solid rgba(255,255,255,.06); padding-top: 12px; }
.box-odds summary { cursor: pointer; color: var(--muted); font-weight: 600; text-align: center; }
.box-odds summary:hover { color: var(--text); }
.box-odds ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.box-odds li { display: flex; align-items: center; gap: 8px; color: #cfcfdb; }
.box-odds li b { margin-left: auto; font-weight: 600; color: var(--muted); }
.r-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--r); }

/* Cores de raridade */
.r-comum { --r: #9a9eaa; } .r-raro { --r: #4b7bff; } .r-epico { --r: #a970ff; } .r-lendario { --r: #ffc83d; }

/* Janela da roleta */
.box-dialog { width: min(760px, calc(100vw - 24px)); padding: 0; background: #111117; color: var(--text); border: 1.5px solid var(--box); border-radius: 18px; }
.box-dialog::backdrop { background: rgba(0,0,0,.75); }
.box-stage { padding: 22px; }
.box-stage { position: relative; }
.box-stage h3 { font: 400 22px "Russo One", var(--display); color: var(--box); text-align: center; margin-bottom: 16px; }
.sound-toggle { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.sound-toggle:hover { color: var(--text); border-color: #3a3a48; }
.sound-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.roulette { position: relative; overflow: hidden; border-radius: 12px; background: #0a0a0e; padding: 12px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.roulette-track { display: flex; gap: 8px; width: max-content; padding-left: 50%; will-change: transform; }
.roulette-marker { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: var(--box); box-shadow: 0 0 12px var(--box); }
.r-item { width: 120px; height: 120px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 8px; border-radius: 10px; background: linear-gradient(180deg, #1c1c25, color-mix(in srgb, var(--r) 18%, #1c1c25)); border-bottom: 4px solid var(--r); text-align: center; }
.r-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.r-item img.is-coin { object-fit: contain; border-radius: 0; }
.r-item svg { width: 44px; height: 44px; fill: var(--r); }
.r-item span { font-size: 12px; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r-item.r-win { outline: 2px solid var(--r); box-shadow: 0 0 30px color-mix(in srgb, var(--r) 60%, transparent); transition: box-shadow .4s; }
.box-result { text-align: center; margin-top: 20px; animation: menu-in .4s ease-out; }
.box-result strong { display: block; font: 700 26px var(--display); margin-top: 8px; }
.box-result p { margin: 6px 0 0; }
.r-label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--r); border: 1px solid var(--r); padding: 3px 10px; border-radius: 999px; }
.box-stage .modal-actions { justify-content: center; }
.box-stage [hidden] { display: none; }

@media (max-width: 860px) {
  .boxes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .box-art svg { width: 84px; height: 84px; }
  .box-name { font-size: 26px; }
  .r-item { width: 96px; height: 96px; }
  .r-item svg { width: 34px; height: 34px; }
  .box-stage { padding: 18px 12px; }
}

/* ===== Botão flutuante das caixas (página inicial) ===== */

/* ===== Página /caixas ===== */
.caixas-page { padding-top: 56px; }
.caixas-page .sec-title h1 { margin: 12px 0 0; font-size: 40px; letter-spacing: -.01em; }
.box-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.box-feed li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 16px; background: #1e1e28; border: 1px solid var(--line); border-left: 3px solid var(--r, var(--line)); border-radius: 10px; }
.box-feed li .r-dot { width: 10px; height: 10px; }
.box-feed li div { min-width: 0; display: flex; flex-direction: column; }
.box-feed li b { font-weight: 600; font-size: 14px; }
.box-feed li span { color: var(--r, var(--muted)); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.box-feed li small { color: var(--muted); font-size: 12px; text-align: right; }
.box-feed li.r-lendario { background: linear-gradient(90deg, rgba(255,200,61,.12), #1e1e28 60%); }
.box-feed li.empty { display: block; color: var(--muted); border-left-color: var(--line); }
@media (max-width: 560px) {
  .caixas-page .sec-title h1 { font-size: 30px; }
  .box-feed li { grid-template-columns: auto 1fr; }
  .box-feed li small { grid-column: 2; text-align: left; }
}

/* Sorteios: aviso de sub */
.tag.subs { color: #c9a6ff; border-color: rgba(145,71,255,.45); background: rgba(145,71,255,.12); }
.sub-note { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: rgba(145,71,255,.12); color: #c9a6ff; font-size: 13px; font-weight: 600; }

/* Semana em blocos de dia, preenchendo o card */
.week-card { display: flex; flex-direction: column; }
.week-card .week-chips { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.week-card .week-chip { flex-direction: column; justify-content: center; gap: 6px; border-radius: 12px; padding: 14px 4px; text-align: center; font-size: 12px; background: var(--bg-2); }
.week-card .week-chip b { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.week-card .week-chip { position: relative; gap: 2px; }
.week-card .week-chip b { margin-bottom: 4px; }
.week-card .week-chip > span:not(.wk-tip) { white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--text); }
.week-card .week-chip.off > span { font-weight: 400; color: inherit; font-size: 11px; }
.week-card .week-chip .wk-end { white-space: nowrap; font-size: 11px; color: var(--muted); }
/* Dia com descrição: pontinho no canto; a frase aparece num balão ao passar o mouse ou tocar */
.wk-dot { position: absolute; top: 7px; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.week-chip.today .wk-dot { background: var(--accent); }
.week-chip[data-desc] { cursor: help; outline: none; }
.week-chip[data-desc]:hover, .week-chip[data-desc]:focus-visible { border-color: #4a4a58; }
.wk-tip { --ax: 50%; position: absolute; z-index: 5; bottom: calc(100% + 10px); left: 50%; display: flex; align-items: center; gap: 9px; width: max-content; max-width: 240px; padding: 9px 12px 9px 9px; border-radius: 12px; background: #1c1c26; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: 0 14px 30px -10px rgba(0,0,0,.7); text-align: left; text-transform: none; letter-spacing: 0; font: 600 13px/1.35 var(--font); color: var(--text); white-space: normal; opacity: 0; pointer-events: none; transform: translate(-50%, 6px); transition: opacity .15s, transform .15s; }
/* setinha apontando pro dia */
.wk-tip::after { content: ""; position: absolute; top: 100%; left: var(--ax); width: 10px; height: 10px; margin: -5px 0 0 -5px; background: #1c1c26; border-right: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); transform: rotate(45deg); }
.wk-tip-av { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg-2) center/cover; display: grid; place-items: center; font: 700 12px var(--display); font-style: normal; color: var(--accent); }
.wk-tip small { display: block; margin-bottom: 1px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.week-chip[data-desc]:hover .wk-tip, .week-chip[data-desc]:focus .wk-tip { opacity: 1; transform: translate(-50%, 0); }
/* Nas pontas o balão encosta na borda pra não sair da tela (a setinha continua no meio do dia) */
.week-card .week-chip:nth-child(1) .wk-tip { left: 0; --ax: 28px; transform: translate(0, 6px); }
.week-card .week-chip:nth-child(7) .wk-tip { left: auto; right: 0; --ax: calc(100% - 28px); transform: translate(0, 6px); }
.week-card .week-chip:nth-child(1):hover .wk-tip, .week-card .week-chip:nth-child(1):focus .wk-tip,
.week-card .week-chip:nth-child(7):hover .wk-tip, .week-card .week-chip:nth-child(7):focus .wk-tip { transform: none; }
@media (max-width: 560px) {
  .wk-tip { max-width: 220px; }
  .week-card .week-chip:nth-child(5) .wk-tip { left: 0; --ax: 28px; transform: translate(0, 6px); }
  .week-card .week-chip:nth-child(4) .wk-tip { left: auto; right: 0; --ax: calc(100% - 28px); transform: translate(0, 6px); }
  .week-card .week-chip:nth-child(5):hover .wk-tip, .week-card .week-chip:nth-child(5):focus .wk-tip,
  .week-card .week-chip:nth-child(4):hover .wk-tip, .week-card .week-chip:nth-child(4):focus .wk-tip { transform: none; }
  .week-card .week-chip:nth-child(7) .wk-tip { left: 50%; right: auto; --ax: 50%; transform: translate(-50%, 6px); }
  .week-card .week-chip:nth-child(7):hover .wk-tip, .week-card .week-chip:nth-child(7):focus .wk-tip { transform: translate(-50%, 0); }
}
}
.nl-desc { color: var(--accent); font-size: 14px; font-weight: 600; }
@media (max-width: 560px) { .week-card .week-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ===== Carregamento: tela de abertura (some em no máximo ~1,5 s) e esqueletos ===== */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--bg); transition: opacity .35s ease, visibility .35s; animation: splash-safety 0s 5s forwards; }
.splash.out { opacity: 0; visibility: hidden; }
@keyframes splash-safety { to { opacity: 0; visibility: hidden; } }
.splash-logo { font: 400 42px "Russo One", var(--display); letter-spacing: .04em; animation: splash-pulse 1.1s ease-in-out infinite; }
.splash-logo span { color: var(--accent); }
.splash-bar { width: 120px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; position: relative; }
.splash-bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent); border-radius: inherit; animation: splash-run 1s ease-in-out infinite; }
@keyframes splash-pulse { 50% { opacity: .45; transform: scale(.97); } }
@keyframes splash-run { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.sk { display: block; border-radius: var(--radius); background: linear-gradient(90deg, #17171f 0%, #24242f 50%, #17171f 100%); background-size: 200% 100%; animation: sk-shine 1.3s linear infinite; }
@keyframes sk-shine { to { background-position: -200% 0; } }
.sk-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.sk-row .sk { height: var(--sk-h, 200px); }
@media (max-width: 720px) { .sk-row .sk:nth-child(n+3) { display: none; } .sk-row { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .sk, .splash-logo, .splash-bar::after { animation: none; } }

/* ===== Caixas: "Resenhado" (sem prêmio): card grafite discreto, só a foto colorida chama atenção ===== */
.r-item.r-nada { --r: #55555f; background: #1a1a21; border: 1px dashed #44444f; border-bottom: 4px solid #55555f; }
.r-av { width: 56px; height: 56px; flex: none; border-radius: 50%; border: 2px solid #fff; background: #e9e9ef center/cover; display: grid; place-items: center; font: 700 18px var(--display); font-style: normal; color: #2a2a33; }
.r-item.r-nada span { color: #fff; }
.r-nada-res .r-av { width: 84px; height: 84px; margin: 0 auto 10px; border-width: 3px; animation: resenha-shake .5s ease-in-out 2; }
.box-result .r-nada-title { color: #fff; }
@keyframes resenha-shake { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.box-odds li.is-nada { color: var(--muted); }
.box-odds li small { color: var(--muted); font-size: 11px; }
@media (max-width: 560px) { .r-av { width: 42px; height: 42px; } }

/* ===== Sorteio por comprovante ===== */
.tag.proof { color: #ffab66; border-color: rgba(255,138,42,.45); background: rgba(255,138,42,.1); }
.ticket-proof .proof-rules { margin: 4px 0 8px; font-size: 13px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.btn-proof { background: #ff8a2a; color: #3d1a02; }
.btn-proof:hover { filter: brightness(1.08); }
.proof-st { margin: 8px 0 2px; padding: 7px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; line-height: 1.35; }
.proof-st.st-wait { color: #ffd166; background: rgba(255,209,102,.1); border: 1px solid rgba(255,209,102,.35); }
.proof-st.st-ok { color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.proof-st.st-no { color: #ff8a8a; background: rgba(255,107,107,.08); border: 1px solid rgba(255,107,107,.35); }
.proof-how { margin: 14px 0 4px; padding: 12px 14px; border-radius: 10px; background: rgba(255,138,42,.08); border: 1px solid rgba(255,138,42,.35); }
.proof-how b { color: #ffab66; font-size: 13px; letter-spacing: .04em; }
.proof-how p { margin: 4px 0 10px; font-size: 14px; line-height: 1.45; }
.proof-drop { display: grid !important; place-items: center; min-height: 64px; margin: 0 !important; border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 10px; color: var(--accent) !important; font-weight: 600; cursor: pointer; text-align: center; padding: 10px; }
.proof-drop.has-file { border-style: solid; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.proof-priv { font-size: 12px; margin: 10px 0 0; }

/* Caixa Prata: depois de seguir, conferir de novo */
.box-recheck { margin-top: 8px; background: none; border: 0; color: var(--muted); font: 600 12px var(--font); text-decoration: underline; cursor: pointer; }
.box-recheck:hover { color: var(--text); }

/* Últimos prêmios / Seus prêmios: paginação */
.hist-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.hist-pager[hidden] { display: none; }
.hist-pager button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 16px; cursor: pointer; }
.hist-pager button:hover:not(:disabled) { border-color: var(--muted); }
.hist-pager button:disabled { opacity: .3; cursor: default; }

/* ===== Rifa ===== */
.tag.rifa { color: #7ee8d8; border-color: rgba(50,188,173,.5); background: rgba(50,188,173,.12); }
.btn-rifa { background: #32bcad; color: #032a25; }
.btn-rifa:hover { filter: brightness(1.08); }
.rf-mini { display: flex; flex-direction: column; gap: 5px; margin: 6px 0 4px; font-size: 13px; color: var(--muted); }
.rf-mini b { color: var(--text); }
.rf-mini .goal-bar { height: 6px; }
.rifa-dialog { width: min(820px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 22px; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 18px; }
.rifa-dialog::backdrop { background: rgba(0,0,0,.7); }
.rf-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rf-head h3 { font-size: 22px; margin: 6px 0 2px; }
.rf-head p { margin: 0; font-size: 14px; }
.rf-x { background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; padding: 4px 8px; }
.rf-x:hover { color: var(--text); }
.rf-progress { display: flex; align-items: center; gap: 12px; margin: 14px 0 18px; font-size: 13px; color: var(--muted); }
.rf-progress .goal-bar { flex: 1; height: 10px; }
.rf-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.rf-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rf-n { height: 46px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: 700 16px var(--display); cursor: pointer; transition: transform .1s, background .15s, border-color .15s; }
.rf-n.free:hover { border-color: #32bcad; transform: translateY(-1px); }
.rf-n.sel { background: var(--accent); color: #173404; border-color: var(--accent); }
.rf-n.mine { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); border-color: var(--accent); cursor: default; }
.rf-n.mine-paid { background: color-mix(in srgb, var(--accent) 25%, transparent); color: var(--accent); border-color: var(--accent); cursor: default; }
.rf-n.held { background: rgba(255,209,102,.1); color: #ffd166; border-color: rgba(255,209,102,.45); cursor: not-allowed; }
.rf-n.paid { background: #1a1a22; color: #55556a; text-decoration: line-through; cursor: not-allowed; }
.rf-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--muted); }
.rf-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.lg-free { background: var(--card); border: 1px solid #555; } .lg-sel { background: var(--accent); } .lg-held { background: #ffd166; } .lg-paid { background: #2a2a34; }
.rf-side { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.rf-side p { margin: 0; }
.rf-side-t { font: 700 18px var(--display); }
.rf-total { color: var(--text); font-size: 16px; }
.rf-hint { font-size: 13px; line-height: 1.45; }
.rf-timer { color: #ffd166; font-weight: 700; font-size: 15px; }
.rf-pix { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 10px; border: 1px dashed #32bcad; background: rgba(50,188,173,.07); }
.rf-pix span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7ee8d8; }
.rf-pix b { font-size: 15px; word-break: break-all; }
.rf-pix small { color: var(--muted); }
.rf-pix .btn { align-self: flex-start; margin-top: 6px; }
.rf-more { align-self: flex-start; }
.rf-form { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.rf-form input:not([type=file]) { height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 15px var(--font); }
.rf-cancel { background: none; border: 0; color: var(--muted); font: 600 13px var(--font); cursor: pointer; text-decoration: underline; }
.rf-cancel:hover { color: #ff8a8a; }
@media (max-width: 720px) {
  .rifa-dialog { padding: 16px; }
  .rf-body { grid-template-columns: 1fr; }
  .rf-n { height: 42px; font-size: 15px; }
}

/* Rifa: números premiados */
.rf-gift { font-size: 13px; font-weight: 600; color: #ffd77a; margin: 2px 0 4px; }
.proof-st.st-gift { color: #ffd77a; background: rgba(255,200,61,.1); border: 1px solid rgba(255,200,61,.4); }
.rf-n { position: relative; }
.rf-n.gift.free, .rf-n.gift.sel { box-shadow: inset 0 0 0 1px rgba(255,200,61,.6); }
.rf-g { position: absolute; top: -7px; right: -5px; font-size: 13px; font-style: normal; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.rf-n.paid .rf-g { opacity: .5; }
.rf-gifts { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,200,61,.35); background: rgba(255,200,61,.06); font-size: 13px; }
.rf-gifts b { color: #ffd77a; }
.rf-gifts ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.rf-gifts li { display: flex; align-items: center; gap: 8px; }
.rf-gifts small { color: var(--muted); }
.rf-gifts p { margin: 6px 0 0; font-size: 12px; }
.rf-gn { min-width: 26px; height: 22px; padding: 0 5px; border-radius: 6px; display: inline-grid; place-items: center; background: rgba(255,200,61,.18); color: #ffd77a; font: 700 12px var(--display); }

/* ===== Página de rifas: passos e rifa em destaque ===== */
.rifa-steps { list-style: none; margin: 0 auto 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 900px; }
.rifa-steps li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.rifa-steps b { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #32bcad; color: #032a25; font: 700 16px var(--display); }
.rifa-steps span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rifa-steps strong { font-size: 15px; }
.rifa-steps small { font-size: 12px; color: var(--muted); }
.rifa-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid rgba(50,188,173,.4); box-shadow: 0 30px 60px -35px rgba(50,188,173,.45); }
.rf-feat-img { min-height: 320px; background: #10201e; display: grid; place-items: center; }
.rf-feat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rf-feat-img svg { width: 90px; height: 90px; fill: #32bcad; opacity: .5; }
.rf-feat-body { padding: 26px 28px; display: flex; flex-direction: column; gap: 12px; }
.rf-feat-body h2 { margin: 0; font-size: 28px; line-height: 1.15; }
.rf-feat-desc { margin: -4px 0 0; font-size: 15px; line-height: 1.5; }
.rf-feat-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; color: var(--muted); }
.rf-feat-facts span { display: inline-flex; align-items: center; gap: 6px; }
.rf-feat-facts svg { width: 16px; height: 16px; fill: #7ee8d8; }
.rf-feat-facts b { color: var(--text); }
.rf-feat-facts span:first-child b[data-ends] { color: #7ee8d8; }
.rf-feat-progress { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.rf-feat-progress b { color: var(--text); }
.rf-feat-progress .goal-bar { height: 10px; }
.rf-feat-btn { align-self: flex-start; padding: 14px 26px; font-size: 16px; margin-top: auto; }
.tag.gift { color: #ffd77a; border-color: rgba(255,200,61,.45); background: rgba(255,200,61,.1); }
@media (max-width: 860px) {
  .rifa-steps { grid-template-columns: 1fr; gap: 8px; }
  .rifa-steps li { padding: 10px 14px; }
  .rifa-feature { grid-template-columns: 1fr; }
  .rf-feat-img { min-height: 0; aspect-ratio: 16 / 10; }
  .rf-feat-body { padding: 20px; }
  .rf-feat-body h2 { font-size: 22px; }
  .rf-feat-btn { align-self: stretch; text-align: center; justify-content: center; }
}

/* ===== Sorteios: card vertical (imagem larga em cima, informações embaixo) ===== */
.ticket { flex-direction: column; min-height: 0; }
.ticket-img { width: 100%; aspect-ratio: 16 / 9; border-radius: 13px 13px 0 0; }
.ticket-body { border-left: 0; border-top: 2px dashed #3a2f5c; padding: 14px 16px 16px; }
/* furinhos do ticket nas pontas da linha tracejada */
.ticket-body::before, .ticket-body::after { top: -10px; bottom: auto; }
.ticket-body::before { left: -10px; } .ticket-body::after { left: auto; right: -10px; }
.ticket h3 { font-size: 17px; }
@media (max-width: 720px) { .ticket { min-height: 0; } }

/* Card de sorteio: preço dentro do botão ("Participar · 20 pts" / "Exclusivo pra subs") */
.ticket-buy .btn-buy { flex: 1; justify-content: center; gap: 5px; padding: 11px 14px; font-size: 14px; }
.btn-buy span { font-weight: 500; opacity: .85; }
/* Sorteio com comprovante ("Participar via Rent"): verde-limão do site */
.btn-proof.btn-buy { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.btn-proof.btn-buy:hover { background: color-mix(in srgb, var(--accent) 80%, #fff); color: var(--accent-ink); }

/* Páginas da loja e dos parceiros: todos os cards em grade (sem carrossel) */
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.page-group { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 14px; font-size: 22px; }
.page-group:first-child { margin-top: 0; }
.page-group small { font: 600 14px var(--font); color: var(--muted); }
@media (max-width: 560px) { .page-grid { grid-template-columns: 1fr; } }

/* Balão do saldo: link pra página da moeda */
.user-chip .chip-info .chip-more { display: block; margin-top: 6px; padding: 0; font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ===== Página da moeda: como ganhar + calculadora ===== */
.coins-base { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.coins-card { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; padding: 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.coins-card .coin { grid-row: span 2; width: 48px; height: 48px; }
.coins-card b { font: 700 32px/1 var(--display); color: #f2c94c; }
.coins-card span { color: var(--muted); font-size: 14px; }
.coins-card.is-sub { background: #1d1530; border-color: #9147ff; }
.coins-card.is-sub b { color: #c9a8ff; }
.coins-bonus { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.coins-bonus div { padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.coins-bonus b { display: block; font: 700 22px var(--display); color: var(--text); }
.coins-calc { padding: 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.cc-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cc-controls label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.cc-controls input[type=range] { width: 180px; accent-color: var(--accent); }
.cc-controls b { color: var(--text); min-width: 34px; }
.cc-sub input { width: 18px; height: 18px; accent-color: #9147ff; }
.cc-result { display: flex; align-items: center; gap: 8px; margin: 16px 0 12px; font-size: 17px; }
.cc-result b { font: 700 26px var(--display); color: #f2c94c; }
.cc-items { display: flex; flex-direction: column; gap: 6px; }
.cc-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--bg-2); text-decoration: none; font-size: 14px; color: var(--muted); }
.cc-item:hover { background: #1e1e28; }
.cc-item > span:first-child { color: var(--text); font-weight: 600; }
.cc-item small { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; color: var(--muted); font-weight: 500; }
.cc-item .is-ok { color: var(--accent); font-weight: 600; }
.coins-warn { margin: 20px 0 0; padding: 12px 16px; border-radius: 12px; border: 1px solid #6b4a12; background: #2a1f0c; color: #f2c94c; font-size: 14px; }
.coins-intro { margin: -6px 0 22px; font-size: 15px; } .coins-intro a { color: var(--accent); }

/* Aviso de login: lista do que a pessoa ganha ao conectar a Twitch */
.login-perks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.login-perks li { display: flex; gap: 10px; align-items: center; }
.login-perks li::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-size: 12px; font-weight: 800; }

/* Aviso de login: botões no centro */
.modal.is-center .modal-actions { justify-content: center; }

/* Caixas: botão "Itens e chances" abre uma janela com os prêmios */
.box-odds-btn { width: 100%; margin-top: 14px; padding: 12px 0 0; border: 0; border-top: 1px solid rgba(255,255,255,.06); background: none; color: var(--muted); font: 600 13px var(--font); cursor: pointer; }
.box-odds-btn:hover { color: var(--text); }
.odds-dialog { width: min(640px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); color: var(--text); }
.odds-dialog::backdrop { background: rgba(5,5,10,.72); backdrop-filter: blur(3px); }
.odds-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.odds-head h3 { font-size: 18px; }
.odds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.odds-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.odds-tile .r-item { width: 100%; }
.odds-tile b { font: 700 16px var(--display); }
.odds-tile small { margin-top: -4px; color: var(--muted); font-size: 11px; }
@media (max-width: 560px) { .odds-grid { grid-template-columns: repeat(2, 1fr); } }

/* Loja: etiquetas do item lado a lado e a de "Só subs" em roxo */
.product-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill.pill-sub { color: #d2b8ff; background: rgba(145,71,255,.14); border-color: rgba(145,71,255,.45); }

/* ===== Hall da fama: placas douradas ===== */
.hall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.hall-plate { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 14px 18px; border-radius: 16px; text-align: center; text-decoration: none; color: var(--text);
  background: linear-gradient(180deg, #2a2410, #15120a); border: 1px solid #6b5a1e; box-shadow: inset 0 1px 0 rgba(242,201,76,.18); }
.hall-plate img, .hall-ph { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid #f2c94c; box-shadow: 0 0 18px -4px #f2c94c; }
.hall-ph { display: grid; place-items: center; background: #f2c94c; color: #2a2005; font: 700 24px var(--display); }
.hall-plate b { font: 700 16px var(--display); margin-top: 4px; }
.hall-plate > span:last-child { color: #b8a670; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.hall-plate.is-empty { background: none; border: 1.5px dashed #44444f; box-shadow: none; color: var(--muted); }
.hall-plate.is-empty:hover { border-color: #f2c94c; color: var(--text); }
.hall-plus { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed #55555f; font-size: 28px; }

/* Meus resgates: valor com a moeda e link do Hall da fama */
.my-orders li .muted { display: inline-flex; align-items: center; gap: 5px; }
.my-orders li a { color: #f2c94c; font-weight: 600; text-decoration: none; }
.my-orders li a:hover { text-decoration: underline; }

/* ===== Hall da fama: card pequeno ao lado do título da loja ===== */
.sec-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.hall-chip { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 12px; background: #1a160a; border: 1px solid #6b5a1e; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.hall-chip[hidden] { display: none; }
.hall-chip:hover { border-color: #f2c94c; transform: translateY(-2px); }
.hc-faces { display: flex; }
.hc-faces img, .hc-faces i { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid #f2c94c; background: #f2c94c; color: #2a2005; display: grid; place-items: center; font: normal 700 12px var(--display); }
.hc-faces > * + * { margin-left: -9px; }
.hc-text { display: flex; flex-direction: column; line-height: 1.25; }
.hc-text small { color: #f2c94c; font-size: 11px; font-weight: 700; }
.hc-text b { font-size: 13px; }
@media (max-width: 640px) { .sec-side { align-items: flex-start; } }

/* Balão da foto: dois links (Meus resgates e Como ganhar mais) */
.user-chip .chip-info .chip-more + .chip-more { margin-top: 4px; color: var(--muted); }

/* ===== Página Meus resgates: cabeçalho da conta + 4 blocos paginados ===== */
.acc-head { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.acc-head img, .acc-ph { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.acc-ph { display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 700 24px var(--display); }
.acc-who { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.acc-who b { font: 700 22px var(--display); }
.acc-sub { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: #d2b8ff; background: rgba(145,71,255,.16); border: 1px solid rgba(145,71,255,.5); text-decoration: none; }
.acc-sub.is-off { color: var(--muted); background: none; border-color: var(--line); }
.acc-sub.is-off:hover { color: #d2b8ff; border-color: #9147ff; }
.acc-bal { flex-basis: 100%; display: inline-flex; align-items: center; gap: 6px; color: #f2c94c; font-weight: 700; }
.acc-more { color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; }
.acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
@media (max-width: 860px) { .acc-grid { grid-template-columns: 1fr; } .acc-head { flex-wrap: wrap; } }
.acc-block h2 { font-size: 19px; margin-bottom: 10px; }
.mr-list { list-style: none; margin: 0; padding: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.mr-list li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.mr-list li:last-child { border-bottom: 0; }
.mr-list li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mr-list b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.mr-list small { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.mr-st { flex: none; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; }
.mr-st.st-ok { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.mr-st.st-wait { color: #ffd166; border-color: rgba(255,209,102,.4); }
.mr-empty { color: var(--muted); font-size: 14px; }
.mr-empty a { color: var(--accent); }
.acc-nums { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.acc-nums i { min-width: 26px; padding: 2px 5px; border-radius: 6px; text-align: center; font: normal 700 12px var(--display); background: #1e1e28; color: var(--muted); }
.acc-nums i.is-paid { background: rgba(50,188,173,.18); color: #7ee8d8; }
.acc-nums i.is-wait { background: rgba(255,209,102,.14); color: #ffd166; }
.acc-pager { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.acc-pager button { min-width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: 600 13px var(--font); cursor: pointer; }
.acc-pager button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 560px) { .mr-list li { flex-wrap: wrap; } }

/* Rifa encerrada na página da conta: ganhador, "você ganhou" e prêmios dos números */
.mr-st.st-win { color: #2a2005; background: #f2c94c; border-color: #f2c94c; }
.acc-reveal { cursor: pointer; background: none; font-family: var(--font); }
.acc-reveal:hover { color: var(--text); border-color: var(--muted); }
.acc-winner { margin-top: 6px; font-size: 13px; color: #f2c94c; }
.acc-winner[hidden] { display: none; }
.acc-winner b { display: inline; font-size: 13px; color: var(--text); }
.acc-won { margin-top: 4px; font-size: 12px; color: #f2c94c; }
.acc-nums i.is-win { background: #f2c94c; color: #2a2005; }
