/* Painéis e HUD v2 — carregado depois de styles.css. */

/* HUD: ícones ≡ / volume, medidores clicáveis, linha de giro + linha de autoplay */
.hud { height: 118px; }
.hud-icons { display: flex; flex-direction: column; gap: 6px; }
.icon-btn { width: 30px; height: 30px; padding: 4px; border: 0; border-radius: 6px; background: #0008; }
.icon-btn:hover { background: #fff2; }
.icon-btn svg { width: 100%; height: 100%; display: block; }
.meters { border: 0; background: none; padding: 4px 6px; border-radius: 8px; text-align: left; }
.meters:hover { background: #fff1; }
.meters.coins span { color: #cfe9d4; }
.hud-right { flex-direction: column; gap: 4px; align-items: center; }
.spin-row { display: flex; align-items: center; gap: 14px; }
.auto-row { display: flex; align-items: center; gap: 8px; }
.spin-btn { width: 88px; height: 88px; }
.speed-btn { display: flex; align-items: center; gap: 3px; height: 26px; padding: 0 8px; border: 2px solid #fff8; border-radius: 999px; background: #000a; font-size: 12px; font-weight: 900; }
.speed-btn svg { width: 16px; height: 16px; }
.speed-btn.on { border-color: var(--gold); color: #fff36a; }
.pill-btn.on { border-color: #e0333d; color: #ffb3b3; }
.pill-btn.big { padding: 12px 26px; font-size: 18px; }

/* Botão de aposta especial: estado ATIVO com interruptor */
.feature-btn.ante { position: relative; cursor: pointer; user-select: none; }
.feature-btn.ante.disabled { filter: grayscale(.7) brightness(.7); pointer-events: none; }
.feature-btn.ante.active { background: radial-gradient(circle at 50% 35%, #ff8a3d, #8a1d0e 70%); box-shadow: 0 0 18px #ffb34788, inset 0 0 0 3px #0006; }
/* hover da aposta especial: ver regra de escala abaixo */
/* interruptor sempre visível (referência): desligado = escuro com seta à esquerda; ligado = verde, seta à direita */
.ante-toggle { display: block; width: 120px; height: 30px; border-radius: 4px; background: #3a0606; border: 2px solid var(--gold); position: relative; box-shadow: inset 0 2px 6px #000a; transition: background .2s; }
.ante-toggle span { position: absolute; top: 3px; left: 3px; width: 44px; height: 20px; border-radius: 3px; background: linear-gradient(#ffb347, #c96a10); transition: left .2s; }
.ante-toggle span::after { content: '➜'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: #3a1a00; }
.feature-btn.ante.active .ante-toggle { background: linear-gradient(#35d066, #0b5a24); }
.feature-btn.ante.active .ante-toggle span { left: calc(100% - 47px); }
.feature-btn.ante.active .feature-sub { font-size: 18px; font-weight: 900; color: #fff; }
/* aviso no topo do painel de compra quando a aposta especial foi desligada */
.panel-notice { margin: -6px 0 8px; font-size: 14px; font-weight: 900; color: #fff36a; letter-spacing: .03em; }
/* paisagem (referência AnteOnDescription): fora da janela, centrado acima dela — rótulo 1000×80 (2 linhas de 40) com o
   centro 51 unidades acima da borda da janela de 1658 de largura (aqui 1180 → ×0,7119); degradê branco → azulado e
   contorno preto de 1 */
body:not(.portrait) .modal-card.with-notice { overflow: visible; }
body:not(.portrait) .with-notice > .panel-notice { position: absolute; left: 50%; bottom: 100%; width: 711.9px; margin: 0 0 4px; transform: translateX(-50%);
  font-family: 'DUAT Title', 'DUAT Display', sans-serif; font-size: 28.4px; line-height: 1.2; font-weight: 700; letter-spacing: 0; text-align: center;
  background: linear-gradient(#fff 31%, #a9ccdf 83%) 0 0 / 100% 1lh; -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1.5px #000; paint-order: stroke fill; pointer-events: none; }

/* Popup de volume */
.volume-pop {
  position: absolute; left: 126px; top: -10px; width: 273px; height: 36px; z-index: 9; display: flex; align-items: center; gap: 10px; /* dentro da .hud (medido na referência) */
  padding: 8px 14px; border-radius: 10px; background: #000d; border: 2px solid #fff4;
}
.volume-pop svg { width: 18px; height: 18px; }
.vol-mute { display: grid; place-items: center; padding: 2px; border: 0; background: none; color: inherit; cursor: pointer; }
.vol-mute svg { width: 22px; height: 22px; }
.volume-pop input { width: 160px; accent-color: #e0333d; }
.volume-pop b { width: 28px; text-align: right; }

/* Base dos painéis */
.modal-card { position: relative; }
.panel-x, .panel-back {
  position: absolute; top: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: #0006; font-size: 20px; font-weight: 900; line-height: 1;
}
.panel-x { right: 10px; }
.panel-back { left: 10px; font-size: 28px; }
.panel-x:hover, .panel-back:hover { background: #fff2; }
.panel-wide { width: 820px; }
.panel-bet { width: 360px; }
.panel-auto { width: 520px; }
.panel-info { width: 860px; min-height: 480px; display: flex; flex-direction: column; }

.stepper { margin: 10px auto; }
.stepper-label { font-size: 13px; font-weight: 900; letter-spacing: .06em; color: #fff; margin: 6px 0; }
.stepper-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.step-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; font-size: 26px; font-weight: 900; line-height: 1; }
.step-btn.minus { background: #d9d2c5; color: #222; }
.step-btn.plus { background: #2fbf5a; color: #fff; }
.step-value { min-width: 140px; padding: 8px 14px; border-radius: 8px; background: #0009; border: 2px solid #fff3; font-size: 20px; font-weight: 900; }

/* Definições do sistema */
.system-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; text-align: left; margin-top: 8px; }
.system-col .menu-row { margin-top: 0; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid #fff1; cursor: pointer; }
.setting-row b { display: block; font-size: 15px; }
.setting-row small { display: block; font-size: 11px; opacity: .7; }
.switch { appearance: none; width: 56px; height: 28px; flex: none; margin: 0; border-radius: 999px; background: #555; position: relative; cursor: pointer; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #ddd; transition: left .15s; }
.switch:checked { background: #2fbf5a; }
.switch:checked::after { left: 31px; background: #fff; }

/* Ofertas (compra / apostas especiais) */
.panel-offers { width: 900px; }
.panel-offers.green, .panel-confirm.green { background: radial-gradient(ellipse at 50% 60%, #3fa84a, #0e3d17 75%); }
.panel-offers.red { background: radial-gradient(ellipse at 50% 60%, #c7361f, #4a0b06 75%); }
.panel-confirm { width: 560px; }
.offer-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 10px 0; }
.offer-grid.single { margin: 14px 0; }
.offer-card {
  width: 250px; min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 10px; border: 3px solid #e8e2d0; border-radius: 6px; font-weight: 900; text-align: center;
  background: linear-gradient(#ffffff22, #0003), var(--card, #2c7a35); box-shadow: inset 0 0 0 2px #0005, 0 4px 10px #0006;
}
.panel-offers.red .offer-card { --card: #b0271a; }
.offer-card:not(:disabled):hover { border-color: #fff36a; }
/* referência: botões de compra/aposta e dos painéis — passar o mouse 1,01×, pressionar 0,99×, soltar 1×
   (troca instantânea, sem transição, como os SetTransform da demo) */
:is(.offer-card:not(:disabled), .feature-btn:not(.disabled), .modal-card .pill-btn):hover { transform: scale(1.01); transition: none; }
:is(.offer-card:not(:disabled), .feature-btn:not(.disabled), .modal-card .pill-btn):active { transform: scale(0.99); transition: none; }
.offer-card.active { border-color: #fff36a; box-shadow: 0 0 16px #fff36a88, inset 0 0 0 2px #0005; }
.offer-title { font-size: 14px; color: #fff36a; letter-spacing: .03em; }
.offer-price { font-size: 26px; }
.offer-desc { font-size: 11px; font-weight: 700; opacity: .9; }
.offer-card:disabled { filter: none; cursor: default; }
.offer-card.broke { filter: brightness(0.72) saturate(0.8); } /* acima do saldo (referência: apagada) */

/* Autoplay */
.auto-checks { display: flex; justify-content: center; gap: 22px; margin: 10px 0 18px; font-weight: 900; font-size: 14px; }
.auto-checks input { width: 22px; height: 22px; accent-color: #2fbf5a; vertical-align: middle; margin-right: 6px; }
.auto-slider { display: flex; align-items: center; gap: 14px; margin: 6px 20px; }
.auto-slider input { flex: 1; accent-color: #2fbf5a; }
.auto-slider b { width: 56px; font-size: 22px; }

/* Regras paginadas */
.info-page { flex: 1; text-align: left; }
.info-page h2 { text-align: center; }
.info-page p { font-size: 15px; line-height: 1.45; }
.info-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 13px; font-weight: 800; }
.nav-arrow { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #2fbf5a; font-size: 30px; font-weight: 900; line-height: 1; }
.odds { margin: 10px auto; border-collapse: collapse; min-width: 320px; }
.odds td { padding: 6px 14px; border-bottom: 1px solid #fff2; }
.odds td:last-child { text-align: right; color: var(--gold); font-weight: 900; }

/* Histórico */
.history-wrap { max-height: 480px; overflow: auto; }
.history { width: 100%; border-collapse: collapse; font-size: 13px; }
.history th { position: sticky; top: 0; background: #2a150a; color: var(--gold); padding: 6px; }
.history td { padding: 5px 6px; border-bottom: 1px solid #fff1; }

/* Big win */
.bigwin { position: absolute; inset: 0; z-index: 12; display: grid; place-content: center; text-align: center; overflow: hidden; background: radial-gradient(circle, #3a2206e6, #000e 70%); cursor: pointer; }
.bigwin-rays { position: absolute; inset: -40%; background: repeating-conic-gradient(#f2c14e22 0 8deg, transparent 8deg 20deg); animation: spin-rays 12s linear infinite; }
@keyframes spin-rays { to { transform: rotate(360deg); } }
.bigwin-title { position: relative; font-size: 84px; font-weight: 900; color: #fff36a; -webkit-text-stroke: 2px #6a3a00; text-shadow: 0 6px 0 #6a3a00, 0 0 30px #ffb347; }
.bigwin-amount { position: relative; margin-top: 10px; font-size: 64px; font-weight: 900; color: #fff; text-shadow: 0 4px 0 #000; }
.bigwin-hint { position: relative; margin-top: 20px; font-size: 14px; opacity: .7; }

/* Intro */
.intro { position: absolute; inset: 0; z-index: 14; background: radial-gradient(ellipse at 50% 40%, #3b3552, #120804 75%); }
.intro-slides { position: absolute; inset: 40px 200px 170px; }
.intro-slide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: opacity .5s; }
.intro-slide.on { opacity: 1; }
.intro-slide h1 { margin: 26px 0 0; font-size: 44px; font-weight: 900; text-align: center; color: #fff36a; -webkit-text-stroke: 1px #6a3a00; text-shadow: 0 4px 0 #6a3a00; }
.intro-art { display: flex; gap: 20px; align-items: center; justify-content: center; }
.intro-art svg { width: 140px; height: 140px; filter: drop-shadow(0 0 20px #8dff9a88); }
.intro-art.mult { font-size: 72px; font-weight: 900; color: #8dff9a; text-shadow: 0 0 24px #2fbf5a; }
.intro-art.mult span { color: #fff; opacity: .6; }
.intro-dots { position: absolute; left: 0; right: 0; bottom: 150px; display: flex; justify-content: center; gap: 10px; }
.intro-dots button { width: 14px; height: 14px; padding: 0; border-radius: 50%; border: 2px solid var(--gold); background: transparent; }
.intro-dots button.on { background: var(--gold); }
.intro-foot { position: absolute; right: 70px; bottom: 40px; display: grid; gap: 10px; justify-items: start; font-size: 13px; font-weight: 900; }
.vol-badge { padding: 4px 10px; border-radius: 999px; background: #000a; border: 2px solid #fff4; }
.vol-badge b { color: var(--gold); }
.intro-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.intro-check input { width: 20px; height: 20px; accent-color: var(--gold); }
.intro-go { position: absolute; right: 90px; bottom: 120px; width: 110px; height: 110px; }

/* Assets substituíveis (manifesto) */
.art { display: block; width: 100%; height: 100%; object-fit: contain; }
.sprite { width: 100%; height: auto; background-repeat: no-repeat; }
.sym-inner .art { filter: drop-shadow(0 3px 2px #0009); }
.fx-art { position: absolute; transform: translate(-50%, -50%); pointer-events: none; }
.fx-winframe { z-index: 1; }
.fx-explode { z-index: 2; }
.bg.has-art { background-position: center; }
.hero.has-art { border: 0; background: none; }
.hero-art { width: 100%; height: 100%; }
.logo-art { max-height: 120px; margin: 0 auto; }
.bigwin-coin { position: absolute; top: 0; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c0, #f2c14e 45%, #8a5a12); box-shadow: 0 0 8px #ffb34788; pointer-events: none; }
.bigwin-coin:has(.art) { background: none; box-shadow: none; }
.intro-slide > .art { max-height: 300px; width: auto; }
