/* ===================================================================
   PikOyun - Canlı & Renkli Oyun Portalı Stilleri
   Logodaki Canlı Renkler:
     - Pik Mavisi: #0087f0 / #1570f2
     - Oyun Yeşili: #8ac900 / #22c55e
     - Enerji Turuncusu: #ff6f07 / #fd8102
     - Zirve Moru: #9617dc / #7c3aed
     - Neon Pembe: #f43f8c
     - Altın Sarı: #fdc850
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- 1. AÇIK TEMA (VARSAYILAN / DEFAULT) --- */
:root, [data-theme="light"] {
  --bg-primary: #f6f9fe;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --border-color: rgba(0, 85, 255, 0.08);
  --border-glow: rgba(0, 135, 240, 0.35);

  /* Logodaki Canlı Renk Paleti */
  --brand-blue: #0087f0;
  --brand-blue-deep: #1570f2;
  --brand-green: #8ac900;
  --brand-green-deep: #669a00;
  --brand-orange: #ff6f07;
  --brand-purple: #9617dc;
  --brand-pink: #f43f8c;
  --brand-yellow: #fdc850;

  --accent-blue: #0087f0;
  --accent-blue-hover: #006ec7;
  --accent-cyan: #0284c7;
  --accent-cyan-glow: #0ea5e9;
  --accent-lime: #8ac900;
  --accent-amber: #ff6f07;
  --accent-purple: #9617dc;
  --accent-rose: #f43f8c;

  /* Mavi & Mor PikOyun İmzalı Buton ve Vurgu Gradyanları */
  --gradient-pikoyun: linear-gradient(135deg, #0087f0 0%, #6830d6 50%, #9617dc 100%);
  --brand-gradient: linear-gradient(135deg, #0087f0 0%, #6830d6 50%, #9617dc 100%);
  --gradient-btn: linear-gradient(135deg, #0087f0 0%, #6830d6 50%, #9617dc 100%);
  --gradient-btn-hover: linear-gradient(135deg, #1570f2 0%, #7c3aed 50%, #a855f7 100%);
  --btn-shadow: 0 4px 16px rgba(0, 135, 240, 0.35);
  --btn-shadow-hover: 0 8px 24px rgba(150, 23, 220, 0.45);
  --bg-main: #ffffff;

  --gradient-blue: linear-gradient(135deg, #0087f0 0%, #1570f2 100%);
  --gradient-green: linear-gradient(135deg, #8ac900 0%, #16a34a 100%);
  --gradient-orange: linear-gradient(135deg, #ff6f07 0%, #fd8102 50%, #fdc850 100%);
  --gradient-purple: linear-gradient(135deg, #9617dc 0%, #0087f0 100%);

  --text-main: #0c182c;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  --nav-link-color: #334155;
  --nav-link-hover: #0087f0;
  --nav-link-active-bg: rgba(0, 135, 240, 0.1);
  --nav-link-active-border: rgba(0, 135, 240, 0.3);
  --nav-link-active-text: #0087f0;

  --hero-badge-bg: rgba(0, 135, 240, 0.08);
  --hero-badge-border: rgba(0, 135, 240, 0.25);
  --hero-badge-text: #0087f0;

  --panel-bg: rgba(255, 255, 255, 0.95);
  --btn-secondary-bg: #ffffff;
  --btn-secondary-border: rgba(0, 85, 255, 0.12);
  --btn-secondary-hover: #f0f7ff;

  --board-bg: #ffffff;
  --board-border: #cbd5e1;
  --cell-bg: #ffffff;
  --cell-border: #e2e8f0;

  --sudoku-board-border: #0087f0;
  --sudoku-block-border: rgba(0, 135, 240, 0.55);
  --sudoku-cell-given: #0c182c;
  --sudoku-cell-given-bg: #f8fafc;
  --sudoku-cell-user: #0087f0;
  --sudoku-highlight-peer: #f0f7ff;
  --sudoku-highlight-same: #bae6fd;
  --sudoku-highlight-selected: #7dd3fc;
  --sudoku-error-bg: #ffe4e6;
  --sudoku-error-text: #e11d48;
  --keypad-bg: #ffffff;
  --keypad-border: #cbd5e1;
  --keypad-hover-bg: #e0f2fe;

  --ttt-board-bg: #ffffff;
  --ttt-cell-bg: #f8fafc;
  --ttt-cell-hover: #f0fdf4;
  --ttt-symbol-x: #0087f0;
  --ttt-symbol-o: #8ac900;

  --modal-bg: #ffffff;
  --modal-border: rgba(0, 85, 255, 0.15);
  --modal-overlay-bg: rgba(12, 24, 44, 0.6);
  --modal-box-bg: #f8fafc;

  --footer-bg: #f1f6fc;
  --footer-border: #e2e8f0;
  --footer-bottom-border: #cbd5e1;

  --logo-filter: drop-shadow(0 2px 6px rgba(0, 135, 240, 0.08));

  --shadow-sm: 0 4px 12px rgba(0, 85, 255, 0.06);
  --shadow-md: 0 12px 28px -5px rgba(0, 85, 255, 0.08), 0 8px 12px -6px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 22px 35px -10px rgba(0, 135, 240, 0.16), 0 0 25px rgba(138, 201, 0, 0.14);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. KOYU TEMA (DARK THEME) --- */
[data-theme="dark"] {
  --bg-primary: #070d19;
  --bg-secondary: #0d1728;
  --bg-card: rgba(15, 25, 46, 0.8);
  --bg-card-hover: rgba(22, 36, 66, 0.9);
  --bg-glass: rgba(10, 18, 34, 0.88);
  --border-color: rgba(255, 255, 255, 0.09);
  --border-glow: rgba(0, 135, 240, 0.45);

  --brand-blue: #38bdf8;
  --brand-blue-deep: #0087f0;
  --brand-green: #a3e635;
  --brand-green-deep: #8ac900;
  --brand-orange: #fb923c;
  --brand-purple: #c084fc;
  --brand-pink: #f472b6;
  --brand-yellow: #fde047;

  --accent-blue: #38bdf8;
  --accent-blue-hover: #0087f0;
  --accent-cyan: #22d3ee;
  --accent-cyan-glow: #38bdf8;
  --accent-lime: #a3e635;
  --accent-amber: #fb923c;
  --accent-purple: #c084fc;
  --accent-rose: #fb7185;

  /* Mavi & Mor PikOyun İmzalı Buton ve Vurgu Gradyanları (Koyu Tema) */
  --gradient-pikoyun: linear-gradient(135deg, #0087f0 0%, #7c3aed 50%, #c084fc 100%);
  --brand-gradient: linear-gradient(135deg, #0087f0 0%, #7c3aed 50%, #c084fc 100%);
  --gradient-btn: linear-gradient(135deg, #0087f0 0%, #7c3aed 50%, #c084fc 100%);
  --gradient-btn-hover: linear-gradient(135deg, #38bdf8 0%, #8b5cf6 50%, #d8b4fe 100%);
  --btn-shadow: 0 4px 16px rgba(0, 135, 240, 0.4);
  --btn-shadow-hover: 0 8px 26px rgba(192, 132, 252, 0.5);
  --bg-main: #0b1528;

  --gradient-blue: linear-gradient(135deg, #0087f0 0%, #2563eb 100%);
  --gradient-green: linear-gradient(135deg, #8ac900 0%, #10b981 100%);
  --gradient-orange: linear-gradient(135deg, #ff6f07 0%, #f59e0b 100%);
  --gradient-purple: linear-gradient(135deg, #9617dc 0%, #38bdf8 100%);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --nav-link-color: #94a3b8;
  --nav-link-hover: #ffffff;
  --nav-link-active-bg: rgba(0, 135, 240, 0.15);
  --nav-link-active-border: rgba(56, 189, 248, 0.35);
  --nav-link-active-text: #38bdf8;

  --hero-badge-bg: rgba(0, 135, 240, 0.12);
  --hero-badge-border: rgba(56, 189, 248, 0.35);
  --hero-badge-text: #38bdf8;

  --panel-bg: rgba(13, 23, 40, 0.7);
  --btn-secondary-bg: rgba(255, 255, 255, 0.06);
  --btn-secondary-border: rgba(255, 255, 255, 0.12);
  --btn-secondary-hover: rgba(255, 255, 255, 0.12);

  --board-bg: #0d1728;
  --board-border: rgba(255, 255, 255, 0.1);
  --cell-bg: rgba(255, 255, 255, 0.03);
  --cell-border: rgba(255, 255, 255, 0.08);

  --sudoku-board-border: #38bdf8;
  --sudoku-block-border: rgba(56, 189, 248, 0.45);
  --sudoku-cell-given: #e2e8f0;
  --sudoku-cell-given-bg: rgba(255, 255, 255, 0.02);
  --sudoku-cell-user: #38bdf8;
  --sudoku-highlight-peer: rgba(255, 255, 255, 0.06);
  --sudoku-highlight-same: rgba(56, 189, 248, 0.22);
  --sudoku-highlight-selected: rgba(56, 189, 248, 0.35);
  --sudoku-error-bg: rgba(244, 63, 94, 0.35);
  --sudoku-error-text: #fda4af;
  --keypad-bg: rgba(255, 255, 255, 0.08);
  --keypad-border: rgba(255, 255, 255, 0.1);
  --keypad-hover-bg: rgba(56, 189, 248, 0.2);

  --ttt-board-bg: #0d1728;
  --ttt-cell-bg: rgba(255, 255, 255, 0.04);
  --ttt-cell-hover: rgba(255, 255, 255, 0.08);
  --ttt-symbol-x: #38bdf8;
  --ttt-symbol-o: #a3e635;

  --modal-bg: #0d1728;
  --modal-border: rgba(56, 189, 248, 0.3);
  --modal-overlay-bg: rgba(0, 0, 0, 0.8);
  --modal-box-bg: rgba(255, 255, 255, 0.04);

  --footer-bg: #050912;
  --footer-border: rgba(255, 255, 255, 0.08);
  --footer-bottom-border: rgba(255, 255, 255, 0.05);

  --logo-filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.85)) drop-shadow(0 2px 10px rgba(0, 135, 240, 0.3));

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 28px -5px rgba(0, 0, 0, 0.4), 0 8px 12px -6px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 135, 240, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
  /* Canlı & Renkli Arka Plan Işımaları (Logodaki Mavi, Yeşil, Turuncu, Mor) */
  background-image: 
    radial-gradient(circle at 10% 8%, rgba(0, 135, 240, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 90% 12%, rgba(138, 201, 0, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 80% 55%, rgba(255, 111, 7, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 15% 75%, rgba(150, 23, 220, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

[data-theme="dark"] body {
  background-image: 
    radial-gradient(circle at 10% 8%, rgba(0, 135, 240, 0.18) 0%, transparent 35%),
    radial-gradient(circle at 90% 12%, rgba(138, 201, 0, 0.16) 0%, transparent 35%),
    radial-gradient(circle at 80% 55%, rgba(255, 111, 7, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 15% 75%, rgba(150, 23, 220, 0.14) 0%, transparent 40%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* ===================================================================
   Header & Navbar (DAHA BÜYÜK VE ETKİLEYİCİ LOGO)
   =================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #0087f0, #8ac900, #ff6f07, #9617dc) 1;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 85, 255, 0.05);
}

.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 145px; /* 125px logo için ferah navbar */
  padding: 8px 0;
  gap: 16px;
}

/* Sol Navigasyon (Ana Sayfa & Oyunlar) */
.navbar-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
  grid-column: 1;
}

/* Orta Logo */
.brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  text-decoration: none;
  grid-column: 2;
}

/* Büyütülmüş ve Ortalanmış Logo (%30 daha büyük: 125px) */
.site-logo {
  height: 125px; /* 96px'den %30 büyütülerek 125px yapıldı */
  width: auto;
  max-width: 440px;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.3s ease;
  filter: var(--logo-filter);
  display: block;
}

.brand-link:hover .site-logo {
  transform: scale(1.04);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}

.nav-link {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--nav-link-color);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
}

.nav-link:hover {
  color: var(--nav-link-hover);
  background: rgba(0, 135, 240, 0.08);
}

[data-theme="dark"] .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #fff;
  background: var(--gradient-btn);
  box-shadow: var(--btn-shadow);
}

/* ===================================================================
   Oyunlar Büyük Açılır Menü (Mega Menu)
   =================================================================== */

.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  font-family: inherit;
}

.dropdown-arrow {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
  display: inline-block;
  opacity: 0.75;
}

.nav-item-dropdown:hover .dropdown-arrow,
.nav-item-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

/* Büyük Açılır Kart / Mega Menu Paneli */
.mega-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  transform: translateY(8px);
  width: 780px;
  max-width: 92vw;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18), 0 0 1px rgba(0, 135, 240, 0.3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 1200;
}

/* Köprü (Mouse kaybını önler) */
.mega-menu::after {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

/* Üst üçgen ok */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 45px;
  transform: rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--bg-card);
  border-top: 2px solid var(--border-color);
  border-left: 2px solid var(--border-color);
}

/* Hover veya Açık Durumda Görünürlük */
.nav-item-dropdown:hover .mega-menu,
.nav-item-dropdown:focus-within .mega-menu,
.nav-item-dropdown.open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.mega-menu-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 3px 0;
}

.mega-menu-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.mega-menu-view-all {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(0, 135, 240, 0.08);
  transition: var(--transition);
  white-space: nowrap;
}

.mega-menu-view-all:hover {
  background: var(--brand-blue);
  color: #fff;
}

/* 3x3 Oyun Izgarası */
.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: left;
}

.mega-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  background: var(--bg-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.mega-menu-item:hover {
  background: var(--bg-card);
  border-color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 135, 240, 0.12);
}

.mega-menu-item.active-item {
  background: rgba(0, 135, 240, 0.08);
  border-color: var(--brand-blue);
}

.mega-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.mega-icon-blue { background: var(--gradient-blue); }
.mega-icon-purple { background: var(--gradient-purple); }
.mega-icon-orange { background: var(--gradient-orange); }
.mega-icon-green { background: var(--gradient-green); }

.mega-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mega-item-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-item-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-item-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(0, 135, 240, 0.12);
  color: var(--brand-blue);
}

.mega-menu-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mega-menu-tip {
  font-size: 0.78rem;
  opacity: 0.85;
}

/* Sağ Aksiyon Butonları (Tema, Ses, Hemen Oyna) */
.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  grid-column: 3;
  margin-left: auto;
  gap: 12px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(0, 135, 240, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition);
}

[data-theme="dark"] .icon-btn {
  background: rgba(255, 255, 255, 0.06);
}

.icon-btn:hover {
  background: rgba(0, 135, 240, 0.12);
  transform: translateY(-2px) scale(1.05);
  border-color: var(--brand-blue);
  box-shadow: 0 4px 12px rgba(0, 135, 240, 0.2);
}

/* PikOyun İmzalı Canlı CTA Butonu */
.btn-cta {
  background: var(--gradient-pikoyun);
  color: #fff;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 135, 240, 0.35);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
  transform: translateY(-2px) scale(1.03);
  background: var(--gradient-btn-hover);
  box-shadow: var(--btn-shadow-hover);
  filter: brightness(1.08);
}

.mobile-toggle {
  display: none;
  font-size: 1.6rem;
  color: var(--text-main);
  padding: 6px;
}

/* ===================================================================
   Oyunlar Bölümü (Canlı Renkli Kartlar)
   =================================================================== */

.games-section {
  padding-bottom: 30px;
}

.section-header {
  text-align: center;
}

.section-tag {
  display: inline-block;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  background: rgba(0, 135, 240, 0.1);
  color: var(--brand-blue);
  border: 1px solid rgba(0, 135, 240, 0.25);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.section-title .gradient-text {
  background: var(--gradient-pikoyun);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.08rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  margin-top: 36px;
  margin-bottom: 50px;
}

/* Her Oyun Kartı İçin Benzersiz Canlı Renk Teması */
.game-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

/* 1. Sudoku Kartı - Canlı Mavi Tema */
.game-card.card-sudoku {
  border-color: rgba(0, 135, 240, 0.2);
}
.game-card.card-sudoku:hover {
  transform: translateY(-8px);
  border-color: var(--brand-blue);
  box-shadow: 0 20px 35px -10px rgba(0, 135, 240, 0.25), 0 0 25px rgba(0, 135, 240, 0.15);
}
.card-sudoku .game-badge-overlay {
  background: rgba(0, 135, 240, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.card-sudoku .game-card-btn {
  background: var(--gradient-blue);
  box-shadow: 0 4px 15px rgba(0, 135, 240, 0.35);
}

/* 2. Same Game Kartı - Canlı Turuncu & Pembe Tema */
.game-card.card-samegame {
  border-color: rgba(255, 111, 7, 0.2);
}
.game-card.card-samegame:hover {
  transform: translateY(-8px);
  border-color: var(--brand-orange);
  box-shadow: 0 20px 35px -10px rgba(255, 111, 7, 0.25), 0 0 25px rgba(244, 63, 140, 0.15);
}
.card-samegame .game-badge-overlay {
  background: rgba(255, 111, 7, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.card-samegame .game-card-btn {
  background: var(--gradient-orange);
  box-shadow: 0 4px 15px rgba(255, 111, 7, 0.35);
}

/* 3. TicTacToe Kartı - Canlı Yeşil & Zirve Moru Tema */
.game-card.card-tictactoe {
  border-color: rgba(138, 201, 0, 0.25);
}
.game-card.card-tictactoe:hover {
  transform: translateY(-8px);
  border-color: var(--brand-green);
  box-shadow: 0 20px 35px -10px rgba(138, 201, 0, 0.25), 0 0 25px rgba(150, 23, 220, 0.15);
}
.card-tictactoe .game-badge-overlay {
  background: rgba(104, 158, 0, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.card-tictactoe .game-card-btn {
  background: var(--gradient-green);
  box-shadow: 0 4px 15px rgba(138, 201, 0, 0.35);
}

.game-thumb {
  height: 200px;
  background: #0b1528;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.thumb-bg {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  transition: transform 0.4s ease;
}

.game-card:hover .thumb-bg {
  transform: scale(1.06);
}

.thumb-sudoku {
  background: radial-gradient(circle at center, #0087f0 0%, #081a38 75%);
}

.thumb-samegame {
  background: radial-gradient(circle at center, #ff6f07 0%, #1e0930 75%);
}

.thumb-tictactoe {
  background: radial-gradient(circle at center, #8ac900 0%, #061c16 75%);
}

.mini-board {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.game-card:hover .mini-board {
  transform: scale(1.08);
}

/* Mini Sudoku Mockup */
.mini-sudoku {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  grid-gap: 4px;
  background: rgba(12, 24, 44, 0.85);
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.mini-sudoku-cell {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: #38bdf8;
}

.mini-sudoku-cell.filled {
  background: linear-gradient(135deg, #0087f0, #1570f2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 6px rgba(0, 135, 240, 0.5);
}

/* Mini Same Game Mockup */
.mini-samegame {
  display: grid;
  grid-template-columns: repeat(4, 26px);
  grid-gap: 5px;
  background: rgba(12, 24, 44, 0.85);
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.mini-block {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.35);
}

.b-red { background: linear-gradient(135deg, #f43f5e, #be123c); }
.b-blue { background: linear-gradient(135deg, #0087f0, #1570f2); }
.b-green { background: linear-gradient(135deg, #8ac900, #4d8200); }
.b-yellow { background: linear-gradient(135deg, #ff6f07, #fd8102); }
.b-purple { background: linear-gradient(135deg, #9617dc, #6e0ec2); }

/* Mini TicTacToe Mockup */
.mini-tictactoe {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  grid-gap: 5px;
  background: rgba(12, 24, 44, 0.85);
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.mini-xo-cell {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.25rem;
}

.mini-xo-cell.x {
  color: #0087f0;
  text-shadow: 0 0 10px rgba(0, 135, 240, 0.7);
}

.mini-xo-cell.o {
  color: #8ac900;
  text-shadow: 0 0 10px rgba(138, 201, 0, 0.7);
}

.game-badge-overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 3;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.game-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-main);
}

.game-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex: 1;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.game-tag {
  font-size: 0.8rem;
  padding: 5px 12px;
  background: rgba(0, 135, 240, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-weight: 600;
}

[data-theme="dark"] .game-tag {
  background: rgba(255, 255, 255, 0.05);
}

.game-card-btn {
  background: var(--gradient-btn) !important;
  color: #fff !important;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  font-weight: 800;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.02rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: var(--btn-shadow) !important;
  text-decoration: none;
}

.game-card-btn:hover {
  background: var(--gradient-btn-hover) !important;
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover) !important;
}

/* ===================================================================
   Hero & Tanıtım Bölümü
   =================================================================== */

.hero-section {
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  background: var(--hero-badge-bg);
  border: 1px solid var(--hero-badge-border);
  color: var(--hero-badge-text);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-main);
}

.hero-title .gradient-text {
  background: var(--gradient-pikoyun);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: 1.12rem;
  color: var(--text-muted);
}

/* ===================================================================
   Tanıtım & İstatistik & Özellik Kartları (Tüm Kutular Eşit Büyüklükte)
   =================================================================== */

.stat-cards-grid,
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.stat-cards-grid {
  margin-bottom: 44px;
}

.features-grid {
  margin-top: 0;
}

.stat-card,
.feature-box {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 220px;
  height: 100%;
}

.stat-card::before,
.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0.9;
}

.stat-card:nth-child(1)::before,
.feature-box:nth-child(1)::before { background: var(--gradient-blue); }

.stat-card:nth-child(2)::before,
.feature-box:nth-child(2)::before { background: var(--gradient-purple); }

.stat-card:nth-child(3)::before,
.feature-box:nth-child(3)::before { background: var(--gradient-orange); }

.stat-card:nth-child(4)::before,
.feature-box:nth-child(4)::before { background: var(--gradient-green); }

.stat-card:hover,
.feature-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.stat-card:nth-child(1):hover,
.feature-box:nth-child(1):hover { border-color: var(--brand-blue); }

.stat-card:nth-child(2):hover,
.feature-box:nth-child(2):hover { border-color: var(--brand-purple); }

.stat-card:nth-child(3):hover,
.feature-box:nth-child(3):hover { border-color: var(--brand-orange); }

.stat-card:nth-child(4):hover,
.feature-box:nth-child(4):hover { border-color: var(--brand-green); }

.stat-card .stat-icon,
.feature-box .feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  margin-bottom: 14px;
  flex-shrink: 0;
}

.stat-card:nth-child(1) .stat-icon,
.feature-box:nth-child(1) .feature-icon-wrapper { background: var(--gradient-blue); }

.stat-card:nth-child(2) .stat-icon,
.feature-box:nth-child(2) .feature-icon-wrapper { background: var(--gradient-purple); }

.stat-card:nth-child(3) .stat-icon,
.feature-box:nth-child(3) .feature-icon-wrapper { background: var(--gradient-orange); }

.stat-card:nth-child(4) .stat-icon,
.feature-box:nth-child(4) .feature-icon-wrapper { background: var(--gradient-green); }

.stat-card .stat-title,
.feature-box .feature-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-main);
  margin: 0 0 8px 0;
}

.stat-card .stat-desc,
.feature-box .feature-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 992px) {
  .stat-cards-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 540px) {
  .stat-cards-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-card,
  .feature-box {
    padding: 18px 12px;
    min-height: 195px;
  }
  .stat-card .stat-icon,
  .feature-box .feature-icon-wrapper {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  .stat-card .stat-title,
  .feature-box .feature-title {
    font-size: 0.95rem;
  }
  .stat-card .stat-desc,
  .feature-box .feature-desc {
    font-size: 0.78rem;
    line-height: 1.4;
  }
}

/* ===================================================================
   Neden PikOyun Bölüm Kapsayıcısı
   =================================================================== */

.features-section {
  padding: 60px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 60px;
}

/* ===================================================================
   Kurallar / Akordiyon
   =================================================================== */

.rules-section {
  max-width: 860px;
  margin: 0 auto 70px;
}

.accordion-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.accordion-item:hover {
  border-color: var(--brand-blue);
}

.accordion-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  user-select: none;
  color: var(--text-main);
}

.accordion-header .acc-icon {
  transition: transform 0.25s ease;
  font-size: 1.3rem;
  color: var(--brand-blue);
}

.accordion-item.open .acc-icon {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 24px 22px;
  display: none;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  border-top: 1px solid var(--border-color);
  margin-top: -6px;
  padding-top: 16px;
}

.accordion-item.open .accordion-body {
  display: block;
}

/* ===================================================================
   Ortak Oyun Sayfası Stilleri
   =================================================================== */

.game-page-container {
  max-width: 900px;
  margin: 20px auto 40px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-top-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.back-to-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 9px 16px;
  border-radius: var(--radius-full);
  background: var(--btn-secondary-bg);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.back-to-home:hover {
  color: var(--brand-blue);
  background: var(--btn-secondary-hover);
  transform: translateX(-3px);
  border-color: var(--brand-blue);
}

.game-header-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 900;
  text-align: center;
  color: var(--text-main);
}

.game-stats-panel {
  width: 100%;
  background: var(--panel-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.game-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-main);
}

.stat-val.accent {
  color: var(--brand-blue);
}

.stat-val.gold {
  color: var(--brand-orange);
}

.stat-val.danger {
  color: var(--accent-rose);
}

/* Kontrol Butonları Çubuğu */
.game-controls-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.ctrl-btn {
  padding: 9px 18px;
  background: var(--btn-secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ctrl-btn:hover:not(:disabled) {
  background: var(--btn-secondary-hover);
  transform: translateY(-2px);
  border-color: var(--brand-blue);
}

.ctrl-btn.active {
  background: rgba(0, 135, 240, 0.12);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.ctrl-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ctrl-btn.primary {
  background: var(--gradient-btn);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--btn-shadow);
  font-weight: 800;
}

.ctrl-btn.primary:hover {
  background: var(--gradient-btn-hover);
  filter: brightness(1.08);
  box-shadow: var(--btn-shadow-hover);
  transform: translateY(-2px);
}

.select-styled {
  background: var(--btn-secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-main);
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.select-styled:focus {
  border-color: var(--brand-blue);
}

.select-styled option {
  background: var(--bg-secondary);
  color: var(--text-main);
}

/* ===================================================================
   SUDOKU ÖZEL STİLLERİ
   =================================================================== */

.sudoku-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 520px;
}

.sudoku-board {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: repeat(9, 1fr);
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  background: var(--board-bg);
  border: 3px solid var(--sudoku-board-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 135, 240, 0.18);
  user-select: none;
  touch-action: manipulation;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.sudoku-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3.8vw, 1.85rem);
  font-weight: 700;
  color: var(--text-main);
  border: 1px solid var(--cell-border);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.sudoku-cell:nth-child(3n) {
  border-right: 2px solid var(--sudoku-block-border);
}

.sudoku-cell:nth-child(9n) {
  border-right: none;
}

.sudoku-row-border {
  border-bottom: 2px solid var(--sudoku-block-border) !important;
}

.sudoku-cell.given {
  color: var(--sudoku-cell-given);
  font-weight: 800;
  background: var(--sudoku-cell-given-bg);
}

.sudoku-cell.user-filled {
  color: var(--sudoku-cell-user);
  font-weight: 700;
}

.sudoku-cell.selected {
  background: var(--sudoku-highlight-selected) !important;
  box-shadow: inset 0 0 0 2px var(--sudoku-board-border);
}

.sudoku-cell.highlight-peer {
  background: var(--sudoku-highlight-peer);
}

.sudoku-cell.highlight-same {
  background: var(--sudoku-highlight-same);
}

.sudoku-cell.error {
  background: var(--sudoku-error-bg) !important;
  color: var(--sudoku-error-text) !important;
}

.sudoku-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 100%;
  height: 100%;
  padding: 2px;
  pointer-events: none;
}

.sudoku-note-num {
  font-size: clamp(0.55rem, 1.8vw, 0.72rem);
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sudoku-keypad {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 6px;
  width: 100%;
  max-width: 480px;
  margin-bottom: 16px;
}

.keypad-num {
  height: 50px;
  background: var(--keypad-bg);
  border: 2px solid var(--keypad-border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.keypad-count {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  position: absolute;
  bottom: 2px;
}

.keypad-num:hover {
  background: var(--keypad-hover-bg);
  border-color: var(--brand-blue);
  transform: translateY(-2px);
  color: var(--brand-blue);
}

.keypad-num.completed {
  opacity: 0.3;
  pointer-events: none;
}

.sudoku-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 480px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================================================================
   SAME GAME ÖZEL STİLLERİ
   =================================================================== */

.samegame-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.samegame-board-container {
  background: var(--board-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 12px 30px rgba(255, 111, 7, 0.12);
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  transition: background-color 0.3s ease;
}

.samegame-board {
  display: grid;
  gap: 5px;
  user-select: none;
  touch-action: manipulation;
}

.samegame-block {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.25s ease;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.45), inset 0 -2px 4px rgba(0, 0, 0, 0.3), 0 3px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.samegame-block.empty {
  background: transparent !important;
  box-shadow: none !important;
  cursor: default;
  pointer-events: none;
}

.samegame-block.hover-group {
  transform: scale(0.92);
  filter: brightness(1.25);
  box-shadow: inset 0 0 0 2px #fff, 0 0 14px rgba(255, 255, 255, 0.85);
}

.samegame-block.popping {
  animation: popBlock 0.25s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popBlock {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.8; }
  100% { transform: scale(0); opacity: 0; }
}

/* Canlı Same Game Blok Renkleri */
.sg-color-1 { background: linear-gradient(135deg, #f43f8c 0%, #be123c 100%); } /* Pembe/Kırmızı */
.sg-color-2 { background: linear-gradient(135deg, #0087f0 0%, #1570f2 100%); } /* Pik Mavisi */
.sg-color-3 { background: linear-gradient(135deg, #8ac900 0%, #16a34a 100%); } /* Oyun Yeşili */
.sg-color-4 { background: linear-gradient(135deg, #ff6f07 0%, #fd8102 100%); } /* Enerji Turuncusu */
.sg-color-5 { background: linear-gradient(135deg, #9617dc 0%, #6e0ec2 100%); } /* Zirve Moru */

.sg-icon {
  font-size: 1.15rem;
  opacity: 0.9;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.samegame-floating-score {
  position: absolute;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--brand-orange);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  animation: floatUp 0.8s ease-out forwards;
  z-index: 20;
}

@keyframes floatUp {
  0% { transform: translate(-50%, 0) scale(0.8); opacity: 1; }
  100% { transform: translate(-50%, -40px) scale(1.25); opacity: 0; }
}

/* ===================================================================
   TICTACTOE (XOX) ÖZEL STİLLERİ
   =================================================================== */

.ttt-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 440px;
}

.ttt-turn-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 26px;
  border-radius: var(--radius-full);
  background: var(--panel-bg);
  border: 2px solid var(--border-color);
  margin-bottom: 22px;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}

.ttt-turn-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
}

.ttt-turn-badge.x {
  color: var(--brand-blue);
  text-shadow: 0 0 8px rgba(0, 135, 240, 0.4);
}

.ttt-turn-badge.o {
  color: var(--brand-green);
  text-shadow: 0 0 8px rgba(138, 201, 0, 0.4);
}

.ttt-board-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--board-bg);
  border: 3px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 12px 35px rgba(0, 135, 240, 0.12);
  margin-bottom: 24px;
  transition: background-color 0.3s ease;
}

.ttt-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  height: 100%;
}

.ttt-cell {
  background: var(--ttt-cell-bg);
  border: 2px solid var(--cell-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.ttt-cell:hover:empty {
  background: var(--ttt-cell-hover);
  border-color: var(--brand-blue);
  transform: scale(0.98);
}

.ttt-cell.winning-cell {
  background: rgba(0, 135, 240, 0.18) !important;
  border-color: var(--brand-blue) !important;
  animation: pulseCell 1.2s infinite ease-in-out;
}

@keyframes pulseCell {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.96); }
}

.ttt-symbol {
  width: 60%;
  height: 60%;
  animation: symbolAppear 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes symbolAppear {
  0% { transform: scale(0) rotate(-45deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.ttt-symbol.x path,
.ttt-symbol.x line {
  stroke: var(--brand-blue);
  stroke-width: 12;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(0, 135, 240, 0.5));
}

.ttt-symbol.o circle {
  stroke: var(--brand-green);
  stroke-width: 12;
  fill: none;
  filter: drop-shadow(0 0 8px rgba(138, 201, 0, 0.5));
}

/* Modals & Overlays */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--modal-overlay-bg);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--modal-bg);
  border: 2px solid var(--modal-border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  max-width: 450px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: var(--text-main);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-icon {
  font-size: 3.8rem;
  margin-bottom: 16px;
  display: block;
  animation: bounceIcon 1s infinite alternate ease-in-out;
}

@keyframes bounceIcon {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--text-main);
}

.modal-text {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 24px;
}

.modal-stats {
  background: var(--modal-box-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================================================================
   Footer (BÜYÜK VE NET LOGO)
   =================================================================== */

.site-footer {
  margin-top: auto;
  background: var(--footer-bg);
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, #0087f0, #8ac900, #ff6f07, #9617dc) 1;
  padding: 44px 0 26px;
  transition: background-color 0.3s ease;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo {
  height: 56px; /* Büyütülmüş footer logosu */
  width: auto;
  max-width: 230px;
  object-fit: contain;
  filter: var(--logo-filter);
}

.footer-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 340px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--brand-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: 22px;
  border-top: 1px solid var(--footer-bottom-border);
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* Confetti Canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3000;
  width: 100%;
  height: 100%;
}

/* Responsive */
@media (max-width: 900px) {
  .navbar {
    display: flex;
    justify-content: space-between;
    height: 90px;
    padding: 6px 0;
  }

  .brand-link {
    order: 1;
  }

  .site-logo {
    height: 90px;
    max-width: 310px;
  }

  .nav-actions {
    order: 2;
  }

  .navbar-left {
    order: 3;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--brand-blue);
    padding: 20px;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1100;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-item-dropdown {
    width: 100%;
  }

  .nav-dropdown-btn {
    width: 100%;
    justify-content: space-between;
  }

  .mega-menu {
    position: static;
    transform: none !important;
    width: 100%;
    max-width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: 1px solid var(--border-color);
    padding: 14px 10px;
    margin-top: 10px;
    display: none;
    max-height: 60vh;
    overflow-y: auto;
  }

  .mega-menu::before,
  .mega-menu::after {
    display: none;
  }

  .nav-item-dropdown.open .mega-menu {
    display: block;
  }

  .mega-menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .mega-menu-item {
    padding: 10px 8px;
    gap: 8px;
  }

  .mega-item-icon {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  .mega-item-desc {
    display: none;
  }

  .mega-menu-footer {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .btn-cta:not(.btn-register-nav) {
    display: none; /* Mobilde diğer cta butonlarını gizle */
  }
  .btn-register-nav {
    display: inline-flex !important;
    padding: 8px 14px !important;
    font-size: 0.88rem !important;
  }
  .navbar {
    height: 98px;
  }
  .site-logo {
    height: 78px;
    max-width: 260px;
  }
  .nav-links {
    top: 82px;
  }
}

@media (max-width: 768px) {

  .mobile-toggle {
    display: block;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat-item {
    width: 100%;
    justify-content: center;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .samegame-block {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }
}


/* ===================================================================
   YENİ OYUN KARTLARI (2048, Hafıza, Yılan)
   =================================================================== */

/* 4. 2048 Kartı */
.game-card.card-2048 {
  border-color: rgba(255, 111, 7, 0.25);
}
.game-card.card-2048:hover {
  transform: translateY(-8px);
  border-color: var(--brand-orange);
  box-shadow: 0 20px 35px -10px rgba(255, 111, 7, 0.25), 0 0 25px rgba(253, 200, 80, 0.2);
}
.card-2048 .game-badge-overlay {
  background: rgba(255, 111, 7, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.card-2048 .game-card-btn {
  background: var(--gradient-orange);
  box-shadow: 0 4px 15px rgba(255, 111, 7, 0.35);
}
.thumb-2048 {
  background: radial-gradient(circle at center, #ff6f07 0%, #1e1005 75%);
}

.mini-2048 {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  grid-gap: 5px;
  background: rgba(12, 24, 44, 0.85);
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.mini-2048-cell {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
}
.m2-2 { background: #38bdf8; color: #fff; }
.m2-8 { background: #0087f0; color: #fff; }
.m2-16 { background: #8ac900; color: #fff; }
.m2-64 { background: #ff6f07; color: #fff; }
.m2-512 { background: #f43f8c; color: #fff; }
.m2-2048 { background: #fdc850; color: #713f12; font-size: 0.7rem; font-weight: 900; }

/* 5. Hafıza Kartları Kartı */
.game-card.card-hafiza {
  border-color: rgba(150, 23, 220, 0.25);
}
.game-card.card-hafiza:hover {
  transform: translateY(-8px);
  border-color: var(--brand-purple);
  box-shadow: 0 20px 35px -10px rgba(150, 23, 220, 0.25), 0 0 25px rgba(244, 63, 140, 0.2);
}
.card-hafiza .game-badge-overlay {
  background: rgba(150, 23, 220, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.card-hafiza .game-card-btn {
  background: var(--gradient-purple);
  box-shadow: 0 4px 15px rgba(150, 23, 220, 0.35);
}
.thumb-hafiza {
  background: radial-gradient(circle at center, #9617dc 0%, #170724 75%);
}

.mini-hafiza {
  display: grid;
  grid-template-columns: repeat(4, 28px);
  grid-gap: 5px;
  background: rgba(12, 24, 44, 0.85);
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.mini-hafiza-card {
  width: 28px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.mini-hafiza-card.back {
  background: linear-gradient(135deg, #9617dc, #0087f0);
}
.mini-hafiza-card.front {
  background: rgba(255, 255, 255, 0.15);
}

/* 6. Neon Yılan Kartı */
.game-card.card-yilan {
  border-color: rgba(138, 201, 0, 0.25);
}
.game-card.card-yilan:hover {
  transform: translateY(-8px);
  border-color: var(--brand-green);
  box-shadow: 0 20px 35px -10px rgba(138, 201, 0, 0.25), 0 0 25px rgba(0, 135, 240, 0.2);
}
.card-yilan .game-badge-overlay {
  background: rgba(104, 158, 0, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.card-yilan .game-card-btn {
  background: var(--gradient-green);
  box-shadow: 0 4px 15px rgba(138, 201, 0, 0.35);
}
.thumb-yilan {
  background: radial-gradient(circle at center, #8ac900 0%, #03170e 75%);
}

.mini-yilan {
  width: 120px;
  height: 80px;
  background: rgba(12, 24, 44, 0.85);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.mini-snake-head {
  position: absolute;
  top: 28px;
  left: 65px;
  width: 12px;
  height: 12px;
  background: #38bdf8;
  border-radius: 4px;
  box-shadow: 0 0 8px #38bdf8;
}
.mini-snake-body1 {
  position: absolute;
  top: 28px;
  left: 50px;
  width: 12px;
  height: 12px;
  background: #8ac900;
  border-radius: 3px;
  box-shadow: 0 0 6px #8ac900;
}
.mini-snake-body2 {
  position: absolute;
  top: 43px;
  left: 50px;
  width: 12px;
  height: 12px;
  background: #8ac900;
  border-radius: 3px;
}
.mini-snake-food {
  position: absolute;
  top: 28px;
  left: 95px;
  width: 10px;
  height: 10px;
  background: #ff6f07;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff6f07;
  animation: bounceIcon 0.8s infinite alternate;
}

/* ===================================================================
   2048 OYUNU ÖZEL STİLLERİ
   =================================================================== */

.game-2048-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 460px;
  touch-action: none; /* Mobilde parmak kaydırmada ekranı kaydırma */
}

.board-2048 {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--board-bg);
  border: 3px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 12px;
  box-shadow: 0 12px 35px rgba(255, 111, 7, 0.12);
  user-select: none;
  margin-bottom: 20px;
  position: relative;
}

.cell-2048-bg {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
}

[data-theme="dark"] .cell-2048-bg {
  background: rgba(255, 255, 255, 0.04);
}

.tile-2048 {
  position: absolute;
  width: calc(25% - 15px);
  height: calc(25% - 15px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: #fff;
  transition: transform 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 5;
}

.tile-2048.tile-pop {
  animation: tilePop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes tilePop {
  0% { transform: scale(0.6); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* 2048 Renk Skalası */
.tile-2    { background: #e0f2fe; color: #0284c7; }
.tile-4    { background: #bae6fd; color: #0369a1; }
.tile-8    { background: #38bdf8; color: #fff; }
.tile-16   { background: #0087f0; color: #fff; }
.tile-32   { background: #8ac900; color: #fff; }
.tile-64   { background: #65a30d; color: #fff; }
.tile-128  { background: #fdc850; color: #713f12; font-size: 1.8rem; }
.tile-256  { background: #ff6f07; color: #fff; font-size: 1.8rem; }
.tile-512  { background: #ea580c; color: #fff; font-size: 1.8rem; }
.tile-1024 { background: #f43f8c; color: #fff; font-size: 1.4rem; }
.tile-2048 { background: linear-gradient(135deg, #fdc850 0%, #ff6f07 100%); color: #fff; font-size: 1.4rem; box-shadow: 0 0 25px rgba(253, 200, 80, 0.7); animation: pulseCell 1.5s infinite; }
.tile-super { background: linear-gradient(135deg, #9617dc 0%, #f43f8c 100%); color: #fff; font-size: 1.2rem; }

/* ===================================================================
   HAFIZA KARTLARI ÖZEL STİLLERİ
   =================================================================== */

.memory-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 650px;
}

.memory-grid {
  display: grid;
  gap: 12px;
  width: 100%;
  user-select: none;
  margin-bottom: 20px;
}

.memory-grid.grid-4x3 { grid-template-columns: repeat(4, 1fr); }
.memory-grid.grid-4x4 { grid-template-columns: repeat(4, 1fr); }
.memory-grid.grid-4x6 { grid-template-columns: repeat(6, 1fr); }

.memory-card {
  aspect-ratio: 1 / 1.15;
  perspective: 1000px;
  cursor: pointer;
}

.memory-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  border-radius: var(--radius-md);
}

.memory-card.flipped .memory-card-inner,
.memory-card.matched .memory-card-inner {
  transform: rotateY(180deg);
}

.memory-card-front,
.memory-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--border-color);
}

.memory-card-back {
  background: var(--gradient-pikoyun);
  color: #fff;
  font-size: 1.8rem;
  transition: transform 0.2s ease;
}

.memory-card:hover:not(.flipped):not(.matched) .memory-card-back {
  transform: scale(1.04);
  box-shadow: 0 8px 18px rgba(0, 135, 240, 0.25);
}

.memory-card-front {
  background: var(--bg-secondary);
  color: var(--text-main);
  transform: rotateY(180deg);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.memory-card.matched .memory-card-front {
  border-color: var(--brand-green);
  background: rgba(138, 201, 0, 0.12);
  animation: matchBounce 0.4s ease;
}

@keyframes matchBounce {
  0% { transform: rotateY(180deg) scale(0.9); }
  50% { transform: rotateY(180deg) scale(1.1); }
  100% { transform: rotateY(180deg) scale(1); }
}

/* ===================================================================
   NEON YILAN (SNAKE) ÖZEL STİLLERİ
   =================================================================== */

.snake-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 480px;
}

.snake-canvas-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--board-bg);
  border: 3px solid var(--brand-green);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(138, 201, 0, 0.15);
  margin-bottom: 20px;
}

#snake-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Mobil D-Pad Kontrolleri */
.mobile-dpad {
  display: none;
  grid-template-columns: repeat(3, 60px);
  grid-template-rows: repeat(3, 60px);
  gap: 8px;
  margin-top: 15px;
  user-select: none;
  touch-action: manipulation;
}

.dpad-btn {
  background: var(--btn-secondary-bg);
  border: 2px solid var(--border-color);
  border-radius: 14px;
  color: var(--text-main);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.dpad-btn:active {
  background: var(--brand-green);
  color: #fff;
  transform: scale(0.92);
}

.dpad-up { grid-column: 2; grid-row: 1; }
.dpad-left { grid-column: 1; grid-row: 2; }
.dpad-right { grid-column: 3; grid-row: 2; }
.dpad-down { grid-column: 2; grid-row: 3; }

@media (max-width: 768px) {
  .mobile-dpad {
    display: grid;
  }
}


/* ===================================================================
   SON 3 OYUN KARTLARI (Mayın Tarlası, Kelime Bulmaca, Tuğla Kırma)
   =================================================================== */

/* 7. Mayın Tarlası Kartı */
.game-card.card-mayintarlasi {
  border-color: rgba(2, 132, 199, 0.25);
}
.game-card.card-mayintarlasi:hover {
  transform: translateY(-8px);
  border-color: var(--brand-blue);
  box-shadow: 0 20px 35px -10px rgba(0, 135, 240, 0.25), 0 0 25px rgba(244, 63, 94, 0.2);
}
.card-mayintarlasi .game-badge-overlay {
  background: rgba(0, 135, 240, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.card-mayintarlasi .game-card-btn {
  background: var(--gradient-blue);
  box-shadow: 0 4px 15px rgba(0, 135, 240, 0.35);
}
.thumb-mayintarlasi {
  background: radial-gradient(circle at center, #0284c7 0%, #06152a 75%);
}

.mini-minesweeper {
  display: grid;
  grid-template-columns: repeat(4, 26px);
  grid-gap: 4px;
  background: rgba(12, 24, 44, 0.85);
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.mini-mine-cell {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
}
.mc-opened { background: rgba(255, 255, 255, 0.08); }
.mc-flag { background: #ff6f07; color: #fff; font-size: 0.75rem; }
.mc-1 { color: #38bdf8; }
.mc-2 { color: #8ac900; }
.mc-3 { color: #f43f8c; }

/* 8. Kelime Bulmaca Kartı */
.game-card.card-kelime {
  border-color: rgba(138, 201, 0, 0.25);
}
.game-card.card-kelime:hover {
  transform: translateY(-8px);
  border-color: var(--brand-green);
  box-shadow: 0 20px 35px -10px rgba(138, 201, 0, 0.25), 0 0 25px rgba(253, 200, 80, 0.2);
}
.card-kelime .game-badge-overlay {
  background: rgba(104, 158, 0, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.card-kelime .game-card-btn {
  background: var(--gradient-green);
  box-shadow: 0 4px 15px rgba(138, 201, 0, 0.35);
}
.thumb-kelime {
  background: radial-gradient(circle at center, #8ac900 0%, #0c1c0a 75%);
}

.mini-wordle {
  display: grid;
  grid-template-columns: repeat(5, 22px);
  grid-gap: 4px;
  background: rgba(12, 24, 44, 0.85);
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.mini-wordle-cell {
  width: 22px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.85rem;
  color: #fff;
}
.w-green { background: #8ac900; }
.w-yellow { background: #ff6f07; }
.w-gray { background: #475569; }

/* 9. Tuğla Kırma Kartı */
.game-card.card-tuglakirma {
  border-color: rgba(244, 63, 140, 0.25);
}
.game-card.card-tuglakirma:hover {
  transform: translateY(-8px);
  border-color: var(--brand-pink);
  box-shadow: 0 20px 35px -10px rgba(244, 63, 140, 0.25), 0 0 25px rgba(0, 135, 240, 0.2);
}
.card-tuglakirma .game-badge-overlay {
  background: rgba(244, 63, 140, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.card-tuglakirma .game-card-btn {
  background: linear-gradient(135deg, #f43f8c 0%, #9617dc 100%);
  box-shadow: 0 4px 15px rgba(244, 63, 140, 0.35);
}
.thumb-tuglakirma {
  background: radial-gradient(circle at center, #f43f8c 0%, #1a041f 75%);
}

.mini-bricks {
  display: grid;
  grid-template-columns: repeat(4, 28px);
  grid-gap: 4px;
  background: rgba(12, 24, 44, 0.85);
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.mini-brick {
  width: 28px;
  height: 12px;
  border-radius: 3px;
}
.mb-1 { background: #0087f0; }
.mb-2 { background: #8ac900; }
.mb-3 { background: #ff6f07; }
.mb-4 { background: #f43f8c; }

/* ===================================================================
   MAYIN TARLASI ÖZEL STİLLERİ
   =================================================================== */

.minesweeper-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  overflow-x: auto;
  padding: 10px 0;
}

.minesweeper-board {
  display: grid;
  gap: 3px;
  background: var(--board-bg);
  border: 3px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: 0 12px 35px rgba(0, 85, 255, 0.1);
  user-select: none;
  touch-action: manipulation;
  margin-bottom: 20px;
}

.mine-cell {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  cursor: pointer;
  background: rgba(0, 135, 240, 0.12);
  border: 1px solid var(--border-color);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.1s ease, background-color 0.15s ease;
}

.mine-cell:hover:not(.revealed) {
  background: rgba(0, 135, 240, 0.22);
  transform: scale(0.96);
}

.mine-cell.revealed {
  background: rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
  cursor: default;
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .mine-cell.revealed {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.04);
}

.mine-cell.flagged {
  background: rgba(255, 111, 7, 0.2);
  border-color: var(--brand-orange);
}

.mine-cell.exploded {
  background: #f43f5e !important;
  color: #fff !important;
  animation: tilePop 0.3s ease;
}

.mine-num-1 { color: #0284c7; }
.mine-num-2 { color: #16a34a; }
.mine-num-3 { color: #e11d48; }
.mine-num-4 { color: #7c3aed; }
.mine-num-5 { color: #ea580c; }
.mine-num-6 { color: #0891b2; }

/* ===================================================================
   KELİME BULMACA (WORDLE) ÖZEL STİLLERİ
   =================================================================== */

.wordle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 500px;
}

.wordle-grid {
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.wordle-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.wordle-cell {
  width: 54px;
  height: 54px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-main);
  background: var(--bg-secondary);
  transition: transform 0.2s ease, background-color 0.4s ease, border-color 0.4s ease;
}

.wordle-cell.filled {
  border-color: var(--brand-blue);
  animation: cellPop 0.15s ease;
}

.wordle-cell.flip {
  animation: cellFlip 0.45s ease forwards;
}

@keyframes cellFlip {
  0% {
    transform: rotateX(0deg);
  }
  50% {
    transform: rotateX(90deg);
  }
  100% {
    transform: rotateX(0deg);
  }
}

.wordle-cell.correct {
  background: #8ac900 !important;
  border-color: #8ac900 !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(138, 201, 0, 0.4);
}

.wordle-cell.present {
  background: #ff6f07 !important;
  border-color: #ff6f07 !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(255, 111, 7, 0.4);
}

.wordle-cell.absent {
  background: #475569 !important;
  border-color: #475569 !important;
  color: #fff !important;
}

@keyframes cellPop {
  0% { transform: scale(0.9); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Sanal Klavye */
.wordle-keyboard {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  user-select: none;
  touch-action: manipulation;
}

.kbd-row {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.kbd-key {
  height: 48px;
  min-width: 32px;
  flex: 1;
  max-width: 44px;
  border-radius: 8px;
  background: var(--btn-secondary-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.kbd-key.wide {
  max-width: 65px;
  flex: 1.5;
  font-size: 0.85rem;
}

.kbd-key:hover {
  background: var(--btn-secondary-hover);
  transform: translateY(-2px);
}

.kbd-key.correct {
  background: #8ac900 !important;
  color: #fff !important;
  border-color: transparent !important;
}

.kbd-key.present {
  background: #ff6f07 !important;
  color: #fff !important;
  border-color: transparent !important;
}

.kbd-key.absent {
  background: #334155 !important;
  color: #94a3b8 !important;
  opacity: 0.5;
  border-color: transparent !important;
}

/* ===================================================================
   TUĞLA KIRMA (BRICK BREAKER) ÖZEL STİLLERİ
   =================================================================== */

.brick-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 520px;
}

.brick-canvas-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #080f1d;
  border: 3px solid var(--brand-pink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(244, 63, 140, 0.2);
  margin-bottom: 20px;
  cursor: none; /* Fare imlecini gizle, palet fareyi takip etsin */
}

#brick-canvas {
  width: 100%;
  height: 100%;
  display: block;
}


/* ===================================================================
   Oyun Sayfaları "Nasıl Oynanır?" Kartı
   =================================================================== */

.how-to-play-card {
  width: 100%;
  max-width: 720px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 36px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.how-to-play-card:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 10px 30px rgba(0, 135, 240, 0.08);
}

.htp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.htp-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-pikoyun);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(0, 135, 240, 0.3);
}

.htp-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.htp-badge {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(0, 135, 240, 0.1);
  color: var(--brand-blue);
  border: 1px solid rgba(0, 135, 240, 0.25);
}

.htp-content {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.htp-section-title {
  font-weight: 800;
  color: var(--text-main);
  margin-top: 14px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.htp-list {
  margin-left: 20px;
  margin-bottom: 12px;
}

.htp-list li {
  margin-bottom: 6px;
}

.htp-tip-box {
  background: rgba(0, 135, 240, 0.06);
  border-left: 4px solid var(--brand-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-main);
}

.htp-content code {
  background: var(--bg-hover);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.88em;
  border: 1px solid var(--border-color);
  color: var(--brand-blue);
  font-weight: 700;
}

@media (max-width: 600px) {
  .how-to-play-card {
    padding: 20px 18px;
    margin-top: 24px;
  }
}

/* ===================================================================
   PikOyun - Üyelik, Favoriler, Skor Top 10 & Modallar
   =================================================================== */

/* --- 1. Nav Üyelik / Profil Butonları --- */
.nav-auth-container {
  display: flex;
  align-items: center;
}

/* Hemen Üye Ol Butonu - Ana Sayfa (.nav-link) ile birebir aynı yükseklik ve biçim */
.btn-register-nav,
.nav-auth-container .btn-register-nav,
button.btn-register-nav {
  padding: 10px 22px !important;
  border-radius: var(--radius-full) !important;
  font-size: 1.02rem !important;
  font-weight: 800 !important;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  background: var(--gradient-pikoyun) !important;
  box-shadow: 0 4px 14px rgba(0, 135, 240, 0.4) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
  letter-spacing: 0.2px;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-register-nav:hover,
.nav-auth-container .btn-register-nav:hover,
button.btn-register-nav:hover {
  transform: translateY(-2px);
  background: var(--gradient-btn-hover) !important;
  box-shadow: 0 6px 20px rgba(150, 23, 220, 0.45) !important;
  filter: brightness(1.08);
}

.nav-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.nav-user-badge:hover {
  border-color: var(--brand-blue);
}

.nav-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--brand-gradient);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
}

.nav-user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-main);
  font-weight: 700;
}

.nav-logout-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}

.nav-logout-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* --- 2. Favori Butonları --- */
.game-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.game-fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.game-fav-btn:hover {
  border-color: #f43f5e;
  background: rgba(244, 63, 94, 0.08);
  transform: translateY(-1px) scale(1.03);
}

.game-fav-btn .fav-icon {
  font-size: 1.15rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
}

.game-fav-btn.is-favorited {
  background: rgba(244, 63, 94, 0.12);
  border-color: #f43f5e;
  color: #e11d48;
}

.game-fav-btn.is-favorited .fav-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 2px 6px rgba(244, 63, 94, 0.4));
}

.card-fav-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 5;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .card-fav-btn {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
}

.card-fav-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.25);
}

.card-fav-btn.is-favorited {
  background: #ffe4e6;
  border-color: #f43f5e;
}

[data-theme="dark"] .card-fav-btn.is-favorited {
  background: #881337;
  border-color: #f43f5e;
}

/* --- 3. Top 10 Liderlik Tablosu --- */
.game-leaderboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 26px 30px;
  margin-top: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.leaderboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.leaderboard-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.leaderboard-icon {
  font-size: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(0, 135, 240, 0.12), rgba(150, 23, 220, 0.12));
  border-radius: 12px;
}

.leaderboard-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-main);
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.leaderboard-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 4px 0 0 0;
}

.btn-refresh-scores {
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-refresh-scores:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: rgba(0, 135, 240, 0.08);
}

.leaderboard-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  text-align: left;
}

.leaderboard-table th {
  background: var(--bg-hover);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.leaderboard-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.leaderboard-table tbody tr:last-child td {
  border-bottom: none;
}

.leaderboard-table tbody tr:hover {
  background: rgba(0, 135, 240, 0.04);
}

.leaderboard-table tbody tr.my-score-row {
  background: rgba(0, 135, 240, 0.12) !important;
  border-left: 3px solid var(--brand-blue) !important;
  font-weight: 700;
  box-shadow: inset 0 0 12px rgba(0, 135, 240, 0.08);
}

.col-rank {
  width: 80px;
  text-align: center;
}

.leaderboard-table td.cell-rank {
  text-align: center;
  font-weight: 800;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.92rem;
}

.rank-1 {
  background: linear-gradient(135deg, #fef08a 0%, #eab308 100%);
  color: #713f12;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.4);
}

.rank-2 {
  background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
  color: #334155;
  box-shadow: 0 2px 8px rgba(148, 163, 184, 0.4);
}

.rank-3 {
  background: linear-gradient(135deg, #ffedd5 0%, #fb923c 100%);
  color: #7c2d12;
  box-shadow: 0 2px 8px rgba(251, 146, 60, 0.4);
}

.rank-other {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.score-player-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-main);
}

.score-player-avatar {
  font-size: 1.1rem;
}

.score-val {
  font-weight: 800;
  color: var(--brand-blue);
  font-size: 1.05rem;
}

.score-detail-badge {
  display: inline-block;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.score-date {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.leaderboard-empty-state {
  text-align: center;
  padding: 36px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.leaderboard-empty-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 8px;
}

#embedded-contact-widget-host {
  pointer-events: none !important;
}

/* --- 4. Auth & Score Modalları --- */
.pikoyun-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pikoyun-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.pikoyun-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 32px 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.pikoyun-modal-overlay.active .pikoyun-modal-box {
  transform: translateY(0) scale(1);
}

.pikoyun-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.pikoyun-modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.auth-tabs {
  display: flex;
  background: rgba(0, 135, 240, 0.08);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-tab-btn:hover {
  color: var(--brand-blue);
}

.auth-tab-btn.active {
  color: #0087f0 !important;
  font-weight: 800;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 85, 255, 0.12);
}

[data-theme="dark"] .auth-tab-btn.active {
  color: #38bdf8 !important;
  background: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.auth-tab-btn.active::after {
  display: none;
}

.auth-form-group {
  margin-bottom: 16px;
  text-align: left;
}

.auth-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.auth-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 500;
  box-sizing: border-box;
  transition: all 0.2s;
}

[data-theme="dark"] .auth-input {
  border-color: #475569;
  background: #0f172a;
  color: #f8fafc;
}

.auth-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 135, 240, 0.25);
}

.auth-submit-btn {
  width: 100%;
  padding: 13px 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff !important;
  background: var(--gradient-pikoyun) !important;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 135, 240, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: all 0.25s;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.3px;
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  background: var(--gradient-btn-hover) !important;
  box-shadow: 0 6px 22px rgba(150, 23, 220, 0.5);
}

.auth-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.auth-message {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  display: none;
}

.auth-message.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

[data-theme="dark"] .auth-message.error {
  background: #450a0a;
  color: #fca5a5;
  border-color: #7f1d1d;
}

.auth-message.success {
  display: block;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

[data-theme="dark"] .auth-message.success {
  background: #052e16;
  color: #86efac;
  border-color: #14532d;
}

/* Skor Kaydetme Prompt Modalı */
.score-prompt-box {
  text-align: center;
}

.score-prompt-icon {
  font-size: 3.5rem;
  display: inline-block;
  margin-bottom: 12px;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.score-prompt-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: var(--text-main);
}

.score-prompt-pill {
  display: inline-block;
  background: linear-gradient(135deg, rgba(0, 135, 240, 0.15), rgba(150, 23, 220, 0.15));
  border: 1px solid var(--border-color);
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-blue);
  margin-bottom: 16px;
}

.score-prompt-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 24px 0;
}

.score-prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-prompt-primary {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 1.04rem;
  font-weight: 800;
  color: #ffffff !important;
  background: var(--gradient-pikoyun) !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 135, 240, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.2px;
}

.btn-prompt-primary:hover {
  transform: translateY(-2px);
  background: var(--gradient-btn-hover) !important;
  box-shadow: 0 6px 22px rgba(150, 23, 220, 0.5);
}

.btn-prompt-secondary {
  width: 100%;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .btn-prompt-secondary {
  color: #f8fafc;
  background: #1e293b;
  border-color: #475569;
}

.btn-prompt-secondary:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-prompt-secondary:hover {
  background: #334155;
  border-color: #64748b;
}

.btn-prompt-ghost {
  background: transparent;
  border: none;
  color: #64748b !important;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
  transition: all 0.2s;
  display: inline-block;
}

[data-theme="dark"] .btn-prompt-ghost {
  color: #94a3b8 !important;
}

.btn-prompt-ghost:hover {
  color: #0f172a !important;
  text-decoration: underline;
}

[data-theme="dark"] .btn-prompt-ghost:hover {
  color: #f8fafc !important;
}

/* Toast Bildirimleri */
#pikoyun-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.pikoyun-toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pikoyun-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.pikoyun-toast.toast-success {
  border-left: 4px solid #10b981;
}

.pikoyun-toast.toast-info {
  border-left: 4px solid var(--brand-blue);
}

.pikoyun-toast.toast-error {
  border-left: 4px solid #ef4444;
}

@media (max-width: 600px) {
  .game-leaderboard-card {
    padding: 18px 14px;
  }
  .leaderboard-table th,
  .leaderboard-table td {
    padding: 10px 10px;
    font-size: 0.85rem;
  }
  .col-date, .cell-date {
    display: none;
  }
}

/* ===================================================================
   PikOyun - 1-5 Yıldız Puanlama Sistemi
   =================================================================== */
.game-rating-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 0.88rem;
  color: var(--text-main);
  user-select: none;
  transition: all 0.2s ease;
}

.game-rating-bar:hover {
  border-color: #f59e0b;
}

.stars-picker {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}

.stars-picker .star {
  font-size: 1.28rem;
  color: #cbd5e1;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.18s ease;
  line-height: 1;
}

[data-theme="dark"] .stars-picker .star {
  color: #475569;
}

.stars-picker .star:hover {
  transform: scale(1.3);
}

.stars-picker .star.hover,
.stars-picker .star.active {
  color: #f59e0b;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.rating-info {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.rating-info .rating-score-highlight {
  color: #f59e0b;
  font-weight: 800;
}

.game-card-rating {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f59e0b;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.game-card-rating.unrated {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.84rem;
}

/* ===================================================================
   PikOyun - Üye Profil & İstatistikler Sayfası
   =================================================================== */
.profile-main-container {
  padding-top: 32px;
  padding-bottom: 60px;
  max-width: 1200px;
}

/* Konuk Ekranı */
.profile-guest-card {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  max-width: 580px;
  margin: 40px auto;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.guest-card-icon {
  font-size: 3.8rem;
  display: block;
  margin-bottom: 16px;
}

.guest-card-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.guest-card-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.guest-card-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

/* Üst Profil Kartı (Hero) */
.profile-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.profile-hero-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 320px;
}

.profile-avatar-large {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 135, 240, 0.15), rgba(150, 23, 220, 0.15));
  border: 3px solid var(--brand-blue);
  box-shadow: 0 6px 20px rgba(0, 135, 240, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.4rem;
  user-select: none;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-avatar-large:hover {
  transform: scale(1.08) rotate(4deg);
}

.profile-user-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-display-username {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.profile-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
}

.profile-fullname {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-blue);
  margin: 2px 0 6px 0;
}

.profile-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Özet İstatistik Kutuları */
.profile-summary-grid {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-summary-box {
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 16px 22px;
  min-width: 140px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.profile-summary-box:hover {
  transform: translateY(-2px);
  border-color: var(--brand-blue);
}

.summary-box-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 4px;
}

.summary-box-val {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1.2;
}

.summary-box-val.gold {
  color: #f59e0b;
}

.summary-box-lbl {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Bölüm Kartları */
.profile-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.customization-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.custom-col-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.custom-col-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

/* Avatar Gridi */
.avatar-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 10px;
}

.avatar-opt {
  width: 52px;
  height: 52px;
  font-size: 1.85rem;
  border-radius: 14px;
  background: var(--bg-hover);
  border: 2px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.avatar-opt:hover {
  transform: scale(1.15);
  border-color: var(--brand-blue);
  background: rgba(0, 135, 240, 0.08);
}

.avatar-opt.selected {
  border-color: var(--brand-blue);
  background: rgba(0, 135, 240, 0.15);
  box-shadow: 0 0 14px rgba(0, 135, 240, 0.4);
  transform: scale(1.12);
}

/* Renk Gridi */
.color-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.color-swatch-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: 2px solid transparent;
}

[data-theme="dark"] .color-swatch-btn {
  border-color: #0f172a;
}

.color-swatch-btn:hover {
  transform: scale(1.2);
}

.color-swatch-btn.selected {
  outline: 3px solid var(--text-main);
  outline-offset: 2px;
  transform: scale(1.15);
}

/* Oyun Bazında İstatistik Kartları */
.profile-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.profile-game-card {
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.25s ease;
}

.profile-game-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-blue);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.pgc-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pgc-icon {
  font-size: 2.2rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 135, 240, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pgc-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 2px 0;
}

.pgc-category {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.pgc-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
}

.pgc-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}

.pgc-stat-lbl {
  color: var(--text-muted);
}

.pgc-stat-val {
  font-weight: 700;
  color: var(--text-main);
}

.pgc-stat-val.accent {
  color: var(--brand-blue);
  font-weight: 800;
}

.pgc-stat-val.gold {
  color: #f59e0b;
  font-weight: 800;
}

.pgc-stat-date {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pgc-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-pikoyun);
  color: #ffffff !important;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(0, 135, 240, 0.3);
}

.pgc-play-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 6px 16px rgba(150, 23, 220, 0.4);
}

/* Nav User Link */
.nav-user-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-user-link:hover {
  color: var(--brand-blue);
}

.nav-profile-btn {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 4px;
  border-radius: 6px;
  transition: transform 0.2s;
}

.nav-profile-btn:hover {
  transform: rotate(30deg) scale(1.15);
}

@media (max-width: 900px) {
  .customization-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .profile-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-summary-grid {
    width: 100%;
    justify-content: space-between;
  }
  .profile-summary-box {
    flex: 1;
    min-width: 90px;
    padding: 12px 10px;
  }
}

/* Oturum açıkken oyun bitince modal içi başarı kartı */
.modal-score-saved-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(0, 135, 240, 0.14));
  border: 1.5px solid rgba(16, 185, 129, 0.5);
  border-radius: 14px;
  padding: 10px 18px;
  margin: 14px auto 12px auto;
  text-align: left;
  font-size: 0.94rem;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.18);
  animation: pikoyunPopIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-score-saved-badge .badge-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.modal-score-saved-badge .badge-body {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.modal-score-saved-badge .badge-title {
  font-weight: 800;
  color: #10b981;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-score-saved-badge .badge-text {
  color: var(--text-main);
  font-size: 0.92rem;
}

.modal-score-saved-badge .badge-text strong {
  color: var(--brand-blue);
}

[data-theme="dark"] .modal-score-saved-badge .badge-text {
  color: #f1f5f9;
}

/* ===================================================================
   Sıkça Sorulan Sorular (FAQ) & GEO Zenginleştirme Kartı
   =================================================================== */

.game-faq-card {
  width: 100%;
  max-width: 720px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 16px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.game-faq-card:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 10px 30px rgba(0, 135, 240, 0.08);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(0, 135, 240, 0.35);
  transform: translateY(-1px);
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.faq-question-icon {
  flex-shrink: 0;
  color: var(--brand-blue);
  font-size: 1.1rem;
}

.faq-answer {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  padding-left: 26px;
}

@media (max-width: 768px) {
  .game-faq-card {
    padding: 20px 18px;
  }
  .faq-item {
    padding: 14px 16px;
  }
  .faq-answer {
    padding-left: 0;
    margin-top: 6px;
  }
}


/* ===================================================================
   LİNGO / KELİME BULMACA GELİŞMİŞ STİLLERİ (4, 5, 6, 7 Harf & Zorluk)
   =================================================================== */

.lingo-top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.wordle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.lingo-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: rgba(0, 135, 240, 0.08);
  border: 1px solid rgba(0, 135, 240, 0.25);
  color: var(--brand-blue);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.wordle-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  align-items: center;
}

.wordle-row {
  display: grid;
  gap: 8px;
  justify-content: center;
}

.wordle-row.shake {
  animation: rowShake 0.4s ease;
}

@keyframes rowShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.wordle-cell {
  width: var(--cell-size, 54px);
  height: var(--cell-size, 54px);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--cell-font-size, 1.7rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-main);
  background: var(--bg-secondary);
  transition: transform 0.2s ease, background-color 0.4s ease, border-color 0.4s ease;
}

.wordle-cell.filled {
  border-color: var(--brand-blue);
  animation: cellPop 0.15s ease;
}

.wordle-cell.initial-hint {
  border-color: var(--brand-blue) !important;
  background: rgba(0, 135, 240, 0.12) !important;
  color: var(--brand-blue) !important;
  box-shadow: 0 0 12px rgba(0, 135, 240, 0.25);
}

.lingo-toast {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #0c182c;
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

[data-theme="dark"] .lingo-toast {
  background: #1e293b;
  color: #f8fafc;
  border-color: rgba(56, 189, 248, 0.3);
}

.lingo-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {
  .lingo-top-actions {
    width: 100%;
    justify-content: center;
  }
  .wordle-cell {
    width: var(--cell-mobile-size, 44px);
    height: var(--cell-mobile-size, 44px);
    font-size: clamp(1rem, 4vw, var(--cell-font-size, 1.4rem));
    border-radius: 8px;
  }
}
