/* =====================================================================
   ZEIBAN — Painel de jogo (layout original) + Carteira
   ===================================================================== */
.gp { background: #121418; border-radius: 8px; overflow: hidden; margin-top: 8px; }
.gp-main { display: grid; grid-template-columns: 330px 1fr; min-height: 725px; }
.gc { background: #121418; padding: 24px; display: flex; flex-direction: column; gap: 16px; border-right: 1px solid #2a2e38; }
.gc-tabs { width: 100%; display: grid !important; grid-template-columns: repeat(3, 1fr); background: #202329; border-radius: 6px; padding: 6px; }
.gc-tabs .pill-tab { justify-content: center; padding: 0 16px; height: 36px; font-weight: 500; font-size: 14px; color: #fff; }
.gc-tabs .pill-tab.active { background: #343843; }
.gc-field { display: flex; flex-direction: column; gap: 0.4rem; }
.gc-field-head { display: flex; align-items: center; justify-content: space-between; font-size: var(--text-sm); }
.gc-lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #fff; }
.gc-info svg { width: 14px; height: 14px; color: var(--dim); }
.gc-box { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 8px 0 12px; background: #202329; border: 1px solid transparent; border-radius: 6px; transition: border-color var(--dur-fast); }
.gc-box:focus-within { border-color: var(--purple); }
.gc-box.ro { opacity: 0.9; }
.gc-box.center { justify-content: center; font-weight: 700; }
.gc-input { flex: 1; min-width: 0; background: none; border: none; outline: none; font-weight: 400; font-size: 14px; font-variant-numeric: tabular-nums; }
.gc-mini { height: 32px; min-width: 32px; padding: 0 6px; border-radius: 6px; background: transparent; font-weight: 500; font-size: 12px; }
.gc-mini:hover { background: var(--btn-dark-hover); }
.gc-inf, .gc-suffix { color: var(--dim); padding-right: 0.4rem; font-weight: 700; display: inline-flex; }
.gc-suffix svg { width: 14px; height: 14px; }
.gc-main { height: 54px; border-radius: 6px; background: var(--purple); font-weight: 500; font-size: 14px; transition: background var(--dur-fast), transform var(--dur-fast); margin-top: 0.25rem; }
.gc-main:hover { background: var(--purple-hover); }
.gc-main:active { transform: scale(0.98); }
.gc-main.cash { background: var(--green-btn); color: #04150d; }
.gc-extra, .gc-engine-extra { display: flex; flex-direction: column; gap: 1rem; }
.gc-engine-extra:empty { display: none; }
.gc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.gc-row2 .z-select .zs-btn { height: 44px; background: var(--input); border: 1px solid var(--border-2); }
.gc .z-select .zs-btn { height: 48px; background: #202329; border: 1px solid transparent; border-radius: 6px; font-weight: 400; }
.gc-seg2 { display: grid; grid-template-columns: auto auto 1fr; gap: 0.3rem; background: var(--input); border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 3px; }
.gc-seg2.full { grid-template-columns: 1fr 1fr; }
.gc-seg2 button { height: 36px; padding: 0 0.6rem; border-radius: 6px; font-size: var(--text-xs); font-weight: 700; color: var(--muted); }
.gc-seg2 button.active { background: var(--btn-dark); color: #fff; }
.gc-seg2 .gc-input { padding: 0 0.5rem; }
.gp-stage { position: relative; background: #121418; display: flex; min-width: 0; overflow: hidden; }
.gp-stage > * { flex: 1; }

.gbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px 24px; height: 60px; border-top: 1px solid #2a2e38; background: #121418; }
.gbar-left { display: flex; gap: 0.25rem; }
.gbar-ic { width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--dim); position: relative; }
.gbar-ic:hover { color: #fff; background: var(--btn-dark); }
.gbar-ic svg { width: 17px; height: 17px; }
.gbar-logo { opacity: 0.35; filter: grayscale(1); }
.gbar-logo .brand-word { font-size: 1.1rem; }
.gbar-logo svg { width: 20px; height: 20px; }
.gbar-fair { justify-self: end; display: inline-flex; align-items: center; gap: 6px; color: #9ba5b4; font-size: 12px; font-weight: 700; }
.gbar-fair:hover { color: #fff; }
.gbar-toggle { justify-self: end; display: flex; background: var(--input); border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 3px; }
.gbar-toggle button { display: inline-flex; align-items: center; gap: 0.35rem; height: 32px; padding: 0 0.75rem; border-radius: 6px; font-size: var(--text-sm); font-weight: 700; color: var(--muted); }
.gbar-toggle button svg { width: 14px; height: 14px; }
.gbar-toggle button.active { background: var(--btn-dark); color: #fff; }
html.theater .page-game .gp-main { min-height: 72vh; }

.game-hist { position: absolute; top: 1rem; right: 1rem; display: flex; gap: 0.35rem; z-index: 2; }
.hist-pill { font-size: var(--text-xs); font-weight: 800; padding: 0.3rem 0.55rem; border-radius: var(--r-full); background: var(--btn-dark); color: var(--muted); animation: fadeUp 0.25s var(--ease); font-variant-numeric: tabular-nums; }
.hist-pill.win { background: var(--green-btn); color: #04150d; }

/* Dice */
.dice-stage { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 24px 32px; min-width: 0; }
@media (max-width: 768px) { .dice-stage { padding: 16px; } }
.dice-center { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 1rem; }
.dice-track-box { background: var(--btn-dark); border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 1.1rem 1.25rem; }
.dice-track { position: relative; height: 10px; }
.dice-fill { position: absolute; top: 0; height: 100%; border-radius: 10px; }
.dice-fill.l { left: 0; }
.dice-fill.win { background: var(--green); }
.dice-fill.lose { background: #e5243b; }
.dice-range { position: absolute; left: 0; right: 0; top: 50%; width: 100%; margin: 0; transform: translateY(-50%); -webkit-appearance: none; appearance: none; background: transparent; height: 30px; cursor: pointer; z-index: 3; }
.dice-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 30px; border-radius: 6px; background: var(--purple) linear-gradient(90deg, transparent 8px, rgba(255,255,255,0.5) 8px 9px, transparent 9px 13px, rgba(255,255,255,0.5) 13px 14px, transparent 14px); box-shadow: 0 2px 10px rgba(119,23,255,0.6); border: 0; }
.dice-range::-moz-range-thumb { width: 22px; height: 30px; border-radius: 6px; background: var(--purple); border: 0; }
.dice-result { position: absolute; top: -52px; left: 50%; transform: translateX(-50%) scale(0.6); opacity: 0; transition: left 0.3s var(--ease), opacity 0.2s, transform 0.25s var(--ease); z-index: 4; }
.dice-result span { display: grid; place-items: center; width: 58px; height: 44px; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: #fff; color: #111; font-weight: 900; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.dice-result.show { opacity: 1; transform: translateX(-50%) scale(1); }
.dice-result.win span { color: #0c8a45; }
.dice-result.lose span { color: #d11a2a; }
.dice-scale { display: flex; justify-content: space-between; padding: 0.7rem 1.25rem 0; font-weight: 700; font-size: 16px; }
.dice-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.dice-inputs.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dice-inputs > * { min-width: 0; }
.dice-inputs input { min-width: 0; width: 100%; }
.dice-flip { color: var(--muted); display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-sm); }
.dice-flip:hover { background: var(--btn-dark); color: #fff; }
.dice-flip svg { width: 16px; height: 16px; }

/* Limbo / genérico */
.limbo-stage, .go-stage, .cf-stage, .mines-stage { position: relative; display: flex; flex-direction: column; padding: 1.5rem 2rem; }
.limbo-center, .go-center, .cf-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
.limbo-num { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 6rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; transition: color 0.2s; }
.limbo-num.win { color: var(--green); }
.limbo-num.lose { color: var(--red); }
.go-art { width: 190px; aspect-ratio: 1; border-radius: var(--r-lg); background: radial-gradient(110% 90% at 50% 20%, color-mix(in srgb, var(--c) 60%, #fff 40%), var(--c) 50%, color-mix(in srgb, var(--c) 45%, #000 55%)); display: grid; place-items: center; padding: 1.5rem; }
.go-art.hit { animation: goHit 0.5s var(--ease); }
@keyframes goHit { 30% { transform: scale(0.92) rotate(-3deg); } 60% { transform: scale(1.05) rotate(2deg); } }
.go-num { font-size: 3rem; }

/* Coinflip */
.cf-center { perspective: 900px; }
.cf-coin { position: relative; width: 170px; height: 170px; transform-style: preserve-3d; transition: transform 1s cubic-bezier(0.2, 1, 0.3, 1); }
.cf-face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden; box-shadow: inset 0 0 0 8px rgba(0,0,0,0.15); }
.cf-face.heads { background: radial-gradient(circle at 35% 30%, #ffe08a, #e0a106); }
.cf-face.tails { background: radial-gradient(circle at 35% 30%, #d8dee9, #7b8595); transform: rotateY(180deg); color: #2b2f38; }
.cf-face.tails svg { width: 70px; height: 70px; }

/* Mines */
.mines-stage { justify-content: center; align-items: center; }
.mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; width: min(100%, 460px); }
.mine { aspect-ratio: 1; border-radius: var(--r-md); background: var(--btn-dark); box-shadow: inset 0 -5px 0 rgba(0,0,0,0.25); transition: transform var(--dur-fast), background var(--dur-fast); display: grid; place-items: center; padding: 18%; }
.mines-grid.active .mine:not(.open):hover { transform: translateY(-3px); background: var(--btn-dark-hover); }
.mine.open { background: var(--input); box-shadow: none; animation: pop 0.25s var(--ease); }
.mine.gem { background: rgba(34,224,122,0.12); }
.mine.bomb { background: rgba(229,36,59,0.16); }
.mine.dim { opacity: 0.45; animation: none; }
.mine svg { width: 100%; height: 100%; }
@keyframes pop { from { transform: scale(0.7); } to { transform: scale(1); } }

/* ---------------- terceiros ---------------- */
.tp-stage { position: relative; min-height: 720px; display: grid; place-items: center; background: #121418; overflow: hidden; }
.tp-bg { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0.12; filter: blur(2px); color: var(--c); transform: scale(1.6); }
.tp-bg svg { width: 60%; height: 60%; }
.tp-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.tp-card-row { display: flex; align-items: center; justify-content: center; gap: 16px; }
.tp-saldo { font-size: 16px; color: #bec6d1; margin: 0; }
.tp-card-row .z-select { width: 110px; }
.tp-card-row .zs-btn { height: 48px; background: #202329; border: 0; border-radius: 6px; font-weight: 500; color: #bec6d1; padding: 8px 16px; }
.tp-card-btns { display: grid; grid-template-columns: 160px 160px; gap: 16px; }
.tp-card-btns .btn { height: 48px; font-size: 14px; font-weight: 500; }
.tp-card-btns .btn svg { width: 16px; height: 16px; }

.slot-machine { width: min(100%, 720px); margin: 1.5rem auto; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 40%, #0c0d10), #0c0d10); border: 2px solid var(--c); border-radius: var(--r-lg); padding: 1rem; display: flex; flex-direction: column; gap: 0.8rem; }
.slot-title { font-family: var(--font-display); font-size: 1.8rem; text-align: center; text-shadow: 0 3px 12px rgba(0,0,0,0.5); }
.slot-reels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; background: rgba(0,0,0,0.35); border-radius: var(--r-md); padding: 0.5rem; }
.reel { display: flex; flex-direction: column; gap: 0.4rem; overflow: hidden; }
.sym { aspect-ratio: 1; display: grid; place-items: center; font-size: clamp(1.4rem, 4vw, 2.4rem); background: rgba(255,255,255,0.06); border-radius: var(--r-sm); }
.reel.spin .sym { animation: spinBlur 0.12s linear infinite; }
@keyframes spinBlur { 0% { transform: translateY(-40%); filter: blur(2px); } 100% { transform: translateY(40%); filter: blur(2px); } }
.slot-win { text-align: center; font-weight: 900; color: var(--gold); min-height: 1.4em; opacity: 0; }
.slot-win.show { opacity: 1; animation: pop 0.3s var(--ease); }
.slot-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.slot-info { display: flex; flex-direction: column; font-size: var(--text-sm); font-weight: 800; }
.slot-info .dim { font-size: 0.65rem; }
.slot-bet { display: flex; align-items: center; gap: 0.6rem; text-align: center; font-size: var(--text-sm); }
.slot-bet .dim { display: block; font-size: 0.65rem; font-weight: 800; }
.slot-bet button { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.1); font-weight: 900; }
.slot-spin { width: 64px; height: 64px; border-radius: 50%; background: var(--green-btn); color: #04150d; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(0,189,113,0.25); }
.slot-spin svg { width: 28px; height: 28px; }
.slot-spin:disabled { opacity: 0.6; }
.live-wrap { width: min(100%, 720px); margin: 1.5rem auto; display: flex; flex-direction: column; gap: 1rem; }
.live-table { position: relative; min-height: 360px; border-radius: var(--r-lg); background: radial-gradient(90% 80% at 50% 30%, color-mix(in srgb, var(--c) 55%, #0c0d10), #0c0d10); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; }
.live-badge { position: absolute; top: 0.8rem; left: 0.8rem; display: inline-flex; align-items: center; gap: 5px; font-size: 0.65rem; font-weight: 900; background: #e5243b; padding: 0.2rem 0.5rem; border-radius: 4px; }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
.live-dealer { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,0.12); display: grid; place-items: center; }
.live-dealer svg { width: 38px; height: 38px; }
.live-chips { display: flex; justify-content: center; gap: 0.75rem; }
.chip { width: 56px; height: 56px; border-radius: 50%; background: var(--purple); border: 4px dashed rgba(255,255,255,0.5); font-weight: 900; }
.chip:nth-child(2) { background: #e5243b; } .chip:nth-child(3) { background: #16a34a; } .chip:nth-child(4) { background: #111; }

/* ---------------- CARTEIRA (modal) ---------------- */
.cashier-head { display: flex; align-items: center; justify-content: space-between; padding-right: 2.5rem; }
.cashier-head h3 { font-size: var(--text-h3); }
.bal-chip { display: flex; align-items: center; gap: 0.4rem; background: var(--panel-2); border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 0.35rem 0.7rem; font-size: var(--text-sm); }
.bal-chip svg { width: 15px; height: 15px; color: var(--green); }
.cashier-body { display: flex; flex-direction: column; gap: 0.8rem; }
.crypto-select { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
.crypto-opt { display: flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.7rem; background: var(--panel-2); border: 1px solid var(--border-2); border-radius: var(--r-md); text-align: left; }
.crypto-opt:hover { border-color: #3a3e48; }
.crypto-opt.active { border-color: var(--purple); background: rgba(119, 23, 255, 0.08); }
.crypto-opt b { font-size: var(--text-sm); }
.crypto-opt .dim { font-size: var(--text-xs); }
.crypto-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.qr-box { background: #fff; padding: 6px; border-radius: var(--r-md); }
.addr-box { display: flex; align-items: center; gap: 0.4rem; background: var(--input); border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 0.5rem 0.6rem; min-width: 0; }
.addr-box code { flex: 1; font-size: var(--text-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.addr-copy { color: var(--green); display: grid; place-items: center; width: 26px; height: 26px; flex: none; }
.addr-copy svg { width: 16px; height: 16px; }
.cashier-note { font-size: var(--text-xs); color: var(--dim); }
.bal-row { display: flex; align-items: center; justify-content: space-between; font-size: var(--text-sm); }
label.field, .field { display: flex; flex-direction: column; gap: 0.35rem; }
.field-box { display: flex; align-items: center; gap: 0.5rem; background: var(--input); border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 0 0.75rem; min-height: 44px; }
.field-box:focus-within { border-color: var(--purple); }
.field-input { flex: 1; min-width: 0; background: none; border: none; outline: none; padding: 0.65rem 0; color: #fff; }
select.field-input { background: var(--input); border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 0 0.75rem; height: 44px; }
.field-eye { color: var(--purple-soft); font-weight: 800; font-size: var(--text-xs); display: grid; place-items: center; }
.conv-fixed { color: var(--dim); font-weight: 700; }
.conv-sel { background: var(--btn-dark); border: none; border-radius: var(--r-sm); color: #fff; padding: 0.3rem 0.4rem; font-weight: 700; }
.conv-out { flex: 1; }
