/* ==========================================================================
   DERSE Bİ' MOLA - STİL SİSTEMİ (style.css)
   BEYAZ, AYDINLIK, ÇOCUK DOSTU VE ENERJİK EDTECH AKILLI TAHTA TEMASI
   MEB FATİH AĞI & PARDUS ETAP MULTI-TOUCH OPTİMİZE
   SIFIR HARİCİ CDN - %100 SAF VANILLA CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS DEĞİŞKENLERİ VE BEYAZ/CANLI TEMA
   -------------------------------------------------------------------------- */
:root {
  /* Temel Bembeyaz Arka Plan ve Yüzeyler */
  --bg-main: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f8fafc;
  --bg-surface-card: #ffffff;
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Metin Renkleri (Sınıfın arkasından bile çok net okunur yüksek kontrast) */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  /* Mavi Takım Renk Paleti (1. Oyuncu) */
  --blue-primary: #2563eb;
  --blue-light: #38bdf8;
  --blue-bg: #eff6ff;
  --blue-bg-card: #ffffff;
  --blue-border: #93c5fd;

  /* Kırmızı Takım Renk Paleti (2. Oyuncu) */
  --red-primary: #e11d48;
  --red-light: #fb7185;
  --red-bg: #fff1f2;
  --red-bg-card: #ffffff;
  --red-border: #fca5a5;

  /* Canlı Vurgu ve Başarı Renkleri */
  --color-green: #059669;
  --color-green-light: #10b981;
  --color-gold: #d97706;
  --color-gold-light: #f59e0b;
  --color-purple: #7c3aed;
  --color-pink: #db2777;

  /* 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;
  -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: #ffffff;
  color: var(--text-primary);
  line-height: 1.4;
  touch-action: manipulation;
}

/* Bembeyaz, Güneşli, Neşeli Arka Plan Efekti */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: 
    radial-gradient(circle at 10% 12%, rgba(254, 240, 138, 0.5) 0%, transparent 40%),
    radial-gradient(circle at 90% 12%, rgba(186, 230, 253, 0.5) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(254, 205, 211, 0.35) 0%, transparent 50%),
    #ffffff;
  pointer-events: none;
}

/* Görünüm Yöneticisi */
.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: #ffffff;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.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: #f8fafc;
  transform: translateY(-1px);
}

.logo-icon {
  font-size: 2.2rem;
  line-height: 1;
}

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

.logo-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #d97706 0%, #db2777 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.logo-sub {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-muted);
}

/* Sınıf Seviyesi Seçim Çipleri */
.grade-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1.5px solid #e2e8f0;
}

.grade-chip {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 800;
  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: #ffffff;
}

.grade-chip.active {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.35);
}

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

.header-divider {
  width: 1.5px;
  height: 28px;
  background: #e2e8f0;
  margin: 0 4px;
}

/* Araç Butonları */
.tool-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 800;
  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;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

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

.pro-tool-btn {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #b45309;
}

.pro-tool-btn:hover {
  background: #fef3c7;
}

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

.icon-tool-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  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: #f8fafc;
  border-color: #94a3b8;
}

.teacher-auth-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  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 3px 10px rgba(37, 99, 235, 0.3);
  font-family: inherit;
}

.teacher-auth-btn:hover {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

.teacher-auth-btn.logged-in {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.3);
}

/* --------------------------------------------------------------------------
   4. GÖRÜNÜM 1: ANA LOBİ EKRANI (#view-lobby - Bembeyaz ve Canlı)
   -------------------------------------------------------------------------- */
#viewLobby {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  padding: 16px 32px 24px;
  background: #ffffff;
}

.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: #e0f2fe;
  color: #0369a1;
  border: 1.5px solid #bae6fd;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
}

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

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  70% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.highlight-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #db2777 50%, #ea580c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Tahtadaki Aktif Yarışmacılar Çubuğu */
.active-contestants-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-top: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

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

.contestant-tag.blue-tag {
  background: #eff6ff;
  border: 1.5px solid #93c5fd;
}

.contestant-tag.red-tag {
  background: #fff1f2;
  border: 1.5px solid #fca5a5;
}

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

.blue-tag .team-badge { color: #1d4ed8; }
.red-tag .team-badge { color: #be123c; }

.student-name {
  font-size: 1rem;
  font-weight: 900;
  color: #0f172a;
}

.vs-circle {
  font-size: 0.78rem;
  font-weight: 900;
  color: #b45309;
  background: #fef3c7;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fde68a;
}

.quick-draw-btn {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 800;
  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: #e2e8f0;
}

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

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

.grade-card.kindergarten-card {
  border-color: #fbcfe8;
  background: linear-gradient(180deg, #fdf2f8 0%, #ffffff 50%);
}

.grade-card.kindergarten-card .grade-card-badge {
  color: #db2777;
}

.grade-card.kindergarten-card.active {
  background: #fdf2f8;
  border-color: #ec4899;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.35);
}

.grade-card {
  background: #ffffff;
  border: 2.5px solid #e2e8f0;
  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;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.grade-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.grade-card.active {
  background: #fffbeb;
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.grade-card-badge {
  font-size: 0.72rem;
  font-weight: 900;
  color: #d97706;
  text-transform: uppercase;
}

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

.grade-card-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
}

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

/* --------------------------------------------------------------------------
   DİNAMİK ALT KATEGORİ SEKMELERİ (SUBCATEGORY TABS)
   -------------------------------------------------------------------------- */
.subcategory-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.subcategory-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.subcat-pill {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.subcat-pill:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.subcat-pill.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* --------------------------------------------------------------------------
   DİNAMİK OYUN KARTLARI GRİDİ (6 FARKLI OYUN KARTI)
   -------------------------------------------------------------------------- */
.games-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.games-count-badge {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1.5px solid #e2e8f0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-height: 520px;
  overflow-y: auto;
  padding: 4px 4px 12px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

@media (max-width: 1200px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
}

.games-grid::-webkit-scrollbar {
  width: 6px;
}

.games-grid::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.game-card {
  position: relative;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  min-height: 310px;
}

.game-card:hover {
  border-color: #94a3b8;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* 6 Farklı Oyun Teması */
.game-card.math-theme {
  border-left: 7px solid #0284c7;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 40%);
}
.game-card.turkish-theme {
  border-left: 7px solid #db2777;
  background: linear-gradient(180deg, #fdf2f8 0%, #ffffff 40%);
}
.game-card.oddone-theme {
  border-left: 7px solid #ea580c;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 40%);
}
.game-card.stroop-theme {
  border-left: 7px solid #7c3aed;
  background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 40%);
}
.game-card.memory-theme {
  border-left: 7px solid #059669;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 40%);
}
.game-card.reflex-theme {
  border-left: 7px solid #f59e0b;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 40%);
}

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

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

.math-tag { background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; }
.turkish-tag { background: #fce7f3; color: #db2777; border: 1px solid #fbcfe8; }
.oddone-tag { background: #ffedd5; color: #ea580c; border: 1px solid #fed7aa; }
.stroop-tag { background: #ede9fe; color: #7c3aed; border: 1px solid #ddd6fe; }
.memory-tag { background: #d1fae5; color: #059669; border: 1px solid #a7f3d0; }
.reflex-tag { background: #fef3c7; color: #d97706; border: 1px solid #fde68a; }

.game-speed-badge {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-muted);
}

.game-visual-icon {
  font-size: 2.8rem;
  margin-bottom: 6px;
  line-height: 1;
}

.game-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.25;
}

.game-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
  flex-grow: 1;
}

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

.feature-pill {
  font-size: 0.72rem;
  font-weight: 800;
  background: #ffffff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  border: 1.5px solid #e2e8f0;
}

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

.math-theme .btn-play-game { background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%); }
.turkish-theme .btn-play-game { background: linear-gradient(135deg, #db2777 0%, #9333ea 100%); }
.oddone-theme .btn-play-game { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); }
.stroop-theme .btn-play-game { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); }
.memory-theme .btn-play-game { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.reflex-theme .btn-play-game { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); }

.btn-play-game:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

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

/* Özel Soru / Düello Alanı Formatları */
.grid-visual-box {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 2px solid #e2e8f0;
  font-size: 2.2rem;
  line-height: 1;
  margin: 10px auto;
}

.stroop-word {
  display: inline-block;
  font-size: 3.2rem;
  font-weight: 900;
  padding: 8px 24px;
  border-radius: var(--radius-lg);
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  margin: 10px auto;
}

.memory-sequence-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 2.8rem;
  padding: 10px 20px;
  background: #f8fafc;
  border-radius: var(--radius-lg);
  border: 2px solid #e2e8f0;
  margin: 10px auto;
}

.reflex-target-box {
  font-size: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 8px auto;
}

.pulse-target {
  display: inline-block;
  animation: pulseTarget 1.1s infinite ease-in-out;
}

@keyframes pulseTarget {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* Düello Ayarları Barı */
.duel-settings-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.setting-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
}

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

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

.score-btn.active {
  background: #2563eb;
  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: #cbd5e1;
  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%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

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

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

.setting-info-badge {
  font-size: 0.84rem;
  color: var(--text-secondary);
  background: #f8fafc;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
}

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

/* Düello Üst Kontrol HUD */
.duel-hud {
  height: 56px;
  min-height: 56px;
  background: #ffffff;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 20;
}

.hud-btn {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 800;
  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: #e2e8f0;
}

.hud-exit-btn:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #dc2626;
}

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

.hud-grade-badge {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.hud-game-type {
  font-size: 1rem;
  font-weight: 900;
  color: #0f172a;
}

.hud-round-badge {
  background: #e2e8f0;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 4px 12px;
  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);
  background: #ffffff;
}

/* Oyuncu Yarısı */
.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 (Aydınlık Canlı Mavi) */
.blue-player {
  background: radial-gradient(circle at 10% 20%, #eff6ff 0%, #ffffff 85%);
  border-right: 3px solid #bfdbfe;
}

.blue-player.winner-glow {
  background: radial-gradient(circle at 50% 50%, #dcfce7 0%, #eff6ff 90%);
}

/* Kırmızı Takım Bölgesi (Aydınlık Canlı Pembe/Kırmızı) */
.red-player {
  background: radial-gradient(circle at 90% 20%, #fff1f2 0%, #ffffff 85%);
  border-left: 3px solid #fecdd3;
}

.red-player.winner-glow {
  background: radial-gradient(circle at 50% 50%, #dcfce7 0%, #fff1f2 90%);
}

/* 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: 2.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.blue-avatar {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: 3px solid #93c5fd;
}

.red-avatar {
  background: linear-gradient(135deg, #f43f5e, #be123c);
  border: 3px solid #fca5a5;
}

.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: #1d4ed8; }
.red-player .team-title { color: #be123c; }

.player-name {
  font-size: 1.6rem;
  font-weight: 900;
  color: #0f172a;
}

/* Yıldız Puan Barı */
.player-score-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

.star-slot {
  font-size: 1.8rem;
  line-height: 1;
  opacity: 0.25;
  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 2px 6px rgba(245, 158, 11, 0.8));
  transform: scale(1.22);
}

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

/* Soru Kartı - Bembeyaz, Yüksek Kontrastlı ve İri Yazı */
.duel-question-card {
  background: #ffffff;
  border: 3px solid transparent;
  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 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}

.blue-player .duel-question-card {
  border-color: #93c5fd;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}

.red-player .duel-question-card {
  border-color: #fca5a5;
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.1);
}

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

.blue-player .question-meta-tag {
  background: #2563eb;
  color: #fff;
}

.red-player .question-meta-tag {
  background: #e11d48;
  color: #fff;
}

.question-text {
  font-size: 2.35rem; /* Sınıfın arkasından bile çok net */
  font-weight: 900;
  color: #0f172a;
  line-height: 1.35;
  letter-spacing: -0.01em;
  word-break: break-word;
}

/* 3 Adet Devasa Şık Butonu */
.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;
  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, #1d4ed8 0%, #2563eb 100%);
  border-color: #60a5fa;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}

.blue-player .duel-option-btn:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  transform: translateY(-2px);
}

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

.red-player .duel-option-btn {
  background: linear-gradient(135deg, #be123c 0%, #e11d48 100%);
  border-color: #fb7185;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.28);
}

.red-player .duel-option-btn:hover {
  background: linear-gradient(135deg, #9f1239 0%, #be123c 100%);
  transform: translateY(-2px);
}

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

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

.opt-text {
  font-size: 2.1rem;
  font-weight: 900;
  color: #ffffff;
  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: #6ee7b7 !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: #dc2626 !important;
  border-color: #b91c1c !important;
  opacity: 0.65;
}

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

.divider-beam {
  flex: 1;
  width: 4px;
  background: linear-gradient(180deg, transparent 0%, #f59e0b 50%, transparent 100%);
}

.divider-vs-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #f59e0b;
  color: #d97706;
  font-size: 1.25rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  flex-shrink: 0;
  animation: vsGlow 2.5s infinite alternate;
}

@keyframes vsGlow {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

/* --------------------------------------------------------------------------
   6. HATA KORUMASI: 1.5 SANİYELİK KİLİT VE CEZA OVERLAY'I
   -------------------------------------------------------------------------- */
.penalty-lockout-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 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: #ffffff;
  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 15px 45px rgba(239, 68, 68, 0.25);
  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: #dc2626;
}

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

.penalty-progress-bar {
  width: 260px;
  height: 10px;
  background: #fee2e2;
  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.45);
  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: #ffffff;
  border: 2.5px solid #f59e0b;
  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.12), 0 0 25px rgba(245, 158, 11, 0.2);
}

.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: #d97706;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

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

.solution-close-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  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: #e2e8f0;
}

/* --------------------------------------------------------------------------
   8. GÖRÜNÜM 3: ZAFER & MAÇ SONU EKRANI (VICTORY OVERLAY)
   -------------------------------------------------------------------------- */
.victory-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  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: #ffffff;
  border: 3px solid #f59e0b;
  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.12), 0 0 50px rgba(245, 158, 11, 0.25);
  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: #d97706;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

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

.victory-score-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #f8fafc;
  padding: 16px 36px;
  border-radius: var(--radius-lg);
  border: 2px solid #e2e8f0;
  margin-bottom: 20px;
}

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

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

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

.blue-winner-box .score-val { color: #2563eb; }
.red-winner-box .score-val { color: #e11d48; }

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

.victory-congrats {
  font-size: 1.15rem;
  font-weight: 700;
  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 20px rgba(245, 158, 11, 0.4);
  transition: all var(--transition-fast);
  font-family: inherit;
}

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

.btn-action-secondary {
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  color: #0f172a;
  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: #e2e8f0;
}

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

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

/* --------------------------------------------------------------------------
   9. MODAL SİSTEMİ (ÖĞRETMEN GİRİŞİ, ÇARKIFELEK, SORU EKLEME, LİG)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  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: #ffffff;
  border: 2px solid #cbd5e1;
  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.12);
  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: #f1f5f9;
  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: #e2e8f0;
  color: #0f172a;
}

.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: #0f172a;
  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: #f8fafc;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid #e2e8f0;
}

.perk-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: #334155;
}

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

.perk-info strong {
  color: #b45309;
}

.btn-google-login {
  width: 100%;
  background: #ffffff;
  color: #1f2937;
  border: 2px solid #cbd5e1;
  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 12px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-fast);
  font-family: inherit;
}

.btn-google-login:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.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: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  border: 2.5px solid transparent;
}

.picker-slot.blue-slot {
  border-color: #93c5fd;
  background: #eff6ff;
}

.picker-slot.red-slot {
  border-color: #fca5a5;
  background: #fff1f2;
}

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

.blue-slot .slot-header { color: #1d4ed8; }
.red-slot .slot-header { color: #be123c; }

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

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

.slot-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0f172a;
}

.picker-vs {
  font-size: 1.8rem;
  color: #d97706;
}

.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 16px rgba(245, 158, 11, 0.35);
  font-family: inherit;
  transition: all var(--transition-fast);
}

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

.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 14px rgba(16, 185, 129, 0.35);
  font-family: inherit;
}

.class-roster-details {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  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.82rem;
  color: var(--text-secondary);
}

.roster-textarea {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  color: #0f172a;
  padding: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  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: 800;
  cursor: pointer;
}

.btn-reset-roster {
  background: #f1f5f9;
  color: var(--text-secondary);
  border: 1px solid #cbd5e1;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  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.85rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.custom-input {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
}

.custom-input:focus {
  outline: none;
  border-color: #2563eb;
}

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

.text-green { color: #059669 !important; }
.text-red { color: #dc2626 !important; }

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

.saved-questions-section {
  margin-top: 24px;
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}

.saved-q-header {
  font-size: 0.92rem;
  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: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #0f172a;
}

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

.btn-del-q {
  background: transparent;
  border: none;
  color: #dc2626;
  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: #f1f5f9;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.leaderboard-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
  font-weight: 800;
}

.btn-reset-league {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 800;
  font-family: inherit;
}

/* Global Toast Bildirimi */
.toast-notification {
  position: fixed;
  top: 84px;
  right: 24px;
  background: #ffffff;
  border: 2px solid #f59e0b;
  color: #0f172a;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 800;
  z-index: 200;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  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
   -------------------------------------------------------------------------- */
@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; }
}
