@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Quicksand:wght@500;700&display=swap');

:root {
  --cf-bg: #0b0a14;
  --cf-panel: #100f22;
  --cf-accent: #6366f1;
}

body.cf-site {
  font-family: 'Quicksand', sans-serif;
  background-color: var(--cf-bg);
  -webkit-tap-highlight-color: transparent;
}

.game-title {
  font-family: 'Fredoka One', cursive;
}

.vip-theme {
  background: linear-gradient(135deg, #1f1406 0%, #4a360a 50%, #1f1406 100%) !important;
  border-color: #ffd700 !important;
}

.neon-border {
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4), inset 0 0 10px rgba(99, 102, 241, 0.2);
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0d0c1d; }
::-webkit-scrollbar-thumb { background: #4f46e5; border-radius: 3px; }

.cf-game-body {
  margin: 0;
  min-height: 100vh;
  background: #08070f;
}

/* Lounge shell — header + tab nav (all lounge pages) */
body.cf-lounge:not(.cf-toon) {
  font-family: 'Quicksand', sans-serif;
  background-color: var(--cf-bg);
  color: #e2e8f0;
  margin: 0;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

.cf-top-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cf-logo {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: #818cf8;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cf-logo span { color: #fbbf24; }
.cf-lounge-logo-img {
  display: block;
  height: 56px;
  width: auto;
  max-width: min(240px, 55vw);
  object-fit: contain;
}
.cf-hero-logo {
  display: block;
  margin: 0 auto 16px;
  max-height: 140px;
  width: auto;
  max-width: min(360px, 85vw);
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}
.cf-carnival-feature {
  display: block;
  margin: 0 auto 20px;
  max-width: min(480px, 95vw);
  cursor: pointer;
  transition: transform 0.2s;
}
.cf-carnival-feature:hover { transform: scale(1.02); }
.cf-carnival-feature img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.5));
}
.cf-game-logo-thumb {
  max-height: 86px;
  max-width: 92%;
  width: auto;
  object-fit: contain;
}

.cf-nav {
  background: linear-gradient(90deg, #1e1b4b, #312e81);
  border-bottom: 1px solid #3730a3;
}
.cf-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  overflow-x: auto;
}
.cf-nav a {
  display: block;
  padding: 14px 18px;
  color: #c7d2fe;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.cf-nav a:hover,
.cf-nav a.active {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
}
.cf-nav a.cf-vip-link { color: #fbbf24; }

.cf-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}

.cf-page-single {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.cf-footer {
  background: linear-gradient(90deg, #1e1b4b, #312e81);
  border-top: 1px solid #3730a3;
  text-align: center;
  padding: 24px 20px;
  margin-top: 32px;
}
.cf-footer a {
  color: #a5b4fc;
  text-decoration: none;
  margin: 0 10px;
  font-size: 0.85rem;
}
.cf-footer a:hover { color: #fff; }
.cf-footer p { margin: 12px 0 0; font-size: 0.8rem; color: #94a3b8; }

@media (max-width: 900px) {
  .cf-page { grid-template-columns: 1fr; }
}
