/* Blitz — preto puro, superfícies por tom, uma cor de destaque. */
:root {
  --bg: #000;
  --panel: #111;
  --panel2: #1c1c1c;
  --panel3: #2a2a2a;
  --line: #2a2a2a;
  --text: #fff;
  --muted: #a3a3a3;
  --accent: #FFD60A;
  --accent-ink: #000;
  --win: #2EE59D;
  --lose: #FF4D5E;
  --red: #E5233B;
  --black: #262626;
  --white: #f5f5f5;
  --felt: #0B5E3C;
  --radius: 16px;
  --display: "Sora", Inter, system-ui, sans-serif;
  --mono: "Sora", Inter, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .45; }
[hidden] { display: none !important; }
.num, .balance, b, .stat b, .kpi b, .chip, .dot { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Topo ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px; height: 68px; padding: 0 24px; background: var(--bg); }
.brand { display: flex; align-items: center; gap: 10px; font: 800 24px/1 var(--display); letter-spacing: -.04em; }
.bolt { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); transition: transform .3s var(--ease); }
.brand:hover .bolt { transform: rotate(-14deg) scale(1.08); }
.bolt svg { width: 22px; fill: var(--accent-ink); }
.topnav { display: flex; gap: 4px; }
.topnav a { padding: 8px 14px; border-radius: 99px; color: var(--muted); font-weight: 600; transition: color .2s, background .2s; }
.topnav a:hover { color: var(--text); }
.topnav a.on { color: var(--text); background: var(--panel); }
.account { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.balance { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 99px; background: var(--panel); font: 700 16px var(--display); transition: transform .2s var(--ease); }
.balance.pulse { animation: pulse .5s var(--ease); }
.balance i { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.balance i svg { width: 13px; fill: #000; }
@keyframes pulse { 40% { transform: scale(1.08); } }

/* ---------- Botões ---------- */
.btn { position: relative; border: 0; border-radius: 99px; padding: 11px 20px; font-weight: 700; background: var(--panel2); color: var(--text); transition: transform .12s var(--ease), background .2s, filter .2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover:not(:disabled) { background: var(--panel3); }
.btn:active:not(:disabled) { transform: scale(.96); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) { background: #ffe14d; }
.btn.light { background: #fff; color: #000; }
.btn.light:hover:not(:disabled) { background: #e5e5e5; }
.btn.win { background: var(--win); color: #00331f; }
.btn.win:hover:not(:disabled) { background: #5cf0b6; }
.btn.danger { background: #2a1015; color: var(--lose); }
.btn.small { padding: 7px 14px; font-size: 14px; }
.btn.big { width: 100%; padding: 16px; font-size: 17px; font-family: var(--display); }
.btn.ghost { background: transparent; }
.btn.ghost:hover:not(:disabled) { background: var(--panel); }

/* ---------- Estrutura ---------- */
.layout { display: grid; grid-template-columns: 236px 1fr; min-height: calc(100vh - 68px); }
.side { padding: 8px 12px 24px; position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto; scrollbar-width: none; }
.side h4 { margin: 18px 12px 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.side a { display: flex; align-items: center; gap: 12px; padding: 7px 12px 7px 8px; border-radius: 12px; color: var(--muted); font-weight: 600; transition: color .15s, background .15s, transform .15s var(--ease); }
.side a:hover { color: var(--text); transform: translateX(3px); }
.side a.on { color: var(--text); background: var(--panel); }
.side a .mini { width: 28px; height: 28px; border-radius: 8px; overflow: hidden; flex: none; background: var(--c); }
.side a .mini svg { width: 100%; height: 100%; display: block; }
main { padding: 8px 28px 64px; min-width: 0; }
.page-title { margin: 0 0 18px; font: 800 30px/1.1 var(--display); letter-spacing: -.03em; }

/* ---------- Entrada das telas ---------- */
.rise { animation: rise .55s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* ---------- Lobby ---------- */
.ticker { overflow: hidden; margin: 0 0 18px; border-radius: 99px; background: var(--panel); height: 42px; display: flex; align-items: center; }
.ticker-track { display: flex; gap: 28px; white-space: nowrap; padding-left: 100%; animation: tick 40s linear infinite; font-size: 14px; color: var(--muted); }
.ticker-track b { color: var(--win); font-weight: 700; }
.ticker-track span strong { color: var(--text); font-weight: 600; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-100%); } }

.hero { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 12px; min-height: 380px; padding: 44px 48px; border-radius: 28px; background: var(--accent); color: #000; overflow: hidden; margin-bottom: 40px; }
.hero h1 { margin: 0 0 14px; font: 800 clamp(38px, 5.4vw, 74px)/.95 var(--display); letter-spacing: -.05em; }
.hero p { margin: 0 0 26px; font-size: 18px; max-width: 440px; }
.hero .btn.dark { background: #000; color: #fff; padding: 16px 28px; font-size: 17px; font-family: var(--display); }
.hero .btn.dark:hover { background: #222; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero-actions small { font-size: 14px; }
.hero-art { width: 100%; height: auto; max-height: 340px; }
.hero-art .h1 { animation: bob 5s ease-in-out infinite; }
.hero-art .h2 { animation: bob 4s ease-in-out infinite .5s; }
.hero-art .h3 { animation: bob 6s ease-in-out infinite 1s; }
.hero-art .h4 { animation: bob 4.5s ease-in-out infinite 1.5s; }
.hero-art .h5 { animation: bob 5.5s ease-in-out infinite .8s; }
.hero-art g { transform-box: fill-box; transform-origin: center; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(3deg); } }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.section-head h2 { margin: 0; font: 800 26px/1.1 var(--display); letter-spacing: -.03em; }
.section-head span { color: var(--muted); font-size: 15px; }
.cats { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.cats button { border: 0; padding: 9px 16px; border-radius: 99px; background: var(--panel); color: var(--muted); font-weight: 600; transition: background .2s, color .2s, transform .12s; }
.cats button:active { transform: scale(.95); }
.cats button.on { background: #fff; color: #000; }
.grid-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 16px; margin-bottom: 48px; }
.card-game { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 300/380; padding: 16px; border-radius: 20px; overflow: hidden; background: var(--c); color: #fff; transition: transform .3s var(--ease); isolation: isolate; }
.card-game.light { color: #000; }
.card-game:hover { transform: translateY(-6px) rotate(-.6deg); }
.card-game:active { transform: scale(.97); }
.card-game svg.art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.card-game .fg { transition: transform .45s var(--ease); transform-box: fill-box; transform-origin: center; }
.card-game:hover .fg { transform: translateY(-10px) scale(1.06); }
.card-game:hover .spin { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.card-game b { font: 800 21px/1.05 var(--display); letter-spacing: -.03em; }
.card-game span { font-size: 13px; font-weight: 600; opacity: .9; }
.card-game .play { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: #000; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: .3s var(--ease); }
.card-game .play svg { width: 14px; fill: #fff; margin-left: 2px; }
.card-game:hover .play { opacity: 1; transform: none; }

.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.box { background: var(--panel); border-radius: 22px; padding: 22px; }
.box h3 { margin: 0 0 14px; font: 700 18px var(--display); letter-spacing: -.02em; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 13px; padding: 8px 10px; }
td { padding: 10px; }
tr:nth-child(even) td { background: #161616; }
td:first-child { border-radius: 10px 0 0 10px; } td:last-child { border-radius: 0 10px 10px 0; }
td.num, th.num { text-align: right; }
.pos { color: var(--win); }
.neg { color: var(--lose); }
.muted { color: var(--muted); }
.table-wrap { overflow-x: auto; }
.rank { display: grid; gap: 6px; }
.rank div { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #161616; }
.rank div i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 13px var(--display); font-style: normal; background: var(--panel3); }
.rank div:nth-child(1) i { background: var(--accent); color: #000; }
.rank div b { margin-left: auto; color: var(--win); }
.foot { margin-top: 56px; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; }
.foot .big { font: 800 clamp(48px, 9vw, 120px)/.9 var(--display); letter-spacing: -.06em; color: var(--panel3); width: 100%; }
.age { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--panel2); color: var(--text); font-weight: 800; font-size: 13px; }

/* ---------- Tela de jogo ---------- */
.game-head { position: relative; display: flex; align-items: center; gap: 18px; padding: 16px 22px 16px 16px; border-radius: 22px 22px 0 0; background: var(--c); color: #fff; overflow: hidden; }
.game-head.light { color: #000; }
.game-head .thumb { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex: none; background: rgba(0,0,0,.15); }
.game-head .thumb svg { width: 100%; height: 100%; display: block; }
.game-head h1 { margin: 0; font: 800 28px/1 var(--display); letter-spacing: -.03em; }
.game-head p { margin: 4px 0 0; font-size: 15px; opacity: .92; }
.game { display: grid; grid-template-columns: 320px 1fr; background: var(--panel); border-radius: 0 0 22px 22px; overflow: hidden; min-height: 540px; }
.controls { padding: 20px; background: var(--panel); display: flex; flex-direction: column; gap: 16px; }
.stage { position: relative; padding: 28px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-width: 0; background: #0a0a0a; overflow: hidden; }
.stage.fx-win { animation: winflash .9s var(--ease); }
.stage.fx-lose { animation: shake .45s; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.stage.fx-lose::after { background: var(--lose); animation: redflash .6s; }
.stage.fx-win::after { background: var(--win); animation: greenflash .8s; }
@keyframes shake { 15% { transform: translateX(-9px); } 30% { transform: translateX(8px); } 45% { transform: translateX(-6px); } 60% { transform: translateX(4px); } 80% { transform: translateX(-2px); } }
@keyframes redflash { 20% { opacity: .16; } }
@keyframes greenflash { 20% { opacity: .1; } }
@keyframes winflash { 30% { transform: scale(1.01); } }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.field .row { display: flex; gap: 6px; }
.input { width: 100%; padding: 12px 16px; background: var(--panel2); border: 0; border-radius: 14px; font: 700 16px var(--display); outline: none; transition: background .2s; }
.input:focus { background: var(--panel3); }
select.input { appearance: none; cursor: pointer; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--panel2); border-radius: 99px; }
.seg button { border: 0; background: transparent; padding: 8px 4px; border-radius: 99px; font-weight: 700; font-size: 14px; color: var(--muted); transition: background .2s, color .2s; }
.seg button.on { background: #fff; color: #000; }
.stat { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); padding: 4px 0; }
.stat b { color: var(--text); font-family: var(--display); }
.result-pill { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); padding: 10px 20px; border-radius: 99px; font: 800 16px var(--display); background: var(--panel2); white-space: nowrap; z-index: 3; animation: pop .45s var(--ease); max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.result-pill.win { background: var(--win); color: #00331f; }
.result-pill.lose { background: var(--lose); color: #fff; }
@keyframes pop { from { transform: translate(-50%, -12px) scale(.8); opacity: 0; } }
.history-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.chip { padding: 4px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--panel2); animation: pop2 .3s var(--ease); }
.chip.hi { background: #0d3324; color: var(--win); }
.chip.lo { background: #331217; color: var(--lose); }
@keyframes pop2 { from { transform: scale(.5); opacity: 0; } }

/* temas por jogo */
.stage.t-crash { background: #140a05; }
.stage.t-navigator { background: #050c1c; }
.stage.t-double { background: #120406; }
.stage.t-mines { background: #04140d; }
.stage.t-zebra { background: #2b2116; }
.stage.t-plinko { background: #13040d; }
.stage.t-dice { background: #04130a; }
.stage.t-limbo { background: #160d02; }
.stage.t-keno { background: #04101c; }
.stage.t-tower { background: #031414; }
.stage.t-hilo, .stage.t-blackjack, .stage.t-roulette { background: var(--felt); }
.stage.t-coinflip { background: #0c0c0c; }

/* Double */
.dbl-window { position: relative; width: 100%; max-width: 820px; height: 120px; overflow: hidden; border-radius: 18px; background: #000; }
.dbl-window::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: var(--accent); z-index: 2; border-radius: 4px; }
.dbl-strip { display: flex; gap: 8px; position: absolute; top: 12px; left: 0; will-change: transform; }
.dbl-tile { width: 96px; height: 96px; flex: none; border-radius: 16px; display: grid; place-items: center; font: 800 30px var(--display); }
.t-red { background: var(--red); color: #fff; }
.t-black { background: var(--black); color: #fff; }
.t-white { background: var(--white); color: #000; }
.dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 700 12px var(--display); animation: pop2 .3s var(--ease); }
.pick3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pick3 button { padding: 16px 4px; border-radius: 16px; border: 0; font: 800 17px var(--display); transition: transform .15s var(--ease), box-shadow .2s; }
.pick3 button:active { transform: scale(.94); }
.pick3 button.on { box-shadow: 0 0 0 3px var(--panel), 0 0 0 6px var(--accent); }

/* Crash */
.crash-box { position: relative; width: 100%; max-width: 860px; aspect-ratio: 16/9; border-radius: 20px; overflow: hidden; background: #000; }
.crash-box canvas { width: 100%; height: 100%; display: block; }
.crash-mult { position: absolute; inset: 0; display: grid; place-items: center; font: 800 clamp(46px, 9vw, 96px) var(--display); letter-spacing: -.04em; pointer-events: none; }
.crash-mult.boom { color: var(--lose); animation: boom .5s var(--ease); }
.crash-mult.cashed { color: var(--win); animation: pop3 .5s var(--ease); }
@keyframes boom { 30% { transform: scale(1.25); } }
@keyframes pop3 { 40% { transform: scale(1.15); } }

/* Mines / Tower / Keno */
.mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: min(100%, 470px); }
.tile { aspect-ratio: 1; border-radius: 16px; border: 0; background: #1b2a23; transition: transform .15s var(--ease), background .2s; display: grid; place-items: center; }
.t-mines .tile { background: #13261d; }
.tile:hover:not(:disabled) { transform: translateY(-3px); background: #22382d; }
.tile:active:not(:disabled) { transform: scale(.92); }
.tile.gem { background: #0f5a3a; animation: flip .4s var(--ease); }
.tile.bomb { background: #5c1520; animation: flip .4s var(--ease); }
.tile.dim { opacity: .4; animation: none; }
.tile svg { width: 58%; height: 58%; }
@keyframes flip { from { transform: rotateY(90deg) scale(.8); } }
.tower { display: flex; flex-direction: column-reverse; gap: 8px; width: min(100%, 440px); }
.tower-row { display: grid; gap: 8px; grid-template-columns: repeat(var(--cols), 1fr); align-items: center; }
.tower-row .tile { aspect-ratio: auto; height: 46px; font: 700 14px var(--display); color: #6b8f8f; background: #0f2626; }
.tower-row.current .tile:not(:disabled) { background: #1c4646; color: #fff; animation: glowrow 1.4s ease-in-out infinite; }
@keyframes glowrow { 50% { background: #256060; } }
.keno-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; width: min(100%, 600px); }
.keno-grid .tile { aspect-ratio: 1; font: 700 16px var(--display); background: #0f2238; border-radius: 50%; }
.keno-grid .tile:hover:not(:disabled) { background: #173253; }
.keno-grid .tile.picked { background: #fff; color: #000; }
.keno-grid .tile.drawn { background: #5c1520; color: #fff; animation: flip .3s var(--ease); }
.keno-grid .tile.picked.drawn { background: var(--accent); color: #000; }
.pay-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pay-row div { text-align: center; padding: 6px 10px; border-radius: 12px; background: var(--panel2); font: 600 12px/1.3 var(--display); }
.pay-row div.hit { background: var(--accent); color: #000; animation: pop2 .3s; }

/* Dice / Limbo */
.dice-big, .limbo-big { font: 800 clamp(56px, 11vw, 110px)/1 var(--display); letter-spacing: -.05em; transition: color .2s; }
.dice-track { position: relative; width: min(100%, 680px); height: 16px; border-radius: 99px; display: flex; overflow: visible; }
.dice-track .z { height: 100%; transition: flex-basis .1s; }
.dice-track .z:first-of-type { border-radius: 99px 0 0 99px; }
.dice-track .z:last-of-type { border-radius: 0 99px 99px 0; }
.dice-track input { position: absolute; inset: -12px 0; width: 100%; opacity: 0; cursor: grab; z-index: 2; }
.dice-marker { position: absolute; top: -48px; transform: translateX(-50%); padding: 6px 12px; border-radius: 12px; font: 800 15px var(--display); background: #fff; color: #000; transition: left .5s var(--ease); }
.dice-handle { position: absolute; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 10px; background: #fff; pointer-events: none; z-index: 1; }
.dice-scale { display: flex; justify-content: space-between; width: min(100%, 680px); color: var(--muted); font: 600 13px var(--display); }

/* Plinko */
.plinko canvas { width: min(100%, 680px); height: auto; display: block; }

/* Coinflip */
.coin { width: 190px; height: 190px; border-radius: 50%; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; position: relative; }
.coin .face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden; font: 800 24px var(--display); }
.coin .heads { background: var(--accent); color: #000; box-shadow: inset 0 0 0 10px #C9A100; }
.coin .tails { background: #d4d4d4; color: #111; transform: rotateY(180deg); box-shadow: inset 0 0 0 10px #9a9a9a; }

/* Cartas */
.cards { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; min-height: 140px; }
.pcard { width: 92px; height: 132px; border-radius: 12px; background: #fff; color: #111; display: flex; flex-direction: column; justify-content: space-between; padding: 9px 11px; font: 800 24px var(--display); animation: deal .35s var(--ease) both; }
.pcard:nth-child(2) { animation-delay: .08s; } .pcard:nth-child(3) { animation-delay: .16s; }
.pcard.red { color: #D7263D; }
.pcard .s { align-self: flex-end; font-size: 30px; }
.pcard.back { background: var(--accent); background-image: repeating-linear-gradient(45deg, #000 0 2px, transparent 2px 12px); }
.pcard.small { width: 46px; height: 66px; font-size: 13px; padding: 4px 6px; border-radius: 8px; }
.pcard.small .s { font-size: 15px; }
@keyframes deal { from { transform: translate(40px, -30px) rotate(10deg); opacity: 0; } }
.hand-label { font-size: 15px; color: #cfe9dc; font-weight: 600; }
.hand-label b { color: #fff; font-family: var(--display); }

/* Roleta */
.rl-board { display: grid; grid-template-columns: 46px repeat(12, 1fr) 56px; gap: 4px; width: 100%; max-width: 860px; }
.rl-board button, .rl-out button, .rl-dozens button { position: relative; border: 0; border-radius: 8px; padding: 0; height: 46px; font: 700 14px var(--display); color: #fff; transition: transform .12s var(--ease), filter .15s; }
.rl-board button:hover, .rl-out button:hover, .rl-dozens button:hover { filter: brightness(1.2); }
.rl-board button:active, .rl-out button:active, .rl-dozens button:active { transform: scale(.92); }
.rl-board .zero { grid-row: span 3; height: auto; background: #13A05A; }
.rl-board .r { background: var(--red); }
.rl-board .b { background: #111; }
.rl-board .o, .rl-out button, .rl-dozens button { background: #0a4a30; }
.rl-out { display: grid; grid-template-columns: 46px repeat(6, 1fr) 56px; gap: 4px; width: 100%; max-width: 860px; }
.rl-dozens { display: grid; grid-template-columns: 46px repeat(3, 1fr) 56px; gap: 4px; width: 100%; max-width: 860px; }
.stake { position: absolute; top: -8px; right: -6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #000; font: 800 11px/24px var(--display); z-index: 2; animation: pop2 .25s var(--ease); }
.rl-result { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; font: 800 52px var(--display); color: #fff; box-shadow: inset 0 0 0 8px rgba(0,0,0,.25); }
.rl-wheel-row { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }

/* Fortune Zebra */
.zebra-frame { position: relative; padding: 18px; border-radius: 26px; background: #F2E6C9; }
.zebra-frame::before { content: ""; position: absolute; inset: 0; border-radius: 26px; background: repeating-linear-gradient(115deg, #000 0 14px, transparent 14px 40px); opacity: .9; -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); padding: 10px; pointer-events: none; }
.zebra-head { position: relative; text-align: center; font: 800 18px var(--display); letter-spacing: -.02em; color: #000; margin: 4px 0 12px; }
.reels { position: relative; display: grid; grid-template-columns: repeat(3, 116px); gap: 8px; }
.reel { height: 360px; overflow: hidden; border-radius: 14px; background: #fff; position: relative; }
.reel-inner { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.sym { height: 120px; display: grid; place-items: center; }
.sym svg { width: 78px; height: 78px; }
.sym.hit { background: #FFE58A; animation: symhit .7s var(--ease) 2; }
@keyframes symhit { 50% { transform: scale(1.08); } }

/* Modal e formulários */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.8); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.modal-box { width: min(100%, 420px); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--panel); border-radius: 26px; padding: 26px; animation: up .3s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px) scale(.97); opacity: 0; } }
.modal-box h2 { margin: 0 0 16px; font: 800 24px var(--display); letter-spacing: -.03em; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form .input { font: 500 16px Inter, sans-serif; }
.tabs { display: flex; gap: 4px; margin-bottom: 18px; padding: 4px; background: var(--panel2); border-radius: 99px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 99px; font-weight: 700; color: var(--muted); }
.tabs button.on { background: #fff; color: #000; }
.err { color: var(--lose); font-size: 14px; min-height: 20px; }
.note { font-size: 14px; color: var(--muted); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px); opacity: 0; transition: .3s var(--ease); padding: 12px 20px; border-radius: 99px; background: #fff; color: #000; font-weight: 700; z-index: 70; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--lose); color: #fff; }
.toast.good { background: var(--win); color: #00331f; }

/* Efeitos */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 80; }
.fx-coin { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; animation: coinfly 1.2s cubic-bezier(.15,.7,.4,1) forwards; }
.fx-coin svg { width: 100%; height: 100%; display: block; }
@keyframes coinfly {
  0% { transform: translate(0, 0) scale(.3) rotate(0); opacity: 1; }
  60% { opacity: 1; }
  100% { transform: translate(var(--dx), calc(var(--dy) + 260px)) scale(var(--s)) rotate(var(--r)); opacity: 0; }
}
.bigwin { position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; background: rgba(0,0,0,.75); animation: fade .25s; cursor: pointer; }
.bigwin.out { opacity: 0; transition: opacity .3s; }
.bigwin-box { text-align: center; padding: 40px 56px; border-radius: 32px; background: var(--accent); color: #000; animation: bigpop .6s cubic-bezier(.2,1.4,.4,1); }
.bigwin-box p { margin: 0; font: 800 22px var(--display); }
.bigwin-box b { display: block; font: 800 clamp(48px, 10vw, 96px)/1 var(--display); letter-spacing: -.05em; margin: 8px 0; }
.bigwin-box span { display: inline-block; padding: 6px 16px; border-radius: 99px; background: #000; color: var(--accent); font: 800 18px var(--display); }
@keyframes bigpop { from { transform: scale(.4) rotate(-6deg); opacity: 0; } }

/* Admin */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--panel); border-radius: 18px; padding: 16px 18px; }
.kpi small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.kpi b { font: 800 22px var(--display); letter-spacing: -.02em; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--panel3); }
.badge.admin { background: var(--accent); color: #000; }
.badge.blocked { background: #5c1520; color: #ffd0d6; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Barra do celular */
.tabbar { display: none; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .side { display: none; }
  .topnav { display: none; }
  main { padding: 4px 16px 96px; }
  .top { padding: 0 16px; gap: 10px; height: 60px; }
  .brand { font-size: 21px; }
  .hero { grid-template-columns: 1fr; padding: 30px 24px 0; min-height: 0; border-radius: 24px; }
  .hero-art { max-height: 230px; margin: 0 auto; }
  .two-col { grid-template-columns: 1fr; }
  .game { grid-template-columns: 1fr; }
  .controls { order: 2; }
  .game-head { border-radius: 20px 20px 0 0; }
  .reels { grid-template-columns: repeat(3, 86px); }
  .reel { height: 270px; }
  .sym { height: 90px; }
  .sym svg { width: 60px; height: 60px; }
  .dbl-tile { width: 70px; height: 70px; font-size: 22px; }
  .dbl-window { height: 94px; }
  .stage { overflow-x: auto; padding: 64px 16px 24px; }
  .rl-board, .rl-dozens, .rl-out { min-width: 620px; align-self: flex-start; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #0d0d0d; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 600; border-radius: 12px; transition: color .2s, transform .12s; }
  .tabbar a:active, .tabbar button:active { transform: scale(.92); }
  .tabbar .on { color: #fff; }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .toast { bottom: 90px; }
}
@media (max-width: 520px) {
  .account .btn { padding: 8px 12px; font-size: 14px; }
  .balance { font-size: 15px; padding: 6px 6px 6px 12px; }
  .grid-games { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .keno-grid { grid-template-columns: repeat(5, 1fr); }
  .hero h1 { font-size: 40px; }
  .game-head h1 { font-size: 24px; }
  .game-head .thumb { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker-track { animation: none; padding-left: 0; }
}
