:root {
  --bw-bg: #050816;
  --bw-bg-2: #0a1230;
  --bw-panel: #12182e;
  --bw-panel-2: #1a223f;
  --bw-line: rgba(90, 130, 220, 0.18);
  --bw-green: #2dff6e;
  --bw-green-dark: #14c94f;
  --bw-yellow: #ffe14a;
  --bw-purple: #7c5cff;
  --bw-purple-2: #4f46e5;
  --bw-red: #ef4444;
  --bw-text: #ffffff;
  --bw-muted: #9aa6c3;
  --bw-blue: #3b82f6;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", "Nunito Sans", system-ui, sans-serif;
  color: var(--bw-text);
  background: var(--bw-bg);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.bw-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(8, 16, 48, 0.92), rgba(5, 8, 22, 0.96)),
    repeating-linear-gradient(0deg, transparent 0 27px, var(--bw-line) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, var(--bw-line) 27px 28px),
    radial-gradient(circle at 50% 0%, #1a2b6b 0%, var(--bw-bg) 55%);
  background-attachment: fixed;
}

.bw-app-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  background: #0d1328;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  color: #d7def5;
}

.bw-app-banner .install {
  background: var(--bw-blue);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 700;
  cursor: pointer;
}

.bw-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  max-width: 920px;
  margin: 0 auto;
}

.bw-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  letter-spacing: 0.5px;
  font-size: 18px;
}

.bw-logo .crown {
  color: var(--bw-yellow);
  font-size: 14px;
  line-height: 1;
}

.bw-logo .brand {
  background: linear-gradient(90deg, #60a5fa, #a78bfa, #34d399, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bw-saldo-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bw-saldo-box .label {
  font-size: 11px;
  color: var(--bw-muted);
  text-align: right;
  line-height: 1.1;
}

.bw-saldo-box .value {
  color: var(--bw-green);
  font-weight: 800;
  font-size: 16px;
}

.bw-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  display: grid;
  place-items: center;
  font-weight: 800;
  border: 2px solid rgba(255,255,255,0.2);
  cursor: pointer;
}

.bw-container {
  width: min(460px, calc(100% - 24px));
  margin: 0 auto;
  padding: 8px 0 110px;
}

.bw-online-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 30, 20, 0.85);
  border: 1px solid rgba(45, 255, 110, 0.35);
  color: var(--bw-green);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
}

.bw-online-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bw-green);
  box-shadow: 0 0 8px var(--bw-green);
}

.bw-hero-title {
  text-align: center;
  margin: 18px 0 14px;
}

.bw-hero-title h1 {
  margin: 0;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.bw-hero-title .earn {
  background: linear-gradient(90deg, #ffe14a, #2dff6e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bw-promo-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 92, 255, 0.35), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(45, 255, 110, 0.2), transparent 35%),
    linear-gradient(160deg, #1a1140, #0d1b3f 55%, #102a1f);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  min-height: 280px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bw-promo-card .promo-title {
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 16px;
  text-shadow: 0 4px 18px rgba(0,0,0,0.5);
}

.bw-promo-card .promo-title span {
  color: var(--bw-green);
}

.bw-blocks {
  display: grid;
  grid-template-columns: repeat(4, 28px);
  gap: 4px;
  margin: 8px 0 10px;
}

.bw-blocks span {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.35), inset 0 -3px 0 rgba(0,0,0,0.25);
}

.bw-coin {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff59d, #f6c90e 45%, #c98a00);
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

.bw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  border-radius: 14px;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.bw-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.bw-btn:active { transform: translateY(1px); }

.bw-btn-green {
  background: linear-gradient(180deg, #49ff86, #17d45a);
  color: #062413;
  box-shadow: 0 10px 28px rgba(45, 255, 110, 0.35);
}

.bw-btn-purple {
  background: linear-gradient(90deg, #7c5cff, #4f46e5);
  color: #fff;
}

.bw-btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.55);
  color: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
}

.bw-btn-lg {
  width: 100%;
  padding: 16px 20px;
  font-size: 18px;
  margin-top: 18px;
}

.bw-link {
  display: inline-block;
  margin-top: 14px;
  color: #e8ecff;
  font-size: 14px;
}

.bw-card {
  background: linear-gradient(180deg, #161d36, #101628);
  border: 1px solid rgba(120, 150, 255, 0.18);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

/* Borda animada (modal de valores) */
.bw-glow-frame {
  position: relative;
  border-radius: 24px;
  padding: 2px;
  overflow: hidden;
  box-shadow:
    0 0 18px rgba(255, 120, 40, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.35);
}

.bw-glow-frame::before {
  content: "";
  position: absolute;
  inset: -55%;
  background: conic-gradient(
    from 0deg,
    #ff4d00,
    #ffb703,
    #ff7a18,
    #ff3d00,
    #ffd166,
    #ff4d00
  );
  animation: bw-border-spin 2.8s linear infinite;
}

.bw-glow-frame > .bw-card {
  position: relative;
  z-index: 1;
  border: 0;
  box-shadow: none;
}

/* Borda animada do botão Jogar */
.bw-glow-btn {
  position: relative;
  margin-top: 18px;
  border-radius: 18px;
  padding: 2px;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(45, 255, 110, 0.35);
}

.bw-glow-btn::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(
    from 0deg,
    #2dff6e,
    #ffe14a,
    #17d45a,
    #67e8f9,
    #2dff6e
  );
  animation: bw-border-spin 2.2s linear infinite;
}

.bw-glow-btn .bw-btn {
  position: relative;
  z-index: 1;
  margin-top: 0;
  width: 100%;
  border-radius: 16px;
}

@keyframes bw-border-spin {
  to { transform: rotate(360deg); }
}

.bw-card-banner {
  position: relative;
  min-height: 150px;
  padding: 18px;
  background:
    radial-gradient(circle at 15% 40%, rgba(255, 120, 80, 0.35), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(80, 120, 255, 0.4), transparent 40%),
    linear-gradient(135deg, #2a1458, #12305f);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bw-card-banner-img {
  min-height: 140px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #0b1224;
}

.bw-card-banner h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 3px 12px rgba(0,0,0,0.45);
}

.bw-badge-online {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bw-badge-online::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
  animation: bw-dot-pulse 1.8s ease-out infinite;
}

@keyframes bw-dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.bw-card-body { padding: 18px; }

.bw-section-label {
  color: var(--bw-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.bw-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.bw-entry-btn {
  background: #0e1530;
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 12px;
  padding: 12px 8px;
  font-weight: 800;
  cursor: pointer;
}

.bw-entry-btn.active {
  background: #5b6f93;
  border-color: #9eb2d8;
}

.bw-entry-input {
  width: 100%;
  margin-top: 10px;
  background: #0e1530;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #fff;
  padding: 12px;
  text-align: center;
  font-weight: 700;
}

.bw-reward {
  margin-top: 16px;
  text-align: center;
}

.bw-reward small {
  display: block;
  color: var(--bw-muted);
  margin-bottom: 4px;
}

.bw-reward strong {
  color: var(--bw-yellow);
  font-size: 34px;
  font-weight: 900;
}

.bw-bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(10, 14, 28, 0.96);
  border-top: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  z-index: 40;
  overflow: visible;
}

.bw-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #8b95b5;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 2px;
  background: none;
  border: 0;
  cursor: pointer;
}

.bw-nav-item .icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #c7d0ea;
  transition: color 0.15s ease, transform 0.15s ease, filter 0.15s ease;
}

.bw-nav-item .icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.bw-nav-item:hover .icon,
.bw-nav-item.active .icon {
  color: #ffffff;
  transform: translateY(-1px);
  filter: drop-shadow(0 0 8px rgba(45, 255, 110, 0.25));
}

.bw-nav-item.active { color: #fff; }

.bw-nav-item.play {
  color: #2dff6e;
  gap: 5px;
  font-weight: 700;
}

.bw-nav-item.play.active {
  color: #2dff6e;
}

.bw-play-label {
  color: #2dff6e;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* Botão Jogar: arco verde girando na borda (camada de baixo + miolo cobrindo o centro) */
.bw-play-orb {
  position: relative;
  width: 56px;
  height: 56px;
  margin-top: -24px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}

.bw-play-orb-spin {
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(
    #2dff6e 0deg,
    rgba(45, 255, 110, 0.55) 40deg,
    transparent 90deg,
    transparent 320deg,
    rgba(45, 255, 110, 0.35) 350deg,
    #2dff6e 360deg
  );
  box-shadow: 0 0 12px rgba(45, 255, 110, 0.55);
  animation: bw-play-spin 1.4s linear infinite;
  will-change: transform;
  z-index: 0;
}

.bw-play-orb-core {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, #151d34, #070b14 70%);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.bw-play-blocks {
  width: 22px;
  height: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.bw-play-blocks i {
  display: block;
  border-radius: 4px;
}

.bw-play-blocks i:nth-child(1) { background: #a855f7; }
.bw-play-blocks i:nth-child(2) { background: #34d399; }
.bw-play-blocks i:nth-child(3) { background: #60a5fa; }
.bw-play-blocks i:nth-child(4) { background: #fbbf24; }

@keyframes bw-play-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.bw-toast {
  position: fixed;
  left: 12px;
  bottom: 86px;
  z-index: 45;
  background: rgba(15, 20, 40, 0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  max-width: min(320px, calc(100% - 24px));
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.bw-toast .up {
  color: var(--bw-green);
  font-weight: 900;
}

.bw-win-toast {
  position: fixed;
  left: 12px;
  bottom: 90px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(280px, calc(100% - 24px));
  max-width: min(340px, calc(100% - 24px));
  padding: 10px 14px 10px 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, #12182e, #0b1020);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(45, 255, 110, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(45, 255, 110, 0.12);
  animation: bw-toast-slide 0.45s ease both;
}

.bw-win-toast-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  font-size: 18px;
  background: radial-gradient(circle at 35% 30%, #2a334f, #12182e);
  border: 2px solid #f5c542;
  box-shadow: 0 0 12px rgba(245, 197, 66, 0.35);
}

.bw-win-toast-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.bw-win-toast-text strong {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
}

.bw-win-toast-text span {
  font-size: 12px;
  color: #9aa6c3;
  font-weight: 600;
}

.bw-win-toast-amount {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 900;
  color: #2dffd0;
  text-shadow: 0 0 12px rgba(45, 255, 208, 0.35);
  white-space: nowrap;
}

.bw-toast-enter {
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.bw-toast-enter-start {
  opacity: 0;
  transform: translateX(-16px);
}
.bw-toast-enter-end {
  opacity: 1;
  transform: translateX(0);
}

@keyframes bw-toast-slide {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.bw-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}

@media (min-width: 640px) {
  .bw-modal-backdrop { align-items: center; }
}

.bw-modal {
  width: min(440px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  background: #111827;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  position: relative;
}

.bw-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 8px;
}

.bw-modal-header h3 {
  margin: 0;
  font-size: 22px;
}

.bw-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--bw-red);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.bw-modal-body { padding: 8px 18px 20px; }

.bw-green-panel {
  background: linear-gradient(180deg, #22c55e, #16a34a);
  border-radius: 16px;
  padding: 16px;
  color: #fff;
}

.bw-green-panel .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.bw-green-panel .big {
  font-size: 28px;
  font-weight: 900;
  margin: 4px 0;
}

.bw-copy-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.bw-copy-row input {
  width: 100%;
  background: #0b1224;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #fff;
  padding: 12px;
}

.bw-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.bw-stat {
  background: #0b1224;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.bw-accordion {
  background: #0b1224;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.bw-accordion summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bw-accordion p {
  color: var(--bw-muted);
  font-size: 13px;
  margin: 10px 0 0;
}

.bw-btn-danger {
  width: 100%;
  background: #dc2626;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 14px;
  font-weight: 900;
  cursor: pointer;
  margin-top: 8px;
}

.bw-alert {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.bw-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.bw-auth-card {
  width: min(420px, 100%);
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.bw-auth-card h1 {
  margin: 0 0 6px;
  font-size: 26px;
}

.bw-auth-card p {
  margin: 0 0 18px;
  color: var(--bw-muted);
  font-size: 14px;
}

.bw-field { margin-bottom: 14px; }
.bw-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #c7d2fe;
  font-weight: 600;
}
.bw-field input {
  width: 100%;
  background: #0b1224;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: #fff;
  padding: 12px 14px;
}
.bw-field .error {
  color: #fca5a5;
  font-size: 12px;
  margin-top: 6px;
}

.bw-auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.bw-game-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px 24px;
  background:
    radial-gradient(circle at 50% 30%, #2f6bff 0%, #1d4ed8 28%, #0b1f66 70%, #06123a 100%);
}

.bw-game-hud {
  width: min(420px, 100%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 8px;
  margin-bottom: 14px;
}

.bw-game-hud .side {
  color: var(--bw-yellow);
  font-weight: 900;
  font-size: 18px;
  text-shadow: 0 2px 0 rgba(0,0,0,0.35);
}

.bw-game-hud .side.left { text-align: left; }
.bw-game-hud .side.right { text-align: right; }

.bw-game-hud .center {
  text-align: center;
}

.bw-game-hud .center .money {
  color: var(--bw-green);
  font-size: clamp(34px, 9vw, 48px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 3px 0 rgba(0,0,0,0.35);
}

.bw-game-hud .center .line {
  width: 70px;
  height: 3px;
  background: rgba(255,255,255,0.35);
  margin: 8px auto 0;
  border-radius: 999px;
}

#board {
  --cell: min(46px, calc((100vw - 56px) / 8));
  display: grid;
  grid-template-columns: repeat(8, var(--cell));
  grid-template-rows: repeat(8, var(--cell));
  gap: 2px;
  background: #0b1a4a;
  padding: 8px;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.cell {
  width: var(--cell);
  height: var(--cell);
  background: rgba(255,255,255,0.04);
  border-radius: 5px;
}

.cell.filled {
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.35),
    inset 0 -3px 0 rgba(0,0,0,0.28);
}

.cell.preview-valid { background: rgba(255,255,255,0.35) !important; }
.cell.preview-invalid { background: rgba(239,71,111,0.45) !important; }

#tray {
  width: min(420px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.slot {
  min-height: 110px;
  background: rgba(8, 20, 60, 0.65);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
}

.piece { position: relative; touch-action: none; cursor: grab; }
.piece-cell {
  position: absolute;
  border-radius: 5px;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.35),
    inset 0 -3px 0 rgba(0,0,0,0.28);
}
.ghost { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 999; opacity: 0.92; }

#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
#overlay.hidden { display: none; }

.panel {
  width: min(360px, 100%);
  background: #12182e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
}
.panel h2 { margin: 0 0 8px; color: var(--bw-yellow); }
.panel p { color: #d5dcf5; }
.panel .actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.bw-sound {
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  z-index: 30;
}

.bw-landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  max-width: 980px;
  margin: 0 auto;
}

.bw-landing-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.bw-landing-main {
  width: min(460px, calc(100% - 28px));
  margin: 20px auto 40px;
  text-align: center;
}

.bw-tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.bw-tier {
  background: #0b1224;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.bw-tier small {
  color: #67e8f9;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.bw-profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.bw-profile-head .meta strong {
  display: block;
  font-size: 18px;
}

.bw-profile-head .meta span {
  color: var(--bw-muted);
  font-size: 13px;
}

/* Modal Depositar */
.bw-deposit-modal {
  padding: 0;
  overflow: hidden;
  background: #0f1528;
}

.bw-deposit-banner {
  position: relative;
  background: #0b1224;
}

.bw-deposit-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  background: #0b1224;
}

.bw-deposit-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.bw-deposit-body {
  padding: 16px 16px 20px;
}

.bw-deposit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.bw-deposit-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 18px 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #161d36;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.bw-deposit-option strong {
  font-size: 18px;
  font-weight: 900;
}

.bw-deposit-option.active {
  background: #1c2748;
  border-color: rgba(103, 232, 249, 0.55);
}

.bw-deposit-option.is-bonus {
  border-color: rgba(251, 191, 36, 0.55);
}

.bw-deposit-option.is-bonus.active {
  border-color: #fbbf24;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.35);
}

.bw-deposit-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.3px;
  white-space: nowrap;
  color: #fff;
}

.bw-deposit-option.tone-green .bw-deposit-badge { background: #16a34a; }
.bw-deposit-option.tone-orange .bw-deposit-badge { background: #f59e0b; color: #1f1300; }
.bw-deposit-option.tone-red .bw-deposit-badge { background: #ef4444; }
.bw-deposit-option.tone-purple .bw-deposit-badge { background: #7c3aed; }

.bw-deposit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bw-deposit-amount {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0b1224;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 0 14px;
}

.bw-deposit-amount .prefix {
  color: #9aa6c3;
  font-weight: 800;
}

.bw-deposit-amount input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 0;
  outline: none;
  width: 100%;
}

.bw-deposit-amount input::-webkit-outer-spin-button,
.bw-deposit-amount input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bw-deposit-amount input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.bw-deposit-cpf label {
  display: block;
  margin-bottom: 6px;
  color: #9aa6c3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.bw-deposit-cpf input {
  width: 100%;
  background: #0b1224;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: #fff;
  font-weight: 700;
  padding: 14px;
  outline: none;
}

.bw-deposit-cpf input:focus,
.bw-deposit-amount:focus-within {
  border-color: rgba(45, 255, 110, 0.45);
}

.bw-deposit-submit {
  margin-top: 4px;
}

.bw-deposit-submit.is-disabled,
.bw-deposit-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
  transform: none;
}
