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

:root {
  --arcadia-dark: #4A4A4A;
  --arcadia-blue: #0057B8;
  --arcadia-purple: #8B5CF6;
  --vtl-cyan: #00C8E8;
  --black: #0A0A0A;
  --grey: #4A4A4A;
  --light-grey: #F2F2F2;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  background-attachment: fixed;
  color: white;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── HEADER ─────────────────────────────────────────── */
.header {
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.5rem 2rem;
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border-bottom: 2px solid rgba(0,200,232,0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  text-decoration: none;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--arcadia-blue), var(--arcadia-purple));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(139,92,246,0.4);
  flex-shrink: 0;
}

.logo-text h1 {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, white, var(--vtl-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.header-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: white;
  text-decoration: none;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn:hover {
  background: white;
  color: var(--arcadia-blue);
  border-color: white;
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  padding: 4rem 2rem;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, white, var(--vtl-cyan), var(--arcadia-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* ── CATEGORY TABS ───────────────────────────────────── */
.category-tabs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.category-tab {
  padding: 0.875rem 1.75rem;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  color: white;
  font-size: 0.95rem;
}

.category-tab:hover,
.category-tab.active {
  background: linear-gradient(135deg, var(--arcadia-blue), var(--arcadia-purple));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139,92,246,0.4);
}

/* ── SEARCH BAR ──────────────────────────────────────── */
.search-bar {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 0.875rem 3rem 0.875rem 1.25rem;
  border-radius: 25px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.search-input::placeholder { color: rgba(255,255,255,0.45); }

.search-input:focus {
  border-color: var(--vtl-cyan);
  background: rgba(255,255,255,0.12);
}

.search-clear {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  line-height: 1;
  padding: 0.2rem;
}

.search-clear:hover { color: white; }

.search-count {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 0.6rem;
  min-height: 1.2em;
}

/* ── CONTENT WRAPPER ─────────────────────────────────── */
.content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* ── FEATURED ────────────────────────────────────────── */
.featured-section {
  background: rgba(0,200,232,0.1);
  border: 2px solid rgba(0,200,232,0.3);
  border-radius: 20px;
  padding: 3rem 2rem;
  margin-bottom: 3rem;
  text-align: center;
}

.featured-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--vtl-cyan);
}

.featured-desc {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ── GAMES GRID ──────────────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* ── GAME CARD ───────────────────────────────────────── */
.game-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,200,232,0.3);
  border-color: var(--vtl-cyan);
}

.game-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(0,87,184,0.3), rgba(139,92,246,0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.game-image::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

.game-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 1;
}

.game-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.game-category {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 1rem;
}

.game-description {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.game-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--vtl-cyan);
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.7;
}

.game-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--arcadia-blue), var(--arcadia-purple));
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  text-align: center;
}

.game-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139,92,246,0.5);
}

/* ── POWERED BY ──────────────────────────────────────── */
.powered-by {
  text-align: center;
  padding: 3rem 2rem;
  opacity: 0.7;
  font-size: 1rem;
}

.powered-by a {
  color: var(--vtl-cyan);
  text-decoration: none;
  font-weight: 600;
}

.powered-by a:hover { text-decoration: underline; }

.powered-by-sub {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* ── PLAY PAGE ───────────────────────────────────────── */
.play-page {
  max-width: 700px;
  margin: 4rem auto;
  padding: 0 2rem;
  text-align: center;
}

.play-emoji {
  font-size: 6rem;
  margin-bottom: 1.5rem;
  display: block;
}

.play-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, white, var(--vtl-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.play-category {
  font-size: 1rem;
  opacity: 0.7;
  margin-bottom: 2rem;
}

.play-soon {
  background: rgba(0,200,232,0.1);
  border: 2px solid rgba(0,200,232,0.3);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.play-soon h2 {
  font-size: 1.5rem;
  color: var(--vtl-cyan);
  margin-bottom: 0.75rem;
}

.play-soon p {
  opacity: 0.85;
  font-size: 1rem;
}

.play-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── NO RESULTS ──────────────────────────────────────── */
.no-results {
  text-align: center;
  padding: 3rem;
  opacity: 0.6;
  grid-column: 1 / -1;
  font-size: 1.1rem;
}

/* ── OFFLINE PAGE ────────────────────────────────────── */
.offline-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .games-grid { grid-template-columns: 1fr; }
  .header { padding: 1rem; }
  .logo-text h1 { font-size: 1.4rem; }
  .btn { padding: 0.6rem 1rem; font-size: 0.85rem; }
}
