/* ==========================================================================
   TÜRKİYE KELİME OYUNLARI MERKEZİ - GAMES STYLES (10 Oyunun UI Bileşenleri)
   ========================================================================== */

/* ---------------- GENEL OYUN ARAYÜZ ELEMANLARI ---------------- */
.game-viewport {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.game-hud {
  width: 100%;
  max-width: 840px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 14px 24px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 6px 16px;
  min-width: 90px;
}

.hud-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
}

.hud-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.3px;
}

.hud-value.gold { color: #d97706; text-shadow: none; }
.hud-value.cyan { color: #0284c7; text-shadow: none; }
.hud-value.pink { color: #e11d48; text-shadow: none; }
.hud-value.green { color: #059669; text-shadow: none; }

/* ---------------- 1. KELİME OYUNU (ALİ İHSAN VAROL TV FORMATI) ---------------- */
.tv-container {
  width: 100%;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.tv-timer-bar-wrap {
  width: 100%;
  height: 14px;
  background: #f1f5f9;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
  position: relative;
}

.tv-timer-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #0284c7, #10b981);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
  transition: width 0.25s linear, background-color 0.3s ease;
}

.tv-timer-bar-fill.danger {
  background: linear-gradient(90deg, #f59e0b, #e11d48);
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.5);
}

.tv-question-box {
  width: 100%;
  background: #ffffff;
  border: 2px solid #f59e0b;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.12);
  border-radius: var(--radius-lg);
  padding: 30px 36px;
  text-align: center;
  position: relative;
}

.tv-question-num {
  position: absolute;
  top: -15px;
  left: 32px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.tv-question-text {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.5;
  color: #0f172a;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: none;
}

/* Harf Petekleri / Kutuları */
.tv-letter-board {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 840px;
  margin: 12px 0;
}

.tv-letter-slot {
  width: 58px;
  height: 68px;
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f172a;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.tv-letter-slot.revealed {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border-color: #f59e0b;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.25);
  transform: scale(1.06);
  animation: tileRevealGold 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tileRevealGold {
  0% { transform: scale(0.6) rotateX(90deg); opacity: 0; }
  60% { transform: scale(1.15) rotateX(0deg); opacity: 1; }
  100% { transform: scale(1.06) rotateX(0deg); opacity: 1; }
}

.tv-letter-slot.hidden-tile {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.tv-controls {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.btn-tv-action {
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-fast);
}

.btn-harf-al {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.btn-harf-al:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.5);
}

.btn-cevap-ver {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.btn-cevap-ver:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.5);
}

.btn-tv-pas {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
}

.btn-tv-pas:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* TV Cevap Yazma Modalı / Input Kutusu */
.tv-answer-dialog,
.tv-guess-dialog {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  width: 100%;
  max-width: 540px;
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 2px solid #0284c7;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
}

.tv-answer-input {
  width: 100%;
  background: #f8fafc;
  border: 2px solid #0284c7;
  border-radius: var(--radius-md);
  color: #0f172a;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  padding: 14px;
  letter-spacing: 5px;
  text-transform: uppercase;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ---------------- 2. WORDLE TÜRKÇE (KELİMECE) ---------------- */
.wordle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 520px;
}

.wordle-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  user-select: none;
}

.wordle-row {
  display: flex;
  gap: 8px;
}

.wordle-tile {
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
  perspective: 1000px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.wordle-tile.pop {
  transform: scale(1.14);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.3);
}

.wordle-tile.correct {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #34d399;
  color: #fff;
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.wordle-tile.present {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #fbbf24;
  color: #fff;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.wordle-tile.absent {
  background: linear-gradient(135deg, #242c44 0%, #151a2d 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #798aab;
}

/* Sanal Türkçe Q / Arcade Klavye */
.arcade-keyboard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 500px;
}

.kb-row {
  display: flex;
  justify-content: center;
  gap: 5px;
  touch-action: manipulation;
}

.kb-key {
  height: 54px;
  min-width: 36px;
  padding: 0 8px;
  background: linear-gradient(180deg, #252e50 0%, #171d36 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 4px 0 #0d1224, 0 5px 10px rgba(0, 0, 0, 0.45);
  transition: all 0.1s ease;
}

.kb-key:hover {
  background: linear-gradient(180deg, #323d6a 0%, #1f2748 100%);
  border-color: var(--neon-cyan);
  box-shadow: 0 4px 0 #0d1224, 0 0 12px rgba(0, 240, 255, 0.35);
}

.kb-key:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #0d1224;
}

.kb-key.wide {
  min-width: 58px;
  font-size: 0.88rem;
}

.kb-key.correct {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #34d399;
  color: #fff;
}

.kb-key.present {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: #fbbf24;
  color: #fff;
}

.kb-key.absent {
  background: #141724;
  border-color: rgba(255, 255, 255, 0.05);
  color: #4b5870;
  opacity: 0.55;
}

/* ---------------- 3. KELİMELİK (SCRABBLE 7 HARF) ---------------- */
.kelimelik-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.scrabble-board {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 2px;
  background: #0d1224;
  padding: 8px;
  border-radius: 14px;
  border: 2px solid rgba(249, 115, 22, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(249, 115, 22, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  max-width: 590px;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.scrabble-cell {
  background: #18203c;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-weight: 800;
  font-size: 0.76rem;
  user-select: none;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  transition: all 0.15s ease;
}

.scrabble-cell.cell-h2 { background: #0e3a53; color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.scrabble-cell.cell-h3 { background: #1e3a8a; color: #93c5fd; font-weight: 800; border: 1px solid rgba(147, 197, 253, 0.3); }
.scrabble-cell.cell-k2 { background: #831843; color: #f472b6; border: 1px solid rgba(244, 114, 182, 0.3); }
.scrabble-cell.cell-k3 { background: #991b1b; color: #fca5a5; font-weight: 800; border: 1px solid rgba(252, 165, 165, 0.3); }
.scrabble-cell.cell-center { background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; box-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }

.scrabble-tile {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fef08a 0%, #facc15 50%, #eab308 100%);
  border-radius: 4px;
  color: #1c1917;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 3px 6px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.7);
}

.scrabble-tile .tile-score {
  position: absolute;
  right: 2px;
  bottom: 1px;
  font-size: 0.55rem;
  font-family: var(--font-mono);
  font-weight: 800;
}

.scrabble-rack-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.scrabble-rack {
  display: flex;
  gap: 8px;
  background: linear-gradient(180deg, #451a03 0%, #291003 100%);
  border: 2px solid #92400e;
  border-radius: 12px;
  padding: 10px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.rack-slot {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  background: rgba(0,0,0,0.35);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------------- 4. KELİME AVI (BOGGLE 4x4 / 5x5) ---------------- */
.boggle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 600px;
}

.boggle-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: linear-gradient(135deg, rgba(20, 26, 56, 0.95), rgba(12, 16, 38, 0.95));
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 240, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  user-select: none;
}

.boggle-cell {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #182246 0%, #111732 100%);
  border: 2px solid rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.15s ease;
}

.boggle-cell:hover {
  border-color: var(--neon-cyan);
  background: linear-gradient(135deg, #243264 0%, #182246 100%);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.boggle-cell.selected {
  background: linear-gradient(135deg, #ff007f 0%, #9d4edd 100%);
  border-color: #fff;
  box-shadow: 0 0 24px rgba(255, 0, 127, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: scale(0.96);
}

.boggle-current-word {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--neon-cyan);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.5);
}

/* Bulunan kelimeler paneli */
.found-words-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 520px;
  justify-content: center;
}

.found-word-badge {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ---------------- 5. ÇENGEL BULMACA (CROSSWORD) ---------------- */
.crossword-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 900px;
}

.cw-board {
  display: grid;
  gap: 1px;
  background: #060914;
  border: 2px solid rgba(99, 102, 241, 0.4);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(99, 102, 241, 0.2);
}

.cw-cell {
  width: 38px;
  height: 38px;
  background: #151d38;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.cw-cell.active {
  background: #00f0ff;
  color: #050b18;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.7);
}

.cw-cell.highlighted {
  background: rgba(0, 240, 255, 0.28);
  box-shadow: inset 0 0 8px rgba(0, 240, 255, 0.2);
}

.cw-cell.clue-cell {
  background: #1e2648;
  padding: 2px;
  font-size: 0.56rem;
  line-height: 1.15;
  color: #fde047;
  text-align: center;
  overflow: hidden;
  cursor: default;
  border: 1px solid rgba(253, 224, 71, 0.15);
}

/* ---------------- 6. ADAM ASMACA (HANGMAN) ---------------- */
.hangman-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 700px;
}

.hangman-svg-wrap {
  width: 230px;
  height: 230px;
  background: linear-gradient(135deg, rgba(20, 26, 52, 0.95), rgba(12, 16, 38, 0.95));
  border: 1px solid rgba(255, 0, 127, 0.3);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 0, 127, 0.15);
}

.hangman-slot {
  width: 44px;
  height: 54px;
  border-bottom: 3.5px solid var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 240, 255, 0.2);
}

.hangman-svg line, .hangman-svg circle {
  stroke: var(--neon-cyan);
  stroke-width: 4;
  stroke-linecap: round;
  fill: none;
  transition: opacity 0.3s ease;
}

.hangman-part {
  opacity: 0;
}

.hangman-part.visible {
  opacity: 1;
}

.hangman-word-slots {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 16px 0;
}

/* ---------------- 7. KELİME ZİNCİRİ (CHAT BOT DUELLO) ---------------- */
.chain-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 650px;
}

.chain-chat-feed {
  height: 380px;
  overflow-y: auto;
  background: linear-gradient(135deg, rgba(16, 22, 46, 0.95), rgba(10, 14, 32, 0.95));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.chain-bubble {
  max-width: 78%;
  padding: 12px 20px;
  border-radius: 18px;
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.chain-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #0ea5e9, #00f0ff);
  color: #030814;
  font-weight: 800;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.35);
}

.chain-bubble.bot {
  align-self: flex-start;
  background: linear-gradient(135deg, #2b1f48, #181530);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #fff;
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.25);
}

.chain-target-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.1rem;
}

.chain-target-char {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--neon-yellow);
  background: linear-gradient(135deg, rgba(255, 230, 0, 0.25), rgba(255, 119, 0, 0.25));
  border: 2px solid var(--neon-yellow);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 230, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ---------------- 8. KELİMEMATİK ANAGRAM (60 SN) ---------------- */
.anagram-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 620px;
}

.anagram-tiles-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.anagram-tile {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  border: 2px solid rgba(168, 85, 247, 0.6);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.15s ease;
}

.anagram-tile:hover {
  transform: translateY(-4px) scale(1.08);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ---------------- 9. GİZLİ KELİME (WORD SEARCH GRID) ---------------- */
.wordsearch-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 750px;
}

.ws-grid {
  display: grid;
  gap: 4px;
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  user-select: none;
}

.ws-cell {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.7rem, 2.8vw, 1.2rem);
  color: #fff;
  cursor: pointer;
  transition: all 0.12s ease;
}

.ws-cell.highlight {
  background: linear-gradient(135deg, var(--neon-cyan), #0284c7);
  color: #040914;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.6);
}

.ws-cell.found-word {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.6);
}

/* ---------------- 10. KELİME KULESİ (DÜŞEN BLOKLAR & PATLAMA) ---------------- */
.tower-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 500px;
}

.tower-board {
  width: 350px;
  height: 490px;
  background: #080c1d;
  border: 2px solid rgba(59, 130, 246, 0.5);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.tower-cell {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  position: absolute;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform 0.2s ease;
}

.tower-cell.exploding {
  transform: scale(1.4);
  opacity: 0;
  transition: all 0.3s ease-out;
}

/* ==========================================================================
   📱 MOBİL VE TABLET DUYARLILIK (RESPONSIVE TOUCH & SCREEN OPTIMIZATION)
   ========================================================================== */

/* Genel Dokunmatik Optimizasyonu */
button, .bnav-btn, .hdr-btn, .game-card, .btn-primary-arcade {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* 1. Sanal Klavyeler İçin Mobil Uyum (Wordle, Çengel, Adam Asmaca, Kelime Oyunu) */
.wordle-keyboard,
.ha-keyboard,
.cengel-keyboard,
.arcade-keyboard {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 4px;
}

.keyboard-row,
.ha-keyboard-row {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 6px;
  touch-action: manipulation;
}

.key-btn,
.ha-key-btn {
  height: 52px;
  min-width: 32px;
  flex: 1;
  max-width: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.key-btn.wide,
.ha-key-btn.wide {
  flex: 1.6;
  max-width: 68px;
  font-size: 0.85rem;
}

/* 2. Tablet Ekranları (768px - 1024px) */
@media (max-width: 1024px) {
  .tv-game-container {
    max-width: 95%;
  }
  .tv-letter-slot {
    width: 48px;
    height: 58px;
    font-size: 1.7rem;
  }
  .boggle-grid-container {
    max-width: 400px;
  }
}

/* 3. Akıllı Telefonlar (<= 768px) */
@media (max-width: 768px) {
  /* TV Kelime Oyunu */
  .tv-hud-bar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .tv-hud-item {
    padding: 6px 12px;
  }
  .tv-hud-val {
    font-size: 1.15rem;
  }
  .tv-question-box {
    padding: 16px 12px;
  }
  .tv-question-text {
    font-size: 1.1rem;
    min-height: 48px;
  }
  .tv-letter-board {
    gap: 6px;
  }
  .tv-letter-slot {
    width: 38px;
    height: 48px;
    font-size: 1.35rem;
    border-radius: 7px;
  }
  .tv-controls {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .tv-btn {
    width: 100%;
    padding: 12px;
  }

  /* Wordle Türkçe */
  .wordle-board {
    gap: 5px;
    padding: 8px 0;
  }
  .wordle-row {
    gap: 5px;
  }
  .wordle-tile {
    width: clamp(42px, 12vw, 54px);
    height: clamp(42px, 12vw, 54px);
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }
  .key-btn,
  .ha-key-btn {
    height: 46px;
    min-width: 26px;
    gap: 3px;
    font-size: 0.95rem;
  }
  .key-btn.wide,
  .ha-key-btn.wide {
    font-size: 0.75rem;
  }

  /* Kelimelik / Scrabble */
  .kelimelik-rack {
    gap: 6px;
    padding: 10px;
  }
  .rack-tile {
    width: 42px;
    height: 48px;
    font-size: 1.25rem;
  }
  .word-runway {
    gap: 4px;
    padding: 8px;
  }
  .runway-slot {
    width: 36px;
    height: 42px;
    font-size: 1.15rem;
  }

  /* Kelime Avı (Boggle) - Dokunmatik Hareket Kilidi */
  .avi-board-wrapper,
  .boggle-grid {
    touch-action: none !important;
  }
  .avi-cell,
  .boggle-cell {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }

  /* Adam Asmaca */
  .ha-hangman-box svg {
    max-height: 180px;
    width: auto;
  }
  .ha-word-display {
    gap: 6px;
  }
  .ha-letter-slot {
    width: 32px;
    height: 42px;
    font-size: 1.3rem;
  }

  /* Kelime Zinciri */
  .chain-messages-arena {
    height: clamp(240px, 45vh, 420px);
  }
  .chain-bubble {
    max-width: 88%;
    font-size: 0.92rem;
  }
  .chain-input-group {
    flex-direction: column;
    width: 100%;
  }
  .chain-input-group input {
    width: 100%;
  }
  .chain-input-group button {
    width: 100%;
  }

  /* Çengel Bulmaca */
  .cengel-grid-scroll-box {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px;
  }
  .cengel-cell {
    min-width: 36px;
    min-height: 36px;
  }
}

/* 4. Dar Ekranlı Telefonlar (<= 380px) */
@media (max-width: 380px) {
  .tv-letter-slot {
    width: 30px;
    height: 40px;
    font-size: 1.15rem;
    gap: 3px;
  }
  .wordle-tile {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
  .key-btn,
  .ha-key-btn {
    height: 42px;
    min-width: 22px;
    font-size: 0.85rem;
  }
  .rack-tile {
    width: 36px;
    height: 42px;
    font-size: 1.1rem;
  }
  .runway-slot {
    width: 30px;
    height: 36px;
  }
}

/* ==========================================================================
   YENİ DÜNYA KLASİKLERİ STİLLERİ (MATEMATİK, ZEKA, EĞLENCELİ ARCADEE)
   Temiz Beyaz Tema, Canlı Vurgular ve Mobil Uyumlu Kontroller
   ========================================================================== */

/* Ortak Kapsayıcılar ve Başlıklar */
.math-game-wrap,
.logic-game-wrap,
.arcade-game-wrap {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  padding: 24px;
  margin: 0 auto;
}

.mg-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f1f5f9;
}

.mg-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #4338ca;
  background: #eef2ff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.mg-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
  margin: 0;
}

.mg-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mg-stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 6px 14px;
  min-width: 70px;
}

.stat-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.stat-val.text-green { color: #059669; }
.stat-val.text-amber { color: #d97706; }
.stat-val.text-red { color: #dc2626; }
.stat-val.text-cyan { color: #0284c7; }

.btn-mg-action {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mg-action:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.mg-footer-hint {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 0.85rem;
  color: #475569;
  text-align: center;
}

/* ---------------- 1. 2048 OYUNU ---------------- */
.g2048-board-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.g2048-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  background: #bbada0;
  border-radius: 12px;
  padding: 12px;
  width: min(350px, calc(100vw - 44px));
  height: min(350px, calc(100vw - 44px));
  max-width: 100%;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  touch-action: none;
}

.g2048-cell {
  background: rgba(238, 228, 218, 0.35);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: #776e65;
  transition: transform 0.15s ease, background 0.15s ease;
  user-select: none;
}

.g2048-cell.val-2 { background: #eee4da; color: #776e65; }
.g2048-cell.val-4 { background: #ede0c8; color: #776e65; }
.g2048-cell.val-8 { background: #f2b179; color: #f9f6f2; }
.g2048-cell.val-16 { background: #f59563; color: #f9f6f2; }
.g2048-cell.val-32 { background: #f67c5f; color: #f9f6f2; }
.g2048-cell.val-64 { background: #f65e3b; color: #f9f6f2; }
.g2048-cell.val-128 { background: #edcf72; color: #f9f6f2; font-size: 1.7rem; box-shadow: 0 0 15px rgba(237, 207, 114, 0.5); }
.g2048-cell.val-256 { background: #edcc61; color: #f9f6f2; font-size: 1.7rem; box-shadow: 0 0 18px rgba(237, 204, 97, 0.6); }
.g2048-cell.val-512 { background: #edc850; color: #f9f6f2; font-size: 1.7rem; box-shadow: 0 0 20px rgba(237, 200, 80, 0.7); }
.g2048-cell.val-1024 { background: #edc53f; color: #f9f6f2; font-size: 1.4rem; }
.g2048-cell.val-2048 { background: #edc22e; color: #f9f6f2; font-size: 1.4rem; box-shadow: 0 0 25px rgba(237, 194, 46, 0.9); }

.g2048-mobile-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.dpad-middle {
  display: flex;
  gap: 16px;
}

.g2048-dpad {
  width: 54px;
  height: 50px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.g2048-dpad:active {
  background: #cbd5e1;
  transform: scale(0.95);
}

/* ---------------- 2. SUDOKU KLASİK ---------------- */
.sudoku-diff-select {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: var(--radius-md);
  gap: 4px;
}

.btn-diff {
  border: none;
  background: transparent;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.78rem;
  color: #64748b;
  cursor: pointer;
}

.btn-diff.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.sudoku-board {
  display: flex;
  flex-direction: column;
  width: min(100%, 384px);
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  border: 3px solid #0f172a;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  user-select: none;
}

.sudoku-row {
  display: flex;
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
}

.sudoku-row:nth-child(3n) {
  border-bottom: 2px solid #0f172a;
}
.sudoku-row:last-child {
  border-bottom: none;
}

.sudoku-cell {
  flex: 1 1 0;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.95rem, 4vw, 1.35rem);
  font-weight: 800;
  color: #0284c7;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sudoku-cell:nth-child(3n) {
  border-right: 2px solid #0f172a;
}
.sudoku-cell:last-child {
  border-right: none;
}

.sudoku-cell.initial {
  color: #0f172a;
  font-weight: 900;
  background: #f8fafc;
}

.sudoku-cell.selected {
  background: #bae6fd !important;
}

.sudoku-cell.highlighted {
  background: #f0f9ff;
}

.sudoku-cell.same-num {
  background: #e0f2fe;
}

.sudoku-cell.conflict {
  background: #fee2e2 !important;
  color: #ef4444;
}

.sudoku-numpad {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 440px;
}

.btn-num {
  width: 44px;
  height: 44px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-num:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.btn-num:active {
  transform: scale(0.95);
}

.btn-erase, .btn-hint {
  width: auto;
  padding: 0 14px;
  font-size: 0.88rem;
}

/* ---------------- 3. HIZLI MATEMATİK (MATH SPRINT) ---------------- */
.sprint-card {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 24px;
}

.sprint-timer-bar-wrap {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.sprint-timer-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #0284c7);
  transition: width 0.1s linear;
}

.sprint-question {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 1px;
}

.sprint-answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}

.btn-sprint-choice {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 1.7rem;
  font-weight: 800;
  color: #1e293b;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}

.btn-sprint-choice:hover {
  background: #f1f5f9;
  border-color: #0284c7;
  transform: translateY(-2px);
}

.btn-sprint-choice.correct {
  background: #dcfce7 !important;
  border-color: #22c55e !important;
  color: #15803d !important;
}

.btn-sprint-choice.wrong {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #b91c1c !important;
}

/* ---------------- 4. HEDEF 24 (MAKE 24) ---------------- */
.make24-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 480px;
}

.make24-target-banner {
  font-size: 1.3rem;
  font-weight: 700;
  color: #4338ca;
  background: #e0e7ff;
  border: 2px solid #c7d2fe;
  padding: 8px 24px;
  border-radius: var(--radius-full);
}

.make24-target-banner strong {
  font-size: 1.6rem;
  color: #312e81;
}

.make24-nums-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-m24-num {
  width: 65px;
  height: 65px;
  background: #ffffff;
  border: 2px solid #4338ca;
  border-radius: var(--radius-lg);
  font-size: 1.8rem;
  font-weight: 800;
  color: #4338ca;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(67, 56, 202, 0.12);
  transition: all 0.15s ease;
}

.btn-m24-num:hover:not(.used) {
  background: #4338ca;
  color: #ffffff;
  transform: translateY(-3px);
}

.btn-m24-num.used {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.make24-ops-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-m24-op {
  width: 48px;
  height: 48px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-m24-op:hover {
  background: #e2e8f0;
}

.btn-m24-op.btn-clear {
  width: auto;
  padding: 0 16px;
  font-size: 0.95rem;
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.make24-formula-box {
  width: 100%;
  background: #ffffff;
  border: 2px dashed #94a3b8;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.formula-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.formula-text {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}

/* ---------------- 5. MAYIN TARLASI ---------------- */
.ms-controls-bar {
  display: flex;
  gap: 10px;
}

.btn-ms-tool {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-ms-tool.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.3);
}

.ms-board {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(100%, 460px);
  box-sizing: border-box;
  background: #cbd5e1;
  padding: 6px;
  border-radius: 8px;
  border: 3px solid #94a3b8;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.15);
  user-select: none;
}

.ms-row {
  display: flex;
  width: 100%;
}

.ms-cell {
  flex: 1 1 0;
  width: auto;
  height: auto;
  aspect-ratio: 1 / 1;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  background: #e2e8f0;
  border-top: 3px solid #ffffff;
  border-left: 3px solid #ffffff;
  border-right: 3px solid #94a3b8;
  border-bottom: 3px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.68rem, 2.8vw, 1.15rem);
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.ms-cell:active:not(.revealed) {
  border: 1px solid #94a3b8;
}

.ms-cell.revealed {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  cursor: default;
}

.ms-cell.exploded {
  background: #ef4444 !important;
}

.ms-cell[data-count="1"] { color: #2563eb; }
.ms-cell[data-count="2"] { color: #16a34a; }
.ms-cell[data-count="3"] { color: #dc2626; }
.ms-cell[data-count="4"] { color: #7c3aed; }
.ms-cell[data-count="5"] { color: #991b1b; }
.ms-cell[data-count="6"] { color: #0891b2; }

/* ---------------- 6. HANOİ KULELERİ ---------------- */
.hanoi-stage {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 560px;
  padding: 20px 0;
  gap: 16px;
}

.hanoi-peg-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-md);
  transition: background 0.2s ease;
}

.hanoi-peg-col.selected {
  background: #e0f2fe;
}

.hanoi-rod {
  width: 12px;
  height: 180px;
  background: #94a3b8;
  border-radius: 6px;
  position: absolute;
  bottom: 36px;
  z-index: 1;
}

.hanoi-disks-wrap {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  height: 180px;
  width: 100%;
  z-index: 2;
  justify-content: flex-start;
}

.hanoi-disk {
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #ffffff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  margin-top: 2px;
}

.disk-1 { background: #ec4899; }
.disk-2 { background: #8b5cf6; }
.disk-3 { background: #3b82f6; }
.disk-4 { background: #10b981; }
.disk-5 { background: #f59e0b; }

.hanoi-base-plate {
  margin-top: 10px;
  background: #475569;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 6px;
  width: 100%;
  text-align: center;
  z-index: 3;
}

/* ---------------- 7. HAFIZA KARTLARI ---------------- */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 440px;
  perspective: 1000px;
}

.memory-card {
  aspect-ratio: 1;
  cursor: pointer;
}

.mem-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.4s;
  transform-style: preserve-3d;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

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

.mem-card-front,
.mem-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.mem-card-front {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  font-size: 1.6rem;
  color: #94a3b8;
}

.mem-card-back {
  background: #f0fdf4;
  border: 2px solid #22c55e;
  transform: rotateY(180deg);
  font-size: 2.2rem;
}

.memory-card.matched .mem-card-inner {
  opacity: 0.6;
}

/* ---------------- 8. 15 BULMACA ---------------- */
.p15-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  background: #f1f5f9;
  border: 3px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px;
  width: min(340px, calc(100vw - 44px));
  height: min(340px, calc(100vw - 44px));
  max-width: 100%;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.p15-tile {
  background: #ffffff;
  border: 2px solid #94a3b8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
  user-select: none;
  transition: all 0.15s ease;
}

.p15-tile:hover:not(.empty) {
  background: #e2e8f0;
  transform: scale(0.98);
}

.p15-tile.empty {
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: default;
}

/* ---------------- 9. MASTERMIND ---------------- */
.mm-board {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mm-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
}

.mm-row, .mm-active-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.mm-row-num {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-muted);
  width: 32px;
}

.mm-slots {
  display: flex;
  gap: 10px;
}

.mm-peg, .mm-slot-btn {
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
}

.mm-feedback {
  display: flex;
  gap: 4px;
  font-size: 0.85rem;
}

.mm-palette {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.mm-color-btn {
  font-size: 1.8rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.mm-color-btn:hover {
  transform: scale(1.15);
}

/* ---------------- 10. RETRO YILAN (SNAKE) ---------------- */
.snake-canvas-container {
  display: flex;
  justify-content: center;
  background: #0f172a;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

#snake-canvas {
  background: #020617;
  border-radius: 8px;
  max-width: 100%;
}

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

.dpad-row {
  display: flex;
  gap: 12px;
}

.dpad-btn {
  width: 52px;
  height: 48px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  cursor: pointer;
}

/* ---------------- 11. BLOK TETRİS ---------------- */
.tetris-board-box {
  display: flex;
  justify-content: center;
  background: #0f172a;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

#tetris-canvas {
  background: #000000;
  border-radius: 6px;
  max-width: 100%;
}

.tetris-touch-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 360px;
}

.btn-tc {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #1e293b;
  cursor: pointer;
}

.btn-tc.btn-drop {
  background: #fef08a;
  border-color: #facc15;
  color: #854d0e;
}

/* ---------------- 12. FLAPPY BİRD ---------------- */
.flappy-canvas-box {
  display: flex;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 3px solid #0284c7;
}

#flappy-canvas {
  max-width: 100%;
  cursor: pointer;
}

.btn-flap-large {
  padding: 16px;
  font-size: 1.15rem;
  font-weight: 800;
}

/* ---------------- 13. XOX (TİC-TAC-TOE) ---------------- */
.xox-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(300px, calc(100vw - 44px));
  height: min(300px, calc(100vw - 44px));
  max-width: 100%;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
}

.xox-cell {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-lg);
  font-size: 3rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
}

.xox-cell:hover:empty {
  background: #f8fafc;
  border-color: #94a3b8;
}

.xox-cell.x {
  color: #0284c7;
}

.xox-cell.o {
  color: #ef4444;
}

/* ---------------- TÜM OYUNLAR İÇİN MOBİL, TABLET VE PC DUYARLILIK ERGONOMİSİ ---------------- */
@media (max-width: 768px) {
  .math-game-wrap,
  .logic-game-wrap,
  .arcade-game-wrap {
    padding: 14px 10px;
    gap: 14px;
    border-radius: 14px;
  }
  .mg-header {
    gap: 10px;
    padding-bottom: 10px;
  }
  .mg-title {
    font-size: 1.2rem;
  }
  .mg-stats {
    gap: 6px;
    width: 100%;
    justify-content: flex-start;
  }
  .mg-stat-pill {
    padding: 4px 10px;
    min-width: 60px;
  }
  .stat-val {
    font-size: 1.1rem;
  }
  .game-hud {
    padding: 10px 14px;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hud-item {
    padding: 4px 10px;
    min-width: 72px;
  }
  .hud-value {
    font-size: 1.15rem;
  }
  .tv-question-box {
    padding: 16px 12px;
  }
  .tv-question-text {
    font-size: 1.05rem;
    min-height: 44px;
  }
  .tv-letter-slot {
    width: 44px;
    height: 52px;
    font-size: 1.6rem;
  }
  .memory-grid {
    gap: 8px;
    padding: 4px;
  }
  .ms-board {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tower-board {
    width: min(350px, 100%);
    height: min(460px, 64vh);
  }
  .hanoi-stage {
    gap: 8px;
    padding: 12px 0;
  }
  .hanoi-peg-col {
    padding: 6px 2px;
    min-width: 0;
  }
  .hanoi-disk {
    max-width: 96% !important;
  }
}

@media (max-width: 520px) {
  .math-game-wrap,
  .logic-game-wrap,
  .arcade-game-wrap {
    padding: 10px 6px;
    gap: 12px;
  }
  .sprint-card {
    padding: 14px 10px;
    gap: 14px;
  }
  /* Wordle Mobil Uyumu */
  .wordle-container {
    gap: 10px;
  }
  .wordle-tile {
    width: min(50px, 13.5vw);
    height: min(50px, 13.5vw);
    font-size: min(1.5rem, 7vw);
  }
  .arcade-keyboard,
  .kb {
    gap: 4px;
    padding: 0 2px;
    width: 100%;
  }
  .kb-row {
    gap: 3px;
  }
  .kb-key {
    height: 44px;
    min-width: min(26px, 8vw);
    padding: 0 3px;
    font-size: min(0.9rem, 3.6vw);
  }
  .kb-key.wide {
    min-width: min(44px, 12.5vw);
    font-size: min(0.7rem, 2.9vw);
  }

  /* Kelime Avı (Boggle) Mobil Uyumu */
  .boggle-board {
    padding: 8px;
    gap: 6px;
    max-width: 100%;
  }
  .boggle-cell {
    width: min(62px, 18vw);
    height: min(62px, 18vw);
    font-size: min(1.4rem, 5.5vw);
  }

  /* Anagram & Kelime Kulesi Mobil Uyumu */
  .anagram-tile {
    width: min(50px, 13vw);
    height: min(50px, 13vw);
    font-size: 1.35rem;
  }
  .tower-board {
    width: min(320px, 100%);
    height: min(420px, 58vh);
  }

  /* 2048 Mobil Uyumu */
  .g2048-grid {
    width: min(300px, calc(100vw - 44px));
    height: min(300px, calc(100vw - 44px));
    gap: 8px;
    padding: 8px;
  }
  .g2048-cell {
    font-size: min(1.45rem, 5.8vw);
  }

  /* Sudoku Mobil Uyumu */
  .sudoku-board {
    padding: 2px;
    max-width: 100%;
  }
  .sudoku-cell {
    flex: 1 1 0;
    width: auto;
    height: auto;
    font-size: clamp(0.9rem, 4vw, 1.15rem);
  }
  .btn-num {
    width: min(35px, 9vw);
    height: min(35px, 9vw);
    font-size: min(1.05rem, 4vw);
  }

  /* Mayın Tarlası Mobil Uyumu */
  .ms-cell {
    flex: 1 1 0;
    width: auto;
    height: auto;
    font-size: clamp(0.65rem, 2.7vw, 0.95rem);
    border-width: 2px;
  }

  /* Hanoi Kuleleri Mobil Uyumu */
  .hanoi-base-plate {
    font-size: 0.72rem;
    padding: 5px 4px;
  }
  .hanoi-disk {
    height: 24px;
    font-size: 0.75rem;
  }

  /* Mastermind Mobil Uyumu */
  .mm-active-row {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  .mm-palette {
    flex-wrap: wrap;
    gap: 6px;
  }
  .mm-color-btn {
    width: 40px;
    height: 40px;
  }

  /* 15 Bulmaca Mobil Uyumu */
  .p15-board {
    width: min(290px, calc(100vw - 44px));
    height: min(290px, calc(100vw - 44px));
    gap: 8px;
    padding: 8px;
  }
  .p15-tile {
    font-size: min(1.35rem, 5.8vw);
  }

  /* XOX Düello Mobil Uyumu */
  .xox-board {
    width: min(260px, calc(100vw - 48px));
    height: min(260px, calc(100vw - 48px));
  }
  .xox-cell {
    font-size: min(2.3rem, 10vw);
  }

  /* Matematik Sprint / Hedef 24 */
  .sprint-question {
    font-size: 1.85rem;
  }
  .sprint-answers-grid,
  .sprint-options {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .btn-sprint-choice {
    padding: 12px;
    font-size: 1.35rem;
  }
  .make24-nums-row {
    gap: 8px;
    flex-wrap: wrap;
  }
  .btn-m24-num {
    width: min(58px, 18vw);
    height: min(58px, 18vw);
    font-size: 1.5rem;
  }
  .btn-m24-op {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  /* TV Kelime Oyunu */
  .tv-letter-board {
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .tv-letter-slot {
    width: min(36px, 9.5vw);
    height: min(44px, 12vw);
    font-size: min(1.3rem, 5vw);
  }
  .btn-tv-action {
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  /* Kelimelik / Scrabble Tahtası */
  .scrabble-board {
    max-width: 100%;
    padding: 4px;
  }
  .scrabble-cell {
    font-size: 0.65rem;
  }

  /* Canvas Tabanlı Oyunlar (Tetris, Yılan, Flappy) */
  #tetris-canvas,
  #snake-canvas,
  #flappy-canvas {
    max-width: 100%;
    height: auto;
    touch-action: none;
  }

  .ua-game-slot,
  #game-content,
  .game-viewport {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .ua-game-slot canvas {
    max-width: 100% !important;
    height: auto !important;
  }

  .sudoku-grid {
    max-width: min(100%, calc(100vw - 24px));
    overflow-x: auto;
  }
}

/* Küçük Telefonlar (320px - 380px) */
@media (max-width: 380px) {
  .tv-letter-slot {
    width: 28px;
    height: 38px;
    font-size: 1.1rem;
  }
  .sudoku-cell {
    width: 28px;
    height: 28px;
    font-size: 0.92rem;
  }
  .btn-num {
    width: 28px;
    height: 28px;
    font-size: 0.92rem;
  }
  .g2048-grid {
    width: min(260px, calc(100vw - 36px));
    height: min(260px, calc(100vw - 36px));
  }
  .p15-board {
    width: min(250px, calc(100vw - 36px));
    height: min(250px, calc(100vw - 36px));
  }
}
