.games-section {
    min-height: 100vh;
    padding: 120px 2rem 4rem;
    background:
      radial-gradient(1000px 600px at 10% -10%, rgba(138,43,226,0.25), transparent 60%),
      radial-gradient(900px 500px at 110% 20%, rgba(255,140,0,0.18), transparent 60%),
      linear-gradient(45deg, rgba(0,0,0,0.96), rgba(10,10,20,0.9));
}

/* Top navigation layout for games page */
.navigation-zone {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(20,20,30,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(138,43,226,.25);
}

.nav-buttons { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.language-selector { display: inline-flex; align-items: center; }
.language-select { padding: 6px 10px; background: rgba(138,43,226,.12); border: 1px solid rgba(138,43,226,.35); border-radius: 10px; color: #fff; }

.emoji-btn { width: 42px; height: 42px; padding: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(138,43,226,.12); border: 1px solid rgba(138,43,226,.3); transition: transform .2s ease, box-shadow .2s ease; }
.emoji-btn .emoji { font-size: 20px; line-height: 1; filter: drop-shadow(0 0 8px rgba(138,43,226,.25)); }
.emoji-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,1px,1px); white-space: nowrap; border: 0; }

.games-container {
    max-width: 1200px;
    margin: 0 auto;
}

.games-container h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #ffd173, #8a2be2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.games-subtitle {
    text-align: center;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.game-card {
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: radial-gradient(800px 200px at var(--mx,50%) -10%, rgba(138,43,226,0.2), transparent 70%);
    pointer-events: none;
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.scoreboard {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    opacity: 0.9;
}

.scoreboard .divider {
    opacity: 0.4;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(90px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

.card {
    height: 110px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(138,43,226,0.12), rgba(0,0,0,0.6));
    border: 1px solid rgba(138,43,226,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: -100%; left: -100%;
    width: 300%; height: 300%;
    background: conic-gradient(from 0deg, transparent, rgba(138,43,226,0.25), transparent 20%);
    filter: blur(12px);
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
}

.card:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.25); filter: brightness(1.05); }
.card:hover::after { opacity: 1; transform: rotate(20deg); }
.card.correct { background: linear-gradient(180deg, rgba(0,255,157,0.25), rgba(0,0,0,0.6)); border-color: rgba(0,255,157,0.5); }
.card.wrong { background: linear-gradient(180deg, rgba(255,69,0,0.25), rgba(0,0,0,0.6)); border-color: rgba(255,69,0,0.5); }

.game-controls { display: flex; gap: 0.8rem; margin-top: 0.5rem; }

.primary-btn, .secondary-btn {
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(138,43,226,0.3);
    color: #fff;
    background: rgba(138,43,226,0.18);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn { background: linear-gradient(45deg, rgba(138,43,226,0.35), rgba(255,140,0,0.25)); }
.primary-btn:hover, .secondary-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(0,0,0,0.25); }
.secondary-btn.small { padding: 0.5rem 0.8rem; border-radius: 10px; }

.hint { opacity: 0.7; margin-top: 0.5rem; }

.leaderboard-card { margin-top: 2rem; background: rgba(20,20,30,0.9); border: 1px solid rgba(138,43,226,0.25); border-radius: 14px; padding: 1rem; }
.leaderboard-card ol { margin: 0.5rem 1rem; }

.player-panel { display: flex; gap: 0.6rem; align-items: center; margin: 1rem 0; }
.player-label { opacity: .85; }
.player-input { background: rgba(0,0,0,0.35); border: 1px solid rgba(138,43,226,0.35); border-radius: 10px; color: #fff; padding: 0.6rem .8rem; min-width: 180px; }

.games-logo { filter: drop-shadow(0 0 16px rgba(138,43,226,.35)); display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.games-logo .brand-wordmark { font-weight: 900; letter-spacing: 1px; background: linear-gradient(90deg,#ffffff,#ffd173,#8a2be2); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 30px rgba(138,43,226,.35); font-size: 1.4rem; }
.games-logo .brand-subtitle { display: block; font-size: .75rem; letter-spacing: 2px; color: rgba(255,255,255,.85); }

@media (max-width: 768px) {
  .game-grid { grid-template-columns: repeat(3, minmax(90px, 1fr)); }
  .card { height: 100px; }
}

@media (max-width: 420px) {
  .game-grid { grid-template-columns: repeat(2, minmax(90px, 1fr)); }
  .card { height: 92px; }
}


