/* ===== VARIÁVEIS ===== */
:root {
  --white:    #FFFFFF;
  --red:      #FF010B;
  --dark:     #030810;
  --dark2:    #080f1c;
  --dark3:    #0d1626;
  --dark4:    #0b1422;
  --gold:     #FFAA00;
  --green:    #00C97F;
  --red-dim:  rgba(255,1,11,0.13);
  --radius:   12px;
  --font:     'Inter', sans-serif;
  --font-hud: 'Orbitron', sans-serif;
  --header-h: 62px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: var(--font); background: var(--dark); color: var(--white); scroll-behavior: smooth; }
body {
  min-height: 100svh; overflow-x: hidden;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
img    { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: transparent; font-family: inherit; color: inherit; }
input  { font-family: inherit; color: inherit; }

/* ===== BACKGROUND ===== */
.bg-overlay { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-radial-top {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 30% at 50% 0%, rgba(255,1,11,0.07) 0%, transparent 70%);
}
.bg-radial-bottom {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 20% at 50% 100%, rgba(255,170,0,0.03) 0%, transparent 70%);
}
.bg-left-bar  { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: rgba(255,1,11,0.2); }
.bg-right-bar { position: absolute; top: 0; bottom: 0; right: 0; width: 1px; background: rgba(255,1,11,0.2); }
.bg-grid {
  position: absolute; inset: 0; opacity: 0.12;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
}
.bg-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.7) 100%);
}

/* ===== HEADER ===== */
header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(3,8,16,0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,170,0,0.12);
  box-shadow: 0 1px 24px rgba(0,0,0,0.6);
}
.header-inner {
  max-width: 1800px; margin: 0 auto;
  padding: 0 28px; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.header-brand h1 {
  font-family: var(--font-hud);
  font-size: 18px; font-weight: 900; letter-spacing: 2px;
  background: linear-gradient(90deg, var(--gold), var(--white) 50%, var(--red));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.header-tagline {
  font-size: 8px; font-weight: 700; letter-spacing: 3px;
  color: rgba(255,255,255,0.2); text-transform: uppercase; margin-top: 3px;
}

.header-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.hot-count {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 10px; font-weight: 800;
  background: rgba(255,170,0,0.09); border: 1px solid rgba(255,170,0,0.25); color: var(--gold);
}
.live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 10px; font-weight: 800;
  background: rgba(0,201,127,0.08); border: 1px solid rgba(0,201,127,0.25); color: var(--green);
}
.pulse-dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--green);
  animation: pulseDot 1.6s ease-in-out infinite;
}

/* ===== HERO SECTION ===== */
.hero-section {
  max-width: 1800px; margin: 20px auto 0; padding: 0 20px;
}
.hero-inner {
  display: flex; gap: 28px; align-items: stretch;
  background: linear-gradient(135deg, rgba(11,20,34,0.95) 0%, rgba(3,8,16,0.98) 100%);
  border: 1px solid rgba(255,170,0,0.14); border-radius: 20px;
  padding: 28px 32px; position: relative; overflow: hidden;
}
.hero-inner::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 100% at 0% 50%, rgba(255,1,11,0.07) 0%, transparent 60%);
}

/* --- Foto esquerda --- */
.hero-photo {
  flex: 0 0 calc(40% - 14px); position: relative; z-index: 1;
  border-radius: 14px; overflow: hidden; min-height: 280px;
}
.hero-photo-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  display: block;
}
.hero-photo-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px 20px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  text-align: center;
}
.hero-photo-name {
  font-family: var(--font-hud); font-size: 16px; font-weight: 900; color: #fff;
}
.hero-photo-sub { font-size: 11px; color: rgba(255,255,255,0.55); letter-spacing: .5px; margin-top: 3px; }

/* --- Carousel direita --- */
.hero-right {
  flex: 0 0 calc(60% - 14px); min-width: 0; display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1;
}
.hero-header { display: flex; flex-direction: column; gap: 6px; }
.hero-rec-badge {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  padding: 4px 12px; border-radius: 20px;
  background: rgba(255,170,0,0.1); border: 1px solid rgba(255,170,0,0.3);
  font-size: 10px; font-weight: 900; color: var(--gold);
  text-transform: uppercase; letter-spacing: 1px;
}
.hero-title {
  font-family: var(--font-hud); font-size: 18px; font-weight: 900; color: #fff;
}
.hero-carousel-wrap {
  display: flex; align-items: center; gap: 10px; flex: 1; min-height: 0;
}
.hero-carousel-container { overflow: hidden; flex: 1; min-width: 0; }
.hero-carousel {
  display: flex; gap: 12px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.hero-card {
  flex: 0 0 calc((100% - 24px) / 3);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.07);
  background: var(--dark3); transition: transform .2s, box-shadow .2s;
}
.hero-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(255,1,11,0.2); }
.hero-card-img-wrap { aspect-ratio: 3/4; position: relative; overflow: hidden; }
.hero-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-rtp {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,0.78); border: 1px solid rgba(255,170,0,0.45);
  color: var(--gold); font-family: var(--font-hud); font-size: 10px; font-weight: 700;
  padding: 3px 7px; border-radius: 6px;
}
.hero-card-name {
  padding: 8px 10px; font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.9); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* nav */
.hero-nav-btn {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  color: #fff; font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, border-color .2s;
}
.hero-nav-btn:hover { background: rgba(255,1,11,0.2); border-color: rgba(255,1,11,0.4); }
.hero-dots { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 6px 0; }
.hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.18); border: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.hero-dot.active { background: var(--gold); transform: scale(1.35); }

/* mobile: empilha verticalmente */
@media (max-width: 860px) {
  .hero-section { margin-top: 12px; padding: 0 12px; }
  .hero-inner { flex-direction: column; padding: 20px; gap: 20px; }
  .hero-photo { flex-direction: row; flex: none; gap: 16px; justify-content: flex-start; }
  .hero-photo-avatar { width: 72px; height: 72px; font-size: 28px; }
  .hero-live-pill { font-size: 8px; padding: 2px 7px; bottom: 0; }
  .hero-title { font-size: 14px; }
  .hero-card { flex: 0 0 calc((100% - 12px) / 2); }
}

/* ===== LAYOUT PRINCIPAL ===== */
main { position: relative; }

.layout {
  max-width: 1800px; margin: 0 auto;
  padding: 18px 28px 56px;
  display: flex; gap: 24px; align-items: flex-start;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 220px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: calc(var(--header-h) + 10px);
  max-height: calc(100vh - var(--header-h) - 20px);
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar-section { display: flex; flex-direction: column; gap: 6px; }
.sidebar-label {
  font-size: 10px; font-weight: 900; letter-spacing: 2px;
  color: rgba(255,255,255,0.55); text-transform: uppercase;
  padding: 0 2px;
}

/* Linha separadora entre seções */
.sidebar-section + .sidebar-section {
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ===== BUSCA ===== */
.search-wrap { position: relative; }
.search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.2); pointer-events: none;
}
.search-input {
  width: 100%; height: 40px;
  padding: 0 12px 0 36px;
  background: var(--dark2);
  border: 1.5px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  font-size: 13px; color: var(--white);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input::placeholder { color: rgba(255,255,255,0.18); }
.search-input:focus {
  border-color: rgba(255,1,11,0.4);
  box-shadow: 0 0 0 3px rgba(255,1,11,0.06);
}

/* ===== FILTROS PROVIDER — verticais na sidebar ===== */
.filter-row { display: flex; flex-direction: column; gap: 5px; }
.filter-btn {
  width: 100%; padding: 9px 12px;
  border-radius: 10px; text-align: left;
  font-size: 12px; font-weight: 800;
  border: 1.5px solid rgba(255,255,255,0.06);
  background: var(--dark2); color: rgba(255,255,255,0.35);
  transition: all 0.15s;
}
.filter-btn:active { transform: scale(0.97); }
.filter-btn.active {
  background: var(--red-dim);
  border-color: rgba(255,1,11,0.4);
  color: #FF6A6E;
  box-shadow: 0 0 12px rgba(255,1,11,0.12);
}
.filter-btn:hover:not(.active) { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.12); }

/* ===== CATEGORIA — vertical na sidebar ===== */
.category-row { display: flex; flex-direction: column; gap: 5px; }
.cat-btn {
  width: 100%; padding: 9px 12px;
  border-radius: 10px; text-align: left;
  font-size: 12px; font-weight: 800;
  border: 1.5px solid rgba(255,255,255,0.06);
  background: var(--dark2); color: rgba(255,255,255,0.35);
  transition: all 0.15s;
}
.cat-btn:active { transform: scale(0.97); }
.cat-btn.active {
  background: linear-gradient(135deg, #a00007, var(--red));
  border-color: transparent; color: var(--white);
  box-shadow: 0 4px 14px rgba(255,1,11,0.3);
}
.cat-btn:hover:not(.active) { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.12); }

.refresh-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 10px; margin-top: 4px;
  background: var(--dark2); border: 1.5px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.25);
}
.refresh-timer { font-size: 10px; font-weight: 700; font-family: var(--font-hud); }

/* ===== TICKER — na sidebar ===== */
.ticker-section { min-width: 0; }
.ticker-wrap {
  border-radius: var(--radius);
  border: 1px solid rgba(255,1,11,0.12);
  background: var(--dark2);
  overflow: hidden;
}
.ticker-header {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: #06101f;
  position: sticky; top: 0; z-index: 5;
}
.ticker-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  animation: pulseDot 1.5s ease-in-out infinite; flex-shrink: 0;
}
.ticker-label { font-size: 10px; font-weight: 900; letter-spacing: 1.5px; color: var(--gold); text-transform: uppercase; }
.ticker-count { font-size: 9px; color: rgba(255,255,255,0.4); margin-left: auto; }

/* Na sidebar o ticker scroll é VERTICAL */
.ticker-section .ticker-wrap { max-height: 258px; }
.ticker-track {
  display: flex; flex-direction: column; gap: 0;
  animation: tickerScrollV 25s linear infinite;
}
.ticker-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  flex-shrink: 0; white-space: nowrap;
}
.ticker-item.highlight { background: rgba(255,170,0,0.05); }
.ticker-item img { width: 22px; height: 22px; border-radius: 5px; object-fit: cover; flex-shrink: 0; }
.ticker-user  { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.7); overflow: hidden; text-overflow: ellipsis; max-width: 60px; }
.ticker-sep   { font-size: 9px; color: rgba(255,255,255,0.2); flex-shrink: 0; }
.ticker-value { font-size: 11px; font-weight: 900; font-family: var(--font-hud); color: rgba(255,255,255,0.8); flex-shrink: 0; }
.ticker-value.green { color: var(--green); }
.ticker-value.gold  { color: var(--gold); }
.ticker-game  { display: none; } /* oculto na sidebar por espaço */
.ticker-time  { font-size: 9px; color: rgba(255,255,255,0.2); margin-left: auto; flex-shrink: 0; }

/* ===== CONTEÚDO PRINCIPAL ===== */
.main-content { flex: 1; min-width: 0; }

/* ===== GRID — 4 COLUNAS NO DESKTOP ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* ===== CARD ===== */
.game-card {
  position: relative; border-radius: var(--radius);
  overflow: hidden; background: var(--dark2);
  border: 1.5px solid rgba(255,255,255,0.06);
  cursor: pointer; display: flex; flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-align: left;
}
.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(255,1,11,0.3);
  box-shadow: 0 10px 28px rgba(0,0,0,0.5), 0 0 16px rgba(255,1,11,0.1);
}
.game-card:active { transform: scale(0.95); }
.game-card.hot {
  border-color: rgba(255,1,11,0.5);
  box-shadow: 0 0 0 1px rgba(255,1,11,0.15), 0 4px 18px rgba(255,1,11,0.2);
}
.game-card.new {
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 0 14px rgba(255,255,255,0.05);
}
.card-glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(255,1,11,0.1), transparent 55%);
  animation: glowPulse 2.5s ease-in-out infinite;
}

/* Faixa superior */
.card-top {
  display: flex; align-items: center; justify-content: space-between;
  height: 24px; padding: 0 8px;
  background: var(--dark4);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  flex-shrink: 0; position: relative; z-index: 2;
}
.card-provider {
  font-family: var(--font-hud);
  font-size: 6px; font-weight: 700; letter-spacing: 0.5px;
  color: rgba(255,255,255,0.28); text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 65%;
}
.card-rank {
  display: flex; align-items: center; justify-content: center;
  min-width: 18px; height: 16px; border-radius: 5px; padding: 0 4px;
  font-size: 8px; font-weight: 900; color: var(--white);
}
.rank-1 { background: var(--red); box-shadow: 0 0 6px rgba(255,1,11,0.6); }
.rank-2 { background: rgba(255,255,255,0.25); }
.rank-3 { background: rgba(160,80,0,0.9); }
.card-badge-new {
  padding: 1px 6px; border-radius: 5px;
  background: var(--white); color: var(--dark);
  font-size: 7px; font-weight: 900; letter-spacing: 0.8px;
}
.card-hot-badge { font-size: 12px; line-height: 1; }

/* Imagem */
.card-img-wrap {
  position: relative; aspect-ratio: 3/4;
  overflow: hidden; flex-shrink: 0;
}
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.game-card:hover .card-img-wrap img { transform: scale(1.07); }
.card-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(3,8,16,0.88) 0%, rgba(3,8,16,0.2) 45%, transparent 100%);
}
.card-rtp {
  position: absolute; top: 6px; right: 6px; z-index: 3;
  padding: 2px 6px; border-radius: 6px;
  background: linear-gradient(135deg, var(--gold), #FF7A00);
  font-size: 9px; font-weight: 900; color: #000;
}
.card-trend {
  position: absolute; bottom: 40px; right: 7px; z-index: 3;
  font-size: 10px; font-weight: 900;
}
.card-trend.up   { color: var(--green); }
.card-trend.down { color: var(--red); }

/* Faixa inferior */
.card-info {
  padding: 7px 8px 8px; background: var(--dark2);
  border-top: 1px solid rgba(255,255,255,0.04);
  flex-shrink: 0; position: relative; z-index: 2;
}
.card-name {
  font-size: 10px; font-weight: 800;
  color: rgba(255,255,255,0.88);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}
.card-bar  { height: 2px; background: rgba(255,255,255,0.07); border-radius: 99px; overflow: hidden; }
.card-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--red), #FF6600, var(--gold));
  box-shadow: 0 0 4px rgba(255,80,0,0.4); transition: width 1s;
}

/* ===== CARD COM SINAL ===== */
.game-card.has-signal {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px rgba(255,170,0,0.5), 0 0 28px rgba(255,170,0,0.4) !important;
  animation: signalPulse 1.2s ease-in-out infinite !important;
}
.game-card.has-signal::after {
  content: '⚡'; position: absolute; top: -7px; right: -5px;
  font-size: 13px; z-index: 10;
  animation: bounceBadge 0.8s ease-in-out infinite alternate;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  display: none; text-align: center; padding: 64px 0;
  color: rgba(255,255,255,0.22);
}
.empty-state.visible { display: block; }
.empty-state span { font-size: 40px; display: block; margin-bottom: 10px; }
.empty-state p    { font-size: 14px; }

/* ===== PAGINAÇÃO ===== */
.scroll-sentinel { height: 1px; }
.scroll-spinner {
  display: none; justify-content: center; align-items: center;
  gap: 6px; padding: 24px 0 8px;
}
.scroll-spinner span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,1,11,0.5);
  animation: spinnerPulse 1.2s ease-in-out infinite;
}
.scroll-spinner span:nth-child(2) { animation-delay: .2s; }
.scroll-spinner span:nth-child(3) { animation-delay: .4s; }
@keyframes spinnerPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
  40%            { transform: scale(1);   opacity: 1; }
}

/* ===== MODAL DETALHE ===== */
.gd-overlay {
  display: none; position: fixed; inset: 0; z-index: 190;
  background: rgba(0,0,0,0.8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  align-items: center; justify-content: center;
}
.gd-overlay.open { display: flex; }
.gd-modal {
  position: relative; width: 100%; max-width: 460px;
  background: #040b16;
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 2px solid rgba(255,1,11,0.45);
  border-radius: 20px; padding: 22px 18px 26px; margin: 16px;
  animation: fadeScale 0.25s cubic-bezier(0.34,1.2,0.64,1);
}
.gd-close {
  position: absolute; top: 13px; right: 13px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.4); font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.gd-close:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.gd-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.gd-img {
  width: 80px; height: 80px; border-radius: 14px; object-fit: cover; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.1); box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.gd-top-info { flex: 1; min-width: 0; padding-top: 2px; }
.gd-name { font-size: 16px; font-weight: 900; color: var(--white); line-height: 1.2; margin-bottom: 6px; }
.gd-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 20px;
  font-size: 10px; font-weight: 900; margin-bottom: 5px;
}
.gd-badge.hot   { background: rgba(255,1,11,0.16); color: #FF6A6E; border: 1px solid rgba(255,1,11,0.35); }
.gd-badge.new   { background: rgba(255,255,255,0.08); color: var(--white); border: 1px solid rgba(255,255,255,0.18); }
.gd-badge.super { background: rgba(255,100,0,0.16); color: #FF9500; border: 1px solid rgba(255,100,0,0.35); }
.gd-wins { font-size: 11px; color: rgba(255,255,255,0.35); }
.gd-rtp {
  font-family: var(--font-hud); font-size: 30px; font-weight: 900;
  color: var(--gold); flex-shrink: 0; line-height: 1; padding-top: 3px;
  text-shadow: 0 0 20px rgba(255,170,0,0.35);
}
.gd-section { margin-bottom: 13px; }
.gd-bar-label {
  display: flex; justify-content: space-between;
  font-size: 11px; color: rgba(255,255,255,0.38); margin-bottom: 6px;
}
.gd-bar-pct { font-weight: 700; color: rgba(255,255,255,0.6); }
.gd-bar-track {
  height: 8px; background: rgba(255,255,255,0.06); border-radius: 99px; overflow: hidden;
}
.gd-bar-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--red), #FF6600, var(--gold));
  box-shadow: 0 0 10px rgba(255,100,0,0.4); transition: width 0.8s ease;
}
.gd-alert { display: none; }
.gd-alert {
  background: rgba(255,170,0,0.08); border: 1px solid rgba(255,170,0,0.28);
  border-radius: 12px; padding: 11px 14px;
  font-size: 12px; font-weight: 800; color: var(--gold); text-align: center;
  margin-bottom: 11px;
}
.gd-actions { display: flex; gap: 10px; margin-bottom: 12px; }
.gd-btn-signal, .gd-btn-play {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 7px; height: 48px; border-radius: var(--radius);
  font-size: 13px; font-weight: 900; letter-spacing: 0.4px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.gd-btn-signal:active, .gd-btn-play:active { transform: scale(0.96); }
.gd-btn-signal {
  background: linear-gradient(135deg, #6d28d9, #9333ea); color: var(--white);
  box-shadow: 0 4px 18px rgba(109,40,217,0.4);
}
.gd-btn-signal:hover { box-shadow: 0 6px 26px rgba(109,40,217,0.6); }
.gd-btn-play {
  background: linear-gradient(135deg, #166534, #16a34a); color: var(--white);
  box-shadow: 0 4px 18px rgba(22,163,74,0.35);
}
.gd-btn-play:hover { box-shadow: 0 6px 26px rgba(22,163,74,0.5); }
.gd-footer { text-align: center; font-size: 9px; color: rgba(255,255,255,0.16); }

/* ===== MODAL SINAL — RADAR ===== */
/* Fase 0: Estilo */
.sig-style-section { padding:32px 20px 24px; display:flex; flex-direction:column; align-items:center; gap:6px; }
.sig-style-title { font-family:var(--font-hud); font-size:16px; font-weight:900; color:#fff; text-align:center; }
.sig-style-sub { font-size:12px; color:rgba(255,255,255,0.35); text-align:center; margin-bottom:8px; }
.sig-style-btns { display:flex; flex-direction:row; gap:8px; width:100%; }
.sig-style-btn { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:18px 10px; border-radius:14px; border:1px solid rgba(255,255,255,0.08); background:rgba(255,255,255,0.04); text-align:center; transition:background .2s, border-color .2s, transform .15s; }
.sig-style-btn:hover { background:rgba(255,1,11,0.1); border-color:rgba(255,1,11,0.35); }
.sig-style-btn:active { transform:scale(0.97); }
.sig-style-icon { font-size:28px; }
.sig-style-name { font-size:13px; font-weight:800; color:#fff; display:block; }
.sig-style-desc { font-size:10px; color:rgba(255,255,255,0.38); display:block; line-height:1.3; }
.sig-overlay { display:none; position:fixed; inset:0; z-index:200; background:rgba(0,0,0,0.92); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); align-items:center; justify-content:center; }
.sig-overlay.open { display:flex; }
.sig-modal { width:100%; max-width:420px; margin:16px; background:#0a0003; border:1px solid rgba(255,1,11,0.25); border-radius:20px; overflow:hidden; animation:fadeScale 0.3s cubic-bezier(0.34,1.2,0.64,1); position:relative; }
.sig-close { position:absolute; top:14px; right:16px; z-index:10; font-size:15px; color:rgba(255,255,255,0.25); transition:color .15s; }
.sig-close:hover { color:#FF010B; }

/* Fase 1: Radar */
.sig-radar-section { display:flex; flex-direction:column; align-items:center; padding:32px 20px 20px; gap:14px; transition:padding .5s ease; }
.sig-radar-section.shrunk { padding:14px 20px 0; }
.sig-radar-wrap { position:relative; width:200px; height:200px; flex-shrink:0; transition:width .5s ease, height .5s ease; }
.sig-radar-section.shrunk .sig-radar-wrap { width:72px; height:72px; }
.sig-radar-svg { position:absolute; inset:0; width:100%; height:100%; }
.sig-radar-disk { position:absolute; inset:0; border-radius:50%; background:conic-gradient(from 0deg, rgba(255,1,11,0) 0deg, rgba(255,1,11,0.65) 40deg, rgba(255,1,11,0) 40deg); animation:radarSweep 2s linear infinite; }
@keyframes radarSweep { to { transform:rotate(360deg); } }
.sig-radar-blip { position:absolute; width:8px; height:8px; border-radius:50%; background:#FF010B; box-shadow:0 0 10px #FF010B, 0 0 22px rgba(255,1,11,0.6); top:28%; left:62%; transform:translate(-50%,-50%); opacity:0; animation:blipPulse 1s ease-out 1.2s 3 forwards; }
@keyframes blipPulse { 0%{opacity:0;transform:translate(-50%,-50%) scale(0.4);} 50%{opacity:1;transform:translate(-50%,-50%) scale(1.5);} 100%{opacity:0.7;transform:translate(-50%,-50%) scale(1);} }
.sig-radar-status { font-family:var(--font-hud); font-size:9px; font-weight:900; letter-spacing:3px; color:rgba(255,1,11,0.6); text-transform:uppercase; }
.sig-radar-game { font-family:var(--font-hud); font-size:15px; font-weight:900; color:#FF010B; text-align:center; min-height:22px; letter-spacing:1px; text-shadow:0 0 20px rgba(255,1,11,0.5); }

/* Fase 2: Briefing de Missão */
.sig-select-section { max-height:0; overflow:hidden; transition:max-height .55s cubic-bezier(0.4,0,0.2,1); }
.sig-select-section.visible { max-height:460px; }
.sig-briefing { padding:0 18px 4px; display:flex; flex-direction:column; align-items:center; gap:8px; }
.sig-briefing-label { font-family:var(--font-hud); font-size:8px; font-weight:900; letter-spacing:3px; color:rgba(255,1,11,0.6); text-transform:uppercase; }
.sig-mult { font-family:var(--font-hud); font-size:52px; font-weight:900; color:#FF010B; line-height:1; text-shadow:0 0 30px rgba(255,1,11,0.45); letter-spacing:-1px; }
.sig-mult-sub { font-size:9px; color:rgba(255,255,255,0.28); letter-spacing:1px; text-transform:uppercase; margin-top:-4px; }
.sig-mult-hint { font-size:11px; color:rgba(255,255,255,0.35); font-style:italic; margin-top:2px; }
.sig-briefing-list { display:flex; flex-direction:column; gap:8px; width:100%; margin-top:6px; }
.sig-briefing-row { display:flex; align-items:center; gap:12px; background:rgba(255,1,11,0.07); border:1px solid rgba(255,1,11,0.14); border-radius:12px; padding:12px 16px; }
.sig-briefing-emoji { font-size:20px; flex-shrink:0; }
.sig-briefing-text { font-size:14px; color:rgba(255,255,255,0.7); }
.sig-briefing-text strong { color:#fff; font-weight:800; }
.sig-confirm { width:100%; margin-top:6px; padding:14px; background:#FF010B; border-radius:12px; font-family:var(--font-hud); font-size:12px; font-weight:900; letter-spacing:2px; color:#fff; box-shadow:0 4px 20px rgba(255,1,11,0.4); transition:box-shadow .2s, transform .15s; }
.sig-confirm:hover { box-shadow:0 6px 28px rgba(255,1,11,0.65); }
.sig-confirm:active { transform:scale(0.97); }
.sig-skip { display:block; width:100%; padding:14px 14px 16px; font-size:11px; color:rgba(255,255,255,0.2); text-align:center; transition:color .15s; letter-spacing:0.5px; }
.sig-skip:hover { color:rgba(255,255,255,0.45); }
.sig-toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: #080f1c; border: 1px solid rgba(0,201,127,0.35);
  border-radius: 14px; padding: 11px 20px;
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; color: var(--white);
  white-space: nowrap; z-index: 300;
  opacity: 0; transition: opacity 0.3s, transform 0.3s; pointer-events: none;
}
.sig-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.sig-toast-icon { font-size: 17px; }

/* ===== GAME FRAME ===== */
.game-frame-overlay { display:none; position:fixed; inset:0; top:var(--header-h); z-index:150; flex-direction:column; background:#000; }
.game-frame-overlay.open { display:flex; }
.game-frame-bar { display:flex; align-items:center; gap:14px; padding:10px 16px; background:#080f1c; border-bottom:1px solid rgba(255,1,11,0.15); flex-shrink:0; }
.game-frame-back { display:flex; align-items:center; gap:6px; font-size:13px; font-weight:700; color:rgba(255,255,255,0.6); transition:color .15s; }
.game-frame-back:hover { color:#FF010B; }
.game-frame-name { font-size:13px; font-weight:700; color:rgba(255,255,255,0.3); }
.game-iframe { flex:1; width:100%; border:none; }

/* ===== SCROLLBAR ===== */
* { scrollbar-width: thin; scrollbar-color: rgba(255,1,11,0.35) var(--dark); }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: rgba(255,1,11,0.35); border-radius: 4px; }

/* ===== KEYFRAMES ===== */
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}
@keyframes tickerScroll  { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes tickerScrollV { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
@keyframes glowPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.32; }
}
@keyframes fadeScale {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes signalPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255,170,0,0.45), 0 0 18px rgba(255,170,0,0.25); }
  50%       { box-shadow: 0 0 0 3px rgba(255,170,0,0.85), 0 0 36px rgba(255,170,0,0.6); }
}
@keyframes bounceBadge {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-3px) scale(1.15); }
}
@keyframes sigRadar {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,1,11,0.35); }
  50%       { box-shadow: 0 0 0 7px rgba(255,1,11,0); }
}

/* ===== FLASH RTP ===== */
.card-rtp.rtp-flash { opacity: 0; transform: scale(0.8); transition: opacity 0.18s, transform 0.18s; }
.card-rtp { transition: opacity 0.18s, transform 0.18s; }

/* ===== RESPONSIVO — MONITORES GRANDES ===== */
@media (min-width: 1400px) {
  .sidebar { width: 260px; }
  .games-grid { grid-template-columns: repeat(5, 1fr); }
  .header-brand h1 { font-size: 20px; }
  .hot-count, .live-badge { font-size: 11px; padding: 4px 13px; }
  .filter-btn, .cat-btn { font-size: 13px; padding: 10px 14px; }
  .sidebar-label { font-size: 11px; }
  .card-name { font-size: 11px; }
  .card-rtp { font-size: 10px; padding: 3px 7px; }
  .card-top { height: 28px; }
  .card-provider { font-size: 7px; }
}

@media (min-width: 1700px) {
  .sidebar { width: 280px; }
  .games-grid { grid-template-columns: repeat(6, 1fr); }
  .header-brand h1 { font-size: 22px; }
  .card-name { font-size: 12px; }
  .layout { gap: 28px; }
}

/* ===== RESPONSIVO — MOBILE ===== */
@media (max-width: 860px) {
  .layout { flex-direction: column; padding: 12px 12px 48px; gap: 14px; }

  .sidebar {
    width: 100%; position: static; max-height: none;
    flex-direction: column; overflow: visible;
  }

  /* Filtros horizontais no mobile */
  .filter-row { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .filter-btn { width: auto; border-radius: 50px; padding: 7px 14px; font-size: 11px; }

  .category-row { flex-direction: row; gap: 6px; align-items: center; }
  .cat-btn { width: auto; flex: 1; height: 40px; border-radius: 12px; text-align: center; font-size: 10px; }

  .refresh-pill { display: flex; padding: 0 10px; flex-shrink: 0; height: 40px; }

  /* Ticker horizontal no mobile */
  .ticker-track {
    flex-direction: row; max-height: none;
    animation: tickerScroll 40s linear infinite;
    white-space: nowrap;
  }
  .ticker-item { flex-direction: row; border-bottom: none; }
  .ticker-game { display: inline; }

  /* 3 colunas no mobile */
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }

  /* Cards compactos */
  .card-top  { height: 18px; }
  .card-info { padding: 5px 6px; }
  .card-name { font-size: 9px; }
  .card-rtp  { font-size: 8px; padding: 2px 5px; }

  /* Hero menor */
  .hero-photo { min-height: 150px; }
  .hero-inner { padding: 14px; }
  .hero-rec-badge { font-size: 9px; }

  /* Ticker oculto no mobile */
  .ticker-section { display: none; }

  /* Modais bottom-sheet no mobile */
  .gd-overlay { align-items: flex-end; }
  .gd-modal   { margin: 0; border-radius: 20px 20px 0 0; max-width: 100%; animation: slideUp 0.3s cubic-bezier(0.34,1.2,0.64,1); }
  .sig-overlay { align-items: flex-end; }
  .sig-modal   { margin: 0; border-radius: 20px 20px 0 0; max-width: 100%; animation: slideUp 0.3s cubic-bezier(0.34,1.2,0.64,1); }

  .header-inner { max-width: 100%; padding: 0 14px; }
  .header-brand h1 { font-size: 14px; }
}

/* ===== HEADER AVATAR ===== */
.header-brand { display: flex; align-items: center; gap: 12px; }
.header-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #FF010B, #FFAA00);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-hud); font-weight: 900; font-size: 22px; color: #fff;
  flex-shrink: 0; border: 2px solid rgba(255,170,0,0.45);
  box-shadow: 0 0 16px rgba(255,1,11,0.3); overflow: hidden;
}
.header-avatar-img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; border-radius: 50%; }
.header-brand-text { display: flex; flex-direction: column; gap: 2px; }

/* ===== CANAL DO TIAGO (YouTube style) ===== */
.header-live-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px;
  background: #FF0000; border: none;
  color: #fff; text-decoration: none; font-size: 13px; font-weight: 700;
  transition: background .2s, transform .2s, box-shadow .2s;
  white-space: nowrap; box-shadow: 0 4px 14px rgba(255,0,0,0.35);
}
.header-live-btn:hover {
  background: #cc0000; transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255,0,0,0.45);
}
.yt-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ===== WELCOME MODAL ===== */
.welcome-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.88);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); z-index: 300;
  display: none; align-items: center; justify-content: center;
}
.welcome-overlay.open { display: flex; }
.welcome-modal {
  background: #080f1c; border: 1px solid rgba(255,170,0,0.22);
  border-top: 3px solid var(--gold); border-radius: 20px;
  padding: 40px 32px; max-width: 400px; width: 90%;
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  animation: slideUp .35s cubic-bezier(0.34,1.2,0.64,1);
}
.welcome-avatar {
  width: 80px; height: 80px; border-radius: 50%; overflow: hidden;
  border: 3px solid rgba(255,170,0,0.5); box-shadow: 0 0 24px rgba(255,1,11,0.35);
  flex-shrink: 0;
}
.welcome-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.welcome-title {
  font-family: var(--font-hud); font-size: 18px; font-weight: 900; color: #fff;
}
.welcome-sub { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.6; }
.welcome-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, #FF010B, #c8000a);
  border: none; border-radius: 12px;
  color: #fff; font-family: var(--font-hud); font-size: 14px; font-weight: 900;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  letter-spacing: .5px;
}
.welcome-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,1,11,0.45); }
.welcome-skip {
  background: none; border: none;
  color: rgba(255,255,255,0.38); font-size: 12px; cursor: pointer; padding: 4px 8px;
  transition: color .2s;
}
.welcome-skip:hover { color: rgba(255,255,255,0.7); }

/* Header compacto em telas pequenas */
@media (max-width: 480px) {
  .yt-text        { display: none; }
  .header-live-btn { padding: 8px 10px; }
  .header-avatar   { width: 40px; height: 40px; }
  .header-brand h1 { font-size: 12px; }
}

/* Telas muito pequenas: volta para 2 colunas */
@media (max-width: 340px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 5px; }
}

@media (max-width: 420px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 5px; }
}
