/* DDUU.com Amber-Purple Casino Theme */
:root {
  --bg-deep: #090f1f;
  --bg-mid: #12182b;
  --bg-card: #1a2035;
  --bg-elevated: #222a42;
  --purple-dark: #4c08b2;
  --purple-main: #7f0671;
  --purple-light: #a46afa;
  --gradient-brand: linear-gradient(135deg, #6845da 0%, #ff972f 100%);
  --gradient-registro: linear-gradient(96deg, #6845DA 0%, #FF972F 97.21%);
  --green-entrar: #35cd1e;
  --green-dark: #2aad15;
  --text: #ffffff;
  --text-muted: #b8b0d4;
  --text-dim: #8a82a8;
  --red-announce: #ff4757;
  --border: rgba(164, 106, 250, 0.15);
  --shell-max: 486px;
  --header-h: 52px;
  --appbar-h: 40px;
  --bottomnav-h: 62px;
  --radius: 10px;
  --radius-sm: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.casino-body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #050810;
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.casino-shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg-deep);
  position: relative;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
  padding-bottom: calc(var(--bottomnav-h) + 16px);
}

/* ── App Bar ── */
.app-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--appbar-h);
  padding: 0 10px;
  background: linear-gradient(90deg, #2a1f5e 0%, #1e1640 100%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.app-bar.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.app-bar-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}

.app-bar-text {
  flex: 1;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-atualizar {
  flex-shrink: 0;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--purple-main);
  border-radius: 20px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-atualizar:active { transform: scale(0.95); }

.app-bar-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

/* ── Header ── */
.site-header {
  display: grid;
  grid-template-columns: 36px 1fr auto 36px;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--bg-mid);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--appbar-h);
  z-index: 190;
  transition: top 0.3s ease;
}

body.no-appbar .site-header { top: 0; }

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-main {
  height: 32px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-entrar {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--green-entrar);
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-entrar:active { background: var(--green-dark); transform: scale(0.96); }

.registro-wrap {
  position: relative;
}

.btn-registro {
  display: block;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-registro);
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: transform 0.15s, filter 0.2s;
  white-space: nowrap;
}

.btn-registro:active { transform: scale(0.96); filter: brightness(1.1); }

.bonus-tag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 700;
  color: #ffd700;
  background: rgba(0, 0, 0, 0.7);
  padding: 1px 4px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 1;
  animation: bonusPulse 2s ease-in-out infinite;
}

@keyframes bonusPulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.08); }
}

/* ── Hero ── */
/* ── Hero banners (esquerda grande + 3 empilhados) ── */
.hero-section {
  display: grid;
  grid-template-columns: 1.28fr 1fr;
  gap: 6px;
  padding: 8px;
  align-items: stretch;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
}

.carousel-track {
  position: absolute;
  inset: 0;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.carousel-slide.prev {
  opacity: 0;
}

.carousel-link {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.carousel-dots {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, width 0.3s;
}

.dot.active {
  background: #fff;
  width: 14px;
  border-radius: 3px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.side-promo {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  line-height: 0;
}

.side-promo::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff2d2d;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.35);
  z-index: 2;
  pointer-events: none;
}

.side-promo img {
  width: 100%;
  height: auto;
  aspect-ratio: 240 / 140;
  object-fit: cover;
  object-position: center;
  display: block;
  vertical-align: top;
}

/* ── Marquee ── */
.marquee-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 8px 8px;
  padding: 6px 10px;
  background: rgba(38, 35, 70, 0.8);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.marquee-icon {
  flex-shrink: 0;
  font-size: 14px;
}

.marquee-track {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-inner {
  display: flex;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-content {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  padding-right: 48px;
}

.marquee-content span {
  font-size: 11px;
  font-weight: 600;
  color: var(--red-announce);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Category Tabs ── */
.category-tabs {
  display: flex;
  gap: 6px;
  padding: 0 8px 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 58px;
  padding: 8px 10px;
  background: radial-gradient(50% 130% at 96% 100%, rgba(44, 41, 77, 0.4), rgb(38, 35, 70));
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  color: var(--text-muted);
}

.cat-tab.active {
  background: linear-gradient(135deg, rgba(104, 69, 218, 0.55) 0%, rgba(127, 6, 113, 0.55) 100%);
  border-color: var(--purple-light);
  color: var(--text);
  box-shadow: 0 0 12px rgba(164, 106, 250, 0.35);
}

.cat-tab:active { transform: scale(0.95); }

.cat-icon {
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  color: #cfc6ef;
}

.cat-tab.active .cat-icon { color: #fff; }

.cat-label {
  font-size: 12px;
  font-weight: 700;
}

.cat-count {
  font-size: 11px;
  font-weight: 700;
  color: #9b91c4;
}

.cat-tab.active .cat-count { color: #ffd700; }

/* ── Game Sections ── */
.game-section {
  padding: 0 8px 16px;
}

.section-head {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.flame-icon { font-size: 16px; }

.provider-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 10px;
  font-weight: 800;
  background: var(--gradient-brand);
  border-radius: 6px;
  color: #fff;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.game-card {
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: transform 0.15s;
}

.game-card:active { transform: scale(0.94); }

.game-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #4c08b2 0%, #7f0671 50%, #ff972f 100%);
  color: #fff;
  text-transform: uppercase;
}

.game-thumb.fallback img { display: none; }
.game-thumb.fallback .game-fallback { display: flex; }

.game-name { display: none; }

.jackpot-banner {
  margin: 4px 8px 18px;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 196, 26, 0.25), transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(255, 120, 40, 0.2), transparent 42%),
    linear-gradient(180deg, #2a1848 0%, #14102a 100%);
  border: 1px solid rgba(255, 194, 113, 0.25);
  min-height: 88px;
  display: grid;
  place-items: center;
}

.jackpot-inner {
  text-align: center;
  padding: 16px 12px;
}

.jackpot-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #ffe9a0 0%, #ffc24e 40%, #ff7a18 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 12px rgba(255, 170, 40, 0.35);
  margin-bottom: 4px;
}

.jackpot-value {
  font-size: 26px;
  font-weight: 800;
  color: #fff6c8;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.section-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 4px;
}

.showing-text {
  font-size: 11px;
  color: var(--text-dim);
}

.show-all {
  font-size: 12px;
  font-weight: 700;
  color: var(--purple-light);
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid var(--purple-light);
  border-radius: 20px;
  transition: background 0.2s;
}

.show-all:active {
  background: rgba(164, 106, 250, 0.15);
}

/* ── Footer ── */
.site-footer {
  padding: 20px 16px 24px;
  text-align: center;
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}

.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  transition: transform 0.15s;
}

.social-row a:active { transform: scale(0.9); }

.social-row img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.social-svg svg {
  display: block;
}

.partner-banners {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.partner-banners img {
  width: 100%;
  border-radius: var(--radius-sm);
  display: block;
}

.copyright {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ── Floating Widgets ── */
.float-widgets {
  position: fixed;
  right: max(8px, calc((100vw - var(--shell-max)) / 2 + 8px));
  bottom: calc(var(--bottomnav-h) + 20px);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

@media (min-width: 520px) {
  .float-widgets { right: calc((100vw - var(--shell-max)) / 2 + 8px); }
}

.float-item {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s;
}

.float-item:active { transform: scale(0.92); }

.float-coin {
  animation: floatBounce 3s ease-in-out infinite;
}

.float-coin img {
  width: 56px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.4));
}

.float-label {
  font-size: 8px;
  font-weight: 800;
  color: #ffd700;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  margin-top: -4px;
}

.float-jackpot {
  animation: floatBounce 3s ease-in-out infinite 0.5s;
}

.float-jackpot img {
  width: 64px;
  height: auto;
  border-radius: 8px;
}

.jackpot-timer {
  font-size: 9px;
  font-weight: 800;
  color: #ff4757;
  background: rgba(0, 0, 0, 0.75);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.float-packet img {
  width: 48px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(255, 0, 0, 0.3));
}

.float-packet.pulse {
  animation: packetPulse 2s ease-in-out infinite;
}

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

@keyframes packetPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.08) rotate(-3deg); }
  75% { transform: scale(1.08) rotate(3deg); }
}

/* ── Bottom Nav ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--shell-max);
  height: var(--bottomnav-h);
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  background: linear-gradient(180deg, rgba(30, 26, 54, 0.95) 0%, #1a1630 100%);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 180;
  padding-bottom: 6px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  transition: color 0.2s;
  min-width: 52px;
}

.nav-item.active { color: var(--purple-light); }

.nav-item svg { opacity: 0.7; }
.nav-item.active svg { opacity: 1; }

.nav-deposit {
  position: relative;
  margin-top: -18px;
}

.deposit-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(104, 69, 218, 0.5);
  animation: depositGlow 2.5s ease-in-out infinite;
}

@keyframes depositGlow {
  0%, 100% { box-shadow: 0 4px 16px rgba(104, 69, 218, 0.5); }
  50% { box-shadow: 0 4px 24px rgba(255, 151, 47, 0.6); }
}

.nav-deposit span {
  color: var(--purple-light);
  font-weight: 700;
}

/* ── Install sheet (home) ── */
.pwa-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 3, 14, 0.55);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.pwa-overlay:not([hidden]) {
  display: block;
}
.pwa-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.pwa-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(110%);
  width: calc(100% - 16px);
  max-width: calc(var(--shell-max) - 16px);
  z-index: 310;
  padding: 0;
  margin-bottom: 12px;
  background: #2a2552;
  border-radius: 22px;
  border: 1px solid rgba(170, 145, 255, 0.4);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 18px 52px rgba(0, 0, 0, 0.58),
    0 0 42px rgba(90, 70, 220, 0.26);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
}
.pwa-sheet:not([hidden]) {
  display: block;
}
.pwa-sheet.visible {
  transform: translateX(-50%) translateY(0);
}

.pwa-sheet-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 20px calc(22px + env(safe-area-inset-bottom, 0px));
}

.pwa-icon {
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  background: #1a1630;
}

.pwa-body {
  flex: 1;
  min-width: 0;
}

.pwa-text {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.pwa-text strong {
  color: #fff;
  font-weight: 800;
}

.pwa-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.pwa-cancel {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 18px;
  cursor: pointer;
  border-radius: 999px;
}

.pwa-cancel:active {
  opacity: 0.75;
}

.pwa-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(96deg, #7b4dff 0%, #4f6bff 100%);
  box-shadow: 0 10px 26px rgba(90, 70, 220, 0.5);
}

.pwa-install:active {
  transform: scale(0.97);
}

body.rp-open .pwa-overlay,
body.rp-open .pwa-sheet {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden;
}

/* ── Desktop centering ── */
@media (min-width: 520px) {
  body.casino-body {
    background: linear-gradient(135deg, #0f0d1a 0%, #1a1230 50%, #0f0d1a 100%);
  }
}


/* Marquee animation on wrapper */
