:root {
  --verde: #009c3b;
  --verde-esc: #00692a;
  --verde-cl: #e3f5ea;
  --amarelo: #ffdf00;
  --amarelo-esc: #e6c700;
  --azul: #002776;
  --azul-cl: #e6ecfa;
  --branco: #fff;
  --fundo: #f4f7f5;
  --texto: #14202b;
  --suave: #5d6c77;
  --borda: #dce5e0;
  --erro: #b3261e;
  --raio: 16px;
  --sombra: 0 4px 18px rgba(0, 39, 118, 0.1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--fundo);
  color: var(--texto);
  line-height: 1.45;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h2 { color: var(--azul); font-size: 1.6rem; }
a { color: var(--azul); }
.hidden { display: none !important; }
.muted { color: var(--suave); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ---------- botões e formulários ---------- */
button, .btn {
  font: inherit;
  font-weight: 700;
  background: var(--verde);
  color: var(--branco);
  border: 0;
  border-radius: 12px;
  padding: 11px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform .08s, filter .15s, box-shadow .15s;
}
button:hover, .btn:hover { filter: brightness(1.08); }
button:active, .btn:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: default; }
button.gold, .btn.gold { background: var(--amarelo); color: var(--azul); box-shadow: 0 2px 0 var(--amarelo-esc); }
button.blue, .btn.blue { background: var(--azul); }
button.ghost, .btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
button.red { background: var(--erro); }
button.sm { padding: 6px 11px; font-size: .85rem; border-radius: 9px; }
button.lg { padding: 14px 26px; font-size: 1.1rem; border-radius: 14px; }
label { display: block; margin: 12px 0 4px; font-weight: 600; font-size: .9rem; }
input, select {
  width: 100%;
  font: inherit;
  padding: 11px 12px;
  border: 2px solid var(--borda);
  border-radius: 11px;
  background: var(--branco);
}
input:focus, select:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px var(--azul-cl); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.msg { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fff8c9; border-left: 5px solid var(--amarelo-esc); font-size: .92rem; }
.msg.err { background: #fde8e6; border-color: var(--erro); }
.msg.ok { background: var(--verde-cl); border-color: var(--verde); }

/* ---------- topo ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--verde); border-bottom: 5px solid var(--amarelo); color: var(--branco); }
.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 62px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--branco); text-decoration: none; font-weight: 800; font-size: 1.2rem; }
.diamond { width: 34px; height: 34px; background: var(--amarelo); transform: rotate(45deg); border-radius: 5px; display: grid; place-items: center; border: 3px solid var(--azul); flex: none; }
.diamond i { width: 12px; height: 12px; border-radius: 50%; background: var(--azul); display: block; }
.top nav { display: flex; gap: 4px; margin-left: 10px; }
.top nav a { color: var(--branco); text-decoration: none; padding: 8px 11px; border-radius: 9px; font-weight: 600; opacity: .92; }
.top nav a:hover { background: rgba(255, 255, 255, .16); }
.top .grow { flex: 1; }
.userbox { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.userbox .hello { font-weight: 600; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #00b349 0%, transparent 60%), linear-gradient(160deg, var(--verde) 0%, var(--verde-esc) 100%); color: var(--branco); padding: 46px 0 70px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: auto 0 -1px 0; height: 46px; background: var(--fundo); clip-path: polygon(0 100%, 100% 100%, 100% 0, 50% 70%, 0 0); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--amarelo); }
.hero p.lead { font-size: 1.15rem; max-width: 34ch; opacity: .95; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.tag { display: inline-block; background: var(--amarelo); color: var(--azul); font-weight: 800; font-size: .8rem; letter-spacing: .6px; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; margin-bottom: 14px; }
.hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; transform: rotate(-4deg); }
.hero-art div { background: var(--branco); border-radius: 18px; aspect-ratio: 1; display: grid; place-items: center; font-size: clamp(2rem, 6vw, 3.4rem); box-shadow: 0 8px 22px rgba(0, 0, 0, .22); border: 4px solid var(--amarelo); animation: bob 3.2s ease-in-out infinite; }
.hero-art div:nth-child(even) { border-color: var(--azul); animation-delay: -1.4s; }
.hero-art div:nth-child(3n) { animation-delay: -.7s; }
@keyframes bob { 50% { transform: translateY(-7px); } }
@media (max-width: 760px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { max-width: 300px; margin: 0 auto; } .top nav { display: none; } }

/* ---------- seções ---------- */
section.block { padding: 34px 0 10px; }
.sec-head { margin-bottom: 18px; }
.sec-head p { margin: 0; color: var(--suave); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.card { background: var(--branco); border-radius: var(--raio); padding: 18px; box-shadow: var(--sombra); border: 1px solid var(--borda); }
.empty { text-align: center; padding: 34px 18px; color: var(--suave); }
.empty .big { font-size: 3rem; display: block; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .75rem; font-weight: 800; background: var(--amarelo); color: var(--azul); text-transform: uppercase; letter-spacing: .4px; }
.badge.run { background: var(--verde); color: var(--branco); }
.badge.end { background: #d9e0dc; color: #3b4a44; }
.game h3 { color: var(--azul); font-size: 1.2rem; margin: 8px 0 4px; }
.prize { display: flex; gap: 8px; align-items: center; background: var(--azul-cl); border-radius: 11px; padding: 9px 11px; margin: 10px 0; font-weight: 600; color: var(--azul); }
.bar { height: 9px; background: #e4ebe7; border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--verde), var(--amarelo)); border-radius: 99px; }
.game .last { font-size: 2rem; }

/* ---------- animais ---------- */
.zoo { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.cell .e { display: block; font-size: 2.1rem; }
.cell { background: var(--branco); border: 3px solid var(--verde); border-radius: 14px; text-align: center; padding: 8px 2px 7px; font-size: .82rem; font-weight: 700; position: relative; transition: .2s; }
.cell .n { position: absolute; top: 3px; left: 7px; font-size: .7rem; color: var(--azul); }
.cell .e { display: block; font-size: 2.1rem; line-height: 1.25; }
.cell small { display: block; font-weight: 500; font-size: .66rem; color: var(--suave); letter-spacing: .2px; }
.cell.hit { background: var(--amarelo); border-color: var(--azul); color: var(--azul); transform: scale(1.03); }
.cell.off { opacity: .4; border-style: dashed; }

/* ---------- como jogar ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: s; }
.step { background: var(--branco); border-radius: var(--raio); padding: 20px 18px 18px; box-shadow: var(--sombra); border-top: 6px solid var(--amarelo); position: relative; }
.step:nth-child(2) { border-top-color: var(--verde); }
.step:nth-child(3) { border-top-color: var(--azul); }
.step b { display: block; font-size: 1.1rem; color: var(--azul); margin-bottom: 4px; }
.step span.ico { font-size: 2rem; display: block; margin-bottom: 6px; }
.notice { background: var(--azul); color: var(--branco); border-radius: var(--raio); padding: 16px 18px; margin-top: 22px; font-size: .95rem; }
footer { margin-top: 44px; background: var(--azul); color: #cfd9f5; padding: 26px 0; text-align: center; font-size: .88rem; border-top: 5px solid var(--amarelo); }

/* ---------- janelas (dialog) ---------- */
dialog { border: 0; border-radius: 20px; padding: 0; width: min(94vw, 460px); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); color: var(--texto); }
dialog.wide { width: min(96vw, 760px); }
dialog::backdrop { background: rgba(0, 20, 60, .6); backdrop-filter: blur(3px); }
.dlg-head { background: var(--verde); border-bottom: 5px solid var(--amarelo); color: var(--branco); padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dlg-head h3 { margin: 0; font-size: 1.2rem; }
.dlg-head button { background: rgba(255, 255, 255, .2); padding: 4px 11px; }
.dlg-body { padding: 18px; max-height: 80vh; overflow: auto; }
.tabs { display: flex; gap: 6px; margin-bottom: 8px; background: #e9efec; padding: 5px; border-radius: 13px; }
.tabs button { flex: 1; background: transparent; color: var(--azul); padding: 9px; }
.tabs button.on { background: var(--azul); color: var(--branco); }

/* ---------- sala ---------- */
.reveal { text-align: center; background: linear-gradient(180deg, var(--verde-cl), #fff); border-radius: 16px; padding: 14px; margin-bottom: 14px; border: 2px solid var(--verde); }
.reveal .e { font-size: 4.6rem; display: block; line-height: 1.1; animation: pop .5s; }
@keyframes pop { 0% { transform: scale(.3) rotate(-20deg); opacity: 0; } 70% { transform: scale(1.18); } 100% { transform: scale(1); opacity: 1; } }
.win { background: linear-gradient(90deg, var(--verde), var(--azul)); color: var(--branco); border-radius: 14px; padding: 16px; text-align: center; font-weight: 700; margin-bottom: 14px; font-size: 1.05rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 9px; }
h4 { margin: 18px 0 8px; color: var(--azul); }

/* ---------- admin ---------- */
.admin-top { background: var(--azul); border-bottom-color: var(--amarelo); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--branco); border-radius: var(--raio); padding: 16px; box-shadow: var(--sombra); border-left: 6px solid var(--verde); }
.stat:nth-child(2) { border-color: var(--amarelo); }
.stat:nth-child(3) { border-color: var(--azul); }
.stat b { display: block; font-size: 2rem; color: var(--azul); line-height: 1.1; }
.stat span { color: var(--suave); font-size: .85rem; font-weight: 600; }
.atabs { display: flex; gap: 6px; margin: 18px 0; flex-wrap: wrap; }
.atabs button { background: var(--branco); color: var(--azul); box-shadow: inset 0 0 0 2px var(--borda); }
.atabs button.on { background: var(--azul); color: var(--branco); box-shadow: none; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.chip { background: var(--amarelo); color: var(--azul); border-radius: 99px; padding: 2px 9px; font-size: .8rem; font-weight: 700; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--borda); vertical-align: middle; }
th { color: var(--azul); font-size: .8rem; text-transform: uppercase; letter-spacing: .4px; }
.scroll { overflow-x: auto; }
.drawbox { display: flex; align-items: center; gap: 14px; background: var(--verde-cl); border-radius: 14px; padding: 10px 14px; margin: 10px 0; }
.drawbox .e { font-size: 3rem; line-height: 1; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--azul); color: var(--branco); padding: 12px 20px; border-radius: 12px; font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); z-index: 99; max-width: 92vw; }
.toast.err { background: var(--erro); }
.login-card { max-width: 420px; margin: 40px auto; }

/* ======================================================
   v3: simulação, rodadas ao vivo, cartelas 5x5, carteira
   ====================================================== */
.simbar { background: #fff4b8; color: #4a3b00; text-align: center; font-size: .85rem; font-weight: 600; padding: 7px 12px; border-bottom: 1px solid #e6cf4a; }
.chip-wallet { background: rgba(255,255,255,.18); color: var(--branco); border-radius: 99px; padding: 7px 14px; font-weight: 800; cursor: pointer; border: 2px solid rgba(255,255,255,.55); }
.chip-wallet:hover { background: rgba(255,255,255,.3); }
.iconbtn { background: rgba(255,255,255,.18); padding: 7px 10px; border-radius: 10px; font-size: 1.05rem; }

.face { position: relative; display: inline-grid; place-items: center; line-height: 1; }
.face > * { grid-area: 1 / 1; }
.face img { width: 1em; height: 1em; object-fit: contain; border-radius: 8px; }
.face b { font-weight: 400; }

.badge.live { background: #e11d48; color: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.badge.open { background: var(--verde); color: #fff; }
.badge.closed { background: var(--amarelo); color: var(--azul); }
.badge.cancel { background: #d9d9d9; color: #555; }

.round .when { font-size: .9rem; color: var(--suave); margin: 2px 0 8px; }
.round .count { font-weight: 800; color: var(--azul); font-variant-numeric: tabular-nums; }
.prizegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0; }
.prizegrid div { background: var(--azul-cl); border-radius: 10px; padding: 6px 9px; font-size: .78rem; color: var(--azul); }
.prizegrid div b { display: block; font-size: 1rem; }
.prizegrid div.jack { background: linear-gradient(90deg, #fff4b8, #ffe46a); color: #4a3b00; }
.prizegrid div.done { opacity: .55; text-decoration: line-through; }
.price { font-weight: 800; color: var(--verde-esc); }

/* sala */
.livebox { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, var(--azul), #0a3a9a); color: #fff; border-radius: 18px; padding: 14px 18px; margin-bottom: 12px; }
.livebox .face { font-size: 4.6rem; background: #fff; border-radius: 20px; padding: 6px; border: 4px solid var(--amarelo); }
.livebox .ball { font-size: 3rem; font-weight: 900; line-height: 1; color: var(--amarelo); }
.livebox .animal { font-size: 1.3rem; font-weight: 800; }
.livebox small { opacity: .8; }
.livebox.pop .face { animation: pop .5s; }
.timer { font-size: 2.6rem; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--amarelo); line-height: 1; }
.recent { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.recent span { background: var(--branco); border: 2px solid var(--azul); border-radius: 12px; padding: 2px 7px; font-weight: 800; font-size: .85rem; color: var(--azul); display: inline-flex; gap: 4px; align-items: center; }
.recent .face { font-size: 1.2rem; }
.prizelist { display: grid; gap: 8px; margin-bottom: 14px; }
.prizerow { display: flex; align-items: center; gap: 12px; background: var(--branco); border: 2px solid var(--borda); border-radius: 14px; padding: 8px 12px; }
.prizerow.won { background: var(--verde-cl); border-color: var(--verde); }
.prizerow .t { flex: 1; font-weight: 800; color: var(--azul); }
.prizerow .t small { display: block; font-weight: 500; color: var(--suave); }
.prizerow .v { font-weight: 900; font-size: 1.1rem; color: var(--verde-esc); }
.pat { display: grid; grid-template-columns: repeat(5, 8px); gap: 2px; }
.pat i { width: 8px; height: 8px; background: #dfe6e2; border-radius: 2px; display: block; }
.pat i.on { background: var(--verde); }
.buybox { background: #fffbe0; border: 2px solid var(--amarelo-esc); border-radius: 16px; padding: 14px; margin-bottom: 14px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 38px; height: 38px; padding: 0; font-size: 1.3rem; }
.stepper input { width: 64px; text-align: center; font-weight: 800; font-size: 1.1rem; }

.mycards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 14px; }
.bcard { background: var(--branco); border: 3px solid var(--verde); border-radius: 16px; padding: 8px; box-shadow: var(--sombra); }
.bcard.won { border-color: var(--amarelo-esc); box-shadow: 0 0 0 4px #fff4b8, var(--sombra); }
.bcard header { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; font-weight: 800; color: var(--azul); padding: 0 4px 6px; }
.bgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.bc { position: relative; aspect-ratio: 1; background: #f3f7f5; border: 2px solid var(--borda); border-radius: 9px; display: grid; place-items: center; font-size: 1.5rem; line-height: 1; }
.bc .num { position: absolute; bottom: 1px; right: 4px; font-size: .62rem; font-weight: 800; color: var(--suave); }
.bc.hit { background: var(--amarelo); border-color: var(--azul); }
.bc.hit .num { color: var(--azul); }
.bc.free { background: var(--azul); border-color: var(--azul); color: #fff; font-size: .62rem; font-weight: 900; letter-spacing: .5px; }
.board { display: grid; grid-template-columns: repeat(15, 1fr); gap: 3px; }
.board span { text-align: center; font-size: .7rem; font-weight: 800; padding: 4px 0; border-radius: 6px; background: #e9efec; color: #7b8a83; }
.board span.hit { background: var(--azul); color: var(--amarelo); }
.winslist { display: grid; gap: 6px; }
.winrow { display: flex; justify-content: space-between; gap: 8px; background: var(--verde-cl); border-radius: 10px; padding: 8px 12px; font-size: .9rem; }
.winrow.mine { background: #fff4b8; font-weight: 800; }
.bigwin { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(0, 20, 60, .72); }
.bigwin div { background: linear-gradient(135deg, var(--verde), var(--azul)); color: #fff; border: 5px solid var(--amarelo); border-radius: 24px; padding: 28px 34px; text-align: center; font-size: 1.3rem; font-weight: 800; max-width: 92vw; animation: pop .5s; }
.bigwin div b { display: block; font-size: 2.6rem; color: var(--amarelo); }

/* carteira */
.walletTop { text-align: center; background: linear-gradient(135deg, var(--verde), var(--verde-esc)); color: #fff; border-radius: 16px; padding: 16px; margin-bottom: 14px; }
.walletTop b { font-size: 2.2rem; display: block; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.quick button { background: var(--azul-cl); color: var(--azul); padding: 6px 12px; }
.txrow { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--borda); font-size: .9rem; }
.txrow .pos { color: var(--verde-esc); font-weight: 800; white-space: nowrap; }
.txrow .neg { color: var(--erro); font-weight: 800; white-space: nowrap; }
.tag.s-pending { background: #fff4b8; } .tag.s-approved { background: var(--verde-cl); } .tag.s-rejected { background: #fde8e6; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .75rem; font-weight: 800; }
.pill.s-pending { background: #fff4b8; color: #4a3b00; } .pill.s-approved { background: var(--verde-cl); color: var(--verde-esc); } .pill.s-rejected { background: #fde8e6; color: var(--erro); }
.patrow { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 10px; }
.patrow div { text-align: center; font-size: .8rem; font-weight: 700; color: var(--azul); }
.patrow .pat { grid-template-columns: repeat(5, 14px); gap: 3px; margin: 0 auto 4px; }
.patrow .pat i { width: 14px; height: 14px; border-radius: 3px; }
@media (max-width: 560px) { .livebox { flex-direction: column; text-align: center; } .board { grid-template-columns: repeat(10, 1fr); } .top nav { display: none; } }

/* cartela manual */
.manual-wrap { display: grid; grid-template-columns: minmax(250px, 320px) 1fr; gap: 16px; align-items: start; }
.mgrid { gap: 5px; }
.mgrid .bc { font-size: 1.7rem; cursor: pointer; }
.mgrid .bc.free { cursor: default; }
.mgrid .bc.vazio { background: #fff; border: 2px dashed #b9c7c0; color: var(--suave); font-size: 1.4rem; }
.mgrid .bc.active { outline: 3px solid var(--azul); outline-offset: 1px; }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 5px; }
.pal { background: var(--branco); border: 2px solid var(--borda); border-radius: 10px; padding: 3px 0 2px; font-size: 1.3rem; color: var(--texto); flex-direction: column; gap: 0; line-height: 1.1; }
.pal span:last-child { font-size: .68rem; font-weight: 800; color: var(--azul); }
.pal:hover { border-color: var(--azul); filter: none; }
.pal.used { opacity: .25; pointer-events: none; }
.mchip { background: var(--amarelo); color: var(--azul); border-radius: 99px; padding: 3px 10px; font-weight: 800; font-size: .8rem; }
.mchip a { color: var(--erro); text-decoration: none; margin-left: 4px; }
@media (max-width: 700px) { .manual-wrap { grid-template-columns: 1fr; } }
.manual-wrap > * { min-width: 0; }
.mgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mgrid .bc { min-width: 0; overflow: hidden; }
.mgrid .bc .face { font-size: 1.6rem; }
.mgrid .bc.free { font-size: .6rem; letter-spacing: 0; }

/* ---------- Capivara Hunter ---------- */
.gamecard { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; background: linear-gradient(135deg, #00692a, #009c3b 60%, #0a8a4a); color: #fff; border-radius: var(--raio); padding: 20px; box-shadow: var(--sombra); }
.gamecard h3 { color: var(--amarelo); font-size: 1.7rem; margin: .2em 0; }
.gamecard p { margin: 0 0 14px; }
.gameart { background: #ffffff1f; border-radius: 50%; width: 170px; height: 170px; display: grid; place-items: center; margin: 0 auto; }
.capy.big { width: 150px; height: 150px; }
.capy.mini { width: 30px; height: 30px; vertical-align: middle; }
.capy { width: 100%; height: 100%; display: block; }
@media (max-width: 560px) { .gamecard { grid-template-columns: 1fr; text-align: center; } }

dialog.slotdlg { width: min(96vw, 640px); }
.slotbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.slotbar b { color: var(--verde-esc); font-size: 1.15rem; }
.slotfs { background: var(--amarelo); color: var(--azul); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; text-align: center; }
.reels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; background: linear-gradient(180deg, #002776, #00184d); padding: 10px; border-radius: 14px; border: 3px solid var(--amarelo); }
.reel { display: grid; gap: 6px; }
.reel .cell { background: #fff; border-radius: 10px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; font-size: clamp(1.6rem, 8vw, 2.8rem); transition: box-shadow .15s, transform .15s; }
.reel .cell .capy { width: 80%; height: 80%; }
.reel.spinning .cell { filter: blur(1.5px); background: #eef3f0; }
.cell.hit { box-shadow: 0 0 0 4px var(--amarelo), 0 0 14px 4px #ffdf00aa; transform: scale(1.05); background: #fffbe0; }
.cell.scat { box-shadow: 0 0 0 4px #ff9f1c, 0 0 14px 4px #ff9f1caa; background: #fff3d6; }
.slotmsg { min-height: 3.2em; text-align: center; padding: 10px; margin: 10px 0; border-radius: 10px; background: var(--azul-cl); color: var(--azul); font-weight: 600; }
.slotmsg.win { background: var(--verde-cl); color: var(--verde-esc); font-size: 1.1rem; }
.slotmsg.err { background: #fde8e6; color: var(--erro); }
.slotctl { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.betbox { display: flex; align-items: center; gap: 10px; background: var(--fundo); border: 1px solid var(--borda); border-radius: 12px; padding: 6px 10px; }
.betbox div { text-align: center; min-width: 78px; }
.betbox small { display: block; color: var(--suave); }
.betbox b { font-size: 1.15rem; }
.spinbtn { flex: 1; min-width: 160px; font-size: 1.3rem; letter-spacing: .06em; }
.paydet { margin-top: 14px; }
.paydet summary { cursor: pointer; font-weight: 700; color: var(--azul); }
.pt { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: .92rem; }
.pt th, .pt td { padding: 4px 6px; border-bottom: 1px solid var(--borda); text-align: center; }
.pt td:nth-child(2), .pt th:nth-child(2) { text-align: left; }
.ptsym { font-size: 1.4rem; }

/* ---------- logo ---------- */
.brand .logo { height: 46px; aspect-ratio: 1180 / 430; object-fit: cover; width: auto; border-radius: 8px; display: block; box-shadow: 0 1px 6px #0004; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-logo { max-width: 380px; height: auto; width: 80%; border-radius: 14px; box-shadow: 0 6px 24px #0004; margin-bottom: 14px; display: block; }
.hash { word-break: break-all; font-size: .72rem; background: var(--fundo); padding: 4px 6px; border-radius: 6px; display: block; }
.paydet.fair { margin-top: 14px; }

/* ---------- Roleta dos Bichos ---------- */
#jogos .gamecard + .gamecard { margin-top: 16px; }
.gamecard.rou { background: linear-gradient(135deg, #00184d, #002776 60%, #0b3d9a); }
.gamecard.rou h3 { color: var(--amarelo); }
.wheel { width: 100%; height: 100%; display: block; overflow: visible; }
.wheel.mini { width: 150px; height: 150px; }
dialog.rou-dlg { width: min(96vw, 680px); }
.wheelbox { width: min(78vw, 300px); margin: 6px auto 4px; aspect-ratio: 1; position: relative; filter: drop-shadow(0 4px 10px #0004); }
.wheelbox .wheel { overflow: visible; }
.rhist { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; min-height: 28px; margin: 6px 0; }
.hh { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .95rem; border: 2px solid var(--amarelo); }
.hh.vermelho, .rc.vermelho { background: #c8202f; }
.hh.preto, .rc.preto { background: #1b2330; }
.hh.verde { background: #0a8a4a; }
.chips-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.chipb { background: #fff; color: var(--azul); border: 3px dashed var(--azul); border-radius: 50%; width: 52px; height: 52px; padding: 0; font-size: .82rem; box-shadow: 0 2px 0 #0003; }
.chipb.on { background: var(--amarelo); border-style: solid; transform: translateY(-3px); }
.rgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.rc { position: relative; color: #fff; border: 2px solid #ffffff55; border-radius: 10px; padding: 4px 2px; display: grid; place-items: center; min-width: 0; font-weight: 700; line-height: 1.1; }
.rc .re { font-size: clamp(1.3rem, 6vw, 1.9rem); }
.rc small { font-size: .65rem; opacity: .85; }
.rc.has { outline: 3px solid var(--amarelo); }
.rc.hit { box-shadow: 0 0 0 4px var(--amarelo), 0 0 16px 4px #ffdf00aa; animation: hitpulse .6s 3; }
@keyframes hitpulse { 50% { transform: scale(1.1); } }
.chipmark { font-style: normal; position: absolute; top: -6px; right: -4px; background: var(--amarelo); color: var(--azul); font-size: .62rem; border-radius: 999px; padding: 0 5px; box-shadow: 0 1px 3px #0006; }
.chipmark:empty { display: none; }
.rout { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-top: 6px; }
.rc.outb { background: var(--azul); padding: 8px 2px; }
.rc.outb.vermelho { background: #c8202f; }
.rc.outb.preto { background: #1b2330; grid-column: span 1; }
@media (max-width: 460px) { .rout { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* =====================================================================
   CELULAR (Android e iPhone): toque, telas cheias, áreas seguras
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a, summary, label, .rc, .chipb { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
body { overscroll-behavior-y: none; }
body:has(dialog[open]) { overflow: hidden; }
.dlg-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; max-height: 80dvh; }
button:active:not(:disabled) { transform: scale(.97); }
.top { padding-top: env(safe-area-inset-top); }
.wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
footer { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) { .hero-art div { animation: none; } }

/* telas de toque: alvos de pelo menos 44px */
@media (pointer: coarse) {
  button, .btn { min-height: 44px; }
  .iconbtn { min-width: 44px; }
  .tabs button, .atabs button { min-height: 44px; }
  .chipb { width: 56px; height: 56px; }
}

@media (max-width: 640px) {
  /* topo compacto: logo, som, carteira, sair — numa linha só */
  .top .wrap { flex-wrap: nowrap; gap: 8px; min-height: 56px; }
  .brand .logo { height: 36px; }
  .userbox { flex-wrap: nowrap; gap: 6px; }
  .userbox .row { flex-wrap: nowrap; gap: 6px; }
  .userbox .hello { display: none; }
  .chip-wallet { padding: 7px 11px; font-size: .95rem; white-space: nowrap; }
  #guestBox { display: flex; gap: 6px; }
  #adminLink { padding-left: 10px; padding-right: 10px; }
  .admin-top .wrap { flex-wrap: wrap; }
  .admin-top .brand span { font-size: 1rem; }

  .hero { padding: 26px 0 60px; }
  .hero-logo { width: min(260px, 70%); }
  .hero p.lead { font-size: 1.02rem; }
  .hero .cta .lg { flex: 1 1 140px; text-align: center; }
  .hero-art { display: none; }
  h2 { font-size: 1.4rem; }

  /* janelas viram "folha" que sobe de baixo, em quase tela cheia */
  dialog, dialog.wide, dialog.slotdlg, dialog.rou-dlg { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 94dvh; }
  dialog[open] { display: flex; flex-direction: column; }
  .dlg-head { padding: 12px 14px; flex: none; }
  .dlg-head button { min-width: 44px; min-height: 44px; font-size: 1.1rem; }
  .dlg-body { padding: 14px 14px calc(18px + env(safe-area-inset-bottom)); max-height: none; flex: 1 1 auto; min-height: 0; }

  .tabs button { padding: 9px 4px; font-size: .92rem; white-space: nowrap; }
  .stat b { font-size: clamp(1.25rem, 6vw, 1.7rem); overflow-wrap: anywhere; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .stat { padding: 12px; }
  .card { padding: 14px; }
  .atabs { gap: 5px; }
  .atabs button { flex: 1 1 auto; }
  .row { flex-wrap: wrap; }

  /* tabelas do admin viram cartões */
  .scroll { overflow: visible; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr:has(th) { display: none; }
  table.stack tr { background: var(--branco); border: 1px solid var(--borda); border-radius: 12px; margin-bottom: 10px; padding: 6px 10px; box-shadow: var(--sombra); }
  table.stack td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.stack td::before { content: attr(data-label); color: var(--suave); font-weight: 700; font-size: .78rem; text-transform: uppercase; text-align: left; flex: none; }
  table.stack td.row { flex-wrap: wrap; justify-content: flex-start; }
  table.stack td.row::before { width: 100%; }
}

/* telas baixas (celular deitado): menos espaço vertical */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { padding: 18px 0 50px; }
  dialog { max-height: 100dvh; border-radius: 0; }
  .wheelbox { width: 200px; }
}
@media (max-width: 400px) { .chipb { width: 46px; height: 46px; font-size: .72rem; border-width: 2px; } .chips-row #rouChips { display: flex; gap: 4px; flex-wrap: nowrap; } }

/* roda da roleta: a parte que gira (wspin), a bolinha (orbit) e o ponteiro fixo */
.wheelbox .wspin { position: absolute; inset: 0; will-change: transform; transform-origin: 50% 50%; }
.wheelbox .wheel { width: 100%; height: 100%; }
.wheelbox .orbit { position: absolute; inset: 0; pointer-events: none; transform-origin: 50% 50%; will-change: transform; }
.wheelbox .ball { position: absolute; left: 50%; top: 3%; width: 4.6%; height: 4.6%; margin-left: -2.3%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #d9d9d9 70%); box-shadow: 0 1px 3px #000a; }
.wheelbox .pointer { position: absolute; left: 50%; top: -3%; width: 9%; margin-left: -4.5%; filter: drop-shadow(0 2px 2px #0006); z-index: 2; }

/* capivara espiando pela base da tela */
.capy-peek { position: fixed; bottom: 0; left: 0; width: clamp(92px, 24vw, 150px); overflow: hidden; pointer-events: none; z-index: 15; display: none; }
.capy-peek img { -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%), linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, #000 30%), linear-gradient(to bottom, #000 70%, transparent 100%); -webkit-mask-composite: source-in; mask-composite: intersect; display: block; width: 100%; height: auto; transform: translateY(106%); will-change: transform; filter: drop-shadow(0 -2px 4px #0003); user-select: none; -webkit-user-drag: none; }

.pwwrap{position:relative;display:block}
.pwwrap input{width:100%;padding-right:48px}
.pweye{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:40px;height:36px;min-height:0;padding:0;background:transparent;border:0;box-shadow:none;font-size:18px;cursor:pointer;color:inherit}

button.sel{background:var(--azul)!important;color:#fff!important}
#winStack{position:fixed;right:14px;bottom:18px;z-index:300;display:flex;flex-direction:column;gap:8px;align-items:flex-end;pointer-events:none;max-width:calc(100vw - 28px)}
.wintoast{background:#0a8f3c;color:#fff;font-weight:800;padding:11px 16px;border-radius:12px;box-shadow:0 8px 22px rgba(0,0,0,.3);border:2px solid #ffdf00;animation:wtup 5s ease-out forwards}
@keyframes wtup{0%{opacity:0;transform:translateY(24px)}10%{opacity:1;transform:translateY(0)}65%{opacity:1}100%{opacity:0;transform:translateY(-90px)}}
.capy-peek.side img{-webkit-mask-image:none;mask-image:none;clip-path:inset(0 0 27% 0)}

/* texto do site não é selecionável (não atrapalha o toque/arrasto); campos de digitação continuam normais */
body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea,select,[contenteditable],.selectable,.adm .scroll table,.adm td{-webkit-user-select:text;user-select:text}
.adm .scroll table{-webkit-touch-callout:default}

/* ---- chat, conta, QR, avisos ---- */
.chatmsgs{display:flex;flex-direction:column;gap:6px;overflow:auto;padding:10px;background:#f1f5f3;border-radius:12px;min-height:160px;max-height:46vh}
.cmsg{max-width:82%;padding:7px 11px;border-radius:14px;word-wrap:break-word;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.3}
.cmsg small{display:block;opacity:.65;font-size:.7rem;margin-top:2px}
.cmsg.me{align-self:flex-end;background:var(--verde);color:#fff;border-bottom-right-radius:4px}
.cmsg.other{align-self:flex-start;background:#fff;color:var(--texto);border:1px solid #dfe7e2;border-bottom-left-radius:4px}
.chatfab{position:fixed;left:14px;bottom:18px;z-index:120;width:54px;height:54px;border-radius:50%;font-size:24px;padding:0;background:var(--verde);border:3px solid var(--amarelo);box-shadow:0 6px 18px rgba(0,0,0,.35)}
.chatfab .badge{position:absolute;top:-6px;right:-6px;font-size:.7rem;padding:2px 7px}
.chatpanel{position:fixed;left:14px;bottom:84px;z-index:130;width:min(340px,calc(100vw - 28px));background:#fff;border-radius:16px;box-shadow:0 14px 40px rgba(0,0,0,.4);overflow:hidden;display:flex;flex-direction:column;border:2px solid var(--verde)}
.chatpanel.hidden{display:none}
.chathead{background:var(--verde);color:#fff;padding:10px 14px;display:flex;justify-content:space-between;align-items:center;border-bottom:4px solid var(--amarelo)}
.chathead button{background:rgba(255,255,255,.2);padding:2px 10px;min-height:0}
.chatpanel .chatmsgs{border-radius:0;max-height:300px;min-height:200px}
.chatform{display:flex;gap:6px;padding:8px;border-top:1px solid #e3eae6}
.chatform input{flex:1;min-width:0}
#menuBadge{margin-left:4px}
.mycards{border:1px solid #dfe7e2;border-radius:14px;padding:10px;margin:10px 0;background:#fbfdfc}
.mchead{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.mcrow{display:flex;flex-wrap:wrap;gap:10px}
.mcard{display:flex;flex-direction:column;gap:6px;align-items:stretch}
.mgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:2px;font-size:.72rem;width:150px}
.mgrid i{font-style:normal;text-align:center;background:#eef3f0;border-radius:4px;padding:3px 0;color:var(--azul);font-weight:700}
.qrbox{text-align:center}
.qrbox img{width:min(260px,80%);height:auto;border:6px solid #fff;border-radius:12px;box-shadow:0 2px 12px rgba(0,0,0,.2);background:#fff}
.qrbox textarea{width:100%;font-size:.8rem}
#noticeStack{position:fixed;top:12px;left:50%;transform:translateX(-50%);z-index:250;display:flex;flex-direction:column;gap:8px;width:min(420px,calc(100vw - 24px))}
.noticetoast{background:var(--azul);color:#fff;border:2px solid var(--amarelo);border-radius:14px;padding:12px 14px;box-shadow:0 10px 28px rgba(0,0,0,.4);cursor:pointer;animation:wtin .35s ease-out}
.noticetoast b{display:block;margin-bottom:2px;color:var(--amarelo)}
@keyframes wtin{from{opacity:0;transform:translateY(-14px)}to{opacity:1;transform:translateY(0)}}
/* painel admin */
.supwrap{display:grid;grid-template-columns:260px 1fr;gap:14px}
.suplist{display:flex;flex-direction:column;gap:6px;max-height:60vh;overflow:auto}
.supitem{display:block;text-align:left;background:#f1f5f3;color:var(--texto);border-radius:10px;padding:8px 10px;position:relative}
.supitem.on{outline:2px solid var(--verde)}
.supitem small{display:block;color:#5b6b64;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.supitem .badge{position:absolute;right:8px;top:8px}
.supmain .chatmsgs{max-height:48vh;min-height:240px}
.supmain form{margin-top:8px}
.permgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:4px 14px;margin:10px 0}
.staffitem{border:1px solid #dfe7e2;border-radius:12px;padding:10px;margin-bottom:10px}
.qrlist{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px}
.qritem{display:flex;gap:10px;align-items:center;border:1px solid #dfe7e2;border-radius:12px;padding:8px}
.qritem img{width:64px;height:64px;object-fit:contain;background:#fff;border-radius:6px}
@media (max-width:720px){.supwrap{grid-template-columns:1fr}.chatfab{bottom:14px}}

/* ---- app Android (APK/WebView) e telas com barra de gestos: nada colado na borda de baixo ---- */
:root{--gb:0px;--vvb:0px}
html.android{--gb:14px}
html.app{--gb:72px}
:root{--gbs:calc(var(--gb) + var(--vvb) + env(safe-area-inset-bottom))}
.chatfab{bottom:calc(18px + var(--gbs))}
.chatpanel{bottom:calc(84px + var(--gbs));max-height:calc(100dvh - 120px - var(--gb))}
#winStack{bottom:calc(18px + var(--gbs))}
.toast{bottom:calc(18px + var(--gbs))}
.capy-peek{bottom:var(--vvb)}
html.app footer,html.android footer{padding-bottom:calc(18px + var(--gb) + env(safe-area-inset-bottom))}
@media (max-width:640px){
  dialog,dialog.wide,dialog.slotdlg,dialog.rou-dlg{margin-bottom:var(--vvb);max-height:calc(94dvh - var(--gb))}
  .dlg-body{padding-bottom:calc(18px + var(--gb) + env(safe-area-inset-bottom))}
  .chatfab{bottom:calc(14px + var(--gbs))}
}

.notifask{position:fixed;inset:0;z-index:400;background:rgba(0,20,10,.55);display:flex;align-items:center;justify-content:center;padding:16px;padding-bottom:calc(16px + var(--gbs))}
.na-card{background:#fff;color:var(--texto);border-radius:20px;padding:22px 20px;max-width:360px;width:100%;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.5);border-top:6px solid var(--amarelo)}
.na-ico{font-size:42px}
.na-card h3{margin:6px 0}
.na-btns{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.qrgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px;margin:6px 0 12px}
.qrtile{display:flex;flex-direction:column;align-items:center;gap:2px;background:#f1f5f3;color:var(--azul);border:2px solid transparent;border-radius:12px;padding:8px 4px}
.qrtile.has{background:#e6f6ec}
.qrtile.sel{border-color:var(--verde);background:#fff}
.qrtile img{width:48px;height:48px;object-fit:contain;background:#fff;border-radius:6px}
.qrtile .noimg{width:48px;height:48px;display:flex;align-items:center;justify-content:center;font-size:.65rem;color:#7a8a83;border:1px dashed #b8c5be;border-radius:6px}
.qrtile small{color:var(--verde-esc,#06803a);font-size:.65rem}

/* ---- sem rolagem lateral (faixa branca no Android) ---- */
html, body { max-width: 100%; overflow-x: clip; }
@media (max-width: 640px) {
  .top .wrap { min-width: 0; }
  .top .brand { flex: 0 1 auto; min-width: 0; }
  .top .brand .logo { max-width: 30vw; }
  .userbox { min-width: 0; flex: 0 1 auto; }
  .userbox .mt { display: none; }
  .userbox .sm, .userbox .iconbtn { padding-left: 10px; padding-right: 10px; }
  .iconbtn { min-width: 40px; }
}
@media (max-width: 420px) {
  .top .wrap { gap: 5px; padding-left: max(8px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); }
  .top .brand .logo { height: 30px; max-width: 26vw; }
  .userbox, .userbox .row { gap: 4px; }
  .userbox .sm, .userbox .iconbtn { padding-left: 8px; padding-right: 8px; min-width: 36px; }
  .iconbtn { font-size: 1rem; }
  .chip-wallet { padding: 6px 8px; font-size: .86rem; }
}

/* =====================================================================
   VISUAL 2.0 — mais vida, profundidade e cor (só aparência)
   ===================================================================== */
body { background: radial-gradient(900px 500px at 100% 0, #fff8d6 0, transparent 60%), radial-gradient(800px 500px at 0 40%, #e6f6ec 0, transparent 60%), var(--fundo); background-attachment: fixed; }

/* topo: vidro verde com brilho */
.top { background: linear-gradient(180deg, #00a843, #008a37); box-shadow: 0 6px 18px rgba(0, 70, 30, .28); border-bottom: 4px solid var(--amarelo); }
.top nav a { position: relative; }
.top nav a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; border-radius: 3px; background: var(--amarelo); transform: scaleX(0); transition: transform .2s; }
.top nav a:hover { background: transparent; }
.top nav a:hover::after { transform: scaleX(1); }

/* herói: losango da bandeira + brilho + confete */
.hero { background:
  radial-gradient(520px 320px at 88% 8%, rgba(255, 223, 0, .30), transparent 65%),
  radial-gradient(700px 420px at 8% 100%, rgba(0, 39, 118, .35), transparent 70%),
  linear-gradient(160deg, #00b04a 0%, #007a32 100%); }
.hero::before { content: ''; position: absolute; width: 640px; height: 640px; right: -140px; top: 50%; transform: translateY(-50%) rotate(45deg); border-radius: 56px; background: linear-gradient(135deg, rgba(255, 223, 0, .16), rgba(255, 223, 0, 0)); border: 3px solid rgba(255, 223, 0, .22); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { text-shadow: 0 3px 0 rgba(0, 60, 20, .35); }
.hero-art div { box-shadow: 0 14px 28px rgba(0, 40, 15, .35), inset 0 -6px 0 rgba(0, 0, 0, .06); }
.hero .cta .lg { box-shadow: 0 6px 0 rgba(0, 0, 0, .18), 0 10px 22px rgba(0, 0, 0, .18); }
.hero .cta .lg.gold { background: linear-gradient(180deg, #ffe94d, #ffd400); }

/* botões com relevo */
:where(button:not(.ghost):not(.iconbtn):not(.chip-wallet):not(.gold):not(.red):not(.blue), .btn:not(.ghost):not(.gold):not(.blue)) { background: linear-gradient(180deg, #00b04a, #008a37); box-shadow: 0 3px 0 #006d2b; }
button.gold, .btn.gold { background: linear-gradient(180deg, #ffe94d, #ffd400); box-shadow: 0 3px 0 var(--amarelo-esc); }
button.blue, .btn.blue { background: linear-gradient(180deg, #0a3f9e, #002776); box-shadow: 0 3px 0 #001a52; }
button:hover:not(:disabled), .btn:hover { transform: translateY(-1px); }

/* títulos de seção com faixa colorida */
.sec-head h2 { display: inline-flex; align-items: center; gap: 10px; }
.sec-head h2::before { content: ''; width: 8px; height: 1.1em; border-radius: 6px; background: linear-gradient(180deg, var(--amarelo), var(--verde)); box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, .15); }

/* cartões com profundidade */
.card, .step { border: 0; box-shadow: 0 1px 0 #fff inset, 0 10px 28px rgba(0, 39, 118, .10), 0 2px 6px rgba(0, 0, 0, .05); transition: transform .2s, box-shadow .2s; }
.card:hover, .step:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0, 39, 118, .16), 0 2px 6px rgba(0, 0, 0, .06); }
.step { counter-increment: s; overflow: hidden; }
.step::after { content: counter(s); position: absolute; right: 12px; top: -6px; font-size: 4.6rem; font-weight: 900; color: rgba(0, 39, 118, .06); line-height: 1; pointer-events: none; }

/* os 25 bichos: cada um com sua cor e cara de figurinha */
.zoo .cell { border: 0; background: linear-gradient(160deg, #fff 0%, hsl(var(--h, 140) 70% 94%) 100%); box-shadow: 0 0 0 3px hsl(var(--h, 140) 55% 45%) inset, 0 6px 14px rgba(0, 0, 0, .08); transition: transform .18s, box-shadow .18s; }
.zoo .cell:hover { transform: translateY(-4px) rotate(-1.5deg) scale(1.04); box-shadow: 0 0 0 3px hsl(var(--h, 140) 55% 45%) inset, 0 14px 24px rgba(0, 0, 0, .16); }
.zoo .cell .n { background: hsl(var(--h, 140) 55% 40%); color: #fff; border-radius: 8px; padding: 0 6px; top: -6px; left: 8px; font-weight: 800; }
.zoo .cell:nth-child(5n+1) { --h: 140; } .zoo .cell:nth-child(5n+2) { --h: 48; } .zoo .cell:nth-child(5n+3) { --h: 215; } .zoo .cell:nth-child(5n+4) { --h: 20; } .zoo .cell:nth-child(5n) { --h: 285; }

/* jogos em destaque */
.gamecard { box-shadow: 0 18px 40px rgba(0, 24, 77, .28); position: relative; overflow: hidden; }
.gamecard::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 223, 0, .28), transparent 70%); pointer-events: none; }

/* rodapé */
footer { background: linear-gradient(180deg, #002776, #001a52); }

@media (prefers-reduced-motion: reduce) { .card, .step, .zoo .cell { transition: none; } }
.hero .cta .lg.ghost { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 2px #fff, 0 8px 18px rgba(0, 0, 0, .15); }

/* ---------- painel admin "Ao vivo" ---------- */
.liveW { position: fixed; right: 14px; bottom: calc(14px + var(--vvb, 0px)); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: calc(100vw - 28px); }
.liveW.hidden { display: none; }
.liveBox { background: #fff; border-radius: 18px; box-shadow: 0 18px 44px rgba(0, 24, 77, .32), 0 2px 8px rgba(0, 0, 0, .12); border: 2px solid var(--azul); overflow: hidden; width: 340px; max-width: 100%; }
.liveW[data-state="min"] .liveBox { width: auto; border-radius: 999px; border-color: var(--verde); }
.livePill { display: flex; align-items: center; }
.livePillMain { background: transparent; color: var(--azul); box-shadow: none; padding: 10px 6px 10px 16px; font-weight: 800; }
.liveX { background: transparent !important; color: var(--azul); box-shadow: none !important; padding: 4px 10px; min-height: 0; font-size: 1rem; }
.liveHead { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 14px; background: linear-gradient(180deg, #002776, #001a52); color: #fff; }
.liveHead .liveX { color: #fff; }
.liveBtns { display: flex; }
.liveStats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 10px 8px 4px; text-align: center; }
.liveStat strong { display: block; font-size: 1.35rem; color: var(--azul); line-height: 1; }
.liveStat small { color: var(--suave); font-size: .68rem; }
.liveTabs { display: flex; gap: 6px; padding: 8px 10px 0; }
.liveTabs button { flex: 1; background: #eef1f6; color: var(--azul); box-shadow: none; padding: 7px; font-size: .85rem; min-height: 0; }
.liveTabs button.on { background: var(--azul); color: #fff; }
.liveBody { max-height: min(46vh, 360px); overflow: auto; padding: 8px 10px 12px; overscroll-behavior: contain; }
.liveEmpty { text-align: center; color: var(--suave); margin: 18px 0; }
.liveRow { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid #eef1f6; }
.liveRow:last-child { border-bottom: 0; }
.liveName { min-width: 0; line-height: 1.25; }
.liveName b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liveName small { color: var(--suave); font-size: .74rem; }
.liveRow .ico { width: 1.4rem; text-align: center; }
.liveRow.warn .liveName b { color: var(--erro); }
.dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dot.act { background: #16c24d; box-shadow: 0 0 0 4px rgba(22, 194, 77, .22); animation: livePulse 1.6s infinite; }
.dot.idle { background: #f2b705; }
@keyframes livePulse { 50% { box-shadow: 0 0 0 7px rgba(22, 194, 77, 0); } }
.liveToasts { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; pointer-events: none; }
.liveToast { background: rgba(0, 24, 77, .94); color: #fff; padding: 8px 12px; border-radius: 12px; font-size: .84rem; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); animation: liveIn .25s ease-out; max-width: 300px; transition: opacity .6s, transform .6s; }
.liveToast.warn { background: rgba(160, 30, 30, .95); }
.liveToast.out { opacity: 0; transform: translateY(-8px); }
@keyframes liveIn { from { opacity: 0; transform: translateY(10px); } }
.liveTabs button { background: #eef1f6 !important; color: var(--azul); box-shadow: none !important; }
.liveTabs button.on { background: var(--azul) !important; color: #fff; }
.liveBtns .liveX, .liveHead .liveX { background: transparent !important; }
.livePillMain { background: transparent !important; box-shadow: none !important; color: var(--azul); }

/* roleta: bichos nas cores da posição (ímpar vermelho, par preto) e ✕ para tirar a aposta */
.rc.vermelho { background: linear-gradient(180deg, #e03545, #b81a29); }
.rc.preto { background: linear-gradient(180deg, #2a3446, #121a26); }
.rc.outb.vermelho { background: linear-gradient(180deg, #e03545, #b81a29); }
.rc.outb.preto { background: linear-gradient(180deg, #2a3446, #121a26); }
.rc.outb:not(.vermelho):not(.preto) { background: linear-gradient(180deg, #0a3f9e, #002776); }
.rc { box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.rc .xmark { display: none; position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #c8202f; font-style: normal; font-size: .8rem; font-weight: 900; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); z-index: 2; cursor: pointer; }
.rc .xmark::after { content: ''; position: absolute; inset: -8px; }
.rc.has .xmark { display: grid; }
.chipmark { top: auto; bottom: -7px; right: -4px; }
.liveUser { border-bottom: 1px solid #eef1f6; }
.liveRow.user { width: 100%; background: transparent !important; color: inherit; box-shadow: none !important; text-align: left; border: 0; padding: 8px 4px; min-height: 0; font-weight: 400; }
.liveRow.user .liveName { flex: 1; }
.liveRow.user .chev { color: var(--suave); }
.liveUser.exp { background: #f6f8fc; border-radius: 10px; }
.liveDet { padding: 2px 10px 10px 25px; font-size: .84rem; }
.liveDet p { margin: 2px 0; }
.liveDet h5 { margin: 10px 0 4px; font-size: .78rem; color: var(--suave); text-transform: uppercase; letter-spacing: .4px; }
.liveAct { display: flex; gap: 6px; align-items: baseline; padding: 3px 0; }
.liveAct .tx { flex: 1; }
.liveAct small { color: var(--suave); font-size: .7rem; white-space: nowrap; }
.liveAct.page .tx { color: var(--suave); }
/* painel Ao vivo: tamanho fixo quando aberto (a lista rola por dentro; nada se mexe na página) */
.liveW[data-state="open"] .liveBox { height: min(72vh, 540px); display: flex; flex-direction: column; }
.liveW[data-state="open"] .liveBody { flex: 1; min-height: 0; max-height: none; }
.liveW { contain: layout; }
.liveBody { overflow-anchor: none; }
.bonusbox { background: linear-gradient(135deg, #fff7cc, #ffe680); border: 2px solid var(--amarelo-esc, #d4a800); color: var(--azul); border-radius: 12px; padding: 8px 12px; margin: 8px 0; line-height: 1.3; }
.bonusbox small { color: #4a4a2a; }
.bonusbox.hidden { display: none; }

/* relógio */
.clk { font-variant-numeric: tabular-nums; white-space: nowrap; }
.clk-top { color: #fff; background: rgba(0, 0, 0, .16); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: .95rem; }
.clk-top::before { content: '🕒 '; }
.clk-hero { display: none; background: rgba(0, 0, 0, .2); color: #fff; border-radius: 999px; padding: 5px 12px; font-size: .85rem; margin-bottom: 10px; }
.clk-hero .clk-d { text-transform: capitalize; }
@media (max-width: 760px) { .clk-top { display: none; } .clk-hero { display: inline-block; } }

/* rodada encerrada: só as cartelas ganhadoras */
.round.finished { grid-column: 1 / -1; }
.wincards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 12px; }
.wcard { display: flex; flex-direction: column; gap: 6px; }
.wcard .bcard { margin: 0; }
.wprize { text-align: center; background: linear-gradient(180deg, #fff7cc, #ffe680); border: 2px solid var(--amarelo); border-radius: 12px; padding: 6px 8px; color: var(--azul); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; }
.wprize b { display: block; font-size: 1.25rem; color: #0a6b2d; text-transform: none; letter-spacing: 0; }

/* avisos de ganhadores ficam acima das janelas abertas (camada superior do navegador) */
#winStack[popover] { position: fixed; inset: auto 14px calc(18px + var(--gbs, 0px)) auto; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; width: auto; height: auto; color: inherit; }

/* bichos em imagem dentro das casas da roleta */
.rc .face img, .hh .face img { background: #fff; border-radius: 10px; padding: 2px; box-sizing: border-box; }
.hh .face { font-size: 1.05rem; } .hh { overflow: hidden; }
.rc .re .face { font-size: clamp(1.5rem, 7vw, 2.1rem); }
#rouMsg .face, .rouMsg .face { font-size: 1.6rem; vertical-align: middle; }
.zoo .cell .e { font-size: 3.4rem; display: block; line-height: 1; }
.zoo .cell .e .face img { border-radius: 0; filter: drop-shadow(0 3px 3px rgba(0,0,0,.18)); }
.bc .face img, .recent .face img, .livebox .face img { border-radius: 0; }

/* cartela nova: as 4 pontas e o bicho do meio valem prêmio */
.bc.corner, .bc.mid { box-shadow: inset 0 0 0 2px var(--amarelo-esc, #e0b400); position: relative; }
.bc.mid { background: linear-gradient(160deg, #fff7c2, #ffe36b); }
.bc.corner::after, .bc.mid::after { content: '★'; position: absolute; top: 0; right: 2px; font-size: .55rem; line-height: 1; color: #b88900; }
.bc.mid.hit { background: var(--amarelo); }
.bc.mid.hit, .bc.corner.hit { box-shadow: inset 0 0 0 2px var(--verde, #009c3b); }
.bgrid .bc .face { font-size: 1.95rem; } .mgrid .bc .face { font-size: 1.6rem; }

/* ================= Visual 3.0: cartela no hero e fundos com mais vida ================= */
/* cartela de exemplo (hero) */
.hero-art { display: block; position: relative; transform: none; max-width: 430px; margin-left: auto; width: 100%; }
.hero-art .hcard { background: #fff; border-radius: 24px; padding: 14px 14px 16px; border: 5px solid var(--amarelo); box-shadow: 0 30px 60px rgba(0, 30, 10, .4), 0 0 0 10px rgba(255, 255, 255, .08); transform: rotate(-3.5deg); animation: bobTilt 4.2s ease-in-out infinite; }
@keyframes bobTilt { 0%, 100% { transform: rotate(-3.5deg) translateY(0); } 50% { transform: rotate(-3.5deg) translateY(-9px); } }
.hero-art .hc-head { display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: .8rem; letter-spacing: .5px; color: var(--azul); margin: 0 2px 10px; }
.hero-art .hc-head span:last-child { background: #d92b2b; color: #fff; border-radius: 999px; padding: 2px 10px; font-size: .68rem; text-transform: uppercase; animation: livepulse 1.6s infinite; }
@keyframes livepulse { 50% { opacity: .55; } }
.hero-art .hc-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.hero-art .hc-grid .c { all: unset; position: relative; aspect-ratio: 1; display: grid; place-items: center; background: linear-gradient(160deg, #fff, #eef4f1); border: 2px solid #dbe5e0; border-radius: 12px; box-sizing: border-box; }
.hero-art .hc-grid .c img { width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .2)); margin-top: -4px; }
.hero-art .hc-grid .c b { position: absolute; bottom: 1px; right: 5px; font-size: .56rem; font-weight: 800; color: var(--suave); }
.hero-art .hc-grid .c.hit { background: linear-gradient(160deg, #fff27a, var(--amarelo)); border-color: var(--azul); }
.hero-art .hc-grid .c.hit b { color: var(--azul); }
.hero-art .hc-grid .c.corner, .hero-art .hc-grid .c.mid { box-shadow: inset 0 0 0 2px #e0b400; }
.hero-art .hc-grid .c.mid { background: linear-gradient(160deg, #fff7c2, #ffe36b); }
.hero-art .hc-grid .c.corner::after, .hero-art .hc-grid .c.mid::after { content: '★'; position: absolute; top: 1px; right: 4px; font-size: .6rem; color: #b88900; line-height: 1; }
.hero-art .chip { position: absolute; z-index: 2; background: var(--azul); color: #fff; font-weight: 900; font-size: .78rem; letter-spacing: .4px; padding: 7px 13px; border-radius: 999px; border: 2px solid var(--amarelo); box-shadow: 0 10px 20px rgba(0, 20, 60, .35); white-space: nowrap; animation: bob 3.4s ease-in-out infinite; }
.hero-art .chip.c1 { top: -14px; left: -18px; background: #d92b2b; }
.hero-art .chip.c2 { top: 38%; right: -26px; background: var(--azul); animation-delay: -1s; }
.hero-art .chip.c3 { bottom: -14px; left: 6%; background: var(--verde-esc); animation-delay: -2s; }
.hero-art .chip.c4 { bottom: 24%; left: -30px; background: #ff7a00; animation-delay: -.5s; }
/* bichos flutuando no fundo do hero */
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Ccircle cx='9' cy='9' r='2.2' fill='%23ffffff' fill-opacity='.10'/%3E%3Cpath d='M45 45l5-5 5 5-5 5z' fill='%23ffdf00' fill-opacity='.13'/%3E%3C/svg%3E"); }
.hero-bg img { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); object-fit: contain; transform: rotate(var(--r)); opacity: .13; filter: brightness(1.8) saturate(.6) blur(.4px); animation: drift 9s ease-in-out infinite; }
.hero-bg img:nth-child(even) { animation-delay: -4s; }
@keyframes drift { 50% { transform: translateY(-14px) rotate(calc(var(--r) + 4deg)); } }
.hero::before { z-index: 0; }
.hero { background:
  radial-gradient(700px 420px at 12% 0%, rgba(255, 223, 0, .22), transparent 60%),
  radial-gradient(900px 520px at 90% 110%, rgba(0, 39, 118, .45), transparent 60%),
  radial-gradient(1200px 500px at 85% -10%, #00c24f 0%, transparent 60%),
  linear-gradient(160deg, #00a63f 0%, #00692a 100%); }
@media (max-width: 760px) {
  .hero-art { display: block; max-width: 330px; margin: 18px auto 0; }
  .hero-art .chip { font-size: .66rem; padding: 5px 10px; }
  .hero-art .chip.c2 { right: -6px; } .hero-art .chip.c4 { left: -6px; }
}
@media (prefers-reduced-motion: reduce) { .hero-art .hcard, .hero-art .chip, .hero-bg img { animation: none; } }

/* fundo geral: padrão leve de bichos/losangos e faixas de cor entre as seções */
body { background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M60 8l7 7-7 7-7-7z' fill='%23009c3b' fill-opacity='.07'/%3E%3Ccircle cx='12' cy='70' r='3' fill='%23ffdf00' fill-opacity='.35'/%3E%3Ccircle cx='100' cy='36' r='2.5' fill='%23002776' fill-opacity='.10'/%3E%3Cpath d='M92 100l5 5-5 5-5-5z' fill='%23ffdf00' fill-opacity='.28'/%3E%3C/svg%3E"),
  radial-gradient(900px 500px at 100% 0, #fff8d6 0, transparent 60%), radial-gradient(800px 500px at 0 40%, #e6f6ec 0, transparent 60%), var(--fundo); background-attachment: scroll, fixed, fixed, fixed; }
main.wrap { position: relative; isolation: isolate; }
section.block { position: relative; }
section.block#jogos::before, section.block#ganhadoras::before, section.block#como::before { content: ''; position: absolute; z-index: -1; left: calc(50% - 50vw); width: 100vw; top: 0; bottom: 0; pointer-events: none; }
section.block#ganhadoras::before { background: linear-gradient(180deg, #fff9d9 0%, #eaf7ef 100%); border-block: 3px solid rgba(255, 223, 0, .55); }
section.block#ganhadoras { padding: 40px 0 44px; margin-top: 26px; }
section.block#como::before { background:
  radial-gradient(600px 300px at 90% 0, rgba(255, 223, 0, .16), transparent 70%),
  linear-gradient(160deg, #002776 0%, #00205e 100%); }
section.block#como { padding: 44px 0 48px; margin-top: 30px; }
#como .sec-head h2 { color: #fff; }
#como .sec-head h2::before { box-shadow: 0 0 0 2px rgba(255, 255, 255, .4); }
#como .step { background: #fff; }
#como .step span.ico { filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .2)); }
main.wrap { padding-bottom: 0; }
footer { margin-top: 0; }
/* a regra antiga dos 9 quadradinhos (.hero-art div) não pode afetar a cartela nova */
.hero-art .hcard { aspect-ratio: auto; display: block; font-size: 1rem; place-items: initial; }
.hero-art .hc-head { aspect-ratio: auto; background: none; border: 0; border-radius: 0; box-shadow: none; animation: none; place-items: initial; font-size: .8rem; }
.hero-art .hc-grid { aspect-ratio: auto; background: none; border: 0; border-radius: 0; box-shadow: none; animation: none; place-items: initial; font-size: 1rem; }
.hero-art .hc-head span:last-child { animation: livepulse 1.6s infinite; }

/* ================= Visual 4.0: faixas de fundo com personalidade ================= */
/* faixa de destaques logo abaixo do topo */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: -34px auto 0; position: relative; z-index: 3; }
.strip-i { background: #fff; border-radius: 18px; padding: 16px 16px 14px; box-shadow: 0 16px 34px rgba(0, 30, 80, .16), 0 2px 6px rgba(0, 0, 0, .05); border-bottom: 5px solid var(--amarelo); display: grid; gap: 2px; }
.strip-i:nth-child(2) { border-bottom-color: var(--verde); } .strip-i:nth-child(3) { border-bottom-color: var(--azul); } .strip-i:nth-child(4) { border-bottom-color: #ff7a00; }
.strip-i span { font-size: 1.6rem; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(160deg, #fff7c2, #ffe36b); margin-bottom: 6px; }
.strip-i:nth-child(2) span.x { background: linear-gradient(160deg, #d6f5e1, #9fe3b8); } .strip-i:nth-child(3) span.x { background: linear-gradient(160deg, #dbe6ff, #a9c0ff); } .strip-i:nth-child(4) span.x { background: linear-gradient(160deg, #ffe6cc, #ffc58f); }
.strip-i b { color: var(--azul); font-size: 1.02rem; }
.strip-i small { color: var(--suave); font-size: .84rem; line-height: 1.35; }
@media (max-width: 900px) { .strip { grid-template-columns: repeat(2, 1fr); margin-top: -26px; } }
@media (max-width: 480px) { .strip { gap: 10px; } .strip-i { padding: 12px; } .strip-i small { font-size: .78rem; } }

/* bichos apagados no fundo das faixas */
.band-bg { position: absolute; z-index: -1; left: calc(50% - 50vw); width: 100vw; top: 0; bottom: 0; overflow: hidden; pointer-events: none; }
.band-bg img { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); object-fit: contain; transform: rotate(var(--r)); opacity: .09; filter: saturate(.7); }
#como .band-bg img { opacity: .12; filter: brightness(1.8) saturate(.5); }
.band-logo { position: absolute; z-index: -1; right: calc(50% - 50vw + 4%); bottom: 22px; width: 190px; opacity: .16; border-radius: 28px; transform: rotate(8deg); pointer-events: none; }

/* faixa das rodadas: branco com brilho verde e padrão */
section.block#rodadas { padding-top: 56px; padding-bottom: 36px; margin-top: 0; }
section.block#rodadas::before { content: ''; position: absolute; z-index: -1; left: calc(50% - 50vw); width: 100vw; top: 0; bottom: 0; pointer-events: none;
  background:
    radial-gradient(520px 260px at 8% 0, rgba(0, 156, 59, .10), transparent 70%),
    radial-gradient(520px 260px at 95% 100%, rgba(255, 223, 0, .22), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Ccircle cx='22' cy='22' r='1.6' fill='%23002776' fill-opacity='.10'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%); }
/* faixa dos outros jogos: azul bem claro com listras */
section.block#jogos { padding: 44px 0 46px; }
section.block#jogos::before { background:
    repeating-linear-gradient(135deg, rgba(0, 39, 118, .045) 0 14px, transparent 14px 28px),
    radial-gradient(600px 300px at 50% 0, rgba(0, 156, 59, .10), transparent 70%),
    linear-gradient(180deg, #e9f0ff 0%, #dbe7ff 100%);
  border-block: 3px solid rgba(0, 39, 118, .12); }
#jogos .gamecard { box-shadow: 0 24px 50px rgba(0, 39, 118, .30), 0 0 0 4px rgba(255, 223, 0, .55); position: relative; overflow: hidden; }
#jogos .gamecard::after { content: ''; position: absolute; width: 320px; height: 320px; right: -90px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 223, 0, .35), transparent 70%); pointer-events: none; }

/* ondas separando as faixas */
section.block#ganhadoras::after, section.block#como::after, section.block#jogos::after { content: ''; position: absolute; z-index: -1; left: calc(50% - 50vw); width: 100vw; top: -29px; height: 30px; pointer-events: none; background-repeat: repeat-x; background-size: 120px 30px; background-position: bottom; }
section.block#jogos::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='30'%3E%3Cpath d='M0 30V14Q30 0 60 14T120 14V30z' fill='%23e9f0ff'/%3E%3C/svg%3E"); }
section.block#ganhadoras::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='30'%3E%3Cpath d='M0 30V14Q30 0 60 14T120 14V30z' fill='%23fff9d9'/%3E%3C/svg%3E"); }
section.block#como::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='30'%3E%3Cpath d='M0 30V14Q30 0 60 14T120 14V30z' fill='%23002776'/%3E%3C/svg%3E"); }

/* faixa azul "Como jogar": mais profundidade */
section.block#como::before { background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cpath d='M45 10l5 5-5 5-5-5z' fill='%23ffdf00' fill-opacity='.18'/%3E%3Ccircle cx='10' cy='60' r='2' fill='%23ffffff' fill-opacity='.14'/%3E%3Ccircle cx='72' cy='72' r='1.6' fill='%23ffffff' fill-opacity='.12'/%3E%3C/svg%3E"),
    radial-gradient(700px 360px at 92% 0, rgba(255, 223, 0, .22), transparent 70%),
    radial-gradient(700px 360px at 0 100%, rgba(0, 156, 59, .30), transparent 70%),
    linear-gradient(160deg, #0a3a9a 0%, #002776 55%, #001a52 100%); }
#como .sec-head p { color: rgba(255, 255, 255, .8); }
#como .step { border-top-width: 0; border-bottom: 6px solid var(--amarelo); padding-top: 22px; }
#como .step:nth-child(2) { border-bottom-color: var(--verde); } #como .step:nth-child(3) { border-bottom-color: #ff7a00; }
#como .step span.ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(160deg, #fff7c2, #ffe36b); font-size: 1.9rem; margin-bottom: 10px; }
#como .step:nth-child(2) span.ico { background: linear-gradient(160deg, #d6f5e1, #9fe3b8); } #como .step:nth-child(3) span.ico { background: linear-gradient(160deg, #ffe6cc, #ffc58f); }
#como .card { box-shadow: 0 20px 44px rgba(0, 0, 0, .35); border-bottom: 6px solid var(--amarelo); }

/* ícone no diálogo de entrada e no rodapé */
.dlg-ico { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); margin-right: 10px; flex: 0 0 auto; }
#authDialog .dlg-head { display: flex; align-items: center; }
#authDialog .dlg-head h3 { flex: 1; }
footer .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: left; }
.foot-ico { width: 54px; height: 54px; border-radius: 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); border: 2px solid rgba(255, 223, 0, .8); }
footer { background: radial-gradient(500px 200px at 50% 0, rgba(255, 223, 0, .12), transparent 70%), linear-gradient(180deg, #001a52, #00123a); }
@media (max-width: 600px) { footer .wrap { flex-direction: column; text-align: center; } .band-logo { width: 110px; } }

/* ================= Visual 5.0: legibilidade para 40+ e mais identidade ================= */
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito.woff') format('woff'); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: 'Baloo 2'; src: url('/fonts/baloo2.woff') format('woff'); font-weight: 400 800; font-style: normal; font-display: swap; }
:root { --suave: #45545f; --texto: #0f1b26; --fonte: 'Nunito', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif; --fonte-titulo: 'Baloo 2', 'Nunito', 'Segoe UI', system-ui, sans-serif; }
body { font-family: var(--fonte); }
body:not(.adm) { font-size: 1.1rem; line-height: 1.55; }
body:not(.adm) h1, body:not(.adm) h2, body:not(.adm) h3 { font-family: var(--fonte-titulo); letter-spacing: 0; }
body:not(.adm) h2 { font-size: 2.1rem; font-weight: 800; }
body:not(.adm) h3 { font-size: 1.35rem; font-weight: 800; }
body:not(.adm) .hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.8rem); font-weight: 800; line-height: 1.05; }
body:not(.adm) .hero p.lead { font-size: 1.28rem; line-height: 1.5; max-width: 36ch; }
body:not(.adm) .top nav a { font-size: 1.08rem; font-weight: 700; }
body:not(.adm) button, body:not(.adm) .btn { font-family: var(--fonte); font-weight: 800; font-size: 1.05rem; min-height: 48px; }
body:not(.adm) button.sm { min-height: 40px; font-size: .95rem; }
body:not(.adm) button.lg { min-height: 56px; font-size: 1.2rem; padding: 14px 30px; }
body:not(.adm) input, body:not(.adm) select, body:not(.adm) textarea { font-size: 1.1rem; min-height: 52px; font-family: var(--fonte); }
body:not(.adm) label { font-size: 1.02rem; font-weight: 700; color: var(--texto); }
body:not(.adm) .muted, body:not(.adm) small { font-size: .95em; }
body:not(.adm) .badge { font-size: .85rem; padding: 5px 12px; }
body:not(.adm) .price { font-size: 1.2rem; }
.strip-i b { font-family: var(--fonte-titulo); font-size: 1.25rem; font-weight: 800; }
.strip-i small { font-size: .98rem; color: var(--suave); }

/* títulos de seção com identidade: selo colorido + traço em onda */
.sec-head { margin-bottom: 24px; }
.sec-head h2 { gap: 14px; }
.sec-head h2::before { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; line-height: 1; background: linear-gradient(160deg, #fff27a, #ffd400); box-shadow: 0 4px 0 #c9a600, 0 10px 18px rgba(0, 0, 0, .12); content: '🎟️'; }
#jogos .sec-head h2::before { content: '🎡'; background: linear-gradient(160deg, #cfe0ff, #9db9ff); box-shadow: 0 4px 0 #6f8fe0, 0 10px 18px rgba(0, 0, 0, .12); }
#ganhadoras .sec-head h2::before { content: '🏆'; background: linear-gradient(160deg, #d6f5e1, #8fdcae); box-shadow: 0 4px 0 #4fb578, 0 10px 18px rgba(0, 0, 0, .12); }
#como .sec-head h2::before { content: '❓'; background: linear-gradient(160deg, #fff27a, #ffd400); box-shadow: 0 4px 0 #c9a600, 0 10px 18px rgba(0, 0, 0, .3); }
.sec-head h2::after { content: ''; display: block; position: absolute; }
.sec-head { position: relative; padding-bottom: 14px; }
.sec-head::after { content: ''; position: absolute; left: 0; bottom: 0; width: 150px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='10'%3E%3Cpath d='M0 5Q7.5 0 15 5T30 5' fill='none' stroke='%23ffd400' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x; }
#como .sec-head::after { opacity: .9; }
body:not(.adm) .sec-head p { font-size: 1.12rem; color: var(--suave); max-width: 62ch; }
#como .sec-head p { color: rgba(255, 255, 255, .88); }

/* rodadas em formato de bilhete */
.cards { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.card.round { padding: 0 18px 18px; border: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 39, 118, .14), 0 3px 8px rgba(0, 0, 0, .06); background: #fff; position: relative; }
.card.round > .row.between:first-child { margin: 0 -18px 14px; padding: 12px 18px; background: linear-gradient(100deg, #00a63f, #007a2e); color: #fff; align-items: center; position: relative; }
.card.round > .row.between:first-child .price { color: #fff; font-family: var(--fonte-titulo); font-size: 1.45rem; font-weight: 800; }
.card.round > .row.between:first-child .badge { background: #fff; color: var(--verde-esc); }
.card.round > .row.between:first-child::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 14px; background: radial-gradient(circle at 7px 0, #fff 6px, transparent 6.5px) repeat-x; background-size: 20px 14px; background-position: 4px 0; pointer-events: none; }
.card.round.finished > .row.between:first-child { background: linear-gradient(100deg, #5b6b78, #3d4b57); }
.card.round h3 { font-size: 1.6rem; margin-top: 14px; color: var(--azul); }
.card.round .when { font-size: 1.02rem; color: var(--suave); }
.card.round .prizegrid div { font-size: .95rem; padding: 9px 12px; border-radius: 12px; }
.card.round .prizegrid div b { font-size: 1.3rem; font-family: var(--fonte-titulo); }
.card.round small.muted { font-size: 1rem; }
.card.round > button { min-height: 54px; font-size: 1.15rem; }
.round .count { font-size: 1.1em; }

/* cartões de bichos, passos e prêmios: mais legíveis */
.zoo .cell { font-size: 1.05rem; font-weight: 800; }
.zoo .cell small { font-size: .85rem; color: var(--suave); font-weight: 700; }
.zoo { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.zoo .cell .e { font-size: 4rem; }
body:not(.adm) .step b { font-family: var(--fonte-titulo); font-size: 1.35rem; font-weight: 800; }
body:not(.adm) .step { font-size: 1.08rem; }
.gamecard h3 { font-size: 2rem; }
.gamecard p { font-size: 1.12rem; }

/* aviso de nova versão do app */
.updbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 99999; background: #002776; color: #fff; border: 3px solid var(--amarelo); border-radius: 16px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; font-weight: 800; box-shadow: 0 14px 34px rgba(0, 0, 0, .4); }
.updbar button { background: var(--amarelo); color: var(--azul); min-height: 44px; }
@media (max-width: 760px) { body:not(.adm) h2 { font-size: 1.75rem; } .sec-head h2::before { width: 46px; height: 46px; font-size: 1.45rem; } .cards { grid-template-columns: 1fr; } .zoo { grid-template-columns: repeat(2, 1fr); } }
.strip-i { align-content: start; }

/* ---- banner comprido (cabeçalho/rodapé) ---- */
.foot-ban { width: 190px; max-width: 60vw; height: auto; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.4); border: 2px solid rgba(255,223,0,.8); }

/* ---- ícones de tópicos: SVG próprios, mesma família visual ---- */
:root { --tile-verde: linear-gradient(160deg, #19c25e, #07893f); --tile-azul: linear-gradient(160deg, #3f78e8, #1a46ad); --tile-laranja: linear-gradient(160deg, #ffa21f, #f06a00); --tile-amarelo: linear-gradient(160deg, #ffe45c, #f5b800); }
.sec-head h2::before, .gi { background-repeat: no-repeat; background-position: center; background-size: 62% 62%, auto; }
.sec-head h2::before { content: '' !important; width: 56px; height: 56px; border-radius: 18px; font-size: 0; box-shadow: 0 4px 0 rgba(0,0,0,.22), 0 10px 18px rgba(0,0,0,.14), inset 0 2px 0 rgba(255,255,255,.35); }
#rodadas .sec-head h2::before { background-image: url(/img/ico/ticket.svg), var(--tile-verde); }
#jogos .sec-head h2::before { background-image: url(/img/ico/wheel.svg), var(--tile-azul); }
#ganhadoras .sec-head h2::before { background-image: url(/img/ico/paw.svg), var(--tile-laranja); }
#como .sec-head h2::before { background-image: url(/img/ico/help.svg), var(--tile-amarelo); box-shadow: 0 4px 0 rgba(0,0,0,.25), 0 10px 18px rgba(0,0,0,.3), inset 0 2px 0 rgba(255,255,255,.45); }
.gi { filter: none; box-shadow: 0 3px 0 rgba(0,0,0,.2), inset 0 2px 0 rgba(255,255,255,.3); }
#como .step span.ico.gi, .strip-i span.gi { background-size: 60% 60%, auto; }
.i-lock { background-image: url(/img/ico/lock.svg), var(--tile-verde) !important; }
.i-trophy { background-image: url(/img/ico/trophy.svg), var(--tile-laranja) !important; }
.i-bolt { background-image: url(/img/ico/bolt.svg), var(--tile-azul) !important; }
.i-cash { background-image: url(/img/ico/cash.svg), var(--tile-verde) !important; }
.i-userplus { background-image: url(/img/ico/userplus.svg), var(--tile-azul) !important; }
.i-ticket { background-image: url(/img/ico/ticket.svg), var(--tile-verde) !important; }
.strip-i span.gi { width: 52px; height: 52px; border-radius: 16px; }
#como .step span.ico.gi { width: 60px; height: 60px; border-radius: 18px; }
.sec-head h2 .gi { display: none; }
@media (max-width: 760px) { .sec-head h2::before { width: 48px; height: 48px; border-radius: 15px; } }
.sec-head h2::before, .gi, #como .step span.ico.gi, .strip-i span.gi { background-repeat: no-repeat, no-repeat !important; background-position: center, center !important; background-size: 68% 68%, 100% 100% !important; }

/* ---- ícones 3D (Fluent Emoji, MIT) — sem moldura, com profundidade ---- */
.sec-head h2::before { width: 68px !important; height: 68px !important; border-radius: 0 !important; background-color: transparent !important; box-shadow: none !important; filter: drop-shadow(0 6px 6px rgba(0,0,0,.22)); background-size: contain !important; background-repeat: no-repeat !important; background-position: center !important; }
#rodadas .sec-head h2::before { background-image: url(/img/ico3d/tickets.png) !important; }
#jogos .sec-head h2::before { background-image: url(/img/ico3d/flag.png) !important; }
#ganhadoras .sec-head h2::before { background-image: url(/img/ico3d/trophy.png) !important; }
#como .sec-head h2::before { background-image: url(/img/ico3d/help.png) !important; filter: drop-shadow(0 6px 8px rgba(0,0,0,.4)); }
.gi { background-color: transparent !important; box-shadow: none !important; border-radius: 0 !important; filter: drop-shadow(0 5px 5px rgba(0,0,0,.22)); background-size: contain !important; }
.strip-i span.gi { width: 62px; height: 62px; }
#como .step span.ico.gi { width: 72px; height: 72px; }
.i-lock { background-image: url(/img/ico3d/lock.png) !important; }
.i-trophy { background-image: url(/img/ico3d/trophy.png) !important; }
.i-bolt { background-image: url(/img/ico3d/bolt.png) !important; }
.i-cash { background-image: url(/img/ico3d/wings.png) !important; }
.i-userplus { background-image: url(/img/ico3d/memo.png) !important; }
.i-ticket { background-image: url(/img/ico3d/ticket.png) !important; }
.strip-i:nth-child(2) .i-trophy { background-image: url(/img/ico3d/bag.png) !important; }
@media (max-width: 760px) { .sec-head h2::before { width: 56px !important; height: 56px !important; } }
/* fundo da seção dos bichos: mais vivo */
section.block#ganhadoras::before { background:
    radial-gradient(460px 260px at 0 0, rgba(0,156,59,.16), transparent 70%),
    radial-gradient(520px 300px at 100% 100%, rgba(255,223,0,.38), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Ccircle cx='28' cy='28' r='2.4' fill='%23009c3b' fill-opacity='.16'/%3E%3Ccircle cx='0' cy='0' r='2.4' fill='%23009c3b' fill-opacity='.16'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #fff9d9 0%, #e2f4e8 100%); }
.sec-head h2::before, .gi, #como .step span.ico.gi, .strip-i span.gi { background-size: contain !important; background-position: center !important; }

/* ---- hero centralizado no celular/tablet ---- */
.hero-pic { display: block; }
.hero-logo { height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 760px) {
  .hero .wrap > div:first-child { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hero-pic { width: min(320px, 82%); margin: 4px auto 14px; }
  .hero-logo { width: 100% !important; max-width: 100% !important; margin: 0 auto; }
  .hero p.lead { margin-left: auto; margin-right: auto; max-width: 36ch; }
  .hero .cta { justify-content: center; width: 100%; }
  .clk-hero { align-self: center; }
}
@media (max-width: 350px) {
  .top .brand .logo { height: 26px; max-width: 22vw; }
  #soundBtn, .userbox #btnSound, .userbox .iconbtn:nth-of-type(2) { display: none; }
  #guestBox .sm { padding-left: 7px; padding-right: 7px; font-size: .85rem; }
}

/* ---- jeito de aplicativo: toque imediato, sem seleção de texto nos botões, sem "puxar para atualizar" ---- */
html, body { overscroll-behavior-y: none; -webkit-tap-highlight-color: transparent; }
button, a, .btn, select, summary, .iconbtn, .gamecard, .card { touch-action: manipulation; }
button, .btn, .iconbtn, nav a, .tag { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
img { -webkit-user-drag: none; }
html.app .top { padding-top: env(safe-area-inset-top); }

/* ---- fonte dos títulos: Titan One (OFL) — letras gordas e arredondadas, mesma família visual do logo ---- */
@font-face { font-family: 'Titan One'; src: url('/fonts/titanone.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
:root { --fonte-titulo: 'Titan One', 'Baloo 2', 'Nunito', 'Segoe UI', system-ui, sans-serif; }
body:not(.adm) h1, body:not(.adm) h2, body:not(.adm) h3, .strip-i b, body:not(.adm) .step b, .card.round > .row.between:first-child .price, .card.round .prizegrid div b { font-family: var(--fonte-titulo); font-weight: 400 !important; font-synthesis: none; letter-spacing: .3px; }
body:not(.adm) h2 { font-size: clamp(1.7rem, 4.4vw, 2.4rem); line-height: 1.12; text-shadow: none; }
#como .sec-head h2 { text-shadow: none; }
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.3rem); line-height: 1.1; text-shadow: none; }
.hero h1 em { text-shadow: none; }
body:not(.adm) h1, body:not(.adm) h2, body:not(.adm) h3, .strip-i b, body:not(.adm) .step b, .card.round .prizegrid div b, .card.round > .row.between:first-child .price { text-rendering: geometricPrecision; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-shadow: none; -webkit-text-stroke: 0; }
.strip-i b { font-size: 1.08rem; } body:not(.adm) .step b { font-size: 1.2rem; }
body:not(.adm) h3 { font-size: 1.25rem; }

/* ---- layout "sticker": títulos e ícones como adesivos recortados, com borda branca e sombra ---- */
body:not(.adm) .sec-head h2 {
  --sc: #0a9d4a; --sc2: #067a36; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 24px 8px 14px; margin-left: 14px; border-radius: 22px; color: #fff;
  background: linear-gradient(160deg, var(--sc), var(--sc2)); border: 5px solid #fff;
  box-shadow: 0 0 0 2px rgba(0, 30, 80, .14), 0 7px 0 rgba(0, 0, 0, .16), 0 14px 22px rgba(0, 30, 80, .22);
  transform: rotate(-1.6deg); max-width: 100%;
}
#jogos .sec-head h2 { --sc: #3f78e8; --sc2: #1a46ad; transform: rotate(1.4deg); }
#ganhadoras .sec-head h2 { --sc: #ff9a1f; --sc2: #ee6a00; transform: rotate(-1.2deg); }
#como .sec-head h2 { --sc: #ffe45c; --sc2: #f5b800; color: #0b2a6b; transform: rotate(1.4deg); }
.sec-head h2::before { margin: -22px 2px -22px -34px; flex: 0 0 auto; transform: rotate(-9deg);
  filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 6px 5px rgba(0, 0, 0, .3)) !important; }
#jogos .sec-head h2::before { transform: rotate(8deg); }
.sec-head { padding-left: 6px; }
.sec-head::after { left: 14px; }
/* ícones dos destaques e passos: adesivos com contorno branco */
.gi { filter: drop-shadow(2.5px 0 0 #fff) drop-shadow(-2.5px 0 0 #fff) drop-shadow(0 2.5px 0 #fff) drop-shadow(0 -2.5px 0 #fff) drop-shadow(0 5px 5px rgba(0, 0, 0, .28)) !important; transform: rotate(-7deg); }
.strip-i:nth-child(even) .gi, #como .step:nth-child(even) .gi { transform: rotate(6deg); }
.strip-i { transition: transform .2s; } .strip-i:hover { transform: translateY(-3px) rotate(-.6deg); }
@media (max-width: 760px) {
  body:not(.adm) .sec-head h2 { padding: 7px 16px 7px 12px; margin-left: 22px; border-width: 4px; font-size: 1.45rem; }
  .sec-head h2::before { margin: -18px 0 -18px -30px; }
}

/* ---- convite de instalação ---- */
.instbar { position: fixed; left: 10px; right: 10px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 9000; display: flex; align-items: center; gap: 12px; max-width: 520px; margin: 0 auto; padding: 12px; border-radius: 20px; background: #fff; color: var(--texto, #0f1b26); border: 3px solid var(--amarelo, #ffd400); box-shadow: 0 14px 40px rgba(0, 20, 60, .35); transform: translateY(140%); opacity: 0; transition: transform .35s cubic-bezier(.2, .9, .3, 1.2), opacity .25s; }
.instbar.on { transform: none; opacity: 1; }
.instbar > img { width: 56px; height: 56px; border-radius: 14px; flex: 0 0 auto; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); }
.instbar .it { flex: 1; min-width: 0; display: grid; gap: 2px; }
.instbar .it b { font-size: 1rem; line-height: 1.15; color: var(--azul, #002776); }
.instbar .it span { font-size: .88rem; line-height: 1.3; color: var(--suave, #45545f); }
.instbar button.gold { padding: 10px 16px; border-radius: 12px; font-weight: 800; white-space: nowrap; }
.instbar #instNo { min-width: 36px; padding: 8px; border-radius: 50%; background: #eef2f5; border: 0; color: #44525d; box-shadow: none; }
@media (max-width: 380px) { .instbar { gap: 8px; padding: 10px; } .instbar > img { width: 44px; height: 44px; } .instbar .it span { font-size: .8rem; } }

/* ---- Corrida dos Bichos ---- */
.gamecard.race { background: linear-gradient(135deg, #7a2a00, #d4570a 55%, #f08a1a); }
.gamecard.race h3 { color: #fff; }
dialog.race-dlg { width: min(96vw, 680px); }
.racetrack { position: relative; border-radius: 16px; overflow: hidden; background: #2d7a3a; border: 3px solid #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); margin: 6px 0; }
.racetrack .lane { position: relative; display: flex; align-items: center; height: 54px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 40px, rgba(0,0,0,.05) 40px 80px), linear-gradient(180deg, #b98b50, #a57a42); border-bottom: 2px dashed rgba(255, 255, 255, .55); }
.racetrack .lane:last-of-type { border-bottom: 0; }
.racetrack .lane.lwin { box-shadow: inset 0 0 0 3px #ffd400, 0 0 18px rgba(255, 212, 0, .7); z-index: 1; }
.lbadge { flex: 0 0 auto; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font: 800 .85rem var(--fonte-titulo, sans-serif); border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,.3); margin: 0 6px; }
.racetrack .lrun { position: relative; flex: 1; height: 100%; margin-right: 46px; }
.racetrack .runner { position: absolute; left: 0; top: 50%; margin-top: -22px; width: 44px; height: 44px; will-change: transform; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .35)); }
.racetrack .rimg { width: 44px; height: 44px; object-fit: contain; display: block; pointer-events: none; }
.racetrack .rrank { position: absolute; right: 8px; top: 50%; transform: translateY(-50%) scale(.6); font: 800 1.15rem var(--fonte-titulo, sans-serif); color: #fff; text-shadow: 0 2px 3px rgba(0,0,0,.6); opacity: 0; transition: .25s; }
.racetrack .rrank.on { opacity: 1; transform: translateY(-50%) scale(1); }
.racetrack .finish { position: absolute; top: 0; bottom: 0; right: 44px; width: 14px; z-index: 2; background: repeating-conic-gradient(#fff 0 25%, #111 0 50%) 0 0 / 14px 14px; box-shadow: 0 0 6px rgba(0,0,0,.4); }
.racetable { display: grid; gap: 6px; }
.rrow { display: grid; grid-template-columns: 1fr 86px 86px; gap: 6px; align-items: center; background: var(--fundo); border: 1px solid var(--borda); border-radius: 12px; padding: 4px 6px; }
.rinfo { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rinfo .lbadge { margin: 0; }
.rface { width: 36px; height: 36px; object-fit: contain; flex: 0 0 auto; }
.rname { font-weight: 800; color: var(--azul); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rbet { position: relative; display: grid; gap: 0; place-items: center; padding: 6px 4px; border-radius: 12px; border: 2px solid var(--azul); background: #fff; color: var(--azul); line-height: 1.1; min-height: 52px; }
.rbet b { font-size: .95rem; } .rbet small { color: #0a7a35; font-weight: 800; }
.rbet.pod { border-color: #0a9d4a; }
.rbet.has { background: var(--amarelo); border-style: solid; box-shadow: 0 0 0 3px rgba(255, 212, 0, .5); }
.rbet .chipmark { position: absolute; top: -9px; right: -4px; font-style: normal; font-size: .72rem; font-weight: 800; background: var(--azul); color: #fff; border-radius: 999px; padding: 0 6px; }
.rbet .chipmark:empty, .rbet:not(.has) .xmark { display: none; }
.rbet .xmark { position: absolute; bottom: -8px; right: -4px; width: 20px; height: 20px; display: grid; place-items: center; font-style: normal; font-size: .7rem; background: #d92b2b; color: #fff; border-radius: 50%; }
.rh { background: #fff; width: 30px; height: 30px; } .hhi { width: 24px; height: 24px; object-fit: contain; }
.miniracing { position: relative; width: 100%; height: 100%; display: grid; align-content: center; gap: 6px; padding: 0 10px; border-radius: 50%; overflow: hidden; }
.miniracing .ml { position: relative; height: 34px; background: rgba(255,255,255,.18); border-radius: 8px; }
.miniracing .ml span { position: absolute; top: -2px; }
.miniracing .mimg { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(0,0,0,.35)); }
.miniracing .mfin { position: absolute; top: 18%; bottom: 18%; right: 14px; width: 8px; background: repeating-conic-gradient(#fff 0 25%, #111 0 50%) 0 0 / 8px 8px; }
@media (max-width: 480px) {
  .racetrack .lane { height: 46px; } .racetrack .runner, .racetrack .rimg { width: 38px; height: 38px; margin-top: -19px; }
  .rrow { grid-template-columns: 1fr 74px 74px; } .rname { font-size: .88rem; } .rface { width: 30px; height: 30px; }
}
.rbet .chipmark { position: absolute; top: -10px; right: -4px; left: auto; bottom: auto; width: auto; height: auto; min-width: 0; margin: 0; padding: 1px 7px; line-height: 1.25; display: block; font-size: .72rem; background: var(--azul); color: #fff; border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,.35); transform: none; }
.rbet .chipmark:empty { display: none; }
.rbet .xmark { width: 20px; height: 20px; min-width: 0; padding: 0; line-height: 20px; }

/* =====================================================================
   Bingou! — bolas de bingo, cartela B-I-N-G-O, acumulado
   ===================================================================== */
:root { --bB: #1f5fd1; --bI: #d92b2b; --bN: #7a4fc4; --bG: #0a9d4a; --bO: #f08a00; }
/* bola de bingo: o tamanho vem do font-size de quem a contém */
.bb { --bc: var(--bB); display: inline-grid; place-items: center; align-content: center; width: 2em; height: 2em; border-radius: 50%; position: relative; flex: 0 0 auto; line-height: 1; font-family: var(--fonte-titulo, 'Titan One', system-ui, sans-serif); color: var(--azul, #002776);
  background: radial-gradient(circle at 50% 50%, #fff 0 52%, transparent 53%), radial-gradient(circle at 32% 26%, color-mix(in srgb, var(--bc) 55%, #fff) 0, var(--bc) 48%, color-mix(in srgb, var(--bc) 70%, #000) 100%);
  box-shadow: inset -.08em -.12em .2em rgba(0,0,0,.25), 0 .08em .18em rgba(0,0,0,.35); }
.bb.c0 { --bc: var(--bB); } .bb.c1 { --bc: var(--bI); } .bb.c2 { --bc: var(--bN); } .bb.c3 { --bc: var(--bG); } .bb.c4 { --bc: var(--bO); } .bb.c-1 { --bc: #8a96a0; }
.bb i { font-style: normal; font-size: .42em; line-height: .9; color: var(--bc); font-weight: 400; margin-top: .1em; }
.bb b { font-size: .8em; line-height: .9; font-weight: 400; letter-spacing: -.02em; }
.bb.sm i { display: none; } .bb.sm b { font-size: .82em; }
.livebox .bb.big { font-size: 2.6rem; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.livebox.pop .bb.big { animation: pop .5s; }
.livebox .ballname { font-size: 1.7rem; font-weight: 900; line-height: 1.1; color: var(--amarelo); font-family: var(--fonte-titulo, inherit); }
.recent { gap: 5px; }
.recent .bb { font-size: .95rem; }
.drawbox .bb.big { font-size: 1.5rem; } .drawbox .e { font-size: 2.4rem; }
.chips .bb.sm { font-size: .8rem; }

/* cartela: B I N G O + 5x5 de números */
.bhead { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-bottom: 4px; }
.bhead i, .mgrid .mh { font-style: normal; text-align: center; color: #fff; border-radius: 8px; padding: 3px 0 1px; font-family: var(--fonte-titulo, inherit); font-size: 1.1rem; line-height: 1.15; }
.bhead i:nth-child(1), .mgrid .mh:nth-child(1) { background: var(--bB); } .bhead i:nth-child(2), .mgrid .mh:nth-child(2) { background: var(--bI); } .bhead i:nth-child(3), .mgrid .mh:nth-child(3) { background: var(--bN); } .bhead i:nth-child(4), .mgrid .mh:nth-child(4) { background: var(--bG); } .bhead i:nth-child(5), .mgrid .mh:nth-child(5) { background: var(--bO); }
.bc { background: #fff; border: 2px solid #d5dfda; }
.bc b { font-size: clamp(1.15rem, 4.6vw, 1.6rem); font-weight: 900; line-height: 1; color: var(--azul); font-family: var(--fonte-titulo, inherit); font-weight: 400; }
.bc.hit { background: radial-gradient(circle at 50% 50%, #ffe95c 0 62%, #ffd21a 100%); border-color: var(--azul); box-shadow: inset 0 0 0 2px #fff; }
.bc.hit b { color: var(--azul); }
.bc.free { background: linear-gradient(160deg, #0a8a4a, #006a38); border-color: #006a38; color: #ffdf00; display: grid; place-items: center; align-content: center; gap: 1px; }
.bc.free b { color: #ffdf00; font-size: 1.5rem; } .bc.free small { font-size: .5rem; font-weight: 800; letter-spacing: .5px; color: #fff; }
.bgrid .bc .num, .bc.corner::after, .bc.mid::after { display: none; }
.partida { font-size: .82rem; color: var(--suave); margin-bottom: 2px; } .partida b { color: var(--azul); letter-spacing: .5px; }
.rcode { font-size: .75em; font-weight: 700; opacity: .8; }

/* painel de bolas B-I-N-G-O */
.board { grid-template-columns: 26px repeat(15, minmax(0, 1fr)); gap: 3px; align-items: stretch; }
.board .bl { display: grid; place-items: center; color: #fff; border-radius: 6px; font-family: var(--fonte-titulo, inherit); font-size: .9rem; }
.board .bl.c0 { background: var(--bB); } .board .bl.c1 { background: var(--bI); } .board .bl.c2 { background: var(--bN); } .board .bl.c3 { background: var(--bG); } .board .bl.c4 { background: var(--bO); }
.board span { padding: 5px 0; font-size: .68rem; }
.board span.hit { background: var(--azul); color: var(--amarelo); }
.board span.now { background: #d92b2b; color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #d92b2b; position: relative; z-index: 1; }
@media (max-width: 560px) { .board { grid-template-columns: 20px repeat(15, minmax(0, 1fr)); gap: 2px; } .board span { font-size: .55rem; padding: 4px 0; } .board .bl { font-size: .72rem; } }

/* prêmios e acumulado */
.prizegrid.p3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card.round .prizegrid.p3 div { padding: 8px 6px; font-size: .82rem; text-align: center; } .card.round .prizegrid.p3 div b { font-size: 1.1rem; }
.jackbadge { background: linear-gradient(90deg, #fff4b8, #ffe46a); color: #4a3b00; border: 2px solid #e0b400; border-radius: 12px; padding: 8px 12px; text-align: center; font-weight: 900; font-size: .85rem; margin-bottom: 8px; animation: livepulse 1.8s infinite; }
.jackbadge b { display: block; font-size: 1.5rem; font-family: var(--fonte-titulo, inherit); font-weight: 400; color: #b03a00; } .jackbadge small { display: block; font-weight: 700; font-size: .74rem; }
.card.round.jackround { border-color: #e0b400; box-shadow: 0 0 0 3px #ffe46a, var(--sombra); }
.acum { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(90deg, #fff4b8, #ffe46a); color: #4a3b00; border: 3px solid #e0b400; border-radius: 999px; padding: 6px 18px; font-weight: 800; margin: 2px 0 14px; box-shadow: 0 4px 14px rgba(0,0,0,.22); }
.acum b { font-size: 1.45rem; color: #b03a00; font-family: var(--fonte-titulo, inherit); font-weight: 400; }
.patrow small { display: block; color: var(--verde-esc, #006a38); font-weight: 900; font-size: .95rem; }
.jackcard .jackbar { height: 12px; border-radius: 99px; background: #e5ece8; overflow: hidden; margin-top: 10px; } .jackcard .jackbar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd21a, #ff7a00); border-radius: 99px; }

/* cartelas ganhadoras (página principal) */
.winhead { font-size: 1.15rem; font-weight: 800; color: var(--azul); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; } .winhead b { font-family: var(--fonte-titulo, inherit); font-weight: 400; font-size: 1.5rem; letter-spacing: 1px; } .winhead small { font-weight: 600; color: var(--suave); font-size: .85rem; }
.wprize { text-align: left; padding: 8px 12px; } .wprize .wl { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-weight: 800; font-size: .85rem; } .wprize .wl b { display: inline; font-size: 1.15rem; }

/* decoração: bolas de bingo no lugar dos bichos */
.xb { --bcol: var(--bB); position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: calc(var(--s) * .4); color: var(--bcol); font-family: var(--fonte-titulo, inherit); transform: rotate(var(--r)); pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #fff 0 50%, transparent 51%), radial-gradient(circle at 32% 26%, color-mix(in srgb, var(--bcol) 55%, #fff), var(--bcol) 55%, color-mix(in srgb, var(--bcol) 65%, #000)); }
.xb.c0 { --bcol: var(--bB); } .xb.c1 { --bcol: var(--bI); } .xb.c2 { --bcol: var(--bN); } .xb.c3 { --bcol: var(--bG); } .xb.c4 { --bcol: var(--bO); }
.hero-bg .xb { opacity: .2; animation: drift 9s ease-in-out infinite; } .hero-bg .xb:nth-child(even) { animation-delay: -4s; }
.band-bg .xb { opacity: .1; } #como .band-bg .xb, #ganhadoras .band-bg .xb { opacity: .14; }
.hero-art .hc-l3 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.hero-art .hc-l3 i { font-style: normal; text-align: center; color: #fff; border-radius: 8px; font-family: var(--fonte-titulo, inherit); font-size: 1.05rem; padding: 2px 0; }
.hero-art .hc-l3 i:nth-child(1) { background: var(--bB); } .hero-art .hc-l3 i:nth-child(2) { background: var(--bI); } .hero-art .hc-l3 i:nth-child(3) { background: var(--bN); } .hero-art .hc-l3 i:nth-child(4) { background: var(--bG); } .hero-art .hc-l3 i:nth-child(5) { background: var(--bO); }
.hero-art .hc-grid .c b { position: static; font-size: 1.15rem; font-weight: 400; color: var(--azul); font-family: var(--fonte-titulo, inherit); }
.hero-art .hc-grid .c.mid b { color: #b88900; } .hero-art .hc-grid .c::after { display: none; }

/* montar cartela à mão */
#mGrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
#mGrid .bc b { font-size: clamp(1.15rem, 5vw, 1.7rem); }
.palette { grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); }
.palette .palhead { grid-column: 1 / -1; font-size: .9rem; color: var(--azul); }
.pal { font-size: 1.3rem; font-weight: 900; padding: 10px 0; color: var(--azul); font-family: var(--fonte-titulo, inherit); font-weight: 400; }

/* roleta e corrida com números/bolas */
.rc .re .rn { font-family: var(--fonte-titulo, inherit); font-weight: 400; font-size: clamp(1.3rem, 5.5vw, 1.8rem); color: #fff; }
.hh .rn { font-size: .9rem; color: #fff; font-weight: 800; }
.racetrack .runner { width: auto; height: auto; margin-top: -19px; font-size: 1.15rem; } .racetrack .runner .bb { width: 2em; height: 2em; }
.rface .bb, .rinfo .bb { font-size: 1rem; } .rh .bb { font-size: .7rem; } .miniracing .bb { font-size: 1rem; }
.hero-art .hc-l3 { aspect-ratio: auto; background: none; border: 0; box-shadow: none; animation: none; transform: none; place-items: initial; width: auto; height: auto; }
#mGrid { width: 100%; max-width: 360px; font-size: 1rem; gap: 5px; }
#mGrid .mh { padding: 3px 0 1px; font-size: 1.1rem; border-radius: 8px; }
#mGrid .bc { min-width: 0; }
.recent .bb { font-size: 1.3rem; } .recent .bb.sm b { font-size: .8em; }
.chips .bb.sm { font-size: 1.05rem; }
