/* LuckUNO — tema azul premium iGaming */
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&display=swap");

:root {
  --blue-deep: #020b18;
  --blue-abyss: #040f1f;
  --blue-table: #071428;
  --blue-900: #0a1f3c;
  --blue-800: #0f2d55;
  --blue-700: #1245a8;
  --blue-600: #1a5fc0;
  --blue-neon: #00b4ff;
  --blue-ice: #7dd3fc;
  --gold: #f6d900;
  --gold-light: #fff176;
  --uno-red: #e3231f;
  --uno-green: #22d96e;
  --danger: #f43f5e;
  --ok: #22d96e;
  --text: #eef6ff;
  --muted: #7ba8cc;
  --radius: 14px;
  --font: "Nunito", "Segoe UI", system-ui, sans-serif;
  --game-focus-bar-h: 52px;
}

* { box-sizing: border-box; }

/* Evita pan/scroll horizontal no mobile (margens negativas, 100vw, bleed). */
html {
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes flash-pop {
  0% { transform: scale(0.96); opacity: 0; }
  60% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes aurora-pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.05); }
}

@keyframes jackpot-glow {
  0%, 100% { text-shadow: 0 0 12px rgba(246, 217, 0, 0.35), 0 4px 24px rgba(246, 217, 0, 0.2); }
  50% { text-shadow: 0 0 22px rgba(0, 180, 255, 0.45), 0 4px 28px rgba(246, 217, 0, 0.4); }
}

@keyframes neon-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 180, 255, 0.5); transform: scale(1); }
  50% { box-shadow: 0 0 14px 4px rgba(0, 180, 255, 0.35); transform: scale(1.06); }
}

@keyframes jackpot-border-pulse {
  0%, 100% { box-shadow: inset 0 0 20px rgba(0, 180, 255, 0.08); }
  50% { box-shadow: inset 0 0 28px rgba(0, 180, 255, 0.2); }
}

@keyframes frame-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  font-family: var(--font);
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(18, 69, 168, 0.45) 0%, transparent 52%),
    radial-gradient(ellipse 70% 45% at 100% 20%, rgba(0, 180, 255, 0.12) 0%, transparent 45%),
    linear-gradient(168deg, var(--blue-table) 0%, var(--blue-deep) 42%, var(--blue-abyss) 100%);
  color: var(--text);
  line-height: 1.55;
}

@supports (overflow-x: clip) {
  html {
    overflow-x: clip;
  }

  body:not(.body-game-focus) {
    overflow-x: clip;
  }
}

main.shell {
  animation: page-in 0.32s ease-out;
}

/* /jogo/uno modo foco: barra Voltar + iframe (sem shell topbar/footer) */
body.body-game-focus {
  margin: 0;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(18, 69, 168, 0.45) 0%, transparent 52%),
    radial-gradient(ellipse 70% 45% at 100% 20%, rgba(0, 180, 255, 0.12) 0%, transparent 45%),
    linear-gradient(168deg, var(--blue-table) 0%, var(--blue-deep) 42%, var(--blue-abyss) 100%);
}

.game-focus-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  min-height: max(var(--game-focus-bar-h), calc(44px + env(safe-area-inset-top, 0px)));
  padding: max(6px, env(safe-area-inset-top)) 1rem max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left, 12px));
  border-bottom: 1px solid rgba(0, 180, 255, 0.15);
  background: rgba(4, 15, 31, 0.94);
  backdrop-filter: blur(12px);
  z-index: 20;
}

.game-focus-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--blue-ice);
  text-decoration: none;
  padding: 0.42rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 180, 255, 0.28);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.game-focus-back:hover {
  background: rgba(0, 180, 255, 0.1);
  color: #fff;
  border-color: rgba(125, 211, 252, 0.45);
}

.game-exit-modal {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 20px);
  background: rgba(1, 8, 19, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.game-exit-modal.is-active {
  display: flex;
}

.game-exit-modal__card {
  width: min(92vw, 420px);
  border-radius: 16px;
  border: 1px solid rgba(0, 180, 255, 0.35);
  background: linear-gradient(165deg, rgba(8, 22, 48, 0.98), rgba(3, 8, 20, 0.99));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 52px rgba(0, 0, 0, 0.62),
    0 0 40px rgba(0, 180, 255, 0.16);
  padding: clamp(14px, 4vw, 20px);
}

.game-exit-modal__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1rem, 3.8vw, 1.2rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #dff6ff;
}

.game-exit-modal__text {
  margin: 0;
  color: rgba(226, 242, 255, 0.86);
  font-size: 0.95rem;
  line-height: 1.45;
}

.game-exit-modal__bet {
  margin: 0.8rem 0 0;
  font-weight: 900;
  color: var(--gold-light);
}

.game-exit-modal__actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.game-exit-modal__actions .btn {
  min-width: 145px;
}

@media (max-width: 420px) {
  .game-exit-modal__actions {
    justify-content: stretch;
  }

  .game-exit-modal__actions .btn {
    width: 100%;
  }
}

main.game-focus-main {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 1rem 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  animation: page-in 0.28s ease-out;
}

main.game-focus-main > .flash {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.65rem;
  margin-bottom: 0;
}

.game-page-uno--focus {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.game-page-uno--focus .game-frame-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.game-page-uno--focus .game-embed-bleed {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.game-page-uno--focus .game-frame-wrap-inner {
  flex: 1;
  min-height: 0;
  position: relative;
}

.game-page-uno--focus .game-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
}

a {
  color: var(--blue-ice);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
a:hover {
  color: var(--blue-neon);
  text-decoration: none;
  text-shadow: 0 0 12px rgba(0, 180, 255, 0.45);
}

.shell { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
  padding: 0.65rem 1rem;
  background: rgba(4, 15, 31, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 180, 255, 0.35);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(0, 180, 255, 0.08);
  position: relative;
  z-index: 10020;
}

.topbar .brand-uno {
  margin-left: 0;
}

.brand-uno {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.03em;
  font-size: clamp(0.9rem, 2.8vw, 1.15rem);
  transform-style: preserve-3d;
  perspective: 400px;
  min-width: 0;
  flex-shrink: 0;
}

.brand-uno:hover { text-decoration: none; }
.brand-uno:hover .brand-icon {
  transform: rotateY(-18deg) rotateZ(-4deg) scale(1.03);
  filter: drop-shadow(0 0 14px rgba(0, 180, 255, 0.65));
}

.brand-icon {
  flex-shrink: 0;
  width: clamp(30px, 5.5vw, 42px);
  height: auto;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 6px 14px rgba(0, 180, 255, 0.35));
}

.brand-uno-text {
  color: var(--blue-neon);
  text-shadow: 0 0 22px rgba(0, 180, 255, 0.55);
}

.nav {
  display: flex;
  gap: 0.65rem 1rem;
  flex-wrap: nowrap;
  align-items: center;
}

.nav-guest-actions,
.nav--top-actions {
  flex-shrink: 0;
}

.topbar .nav--top-actions {
  margin-right: 0;
}

/* Topbar mobile: compacta links e botões em telas pequenas */
@media (max-width: 420px) {
  .topbar {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }
  .brand-uno-text {
    font-size: 0.85rem;
  }
  .nav {
    gap: 0.35rem 0.5rem;
  }
  .nav a:not(.btn) {
    font-size: 0.8rem;
  }
  .btn-primary, .btn-outline {
    font-size: 0.78rem;
    padding: 0.38rem 0.7rem;
  }
}

.nav a:not(.btn) {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}
.nav a:not(.btn):hover {
  color: var(--blue-neon);
  text-decoration: none;
  text-shadow: 0 0 14px rgba(0, 180, 255, 0.5);
}

.nav-balance {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold) 0%, #e6a317 100%);
  color: #0a0610;
  font-weight: 900;
  font-size: 0.88rem;
  box-shadow: 0 4px 18px rgba(246, 217, 0, 0.4);
  white-space: nowrap;
  animation: jackpot-glow 4s ease-in-out infinite;
}

/* Menu em popup centrado */
.topbar-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-ice);
  background: rgba(10, 31, 60, 0.55);
  border: 2px solid rgba(0, 180, 255, 0.42);
  box-shadow: 0 0 14px rgba(0, 180, 255, 0.12);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.topbar-menu-btn:hover {
  color: var(--blue-neon);
  border-color: var(--blue-neon);
  box-shadow: 0 0 22px rgba(0, 180, 255, 0.28);
}

.topbar-menu-btn:active {
  transform: scale(0.97);
}

.topbar-menu-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 180, 255, 0.32);
}

.topbar-menu-btn__icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 1.125rem;
  justify-content: center;
}

.topbar-menu-btn__icon span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.topbar-menu-btn.is-active .topbar-menu-btn__icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.topbar-menu-btn.is-active .topbar-menu-btn__icon span:nth-child(2) {
  opacity: 0;
}

.topbar-menu-btn.is-active .topbar-menu-btn__icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.topbar-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50000;
  background: rgba(0, 8, 20, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.topbar-menu-backdrop.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.topbar-menu-panel {
  box-sizing: border-box;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(94vw, 440px);
  max-width: calc(100vw - 1.25rem);
  height: fit-content;
  max-height: min(90dvh, 680px);
  margin: auto;
  z-index: 50005;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 1.35rem);
  background: linear-gradient(165deg, rgba(8, 22, 48, 0.98), rgba(3, 8, 20, 0.99));
  border: 1px solid rgba(0, 180, 255, 0.32);
  border-radius: clamp(14px, 3vw, 22px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 24px 56px rgba(0, 0, 0, 0.65),
    0 0 48px rgba(0, 180, 255, 0.12);
  transform: scale(0.96);
  transform-origin: center center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.26s ease,
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: none;
}

.topbar-menu-panel.is-active {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.topbar-menu-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 130% 85% at 100% 0%, rgba(236, 72, 153, 0.14) 0%, transparent 52%),
    radial-gradient(ellipse 120% 85% at 0% 100%, rgba(56, 170, 255, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 80% 55% at 50% 108%, rgba(250, 214, 92, 0.06) 0%, transparent 45%);
  opacity: 0.85;
}

.topbar-menu-panel > * {
  position: relative;
  z-index: 1;
}

.topbar-menu-panel__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
}

.topbar-menu-panel__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-ice);
  text-shadow: 0 0 18px rgba(0, 180, 255, 0.25);
}

.topbar-menu-panel__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: -0.35rem -0.35rem -0.35rem 0;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.topbar-menu-panel__close:hover {
  border-color: var(--blue-neon);
  color: var(--blue-neon);
}

.topbar-menu-panel__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.35);
}

.topbar-menu-panel__head {
  flex-shrink: 0;
  margin-bottom: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius, 12px);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 180, 255, 0.12);
}

.topbar-menu-panel__saldo-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.topbar-menu-panel__saldo-val {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #0a0610;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, #e6a317 100%);
  box-shadow: 0 4px 16px rgba(246, 217, 0, 0.35);
}

.topbar-menu-panel__game-preview {
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius, 12px);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(0, 180, 255, 0.16);
}

.topbar-menu-panel__game-preview-hint {
  margin: 0 0 0.6rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.topbar-menu-panel__stake-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
}

.topbar-menu-panel__stake-row:last-child {
  border-bottom: none;
}

.topbar-menu-panel__stake-k {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
}

.topbar-menu-panel__stake-v {
  font-family: Nunito, "Segoe UI", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  color: rgba(200, 238, 255, 0.95);
  text-align: right;
  max-width: 58%;
}

.topbar-menu-panel__links {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  min-height: auto;
  overflow-x: hidden;
  overflow-y: visible;
}

.topbar-menu-panel__links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-menu-panel__links a {
  display: block;
  padding: 0.75rem 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

.topbar-menu-panel__links a:hover {
  color: var(--blue-neon);
  text-shadow: 0 0 12px rgba(0, 180, 255, 0.35);
}

.topbar-menu-panel__foot {
  flex-shrink: 0;
  margin-top: 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-menu-panel__logout {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .topbar-menu-panel {
    width: calc(100vw - 0.75rem);
    max-width: none;
    max-height: calc(100dvh - 0.75rem);
    gap: 0.8rem;
    padding: 0.9rem;
    border-radius: 16px;
  }

  .topbar-menu-panel__head,
  .topbar-menu-panel__game-preview {
    padding: 0.72rem 0.8rem;
  }

  .topbar-menu-panel__stake-row {
    display: block;
    padding: 0.35rem 0;
  }

  .topbar-menu-panel__stake-k {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.78rem;
  }

  .topbar-menu-panel__stake-v {
    display: block;
    max-width: 100%;
    text-align: left;
    font-size: 0.98rem;
    line-height: 1.35;
    word-break: break-word;
  }

  .topbar-menu-panel__links a {
    padding: 0.62rem 0.3rem;
    font-size: 0.92rem;
  }

  .topbar-menu-panel__foot {
    padding-top: 0.55rem;
  }
}

@media (max-width: 380px) {
  .topbar-menu-panel {
    width: calc(100vw - 0.5rem);
    max-height: calc(100dvh - 0.5rem);
    padding: 0.8rem;
  }

  .topbar-menu-panel__title {
    font-size: 1rem;
  }

  .topbar-menu-panel__close {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .topbar-menu-panel__saldo-val {
    font-size: 1.05rem;
    padding: 0.4rem 0.65rem;
  }
}

@media (max-height: 720px) {
  .topbar-menu-panel {
    max-height: calc(100dvh - 0.5rem);
  }

  .topbar-menu-panel__links a {
    padding-top: 0.56rem;
    padding-bottom: 0.56rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar-menu-backdrop,
  .topbar-menu-panel {
    transition-duration: 0.01ms;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 100%);
  color: #fff;
  box-shadow: 0 8px 26px rgba(18, 69, 168, 0.55), 0 0 16px rgba(0, 180, 255, 0.15);
}
.btn-primary:hover {
  box-shadow: 0 10px 32px rgba(18, 69, 168, 0.65), 0 0 24px rgba(0, 180, 255, 0.3);
}

.affiliate-copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.affiliate-copy-input {
  flex: 1;
  min-width: 220px;
}

.affiliate-copy-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .affiliate-copy-input {
    min-width: 100%;
  }

  .affiliate-copy-btn {
    width: 100%;
  }
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #d4a017 100%);
  color: #0a0610;
  box-shadow: 0 8px 24px rgba(246, 217, 0, 0.45);
}
.btn-gold:hover {
  box-shadow: 0 10px 30px rgba(246, 217, 0, 0.55);
}

.btn-neon {
  background: transparent;
  color: var(--blue-neon);
  border: 2px solid var(--blue-neon);
  box-shadow: 0 0 12px rgba(0, 180, 255, 0.25);
}
.btn-neon:hover {
  box-shadow: 0 0 24px rgba(0, 180, 255, 0.45), inset 0 0 20px rgba(0, 180, 255, 0.08);
}

.btn-ghost {
  background: rgba(10, 31, 60, 0.4);
  color: var(--text);
  border: 2px solid rgba(125, 211, 252, 0.45);
}
.btn-ghost:hover {
  border-color: var(--blue-neon);
  box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.18);
}

.btn-success {
  background: linear-gradient(135deg, #16a34a 0%, var(--uno-green) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(34, 217, 110, 0.35);
}

.btn-yellow {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: #1a1020;
  box-shadow: 0 6px 18px rgba(246, 217, 0, 0.35);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.card {
  position: relative;
  background: rgba(10, 31, 60, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 180, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grid-4 .card:hover,
.grid-2 .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 180, 255, 0.12);
}

.card--glass {
  background: rgba(4, 15, 31, 0.78);
}

.card-icon-corner {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  opacity: 0.4;
  font-size: 1.75rem;
  line-height: 1;
  pointer-events: none;
}

.card--accent-neon { border-left: 5px solid var(--blue-neon); }
.card--accent-gold { border-left: 5px solid var(--gold); }
.card--accent-ice { border-left: 5px solid var(--blue-ice); }
.card--accent-primary { border-left: 5px solid var(--blue-700); }
.card--accent-ok { border-left: 5px solid var(--ok); }
.card--accent-jackpot {
  border-left: 5px solid var(--blue-neon);
  animation: jackpot-border-pulse 3s ease-in-out infinite;
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.grid-4 {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.hero {
  position: relative;
  padding: 2.5rem 0 2rem;
  text-align: center;
  overflow: visible;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -25% -15% auto;
  height: 75%;
  background: radial-gradient(ellipse at 50% 30%, rgba(0, 180, 255, 0.22) 0%, transparent 62%);
  animation: aurora-pulse 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-banner-wrap {
  margin: 0 -1.25rem 1.75rem;
  width: calc(100% + 2.5rem);
  max-width: none;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  line-height: 0;
  aspect-ratio: 920 / 340;
  max-height: min(42vh, 320px);
  background: rgba(4, 8, 18, 0.92);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 180, 255, 0.18);
  border: 1px solid rgba(0, 180, 255, 0.3);
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.hero-title-uno {
  color: var(--blue-neon);
  text-shadow: 0 0 28px rgba(0, 180, 255, 0.65), 0 0 48px rgba(0, 180, 255, 0.25);
}

.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  margin: 0 0 0.65rem;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.hero p {
  color: var(--blue-ice);
  max-width: 560px;
  margin: 0 auto 1.35rem;
  font-weight: 600;
}

.stat-pill {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(0, 180, 255, 0.1);
  border: 1px solid rgba(0, 180, 255, 0.45);
  color: var(--blue-ice);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.stat-pill .uno-mini-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-neon);
  animation: neon-dot 2s ease-in-out infinite;
}

.balance-big {
  font-size: 2.15rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -0.03em;
  animation: jackpot-glow 5s ease-in-out infinite;
}

.hero--dashboard {
  text-align: center;
  padding-top: 1.25rem;
}

.hero--dashboard .stat-pill {
  margin: 0 auto 0.85rem;
}

.hero--dashboard .hero-banner-wrap {
  margin-bottom: 1.25rem;
}

.hero--dashboard h1 {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.65rem;
}

.hero--dashboard .dash-hero-lead {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
  color: var(--blue-ice);
  font-weight: 600;
}

.dash-hero-greet {
  margin: 0 auto 0.35rem;
  font-weight: 800;
  font-size: 0.95rem;
}

.hero-cta-row--dashboard {
  justify-content: center;
  margin-top: 0.25rem;
}

.dash-features-grid--after-hero {
  margin: 0 0 2rem;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

label {
  display: block;
  font-size: 0.82rem;
  color: var(--blue-ice);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

input, select, textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 180, 255, 0.22);
  background: rgba(4, 15, 31, 0.92);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue-neon);
  box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.22);
}

.form-row { margin-bottom: 1rem; }

.flash {
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  margin: 1rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  animation: flash-pop 0.45s ease-out;
}

.flash-ok {
  background: rgba(34, 217, 110, 0.14);
  border: 2px solid rgba(34, 217, 110, 0.45);
  color: #bbf7d0;
}

.flash-err {
  background: rgba(244, 63, 94, 0.14);
  border: 2px solid rgba(244, 63, 94, 0.4);
  color: #ffe4e6;
}

.table-wrap { overflow-x: auto; margin-top: 1rem; }

table.extrato-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

table.extrato-table thead {
  background: rgba(0, 180, 255, 0.07);
}

table.extrato-table th,
table.extrato-table td {
  padding: 0.65rem 0.55rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 180, 255, 0.1);
}

table.extrato-table th {
  color: var(--blue-ice);
  font-weight: 800;
}

table.extrato-table tbody tr:first-child td {
  border-left: 4px solid var(--blue-neon);
  padding-left: 0.65rem;
  box-shadow: inset 4px 0 0 rgba(0, 180, 255, 0.35);
}

.footer-site {
  margin-top: 3.5rem;
  padding-top: 2rem;
  padding-bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 11, 24, 0.92) 12%);
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--blue-700), var(--blue-neon), var(--blue-700)) 1;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.1fr 1fr 1.1fr;
  }
}

.footer-col h3 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-ice);
}

.footer-col p {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--blue-neon);
  text-shadow: 0 0 10px rgba(0, 180, 255, 0.35);
}

.footer-seals {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(0, 180, 255, 0.12);
  border-bottom: 1px solid rgba(0, 180, 255, 0.12);
}

.seal {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--blue-neon);
  font-size: 0.8rem;
  font-weight: 700;
}

.seal svg { flex-shrink: 0; opacity: 0.95; }

.footer-legal-bar {
  background: rgba(0, 0, 25, 0.62);
  margin: 0 -1.25rem -1px;
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.game-frame-wrap {
  position: relative;
  padding: 4px;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(
    120deg,
    var(--blue-700),
    var(--blue-neon),
    var(--blue-ice),
    var(--blue-600),
    var(--blue-700)
  );
  background-size: 320% 320%;
  animation: frame-shift 10s linear infinite;
}

.game-frame-wrap-inner {
  border-radius: var(--radius);
  overflow: hidden;
  background: #030814;
}

.game-frame {
  display: block;
  width: 100%;
  box-sizing: border-box;
  /* Pisos compatíveis com viewports curtas: evitar altura mínima rígida maior que área útil (dock cortado). */
  height: clamp(520px, min(92dvh, 92svh), 1100px);
  border: none;
  background: #000;
}

@media (max-width: 600px) {
  .game-frame {
    height: min(100dvh, 1100px);
    max-height: 100dvh;
    min-height: min(560px, 88dvh);
  }
}

@media (max-height: 720px) {
  .game-frame {
    height: min(94dvh, 1100px);
    min-height: min(480px, 82dvh);
  }
}

@media (max-width: 600px) and (max-height: 700px) {
  .game-frame {
    height: min(98dvh, 1100px);
    min-height: 0;
  }
}

/* /jogo/uno modo foco: iframe full-bleed no mobile */
@media (max-width: 700px) {
  main.game-focus-main {
    padding-left: 0;
    padding-right: 0;
  }

  main.game-focus-main > .flash {
    margin-left: clamp(12px, 4vw, 20px);
    margin-right: clamp(12px, 4vw, 20px);
  }

  main.game-focus-main .game-page-uno--focus .game-embed-bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 2px;
    border-radius: calc(var(--radius) + 2px);
  }
}


.pix-box {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  word-break: break-all;
  padding: 1rem;
  background: rgba(4, 15, 31, 0.6);
  border-radius: 10px;
  border: 2px dashed rgba(0, 180, 255, 0.35);
}

.muted { color: var(--muted); font-size: 0.9rem; font-weight: 600; }

code {
  background: rgba(0, 180, 255, 0.1);
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  font-size: 0.88em;
}

.platform-balance-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.platform-balance-row #live-balance {
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--gold);
  animation: jackpot-glow 5s ease-in-out infinite;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-neon);
  margin-right: 0.35rem;
  animation: neon-dot 2s ease-in-out infinite;
}

/* Dashboard /home — layout responsivo */
.dash-shell {
  margin: 1.25rem 0 2rem;
}

.dash-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.dash-greet {
  margin: 0;
  font-weight: 800;
  font-size: 1rem;
}

.dash-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 768px) {
  .dash-layout {
    grid-template-columns: 1fr minmax(220px, 300px);
    gap: 1.25rem;
  }
}

.dash-banca-card--compact .dash-title {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
}

.dash-quick-deposit {
  margin-top: 1rem;
}

.dash-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.dash-total-label {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dash-banca-card .dash-balance-num {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 6vw, 2.65rem);
  line-height: 1.1;
  word-break: break-word;
}

.dash-banca-card.dash-banca-card--compact .dash-balance-num {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 4vw, 2rem);
  animation: none;
}

.dash-balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 380px) {
  .dash-balance-grid {
    grid-template-columns: 1fr;
  }
}

.dash-balance-cell {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(0, 180, 255, 0.15);
}

.dash-balance-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.dash-balance-val {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--blue-ice);
}

.dash-quick-title {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 900;
}

.dash-quick-hint {
  margin: 0 0 1rem;
  font-size: 0.85rem;
}

.dash-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 480px) {
  .dash-chip-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.btn-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.45rem;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.88rem;
  color: var(--text);
  text-decoration: none;
  border: 2px solid rgba(0, 180, 255, 0.45);
  background: rgba(18, 69, 168, 0.38);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.btn-chip:hover {
  text-decoration: none;
  border-color: var(--blue-neon);
  box-shadow: 0 0 18px rgba(0, 180, 255, 0.35);
  transform: translateY(-2px);
}

.deposit-presets {
  margin: 0.25rem 0 1rem;
}

.deposit-presets__label {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-ice);
}

.deposit-presets__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

@media (max-width: 420px) {
  .deposit-presets__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.deposit-presets__chip {
  appearance: none;
  border: 1px solid rgba(0, 180, 255, 0.38);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(18, 69, 168, 0.44), rgba(10, 31, 60, 0.68));
  color: #dff3ff;
  font-weight: 900;
  font-size: 0.88rem;
  padding: 0.5rem 0.35rem;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.deposit-presets__chip:hover {
  border-color: rgba(125, 211, 252, 0.7);
  box-shadow: 0 0 16px rgba(0, 180, 255, 0.28);
  transform: translateY(-1px);
}

.deposit-presets__chip.is-active {
  border-color: rgba(246, 217, 0, 0.95);
  background: linear-gradient(135deg, rgba(246, 217, 0, 0.26), rgba(18, 69, 168, 0.76));
  box-shadow:
    0 0 0 1px rgba(246, 217, 0, 0.35),
    0 0 20px rgba(246, 217, 0, 0.25);
  color: #fff6c7;
}

.dash-actions-label {
  margin: 0 0 0.85rem;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-ice);
}

.dash-actions-inner {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dash-action-btn {
  width: 100%;
  justify-content: center;
}

.dash-features-grid {
  margin-bottom: 3rem;
}
