/* ============================================
   Twin Casino Brand Clone — 888twin.com
   Mimics twin220.com pixel-by-pixel
   ============================================ */

:root {
  --bg: #1c1e27;
  --bg-2: #20232d;
  --bg-3: #2a2d39;
  --bg-card: #2f323e;
  --bg-card-2: #383b48;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);

  --blue: #3498fe;
  --blue-h: #1e85ee;
  --blue-glow: rgba(52, 152, 254, 0.40);
  --cyan: #21d4ff;

  --text: #ffffff;
  --text-dim: #a8aebd;
  --text-muted: #6e7383;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --sidebar-w: 248px;
  --topbar-h: 64px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }

/* ============================================
   TOPBAR
   ============================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 14px;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: 6px;
  flex-shrink: 0;
}
.logo svg { height: 22px; width: auto; }

.topnav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  overflow: hidden;
}

.topnav > * {
  padding: 9px 13px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease;
  user-select: none;
}
.topnav .is-active { background: rgba(255,255,255,0.10); }
.topnav > * .ic {
  font-size: 14px;
  width: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}
.topnav .more {
  padding: 9px 12px;
  color: var(--text);
  font-size: 18px;
  letter-spacing: 0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  transition: background 0.15s ease;
}
.icon-btn:hover { background: rgba(255,255,255,0.08); }

.theme-toggle {
  width: 50px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, #21d4ff, #3498fe);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  border: none;
}
.theme-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.btn-text {
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
}
.btn-text:hover { background: rgba(255,255,255,0.06); }

.btn-register {
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-register:hover { background: var(--blue-h); transform: translateY(-1px); }

/* ============================================
   LAYOUT
   ============================================ */

.layout {
  display: flex;
  min-height: calc(100vh - var(--topbar-h));
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  padding: 14px 12px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }

.sb-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 12px;
  cursor: pointer;
}

.sb-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  border-radius: var(--radius-md);
  margin-bottom: 2px;
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.sb-item:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.sb-item.is-active {
  background: var(--blue);
  color: #fff;
}
.sb-item .sb-ic {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* ============================================
   MAIN
   ============================================ */

.main {
  flex: 1;
  padding: 14px 22px 50px;
  min-width: 0;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 380px;
  margin-bottom: 32px;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, #2563eb 0%, transparent 65%), linear-gradient(135deg, #0a1f4d 0%, #0d1f47 50%, #0a1531 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("banners/hero-zeus-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero__front {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 58%;
  background-image: url("banners/hero-zeus-front.webp");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  z-index: 2;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 56px;
  max-width: 560px;
}

.hero__title {
  font-size: clamp(34px, 4.5vw, 50px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.55);
  line-height: 1.05;
}

.hero__sub {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  margin-bottom: 30px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.55);
  line-height: 1.3;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #1c1e27;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 17px 34px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.hero__dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.hero__dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: #fff;
}

/* ============================================
   RAILS
   ============================================ */

.rail { margin-bottom: 32px; }

.rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.rail__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
}
.rail__title .badge-top100 {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 8px;
  font-size: 9.5px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  line-height: 1.05;
  text-align: center;
  white-space: pre-line;
  box-sizing: border-box;
  padding: 0;
}
.rail__title .ic-emoji {
  font-size: 22px;
  width: 30px;
  text-align: center;
}

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

.btn-link {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease;
}
.btn-link:hover { background: rgba(255,255,255,0.12); }

.rail__arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  transition: background 0.15s ease;
}
.rail__arrow:hover { background: rgba(255,255,255,0.14); }

/* ============================================
   WINNERS LEADERBOARD (Os 100 vencedores)
   ============================================ */

.winners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 1280px) {
  .winners { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .winners { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 540px) {
  .winners { grid-template-columns: 1fr !important; }
}

.winner {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 8px;
  background: var(--bg-card);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.winner:hover {
  background: var(--bg-card-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.winner__art {
  width: 90px;
  aspect-ratio: 2 / 3;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elev);
}
.winner__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.winner__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding-right: 8px;
}

.winner__game {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.winner__amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--blue-bright);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.winner__user {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.winner__user .ua {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-elev);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
}

/* ============================================
   GAMES GRID
   ============================================ */

.games {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 6px;
  margin-bottom: -6px;
  /* Fadeout suave à direita — indica conteúdo "scrollable" e mascara fim da row */
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 96%, transparent 100%);
}
.games::-webkit-scrollbar { display: none; }

.game {
  --tile-w: 120px;
  flex: 0 0 var(--tile-w) !important;
  width: var(--tile-w) !important;
  min-width: var(--tile-w);
  max-width: var(--tile-w);
  scroll-snap-align: start;
  display: block;
  cursor: pointer;
  transition: transform 0.18s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}
.game:hover {
  transform: translateY(-3px);
}
.game:hover .game__art {
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}

.game__name {
  display: block;
  padding: 8px 4px 0;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  height: 24px;
  max-width: 100%;
  box-sizing: border-box;
}

.game__art {
  width: 100%;
  aspect-ratio: 2 / 3;
  position: relative;
  background: var(--bg-card);
  overflow: hidden;
  border-radius: 8px;
  display: block;
}
.game__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.game:hover .game__art img {
  transform: scale(1.04);
}
.game__art::after {
  content: "JOGAR";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(52, 152, 254, 0.88);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.game:hover .game__art::after { opacity: 1; }

.badge-new, .badge-hot, .badge-top {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 2;
  color: #fff;
}
.badge-new { background: var(--blue); }
.badge-hot { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.badge-top { background: linear-gradient(135deg, #ec4899, #8b5cf6); }

/* Game art gradients */
.art-1 { background: linear-gradient(160deg, #ec4899 0%, #a855f7 100%); }
.art-2 { background: linear-gradient(160deg, #f59e0b 0%, #1e3a8a 100%); }
.art-3 { background: linear-gradient(160deg, #ca8a04 0%, #422006 100%); }
.art-4 { background: linear-gradient(160deg, #06b6d4 0%, #0c4a6e 100%); }
.art-5 { background: linear-gradient(160deg, #f59e0b 0%, #78350f 100%); }
.art-6 { background: linear-gradient(160deg, #1e3a8a 0%, #0f172a 100%); }
.art-7 { background: linear-gradient(160deg, #ef4444 0%, #7f1d1d 100%); }
.art-8 { background: linear-gradient(160deg, #fbbf24 0%, #1e3a8a 100%); }
.art-9 { background: linear-gradient(160deg, #f472b6 0%, #be185d 100%); }
.art-10 { background: linear-gradient(160deg, #fb923c 0%, #c2410c 100%); }
.art-11 { background: linear-gradient(160deg, #10b981 0%, #064e3b 100%); }
.art-12 { background: linear-gradient(160deg, #ef4444 0%, #1f2937 100%); }
.art-13 { background: linear-gradient(160deg, #8b5cf6 0%, #1e1b4b 100%); }
.art-14 { background: linear-gradient(160deg, #fbbf24 0%, #78350f 100%); }
.art-15 { background: linear-gradient(160deg, #06b6d4 0%, #1e3a8a 100%); }
.art-16 { background: linear-gradient(160deg, #14b8a6 0%, #0f766e 100%); }
.art-17 { background: linear-gradient(160deg, #6366f1 0%, #312e81 100%); }
.art-18 { background: linear-gradient(160deg, #d946ef 0%, #581c87 100%); }
.art-19 { background: linear-gradient(160deg, #f97316 0%, #7c2d12 100%); }
.art-20 { background: linear-gradient(160deg, #84cc16 0%, #365314 100%); }

/* ============================================
   PROMO BANNERS (small rail)
   ============================================ */

.promos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.pcard {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 24px 26px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}
.pcard h3 { font-size: 26px; margin-bottom: 6px; line-height: 1.1; }
.pcard p { font-size: 13px; margin: 0 0 18px; opacity: 0.9; line-height: 1.4; }
.pcard .btn-white { font-size: 11px; padding: 12px 22px; }

.pcard-1 { background: radial-gradient(ellipse at 80% 30%, #3498fe 0%, transparent 60%), linear-gradient(135deg, #1e3a8a 0%, #0c1d52 100%); }
.pcard-2 { background: radial-gradient(ellipse at 80% 30%, #f59e0b 0%, transparent 55%), linear-gradient(135deg, #78350f 0%, #1c1917 100%); }
.pcard-3 { background: radial-gradient(ellipse at 80% 30%, #21d4ff 0%, transparent 55%), linear-gradient(135deg, #0c4a6e 0%, #0a1531 100%); }
.pcard-4 { background: radial-gradient(ellipse at 70% 40%, #d946ef 0%, transparent 60%), linear-gradient(135deg, #4c1d95 0%, #1e1b4b 100%); }

/* ============================================
   PROVIDERS STRIP
   ============================================ */

.providers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.prov {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 22px 14px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--text-dim);
  transition: color 0.15s ease, background 0.15s ease;
}
.prov:hover { color: var(--text); background: var(--bg-card-2); }

/* ============================================
   CONTENT (long-form SEO copy)
   ============================================ */

.content {
  max-width: 820px;
  margin: 48px auto 16px;
  padding: 0 4px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
}
.content h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin: 44px 0 14px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.content h2:first-of-type { margin-top: 12px; }
.content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 10px;
  letter-spacing: -0.005em;
}
.content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 18px 0 6px;
}
.content p { margin: 0 0 14px; }
.content ul, .content ol { padding-left: 22px; margin: 6px 0 18px; }
.content li { margin-bottom: 6px; }
.content strong { color: var(--text); font-weight: 700; }
.content a { color: var(--blue-bright); text-decoration: underline; text-underline-offset: 2px; }
.content a:hover { color: var(--cyan); }
.content hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 22px;
  font-size: 14px;
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
}
.content th {
  background: var(--bg-card-2);
  color: var(--text);
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.content td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: top;
}
.content tr:last-child td { border-bottom: none; }

.content details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  transition: border-color 0.15s ease;
}
.content details[open] { border-color: var(--blue); }
.content details summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 22px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.content details summary::-webkit-details-marker { display: none; }
.content details summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--blue-bright);
  transition: transform 0.2s ease;
  line-height: 1;
  flex-shrink: 0;
}
.content details[open] summary::after { transform: rotate(45deg); }
.content details > p,
.content details > div {
  padding: 0 22px 18px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.6;
}

.content .pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 16px 0 22px;
}
.content .pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-size: 13.5px;
  line-height: 1.5;
}
.content .pillar strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 13px;
}

.content blockquote {
  border-left: 3px solid var(--blue);
  padding: 8px 16px;
  margin: 16px 0 18px;
  background: rgba(52,152,254,0.05);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--text-dim);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 36px 24px 24px;
  margin-top: 28px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto 24px;
}
.footer__col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 12px;
}
.footer__col a, .footer__col span {
  display: block;
  color: var(--text-dim);
  font-size: 13px;
  padding: 4px 0;
  transition: color 0.15s ease;
}
.footer__col a:hover, .footer__col span:hover { color: var(--text); }

.footer__legal {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-muted);
}
.footer__legal p { margin: 0 0 9px; }
.footer__legal strong { color: var(--text-dim); }
.footer__legal a { color: var(--text-dim); text-decoration: underline; }

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}
.footer__badges {
  display: flex;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1280px) {
  .topnav a:nth-child(n+9) { display: none; }
}
@media (max-width: 1100px) {
  .topnav a:nth-child(n+7) { display: none; }
  .hero { height: 340px; }
  .hero__content { padding: 0 44px; }
}
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main { padding: 12px 14px 40px; }
  .topnav { display: none; }
  .topbar-actions .icon-btn { display: none; }
  .theme-toggle { display: none; }
  .topbar { padding: 0 14px; gap: 10px; }
  .hero { height: 260px; border-radius: 16px; margin-bottom: 22px; }
  .hero__content { padding: 0 24px; max-width: 70%; }
  .hero__title { font-size: 26px; margin-bottom: 8px; }
  .hero__sub { font-size: 15px; margin-bottom: 18px; }
  .btn-white { padding: 13px 24px; font-size: 12px; }
  .hero__front { width: 55%; }
  .games { gap: 8px; }
  .game { --tile-w: 110px; }
  .game__art .gt { font-size: 13px; }
  .winners { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
  .winner__art { width: 80px; }
  .winner__amount { font-size: 18px; }
  .rail { margin-bottom: 24px; }
  .rail__title { font-size: 17px; }
  .rail__title .badge-top100 { width: 30px; height: 30px; font-size: 9px; }
  .content { margin: 28px auto 12px; font-size: 14px; }
  .content h2 { font-size: 22px; margin-top: 30px; }
  .content h3 { font-size: 17px; }
  .content table { font-size: 12.5px; }
  .content th, .content td { padding: 9px 10px; }
}
@media (max-width: 540px) {
  .btn-text { display: none; }
  /* Scroll horizontal continua, tiles um pouco menores */
  .games { gap: 6px; }
  .game { --tile-w: 105px; }
  .game__art .gt { font-size: 11px; }
  /* Winners 1 coluna em mobile */
  .winners { grid-template-columns: 1fr; gap: 8px; }
  .winner__art { width: 70px; }
  .winner__game { font-size: 13px; }
  .winner__amount { font-size: 16px; }
  .winner__user { font-size: 11px; }
  .badge-new, .badge-hot, .badge-top {
    font-size: 8.5px; padding: 2px 5px; top: 6px; left: 6px;
  }

  /* Hero mobile: 3 zonas distintas (templos esq | texto centro-esq | Zeus dir) */
  .hero {
    height: 170px;
    border-radius: 14px;
    margin-bottom: 18px;
    /* Forçar gradient escuro à esquerda para legibilidade do texto */
    background:
      linear-gradient(90deg, rgba(10,21,49,0.88) 0%, rgba(10,21,49,0.45) 45%, transparent 65%),
      linear-gradient(135deg, #0d1f4d 0%, #1a4d75 50%, #2563eb 100%);
  }
  .hero__bg {
    background-size: cover;
    background-position: 25% center;
  }
  .hero__front {
    width: 42%;
    background-size: auto 145%;
    background-position: right center;
    /* Empurrar Zeus mais para canto direito */
    right: -2%;
  }
  .hero__content {
    padding: 0 18px;
    max-width: 58%;
    z-index: 4;
  }
  .hero__title { font-size: 19px; margin-bottom: 6px; line-height: 1.1; }
  .hero__sub { font-size: 12px; margin-bottom: 12px; line-height: 1.3; }
  .btn-white { padding: 10px 20px; font-size: 11px; }
  .hero__dots { bottom: 10px; }
  .hero__dot { width: 6px; height: 6px; }
  .hero__dot.is-active { width: 16px; }

  /* TOP 100 badge mobile: manter centrado mas mais pequeno */
  .rail__title .badge-top100 {
    width: 32px; height: 32px; font-size: 8px;
  }

  /* Topbar compacto */
  .btn-register { padding: 9px 16px; font-size: 11.5px; }
  .icon-btn { width: 34px; height: 34px; }
  .topbar { gap: 6px; padding: 0 12px; }
  .logo svg { height: 18px; }

  /* Rails labels mais pequenos */
  .rail { margin-bottom: 22px; }
  .rail__title { font-size: 15px; }
  .rail__title .badge-top100 { width: 32px; height: 32px; font-size: 8px; }
  .btn-link { font-size: 11px; padding: 7px 12px; }
  .rail__arrow { width: 30px; height: 30px; font-size: 13px; }

  /* Footer 2 cols */
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* Telefone muito pequeno (iPhone SE etc.) */
@media (max-width: 380px) {
  .games { gap: 5px; }
  .game { --tile-w: 95px; }
  .game__art .gt { font-size: 10px; }
  .hero { height: 160px; }
  .hero__title { font-size: 17px; }
  .hero__sub { font-size: 11px; }
  .main { padding: 10px 10px 32px; }
}
