/* KF SINAIS — tema preto e dourado */
:root {
  --red: #f5c542;
  --red-dark: #a67c00;
  --red-soft: #ffd76a;
  --bg: #000000;
  --card: #161618;
  --card-2: #1e1e21;
  --text: #fffaf0;
  --muted: #b3a89c;
  --border: rgba(245, 197, 66, 0.35);
  --green: #22c55e;
  --yellow: #facc15;
  --bar-red: #ef4444;
}

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

html { scroll-behavior: smooth; }

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

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

/* ---------- Fundo desfocado ---------- */
.bg-photo {
  position: fixed; inset: 0; z-index: 0;
  background: url('assets/bg.jpg') center top / cover no-repeat;
}
.bg-veil {
  position: fixed; inset: 0; z-index: 0;
  background: rgba(0, 0, 0, 0.45);
}

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

/* ---------- Cabeçalho ---------- */
.site-header {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 6px 16px; gap: 8px;
  background:
    linear-gradient(180deg, transparent calc(100% - 6px), #f5c542 calc(100% - 6px) calc(100% - 3px), #c81e1e calc(100% - 3px)),
    radial-gradient(rgba(245, 197, 66, 0.16) 1.5px, transparent 1.6px) 0 0 / 16px 16px,
    linear-gradient(120deg, transparent 0 55%, rgba(245, 197, 66, 0.14) 55% 62%, transparent 62%),
    linear-gradient(120deg, transparent 0 68%, rgba(245, 197, 66, 0.10) 68% 76%, transparent 76%),
    linear-gradient(180deg, #1c1c1c, #0a0a0a);
  border-radius: 0 0 10px 10px;
}
.menu-btn {
  background: none; border: none; color: #fff;
  font-size: 26px; line-height: 1; padding: 4px 6px;
}
.brand {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--text); padding: 0;
}
.header-right { display: flex; align-items: center; gap: 10px; }
.header-tg {
  display: flex; align-items: center; line-height: 1;
}
.header-tg-icon { height: 24px; width: auto; display: block; }
.menu-drop {
  background: #161618; border: 1px solid var(--border); border-radius: 14px;
  padding: 4px 6px; margin: 0 0 12px;
}
.menu-drop a {
  display: block; padding: 12px 10px; color: var(--text); text-decoration: none;
  font-weight: 600; font-size: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.menu-drop a:last-child { border-bottom: none; }

/* ---------- Atalhos (estilo FP) ---------- */
.quick-actions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: 2px 0 14px;
}
.qa-btn {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  background: #0d0d0f; border: 2px solid var(--red); border-radius: 999px;
  padding: 10px 2px; color: var(--text); text-decoration: none; font-size: 13.5px;
}
.qa-btn b { color: var(--red-soft); }
.qa-ic { font-size: 15px; }
.brand-logo {
  height: 40px; width: auto; display: block;
  filter: drop-shadow(0 0 10px rgba(245, 197, 66, 0.35));
}
.brand-text strong { font-size: 22px; font-style: italic; letter-spacing: 0.5px; display: block; line-height: 1; }
.brand-text strong em { color: var(--red); font-style: normal; }
.brand-text small { color: var(--muted); font-size: 10px; letter-spacing: 3px; }
.badge-18 {
  border: 2px solid var(--red); color: var(--red-soft);
  border-radius: 50%; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
}

/* ---------- Carrossel ---------- */
.carousel {
  position: relative; overflow: hidden; border-radius: 18px;
  border: 2px solid rgba(245, 197, 66, 0.65);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}
.carousel-track {
  display: flex;
  transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.slide { min-width: 100%; }
.slide img { display: block; width: 100%; height: auto; }
.carousel-dots {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 6px;
}
.carousel-dots button {
  width: 22px; height: 6px; border-radius: 3px; border: none;
  background: rgba(255, 255, 255, 0.35); padding: 0;
  transition: background 0.3s, width 0.3s;
}
.carousel-dots button.active { background: var(--red); width: 30px; }

/* ---------- Estatísticas ---------- */
.stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
  margin: 14px 0 4px;
}
.stat {
  background: rgba(22, 22, 24, 0.88); border: 1px solid var(--border);
  border-radius: 14px; padding: 10px 4px; text-align: center;
}
.stat strong { display: block; color: var(--red-soft); font-size: 20px; }
.stat span { font-size: 9px; letter-spacing: 1.2px; color: var(--muted); }

/* ---------- Plataformas ---------- */
.platforms {
  position: relative; margin-top: 28px; text-align: center;
  border: 2px solid var(--red); border-radius: 20px;
  padding: 28px 12px 16px;
  background: linear-gradient(180deg, #0d0d0f, #141416);
  box-shadow: 0 0 14px rgba(245, 197, 66, 0.45), 0 0 34px rgba(245, 197, 66, 0.16);
  animation: neonGold 1.8s ease-in-out infinite alternate;
}
@keyframes neonGold {
  from { box-shadow: 0 0 10px rgba(245, 197, 66, 0.35), 0 0 26px rgba(245, 197, 66, 0.12); }
  to   { box-shadow: 0 0 24px rgba(245, 197, 66, 0.85), 0 0 60px rgba(245, 197, 66, 0.38); }
}
.platforms-strip {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: #000; border: 2px solid var(--red); border-radius: 999px;
  padding: 4px 18px; font-size: 12px; font-weight: 800; letter-spacing: 2px;
  color: var(--red); white-space: nowrap;
}
.platforms h2 { font-size: 22px; }
.platforms h2 em { color: var(--red); font-style: normal; }
.platforms-sub {
  color: var(--muted); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; margin: 6px 0 14px;
}
.platform-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.platform-empty {
  grid-column: 1 / -1; text-align: center; color: var(--muted);
  border: 1px dashed var(--border); border-radius: 14px; padding: 18px 10px;
  font-size: 14px; background: rgba(22, 22, 24, 0.7);
}
.platform-card {
  position: relative; display: block; text-decoration: none; color: var(--text);
  background: rgba(22, 22, 24, 0.9); border: 1px solid var(--border);
  border-radius: 14px; padding: 10px 6px 8px; text-align: center;
}
.platform-card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px;
  background: #000;
}
.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: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #1d1d20, #0f0f10);
  font-size: 26px; font-weight: 900; color: var(--red-soft);
}

/* 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); }
}

/* ---------- Gerador do visitante ---------- */
.generator {
  margin-top: 16px; border: 1px solid var(--border); border-radius: 18px;
  background: linear-gradient(180deg, rgba(46, 34, 8, 0.92), rgba(12, 12, 13, 0.94));
  padding: 14px 14px 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}
.generator-kicker { text-align: center; color: #ffd23e; font-size: 11px; letter-spacing: 3px; font-weight: 700; }
.generator h2 { text-align: center; font-size: 20px; margin-top: 4px; }
.generator h2 span { color: var(--red-soft); }
.generator-sub { text-align: center; color: var(--muted); font-size: 12.5px; margin: 5px 0 10px; }
.gen-label { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.6px; margin: 9px 0 5px; }
.gen-input, .gen-pick {
  width: 100%; background: rgba(0, 0, 0, 0.55); color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px;
  padding: 11px 12px; font-size: 14px;
}
.gen-input::placeholder { color: #8d767b; }
.gen-pick {
  display: flex; align-items: center; justify-content: space-between;
  text-align: left; color: #cbb6ba;
}
.gen-pick.has-game { color: var(--text); font-weight: 700; }
.gen-pick-arrow { color: var(--red-soft); }
.gen-btn {
  width: 100%; margin-top: 12px; border: none; border-radius: 999px;
  background: linear-gradient(180deg, #f5c542, var(--red-dark));
  color: #fff; font-weight: 900; font-size: 16px; letter-spacing: 0.5px;
  padding: 13px 10px;
  box-shadow: 0 6px 18px rgba(245, 197, 66, 0.45);
}
.gen-btn:active { transform: scale(0.98); }
.gen-note { text-align: center; color: var(--muted); font-size: 11.5px; margin-top: 8px; }
.gen-result { margin-top: 6px; }

/* ---------- Abas e busca ---------- */
.tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin-top: 20px;
  background: rgba(20, 8, 11, 0.9); border: 1px solid var(--border);
  border-radius: 14px; padding: 5px;
}
.tabs button {
  border: none; background: transparent; color: var(--muted);
  font-size: 14px; font-weight: 700; padding: 9px 2px; border-radius: 10px;
}
.tabs button.active {
  background: linear-gradient(180deg, #a67c00, #7a5c00); color: #fff;
  box-shadow: inset 0 -2px 0 var(--red-soft);
}
.search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px; padding: 10px 16px; margin-top: 12px;
}
.search-icon { font-size: 15px; filter: grayscale(1); }
.search input {
  border: none; outline: none; flex: 1; font-size: 15px; color: #111;
  background: transparent;
}

/* ---------- 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: #f5c542; }
.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, #f5c542, var(--red-dark)); box-shadow: 0 5px 14px rgba(245, 197, 66, 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(--red-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(--red-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(10, 10, 11, 0.97); border-top: 2px solid var(--red-dark);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}
.update-label { text-align: center; font-size: 12.5px; }
.update-label strong { color: var(--red-soft); }
.cycle-segments { display: flex; gap: 3px; justify-content: center; margin: 7px 0 9px; }
.cycle-segments i {
  width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.14);
}
.cycle-segments i.on { background: var(--red); box-shadow: 0 0 6px rgba(245, 197, 66, 0.8); }
.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(--red); background: rgba(245, 197, 66, 0.16); }
.providers .provider-play {
  background: linear-gradient(180deg, #f5c542, var(--red-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);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.popup-box {
  position: relative; max-width: 420px; width: 100%;
  background: #141416; border-radius: 16px; overflow: hidden;
  border: 2px solid var(--red); box-shadow: 0 0 34px rgba(245, 197, 66, 0.5);
}
.popup-box img {
  width: 100%; display: block;
}
.popup-foot { padding: 14px 16px 16px; }
.popup-snooze {
  display: flex; align-items: center; gap: 8px;
  color: #d8d8d8; font-size: 14px; margin-bottom: 12px; cursor: pointer;
}
.popup-snooze input { width: 18px; height: 18px; accent-color: var(--red); margin: 0; }
.popup-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.popup-btn-go {
  background: linear-gradient(180deg, #f5c542, #a67c00); color: #1a1200;
  font-weight: 800; font-size: 16px; border: none; border-radius: 10px; padding: 12px;
}
.popup-btn-close {
  background: #1e1e21; color: #fff; font-weight: 700; font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 10px; padding: 12px;
}
.popup-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.75); color: #fff; font-size: 22px; 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: #150a0d; 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;
}
.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.pick-item {
  background: var(--card); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px; padding: 5px; color: var(--text);
}
.pick-item img { width: 100%; aspect-ratio: 1 / 0.85; object-fit: cover; border-radius: 8px; display: block; }
.pick-item span { display: block; font-size: 11px; font-weight: 700; margin-top: 4px; line-height: 1.2; }
.pick-item.selected { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }

.gate { align-items: center; padding: 18px; }
.gate-box {
  position: relative; background: #150a0d; 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: #ff8296 !important; font-size: 12.5px !important; }

/* ---------- Painel admin ---------- */
.admin-section { margin-bottom: 22px; }
.admin-section h4 { font-size: 15px; margin-bottom: 10px; color: var(--red-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: #000; }
.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(--red); color: #ff8296; }
.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); }
.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; }

/* ---------- Carregamento do gerador ---------- */
.gen-loading {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(5, 2, 3, 0.96);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 22px; text-align: center;
}
.radar-wrap { position: relative; width: 168px; height: 168px; }
.radar-wrap img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 20px;
  border: 2px solid var(--red);
}
.radar-ring {
  position: absolute; inset: 0; border-radius: 20px;
  border: 2px solid rgba(255, 36, 69, 0.75);
  animation: radarPulse 1.8s ease-out infinite;
}
.radar-ring.r2 { animation-delay: 0.6s; }
.radar-ring.r3 { animation-delay: 1.2s; }
@keyframes radarPulse {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(1.45); opacity: 0; }
}
.scanline {
  position: absolute; left: 4%; right: 4%; height: 3px; border-radius: 2px;
  background: #f5c542; box-shadow: 0 0 14px #f5c542;
  animation: scanMove 1.15s ease-in-out infinite alternate;
}
@keyframes scanMove { from { top: 5%; } to { top: 93%; } }
.gen-loading-title { margin-top: 26px; font-size: 19px; font-weight: 900; }
.gen-loading-pct { font-size: 30px; font-weight: 900; color: var(--red-soft); margin-top: 2px; }
.gen-progress {
  width: min(320px, 84vw); height: 10px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.13); overflow: hidden; margin-top: 10px;
}
.gen-progress div {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--red-dark), #f5c542);
  transition: width 0.12s linear;
}
.gen-steps { list-style: none; margin-top: 16px; color: var(--muted); font-size: 13.5px; line-height: 1.9; }
.gen-steps li { opacity: 0.25; transition: opacity 0.4s; }
.gen-steps li.on { opacity: 1; color: var(--text); }
.gen-steps li.done { opacity: 0.85; color: #7ee2a0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 178px; transform: translateX(-50%);
  z-index: 95; background: rgba(12, 5, 7, 0.97); color: var(--text);
  border: 1px solid var(--red); 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; }
  .carousel-track { transition: none; }
}
