/* tema preto e dourado */

:root {
  --tb-gold: #d4af37;
  --tb-gold-2: #c9a227;
  --tb-gold-hot: #f6e08a;
  --tb-gold-deep: #b8860b;
}

.btn-accent,
.panel-cta,
.sheet-cta,
.lp-btn-primary,
.ref-copy-btn,
.tutorial-win-cta.btn,
.tutorial-intro-actions .btn-accent {
  color: #1a1200 !important;
  background: linear-gradient(135deg, #f6e08a 0%, #d4af37 42%, #b8860b 100%) !important;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.45) !important;
}

.panel-cta:not(:disabled) {
  animation: tb-cta-pulse 1.6s ease-in-out infinite;
}

@keyframes tb-cta-pulse {
  0%,
  100% {
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.45), 0 0 0 0 rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.45), 0 0 0 10px rgba(212, 175, 55, 0);
  }
}

@keyframes tutorial-win-cta-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 22px rgba(212, 175, 55, 0.35);
  }
  50% {
    transform: scale(1.015);
    box-shadow:
      0 8px 26px rgba(212, 175, 55, 0.48),
      0 0 12px rgba(212, 175, 55, 0.28);
  }
}

.lp-btn-primary {
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.45) !important;
}

.btn-primary {
  background: linear-gradient(135deg, #d4af37, #b8860b) !important;
  box-shadow: 0 8px 24px rgba(184, 148, 40, 0.4) !important;
}

.nav-item {
  color: #d4af37 !important;
}

.nav-item:hover {
  color: #f6e08a !important;
}

.nav-item svg {
  color: #d4af37;
  stroke: #d4af37;
}

.nav-item.center {
  margin-top: 0 !important;
  align-self: flex-end !important;
  overflow: visible !important;
}

.nav-item.center span {
  color: #d4af37 !important;
}

.nav-item.center .nav-circle {
  width: 82px !important;
  height: 82px !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
}

.nav-item.center .nav-circle::before {
  display: none !important;
}

.nav-item.center .nav-play-img {
  width: 54px !important;
  height: 54px !important;
  max-width: 54px !important;
  max-height: 54px !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  display: block;
  flex: 0 0 auto;
  background: transparent !important;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.55));
}

.nav-item.center .nav-circle .logo-mark {
  display: none;
}

.entry-chip.active {
  background: linear-gradient(135deg, #f6e08a, #d4af37) !important;
  border-color: transparent !important;
  color: #1a1200 !important;
}

.quick-value.active,
.quick-value.active:hover {
  border-color: #c9a227 !important;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35);
}

.nav-item__label {
  position: relative !important;
  z-index: 5 !important;
  flex: 0 0 auto !important;
  display: block !important;
  color: #e8c44c !important;
  font-size: 0.68rem !important;
  line-height: 1.1 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.bottom-nav {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 1000 !important;
  background: #07070a !important;
  border-top: 1px solid rgba(212, 175, 55, 0.16) !important;
  backdrop-filter: none !important;
  overflow: visible !important;
}

.lobby-shell .sheet-overlay {
  z-index: 1200 !important;
}

.lobby-shell > .modal-overlay {
  z-index: 1300 !important;
}

html:has(.lobby-shell) #root {
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}

/* Banners 3:1, full-bleed. NÃO usar width:100% no wrapper — o margin negativo
   precisa de width:auto para encostar nas bordas do sheet/modal. */
.panel-banner,
.sheet-hero,
.bb-profile-hero,
.tutorial-intro-banner,
.win-banner,
.chance-banner,
.replay-picker-banner {
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 3 / 1 !important;
  line-height: 0;
  overflow: hidden;
}

.panel-banner img,
.sheet-hero img,
.bb-profile-hero img,
.tutorial-intro-banner img,
.win-banner img,
.chance-banner img,
.replay-picker-banner img,
.lp-howto-visual img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center;
  display: block;
}

.lp-howto-visual,
.lp-howto-visual--board {
  aspect-ratio: 3 / 1;
}

/* Mini tabuleiro do passo 3 — não herda width:100% do hero-board (ficava cortado/vazio) */
.lp-howto-visual--board {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 8px !important;
}

.lp-howto-visual--board .hero-board {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 !important;
  padding: 5px !important;
  gap: 2px !important;
  border-radius: 10px !important;
  background-color: transparent !important;
  background-image: url("/images/board/boardn.png") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
  border: none !important;
  box-shadow: none !important;
}

.lp-howto-visual--board .hero-cell {
  min-width: 0;
  min-height: 0;
  border-radius: 18% !important;
  background: transparent;
}

.lp-howto-visual--board .hero-cell.on {
  border: none !important;
  box-shadow: none !important;
}

.tutorial-intro-badge {
  background: rgba(212, 175, 55, 0.14) !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
  color: #e8d48a !important;
}

/* Barra e botão de baixar o app */
.install-bar {
  background: rgba(12, 12, 16, 0.94) !important;
  border-bottom-color: rgba(212, 175, 55, 0.22) !important;
}

.install-bar-cta {
  background: linear-gradient(135deg, #f6e08a, #d4af37) !important;
  color: #1a1200 !important;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4) !important;
  animation: tb-install-pulse 1.8s ease-in-out infinite !important;
}

@keyframes tb-install-pulse {
  0%,
  100% {
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4), 0 0 0 0 rgba(212, 175, 55, 0.5);
  }
  50% {
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4), 0 0 0 8px rgba(212, 175, 55, 0);
  }
}

.install-bar-icon {
  border-radius: 12px !important;
  background: #161618 !important;
}

/* Toasts de jogador depositou / sacou */
.live-toast {
  background: rgba(14, 14, 18, 0.94) !important;
  border: 1px solid rgba(212, 175, 55, 0.28) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
}

.live-toast-icon.withdraw {
  background: rgba(212, 175, 55, 0.16) !important;
  color: #d4af37 !important;
  border-color: rgba(212, 175, 55, 0.45) !important;
}

.live-toast-icon.deposit {
  background: rgba(184, 148, 40, 0.16) !important;
  color: #d4af37 !important;
  border-color: rgba(184, 148, 40, 0.45) !important;
}

.live-toast-icon.win {
  background: rgba(255, 210, 74, 0.16) !important;
  color: #ffd24a !important;
  border-color: rgba(255, 210, 74, 0.4) !important;
}

.live-toast-amount {
  color: #d4af37 !important;
}

.live-toast-name {
  color: #fff;
}

/* ── Aba / sheet Perfil ─────────────────────────────────────────── */
.sheet.bb-profile-sheet,
.sheet:has(.bb-profile-hero) {
  position: relative;
  background:
    radial-gradient(900px 220px at 80% -20%, rgba(212, 175, 55, 0.22), transparent 55%),
    radial-gradient(700px 200px at 0% 10%, rgba(212, 175, 55, 0.45), transparent 50%),
    linear-gradient(180deg, #141416 0%, #0c0c10 38%, #08080c 100%) !important;
  border-color: rgba(212, 175, 55, 0.28) !important;
  padding-top: 0 !important;
}

.sheet.bb-profile-sheet > .sheet-header,
.sheet:has(.bb-profile-hero) > .sheet-header {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 3;
  margin: 0;
  padding: 0 12px;
  pointer-events: none;
}

.sheet.bb-profile-sheet > .sheet-header h2,
.sheet:has(.bb-profile-hero) > .sheet-header h2 {
  display: none;
}

.sheet.bb-profile-sheet > .sheet-header .sheet-close,
.sheet:has(.bb-profile-hero) > .sheet-header .sheet-close {
  pointer-events: auto;
  margin-left: auto;
  width: 36px;
  height: 36px;
  background: rgba(12, 12, 16, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.bb-profile-hero {
  margin: 0 -20px 16px !important;
  border-radius: 26px 26px 18px 18px !important;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.bb-profile-hero img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center;
  display: block;
}

/* Telas baixas: encolhe padding — NÃO reduz altura do banner (isso esticava na horizontal) */
@media (max-height: 810px) {
  .panel-page {
    padding: 10px 14px 96px !important;
  }

  .lobby-shell--home .panel-page {
    padding: 6px 10px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .panel-card {
    padding: 12px !important;
  }

  .panel-banner {
    margin: -12px -12px 10px !important;
  }

  .sheet-hero,
  .bb-profile-hero {
    margin-bottom: 10px !important;
  }
}

@media (max-height: 700px) {
  .panel-page {
    padding: 8px 12px 90px !important;
  }

  .lobby-shell--home .panel-page {
    padding: 6px 10px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .panel-banner img,
  .sheet-hero img,
  .bb-profile-hero img,
  .win-banner img,
  .chance-banner img,
  .tutorial-intro-banner img,
  .replay-picker-banner img {
    max-height: none !important;
    object-fit: contain !important;
  }

  .panel-cta {
    padding: 12px !important;
  }

  .reward-box {
    padding: 10px !important;
    margin-bottom: 10px !important;
  }

  .panel-game-head {
    margin-bottom: 12px !important;
  }
}

.sheet.bb-profile-sheet .sheet-section,
.sheet:has(.bb-profile-hero) .sheet-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)) !important;
  border: 1px solid rgba(212, 175, 55, 0.18) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.sheet.bb-profile-sheet .profile-user,
.sheet:has(.bb-profile-hero) .profile-user {
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.28) 55%, rgba(255, 210, 74, 0.08)) !important;
  border-color: rgba(255, 210, 74, 0.28) !important;
}

.sheet.bb-profile-sheet .winner-avatar,
.sheet:has(.bb-profile-hero) .winner-avatar {
  width: 58px;
  height: 58px;
  font-size: 1.35rem;
  color: #fff !important;
  background: linear-gradient(145deg, #ffd24a, #d4af37 55%, #b8860b) !important;
  box-shadow:
    0 0 0 3px #121214,
    0 0 0 5px rgba(255, 210, 74, 0.85),
    0 8px 18px rgba(212, 175, 55, 0.4);
}

.sheet.bb-profile-sheet .profile-user-name,
.sheet:has(.bb-profile-hero) .profile-user-name {
  font-size: 1.12rem;
  letter-spacing: 0.01em;
}

.sheet.bb-profile-sheet .profile-user-phone,
.sheet:has(.bb-profile-hero) .profile-user-phone {
  color: #efe0a8 !important;
}

.sheet.bb-profile-sheet .profile-ref-copy,
.sheet:has(.bb-profile-hero) .profile-ref-copy {
  color: #1a1200 !important;
  background: linear-gradient(135deg, #f6e08a, #d4af37) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.sheet.bb-profile-sheet .profile-ref-link,
.sheet:has(.bb-profile-hero) .profile-ref-link {
  color: #c9b56a !important;
}

.sheet.bb-profile-sheet .quick-stats.profile-stats,
.sheet:has(.bb-profile-hero) .quick-stats.profile-stats {
  gap: 10px;
  margin-bottom: 16px;
}

.sheet.bb-profile-sheet .quick-stat,
.sheet:has(.bb-profile-hero) .quick-stat {
  background: rgba(22, 22, 26, 0.7) !important;
  border: 1px solid rgba(212, 175, 55, 0.2) !important;
  border-radius: 16px !important;
  padding: 14px 10px 12px !important;
}

.sheet.bb-profile-sheet .quick-stat .v,
.sheet:has(.bb-profile-hero) .quick-stat .v {
  color: #ffd24a;
  text-shadow: 0 2px 10px rgba(255, 210, 74, 0.25);
}

.sheet.bb-profile-sheet .quick-stat .l,
.sheet:has(.bb-profile-hero) .quick-stat .l {
  color: #c9b56a !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.sheet.bb-profile-sheet .profile-history-toggle,
.sheet:has(.bb-profile-hero) .profile-history-toggle {
  color: #fff !important;
  background: rgba(212, 175, 55, 0.18) !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
}

.sheet.bb-profile-sheet .panel-label,
.sheet:has(.bb-profile-hero) .panel-label {
  color: #e8d48a !important;
}

.sheet.bb-profile-sheet .profile-support-link,
.sheet:has(.bb-profile-hero) .profile-support-link {
  background: rgba(212, 175, 55, 0.1) !important;
  border-color: rgba(212, 175, 55, 0.28) !important;
}

.sheet.bb-profile-sheet .profile-support-link:hover,
.sheet:has(.bb-profile-hero) .profile-support-link:hover {
  background: rgba(212, 175, 55, 0.22) !important;
  border-color: rgba(255, 210, 74, 0.45) !important;
}

.sheet.bb-profile-sheet .btn-danger,
.sheet:has(.bb-profile-hero) .btn-danger {
  background: transparent !important;
  color: #ff8aa8 !important;
  border: 1.5px solid rgba(255, 84, 112, 0.45);
  box-shadow: none !important;
  margin-top: 4px;
  margin-bottom: 8px;
}

.sheet.bb-profile-sheet .btn-primary,
.sheet:has(.bb-profile-hero) .btn-primary {
  background: linear-gradient(135deg, #d4af37, #b8860b) !important;
}

/* ── Superfícies → preto e dourado ───────────────────────── */
:root {
  --bg: #08080c;
  --bg-soft: #121214;
  --surface: #18181c;
  --surface-2: #1e1e22;
  --border: rgba(212, 175, 55, 0.22);
  --text-dim: #c9b56a;
}

.sheet,
.sheet--center,
.modal {
  background:
    radial-gradient(800px 180px at 90% -10%, rgba(212, 175, 55, 0.16), transparent 55%),
    linear-gradient(180deg, #1a1a1e 0%, #101014 55%, #0a0a0c 100%) !important;
  border-color: rgba(212, 175, 55, 0.28) !important;
}

.sheet-close,
.sheet-close-overlay {
  background: rgba(12, 12, 16, 0.62) !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.sheet-section,
.quick-value,
.money-input,
.reward-box,
.input-group input,
.field input,
.tx-item,
.cupom-row input {
  background: rgba(22, 22, 26, 0.72) !important;
  border-color: rgba(212, 175, 55, 0.2) !important;
}

.quick-value {
  color: #ffe9a8 !important;
}

.quick-value.active,
.quick-value.active:hover,
.quick-value:hover {
  background: rgba(212, 175, 55, 0.16) !important;
  border-color: #c9a227 !important;
}

.panel-label {
  color: #e8d48a !important;
}

/* ── Tela de carregamento ─────────────────────────────────────── */
.game-loading {
  background:
    radial-gradient(circle at 50% 42%, rgba(42, 74, 122, 0.5) 0%, rgba(20, 20, 50, 0.35) 30%, transparent 58%),
    #0a0a12 !important;
  background-image:
    radial-gradient(circle at 50% 42%, rgba(42, 74, 122, 0.5) 0%, rgba(20, 20, 50, 0.35) 30%, transparent 58%) !important;
  gap: 18px !important;
}

.tb-load-logo {
  width: min(78vw, 280px);
  height: auto;
  filter: drop-shadow(0 10px 28px rgba(184, 148, 40, 0.45));
  animation: tb-load-float 2.2s ease-in-out infinite;
}

@keyframes tb-load-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.loading-blocks {
  grid-template-columns: repeat(2, 52px) !important;
  grid-template-rows: repeat(2, 52px) !important;
  gap: 10px !important;
}

.loading-blocks span {
  border-radius: 22% !important;
  background-color: transparent !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28) !important;
}

.loading-blocks span:nth-child(1) {
  background-image: url("/images/pieces/c1.png") !important;
}
.loading-blocks span:nth-child(2) {
  background-image: url("/images/pieces/c6.png") !important;
}
.loading-blocks span:nth-child(3) {
  background-image: url("/images/pieces/c3.png") !important;
}
.loading-blocks span:nth-child(4) {
  background-image: url("/images/lobby/btn.png") !important;
}

.loading-text {
  color: #ffe9a8 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55) !important;
  letter-spacing: 0.04em;
}

/* ── Modal Parabéns ───────────────────────────────────────────── */
.modal:has(.result-modal--win),
.flush-banner-overlay .modal:has(.result-modal--win) {
  padding: 0 0 24px !important;
  overflow: hidden;
}

.result-modal--win .win-trophy,
.result-modal--win h2 {
  display: none;
}

.result-modal--win .win-banner {
  border-radius: 18px 18px 0 0;
}

.result-modal--win .win-note-top,
.result-modal--win .result-value,
.result-modal--win .win-note,
.result-modal--win .win-actions {
  padding-left: 22px;
  padding-right: 22px;
}

.result-modal--win .win-note-top {
  color: #efe0a8 !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.result-modal--win .win-note {
  color: #d4c48a !important;
}

.win-confetti-piece {
  background: linear-gradient(180deg, #ffd24a, #d4af37) !important;
}

/* ── Travou / derrota ─────────────────────────────────────────── */
.board-locked-msg {
  color: #ffe9a8 !important;
  text-shadow:
    0 0 16px rgba(212, 175, 55, 0.7),
    0 2px 8px rgba(0, 0, 0, 0.55) !important;
  font-size: 1.15rem !important;
}

.result-modal--lose .lose-badge {
  color: transparent !important;
  background:
    url("/images/lobby/btn.png") center / 62% no-repeat,
    radial-gradient(circle at 35% 28%, rgba(255, 210, 74, 0.35), rgba(212, 175, 55, 0.12)) !important;
  border-color: rgba(255, 210, 74, 0.5) !important;
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.35) !important;
}

.result-modal--lose .lose-badge svg {
  opacity: 0;
}

.result-modal--lose h2 {
  color: #fff;
  font-size: 1.45rem !important;
}

.result-value.lose {
  color: #d4af37 !important;
  text-shadow: 0 2px 16px rgba(212, 175, 55, 0.45) !important;
}

.result-modal--lose .result-note {
  color: #d4c48a !important;
}

.modal:has(.result-modal--chance),
.modal:has(.result-modal--lose),
.modal:has(.result-modal--chance-active) {
  background:
    radial-gradient(700px 160px at 50% 0%, rgba(212, 175, 55, 0.2), transparent 55%),
    linear-gradient(180deg, #1a1a1e, #0c0c10) !important;
}

/* ── Aba Indicar: dourado ─────────────────────────────────── */
.ref-banner b,
.ref-level .tier,
.ref-link-label,
.ref-history-value {
  color: #d4af37 !important;
}

.ref-card {
  background: linear-gradient(135deg, #d4af37 0%, #c9a227 48%, #b8860b 100%) !important;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.35);
}

.ref-card .cta {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
}

.ref-link-value {
  background: rgba(212, 175, 55, 0.08) !important;
  border-color: rgba(212, 175, 55, 0.35) !important;
}

.ref-copy-btn {
  background: linear-gradient(135deg, #f6e08a, #d4af37) !important;
  color: #1a1200 !important;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35) !important;
}

.ref-history-nivel {
  color: #e8d48a !important;
  background: rgba(212, 175, 55, 0.14) !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
}
