/* ==========================================================================
   DERSE Bİ' MOLA - STİL SİSTEMİ (style.css)
   MEB FATİH AĞI & PARDUS ETAP AKILLI TAHTA MULTI-TOUCH OPTİMİZE
   SIFIR HARİCİ CDN - %100 SAF VANILLA CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS DEĞİŞKENLERİ VE TEMA SİSTEMİ
   -------------------------------------------------------------------------- */
:root {
  /* Temel Arka Plan ve Yüzeyler */
  --bg-main: #0b1120;
  --bg-surface: #131d33;
  --bg-surface-elevated: #1e293b;
  --bg-surface-card: rgba(30, 41, 59, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Mavi Takım Renk Paleti (1. Oyuncu) */
  --blue-primary: #2563eb;
  --blue-light: #38bdf8;
  --blue-glow: rgba(56, 189, 248, 0.45);
  --blue-surface: rgba(15, 33, 64, 0.9);
  --blue-btn: #1d4ed8;
  --blue-btn-hover: #2563eb;
  --blue-btn-active: #1e40af;

  /* Kırmızı Takım Renk Paleti (2. Oyuncu) */
  --red-primary: #dc2626;
  --red-light: #f87171;
  --red-glow: rgba(248, 113, 113, 0.45);
  --red-surface: rgba(64, 18, 26, 0.9);
  --red-btn: #b91c1c;
  --red-btn-hover: #dc2626;
  --red-btn-active: #991b1b;

  /* Vurgu ve Başarı Renkleri */
  --color-green: #10b981;
  --color-green-glow: rgba(16, 185, 129, 0.5);
  --color-gold: #f59e0b;
  --color-purple: #8b5cf6;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Tipografi & Boyutlandırma */
  --font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. GENEL SIFIRLAMA & AKILLI TAHTA MULTI-TOUCH KURALLARI
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* Akıllı tahtada çift dokunma yakınlaştırmasını (zoom) ve metin seçimini engelle */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden; /* Asla kaydırma çubuğu çıkmamalı */
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.4;
  touch-action: manipulation;
}

/* Arka Plan Mesh Gradyanı */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(220, 38, 38, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    #0b1120;
  pointer-events: none;
}

/* Görünüm Yöneticisi (SPA View Containers) */
.view-container {
  display: none;
  width: 100vw;
  height: calc(100vh - 72px);
  overflow: hidden;
}

.view-container.active {
  display: flex;
}

.hide {
  display: none !important;
}

/* --------------------------------------------------------------------------
   3. ÜST NAVİGASYON & KONTROL ÇUBUĞU (APP-HEADER)
   -------------------------------------------------------------------------- */
.app-header {
  height: 72px;
  width: 100vw;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.logo-badge:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.logo-icon {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.logo-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* Sınıf Seviyesi Seçim Çipleri */
.grade-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.grade-chip {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}

.grade-chip:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.grade-chip.active {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

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

.header-divider {
  width: 1px;
  height: 28px;
  background: var(--border-strong);
  margin: 0 4px;
}

/* Araç Butonları */
.tool-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.tool-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.tool-btn:active {
  transform: scale(0.97);
}

.pro-tool-btn {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.12);
}

.pro-tool-btn:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.7);
}

.pro-badge {
  background: #f59e0b;
  color: #000;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
}

.icon-tool-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-tool-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Öğretmen Girişi Butonu */
.teacher-auth-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35);
  font-family: inherit;
}

.teacher-auth-btn:hover {
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.55);
  transform: translateY(-1px);
}

.teacher-auth-btn.logged-in {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

/* --------------------------------------------------------------------------
   4. GÖRÜNÜM 1: ANA LOBİ EKRANI (#view-lobby)
   -------------------------------------------------------------------------- */
#viewLobby {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto; /* Lobi içinde gerekirse yumuşak kaydırma */
  padding: 16px 32px 24px;
}

.lobby-content {
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
}

/* Hero Tanıtım Alanı */
.lobby-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--blue-light);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.highlight-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 840px;
}

/* Tahtadaki Aktif Yarışmacılar Çubuğu */
.active-contestants-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-subtle);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-top: 4px;
}

.contestant-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.contestant-tag.blue-tag {
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.contestant-tag.red-tag {
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.team-badge {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.blue-tag .team-badge { color: var(--blue-light); }
.red-tag .team-badge { color: var(--red-light); }

.student-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.vs-circle {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--color-gold);
  background: rgba(245, 158, 11, 0.15);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.quick-draw-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.quick-draw-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}

/* Sınıf Kartları Grid */
.section-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.grade-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.grade-card {
  background: rgba(30, 41, 59, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: inherit;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.grade-card:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.grade-card.active {
  background: rgba(30, 41, 59, 0.95);
  border-color: var(--color-gold);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.25);
}

.grade-card-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-gold);
  text-transform: uppercase;
}

.grade-card-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.grade-card-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
}

.grade-card-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* 2 Ana Oyun Kartı Bölümü */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.game-card {
  position: relative;
  background: rgba(19, 29, 51, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.game-card.math-theme {
  border-left: 6px solid #38bdf8;
}

.game-card.turkish-theme {
  border-left: 6px solid #f472b6;
}

.game-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.game-category-tag {
  font-size: 0.75rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.math-tag {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.turkish-tag {
  background: rgba(244, 114, 182, 0.15);
  color: #f472b6;
  border: 1px solid rgba(244, 114, 182, 0.3);
}

.game-speed-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.game-visual-icon {
  font-size: 3rem;
  margin-bottom: 8px;
}

.game-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}

.game-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 14px;
}

.game-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.feature-pill {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: var(--text-primary);
}

.btn-play-game {
  width: 100%;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.math-theme .btn-play-game {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.4);
}

.math-theme .btn-play-game:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.6);
  transform: translateY(-2px);
}

.turkish-theme .btn-play-game {
  background: linear-gradient(135deg, #db2777 0%, #9333ea 100%);
  box-shadow: 0 4px 18px rgba(219, 39, 119, 0.4);
}

.turkish-theme .btn-play-game:hover {
  background: linear-gradient(135deg, #be185d 0%, #7e22ce 100%);
  box-shadow: 0 6px 24px rgba(219, 39, 119, 0.6);
  transform: translateY(-2px);
}

.btn-play-game:active {
  transform: scale(0.98);
}

/* Düello Ayarları Barı */
.duel-settings-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.setting-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

.target-score-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px;
  border-radius: var(--radius-full);
}

.score-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.score-btn.active {
  background: #3b82f6;
  color: #fff;
}

/* Switch Toggle Butonu */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #10b981;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.setting-info-badge {
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   5. GÖRÜNÜM 2: DÜELLO EKRANI (#view-duel - Split Screen)
   -------------------------------------------------------------------------- */
.split-screen-view {
  flex-direction: column;
  height: calc(100vh - 72px);
  position: relative;
  background: #090e1a;
}

/* Düello Üst Kontrol HUD */
.duel-hud {
  height: 56px;
  min-height: 56px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 20;
}

.hud-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.hud-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

.hud-exit-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

.hud-center-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-grade-badge {
  background: rgba(245, 158, 11, 0.2);
  color: var(--color-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.hud-game-type {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.hud-round-badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.hud-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Split-Screen 50/50 Alanı */
.split-arena {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
  height: calc(100% - 56px);
}

/* Oyuncu Yarısı (Her iki taraf için simetrik) */
.player-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 32px 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

/* Mavi Takım Bölgesi */
.blue-player {
  background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.2) 0%, transparent 60%), #0c1527;
  border-right: 2px solid rgba(56, 189, 248, 0.25);
}

.blue-player.winner-glow {
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.4) 0%, #0c1527 80%);
}

/* Kırmızı Takım Bölgesi */
.red-player {
  background: radial-gradient(circle at 90% 20%, rgba(220, 38, 38, 0.2) 0%, transparent 60%), #1f0d14;
  border-left: 2px solid rgba(248, 113, 113, 0.25);
}

.red-player.winner-glow {
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.4) 0%, #1f0d14 80%);
}

/* Oyuncu Üst Bilgi ve Yıldız Puan Barı */
.player-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.blue-avatar {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 3px solid var(--blue-light);
}

.red-avatar {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border: 3px solid var(--red-light);
}

.player-labels {
  display: flex;
  flex-direction: column;
}

.team-title {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.blue-player .team-title { color: var(--blue-light); }
.red-player .team-title { color: var(--red-light); }

.player-name {
  font-size: 1.55rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.01em;
}

/* Yıldız Puan Barı */
.player-score-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.stars-track {
  display: flex;
  align-items: center;
  gap: 6px;
}

.star-slot {
  font-size: 1.8rem;
  line-height: 1;
  opacity: 0.22;
  filter: grayscale(1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.star-slot.filled {
  opacity: 1;
  filter: grayscale(0) drop-shadow(0 0 10px rgba(245, 158, 11, 0.8));
  transform: scale(1.2);
}

.score-badge {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  min-width: 48px;
  text-align: right;
}

/* Soru Kartı - Sınıfın arkasından bile rahatça okunabilir dev boyut */
.duel-question-card {
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  margin-bottom: 24px;
}

.blue-player .duel-question-card {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.35) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.red-player .duel-question-card {
  border-color: rgba(248, 113, 113, 0.35);
  background: linear-gradient(180deg, rgba(153, 27, 27, 0.35) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.question-meta-tag {
  position: absolute;
  top: -12px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.blue-player .question-meta-tag {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.5);
}

.red-player .question-meta-tag {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.5);
}

.question-text {
  font-size: 2.3rem; /* Yüksek okunabilirlik */
  font-weight: 900;
  color: #ffffff;
  line-height: 1.35;
  letter-spacing: -0.01em;
  word-break: break-word;
}

/* 3 Adet Devasa Şık Butonu (Dokunmatik ve Pointerdown İçin Min 95px Yükseklik) */
.duel-options-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.duel-option-btn {
  min-height: 94px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  padding: 12px 24px;
  gap: 20px;
  border: 3px solid transparent;
  cursor: pointer;
  touch-action: none; /* Çoklu dokunmatik gecikmesini sıfırla */
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  font-family: inherit;
  outline: none;
}

.blue-player .duel-option-btn {
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.blue-player .duel-option-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.blue-player .duel-option-btn:active {
  background: #1d4ed8;
  transform: scale(0.97);
}

.red-player .duel-option-btn {
  background: linear-gradient(135deg, #7f1d1d 0%, #450a0a 100%);
  border-color: rgba(248, 113, 113, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.red-player .duel-option-btn:hover {
  background: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%);
  border-color: #f87171;
  transform: translateY(-2px);
}

.red-player .duel-option-btn:active {
  background: #b91c1c;
  transform: scale(0.97);
}

.opt-letter {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.opt-text {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  text-align: left;
  line-height: 1.2;
}

/* Şık Durumları: Doğru & Yanlış */
.duel-option-btn.btn-correct {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  border-color: #34d399 !important;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.8) !important;
  transform: scale(1.03) !important;
  animation: pulseCorrect 0.6s ease infinite alternate;
}

@keyframes pulseCorrect {
  from { transform: scale(1.02); }
  to { transform: scale(1.05); }
}

.duel-option-btn.btn-wrong {
  background: #450a0a !important;
  border-color: #ef4444 !important;
  opacity: 0.6;
}

/* Ortadaki Neon Bölücü Çizgi ve VS Rozeti */
.arena-divider {
  width: 4px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.divider-beam {
  flex: 1;
  width: 3px;
  background: linear-gradient(180deg, transparent 0%, rgba(245, 158, 11, 0.6) 50%, transparent 100%);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.divider-vs-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #0f172a;
  border: 3px solid var(--color-gold);
  color: var(--color-gold);
  font-size: 1.2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
  flex-shrink: 0;
  animation: vsGlow 2.5s infinite alternate;
}

@keyframes vsGlow {
  0% { transform: scale(1); box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); }
  100% { transform: scale(1.1); box-shadow: 0 0 30px rgba(245, 158, 11, 0.8); }
}

/* --------------------------------------------------------------------------
   6. HATA KORUMASI: 1.5 SANİYELİK KİLİT VE CEZA OVERLAY'I
   -------------------------------------------------------------------------- */
.penalty-lockout-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  animation: fadeIn 0.2s ease;
}

.lockout-modal-box {
  background: rgba(69, 10, 10, 0.95);
  border: 3px solid #ef4444;
  border-radius: var(--radius-xl);
  padding: 32px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(239, 68, 68, 0.5);
  animation: shakePenalty 0.4s ease;
}

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

.lockout-icon {
  font-size: 3.5rem;
  line-height: 1;
}

.lockout-title {
  font-size: 2rem;
  font-weight: 900;
  color: #f87171;
}

.lockout-desc {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.penalty-progress-bar {
  width: 260px;
  height: 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 8px;
}

.penalty-progress-fill {
  height: 100%;
  width: 100%;
  background: #ef4444;
  border-radius: var(--radius-full);
  transition: width 1.5s linear;
}

/* Puan Kazanma Toast'ı */
.point-won-toast {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #10b981, #059669);
  border: 3px solid #6ee7b7;
  color: #fff;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-size: 1.6rem;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.6);
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: popToast 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popToast {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* --------------------------------------------------------------------------
   7. PEDAGOJİK ÇÖZÜM AÇIKLAMASI ALT / ORTA BANNERI
   -------------------------------------------------------------------------- */
.solution-popup-banner {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 950px;
  z-index: 40;
  animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.solution-popup-content {
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.25);
  backdrop-filter: blur(12px);
}

.solution-icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.solution-details {
  flex: 1;
}

.solution-header {
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.solution-body {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
}

.solution-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-strong);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  flex-shrink: 0;
}

.solution-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   8. GÖRÜNÜM 3: ZAFER & MAÇ SONU EKRANI (VICTORY OVERLAY)
   -------------------------------------------------------------------------- */
.victory-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 32, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s ease;
}

.confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.victory-card {
  position: relative;
  z-index: 2;
  background: rgba(19, 29, 51, 0.95);
  border: 3px solid var(--color-gold);
  border-radius: var(--radius-xl);
  padding: 44px 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(245, 158, 11, 0.4);
  animation: victoryPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes victoryPop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.trophy-visual {
  font-size: 5.5rem;
  line-height: 1;
  margin-bottom: 10px;
  animation: trophyFloat 3s ease-in-out infinite alternate;
}

@keyframes trophyFloat {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-10px) scale(1.08); }
}

.victory-subtitle {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.winner-player-title {
  font-size: 2.6rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.victory-score-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: rgba(0, 0, 0, 0.4);
  padding: 16px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.score-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.score-team .team-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.score-team .score-val {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.blue-winner-box .score-val { color: var(--blue-light); }
.red-winner-box .score-val { color: var(--red-light); }

.score-vs {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-muted);
}

.victory-congrats {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 580px;
}

.victory-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.btn-action-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  border: none;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
  transition: all var(--transition-fast);
  font-family: inherit;
}

.btn-action-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.7);
}

.btn-action-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-strong);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.btn-action-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}

.btn-action-outline {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  transition: color var(--transition-fast);
  font-family: inherit;
}

.btn-action-outline:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   9. MODAL SİSTEMİ (ÖĞRETMEN GİRİŞİ, ÇARKIFELEK, SORU EKLEME, LİG)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease;
  padding: 20px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-window {
  position: relative;
  background: rgba(19, 29, 51, 0.98);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: modalScale 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalScale {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-badge-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Auth Modalı İçeriği */
.freemium-perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.perk-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
}

.perk-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.perk-info strong {
  color: var(--color-gold);
}

.btn-google-login {
  width: 100%;
  background: #ffffff;
  color: #1f2937;
  border: none;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
  transition: all var(--transition-fast);
  font-family: inherit;
}

.btn-google-login:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.auth-security-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Kura & Çarkıfelek Modalı */
.picker-modal-window {
  max-width: 680px;
}

.picker-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.picker-slot {
  flex: 1;
  background: rgba(15, 23, 42, 0.8);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  border: 2px solid transparent;
}

.picker-slot.blue-slot {
  border-color: rgba(56, 189, 248, 0.4);
}

.picker-slot.red-slot {
  border-color: rgba(248, 113, 113, 0.4);
}

.slot-header {
  font-size: 0.75rem;
  font-weight: 900;
  display: block;
  margin-bottom: 8px;
}

.blue-slot .slot-header { color: var(--blue-light); }
.red-slot .slot-header { color: var(--red-light); }

.slot-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.slot-avatar {
  font-size: 2.4rem;
}

.slot-name {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
}

.picker-vs {
  font-size: 1.8rem;
  color: var(--color-gold);
}

.picker-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-spin-wheel {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  font-weight: 900;
  padding: 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  font-family: inherit;
  transition: all var(--transition-fast);
}

.btn-spin-wheel:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.6);
}

.btn-use-selected {
  width: 100%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  font-size: 1.15rem;
  font-weight: 900;
  padding: 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
  font-family: inherit;
}

.class-roster-details {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.roster-summary {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  cursor: pointer;
}

.roster-editor-box {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roster-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.roster-textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.roster-actions {
  display: flex;
  gap: 10px;
}

.btn-save-roster {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
}

.btn-reset-roster {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
}

/* Soru Ekleme Formu & Modalı */
.custom-q-modal-window {
  max-width: 680px;
}

.custom-q-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: flex;
  gap: 14px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.custom-input {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-strong);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
}

.custom-input:focus {
  outline: none;
  border-color: #38bdf8;
}

.border-green {
  border-color: #10b981;
}

.text-green { color: #10b981 !important; }
.text-red { color: #f87171 !important; }

.btn-submit-q {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.saved-questions-section {
  margin-top: 24px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.saved-q-header {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.saved-q-list {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.saved-q-item {
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.saved-q-meta {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.btn-del-q {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-weight: bold;
}

.empty-q-msg {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 12px;
}

/* Sınıf Ligi Tablosu */
.leaderboard-modal-window {
  max-width: 650px;
}

.leaderboard-table-container {
  max-height: 350px;
  overflow-y: auto;
  margin-bottom: 16px;
}

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

.leaderboard-table th {
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.leaderboard-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: #fff;
  font-weight: 700;
}

.btn-reset-league {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
}

/* Global Toast Bildirimi */
.toast-notification {
  position: fixed;
  top: 84px;
  right: 24px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--color-gold);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 800;
  z-index: 200;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   10. AKILLI TAHTA ÇÖZÜNÜRLÜK UYUMLULUĞU (RESPONSIVE FOR SMART BOARDS)
   -------------------------------------------------------------------------- */
@media (max-height: 720px) {
  .app-header { height: 60px; padding: 0 16px; }
  .view-container { height: calc(100vh - 60px); }
  .duel-question-card { min-height: 140px; padding: 16px 20px; margin-bottom: 16px; }
  .question-text { font-size: 1.8rem; }
  .duel-option-btn { min-height: 78px; padding: 10px 18px; }
  .opt-text { font-size: 1.6rem; }
  .opt-letter { width: 44px; height: 44px; font-size: 1.3rem; }
  .hero-title { font-size: 1.7rem; }
}
