/* VIP DA JOSY — tema rosa (igual ao da Ruiva) */
:root {
  --accent: #ff2e88;
  --accent-dark: #c40e6e;
  --accent-soft: #ffd23e;
  --bg: #e6007e;
  --card: #a8005e;
  --card-2: #8f0052;
  --text: #ffffff;
  --muted: #ffc2dd;
  --border: rgba(255, 210, 62, 0.35);
  --green: #22c55e;
  --yellow: #facc15;
  --bar-red: #ef4444;
}

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

html { scroll-behavior: smooth; }

/* Imagem de fundo do site inteiro */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0;
  background: url("assets/bg-site.jpg") center / cover no-repeat;
  opacity: 0.25; pointer-events: none;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.page {
  position: relative; z-index: 1;
  max-width: 560px; margin: 0 auto;
  padding: 10px 12px 190px;
}

.hidden { display: none !important; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Cabeçalho ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 2px 12px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  background: none; border: none; color: var(--text); text-align: left;
}
.brand-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ffd23e, #ff2e88);
  border: 2px solid #fff; color: #fff; font-size: 24px; font-weight: 900;
  box-shadow: 0 0 14px rgba(255, 46, 136, 0.55);
  object-fit: cover;
}
.brand-text strong { font-size: 19px; letter-spacing: 0.5px; display: block; line-height: 1; }
.brand-text strong em { color: var(--accent-soft); font-style: normal; }
.brand-text small { color: var(--muted); font-size: 10px; letter-spacing: 3px; }
.wa-btn {
  background: #25D366; color: #fff; font-weight: 800; font-size: 13px;
  padding: 9px 14px; border-radius: 999px; text-decoration: none; flex: none;
}


/* ---------- Barra da próxima atualização (no topo, sem cobrir nada) ---------- */
.next-update {
  display: flex; align-items: center; justify-content: flex-start; gap: 6px;
  width: fit-content; max-width: 100%;
  background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 10px; margin: 2px 0 12px;
  font-size: 11.5px; font-weight: 600;
}
.next-update-ic {
  width: 17px; height: 17px; border-radius: 50%; flex: none;
  background: var(--accent-soft); color: #111;
  display: flex; align-items: center; justify-content: center; font-size: 8px;
}
.next-update strong { color: var(--accent-soft); }
.update-ring { flex: none; }
.update-ring .ring-track { fill: none; stroke: rgba(255, 255, 255, 0.25); stroke-width: 4; }
.update-ring .ring-center { fill: var(--accent-soft); }
.update-ring .ring-fill {
  fill: none; stroke: var(--accent-soft); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 97.39; stroke-dashoffset: 97.39;
  transform: rotate(-90deg); transform-origin: 18px 18px;
}

/* ---------- Plataformas (faixa horizontal) ---------- */
/* ================= BANNER CARROSSEL ================= */
.banner-carousel { margin: 12px 0 2px; }
.banner-slide a { display: block; }
.banner-slide img {
  width: 100%; display: block; border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 18px rgba(255, 46, 136, 0.35);
}

.platforms { margin-top: 20px; }
.platforms h2 { font-size: 21px; }
.platforms-sub { color: var(--muted); font-size: 13px; margin: 4px 0 12px; }
.platform-strip {
  display: flex; gap: 10px; overflow-x: auto; padding: 16px 6px 4px 0;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.platform-strip::-webkit-scrollbar { display: none; }
.platform-empty {
  flex: 1; text-align: center; color: var(--muted);
  border: 1px dashed var(--border); border-radius: 14px; padding: 18px 10px;
  font-size: 14px; background: rgba(0, 0, 0, 0.35);
}
.platform-card {
  position: relative; flex: none; width: 104px; scroll-snap-align: start;
  display: block; text-decoration: none; color: var(--text);
  background: transparent; border: none;
  border-radius: 0; padding: 0; text-align: center;
}
.platform-card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0;
  background: transparent;
}
.platform-card .platform-name {
  display: block; margin-top: 6px; font-size: 12px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.platform-card .platform-noimg {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  font-size: 26px; font-weight: 900; color: #fff;
}

/* Selos animados das plataformas */
.badge-sticker {
  position: absolute; top: -8px; right: -4px; z-index: 2;
  font-weight: 900; font-size: 12px; letter-spacing: 0.5px;
  transform: rotate(8deg); pointer-events: none;
  display: inline-flex; align-items: center; gap: 2px;
}
.badge-hot {
  color: #ffd23e;
  text-shadow: 0 0 6px #ff7b00, 0 0 12px #ff4400, 0 2px 0 #b31b00;
  animation: flameFlicker 0.55s ease-in-out infinite alternate;
}
.badge-hot::before { content: "🔥"; font-size: 14px; animation: flameFlicker 0.4s ease-in-out infinite alternate-reverse; }
.badge-vip {
  color: #eaf6ff;
  text-shadow: 0 0 8px #7dd3fc, 0 0 3px #fff;
  animation: vipPulse 1.6s ease-in-out infinite;
}
.badge-vip::before {
  content: "💎"; font-size: 14px;
  animation: diamondShine 1.6s ease-in-out infinite;
}
.badge-novo {
  background: linear-gradient(180deg, #ffe259, #ffa751);
  color: #5b2d00; padding: 2px 7px; border-radius: 6px;
  box-shadow: 0 0 10px rgba(255, 190, 40, 0.8);
  animation: novoPulse 1.3s ease-in-out infinite;
}
@keyframes flameFlicker {
  from { transform: rotate(8deg) scale(1) translateY(0); }
  to   { transform: rotate(6deg) scale(1.09) translateY(-1.5px); }
}
@keyframes vipPulse {
  0%, 100% { transform: rotate(8deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.1); }
}
@keyframes diamondShine {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  50% { filter: brightness(1.7); transform: scale(1.18); }
}
@keyframes novoPulse {
  0%, 100% { transform: rotate(8deg) scale(1); box-shadow: 0 0 6px rgba(255, 190, 40, 0.5); }
  50% { transform: rotate(8deg) scale(1.1); box-shadow: 0 0 16px rgba(255, 190, 40, 0.95); }
}

/* ---------- Jogos de hoje ---------- */
.games-section { margin-top: 20px; }
.games-section h2 { font-size: 21px; margin-bottom: 2px; }

/* ---------- Cards dos jogos ---------- */
.game-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px;
}
.game-empty { text-align: center; color: var(--muted); margin-top: 24px; }
.game-card {
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
  display: flex; flex-direction: column;
}
.game-art { position: relative; }
.game-art img { display: block; width: 100%; aspect-ratio: 1 / 0.92; object-fit: cover; }
.game-dist {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 8px 5px; font-size: 12.5px; font-weight: 800; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
  text-shadow: 0 1px 3px #000;
}
.fav-btn {
  position: absolute; top: 7px; right: 7px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 16px; line-height: 1;
}
.fav-btn.faved { color: #ff2e88; }
.game-body { padding: 9px 10px 11px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.game-title { display: flex; align-items: center; gap: 7px; }
.game-title img { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; }
.game-title h3 { font-size: 13.5px; line-height: 1.15; }
.gstat { font-size: 12.5px; }
.gstat .gstat-label { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 3px; }
.gstat-track { height: 9px; border-radius: 5px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.gstat-fill { height: 100%; border-radius: 5px; transition: width 0.9s ease; }
.ranges-box {
  background: rgba(0, 0, 0, 0.35); border-radius: 10px; padding: 7px 8px;
  font-size: 11.5px; line-height: 1.5; text-align: center; color: #f3d9dc;
}
.btn-play, .btn-generate {
  margin-top: auto; border: none; border-radius: 999px; width: 100%;
  font-weight: 900; font-size: 15px; padding: 11px 8px; color: #fff;
}
.btn-generate {
  background: linear-gradient(180deg, #3d3d46, #17171d);
  border: 1px solid rgba(255, 255, 255, 0.35); letter-spacing: 0.6px;
}
.btn-play { background: linear-gradient(180deg, #ff2e88, var(--accent-dark)); box-shadow: 0 5px 14px rgba(255, 46, 136, 0.4); }
.btn-regen {
  margin-top: 8px; width: 100%; border-radius: 999px; padding: 7px 8px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff; font-weight: 700; font-size: 12.5px;
}
.valid-note { text-align: center; font-size: 11px; color: var(--muted); }
.signal-valid { text-align: center; font-size: 12px; font-weight: 800; color: #ffd23e; }
.card-loading { text-align: center; padding: 8px 0 2px; }
.spinner {
  width: 30px; height: 30px; margin: 0 auto 7px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2); border-top-color: var(--accent-soft);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.shimmer {
  height: 9px; border-radius: 5px; margin: 6px 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.28), rgba(255,255,255,0.08));
  background-size: 200% 100%; animation: shimmerMove 1.1s linear infinite;
}
@keyframes shimmerMove { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Rodapé legal ---------- */
.legal { margin-top: 26px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.55; }
.legal strong { color: var(--accent-soft); }
.legal-brand { margin-top: 8px; letter-spacing: 2px; font-size: 11px; }
.site-credit { margin-top: 6px; font-size: 10px; }
.site-credit a { color: var(--muted); text-decoration: underline; }

/* ---------- Barra fixa inferior ---------- */
.update-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(140, 0, 70, 0.97); border-top: 2px solid var(--accent-dark);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}

.update-label strong { color: var(--accent-soft); }



.providers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 560px; margin: 0 auto; }
.providers button {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px; color: var(--text); padding: 7px 2px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.providers button strong { font-size: 14px; font-style: italic; }
.providers button small { font-size: 9.5px; color: var(--muted); }
.providers button.active { border-color: var(--accent); background: rgba(255, 46, 136, 0.16); }
.providers .provider-play {
  background: linear-gradient(180deg, #ff2e88, var(--accent-dark)); border: none;
  font-size: 17px; justify-content: center;
}
.prov-prag { color: #ff8a3d; font-size: 10.5px !important; letter-spacing: 0.4px; }
.prov-tada { color: #ff8a3d; }
.prov-wg { color: #57c84d; }

/* ---------- Pop-up de entrada ---------- */
.popup-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, 0.82);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.popup-box { position: relative; max-width: 420px; width: 100%; }
.popup-box img {
  width: 100%; display: block; border-radius: 16px;
  border: 2px solid var(--accent); box-shadow: 0 0 34px rgba(255, 46, 136, 0.5);
}
.popup-close {
  position: absolute; top: -14px; right: -10px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff;
  background: var(--accent); color: #fff; font-size: 24px; font-weight: 900; line-height: 1;
}

/* ---------- Folhas modais (seletor / senha / painel) ---------- */
.sheet, .gate, .admin {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0, 0, 0, 0.78);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet-box, .admin-box {
  background: #7a0048; width: 100%; max-width: 560px; max-height: 86vh;
  border-radius: 20px 20px 0 0; border: 1px solid var(--border); border-bottom: none;
  padding: 16px; overflow-y: auto;
}
.sheet-head, .admin-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.sheet-close {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  background: transparent; color: #fff; font-size: 20px; line-height: 1;
}






.gate { align-items: center; padding: 18px; }
.gate-box {
  position: relative; background: #7a0048; border: 1px solid var(--border);
  border-radius: 18px; padding: 20px 16px 16px; width: 100%; max-width: 380px;
}
.gate-box h3 { margin-bottom: 4px; }
.gate-box p { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.gate-box input {
  width: 100%; margin-bottom: 9px; background: rgba(0, 0, 0, 0.55); color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px; padding: 11px 12px; font-size: 15px;
}
.gate-close {
  position: absolute; top: 8px; right: 10px; border: none; background: none;
  color: var(--muted); font-size: 24px;
}
.gate-error { color: #ffb3d1 !important; font-size: 12.5px !important; }

/* ---------- Painel admin ---------- */
.admin-section { margin-bottom: 22px; }
.admin-section h4 { font-size: 15px; margin-bottom: 10px; color: var(--accent-soft); }
.admin-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.admin-item {
  display: flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px; padding: 7px 9px;
}
.admin-item img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; background: transparent; }
.admin-item .ai-info { flex: 1; min-width: 0; }
.admin-item .ai-info strong { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-item .ai-info small { color: var(--muted); font-size: 11px; }
.admin-item button {
  border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: var(--text);
  border-radius: 8px; padding: 6px 9px; font-size: 12px;
}
.admin-item button.danger { border-color: var(--accent); color: #ffb3d1; }
.admin-form label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 10px; }
.admin-form input[type="text"], .admin-form input[type="url"], .admin-form select {
  width: 100%; margin-top: 4px; background: rgba(0, 0, 0, 0.55); color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px; padding: 10px 11px; font-size: 14px;
  font-weight: 400;
}
.admin-form input[type="file"] { margin-top: 5px; font-size: 13px; font-weight: 400; }
.admin-preview { max-width: 130px; border-radius: 10px; margin: 2px 0 10px; border: 1px solid var(--border); background: var(--bg); }
.admin-games { border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 10px; margin-bottom: 12px; }
.admin-games legend { font-size: 12.5px; font-weight: 700; padding: 0 5px; }
.admin-games-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 230px; overflow-y: auto; }
.admin-games-grid label {
  display: flex; align-items: center; gap: 7px; margin: 0;
  background: rgba(255, 255, 255, 0.04); border-radius: 9px; padding: 5px 7px;
  font-size: 12px; font-weight: 600;
}
.admin-games-grid img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; }
.admin-games-grid .taken { color: #ffd23e; font-size: 10px; display: block; }
.admin-actions { display: flex; flex-direction: column; gap: 8px; }
.admin-actions .gen-btn { margin-top: 0; }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; color: var(--text);
  border-radius: 999px; padding: 11px; font-weight: 700;
}
.admin-check { display: flex !important; align-items: center; gap: 8px; }
.admin-empty { color: var(--muted); font-size: 13px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 178px; transform: translateX(-50%);
  z-index: 95; background: rgba(60, 0, 35, 0.97); color: var(--text);
  border: 1px solid var(--accent); border-radius: 12px;
  padding: 11px 16px; font-size: 13.5px; max-width: 88vw; text-align: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .badge-sticker, .radar-ring, .scanline { animation: none !important; }
}
