/* ===================================================================
   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;

  --gradient-pikoyun: linear-gradient(135deg, #0087f0 0%, #1570f2 40%, #8ac900 100%);
  --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;

  --gradient-pikoyun: linear-gradient(135deg, #38bdf8 0%, #0087f0 50%, #a3e635 100%);
  --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: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px; /* Daha büyük navbar */
  padding: 4px 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Büyütülmüş Logo */
.site-logo {
  height: 68px; /* 50px'den 68px'e büyütüldü */
  width: auto;
  max-width: 250px;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.3s ease;
  filter: var(--logo-filter);
}

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

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

.nav-link {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--nav-link-color);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.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-pikoyun);
  box-shadow: 0 4px 12px rgba(0, 135, 240, 0.3);
}

.nav-actions {
  display: flex;
  align-items: center;
  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);
  box-shadow: 0 8px 24px rgba(138, 201, 0, 0.45);
  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 {
  color: #fff;
  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);
}

.game-card-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ===================================================================
   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-pikoyun);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 135, 240, 0.35);
  font-weight: 800;
}

.ctrl-btn.primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 18px rgba(138, 201, 0, 0.45);
}

.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: 768px) {
  .navbar {
    height: 78px;
  }

  .site-logo {
    height: 54px;
    max-width: 195px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 78px;
    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);
  }

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

  .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 {
  transform: rotateX(180deg);
}

.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;
  }
}
