/* ═══════════════════════════════════════════════════════════════════════
   FUTBOL.AZ – Complete Stylesheet
   Azerbaijan Football Games Platform
   ═══════════════════════════════════════════════════════════════════════ */

/* ── CSS Variables (Dark Theme default) ─────────────────────────────────── */
:root {
  --blue:     #003DA5;
  --blue-lt:  #1a56d4;
  --red:      #CE1126;
  --red-lt:   #e62240;
  --white:    #ffffff;

  --bg:           #07091a;
  --bg2:          #0d1028;
  --bg-card:      rgba(255,255,255,0.05);
  --bg-card-h:    rgba(255,255,255,0.09);
  --bg-modal:     #111428;
  --text:         #e8eaf0;
  --text-muted:   rgba(232,234,240,0.55);
  --border:       rgba(255,255,255,0.10);
  --border-h:     rgba(255,255,255,0.22);
  --shadow:       0 8px 32px rgba(0,0,0,0.5);
  --shadow-sm:    0 2px 12px rgba(0,0,0,0.35);
  --shadow-lg:    0 20px 44px rgba(0,0,0,0.45);
  --radius:       14px;
  --radius-lg:    20px;
  --radius-sm:    10px;
  --navbar-h:     64px;
  --space-1:      4px;
  --space-2:      8px;
  --space-3:      12px;
  --space-4:      16px;
  --space-5:      24px;
  --space-6:      32px;
  --font-sm:      .84rem;
  --font-md:      1rem;
  --font-lg:      1.22rem;
  --bg-gradient:  radial-gradient(ellipse 60% 45% at 50% -10%, rgba(26,86,212,.28), transparent 72%), linear-gradient(180deg, #07091a 0%, #090d20 100%);

  /* Glassmorphism */
  --glass-bg:     rgba(255,255,255,0.06);
  --glass-blur:   blur(16px);
  --glass-border: rgba(255,255,255,0.12);
}

[data-theme="light"] {
  --bg:         #f0f4ff;
  --bg2:        #e6ecf9;
  --bg-card:    rgba(255,255,255,0.85);
  --bg-card-h:  rgba(255,255,255,1);
  --bg-modal:   #ffffff;
  --text:       #1a1f3a;
  --text-muted: rgba(26,31,58,0.55);
  --border:     rgba(0,0,20,0.10);
  --border-h:   rgba(0,0,20,0.22);
  --shadow:     0 8px 32px rgba(0,0,0,0.15);
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:  0 18px 40px rgba(0,0,0,0.14);
  --glass-bg:   rgba(255,255,255,0.7);
  --glass-border: rgba(0,0,80,0.12);
  --bg-gradient: radial-gradient(ellipse 55% 40% at 50% -10%, rgba(26,86,212,.18), transparent 70%), linear-gradient(180deg, #eef3ff 0%, #f9fbff 100%);
}

/* ── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-gradient);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.35s, color 0.35s;
  min-height: 100vh;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a { color: var(--blue-lt); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Container ─────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--bg2); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text) 0%, var(--blue-lt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── Homepage Match Center ─────────────────────────────────────────────── */
.match-center-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: -16px 0 28px;
}
.match-center-badge {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #ff4d6d;
  background: rgba(206, 17, 38, 0.13);
  border: 1px solid rgba(206, 17, 38, 0.32);
  border-radius: 999px;
  padding: 5px 10px;
}
.match-center-refresh {
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 600;
}
.match-center-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.match-center-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.match-center-block h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.match-center-grid {
  display: grid;
  gap: 10px;
}
.fixture-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--bg2);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .fixture-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-h);
    box-shadow: var(--shadow-sm);
  }
}
.fixture-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: .74rem;
}
.fixture-league {
  color: var(--text-muted);
  font-weight: 600;
}
.fixture-status {
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 8px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.fixture-status.live {
  color: #ff4d6d;
  background: rgba(206,17,38,.12);
  border-color: rgba(206,17,38,.3);
}
.fixture-status.ht {
  color: #f39c12;
  background: rgba(243,156,18,.1);
  border-color: rgba(243,156,18,.26);
}
.fixture-status.ft {
  color: #18b87a;
  background: rgba(24,184,122,.1);
  border-color: rgba(24,184,122,.3);
}
.fixture-status.sch {
  color: var(--text-muted);
  background: rgba(255,255,255,.06);
  border-color: var(--border);
}
.fixture-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}
.fixture-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.fixture-team.away {
  justify-content: flex-end;
}
.fixture-team.away .fixture-team-name {
  text-align: right;
}
.fixture-team-name {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fixture-crest,
.fixture-crest-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.fixture-crest {
  object-fit: contain;
  background: #fff;
}
.fixture-crest-fallback {
  display: grid;
  place-items: center;
  font-size: .67rem;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--bg-card);
}
.fixture-score {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: .01em;
  min-width: 64px;
  text-align: center;
}
.fixture-empty {
  padding: 18px 12px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 12px;
  font-size: .88rem;
}
.fixture-empty.error {
  border-color: rgba(206, 17, 38, 0.35);
  color: #ff6b81;
}
.fixture-skeleton {
  min-height: 90px;
  position: relative;
  overflow: hidden;
}
.fixture-skeleton::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  animation: homeCardShimmer 1.2s infinite;
}
@keyframes homeCardShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.news-cards-grid,
.prediction-cards-grid {
  display: grid;
  gap: 10px;
}
.news-card,
.prediction-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--bg2);
}
.news-card-title,
.prediction-card-title {
  font-size: .92rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.news-card-meta,
.prediction-card-meta {
  color: var(--text-muted);
  font-size: .8rem;
}
@media (max-width: 900px) {
  .match-center-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fixture-team-name { font-size: .82rem; }
  .fixture-score { min-width: 52px; font-size: 1rem; }
  .match-center-block { padding: 14px; }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--blue), var(--blue-lt));
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,61,165,0.45); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  background: var(--glass-bg);
  color: var(--text);
  border: 1px solid var(--border-h);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s;
  cursor: pointer;
  backdrop-filter: var(--glass-blur);
  white-space: nowrap;
}
.btn-secondary:hover { background: var(--bg-card-h); transform: translateY(-2px); }

/* ── Icon Button ──────────────────────────────────────────────────────── */
.icon-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1.1rem;
  transition: all 0.2s;
  backdrop-filter: var(--glass-blur);
  cursor: pointer;
}
.icon-btn:hover { background: var(--bg-card-h); border-color: var(--border-h); }

/* ── Badge ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(0,61,165,0.2);
  color: var(--blue-lt);
  border: 1px solid rgba(0,61,165,0.3);
}
.badge-new {
  background: rgba(206,17,38,0.15);
  color: #ff4d6d;
  border-color: rgba(206,17,38,0.3);
}

/* ══════════════════════ NAVBAR ══════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(7,9,26,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--navbar-h);
  transition: background 0.3s, box-shadow 0.3s;
}
[data-theme="light"] .navbar {
  background: rgba(240,244,255,0.85);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  font-size: 1.6rem;
  line-height: 1;
  animation: spin-slow 10s linear infinite;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo-accent { color: var(--red); }

.navbar-nav {
  display: none;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--glass-bg);
}

.navbar-actions {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Search */
.search-wrap { position: relative; }
.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: var(--bg-modal);
  border: 1px solid var(--border-h);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 100;
}
.search-input {
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}
.search-results {
  max-height: 280px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}
.search-result-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: var(--text);
}
.search-result-item:hover { background: var(--bg-card-h); }
.search-result-item .sri-emoji { font-size: 1.3rem; }
.search-result-item .sri-info { flex: 1; min-width: 0; }
.search-result-item .sri-title { font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-item .sri-cat { font-size: 0.75rem; color: var(--text-muted); }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: background 0.2s;
}
.hamburger:hover { background: var(--bg-card-h); }
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 12px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu[hidden] { display: none !important; }
.mobile-menu a {
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}
.mobile-menu a:hover { background: var(--bg-card-h); }
.mobile-search {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.mobile-search input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}
.mobile-search input:focus { border-color: var(--blue-lt); }

/* ══════════════════════ HERO ══════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--navbar-h) + 60px) 20px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0,61,165,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(206,17,38,0.25) 0%, transparent 60%),
    var(--bg);
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0,61,165,0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(206,17,38,0.10) 0%, transparent 40%);
  animation: heroAnim 8s ease-in-out infinite alternate;
}
@keyframes heroAnim {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 780px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px;
  background: rgba(206,17,38,0.15);
  border: 1px solid rgba(206,17,38,0.3);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ff4d6d;
  margin-bottom: 24px;
  animation: fadeInDown 0.7s ease both;
}
.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 20px;
  animation: fadeInUp 0.7s ease 0.1s both;
}
.hero-title-main { color: var(--text); }
.hero-title-accent {
  background: linear-gradient(135deg, var(--red), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  animation: fadeInUp 0.7s ease 0.2s both;
}
.hero-actions {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px;
  margin-bottom: 52px;
  animation: fadeInUp 0.7s ease 0.3s both;
}
.hero-stats {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 32px;
  animation: fadeInUp 0.7s ease 0.4s both;
}
.hero-stat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-lt), var(--red-lt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  animation: fadeIn 1s ease 1s both;
}
.scroll-arrow {
  font-size: 1.2rem;
  animation: bounce 1.5s ease infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ══════════════════════ GAMES TOOLBAR ══════════════════════ */
.games-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.category-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  flex: 1;
}
.cat-btn {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.cat-btn:hover {
  color: var(--text);
  border-color: var(--border-h);
  background: var(--bg-card-h);
}
.cat-btn.active {
  background: linear-gradient(135deg, var(--blue), var(--blue-lt));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0,61,165,0.35);
}
.cat-btn.fav-btn.active {
  background: linear-gradient(135deg, var(--red), var(--red-lt));
  box-shadow: 0 4px 14px rgba(206,17,38,0.35);
}
.games-controls select {
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.games-controls select:focus { border-color: var(--blue-lt); }
.games-info-bar { margin-bottom: 24px; color: var(--text-muted); font-size: 0.88rem; }

/* ══════════════════════ GAME CARDS GRID ══════════════════════ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.games-grid-sm {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

/* ── Game Card ── */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  display: flex;
  flex-direction: column;
}
.game-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--border-h);
  box-shadow: var(--shadow);
  background: var(--bg-card-h);
}
.game-card.hidden { display: none; }

.game-card-banner {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  flex-shrink: 0;
}
.game-card-banner .new-ribbon {
  position: absolute; top: 10px; right: 10px;
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}
.game-card-fav {
  position: absolute; top: 10px; left: 10px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  font-size: 1rem;
  transition: all 0.2s;
  z-index: 1;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
}
.game-card-fav:hover { background: rgba(206,17,38,0.5); color: #fff; transform: scale(1.2); }
.game-card-fav.active { color: #ff4d6d; background: rgba(206,17,38,0.25); }

.game-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.game-card-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  margin-bottom: 8px;
}
.game-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
.game-card-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.game-card-stats {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.game-card-stat { display: flex; align-items: center; gap: 4px; }
.game-card-stat .star-icon { color: #f59e0b; }
.play-btn {
  padding: 7px 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-lt));
  color: #fff;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.play-btn:hover { box-shadow: 0 4px 12px rgba(0,61,165,0.4); transform: translateY(-1px); }

/* No Results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.no-results-icon { font-size: 3rem; margin-bottom: 16px; }
.no-results p { font-size: 1.1rem; margin-bottom: 20px; }

/* ══════════════════════ TOP 10 LIST ══════════════════════ */
.top-games-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.top-game-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s;
}
.top-game-item:hover {
  background: var(--bg-card-h);
  border-color: var(--border-h);
  transform: translateX(6px);
}
.top-rank {
  font-size: 1.6rem;
  font-weight: 900;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}
.rank-1 { background: linear-gradient(135deg, #f59e0b, #fcd34d); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.rank-2 { background: linear-gradient(135deg, #94a3b8, #cbd5e1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.rank-3 { background: linear-gradient(135deg, #d97706, #fbbf24); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.rank-other { color: var(--text-muted); font-size: 1.1rem; }

.top-game-emoji {
  font-size: 2rem;
  flex-shrink: 0;
}
.top-game-info { flex: 1; min-width: 0; }
.top-game-title { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.top-game-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.top-game-plays {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-lt);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ══════════════════════ CATEGORIES SECTION ══════════════════════ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.category-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.category-card:hover { transform: translateY(-6px); border-color: var(--border-h); box-shadow: var(--shadow); }
.category-card:hover::before { opacity: 1; }
.category-card-icon { font-size: 3rem; margin-bottom: 12px; display: block; }
.category-card-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.category-card-count { font-size: 0.85rem; color: var(--text-muted); }
.category-card-aksiya::before { background: linear-gradient(135deg, rgba(0,61,165,0.08), transparent); }
.category-card-strateji::before { background: linear-gradient(135deg, rgba(52,152,219,0.08), transparent); }
.category-card-spor::before { background: linear-gradient(135deg, rgba(22,163,74,0.08), transparent); }
.category-card-viktorina::before { background: linear-gradient(135deg, rgba(206,17,38,0.08), transparent); }

/* ══════════════════════ ABOUT SECTION ══════════════════════ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}
.about-desc {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
  line-height: 1.8;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.about-feature {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.about-feature-icon { font-size: 1.8rem; flex-shrink: 0; }
.about-feature h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; }
.about-feature p { font-size: 0.8rem; color: var(--text-muted); }
.about-visual {
  width: 260px;
  flex-shrink: 0;
}
.about-emoji-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.about-emoji-grid span {
  font-size: 2.5rem;
  text-align: center;
  display: block;
  animation: float 3s ease-in-out infinite;
}
.about-emoji-grid span:nth-child(odd) { animation-delay: 0.5s; }
.about-emoji-grid span:nth-child(3n) { animation-delay: 1s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ══════════════════════ CONTACT / NEWSLETTER ══════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.newsletter-box p {
  color: var(--text-muted);
  margin-bottom: 20px;
}
.newsletter-input-wrap {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.newsletter-input-wrap input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-input-wrap input:focus { border-color: var(--blue-lt); }
.newsletter-note { font-size: 0.82rem; margin-top: 10px; min-height: 1.2em; }
.newsletter-note.success { color: #4ade80; }
.newsletter-note.error { color: #f87171; }
.subscribers-count { font-size: 0.85rem; color: var(--text-muted); margin-top: 12px; }
.contact-items {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 24px;
}
.contact-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.contact-item span:first-child { font-size: 1.2rem; }
.contact-item a { color: var(--text-muted); }
.contact-item a:hover { color: var(--blue-lt); }
.social-links { display: flex; gap: 10px; }
.social-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  transition: all 0.2s;
  text-decoration: none;
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-2px); }

/* ══════════════════════ FOOTER ══════════════════════ */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 12px;
  max-width: 260px;
}
.footer-links h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ══════════════════════ MODAL ══════════════════════ */
.modal-overlay[hidden] { display: none !important; }
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.is-closing {
  animation: fadeOut 0.25s ease forwards;
}
.modal-overlay.is-closing .modal-box {
  animation: slideDown 0.25s cubic-bezier(0.55, 0, 0.45, 1) forwards;
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes slideDown {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(24px) scale(0.97); }
}
.modal-box {
  width: 100%;
  max-width: 600px;
  background: var(--bg-modal);
  border: 1px solid var(--border-h);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-banner {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.modal-emoji { font-size: 5rem; line-height: 1; }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}
.modal-close:hover { background: rgba(206,17,38,0.8); border-color: rgba(206,17,38,0.6); transform: scale(1.1); }
.modal-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.modal-body { padding: 24px; }

.modal-meta {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-bottom: 16px;
}
.modal-meta > div { display: flex; flex-direction: column; gap: 6px; }
.modal-title { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }

.fav-toggle-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1.3rem;
  transition: all 0.2s;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--text-muted);
}
.fav-toggle-btn:hover { border-color: var(--red); color: var(--red); transform: scale(1.1); }
.fav-toggle-btn.active { background: rgba(206,17,38,0.15); border-color: var(--red); color: var(--red); }

.modal-desc {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}
.modal-stats-row {
  display: flex; gap: 20px; flex-wrap: wrap;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.modal-stat {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.modal-stat span:first-child { font-size: 1rem; }
.modal-stat span:nth-child(2) { font-weight: 700; color: var(--text); }
.modal-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 20px;
}
.modal-tag {
  padding: 3px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Rating Stars */
.rating-section, .share-section, .comments-section {
  margin-bottom: 24px;
}
.rating-section h3, .share-section h3, .comments-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.stars-interactive {
  display: flex; gap: 6px;
  margin-bottom: 8px;
}
.star-btn {
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s;
  background: none;
  border: none;
  padding: 0;
}
.star-btn:hover, .star-btn.active { transform: scale(1.2); }
.rating-hint { font-size: 0.82rem; color: var(--text-muted); }

/* Share */
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.share-btn:hover { transform: translateY(-2px); }
.share-fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-tw:hover { background: #1da1f2; color: #fff; border-color: #1da1f2; }
.share-wa:hover { background: #25d366; color: #fff; border-color: #25d366; }

/* Comments */
.comments-count { font-weight: 400; color: var(--text-muted); }
.comments-list {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 20px;
  max-height: 280px;
  overflow-y: auto;
}
.no-comments { color: var(--text-muted); font-size: 0.9rem; font-style: italic; }
.comment-item {
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.comment-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.comment-author { font-weight: 700; font-size: 0.9rem; }
.comment-date { font-size: 0.75rem; color: var(--text-muted); }
.comment-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.comment-actions { display: flex; gap: 8px; margin-top: 8px; }
.comment-vote-btn {
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}
.comment-vote-btn.active { border-color: var(--blue-lt); color: var(--blue-lt); }
.comment-form {
  display: flex; flex-direction: column; gap: 10px;
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--blue-lt); }

/* Play Section */
.modal-play-section {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.btn-play-big {
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--red), var(--red-lt));
  color: #fff;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(206,17,38,0.35);
}
.btn-play-big:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 32px rgba(206,17,38,0.5); }

/* ══════════════════════ TOAST ══════════════════════ */
.toast {
  position: fixed;
  bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: #1e2240;
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  z-index: 9999;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
[data-theme="light"] .toast { background: #1a1f3a; }

/* ══════════════════════ SCROLLBAR ══════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); }
[data-theme="light"] .games-controls select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* ══════════════════════ RESPONSIVE ══════════════════════ */
@media (max-width: 1024px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .hero-stats { gap: 20px; }
  .modal-box { max-width: 100%; margin: 0; border-radius: var(--radius) var(--radius) 0 0; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .share-buttons { flex-wrap: wrap; }
  .top-game-item { padding: 12px 14px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; justify-content: center; }
  .newsletter-input-wrap { flex-direction: column; }
  .newsletter-input-wrap input { width: 100%; }
  .games-grid { grid-template-columns: 1fr; }
  .modal-stats-row { gap: 12px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ══════════════════════ UTILITY ══════════════════════ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border-width: 0;
}

/* ══════════════════════ 3-DOT MENU ══════════════════════ */
.game-card-menu-btn {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -1px;
  z-index: 3;
  border: none;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s;
  line-height: 1;
}
.game-card-menu-btn:hover { background: rgba(0,61,165,0.7); transform: scale(1.15); }

.dot-menu {
  background: var(--bg-modal);
  border: 1px solid var(--border-h);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  min-width: 200px;
  overflow: hidden;
  animation: fadeIn 0.15s ease;
}
.dot-menu[hidden] { display: none !important; }
.dot-menu-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 11px 16px;
  background: none; border: none;
  color: var(--text); font-size: 0.9rem; font-family: inherit;
  cursor: pointer; text-align: left;
  transition: background 0.15s;
}
.dot-menu-item:hover { background: var(--bg-card-h); }
.dot-menu-item:not(:last-child) { border-bottom: 1px solid var(--border); }
.dot-menu-item.danger { color: #f87171; }
.dot-menu-item.danger:hover { background: rgba(248,113,113,0.1); }

/* ══════════════════════ GAME PLAYER OVERLAY ══════════════════════ */
.game-player-overlay[hidden] { display: none !important; }
.game-player-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: #0a0f1e;
  display: flex; flex-direction: column;
  animation: fadeIn 0.2s ease;
}
.game-player-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(0,0,0,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.gph-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gph-title {
  font-size: 1rem; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 200px;
}
.gph-score-display {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 6px 16px;
}
.gph-score-label { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.gph-score-val { font-size: 1.2rem; font-weight: 900; color: #fcd34d; min-width: 40px; text-align: center; }
.gph-right { display: flex; align-items: center; gap: 6px; }
.gph-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff; font-size: 1rem;
  cursor: pointer; transition: all 0.2s;
  flex-shrink: 0;
}
.gph-btn:hover { background: rgba(255,255,255,0.2); }
.gph-close:hover { background: rgba(206,17,38,0.6); border-color: rgba(206,17,38,0.4); }

.game-player-body {
  flex: 1; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#game-area {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
#game-area canvas {
  display: block;
  max-width: 100%; max-height: 100%;
  border-radius: 8px;
}

/* Game overlay screens (start / over / paused) */
.game-overlay-screen {
  position: absolute; inset: 0; z-index: 10;
  background: rgba(10,15,30,0.92);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.game-overlay-screen[hidden] { display: none !important; }
.gos-content {
  text-align: center;
  max-width: 480px;
  width: 100%;
}
.gos-emoji { font-size: 4.5rem; margin-bottom: 16px; }
.gos-title {
  font-size: 1.8rem; font-weight: 800; color: #fff;
  margin-bottom: 10px;
}
.gos-desc {
  font-size: 0.95rem; color: rgba(255,255,255,0.7);
  margin-bottom: 24px; line-height: 1.6;
}
.gos-controls-hint {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 0.85rem; color: rgba(255,255,255,0.65);
  text-align: left; line-height: 1.8;
}
.gos-controls-hint:empty { display: none; }
.gos-start-btn { margin: 0 auto 20px; display: inline-flex; }
.gos-highscore {
  font-size: 0.88rem; color: rgba(255,255,255,0.5);
}
.gos-highscore strong { color: #fcd34d; }

/* Game Over Screen */
.gor-result-icon { font-size: 4rem; margin-bottom: 12px; }
.gor-title { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 16px; }
.gor-score-display {
  background: linear-gradient(135deg, rgba(0,61,165,0.4), rgba(206,17,38,0.3));
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 16px 32px;
  display: inline-block;
  margin-bottom: 20px;
}
.gor-score-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.1em; }
.gor-score-val { font-size: 3rem; font-weight: 900; color: #fcd34d; line-height: 1.1; }
.gor-stats {
  font-size: 0.9rem; color: rgba(255,255,255,0.7);
  margin-bottom: 20px; line-height: 1.9;
}
.gor-leaderboard {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 24px;
  text-align: left;
  max-height: 160px; overflow-y: auto;
}
.gor-leaderboard:empty { display: none; }
.gor-lb-title {
  font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.gor-lb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 0; font-size: 0.85rem; color: rgba(255,255,255,0.75);
}
.gor-lb-item.current { color: #fcd34d; font-weight: 700; }
.gor-lb-rank { width: 24px; font-weight: 700; color: rgba(255,255,255,0.4); }
.gor-lb-score { margin-left: auto; font-weight: 700; }
.gor-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.gor-exit-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}
.gor-exit-btn:hover { background: rgba(255,255,255,0.2); }

/* ══════════════════════ QUIZ GAME HTML INTERFACE ══════════════════════ */
.quiz-container {
  width: 100%; max-width: 640px; margin: 0 auto;
  padding: 20px;
  color: #fff;
}
.quiz-progress {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.quiz-progress-bar {
  flex: 1; height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px; overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-lt));
  transition: width 0.4s ease;
}
.quiz-progress-text { font-size: 0.8rem; color: rgba(255,255,255,0.5); white-space: nowrap; }
.quiz-timer {
  font-size: 1.4rem; font-weight: 900; color: #fcd34d;
  min-width: 36px; text-align: center;
}
.quiz-timer.urgent { color: #f87171; animation: pulse 0.5s infinite; }
.quiz-question {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  font-size: 1.1rem; font-weight: 600; line-height: 1.5;
  min-height: 80px; display: flex; align-items: center;
}
.quiz-options {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.quiz-option {
  padding: 14px 18px;
  background: rgba(255,255,255,0.07);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: #fff; font-size: 0.9rem; font-weight: 500;
  font-family: inherit;
  cursor: pointer; transition: all 0.2s; text-align: left;
  line-height: 1.4;
}
.quiz-option:hover:not(:disabled) { background: rgba(0,61,165,0.3); border-color: var(--blue-lt); }
.quiz-option.correct { background: rgba(74,222,128,0.2); border-color: #4ade80; color: #4ade80; }
.quiz-option.wrong { background: rgba(248,113,113,0.2); border-color: #f87171; color: #f87171; }
.quiz-option:disabled { cursor: default; }
@media (max-width: 480px) {
  .quiz-options { grid-template-columns: 1fr; }
}

/* ══════════════════════ PENALTY GAME (canvas-based overlay info) ══════════════════════ */
.penalty-info {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  border-radius: 50px; padding: 8px 20px;
  font-size: 0.88rem; color: rgba(255,255,255,0.8);
  pointer-events: none;
  white-space: nowrap;
}

/* ══════════════════════ PREDICTOR GAME ══════════════════════ */
.predictor-container {
  width: 100%; max-width: 560px; margin: 0 auto;
  padding: 20px; color: #fff;
}
.predictor-match {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 14px;
}
.predictor-match-header {
  text-align: center; font-size: 0.75rem;
  color: rgba(255,255,255,0.4); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 14px;
}
.predictor-match-body {
  display: flex; align-items: center; gap: 12px;
}
.predictor-team {
  flex: 1; text-align: center;
  font-size: 0.9rem; font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.predictor-score-input {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.predictor-score-input input {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  color: #fff; font-size: 1.2rem; font-weight: 700;
  font-family: inherit;
  text-align: center; outline: none;
}
.predictor-score-input input:focus { border-color: var(--blue-lt); }
.predictor-score-sep {
  font-size: 1.5rem; font-weight: 900; color: rgba(255,255,255,0.5);
}
.predictor-submit-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-lt));
  color: #fff; border: none; border-radius: var(--radius);
  font-size: 1rem; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: all 0.2s; margin-top: 8px;
}
.predictor-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,61,165,0.4); }

/* ══════════════════════ SPRINT GAME ══════════════════════ */
.sprint-container {
  width: 100%; max-width: 560px; margin: 0 auto;
  padding: 20px; color: #fff; text-align: center;
}
.sprint-field {
  position: relative; width: 100%; height: 100px;
  background: rgba(22,163,74,0.25);
  border: 1px solid rgba(22,163,74,0.3);
  border-radius: var(--radius);
  margin-bottom: 20px; overflow: hidden;
}
.sprint-player {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 1.8rem;
  transition: left 0.15s ease;
}
.sprint-goal {
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
}
.sprint-timer-bar {
  height: 8px; background: rgba(255,255,255,0.1);
  border-radius: 4px; overflow: hidden; margin-bottom: 16px;
}
.sprint-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, #4ade80, #fcd34d, #f87171);
  transition: width 0.1s linear;
}
.sprint-click-btn {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-lt));
  border: none; cursor: pointer;
  font-size: 2.5rem;
  color: #fff; font-weight: 900;
  transition: transform 0.08s, box-shadow 0.08s;
  box-shadow: 0 8px 32px rgba(206,17,38,0.5);
  display: inline-flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.sprint-click-btn:active { transform: scale(0.93); box-shadow: 0 4px 16px rgba(206,17,38,0.3); }
.sprint-stats {
  font-size: 0.9rem; color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

/* ══════════════════════ GOALKEEPER GAME OVERLAY CONTROLS ══════════════════════ */
.gk-instructions {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  border-radius: 50px; padding: 6px 16px;
  font-size: 0.8rem; color: rgba(255,255,255,0.7);
  pointer-events: none; white-space: nowrap;
}

/* ══════════════════════ SHARE POPUP ══════════════════════ */
.share-popup[hidden] { display: none !important; }
.share-popup {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.15s ease;
}
.share-popup-content {
  background: var(--bg-modal);
  border: 1px solid var(--border-h);
  border-radius: var(--radius-lg);
  padding: 20px;
  width: 100%; max-width: 360px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.share-popup-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
  font-weight: 700; font-size: 1rem;
}
.share-popup-header button {
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: 1.1rem; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background 0.15s;
}
.share-popup-header button:hover { background: var(--bg-card); }
.share-popup-btns {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.share-copy { background: var(--bg-card); color: var(--text); border-color: var(--border); }
.share-copy:hover { background: var(--bg-card-h); }

/* ══════════════════════ PULSE ANIMATION ══════════════════════ */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes goalFlash {
  0%   { background: rgba(74,222,128,0.3); }
  100% { background: transparent; }
}

/* Responsive game player */
@media (max-width: 768px) {
  .gph-title { max-width: 100px; font-size: 0.85rem; }
  .gph-score-display { padding: 5px 12px; }
  .gph-score-val { font-size: 1rem; }
  .gph-btn { width: 32px; height: 32px; font-size: 0.9rem; }
  .quiz-question { font-size: 1rem; padding: 16px; }
  .gos-title { font-size: 1.4rem; }
  .gor-score-val { font-size: 2.2rem; }
}
@media (max-width: 480px) {
  .gph-right .gph-btn:nth-child(3),
  .gph-right .gph-btn:nth-child(4) { display: none; }
  .quiz-options { grid-template-columns: 1fr; }
  .sprint-click-btn { width: 120px; height: 120px; font-size: 2rem; }
}

/* ══════════════════════ COOKIE CONSENT BANNER ══════════════════════ */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg2);
  border-top: 1px solid var(--border-h);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.45);
  padding: 14px 16px;
  animation: consentSlideUp 0.35s cubic-bezier(0.22,1,0.36,1) forwards;
}
.consent-banner--hide {
  animation: consentSlideDown 0.35s cubic-bezier(0.55,0,0.45,1) forwards;
}
@keyframes consentSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes consentSlideDown {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(100%); opacity: 0; }
}
.consent-banner__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.consent-banner__text {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 220px;
}
.consent-banner__icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1.5; }
.consent-banner__text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.consent-banner__text a {
  color: var(--blue-lt);
  text-decoration: underline;
}
.consent-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.consent-btn {
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  font-family: inherit;
}
.consent-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.consent-btn--accept {
  background: var(--blue);
  color: #fff;
}
.consent-btn--decline {
  background: var(--bg-card);
  border: 1px solid var(--border-h);
  color: var(--text-muted);
}
@media (max-width: 540px) {
  .consent-banner__inner { flex-direction: column; align-items: stretch; }
  .consent-banner__actions { justify-content: flex-end; }
}
