/* custom.css — casinodemo (Bicho Nacional). Carregado DEPOIS do brand.css (regra 1 do CLAUDE.md).
 * Layout fica FLUIDO como no topzinho.com. Este arquivo só esconde slides que vieram
 * sem imagem na captura (lazy-load fora da tela em 1440px). Na fase 2 os carrosséis
 * passam a ser gerados pelo PHP com os jogos reais e isto deixa de ser necessário. */

/* card de jogo capturado sem <img> (tem um <div> vazio no lugar) */
.swiper-slide:has(> .game-card > .game-card__image > div:first-child) { display: none; }

/* provedor capturado sem logo */
.swiper-slide:has(> .casino-provider-item-wrapper > .provider-item:empty) { display: none; }

/* header em 1 linha (device=desktop): mostra 8 itens no menu, o resto fica no "Mais" (como o topzinho faz por JS) */
html[device="desktop"] ul[data-qa-id="navigation-list"] > li:nth-child(n+9) { display: none; }

/* logo provisoria (Aposta Muito, 580x100) e larga demais pro espaco do header (160x56); limita ate vir a logo do Bicho Nacional */
.header .header__logo { max-width: 200px !important; height: auto !important; max-height: var(--header-logo-height) !important; object-fit: contain; }

/* header LOGADO e mais largo (sino + saldo + depositar + avatar): mostra 6 itens no menu, resto no "Mais" */
html[device="desktop"] .header:has(.balance-wrap) ul[data-qa-id="navigation-list"] > li:nth-child(n+7) { display: none; }
.header .header__logo { max-width: 160px !important; }
/* widget de saldo vira link (o dropdown original era JS do Vue) */
.balance-wrap { cursor: pointer; }

/* tela de jogo: modo "semi tela cheia" (frame ocupa a janela inteira) */
.game-dialog.cd-semifull { position: fixed !important; inset: 0 !important; z-index: 9999 !important; background: #000; }
.game-dialog.cd-semifull .game-dialog__content, .game-dialog.cd-semifull .game-dialog__body { width: 100% !important; height: 100% !important; max-width: none !important; padding: 0 !important; }
.game-dialog.cd-semifull .game-iframe-wrap { height: calc(100% - 54px) !important; }

/* select nativo com a cara dos inputs do design (usado no saque) */
.cd-select { position: relative; display: block; }
.cd-select__label { position: absolute; top: 10px; left: 16px; font-size: 13px; opacity: .7; pointer-events: none; }
.cd-select__el { width: 100%; height: 100%; min-height: 64px; padding: 26px 44px 8px 16px; background: transparent; border: 0; outline: 0; color: inherit; font: inherit; font-weight: 600; appearance: none; -webkit-appearance: none; cursor: pointer; }
.cd-select__el option { background: var(--paper-main, #111); color: var(--text-main, #fff); }
.cd-select__arrow { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; opacity: .8; }

/* select do saque: label fixo em cima, valor embaixo (nao usa .label do design) */
.cd-select { display: block !important; height: 64px !important; padding: 0 !important; }
.cd-select__label { position: absolute !important; top: 11px !important; left: 16px !important; font-size: 12px !important; line-height: 1 !important; opacity: .65; transform: none !important; }
.cd-select__el { position: absolute; inset: 0; padding: 26px 44px 0 16px !important; font-size: 16px; }

/* widget "Jogo da sorte" do topzinho (imagens perdidas na captura): fora */
.lucky-game-widget { display: none !important; }

/* lateral do cassino: 2o bloco = "temas" do topzinho (777, Asia, Egito...) sem icones e sem equivalente nosso -> fora */
.left-sidebar .expander + .expander { display: none !important; }

/* dropdown do "Mais" (header) — visual dos cards do topzinho */
.header .more-menu-wrap { position: relative; }
.cd-more { position: absolute; top: calc(100% + 10px); right: 0; min-width: 290px; padding: 10px; border-radius: 16px; background: var(--paper-main, #111); box-shadow: 0 16px 40px rgba(0,0,0,.45); z-index: 700; display: flex; flex-direction: column; gap: 8px; }
.cd-more__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--paper-dark, #1d1d1d); color: var(--text-main, #fff); font-weight: 700; text-decoration: none; }
.cd-more__item:hover { background: var(--secondary-main, #333); }
.cd-more__item img { width: 44px; height: 44px; object-fit: contain; }
.button--menu-more-open .icon-arrow-down { transform: rotate(180deg); }

/* menu lateral mobile: bloco de links do perfil (injetado pelo app) */
.cd-mob-perfil ul { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 12px; }
.cd-mob-perfil .nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--paper-dark, #1d1d1d); color: var(--text-main, #fff); font-weight: 700; text-decoration: none; }
.cd-mob-perfil .nav-item i { font-size: 20px; opacity: .9; }

/* cards capturados com placeholder do UX (vencedores, rally, esportes, reels): fora */
.recent-winners li:has(img[src$="placeholder.svg"]),
.swiper-slide:has(> .game-card img[src$="placeholder.svg"]),
.swiper-slide:has(> .spin-rally-card img[src$="placeholder.svg"]),
.game-slider > li:has(> .game-card img[src$="placeholder.svg"]) { display: none !important; }

/* banner no celular: um slide por vez -> sem esmaecer o nao-ativo */
html[device="mobile"] .carousel__slide { opacity: 1 !important; }

/* brilho ("flash") dos botoes: mais lento e visivel; tambem nos "Todos" e "Depositar" */
html[skin="default"] .button--animation-sign-up:before { animation-duration: 3s !important; width: 60px !important; }
.widget-header-view-all, .header-deposit-button, [aria-label="Depositar"].button--filled-primary-main { position: relative; overflow: hidden; }
.widget-header-view-all:before, .header-deposit-button:before, [aria-label="Depositar"].button--filled-primary-main:before {
  content: ""; position: absolute; top: -10px; left: -100%; width: 50px; height: 60px; z-index: 0; pointer-events: none;
  background: color-mix(in srgb, var(--white) 55%, transparent); filter: blur(10px); rotate: -60deg; transform-origin: center;
  animation: btnSignUpAnim 3.6s ease-in-out infinite;
}
.widget-header-view-all > *, .header-deposit-button > * { position: relative; z-index: 1; }

/* menu lateral mobile deslizante (injetado pelo app) */
.burger-sidebar--mobile { transition: transform .3s ease !important; top: var(--header-height); }
.cd-menu-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 414; }
.cd-menu-backdrop--on { opacity: 1; pointer-events: auto; }

/* telas desktop servidas ao celular (saldo, saque, QR, senha, bonus, historico...): sem barras laterais, conteudo em tela cheia */
html[device="mobile"] .left-sidebar, html[device="mobile"] .left-sidebar--profile, html[device="mobile"] .left-sidebar--gamex { display: none !important; }
html[device="mobile"] .main-container.without-right-sidebar .main-content, html[device="mobile"] .main-container .main-content { width: 100% !important; max-width: 100% !important; padding-inline: 12px; box-sizing: border-box; }
html[device="mobile"] .main-container.without-right-sidebar { padding-inline: 0 !important; }
html[device="mobile"] .payment-history__list, html[device="mobile"] .bonuses-list { grid-template-columns: 1fr !important; max-width: 100% !important; }
html[device="mobile"] .tabs-list { overflow-x: auto; -webkit-overflow-scrolling: touch; }
html[device="mobile"] .game-list.game-list--swiper-default { grid-template-columns: repeat(3, 1fr) !important; }
html[device="mobile"] .qr-code-widget img { max-width: 100%; height: auto; }

/* QR do PIX no celular: menor, pra caber QR + codigo copia-e-cola na mesma tela */
html[device="mobile"] .deposit-qr-container__image img { max-width: 180px !important; width: 180px; height: auto; margin: 0 auto; display: block; }
html[device="mobile"] .deposit-qr-container { padding-bottom: 90px; }



/* perfil: nascimento e genero (sem coluna no banco ainda) ficam escondidos */
.profile-info-form .form-input:has(#select-day), .profile-info-form .form-input:has(#select-month), .profile-info-form .form-input:has(#select-year), .profile-info-form .form-input:has(#select-gender), .profile-info-form .group:has(#select-day), .profile-info-form label:has(#select-gender) { display: none !important; }

/* popup configuravel (cd_popups) — usa o .dialog do design */
.cd-popup { align-items: center; }
.cd-popup .dialog__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.7); }
.cd-popup__content { position: relative; width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; border-radius: 20px; background: var(--paper-main, #111); color: var(--text-main, #fff); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.cd-popup .dialog__header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 0; }
.cd-popup .dialog__header h2 { margin: 0; font-size: 20px; font-weight: 800; }
.cd-popup .dialog__header .icon-close { cursor: pointer; font-size: 20px; padding: 6px; }
.cd-popup .dialog__body { padding: 12px 18px 18px; }
.cd-popup__img { width: 100%; height: auto; border-radius: 14px; display: block; }
.cd-popup__text { margin: 0; font-size: 15px; line-height: 1.45; opacity: .92; }
.cd-popup__btn { margin-top: 4px; text-decoration: none; }

/* favoritos: estrela apagada = nao favorito; acesa = favorito */
.game-card__favorites { opacity: .55; transition: opacity .15s, color .15s; }
.game-card__favorites.cd-fav-on { opacity: 1; color: #ffc53d !important; }

/* estrela de favoritos: mais visivel e clicavel no iOS (precisa de cursor:pointer) */
.game-card__favorites { cursor: pointer !important; opacity: .8; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.game-card__favorites.cd-fav-on { opacity: 1; color: #ffc53d !important; }

/* celular: botoes da barra do jogo (X, tela cheia, nova aba, depositar) com area de toque maior e espaco entre eles */
html[device="mobile"] .icon-close[role="button"], html[device="mobile"] [aria-label="Close Dialog"], html[device="mobile"] [aria-label="Fechar"], html[device="mobile"] .cd-game-close { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
html[device="mobile"] .cd-game-tools, html[device="mobile"] .game-launch__actions, html[device="mobile"] .header--game-launch .actions { gap: 14px !important; }
html[device="mobile"] .cd-game-tools button, html[device="mobile"] .header--game-launch .actions button { min-width: 44px; min-height: 44px; }
