/**
 * Materyaal Ders Oyunu Hazırlayıcı - Standalone Player & Smartboard Stylesheet
 * Engineered specifically for classroom interactive screens (Akıllı Tahta / Promethean / Vestel / Arçelik)
 */

:root {
  --smart-title-size: clamp(1.6rem, 2.5vw, 3rem);
  --smart-prompt-size: clamp(1.5rem, 2.2vw, 2.8rem);
  --smart-option-size: clamp(1.1rem, 1.6vw, 2rem);
  --smart-touch-min-h: clamp(64px, 7.5vh, 110px);
  --smart-card-padding: clamp(1.25rem, 2vw, 2.5rem);
  --smart-arena-max-w: min(98vw, 1720px);
}

body.player-body {
  background-color: #0f172a;
  color: #f8fafc;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

/* Player Top Control Bar */
.player-top-bar {
  background: linear-gradient(110deg, #111c31 0%, #1e293b 58%, #172554 100%);
  border-bottom: 1px solid rgba(125, 211, 252, 0.22);
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  flex-wrap: nowrap;
  box-shadow: 0 8px 24px rgba(2, 8, 23, 0.22);
  position: relative;
  z-index: 12;
}

.player-info-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.player-title {
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  font-weight: 700;
  color: #7dd3fc;
  letter-spacing: -0.01em;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-meta {
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.12rem;
}

.player-controls-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.btn-player-ctrl {
  background: rgba(51, 65, 85, 0.82);
  color: #ffffff;
  border: 1px solid #475569;
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
  min-height: 38px;
  box-sizing: border-box;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.btn-player-ctrl:hover {
  background-color: #475569;
  border-color: #64748b;
  transform: translateY(-1px);
}

.btn-player-ctrl:focus-visible {
  outline: 3px solid rgba(125, 211, 252, 0.5);
  outline-offset: 2px;
}

.btn-games-home {
  min-height: 40px;
  padding: 0.45rem 0.75rem;
  margin-left: 0.2rem;
  color: #ffffff;
  border-color: rgba(125, 211, 252, 0.55);
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 55%, #4f46e5 100%);
  box-shadow: 0 7px 18px rgba(37, 99, 235, 0.3);
  font-weight: 800;
}

.btn-games-home:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 55%, #4338ca 100%);
  border-color: #bae6fd;
  box-shadow: 0 9px 22px rgba(37, 99, 235, 0.4);
}

.games-home-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
}

.games-home-text {
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.games-home-arrow {
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.8;
}

.ctrl-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.ctrl-text {
  font-size: 0.85rem;
}

/* Iframe Embed & Anti-overflow optimizations */
html.in-iframe,
body.in-iframe {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.in-iframe .player-top-bar {
  padding: 0.35rem 0.65rem;
  gap: 0.35rem;
}

body.in-iframe .player-top-bar .ctrl-text {
  display: none;
}

body.in-iframe .btn-player-ctrl {
  padding: 0.35rem 0.5rem;
  min-width: 36px;
  font-size: 0.85rem;
}

body.in-iframe .btn-games-home {
  min-width: auto;
  padding: 0.35rem 0.62rem;
}

body.in-iframe .player-stats-bar {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  gap: 0.35rem;
}

body.in-iframe .stat-item {
  font-size: 0.85rem;
  gap: 0.25rem;
}

body.in-iframe .player-arena {
  padding: clamp(0.35rem, 1.5vw, 0.75rem) !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

body.in-iframe .game-play-card,
body.in-iframe .game-over-card {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

/* Stats / Score / Timer Bar */
.player-stats-bar {
  background: linear-gradient(90deg, #1e3a8a 0%, #1d4ed8 50%, #1e3a8a 100%);
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  font-weight: 700;
}

@media (max-width: 640px) {
  .player-top-bar { padding: 0.45rem 0.55rem; gap: 0.35rem; }
  .player-controls-group { gap: 0.28rem; }
  .btn-player-ctrl { padding: 0.35rem 0.42rem; min-width: 34px; }
  .btn-games-home { margin-left: 0.05rem; padding: 0.35rem 0.5rem; }
  .games-home-arrow { display: none; }
  .games-home-text { font-size: 0.75rem; }
}

@media (max-width: 430px) {
  .player-meta { display: none; }
  .btn-games-home .games-home-text { display: none; }
  .btn-games-home { width: 38px; padding-inline: 0.35rem; }
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.stat-stars {
  color: #facc15;
  font-size: 1.25rem;
}

.stat-timer {
  background-color: #dc2626;
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-family: monospace;
}

.player-progress-bar-wrap {
  width: 100%;
  height: 6px;
  background-color: #334155;
}

.player-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #10b981);
  transition: width 0.3s ease;
}

/* Team Mode Bar */
.team-bar {
  display: flex;
  background-color: #0f172a;
  border-bottom: 2px solid #334155;
}

.team-badge {
  flex: 1;
  padding: 0.6rem;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.team-1 { background-color: #1e3a8a; color: #93c5fd; }
.team-2 { background-color: #831843; color: #fbcfe8; }
.team-3 { background-color: #78350f; color: #fde68a; }
.team-4 { background-color: #581c87; color: #e9d5ff; }
.team-5 { background-color: #881337; color: #fecdd3; }
.team-6 { background-color: #134e4a; color: #99f6e4; }
.team-7 { background-color: #365314; color: #d9f99d; }
.team-8 { background-color: #701a75; color: #f5d0fe; }

.team-badge.active-team {
  opacity: 1;
  transform: scale(1.02);
  box-shadow: inset 0 -4px 0 #38bdf8;
}

/* Can Kaybı Animasyonu */
.frog-heart-lost {
  display: inline-block;
  animation: frogHeartLostShake 0.45s ease-in-out;
}

@keyframes frogHeartLostShake {
  0% { transform: scale(1.4) rotate(-10deg); color: #ef4444; }
  25% { transform: scale(0.85) rotate(8deg); }
  50% { transform: scale(1.15) rotate(-6deg); }
  75% { transform: scale(0.95) rotate(4deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Grup Sekmeleri (Öğretmen Düzenleyicisi) */
.group-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.group-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.group-tab-btn:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

.group-tab-btn.active {
  background-color: #0284c7;
  color: #ffffff;
  border-color: #0369a1;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.qcard-group-select {
  border: 1px solid #cbd5e1;
  background-color: #f8fafc;
  font-weight: 600;
  color: #1e293b;
}

/* Main Playing Arena */
.player-arena {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 1.2vw, 1.25rem);
  max-width: var(--smart-arena-max-w);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.game-play-card {
  background-color: #1e293b;
  border-radius: 16px;
  border: 1px solid #334155;
  padding: 2rem;
  width: 100%;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.game-instruction-banner {
  background-color: rgba(8, 145, 178, 0.2);
  border-left: 4px solid #0891b2;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  color: #67e8f9;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Question Prompt */
.question-prompt {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
  text-align: center;
}

.question-image-wrap {
  text-align: center;
}

.question-image {
  max-height: 280px;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-audio-prompt {
  align-self: center;
  background-color: #0284c7;
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

/* Multiple Choice Buttons */
.options-grid {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.grid-2x2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.btn-option {
  background-color: #334155;
  color: #ffffff;
  border: 2px solid #475569;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  min-height: 68px; /* Smartboard touch target */
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn-option:hover {
  background-color: #475569;
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.option-badge {
  background-color: #1e293b;
  color: #38bdf8;
  border: 2px solid #0284c7;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.btn-option.correct {
  background-color: #166534 !important;
  border-color: #22c55e !important;
  color: #ffffff !important;
}

.btn-option.incorrect {
  background-color: #991b1b !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}

.btn-option.correct-revealed {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3px #22c55e;
}

/* Kombo Alev Çarpanı (Combo Streak Flame Pill) */
.streak-combo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: center;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  padding: 0.4rem 1.15rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
  user-select: none;
}

.streak-combo-pill.pulse-flame {
  animation: flamePulse 1.2s infinite alternate ease-in-out;
}

@keyframes flamePulse {
  0% { transform: scale(1); box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4); }
  100% { transform: scale(1.06); box-shadow: 0 6px 22px rgba(239, 68, 68, 0.6); }
}

.flame-icon {
  font-size: 1.2rem;
  animation: flameFlicker 0.6s infinite alternate;
}

@keyframes flameFlicker {
  0% { transform: rotate(-5deg) scale(0.95); }
  100% { transform: rotate(5deg) scale(1.15); }
}

.combo-badge-bonus {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

/* 3B Dokunsal Butonlar (3D Tactile Buttons) */
.tactile-3d-btn {
  min-height: 72px;
  border-radius: 16px;
  border-bottom-width: 5px !important;
  box-shadow: 0 6px 0 #1e293b, 0 10px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.12s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  touch-action: manipulation;
}

.tactile-3d-btn:hover:not(.is-locked) {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 #1e293b, 0 14px 28px rgba(0, 0, 0, 0.35);
}

.tactile-3d-btn:active:not(.is-locked) {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #1e293b, 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tactile-3d-btn.is-locked {
  cursor: default;
}

/* Seçenek Durum Rozeti (Option Status Badge) */
.option-status-badge {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  white-space: nowrap;
  animation: badgePopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.option-status-badge.badge-correct {
  background-color: #22c55e;
  color: #052e16;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.option-status-badge.badge-incorrect {
  background-color: #ef4444;
  color: #450a0a;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.option-status-badge.badge-revealed {
  background-color: #3b82f6;
  color: #172554;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

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

/* Açıklama Kartı (Inline Explanation Drawer) */
.mc-inline-explanation,
.tf-inline-explanation {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border: 2px solid #38bdf8;
  border-left: 6px solid #0284c7;
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
  margin-top: 1.25rem;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  animation: expSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.explanation-hdr {
  font-size: 0.95rem;
  color: #38bdf8;
  margin-bottom: 0.35rem;
}

.explanation-body {
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.45;
}

@keyframes expSlideDown {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* True / False Layout */
.tf-statement-box {
  background-color: #0f172a;
  border: 2px solid #334155;
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.tf-statement-text {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}

.tf-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.btn-tf {
  padding: 1.75rem 1rem;
  min-height: 100px;
  border-radius: 16px;
  font-size: 1.75rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  border: 3px solid transparent;
  transition: transform 0.15s ease;
}

.btn-tf:hover {
  transform: scale(1.03);
}

/* Doğru-Yanlış 3B Dokunsal Butonlar */
.tactile-3d-tf {
  min-height: 110px;
  border-radius: 20px;
  border-bottom-width: 6px !important;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.4), 0 14px 28px rgba(0, 0, 0, 0.3);
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.12s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  touch-action: manipulation;
}

.tactile-3d-tf:hover:not(.is-locked) {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.45), 0 18px 36px rgba(0, 0, 0, 0.35);
}

.tactile-3d-tf:active:not(.is-locked) {
  transform: translateY(5px);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.4), 0 6px 12px rgba(0, 0, 0, 0.25);
}

.tactile-3d-tf.btn-true {
  box-shadow: 0 8px 0 #14532d, 0 14px 28px rgba(22, 163, 74, 0.35);
}

.tactile-3d-tf.btn-false {
  box-shadow: 0 8px 0 #7f1d1d, 0 14px 28px rgba(220, 38, 38, 0.35);
}

.tf-status-badge {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  margin-top: 0.35rem;
  animation: badgePopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-true {
  background-color: #15803d;
  color: #ffffff;
  border-color: #22c55e;
}

.btn-false {
  background-color: #b91c1c;
  color: #ffffff;
  border-color: #ef4444;
}

.tf-shortcut {
  font-size: 0.85rem;
  opacity: 0.75;
  font-family: monospace;
}

/* Matching Layout */
.matching-columns-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.matching-column {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Matching Game Board: Modern Playful 3D Stage */
.matching-board-stage {
  position: relative;
  background: radial-gradient(circle at 50% 20%, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

/* Matching HUD Top Bar */
.matching-hud-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 16px;
  padding: 0.85rem 1.25rem;
  backdrop-filter: blur(8px);
}

.matching-hud-message {
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  color: #f8fafc;
  margin: 0;
  padding: 0.35rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2rem;
  transition: all 0.3s ease;
}

.matching-hud-message.hud-msg-selection {
  color: #38bdf8;
}

.matching-hud-message.hud-msg-success {
  color: #4ade80;
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
}

.matching-hud-message.hud-msg-error {
  color: #f87171;
  text-shadow: 0 0 12px rgba(248, 113, 113, 0.5);
}

.matching-hud-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.matching-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 600;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.matching-stat-pill.pill-completed {
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.matching-stat-pill.pill-remaining {
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.matching-stat-pill.pill-mistakes {
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.matching-stat-pill.pill-score {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

/* Matching Columns Layout */
.matching-columns-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  z-index: 2;
}

@media (max-width: 768px) {
  .matching-columns-wrap {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.matching-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.matching-col-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  user-select: none;
}

.matching-col-header.left-header {
  background: linear-gradient(90deg, rgba(14, 116, 144, 0.8), rgba(2, 132, 199, 0.6));
  border: 1px solid #38bdf8;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
}

.matching-col-header.right-header {
  background: linear-gradient(90deg, rgba(109, 40, 217, 0.8), rgba(124, 58, 237, 0.6));
  border: 1px solid #c084fc;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25);
}

/* Raised 3D Matching Cards */
.matching-card {
  position: relative;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 2px solid #334155;
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  min-height: 68px; /* Akıllı tahta için 64px+ */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  width: 100%;
  text-align: left;
}

.matching-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 15px rgba(56, 189, 248, 0.3);
  border-color: #38bdf8;
}

.matching-card:focus-visible {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.5), 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Sürükleme durumu */
.matching-card[draggable="true"]:active,
.matching-card.touch-dragging {
  transform: scale(1.05);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(56, 189, 248, 0.5);
  cursor: grabbing;
  z-index: 10;
}

/* Karşı sütun seçim beklerken hafif parlama */
.matching-card.awaiting-match {
  animation: awaitingMatchPulse 1.6s infinite ease-in-out;
  border-color: rgba(56, 189, 248, 0.85) !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.45) !important;
}

/* 1. Seçim Durumu (Selected) */
.matching-card.selected,
[data-game-type="matching"] .matching-card.selected {
  border-color: #f59e0b !important;
  background: linear-gradient(135deg, #78350f, #451a03) !important;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.7), 0 0 0 3px rgba(245, 158, 11, 0.4) !important;
  transform: scale(1.03) !important;
}

/* 2. Doğru Eşleşme (Matched) - OPACITY ASLA DÜŞÜRÜLMEZ */
.matching-card.matched,
[data-game-type="matching"] .matching-card.matched {
  border-color: #22c55e !important;
  background: linear-gradient(135deg, #14532d, #064e3b) !important;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.25) !important;
  opacity: 1 !important; /* Net görünür kalsın */
  cursor: default !important;
  animation: matchingSuccessPulse 0.45s ease-out;
}

/* 3. Yanlış Eşleşme (Mismatched) */
.matching-card.mismatched,
[data-game-type="matching"] .matching-card.mismatched {
  animation: matchingShake 0.45s ease-in-out !important;
  border-color: #ef4444 !important;
  background: linear-gradient(135deg, #7f1d1d, #450a0a) !important;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.7) !important;
}

/* Rozetler (Status Badges) */
.matching-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.matching-card-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.matching-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.matching-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.matching-status-badge.selection-badge {
  background: #f59e0b;
  color: #78350f;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.matching-status-badge.success-badge {
  background: #22c55e;
  color: #052e16;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

.matching-status-badge.error-badge {
  background: #ef4444;
  color: #450a0a;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.matching-pair-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.matching-card-img {
  max-width: 64px;
  max-height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.matching-card-text {
  flex: 1;
  word-break: break-word;
  line-height: 1.4;
}

/* SVG Bağlantı Çizgileri */
.matching-connections-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.matching-connection-line {
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.matching-connection-line.correct {
  stroke: #22c55e;
  stroke-width: 4px;
  stroke-linecap: round;
}

.matching-connection-line.wrong {
  stroke: #ef4444;
  stroke-width: 3.5px;
  stroke-linecap: round;
  stroke-dasharray: 8 6;
  animation: connectionPulse 0.3s ease infinite alternate;
}

/* Animasyonlar */
@keyframes matchingShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

@keyframes matchingSuccessPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes awaitingMatchPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
  }
  50% {
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.65);
    border-color: #38bdf8 !important;
  }
}

@keyframes connectionPulse {
  from { opacity: 0.8; }
  to { opacity: 1; }
}

/* Confetti Parçacıkları */
.matching-confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
}

.matching-confetti-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: confettiFall 0.8s ease-out forwards;
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(80px) scale(0.4) rotate(360deg);
  }
}

/* Sonuç Ekranı / Çift İnceleme Paneli */
.matching-results-review-card {
  margin-top: 1.5rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: left;
}

.matching-review-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.matching-review-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.matching-review-pair {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: #f8fafc;
}

.matching-review-arrow {
  color: #38bdf8;
  font-weight: bold;
}

.matching-review-explanation {
  font-size: 0.9rem;
  color: #94a3b8;
  font-style: italic;
  padding-left: 0.5rem;
  border-left: 3px solid #38bdf8;
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .matching-card,
  .matching-card.mismatched,
  .matching-card.matched,
  .matching-card.awaiting-match,
  .matching-connection-line.wrong,
  .matching-confetti-dot {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Grouping Layout */
.grouping-items-pool {
  background-color: #0f172a;
  border: 2px dashed #475569;
  border-radius: 12px;
  padding: 1rem;
  min-height: 90px;
}

.pool-title {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pool-items-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.grouping-item-card {
  background-color: #334155;
  color: #f8fafc;
  border: 2px solid #475569;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.15s ease;
}

.grouping-item-card:hover {
  background-color: #475569;
}

.grouping-item-card.selected {
  border-color: #f59e0b !important;
  background-color: #78350f !important;
  box-shadow: 0 0 0 3px #f59e0b;
}

.grouping-item-card.evaluated-correct {
  border-color: #22c55e !important;
  background-color: #14532d !important;
}

.grouping-item-card.evaluated-incorrect {
  border-color: #ef4444 !important;
  background-color: #7f1d1d !important;
}

.grouping-buckets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.grouping-bucket {
  border: 3px solid #0891b2;
  border-radius: 12px;
  background-color: #0f172a;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.grouping-bucket.drag-hover {
  box-shadow: 0 0 0 4px #38bdf8;
  background-color: #1e293b;
}

.bucket-header {
  padding: 0.85rem 1rem;
  color: #ffffff;
}

.bucket-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.bucket-desc {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: 0.2rem;
}

.bucket-items-zone {
  flex: 1;
  padding: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-content: flex-start;
}

/* Ordering Layout */
.ordering-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ordering-item-row {
  background-color: #334155;
  border: 2px solid #475569;
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
}

.ordering-step-badge {
  background-color: #0284c7;
  color: #ffffff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ordering-item-text {
  flex: 1;
  font-size: 1.15rem;
  font-weight: 600;
  color: #f8fafc;
}

.ordering-tactile-controls {
  display: flex;
  gap: 0.35rem;
}

.btn-order-move {
  background-color: #1e293b;
  color: #f1f5f9;
  border: 1px solid #475569;
  border-radius: 6px;
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-order-move:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.ordering-item-row.evaluated-correct {
  border-color: #22c55e;
  background-color: #14532d;
}

.ordering-item-row.evaluated-incorrect {
  border-color: #ef4444;
  background-color: #7f1d1d;
}

/* Feedback & Game Over Modals */
.feedback-modal {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1e293b;
  border: 3px solid #38bdf8;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 600px;
  width: 90%;
  z-index: 60;
  animation: slideUp 0.25s ease-out;
}

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

.feedback-success {
  border-color: #22c55e;
  background-color: #064e3b;
}

.feedback-error {
  border-color: #f59e0b;
  background-color: #451a03;
}

.feedback-icon {
  font-size: 2.5rem;
}

.feedback-content {
  flex: 1;
}

.feedback-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.feedback-text {
  font-size: 0.95rem;
  color: #e2e8f0;
  margin-top: 0.25rem;
}

/* Game Over Card */
.game-over-card {
  background-color: #1e293b;
  border: 2px solid #38bdf8;
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.game-over-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0;
}

.stat-pill {
  background-color: #0f172a;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #facc15;
  border: 1px solid #334155;
}

.answers-review-list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 240px;
  overflow-y: auto;
  margin-top: 0.5rem;
  padding-right: 0.5rem;
}

.answer-review-item {
  background-color: #0f172a;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.rev-badge {
  font-weight: 800;
  font-size: 1.2rem;
}

.rev-correct .rev-badge { color: #22c55e; }
.rev-wrong .rev-badge { color: #ef4444; }

.rev-prompt {
  font-weight: 700;
  color: #f8fafc;
}

.rev-explanation {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

/* Start Card */
.player-start-card {
  max-width: 680px;
  margin: 1.5rem auto;
  padding: 2.5rem 2rem;
  background-color: #1e293b;
  border-radius: 16px;
  border: 1px solid #334155;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.player-start-card.ilkokul-start-card {
  background-color: #0f172a;
  border: 3px solid #38bdf8;
  padding: 2rem 1.5rem;
}

.start-card-icon {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.start-card-title {
  font-size: 2rem;
  color: #38bdf8;
  margin: 0 0 0.5rem 0;
}

.start-card-meta {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.start-card-description, .start-card-instructions {
  background-color: #0f172a;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  text-align: left;
  border: 1px solid #334155;
}

.start-card-description h3, .start-card-instructions h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1.1rem;
  color: #facc15;
}

.start-card-duration {
  font-weight: 700;
  color: #38bdf8;
  font-size: 1.15rem;
  margin: 1.25rem 0;
}

.start-game-btn {
  margin-top: 1rem;
  padding: 0.9rem 2.5rem;
  font-size: 1.3rem;
  border-radius: 12px;
}

/* Detailed Metrics Report Table */
.detailed-stats-grid {
  margin: 1.5rem 0;
}

.metrics-summary-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  text-align: left;
}

.metric-item {
  background-color: #0f172a;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-label {
  color: #94a3b8;
  font-size: 0.95rem;
}

.metric-value {
  color: #38bdf8;
  font-size: 1.15rem;
  font-weight: 800;
}

/* End of game note */
.game-over-end-note {
  background-color: #0f172a;
  border-left: 4px solid #38bdf8;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  text-align: left;
}

.game-over-end-note h4 {
  margin: 0 0 0.4rem 0;
  color: #facc15;
  font-size: 1.05rem;
}

.game-over-end-note p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.95rem;
}

/* ==========================================================================
   Frog Journey (Kurbağanın Yolculuğu) Educational Engine Styles
   ========================================================================== */
.frog-journey-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.25rem;
  background-color: var(--surface, #1e293b);
  border-radius: 16px;
  border: 1px solid var(--border-color, #334155);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Üst Başlık Şeridi (Can, Oyun Başlığı, Puan) */
.frog-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
  background: rgba(15, 23, 42, 0.65);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.frog-header-lives {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f87171;
}

.frog-header-lives.lives-optional {
  opacity: 0.85;
}

.frog-header-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #38bdf8;
  text-align: center;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frog-header-score {
  font-size: 0.95rem;
  font-weight: 700;
  color: #facc15;
  white-space: nowrap;
}

/* Beyaz / Yüksek Kontrastlı Soru Kartı */
.frog-question-box {
  background: #ffffff;
  color: #0f172a;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  border-left: 6px solid #0284c7;
}

.frog-step-badge {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0284c7;
  margin-bottom: 0.35rem;
}

.frog-prompt {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.75rem 0;
  line-height: 1.45;
  text-align: left;
}

.frog-image-wrap {
  text-align: center;
  margin: 0.75rem 0;
}

.frog-question-image {
  max-width: 100%;
  max-height: 220px;
  border-radius: 10px;
  border: 2px solid #cbd5e1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  object-fit: contain;
}

/* Gölet Arenası */
.frog-pond-scene {
  position: relative;
  background: linear-gradient(165deg, #0284c7 0%, #0369a1 45%, #075985 100%);
  border-radius: 18px;
  padding: 1.25rem 1.25rem 120px 1.25rem;
  min-height: 400px;
  box-shadow: inset 0 3px 14px rgba(0, 0, 0, 0.35);
  border: 2px solid #38bdf8;
  overflow: hidden;
}

.frog-pond-water {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 65%),
    repeating-radial-gradient(ellipse at 50% 50%, rgba(186, 230, 253, 0.12) 0 2px, transparent 3px 40px);
  pointer-events: none;
  animation: pondWaves 8s ease-in-out infinite alternate;
}

@keyframes pondWaves {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.02) translateY(3px); }
}

/* Hedef Kıyı Rozeti */
.frog-goal-shore {
  position: absolute;
  top: 12px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1.5px dashed rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: #f8fafc;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 5;
  transition: all 0.35s ease;
}

.frog-goal-shore.reached-goal {
  border-color: #facc15;
  background: rgba(234, 179, 8, 0.35);
  color: #fef08a;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.65);
  transform: scale(1.06);
}

/* Nilüfer Şıkları Izgarası */
.frog-answer-grid {
  display: grid;
  gap: 1.15rem;
  position: relative;
  z-index: 2;
  margin-top: 1.5rem;
}

.frog-answer-grid.grid-2x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.frog-answer-grid.grid-2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.frog-answer-grid.grid-3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.frog-answer-grid.grid-stacked {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Tekil Nilüfer Şık Butonu (>=64px dokunmatik alan) */
.frog-option-btn.frog-answer-pad {
  position: relative;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 46% 54% 50% 50% / 54% 48% 52% 46%;
  background: radial-gradient(circle at 35% 30%, #16a34a, #14532d 75%);
  border: 3px solid #166534;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.25);
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  outline: none;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease, border-color 0.18s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.frog-option-btn.frog-answer-pad:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  border-color: #22c55e;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.35), 0 0 12px rgba(34, 197, 94, 0.4);
}

.frog-option-btn.frog-answer-pad:focus-visible {
  outline: 3px solid #facc15;
  outline-offset: 4px;
}

.pad-leaf-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.25;
}

.pad-content-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
}

.frog-option-badge {
  position: relative;
  top: auto;
  left: auto;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #38bdf8;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.frog-opt-thumb {
  max-width: 110px;
  max-height: 68px;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  margin-bottom: 0.2rem;
}

.frog-option-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.65);
  line-height: 1.35;
  word-break: break-word;
}

.pad-status-feedback {
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 6px;
  padding: 2px 8px;
  margin-top: 4px;
  display: none;
}

.pad-status-feedback.badge-correct {
  display: inline-block;
  background: #22c55e;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.pad-status-feedback.badge-incorrect {
  display: inline-block;
  background: #f59e0b;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Şık Durumları */
.frog-option-btn.correct {
  border-color: #4ade80 !important;
  background: radial-gradient(circle at 35% 30%, #22c55e, #15803d 75%) !important;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.65) !important;
}

.frog-option-btn.incorrect {
  border-color: #ef4444 !important;
  border-width: 2.5px !important;
  background: radial-gradient(circle at 35% 30%, #fee2e2, #fca5a5 85%) !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.35) !important;
}

.frog-option-btn.correct-revealed {
  border-color: #facc15 !important;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.65) !important;
}

.frog-option-btn.pad-disabled {
  opacity: 0.55;
  pointer-events: none !important;
  filter: grayscale(0.5);
}

/* Başlangıç Nilüferi (Alt-Orta) */
.frog-arena-start-pad {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.start-leaf-bg {
  opacity: 0.95;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}

.frog-avatar-wrap {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
}

.frog-pad-avatar {
  top: -26px;
}

.frog-ground-shadow {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 14px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.45);
  filter: blur(2px);
  pointer-events: none;
}

/* Kurbağa SVG Animasyonları */
.frog-svg {
  transform-origin: 50% 72%;
  animation: frogIdleBreathe 2.4s ease-in-out infinite;
}

.frog-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: frogBlink 4.2s ease-in-out infinite;
}

@keyframes frogIdleBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03, 0.97); }
}

@keyframes frogBlink {
  0%, 42%, 48%, 100% { transform: scaleY(1); }
  45% { transform: scaleY(0.12); }
}

.frog-happy {
  animation: frogHappyWiggle 0.45s ease-in-out infinite alternate;
}

@keyframes frogHappyWiggle {
  0% { transform: translateX(-50%) translateY(0) rotate(-4deg); }
  100% { transform: translateX(-50%) translateY(-6px) rotate(4deg); }
}

.frog-thinking,
.frog-wobble {
  animation: frogThinkingWobble 0.4s ease-in-out infinite alternate;
}

@keyframes frogThinkingWobble {
  0% { transform: translateX(-50%) rotate(-8deg); }
  100% { transform: translateX(-50%) rotate(8deg); }
}

/* Fiziksel Uçuş Avatarları ve Su Halkası */
.frog-flight-avatar {
  pointer-events: none;
  filter: drop-shadow(0 12px 12px rgba(15, 23, 42, 0.45));
  will-change: transform;
}

.frog-flight-avatar .frog-svg {
  animation: none;
}

.frog-flight-shadow {
  width: 44px;
  height: 12px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.45);
  filter: blur(2.5px);
  pointer-events: none;
  will-change: transform, opacity;
}

.frog-landing-ripple {
  width: 22px;
  height: 10px;
  border: 3px solid rgba(186, 230, 253, 0.9);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: frogLandingRipple 0.65s ease-out forwards;
}

@keyframes frogLandingRipple {
  from { transform: translate(-50%, -50%) scale(0.35); opacity: 1; }
  to { transform: translate(-50%, -50%) scale(3.2); opacity: 0; }
}

/* Sade Zıplama Geçişi (Reduced Motion Fallback) */
.frog-jumping {
  animation: frogSimpleBounce 0.16s ease-out;
}

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

/* Mobil Uyumluluk (360px taşmasız, tek sütun esnekliği) */
@media (max-width: 640px) {
  .frog-journey-card {
    padding: 0.75rem;
  }
  .frog-card-header {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
  }
  .frog-header-title {
    order: -1;
    width: 100%;
    font-size: 1rem;
  }
  .frog-question-box {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  .frog-prompt {
    font-size: 1.15rem;
  }
  .frog-answer-grid,
  .frog-answer-grid.grid-2x2,
  .frog-answer-grid.grid-2col,
  .frog-answer-grid.grid-3col,
  .frog-answer-grid.grid-stacked {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .frog-option-btn.frog-answer-pad {
    min-height: 72px;
    padding: 0.65rem 1rem;
  }
  .frog-option-text {
    font-size: 1.05rem;
  }
  .frog-pond-scene {
    padding: 1rem 0.75rem 105px 0.75rem;
    min-height: 380px;
    overflow-x: hidden;
  }
  .frog-opt-thumb {
    max-width: 80px;
    max-height: 52px;
  }
}

/* Hareket Azaltma Tercihi (prefers-reduced-motion) */
@media (prefers-reduced-motion: reduce) {
  .frog-svg,
  .frog-eye,
  .frog-happy,
  .frog-thinking,
  .frog-wobble,
  .frog-jumping,
  .frog-pond-water,
  .frog-landing-ripple,
  .frog-card-wrong-soft,
  .frog-blooming-lily,
  .frog-firefly-sparkle,
  .frog-celebration-burst,
  .frog-team-turn-badge {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Tavşanın Orman Macerası — geniş akıllı tahta sahnesi
   Eski frog-* sınıfları kayıtlı oyunlarla geriye uyumluluk için korunur.
   ========================================================================== */
.frog-journey-card {
  width: min(100%, 1600px);
  max-width: none;
  min-height: calc(100vh - 178px);
  padding: clamp(.7rem, 1.4vw, 1.35rem);
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #dff7ff 0%, #a7e3f2 32%, #77cbd9 100%);
  box-shadow: none;
  overflow: hidden;
}

.frog-card-header {
  margin-bottom: .65rem;
  background: rgba(6, 78, 59, .88);
  border-color: rgba(255, 255, 255, .35);
  box-shadow: 0 7px 20px rgba(15, 56, 45, .18);
}

.frog-header-title { color: #ecfccb; font-size: clamp(1rem, 1.5vw, 1.45rem); }

.frog-question-box {
  position: relative;
  z-index: 8;
  width: min(94%, 1200px);
  margin: 0 auto .65rem;
  padding: clamp(.75rem, 1.2vw, 1.15rem) clamp(1rem, 2vw, 2rem);
  border: 2px solid rgba(255,255,255,.9);
  border-left: 8px solid #f59e0b;
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 28px rgba(15, 72, 83, .2);
}

.frog-prompt { margin-bottom: .35rem; font-size: clamp(1.25rem, 2.2vw, 2.2rem); text-align: center; }
.frog-step-badge { text-align: center; color: #047857; }
.frog-question-image { max-height: min(18vh, 150px); }

.frog-pond-scene {
  width: 100%;
  min-height: clamp(430px, 56vh, 720px);
  padding: clamp(4.8rem, 9vh, 7.5rem) clamp(1rem, 3vw, 3rem) clamp(6.7rem, 12vh, 9rem);
  border: 0;
  border-radius: 32px 32px 0 0;
  background:
    linear-gradient(180deg, rgba(145, 214, 244, .18) 0 18%, transparent 18%),
    linear-gradient(180deg, #2ab8cf 0%, #087f9d 58%, #075985 100%);
  box-shadow: inset 0 14px 32px rgba(255,255,255,.22), inset 0 -24px 42px rgba(2,44,70,.25);
}

.frog-pond-scene::before,
.frog-pond-scene::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  height: 78px;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 100%, #84cc16 0 38%, #3f6212 40% 55%, transparent 57%) 0 0 / 150px 78px repeat-x;
  pointer-events: none;
}
.frog-pond-scene::before { top: -30px; transform: rotate(180deg); }
.frog-pond-scene::after { bottom: -25px; }

.frog-pond-water {
  background:
    radial-gradient(ellipse at 18% 32%, rgba(255,255,255,.22) 0 2px, transparent 3px 100%),
    radial-gradient(ellipse at 74% 70%, rgba(255,255,255,.16) 0 2px, transparent 3px 100%),
    repeating-radial-gradient(ellipse at 50% 50%, rgba(186,230,253,.14) 0 2px, transparent 4px 54px);
}

.turtle-scene-decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.turtle-fish { position: absolute; z-index: 1; opacity: .55; font-size: clamp(1.2rem, 2vw, 2rem); animation: turtleFishSwim 8s linear infinite; }
.fish-one { top: 42%; left: 8%; }
.fish-two { top: 73%; left: 72%; animation-delay: -4s; animation-direction: reverse; }
@keyframes turtleFishSwim { 0% { transform: translateX(-30px); } 50% { transform: translateX(80px) translateY(-12px); } 100% { transform: translateX(180px); } }

.turtle-reed { position: absolute; bottom: 12px; z-index: 2; width: 90px; height: 150px; opacity: .82; background: repeating-linear-gradient(78deg, transparent 0 15px, #365314 16px 21px, transparent 22px 35px); }
.reeds-left { left: 1%; }
.reeds-right { right: 1%; transform: scaleX(-1); }

.frog-answer-grid { width: min(92%, 840px); margin: 0 auto; gap: clamp(.6rem, 1.5vw, 1.2rem); align-items: center; }
.frog-answer-grid:not(.frog-fill-blank-grid) {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px 20px !important;
  width: min(92%, 820px) !important;
  margin: 10px auto 0 auto !important;
  z-index: 10 !important;
}
.frog-answer-grid:not(.frog-fill-blank-grid) .frog-answer-pad {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none;
  width: 100% !important;
  min-height: 66px !important;
  max-height: 88px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0.5rem 1rem 0.5rem 3.4rem !important;
  border-radius: 18px !important;
  background: radial-gradient(ellipse at 36% 27%, #22c55e 0%, #15803d 48%, #14532d 100%) !important;
  border: 3.5px solid #166534 !important;
  box-shadow: 0 10px 18px rgba(2,44,34,.36), inset 0 2px 4px rgba(255,255,255,.22) !important;
  cursor: pointer !important;
  transition: transform .18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .18s, filter .18s !important;
  box-sizing: border-box !important;
}
.frog-answer-grid:not(.frog-fill-blank-grid) .frog-answer-pad:hover:not(:disabled) {
  transform: translateY(-4px) scale(1.025) !important;
  box-shadow: 0 16px 24px rgba(2,44,34,.45), inset 0 3px 6px rgba(255,255,255,.32) !important;
}
.frog-option-btn.frog-answer-pad { min-height: clamp(92px, 13vh, 138px); font-size: clamp(1.05rem, 1.55vw, 1.55rem); }
.frog-option-text { font-size: clamp(1rem, 1.55vw, 1.55rem); }
.pad-leaf-bg { opacity: .42; transform: scale(1.18); }
.frog-arena-start-pad { bottom: 28px; width: 150px; height: 96px; }
.frog-avatar-wrap { top: -38px; }
.turtle-svg { width: clamp(92px, 8vw, 132px); height: auto; }
.frog-goal-shore { top: 22px; right: 3%; padding: .6rem 1rem; background: rgba(255,255,255,.88); color: #14532d; border: 3px dashed #65a30d; }

.turtle-water-route { position: absolute; inset: 50px 2% 70px; z-index: 2; pointer-events: none; opacity: .72; }
.turtle-water-route svg { width: 100%; height: 100%; overflow: visible; }
.turtle-water-route path { fill: none; stroke-linecap: round; }
.turtle-water-route .route-shadow { stroke: rgba(2, 44, 70, .2); stroke-width: 16; }
.turtle-water-route .route-dashes { stroke: rgba(224, 242, 254, .82); stroke-width: 5; stroke-dasharray: 4 22; animation: turtleRouteFlow 8s linear infinite; }
@keyframes turtleRouteFlow { to { stroke-dashoffset: -156; } }

.turtle-journey-progress {
  position: absolute;
  top: 18px;
  left: 3%;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: .65rem;
  max-width: 70%;
  padding: .45rem .75rem;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(3, 78, 88, .78);
  color: #fff;
  box-shadow: 0 7px 18px rgba(2,44,70,.22);
  backdrop-filter: blur(5px);
}
.journey-label { font-size: .82rem; font-weight: 900; white-space: nowrap; }
.journey-dots { display: flex; gap: .28rem; overflow: hidden; }
.journey-dot { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border: 2px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(15,23,42,.5); font-size: .7rem; font-weight: 900; }
.journey-dot.completed { background: #65a30d; border-color: #d9f99d; }
.journey-dot.current { background: #facc15; border-color: #fff7a8; color: #422006; box-shadow: 0 0 0 4px rgba(250,204,21,.2); animation: journeyCurrentPulse 1.4s ease-in-out infinite; }
@keyframes journeyCurrentPulse { 50% { transform: scale(1.12); } }

.frog-fill-blank-grid { display: flex; justify-content: center; margin-top: clamp(1rem, 4vh, 3rem); }
.turtle-fill-card { width: min(92%, 880px); padding: clamp(1rem, 2vw, 2rem); border: 2px solid rgba(255,255,255,.7); border-radius: 24px; background: rgba(6, 78, 89, .72); box-shadow: 0 16px 35px rgba(3, 46, 63, .3); backdrop-filter: blur(6px); }
.turtle-fill-label { display: block; margin-bottom: .75rem; color: #fff; font-size: clamp(1.1rem, 1.7vw, 1.6rem); font-weight: 800; text-align: center; }
.turtle-fill-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .38fr); gap: 1rem; align-items: stretch; }
.turtle-fill-input { min-height: 78px; padding: .9rem 1.25rem; border: 4px solid #a7f3d0; border-radius: 18px; background: #fff; color: #0f172a; font: 800 clamp(1.25rem, 2.2vw, 2rem)/1.2 inherit; outline: none; }
.turtle-fill-input:focus { border-color: #facc15; box-shadow: 0 0 0 5px rgba(250,204,21,.28); }
.turtle-fill-input.needs-answer { border-color: #fb7185; animation: frogThinkingWobble .25s ease-in-out 2 alternate; }
.turtle-fill-submit { border-radius: 40% 60% 48% 52% / 56% 44% 56% 44% !important; }

/* Tavşanın Orman Macerası: 6 Bölgeli 3B Katmanlı Sinematik Sahne */
.frog-journey-card {
  background: linear-gradient(180deg, #17251b 0%, #0d1b12 100%);
  transition: background 0.6s ease, border-color 0.6s ease;
}

/* Bölgeye Özel Kart Arka Planları */
.frog-journey-card.zone-sunny-forest {
  background: linear-gradient(180deg, #14532d 0%, #0f2e1a 100%);
}
.frog-journey-card.zone-river-bridge {
  background: linear-gradient(180deg, #0f4559 0%, #08222c 100%);
}
.frog-journey-card.zone-mushroom-valley {
  background: linear-gradient(180deg, #3b0764 0%, #1e0933 100%);
}
.frog-journey-card.zone-misty-pines {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}
.frog-journey-card.zone-firefly-grove {
  background: linear-gradient(180deg, #1e1b4b 0%, #0b092b 100%);
}
.frog-journey-card.zone-carrot-burrow {
  background: linear-gradient(180deg, #7c2d12 0%, #381206 100%);
}

.frog-card-header {
  background: linear-gradient(90deg, rgba(44,62,31,.96), rgba(73,87,37,.94));
  border-color: rgba(245, 214, 138, .42);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1rem;
}
.zone-river-bridge .frog-card-header {
  background: linear-gradient(90deg, rgba(15,70,89,.96), rgba(13,148,136,.92));
  border-color: rgba(186, 230, 253, .45);
}
.zone-mushroom-valley .frog-card-header {
  background: linear-gradient(90deg, rgba(88,28,135,.96), rgba(147,51,234,.9));
  border-color: rgba(243, 232, 255, .45);
}
.zone-misty-pines .frog-card-header {
  background: linear-gradient(90deg, rgba(30,41,59,.96), rgba(15,118,110,.9));
  border-color: rgba(148, 163, 184, .45);
}
.zone-firefly-grove .frog-card-header {
  background: linear-gradient(90deg, rgba(30,27,75,.96), rgba(67,56,202,.9));
  border-color: rgba(199, 210, 254, .45);
}
.zone-carrot-burrow .frog-card-header {
  background: linear-gradient(90deg, rgba(124,45,18,.96), rgba(217,119,6,.92));
  border-color: rgba(254, 240, 138, .55);
}

.frog-header-title { color: #fff4bf; font-weight: 800; }

/* Aktif Bölge Rozeti */
.frog-header-zone-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}
.frog-header-zone-badge .zone-badge-icon { font-size: 1.1rem; }

/* Havuç Sayacı HUD */
.frog-header-carrots {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(234,88,12,.85), rgba(217,119,6,.85));
  border: 2px solid #fef08a;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  transition: transform 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.frog-header-carrots.carrots-hidden { display: none; }
.frog-header-carrots.carrot-bounce {
  animation: carrotCounterPulse 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}
@keyframes carrotCounterPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.22); filter: brightness(1.2); }
  100% { transform: scale(1); }
}

.frog-question-box {
  border-left-color: #d97706;
  background: linear-gradient(180deg, rgba(255,253,244,.97), rgba(255,247,214,.96));
  box-shadow: 0 14px 32px rgba(16, 31, 18, .35);
}
.frog-step-badge { color: #6b4f1d; }

/* 3B Orman Arenası ve Sahnesi */
.frog-pond-scene {
  position: relative;
  min-height: clamp(520px, 62vh, 760px);
  padding: 8px clamp(10px, 1.8vw, 24px) 18px !important;
  box-sizing: border-box;
  perspective: 1050px;
  perspective-origin: 50% 42%;
  transform-style: preserve-3d;
  background-color: #0d1b12;
  background-size: cover;
  background-position: center;
  border: 3px solid rgba(217, 162, 63, .5);
  border-radius: 24px;
  box-shadow: inset 0 0 80px rgba(5,18,8,.22), 0 18px 36px rgba(3,14,6,.38);
  overflow: hidden;
  transition: filter 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.rabbit-stage-viewport {
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 100%;
  height: clamp(230px, 30vh, 340px);
  overflow: hidden;
  border-radius: 18px;
  border: 2px solid rgba(255, 238, 173, .52);
  box-shadow: inset 0 -28px 38px rgba(15, 48, 28, .22), 0 9px 22px rgba(13, 35, 24, .25);
}

.frog-pond-scene .forest-question-signboard,
.frog-pond-scene .frog-options-grid {
  flex: 0 0 auto;
}

/* Sınıf tahtasında soru üstte tam genişlikte, parkur ve dokunmatik cevaplar altta görünür. */
@media (min-width: 900px) {
  .frog-journey-card .frog-pond-scene {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    gap: 8px clamp(14px, 1.5vw, 24px);
    min-height: 0;
  }
  .frog-journey-card .rabbit-stage-viewport {
    grid-column: 1;
    grid-row: 2;
    height: clamp(290px, 44vh, 480px);
  }
  .frog-journey-card .frog-pond-scene .forest-question-signboard {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100% !important;
    max-width: none;
    margin: 0 !important;
  }
  .frog-journey-card .frog-pond-scene .frog-answer-grid {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }
  .frog-journey-card .frog-pond-scene .frog-answer-grid:not(.frog-fill-blank-grid) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .frog-journey-card .frog-pond-scene .frog-answer-grid.grid-3col:not(.frog-fill-blank-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .frog-journey-card .frog-pond-scene .frog-answer-pad {
    min-height: clamp(62px, 7.5vh, 86px) !important;
  }
}

/* Bölge Sahne Arka Planları */
.frog-pond-scene.zone-sunny-forest {
  background-image:
    radial-gradient(circle at 74% 22%, rgba(255,243,157,.76), transparent 23%),
    linear-gradient(180deg, #58c9e9 0%, #a9dfb1 52%, #297843 100%);
}
.frog-pond-scene.zone-river-bridge {
  background-image:
    radial-gradient(circle at 25% 20%, rgba(241,250,255,.7), transparent 22%),
    linear-gradient(180deg, #56b8e4 0%, #a7d9ce 50%, #186f79 100%);
}
.frog-pond-scene.zone-mushroom-valley {
  background-image:
    radial-gradient(circle at 70% 27%, rgba(255,194,101,.67), transparent 28%),
    linear-gradient(180deg, #8d71bd 0%, #b78da2 51%, #4e4667 100%);
}
.frog-pond-scene.zone-misty-pines {
  background-image:
    radial-gradient(circle at 65% 18%, rgba(221,245,232,.48), transparent 24%),
    linear-gradient(180deg, #819fa7 0%, #91b5a0 49%, #204c47 100%);
}
.frog-pond-scene.zone-firefly-grove {
  background-image:
    radial-gradient(circle at 76% 17%, rgba(202,211,255,.43), transparent 18%),
    linear-gradient(180deg, #1d315b 0%, #355171 54%, #143a39 100%);
}
.frog-pond-scene.zone-carrot-burrow {
  background-image:
    radial-gradient(circle at 75% 32%, rgba(255,226,128,.72), transparent 31%),
    linear-gradient(180deg, #e99163 0%, #f0ba72 48%, #805036 100%);
}

.frog-pond-scene.scene-transition-slide {
  animation: sceneParallaxSlide 1.25s cubic-bezier(0.35, 0.05, 0.2, 1) forwards;
}
@keyframes sceneParallaxSlide {
  0% { transform: scale(1) translateX(0); filter: brightness(1); }
  40% { transform: scale(0.97) translateX(-25px); filter: brightness(1.1); }
  100% { transform: scale(1) translateX(0); filter: brightness(1); }
}

/* Katmanlı Sahne (Parallax Derinlik) */
.forest-layer-sky,
.forest-layer-distant,
.forest-layer-mid,
.forest-layer-ground,
.forest-layer-decor {
  position: absolute;
  pointer-events: none;
}

.forest-layer-sky {
  inset: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding: 1.2rem 2rem;
}
.zone-sun {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(253,224,71,.85);
}
.morning-sun { background: radial-gradient(circle, #fffbeb, #fef08a 60%, rgba(250,204,21,0)); }
.daylight-sun { background: radial-gradient(circle, #fff, #38bdf8 65%, rgba(56,189,248,0)); }
.sunset-sun { background: radial-gradient(circle, #fef08a, #ea580c 70%, rgba(234,88,12,0)); width: 85px; height: 85px; }
.twilight-moon { font-size: 2.8rem; filter: drop-shadow(0 0 20px #fef08a); }
.zone-cloud { display: inline-block; opacity: .82; font-size: clamp(1.8rem, 3vw, 3.2rem); animation: rabbitCloudDrift 12s ease-in-out infinite alternate; }
.cloud-2, .cloud-3, .cloud-sunset { animation-delay: -5s; }
@keyframes rabbitCloudDrift { to { transform: translateX(35px); } }
.zone-star { font-size: 1.3rem; animation: starTwinkle 2s ease-in-out infinite alternate; }
.star-2 { animation-delay: -0.7s; }
.star-3 { animation-delay: -1.3s; }
@keyframes starTwinkle { 0% { opacity: 0.3; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1.15); } }

.forest-layer-distant {
  left: 0;
  right: 0;
  top: 15%;
  height: 38%;
  z-index: 2;
  opacity: 0.7;
}
.distant-mountains-svg {
  width: 100%;
  height: 100%;
}
.mountain-back { fill: rgba(15, 23, 42, 0.45); }
.mountain-mid { fill: rgba(30, 41, 59, 0.55); }

.forest-layer-mid {
  left: 0;
  right: 0;
  top: 28%;
  height: 44%;
  z-index: 3;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 0 2rem;
  font-size: 2.5rem;
}
.mid-tree, .mid-pine, .mid-ancient-oak {
  display: inline-block;
  transform-origin: 50% 100%;
  animation: rabbitTreeSway 5s ease-in-out infinite alternate;
}
.tree-right, .pine-tall-2 { animation-delay: -2.5s; }
@keyframes rabbitTreeSway { to { transform: rotate(3deg); } }

.forest-layer-ground {
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  z-index: 4;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(16,75,40,.58), transparent 72%),
    linear-gradient(180deg, transparent 0%, rgba(18,85,48,.42) 65%, rgba(12,49,32,.7) 100%);
}

.forest-layer-decor {
  inset: 0;
  z-index: 5;
}

/* Doğa ve Hava Parçacıkları */
.forest-sunbeam {
  position: absolute;
  top: -15%;
  width: 13%;
  height: 75%;
  background: linear-gradient(180deg, rgba(255,241,176,.28), transparent);
  filter: blur(13px);
  transform: rotate(14deg);
  opacity: .58;
}
.beam-one { left: 25%; }
.beam-two { left: 58%; animation: forestBeamSway 5s ease-in-out infinite alternate; }
@keyframes forestBeamSway { to { transform: rotate(18deg) translateX(16px); opacity: .38; } }

.forest-butterfly, .forest-leaf, .river-dragonfly, .magic-pollen, .grove-firefly {
  position: absolute;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.35));
}
.forest-butterfly { z-index: 6; font-size: clamp(1.15rem, 2vw, 2rem); animation: forestButterfly 7s ease-in-out infinite; }
.butterfly-one { left: 18%; top: 28%; }
.butterfly-two { right: 20%; top: 50%; animation-delay: -3.5s; }
@keyframes forestButterfly { 50% { transform: translate(55px,-32px) rotate(12deg) scale(.88); } }

.forest-leaf { top: -8%; font-size: 1.2rem; animation: forestLeafFall 8s linear infinite; }
.leaf-one { left: 44%; }
@keyframes forestLeafFall { to { transform: translate(-70px, 620px) rotate(540deg); } }

.river-dragonfly { font-size: 1.6rem; animation: dragonflyHover 4s ease-in-out infinite alternate; }
.dragonfly-one { right: 22%; top: 40%; }
@keyframes dragonflyHover { 50% { transform: translate(-30px, 15px) rotate(-10deg); } }

.magic-pollen { font-size: 1.2rem; color: #fef08a; animation: pollenFloat 6s ease-in-out infinite alternate; }
.pollen-1 { left: 22%; top: 35%; animation-delay: -1s; }
.pollen-2 { right: 25%; top: 45%; animation-delay: -3s; }
.pollen-3 { left: 60%; top: 28%; animation-delay: -5s; }
@keyframes pollenFloat { 0% { transform: translateY(0) scale(0.9); opacity: 0.3; } 100% { transform: translateY(-40px) scale(1.3); opacity: 0.9; } }

.creeping-fog {
  position: absolute;
  bottom: 12%;
  left: -20%;
  width: 140%;
  height: 90px;
  background: radial-gradient(ellipse at 50% 100%, rgba(203,213,225,.22), transparent 70%);
  filter: blur(18px);
  animation: creepingFogDrift 14s ease-in-out infinite alternate;
}
.fog-wave-2 { animation-delay: -7s; bottom: 20%; opacity: 0.15; }
@keyframes creepingFogDrift { 0% { transform: translateX(0); } 100% { transform: translateX(50px); } }

.grove-firefly {
  font-size: 1.2rem;
  color: #34d399;
  filter: drop-shadow(0 0 10px #34d399);
  animation: fireflyBlink 3s ease-in-out infinite alternate;
}
.ff-1 { left: 25%; top: 35%; }
.ff-2 { right: 30%; top: 48%; animation-delay: -1.2s; }
.ff-3 { left: 52%; top: 60%; animation-delay: -2s; }
.ff-4 { right: 15%; top: 30%; animation-delay: -0.6s; }
@keyframes fireflyBlink { 0% { opacity: 0.2; transform: scale(0.7); } 100% { opacity: 1; transform: scale(1.3); } }

/* Bölüm Haritası Barı (Zengin Yol Haritası) */
.rabbit-journey-map {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 14;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.9rem;
  background: rgba(15, 23, 42, 0.78);
  border: 1.5px solid rgba(254, 240, 138, 0.45);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
}
.map-active-zone-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff4bf;
  font-size: 0.85rem;
  white-space: nowrap;
}
.map-nodes-rail {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  max-width: 70%;
  scrollbar-width: none;
}
.map-nodes-rail::-webkit-scrollbar { display: none; }
.map-node {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 800;
  transition: all 0.3s ease;
}
.map-node .node-number { display: none; }
.map-node.done {
  background: #16a34a;
  border-color: #86efac;
  color: #fff;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}
.map-node.current {
  background: #f59e0b;
  border-color: #fef08a;
  color: #fff;
  transform: scale(1.18);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.85);
  animation: mapNodePulse 1.4s infinite alternate;
}
@keyframes mapNodePulse {
  0% { transform: scale(1.1); box-shadow: 0 0 6px rgba(245, 158, 11, 0.5); }
  100% { transform: scale(1.24); box-shadow: 0 0 16px rgba(245, 158, 11, 0.95); }
}
.map-node.locked {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.15);
  color: #64748b;
}
.map-connector {
  width: 12px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}
.map-connector.done {
  background: #22c55e;
}

/* ======================================================================
   ADAPTİF CANLI ORMAN PATİKASI (Adaptive Trail Map Styles & Main Arena)
   ====================================================================== */
.frog-live-trail-arena {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: auto;
  opacity: 1;
}

.frog-live-trail-arena .adaptive-trail-svg.is-main-arena-trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  display: block;
}

/* Tavşanın Patika Üstündeki Aktif Durak Noktası */
.frog-arena-start-pad {
  position: absolute;
  z-index: 18;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 70px;
  transform-origin: center bottom;
  will-change: transform, left, top;
}

.frog-arena-start-pad .pad-leaf-bg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 38px;
  z-index: 1;
  opacity: 0.95;
}

.frog-arena-start-pad .frog-avatar-wrap {
  position: relative;
  top: -16px;
  z-index: 2;
}

/* Yol üstündeki kilitli sonraki soru durağı */
.rabbit-next-checkpoint {
  position: absolute;
  z-index: 17;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.88);
  border: 2px solid #38bdf8;
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  white-space: nowrap;
  transition: all 0.35s ease;
}

.rabbit-next-checkpoint.locked {
  border-color: #64748b;
  opacity: 0.85;
}

.rabbit-next-checkpoint.unlocked {
  border-color: #22c55e;
  background: rgba(20, 83, 45, 0.92);
  color: #fef08a;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.7);
  animation: checkpointUnlockedPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkpointUnlockedPop {
  0% { transform: translate(-50%, -125%) scale(0.85); }
  50% { transform: translate(-50%, -135%) scale(1.15); }
  100% { transform: translate(-50%, -125%) scale(1); }
}

/* Havuçlu Yuva Bitiş Rozeti */
.frog-goal-shore {
  position: absolute;
  z-index: 17;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 6px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid #f59e0b;
  color: #fef08a;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  white-space: nowrap;
  transition: all 0.4s ease;
}

.frog-goal-shore.reached-goal {
  border-color: #22c55e;
  background: linear-gradient(135deg, #15803d, #16a34a);
  color: #ffffff;
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.85);
  transform: translate(-50%, -125%) scale(1.1);
}

/* Soru ve cevaplar parkurdan ayrı durur; patika bu alanların arkasına geçmez. */
.frog-pond-scene .forest-question-signboard {
  position: relative;
  z-index: 22;
  margin: 8px auto 4px auto;
  max-width: 860px;
  width: 94%;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.frog-pond-scene .frog-options-grid {
  position: relative;
  z-index: 22;
  margin: 4px auto 14px auto;
  max-width: 860px;
  width: 94%;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.adaptive-trail-svg {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 520px;
  margin: 0 auto;
  user-select: none;
  touch-action: pan-y;
}

.adaptive-trail-path-base {
  transition: all 0.4s ease;
}

.adaptive-trail-path-dirt {
  stroke-linejoin: round;
  stroke-linecap: round;
}

.adaptive-trail-cobblestones {
  pointer-events: none;
}

.trail-progress-glow {
  transition: stroke-dashoffset 0.8s ease, opacity 0.5s ease;
}

/* Durak ve İstasyon Düğümleri */
.trail-waypoint-node {
  cursor: pointer;
  outline: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trail-waypoint-node:focus-visible,
.trail-waypoint-node:hover {
  transform: scale(1.12);
}

.trail-waypoint-node.current {
  cursor: default;
}

.trail-waypoint-node.completed .waypoint-circle-base {
  filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.7));
}

.trail-waypoint-node.current .waypoint-circle-base {
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.9));
}

.waypoint-pulse-ring {
  transform-origin: center;
  animation: waypointBeaconPulse 1.8s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes waypointBeaconPulse {
  0% {
    r: 28px;
    opacity: 0.95;
    stroke-width: 3px;
  }
  70% {
    r: 46px;
    opacity: 0.15;
    stroke-width: 1.5px;
  }
  100% {
    r: 52px;
    opacity: 0;
    stroke-width: 1px;
  }
}

.trail-burrow-start,
.trail-burrow-goal {
  transition: transform 0.3s ease;
}

.trail-burrow-goal.goal-celebrating {
  animation: goalCelebrationFloat 2s ease-in-out infinite alternate;
}

@keyframes goalCelebrationFloat {
  0% { transform: translateY(0); filter: drop-shadow(0 4px 10px rgba(234, 179, 8, 0.4)); }
  100% { transform: translateY(-8px); filter: drop-shadow(0 12px 24px rgba(234, 179, 8, 0.85)); }
}

@media (prefers-reduced-motion: reduce) {
  .waypoint-pulse-ring { animation: none; opacity: 0.4; }
  .trail-burrow-goal.goal-celebrating { animation: none; }
}

/* Canlı Harita Butonu & Modal */
.btn-toggle-trail-map {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  min-height: 38px;
  background: linear-gradient(135deg, #15803d, #16a34a);
  border: 1.5px solid #86efac;
  border-radius: 9999px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.btn-toggle-trail-map:hover,
.btn-toggle-trail-map:focus-visible {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.6);
}

.rabbit-trail-interactive-modal {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  padding: 1.25rem;
  animation: trailModalFadeIn 0.25s ease-out forwards;
}

@keyframes trailModalFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.trail-modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 960px;
  max-height: 92%;
  background: radial-gradient(circle at 50% 10%, #1e293b 0%, #0f172a 100%);
  border: 2px solid #38bdf8;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  padding: 1rem 1.25rem;
  overflow: hidden;
}

.trail-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.trail-modal-title {
  margin: 0;
  color: #f8fafc;
  font-size: 1.2rem;
  font-weight: 800;
}

.trail-modal-title small {
  color: #94a3b8;
  font-weight: normal;
  font-size: 0.9rem;
}

.trail-modal-close-btn {
  padding: 0.4rem 0.9rem;
  min-height: 40px;
  min-width: 80px;
  border-radius: 10px;
  background: #334155;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.trail-modal-close-btn:hover {
  background: #ef4444;
  border-color: #f87171;
}

.trail-modal-svg-wrap {
  flex: 1;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trail-modal-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
}

.trail-modal-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.trail-modal-legend .leg-dot {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
}
.trail-modal-legend .leg-dot.done { background: #16a34a; color: #fff; }
.trail-modal-legend .leg-dot.current { background: #0284c7; color: #fff; box-shadow: 0 0 8px #38bdf8; }
.trail-modal-legend .leg-dot.locked { background: #334155; color: #94a3b8; }
.trail-modal-legend .leg-dot.goal { background: #ea580c; color: #fff; }

/* Sürpriz Sandık Rozeti */
.waypoint-event-chest {
  animation: chestBobbing 1.8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes chestBobbing {
  0% { transform: translate(20px, -20px) scale(1); }
  100% { transform: translate(20px, -26px) scale(1.15); filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.9)); }
}

/* Akıllı Tahta 3D Ahşap Zar Bileşeni */
.trail-dice-roller {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.trail-3d-dice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  touch-action: manipulation;
  transition: transform 0.2s ease;
}

.trail-3d-dice:focus-visible,
.trail-3d-dice:hover {
  transform: scale(1.08);
}

.trail-3d-dice.is-rolling .dice-svg-face {
  animation: diceRollSpin 0.35s linear infinite;
}

.trail-3d-dice.is-landed .dice-svg-face {
  animation: diceBounceLand 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes diceRollSpin {
  0% { transform: rotate(0deg) scale(0.95); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(0.95); }
}

@keyframes diceBounceLand {
  0% { transform: scale(1.25) rotate(-15deg); }
  50% { transform: scale(0.9) rotate(8deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.dice-cta-label {
  padding: 0.25rem 0.6rem;
  background: #78350f;
  border: 1.5px solid #f59e0b;
  border-radius: 9999px;
  color: #fef08a;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Su dalgaları ve rota izi */
.frog-pond-water {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(110deg, rgba(255,232,154,.08), transparent 32%, rgba(8,30,12,.12));
  animation: forestLightShift 7s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes forestLightShift { to { opacity: .65; transform: scale(1.015); } }

/* Cevap Şıkları Grid'i (Geniş Ekran ve Akıllı Tahta Uyumlu Canlı Platformlar) */
.frog-answer-grid {
  position: relative;
  z-index: 15;
  width: min(96%, 1380px);
  margin: 8px auto 0 auto;
}
.frog-answer-grid:not(.frog-fill-blank-grid) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(10px, 1.4vw, 20px) clamp(16px, 2vw, 28px) !important;
  width: min(96%, 1380px) !important;
  max-width: 1380px !important;
  margin: 8px auto 0 auto !important;
  z-index: 15 !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
}
.frog-answer-grid.grid-2col:not(.frog-fill-blank-grid) {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  max-width: 1200px !important;
}
.frog-answer-grid.grid-3col:not(.frog-fill-blank-grid) {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: 1380px !important;
}
.frog-answer-grid.grid-stacked:not(.frog-fill-blank-grid) {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  max-width: 1200px !important;
}
.frog-answer-grid:not(.frog-fill-blank-grid) .frog-answer-pad {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none;
  width: 100% !important;
  min-height: clamp(60px, 8vh, 88px) !important;
  max-height: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: clamp(0.5rem, 1vh, 0.85rem) clamp(0.9rem, 1.5vw, 1.4rem) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(101,163,13,.96) 0 18%, rgba(62,91,26,.97) 19% 28%, rgba(99,55,27,.98) 29% 78%, rgba(54,31,19,.99) 79%) !important;
  border: 3.5px solid #4d2c18 !important;
  box-shadow: 0 10px 22px rgba(5,18,8,.48), inset 0 2px 4px rgba(220,252,231,.28) !important;
  cursor: pointer !important;
  transition: transform .18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .18s, filter .18s !important;
  box-sizing: border-box !important;
}
.frog-answer-grid:not(.frog-fill-blank-grid) .frog-answer-pad:hover,
.frog-answer-grid:not(.frog-fill-blank-grid) .frog-answer-pad:focus-visible {
  transform: translateY(-4px) scale(1.025) !important;
  filter: brightness(1.15) saturate(1.1) !important;
  box-shadow: 0 16px 26px rgba(5,18,8,.58), inset 0 3px 6px rgba(255,255,255,.35) !important;
}
.frog-answer-grid:not(.frog-fill-blank-grid) .frog-answer-pad.correct {
  transform: translateY(-4px) scale(1.03) !important;
  border-color: #22c55e !important;
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.85), inset 0 0 12px rgba(255, 255, 255, 0.4) !important;
  animation: padBounceSuccess 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28) !important;
}
.frog-answer-grid:not(.frog-fill-blank-grid) .frog-answer-pad.incorrect {
  transform: scale(0.97) !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.75) !important;
}

@keyframes padBounceSuccess {
  0% { transform: scale(1); }
  40% { transform: translateY(-8px) scale(1.06); }
  100% { transform: translateY(-4px) scale(1.03); }
}

/* Bölgeye Özel Platform Dokusu */
.river-stone-pad {
  background: radial-gradient(ellipse at 50% 25%, #9ca3af 0%, #64748b 45%, #374151 100%) !important;
  border-color: #334155 !important;
}
.mushroom-pad-pad {
  background: linear-gradient(180deg, #dc2626 0 35%, #fef3c7 36% 54%, #a16207 55% 100%) !important;
  border-color: #7f1d1d !important;
}
.direction-stone-pad {
  background: linear-gradient(180deg, #1e293b 0 35%, #059669 36% 70%, #0f172a 71% 100%) !important;
  border-color: #064e3b !important;
}
.glowing-flower-pad {
  background: radial-gradient(circle, #fde047 0%, #818cf8 40%, #1e1b4b 100%) !important;
  border-color: #6366f1 !important;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5) !important;
}
.carrot-crate-pad {
  background: linear-gradient(180deg, #b45309 0%, #78350f 50%, #451a03 100%) !important;
  border-color: #f59e0b !important;
}

.pad-leaf-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.16 !important;
}

.pad-content-wrap {
  position: relative;
  z-index: 2;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.75rem !important;
  width: 100% !important;
  min-width: 0 !important;
}
.frog-option-badge {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: clamp(36px, 2.6vw, 46px) !important;
  height: clamp(36px, 2.6vw, 46px) !important;
  min-width: clamp(36px, 2.6vw, 46px) !important;
  border-radius: 50% !important;
  background: #422006 !important;
  border: 2.5px solid #fbbf24 !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: clamp(1.05rem, 1.35vw, 1.4rem) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5) !important;
  flex-shrink: 0 !important;
  z-index: 3 !important;
}
.frog-option-text {
  font-size: clamp(1.15rem, 1.6vw, 1.7rem) !important;
  font-weight: 800 !important;
  color: #fffdf2 !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9) !important;
  flex: 1 1 auto !important;
  text-align: left !important;
  line-height: 1.3 !important;
  word-break: break-word !important;
}
.pad-status-feedback {
  margin-left: auto !important;
  flex-shrink: 0 !important;
}
.frog-opt-thumb {
  max-width: 64px !important;
  max-height: 48px !important;
  object-fit: contain !important;
  border-radius: 6px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

/* Başlangıç Kütüğü ve Tavşan (Alt Kıyıda Güvenli Konum, Şıkların Altında) */
.frog-arena-start-pad {
  position: absolute !important;
  bottom: auto;
  width: clamp(130px, 12vw, 160px) !important;
  height: clamp(62px, 6vh, 74px) !important;
  transform-style: preserve-3d !important;
  z-index: 18 !important;
  pointer-events: none !important;
}
.frog-arena-start-pad::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(#6b3a1d,#351b0e);
  border: 3.5px solid #2f1a0f;
  box-shadow: 0 12px 18px rgba(0,0,0,.42);
}
.frog-avatar-wrap {
  top: -56px !important;
  width: clamp(110px, 10vw, 138px) !important;
  z-index: 9 !important;
  pointer-events: none !important;
}

/* Tavşan Karakteri ve Avatarlarında Takım Arka Plan Kutusunu Temizle (Şeffaflık) */
.frog-avatar-wrap,
.rabbit-hero-wrap,
.rabbit-sprite,
.rabbit-3d-runner,
.frog-flight-avatar,
.rabbit-walk-avatar,
.rabbit-svg-vector {
  background: transparent !important;
  background-color: transparent !important;
}

/* Tavşan Durum Makinesi (Idle, Walking, Jumping, Thinking, Celebrating, Reaching Home) */
.rabbit-sprite {
  --rabbit-direction: 1;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent !important;
  border: 0;
  transform-origin: 50% 85%;
  animation: rabbitIdle 2.2s ease-in-out infinite;
}
.rabbit-frame-window {
  position: relative;
  aspect-ratio: 545 / 722;
  overflow: hidden;
  filter: drop-shadow(0 8px 9px rgba(28, 17, 8, .48));
}
.rabbit-frame-strip {
  display: block;
  width: 400%;
  max-width: none !important;
  height: auto;
  user-select: none;
  pointer-events: none;
  transform: translateX(0);
}
.rabbit-state-walking .rabbit-frame-strip,
.rabbit-walk-avatar .rabbit-frame-strip {
  animation: rabbitRunFrames .64s steps(1, end) infinite;
}
@keyframes rabbitRunFrames {
  0%, 24.99% { transform: translateX(0); }
  25%, 49.99% { transform: translateX(-25%); }
  50%, 74.99% { transform: translateX(-50%); }
  75%, 100% { transform: translateX(-75%); }
}
@keyframes rabbitIdle {
  0%,100% { transform: translateY(0) scaleX(var(--rabbit-direction)) scaleY(1); }
  50% { transform: translateY(-5px) scaleX(var(--rabbit-direction)) scaleY(.98); }
}

.rabbit-state-walking .rabbit-sprite {
  animation: rabbitWalkCycle .32s ease-in-out infinite alternate;
}
.frog-flight-avatar .rabbit-sprite,
.rabbit-state-jumping .rabbit-sprite {
  animation: none;
}
.frog-happy .rabbit-sprite,
.rabbit-state-celebrating .rabbit-sprite {
  animation: rabbitHappy .42s ease-in-out infinite alternate;
}
@keyframes rabbitHappy {
  from { transform: translateY(0) scaleX(var(--rabbit-direction)) rotate(0deg); }
  to { transform: translateY(-9px) scaleX(var(--rabbit-direction)) rotate(3deg); }
}

.frog-thinking .rabbit-sprite,
.rabbit-state-thinking .rabbit-sprite {
  animation: rabbitThink .5s ease-in-out infinite alternate;
}
@keyframes rabbitThink {
  from { transform: scaleX(var(--rabbit-direction)) rotate(0deg); }
  to { transform: scaleX(var(--rabbit-direction)) rotate(-4deg) translateY(2px); }
}

.rabbit-state-reaching-home .rabbit-sprite {
  animation: rabbitEnterBurrow 1.2s ease-in-out forwards;
}
@keyframes rabbitEnterBurrow {
  0% { transform: scaleX(var(--rabbit-direction)) scale(1); opacity: 1; }
  60% { transform: scaleX(var(--rabbit-direction)) scale(0.7) translateY(-15px); opacity: 0.9; }
  100% { transform: scaleX(var(--rabbit-direction)) scale(0.35) translateY(-25px); opacity: 0; }
}

.frog-ground-shadow { width: 100px; height: 18px; bottom: 1px; }

.rabbit-walk-avatar {
  position: fixed;
  z-index: 10002;
  pointer-events: none;
  transform-style: preserve-3d;
  filter: drop-shadow(0 13px 9px rgba(20,12,5,.42));
}
.rabbit-walk-avatar .rabbit-sprite { width: 100%; height: auto; transform-origin: 50% 88%; }
@keyframes rabbitWalkCycle {
  from { transform: translateY(1px) scaleX(var(--rabbit-direction)) rotate(-2deg) scaleY(.96); }
  to { transform: translateY(-8px) scaleX(var(--rabbit-direction)) rotate(2deg) scaleY(1.03); }
}

/* Tavşan Master SVG Vektör ve Canlı Detay Animasyonları */
.rabbit-hero-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}

.rabbit-svg-vector {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.rabbit-ear.ear-left {
  transform-origin: 124px 40px;
  animation: rabbitEarTwitchL 4.5s ease-in-out infinite;
}
.rabbit-ear.ear-right {
  transform-origin: 139px 41px;
  animation: rabbitEarTwitchR 5.2s ease-in-out infinite 0.7s;
}
@keyframes rabbitEarTwitchL {
  0%, 82%, 100% { transform: rotate(0deg); }
  85% { transform: rotate(-10deg); }
  89% { transform: rotate(6deg); }
  93% { transform: rotate(-4deg); }
}
@keyframes rabbitEarTwitchR {
  0%, 82%, 100% { transform: rotate(0deg); }
  84% { transform: rotate(10deg); }
  88% { transform: rotate(-6deg); }
  92% { transform: rotate(4deg); }
}

.rabbit-eye {
  transform-origin: center;
  animation: rabbitEyeBlink 4.2s ease-in-out infinite;
}
@keyframes rabbitEyeBlink {
  0%, 93%, 97%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.08); }
}

.rabbit-nose {
  transform-origin: 169px 62px;
  animation: rabbitNoseTwitch 2.6s ease-in-out infinite;
}
@keyframes rabbitNoseTwitch {
  0%, 80%, 100% { transform: translateY(0); }
  85%, 95% { transform: translateY(-1.5px); }
  90% { transform: translateY(1px); }
}

.rabbit-whiskers {
  transform-origin: 159px 67px;
  animation: rabbitWhiskers 3.2s ease-in-out infinite;
}
@keyframes rabbitWhiskers {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(1.06); }
}

/* Yürüyüşte bacaklar dönüşümlü adım atar; beklerken gövde nefes alır. */
.rabbit-body { transform-origin: 78px 74px; animation: rabbitBreathe 2.6s ease-in-out infinite; }
.rabbit-part-tail { transform-origin: 23px 70px; animation: rabbitTailWiggle 3s ease-in-out infinite; }
.rabbit-head { transform-origin: 125px 69px; animation: rabbitLookAround 5s ease-in-out infinite; }
.rabbit-hind-leg { transform-origin: 61px 83px; }
.rabbit-foreleg { transform-origin: 127px 80px; }
.rabbit-state-walking .rabbit-body { animation: rabbitBodyRun .28s ease-in-out infinite alternate; }
.rabbit-state-walking .rabbit-head { animation: rabbitHeadRun .28s ease-in-out infinite alternate; }
.rabbit-state-walking .rabbit-hind-leg.leg-front,
.rabbit-state-walking .rabbit-foreleg.leg-back { animation: rabbitStepFront .28s ease-in-out infinite alternate; }
.rabbit-state-walking .rabbit-hind-leg.leg-back,
.rabbit-state-walking .rabbit-foreleg.leg-front { animation: rabbitStepBack .28s ease-in-out infinite alternate; }
.rabbit-state-walking .rabbit-part-tail { animation: rabbitTailRun .28s ease-in-out infinite alternate; }
@keyframes rabbitBreathe { 50% { transform: scale(1.025, .97); } }
@keyframes rabbitTailWiggle { 50% { transform: rotate(-12deg); } }
@keyframes rabbitLookAround { 48%, 55% { transform: rotate(-5deg); } }
@keyframes rabbitBodyRun { from { transform: translateY(1px) scaleX(.98); } to { transform: translateY(-3px) scaleX(1.02); } }
@keyframes rabbitHeadRun { from { transform: rotate(3deg); } to { transform: rotate(-3deg); } }
@keyframes rabbitStepFront { from { transform: rotate(-19deg); } to { transform: rotate(24deg); } }
@keyframes rabbitStepBack { from { transform: rotate(19deg); } to { transform: rotate(-24deg); } }
@keyframes rabbitTailRun { from { transform: rotate(-18deg); } to { transform: rotate(19deg); } }

/* Tavşan Duygu ve Durum Baloncukları */
.rabbit-thought-cloud {
  position: absolute;
  top: -36px;
  right: -8px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  background: #ffffff;
  border: 2px solid #38bdf8;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
  animation: rabbitThoughtFloat 1.2s ease-in-out infinite alternate;
  z-index: 10001;
  pointer-events: none;
}
@keyframes rabbitThoughtFloat {
  from { transform: translateY(0) scale(0.96); }
  to { transform: translateY(-7px) scale(1.04); }
}
.rabbit-thought-cloud .thought-bubble-core {
  font-size: 1.15rem;
  line-height: 1;
}

.rabbit-celebrate-cheer {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 1.35rem;
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.95));
  animation: rabbitCheerPop 0.6s cubic-bezier(0.18, 0.89, 0.32, 1.28) infinite alternate;
  z-index: 10001;
  pointer-events: none;
}
@keyframes rabbitCheerPop {
  from { transform: translateX(-50%) scale(0.9) translateY(0); }
  to { transform: translateX(-50%) scale(1.2) translateY(-8px); }
}

.rabbit-home-cheer {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(24, 50, 14, 0.85);
  border: 2px solid #facc15;
  border-radius: 14px;
  font-size: 1.15rem;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.6);
  animation: rabbitCheerPop 0.8s ease-in-out infinite alternate;
  z-index: 10001;
  pointer-events: none;
}

/* Zıplama İniş Yaprak ve Toz Efekti */
.rabbit-landing-leaves {
  display: flex;
  gap: 8px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.rabbit-landing-leaves .landing-leaf {
  font-size: 1.25rem;
  display: inline-block;
}
.rabbit-landing-leaves .landing-leaf.l1 { animation: leafFlyL 0.72s ease-out forwards; }
.rabbit-landing-leaves .landing-leaf.l2 { animation: leafFlyUp 0.72s ease-out forwards; }
.rabbit-landing-leaves .landing-leaf.l3 { animation: leafFlyR 0.72s ease-out forwards; }
@keyframes leafFlyL {
  0% { transform: translate(0,0) scale(0.4); opacity: 1; }
  100% { transform: translate(-26px,-34px) scale(1.1) rotate(-35deg); opacity: 0; }
}
@keyframes leafFlyUp {
  0% { transform: translate(0,0) scale(0.4); opacity: 1; }
  100% { transform: translate(0,-42px) scale(1.3); opacity: 0; }
}
@keyframes leafFlyR {
  0% { transform: translate(0,0) scale(0.4); opacity: 1; }
  100% { transform: translate(26px,-34px) scale(1.1) rotate(35deg); opacity: 0; }
}

/* Kilitli Sonraki Durak */
.rabbit-next-checkpoint {
  position: absolute;
  z-index: 11;
  right: 18px;
  top: 68px;
  width: clamp(120px, 13vw, 160px);
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: .38rem .65rem;
  border-radius: 14px;
  color: #fff9db;
  text-align: center;
  background: linear-gradient(180deg, #5e4a32, #2d2116);
  border: 2.5px solid #8b6b43;
  box-shadow: 0 12px 20px rgba(12,8,4,.5), inset 0 2px 6px rgba(255,255,255,.12);
  transform: rotateX(9deg) translateZ(28px);
  transition: transform .45s ease, filter .45s ease, background .45s ease, border-color .45s ease;
}
.rabbit-next-checkpoint::after {
  content: '';
  position: absolute;
  left: 16%; right: 16%; bottom: -13px;
  height: 17px;
  border-radius: 50%;
  background: rgba(14,9,4,.42);
  filter: blur(4px);
  z-index: -1;
}
.checkpoint-lock { font-size: 1.45rem; line-height: 1; filter: grayscale(.25); }
.checkpoint-title { font-weight: 900; font-size: clamp(.88rem, 1.2vw, 1.08rem); }
.checkpoint-zone { font-size: 0.72rem; color: #fef08a; font-weight: 700; }
.checkpoint-hint { font-size: .7rem; opacity: .78; }
.rabbit-next-checkpoint.unlocked {
  color: #18320e;
  background: linear-gradient(180deg, #fef08a, #84cc16);
  border-color: #fef9c3;
  filter: drop-shadow(0 0 18px rgba(250,204,21,.8));
  transform: rotateX(0deg) translateZ(52px) scale(1.1);
  animation: checkpointUnlock .62s cubic-bezier(.18,.89,.32,1.28) both;
}
@keyframes checkpointUnlock {
  0% { transform: rotateX(9deg) translateZ(28px) scale(.82); }
  60% { transform: rotateX(-4deg) translateZ(68px) scale(1.16); }
  100% { transform: rotateX(0deg) translateZ(52px) scale(1.1); }
}

/* Havuç Ödülü Animasyonu (Altın ve Standart) */
.rabbit-carrot-reward {
  position: absolute;
  z-index: 12;
  left: 50%;
  top: -85px;
  width: 90px;
  height: 90px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: carrotRewardArrival .7s cubic-bezier(.18,.9,.26,1.35) both;
}
.carrot-icon {
  position: relative;
  z-index: 2;
  font-size: 3.1rem;
  filter: drop-shadow(0 8px 7px rgba(67,36,6,.45));
  animation: carrotRewardFloat .55s ease-in-out infinite alternate;
}
.carrot-glow {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7a8 0%, rgba(250,204,21,.55) 36%, transparent 72%);
  animation: carrotGlow 1s ease-in-out infinite alternate;
}
.carrot-spark {
  position: absolute;
  right: 1px;
  top: -1px;
  color: #fffbd1;
  font-size: 1.7rem;
  animation: carrotSpark .8s linear infinite;
}
.carrot-banner {
  font-size: 0.76rem;
  font-weight: 800;
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}
.rabbit-carrot-reward.carrot-golden .carrot-glow {
  background: radial-gradient(circle, #fef08a 0%, rgba(234,179,8,.75) 45%, transparent 75%);
  box-shadow: 0 0 25px #facc15;
}
.rabbit-carrot-reward.carrot-golden .carrot-banner {
  color: #fef08a;
  border: 1px solid #facc15;
}

@keyframes carrotRewardArrival {
  from { opacity: 0; transform: translateX(-50%) translateY(45px) scale(.2) rotate(-30deg); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1) rotate(0); }
}
@keyframes carrotRewardFloat { to { transform: translateY(-7px) rotate(5deg); } }
@keyframes carrotGlow { to { transform: scale(1.25); opacity: .5; } }
@keyframes carrotSpark { to { transform: rotate(180deg) scale(.7); opacity: .45; } }

/* Hedef Kıyı ve Havuçlu Yuva */
.frog-goal-shore {
  position: absolute;
  z-index: 10;
  top: 18px;
  right: 20px;
  padding: 0.5rem 0.9rem;
  border-radius: 16px;
  background: rgba(64,43,20,.88);
  color: #fff7cc;
  border: 2px solid #f59e0b;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  transition: all 0.5s ease;
}
.frog-goal-shore.is-final-goal {
  background: linear-gradient(135deg, rgba(124,45,18,.95), rgba(217,119,6,.95));
  border-color: #fef08a;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}
.frog-goal-shore.reached-goal {
  background: rgba(101,75,22,.95);
  box-shadow: 0 0 35px rgba(250, 204, 21, 0.9);
}
.burrow-door {
  display: inline-block;
  width: 14px;
  height: 20px;
  border-radius: 6px 6px 0 0;
  background: #3e2211;
  border: 1.5px solid #a16207;
  position: relative;
  overflow: hidden;
}
.burrow-door .door-light {
  position: absolute;
  inset: 0;
  background: #fef08a;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.frog-goal-shore.burrow-door-open .burrow-door .door-light {
  opacity: 1;
  box-shadow: 0 0 14px #fef08a;
}

.turtle-water-route .route-shadow { stroke: rgba(58,34,17,.5); }
.turtle-water-route .route-dashes { stroke: rgba(255,238,173,.92); }
.turtle-journey-progress { background: rgba(46,67,28,.88); border-color: rgba(254,240,138,.65); }
.journey-dot.completed { background: #65a30d; }
.journey-dot.current { background: #f59e0b; border-color: #fef3c7; }

.turtle-fill-card { background: rgba(47,65,29,.88); border-color: rgba(254,240,138,.55); }
.turtle-fill-input { border-color: #bef264; }
.turtle-fill-submit { background: linear-gradient(#84cc16,#3f6212) !important; border-color: #365314 !important; }

/* ==========================================================================
   Tavşanın Orman Macerası: 3B Ekran İçi Ahşap Soru Tabelası & Fışkıran Havuç
   ========================================================================== */
.frog-question-box.forest-question-signboard {
  position: relative;
  z-index: 12;
  width: min(96%, 1320px);
  max-width: 1320px;
  margin: 6px auto 4px auto;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  animation: signboardBreeze 4.8s ease-in-out infinite alternate;
  transform-origin: 50% -20px;
}

@keyframes signboardBreeze {
  0% { transform: rotate(-0.7deg); }
  100% { transform: rotate(0.7deg); }
}

.forest-question-signboard .signboard-ropes {
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 26px;
  pointer-events: none;
  z-index: 1;
}

.forest-question-signboard .signboard-ropes .rope {
  position: absolute;
  top: 0;
  width: 6px;
  height: 100%;
  background: repeating-linear-gradient(
    180deg,
    #78350f 0,
    #78350f 6px,
    #451a03 6px,
    #451a03 12px
  );
  border-radius: 3px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.45);
}
.forest-question-signboard .signboard-ropes .rope-left { left: 14%; }
.forest-question-signboard .signboard-ropes .rope-right { right: 14%; }

.forest-question-signboard .signboard-ropes .rope::before {
  content: '🌿';
  position: absolute;
  top: 4px;
  left: -9px;
  font-size: 14px;
}

.forest-question-signboard .signboard-board {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(254, 243, 199, 0.14) 0%, transparent 65%),
    linear-gradient(180deg, #5c381e 0%, #3f2212 50%, #291509 100%);
  border: 3px solid #78350f;
  outline: 2px solid #ca8a04;
  outline-offset: -2px;
  border-radius: 14px;
  padding: 0.38rem 0.95rem;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.6),
    inset 0 2px 4px rgba(255, 255, 255, 0.25),
    inset 0 -3px 6px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.forest-question-signboard .signboard-top-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}

.forest-question-signboard .signboard-group-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #15803d, #166534);
  border: 1.5px solid #86efac;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
.forest-question-signboard .signboard-group-pill.team-2 {
  background: linear-gradient(135deg, #0369a1, #075985);
  border-color: #7dd3fc;
}
.forest-question-signboard .signboard-group-pill.team-3 {
  background: linear-gradient(135deg, #b45309, #92400e);
  border-color: #fde68a;
}
.forest-question-signboard .signboard-group-pill.team-4 {
  background: linear-gradient(135deg, #7e22ce, #6b21a8);
  border-color: #f3e8ff;
}
.forest-question-signboard .signboard-group-pill.team-5 {
  background: linear-gradient(135deg, #be123c, #9f1239);
  border-color: #fecdd3;
}
.forest-question-signboard .signboard-group-pill.team-6 {
  background: linear-gradient(135deg, #0f766e, #115e59);
  border-color: #99f6e4;
}
.forest-question-signboard .signboard-group-pill.team-7 {
  background: linear-gradient(135deg, #4d7c0f, #3f6212);
  border-color: #d9f99d;
}
.forest-question-signboard .signboard-group-pill.team-8 {
  background: linear-gradient(135deg, #be185d, #9d174d);
  border-color: #fbcfe8;
}

.forest-question-signboard .signboard-step-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(254, 240, 138, 0.4);
  border-radius: 999px;
  color: #fef08a;
  font-size: 0.78rem;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  margin-bottom: 0;
}

.forest-question-signboard .signboard-content-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.forest-question-signboard .frog-prompt {
  font-size: clamp(1.3rem, 2.1vw, 2.3rem);
  font-weight: 800;
  color: #fffdf0;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9), 0 0 20px rgba(254, 240, 138, 0.3);
  margin: 0.15rem 0;
  line-height: 1.35;
  text-align: center;
}

.forest-question-signboard .signboard-thumb-wrap {
  margin: 0;
  max-width: 80px;
  max-height: 48px;
  flex-shrink: 0;
}
.forest-question-signboard .signboard-thumb-img {
  max-height: 44px;
  max-width: 74px;
  object-fit: contain;
  border: 1.5px solid #ca8a04;
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.5);
}

.forest-question-signboard .btn-audio-prompt {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid #facc15;
  border-radius: 999px;
  color: #fef08a;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  margin: 0;
}
.forest-question-signboard .btn-audio-prompt:hover {
  background: rgba(202, 138, 4, 0.4);
  transform: scale(1.05);
}

/* Tavşan ve Platform Altından Fışkıran Canlı Havuç Ödülü */
.ground-carrot-springup {
  position: absolute;
  left: 50%;
  bottom: 0px;
  transform: translateX(-50%);
  z-index: 15;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: carrotEmergeUnder 1.25s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

@keyframes carrotEmergeUnder {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(45px) scale(0.2) rotate(-20deg);
  }
  25% {
    opacity: 1;
    transform: translateX(-50%) translateY(-20px) scale(1.35) rotate(10deg);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(-35px) scale(1.15) rotate(-5deg);
  }
  75% {
    opacity: 1;
    transform: translateX(-50%) translateY(-48px) scale(1.05) rotate(2deg);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-65px) scale(0.8);
  }
}

.ground-carrot-springup .under-carrot-soil {
  font-size: 1.2rem;
  margin-bottom: -10px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

.ground-carrot-springup .under-carrot-icon {
  font-size: 3.2rem;
  filter: drop-shadow(0 0 16px rgba(250, 204, 21, 0.95)) drop-shadow(0 8px 12px rgba(67, 36, 6, 0.5));
  animation: carrotSpinGlow 1.25s ease-in-out infinite alternate;
}

@keyframes carrotSpinGlow {
  0% { transform: scale(1) rotate(-6deg); }
  100% { transform: scale(1.15) rotate(6deg); }
}

.ground-carrot-springup .under-carrot-sparkles {
  position: absolute;
  top: -10px;
  font-size: 1.4rem;
  animation: sparkleTwinkle 0.4s ease-in-out infinite alternate;
}

@keyframes sparkleTwinkle {
  from { opacity: 0.6; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1.25); }
}

.ground-carrot-springup .under-carrot-float-tag {
  font-size: 0.88rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 1.5px solid #fef08a;
  border-radius: 999px;
  padding: 2px 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  white-space: nowrap;
}

.ground-carrot-springup.is-golden .under-carrot-float-tag {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  border-color: #fff;
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.8);
}

/* Akıllı Tahta Tam Ekran Görünümü */
body.smartboard-fullscreen .frog-journey-card,
:fullscreen body .frog-journey-card,
:-webkit-full-screen body .frog-journey-card {
  width: 100% !important;
  max-width: none !important;
  min-height: auto !important;
  padding: .65rem 1vw 2rem !important;
  justify-content: flex-start !important;
}
body.smartboard-fullscreen .frog-pond-scene,
:fullscreen body .frog-pond-scene,
:-webkit-full-screen body .frog-pond-scene {
  flex: initial !important;
  min-height: clamp(280px, 42vh, 460px) !important;
}

/* 320px - 720px Mobil Görünüm */
@media (max-width: 720px) {
  .frog-journey-card { min-height: auto; border-radius: 0; }
  .frog-pond-scene { min-height: 520px; border-radius: 22px 22px 0 0; }
  .rabbit-stage-viewport { height: clamp(210px, 28vh, 290px); }
  .rabbit-journey-map { top: 6px; left: 8px; right: 8px; padding: 0.35rem 0.6rem; }
  .map-active-zone-pill { font-size: 0.75rem; }
  .turtle-fill-row { grid-template-columns: 1fr; }
  .turtle-fill-submit { min-height: 76px !important; }
  .frog-answer-grid.grid-3col,
  .frog-answer-grid.grid-stacked { grid-template-columns: 1fr 1fr; }
  .frog-answer-grid:not(.frog-fill-blank-grid) {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    padding-top: 3.8rem;
  }
  .frog-answer-grid:not(.frog-fill-blank-grid) .frog-answer-pad,
  .frog-answer-grid:not(.frog-fill-blank-grid) .frog-answer-pad:nth-child(n) {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
    width: 100%;
    min-height: 82px;
    transform: none;
  }
  .frog-answer-grid:not(.frog-fill-blank-grid) .frog-answer-pad:hover:not(:disabled) { transform: translateY(-3px) scale(1.01); }
  .rabbit-stage-viewport .turtle-water-route { display: block; }
  .turtle-journey-progress { left: 4%; right: 4%; max-width: none; overflow: hidden; }
  .journey-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .frog-pond-scene.scene-transition-slide { animation: none !important; }
  .rabbit-next-checkpoint.unlocked { animation: none !important; }
  .rabbit-carrot-reward { animation: none !important; }
  .rabbit-sprite,
  .rabbit-sprite *,
  .rabbit-frame-strip,
  .forest-layer-sky *,
  .forest-layer-mid *,
  .forest-layer-decor * { animation: none !important; }
  .map-node.current { animation: none !important; }
}

/* ==========================================================================
   25. Kurbağa Oyunu: Nazik Yanlış Uyarısı, Açan Nilüferler ve Ateş Böcekleri
   ========================================================================== */

/* Yanlış Cevap: İlkokul Kademesine Uygun Nazik Pembe/Kırmızı İçe Işıma (%8-10 opaklık, 300ms) */
@keyframes frogGentleGlow {
  0% {
    box-shadow: inset 0 0 0 0 rgba(244, 63, 94, 0);
  }
  35% {
    box-shadow: inset 0 0 28px 4px rgba(244, 63, 94, 0.10);
  }
  100% {
    box-shadow: inset 0 0 0 0 rgba(244, 63, 94, 0);
  }
}

.frog-card-wrong-soft {
  animation: frogGentleGlow 0.30s ease-out forwards !important;
}

/* Gölet Temalı Kutlama: Kapsayıcı, Açan Nilüferler ve Ateş Böcekleri (Aria-hidden, Metinsiz) */
.frog-celebration-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 9996;
  overflow: hidden;
}

.frog-blooming-lily {
  position: absolute;
  top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 8px rgba(244, 114, 182, 0.4));
  animation: frogLilyBloom 0.70s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: none;
}

.frog-blooming-lily.lily-left {
  left: 18px;
}

.frog-blooming-lily.lily-right {
  right: 18px;
}

@keyframes frogLilyBloom {
  0% {
    transform: scale(0.2) rotate(-15deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.18) rotate(4deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.95;
  }
}

.frog-celebration-burst {
  position: absolute;
  pointer-events: none;
  z-index: 9997;
}

.frog-firefly-sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  animation: frogFireflyDrift 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes frogFireflyDrift {
  0% {
    transform: translate(0, 0) scale(0.5);
    opacity: 0;
  }
  20% {
    opacity: 1;
    transform: translate(calc(var(--tx, 0px) * 0.3), calc(var(--ty, -20px) * 0.3)) scale(1.2);
  }
  100% {
    transform: translate(var(--tx, 0px), var(--ty, -40px)) scale(0.3);
    opacity: 0;
  }
}

/* Kurbağa Başlığı Aktif Takım Rozeti */
.frog-team-turn-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  margin-right: 0.5rem;
  animation: frogTurnPulse 1.5s infinite;
}

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

/* ==========================================================================
   BOŞLUK DOLDURMA (FILL-BLANKS) STYLES
   Temalar: Kelime Bahçesi (İlkokul) & Şifre Laboratuvarı (Ortaokul)
   ========================================================================== */

.fb-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  padding: 1.75rem;
  min-height: 480px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  box-sizing: border-box;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  font-family: inherit;
}

/* Tema 1: Kelime Bahçesi (İlkokul) */
.fb-card.theme-word-garden {
  background: linear-gradient(135deg, #ecfdf5 0%, #e0f2fe 50%, #f0fdf4 100%);
  color: #0f172a;
  border: 3px solid #86efac;
}

.theme-word-garden .fb-atmosphere-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.theme-word-garden .fb-cloud {
  position: absolute;
  font-size: 2.2rem;
  opacity: 0.5;
  animation: fbCloudDrift 24s linear infinite;
}

.theme-word-garden .cloud-1 {
  top: 12px;
  left: -40px;
}

.theme-word-garden .cloud-2 {
  top: 45px;
  left: 55%;
  animation-delay: -12s;
}

@keyframes fbCloudDrift {
  0% { transform: translateX(-60px); }
  100% { transform: translateX(1000px); }
}

.theme-word-garden .fb-passage-wrap {
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid #bbf7d0;
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.08);
}

.theme-word-garden .fb-word-pool-wrap {
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid #bbf7d0;
}

.theme-word-garden .fb-word-chip {
  background: #ffffff;
  color: #1e293b;
  border: 2px solid #86efac;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.12);
}

.theme-word-garden .fb-word-chip:hover:not(.chip-used) {
  background: #f0fdf4;
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.2);
}

/* Tema 2: Şifre Laboratuvarı (Ortaokul) */
.fb-card.theme-cipher-lab {
  background: linear-gradient(135deg, #090d16 0%, #0f172a 60%, #1e1e38 100%);
  color: #f1f5f9;
  border: 3px solid #38bdf8;
}

.theme-cipher-lab .fb-atmosphere-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.theme-cipher-lab .fb-passage-wrap {
  background: rgba(15, 23, 42, 0.88);
  border: 2px solid #334155;
  color: #f8fafc;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.theme-cipher-lab .fb-word-pool-wrap {
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid #334155;
}

.theme-cipher-lab .fb-word-chip {
  background: #1e293b;
  color: #38bdf8;
  border: 2px solid #0284c7;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.theme-cipher-lab .fb-word-chip:hover:not(.chip-used) {
  background: #0f172a;
  border-color: #38bdf8;
  color: #7dd3fc;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.25);
}

.theme-cipher-lab .fb-blank-slot {
  background: rgba(30, 41, 59, 0.85);
  border-color: #475569;
  color: #f1f5f9;
}

.theme-cipher-lab .fb-blank-input,
.theme-cipher-lab .fb-blank-select {
  background: #0f172a;
  color: #f8fafc;
  border-color: #38bdf8;
}

/* Header & Mascot & Controls */
.fb-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.fb-mascot-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12));
}

.fb-mascot-svg,
.fb-cipher-core-svg {
  transition: transform 0.3s ease;
}

.fb-header-info {
  flex: 1;
  min-width: 220px;
}

.fb-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.fb-subtitle {
  margin: 0.25rem 0 0 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Çiçek Bahçesi / Enerji Çekirdeği İlerleme */
.fb-progress-panel {
  flex-shrink: 0;
}

.fb-flowers-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.fb-flower-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fb-flower-item:hover {
  transform: scale(1.18) rotate(6deg);
}

.fb-energy-bar-wrap {
  width: 170px;
}

.fb-energy-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #38bdf8;
  text-align: right;
  margin-bottom: 3px;
}

.fb-energy-track {
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid #334155;
}

.fb-energy-fill {
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #10b981);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

/* Metin ve Boşluk Alanı */
.fb-passage-wrap {
  position: relative;
  z-index: 1;
  padding: 1.6rem 1.8rem;
  border-radius: 1rem;
  margin-bottom: 1.25rem;
  line-height: 2.5;
  box-sizing: border-box;
}

.fb-passage-text {
  font-size: 1.22rem;
  font-weight: 500;
}

.fb-passage-text.font-primary {
  font-family: 'Comic Neue', 'Nunito', 'Segoe UI', cursive, sans-serif;
  font-size: 1.28rem;
}

.fb-passage-text.font-middle {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  font-size: 1.18rem;
}

.fb-text-segment {
  display: inline;
}

/* Boşluk Slotları */
.fb-blank-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  min-width: 120px;
  min-height: 44px;
  padding: 0.2rem 0.65rem;
  margin: 0.2rem 0.4rem;
  border-radius: 0.6rem;
  border: 2px dashed #94a3b8;
  background: rgba(241, 245, 249, 0.7);
  box-sizing: border-box;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.fb-blank-slot.slot-drag-over {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.16);
  transform: scale(1.05);
}

.fb-blank-slot.has-word {
  border-style: solid;
  border-color: #3b82f6;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15);
}

.fb-blank-slot.blank-correct {
  border-color: #10b981 !important;
  background: #ecfdf5 !important;
  color: #065f46 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3) !important;
}

.fb-blank-slot.blank-incorrect {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
  color: #991b1b !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3) !important;
}

.fb-slot-placeholder {
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 600;
  user-select: none;
}

.fb-placed-word {
  font-weight: 700;
  font-size: 1.05rem;
  margin-right: 0.25rem;
}

.fb-slot-badge {
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  margin-left: 0.35rem;
  user-select: none;
}

.fb-slot-badge.badge-correct {
  background: #10b981;
  color: #ffffff;
}

.fb-slot-badge.badge-incorrect {
  background: #ef4444;
  color: #ffffff;
}

/* Yazma ve Seçim Kontrolleri */
.fb-blank-input {
  min-height: 40px;
  width: 140px;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border: 2px solid #cbd5e1;
  border-radius: 0.45rem;
  text-align: center;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.fb-blank-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.fb-blank-select {
  min-height: 42px;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border: 2px solid #cbd5e1;
  border-radius: 0.45rem;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
}

.fb-blank-select:focus {
  border-color: #3b82f6;
}

/* Kelime Kartı Havuzu (Word Pool) */
.fb-word-pool-wrap {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  box-sizing: border-box;
}

.fb-pool-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.fb-word-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.fb-word-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 1.15rem;
  border-radius: 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: grab;
  user-select: none;
  box-sizing: border-box;
  touch-action: manipulation;
  transition: all 0.2s ease;
}

.fb-word-chip:active {
  cursor: grabbing;
}

.fb-word-chip.chip-selected {
  outline: 3px solid #f59e0b;
  border-color: #f59e0b !important;
  transform: scale(1.06);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.fb-word-chip.chip-used {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
  pointer-events: none;
}

.fb-word-chip.chip-dragging {
  opacity: 0.45;
}

/* Alt Aksiyon Butonu */
.fb-action-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.fb-check-btn {
  min-height: 48px;
  padding: 0.65rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 0.65rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Reduced Motion (Erişilebilirlik) */
@media (prefers-reduced-motion: reduce) {
  .theme-word-garden .fb-cloud,
  .fb-flower-item,
  .fb-word-chip,
  .fb-blank-slot {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive & Mobil Düzen (>= 320px) */
@media (max-width: 640px) {
  .fb-card {
    padding: 1rem;
    min-height: auto;
  }
  .fb-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .fb-passage-wrap {
    padding: 1rem;
    line-height: 2.2;
  }
  .fb-passage-text {
    font-size: 1.05rem;
  }
  .fb-blank-slot {
    min-width: 90px;
    padding: 0.2rem 0.4rem;
    margin: 0.15rem 0.2rem;
  }
  .fb-blank-input {
    width: 100px;
    font-size: 0.95rem;
  }
  .fb-word-chip {
    padding: 0.4rem 0.8rem;
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   29. HARFLERİ SIRALA (UNSCRAMBLE LETTERS) ÖZGÜN TASARIM SİSTEMİ
   ========================================================================== */

.unscramble-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 2rem;
}

/* 1. Tema: İlkokul — Harf Adası */
.unscramble-card.theme-letter-island {
  background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 55%, #fef3c7 100%);
  border: 2px solid #38bdf8;
  color: #0f172a;
}

/* 2. Tema: Ortaokul — Kelime Şifre Merkezi */
.unscramble-card.theme-cipher-center {
  background: linear-gradient(180deg, #020617 0%, #0f172a 60%, #1e293b 100%);
  border: 2px solid #0ea5e9;
  color: #f8fafc;
}

/* Atmosfer Arka Plan Öğeleri */
.unscramble-atmosphere-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.theme-letter-island .unscramble-cloud {
  position: absolute;
  font-size: 2.2rem;
  opacity: 0.75;
  animation: fbFloatCloud 24s linear infinite alternate;
}
.theme-letter-island .cloud-1 { top: 8px; left: 10%; }
.theme-letter-island .cloud-2 { top: 24px; right: 12%; animation-duration: 32s; }

.theme-letter-island .unscramble-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: radial-gradient(circle at 10px -5px, transparent 12px, #38bdf8 13px);
  background-size: 24px 20px;
  opacity: 0.45;
}

.theme-letter-island .unscramble-island-decor {
  position: absolute;
  bottom: 14px;
  right: 18px;
  font-size: 2rem;
  opacity: 0.7;
}

.theme-cipher-center .unscramble-grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(14, 165, 233, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Üst Bilgi Başlık ve İlerleme */
.unscramble-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1.5px dashed rgba(0, 0, 0, 0.12);
}
.theme-cipher-center .unscramble-header {
  border-bottom-color: rgba(56, 189, 248, 0.2);
}

.unscramble-mascot-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12));
}

.unscramble-header-info {
  flex: 1;
  min-width: 200px;
}

.unscramble-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.01em;
}

.unscramble-subtitle {
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.88;
  line-height: 1.4;
}

/* Görsel İlerleme: Sandık & Şifre Çubuğu */
.unscramble-progress-panel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.unscramble-chest-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  filter: drop-shadow(0 3px 6px rgba(120, 53, 15, 0.25));
}

.unscramble-energy-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 140px;
}
.unscramble-energy-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #38bdf8;
}
.unscramble-energy-track {
  width: 100%;
  height: 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #0ea5e9;
  border-radius: 999px;
  overflow: hidden;
}
.unscramble-energy-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8, #7dd3fc);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Görsel İpucu */
.unscramble-image-hint-box {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}
.unscramble-hint-img {
  max-height: 150px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  border: 2px solid white;
}

/* Nazik Uyarı Mesaj Alanı */
.unscramble-gentle-alert {
  position: relative;
  z-index: 1;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin: 0.75rem 0;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.4;
  animation: fadeIn 0.25s ease-out;
}
.unscramble-gentle-alert.alert-info {
  background: rgba(2, 132, 199, 0.1);
  border: 1.5px solid #0284c7;
  color: #0369a1;
}
.theme-cipher-center .unscramble-gentle-alert.alert-info {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #7dd3fc;
}
.unscramble-gentle-alert.alert-success {
  background: rgba(34, 197, 94, 0.14);
  border: 1.5px solid #22c55e;
  color: #15803d;
}
.theme-cipher-center .unscramble-gentle-alert.alert-success {
  background: rgba(34, 197, 94, 0.2);
  border-color: #4ade80;
  color: #86efac;
}
.unscramble-gentle-alert.alert-gentle-wrong {
  background: rgba(245, 158, 11, 0.12);
  border: 1.5px solid #f59e0b;
  color: #b45309;
}
.theme-cipher-center .unscramble-gentle-alert.alert-gentle-wrong {
  background: rgba(245, 158, 11, 0.2);
  border-color: #fbbf24;
  color: #fde68a;
}
.unscramble-exp-text {
  display: inline-block;
  margin-top: 0.25rem;
  font-weight: normal;
  opacity: 0.9;
}

/* ==========================================================================
   Hedef Kelime Yuvaları (Slots Container & Slots)
   ========================================================================== */

.unscramble-slots-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 1.5rem 1rem;
  margin: 1.25rem 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.4);
  border: 2px dashed rgba(2, 132, 199, 0.25);
  min-height: 84px;
}
.theme-cipher-center .unscramble-slots-container {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(56, 189, 248, 0.35);
}

.unscramble-slot {
  min-width: 54px;
  min-height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px dashed rgba(100, 116, 139, 0.4);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
  touch-action: manipulation;
  user-select: none;
  cursor: pointer;
}
.unscramble-slot:focus-visible {
  outline: 3px solid #0284c7;
  outline-offset: 2px;
}

.unscramble-slot.slot-filled {
  border-style: solid;
  border-color: transparent;
}

.unscramble-slot.slot-fixed {
  border-style: solid;
  border-color: rgba(100, 116, 139, 0.25);
  background: rgba(255, 255, 255, 0.3);
  font-size: 1.8rem;
  font-weight: 800;
  color: #475569;
  cursor: default;
}
.theme-cipher-center .unscramble-slot.slot-fixed {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}

.unscramble-slot.slot-drag-over {
  transform: scale(1.08);
  border-color: #0284c7;
  background: rgba(2, 132, 199, 0.15);
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.35);
}

.unscramble-slot.slot-correct {
  border-color: #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.3);
}

.unscramble-slot.slot-misplaced-soft {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  animation: pulseMisplaced 0.8s ease-in-out;
}

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

/* ==========================================================================
   Harf Havuzu (Pool Container & Letter Tiles)
   ========================================================================== */

.unscramble-pool-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  min-height: 72px;
}

.unscramble-letter-tile {
  min-width: 52px;
  min-height: 52px;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}
.unscramble-letter-tile:focus-visible {
  outline: 3px solid #0284c7;
  outline-offset: 2px;
}

/* İlkokul: Ahşap Tahta / Sandık Kartı */
.unscramble-letter-tile.tile-wood-plank {
  background: linear-gradient(180deg, #fed7aa 0%, #fcd34d 100%);
  border: 2.5px solid #b45309;
  color: #451a03;
}
.unscramble-letter-tile.tile-wood-plank:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 12px -2px rgba(180, 83, 9, 0.3);
}

/* Ortaokul: Siber Şifre Bloğu */
.unscramble-letter-tile.tile-cyber-block {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}
.unscramble-letter-tile.tile-cyber-block:hover {
  transform: translateY(-3px);
  border-color: #7dd3fc;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
}

/* Seçili Harf */
.unscramble-letter-tile.tile-selected {
  transform: translateY(-5px) scale(1.08);
  outline: 3.5px solid #0284c7;
  box-shadow: 0 10px 18px rgba(2, 132, 199, 0.4);
}

/* Doğru Konuma Kilitlenmiş Harf */
.unscramble-letter-tile.tile-correct {
  background: linear-gradient(180deg, #bbf7d0 0%, #4ade80 100%) !important;
  border-color: #16a34a !important;
  color: #064e3b !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.35) !important;
}

/* Sürükleme Anı */
.unscramble-letter-tile.tile-dragging {
  opacity: 0.45;
  transform: scale(0.95);
}

/* Çeldirici Harf Görseli */
.unscramble-letter-tile.tile-distractor {
  opacity: 0.96;
}

/* ==========================================================================
   Araç Çubuğu ve Butonlar
   ========================================================================== */

.unscramble-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1.5px dashed rgba(0, 0, 0, 0.1);
}
.theme-cipher-center .unscramble-toolbar {
  border-top-color: rgba(56, 189, 248, 0.2);
}

.unscramble-hint-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.btn-unscramble-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  border: 1.5px solid #cbd5e1;
  color: #334155;
}
.btn-unscramble-action:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  transform: translateY(-1px);
}
.btn-unscramble-action:active {
  transform: translateY(0);
}
.theme-cipher-center .btn-unscramble-action {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}
.theme-cipher-center .btn-unscramble-action:hover {
  background: #1e293b;
  border-color: #0ea5e9;
  color: #38bdf8;
}

.btn-unscramble-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.6rem;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-unscramble-check:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.4);
}
.btn-unscramble-check:active {
  transform: translateY(0);
}

/* ==========================================================================
   Yazdırılabilir A4 Çalışma Kâğıdı Stilleri
   ========================================================================== */

.unscramble-print-page {
  padding: 1.5rem;
  font-family: inherit;
  color: #111827;
}

.unscramble-print-item {
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.unscramble-print-qnum {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.unscramble-print-prompt {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.unscramble-print-letters-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0.5rem 0;
}

.unscramble-print-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid #1f2937;
  border-radius: 6px;
  font-weight: 800;
  font-size: 1.3rem;
  background: #f9fafb;
}

.unscramble-print-answer-line {
  margin-top: 0.75rem;
  font-size: 1rem;
}

.unscramble-print-hint {
  font-size: 0.85rem;
  color: #4b5563;
  margin-top: 0.25rem;
}

.unscramble-answer-key {
  margin-top: 2rem;
  page-break-before: auto;
  border-top: 2px dashed #9ca3af;
  padding-top: 1.5rem;
}

/* ==========================================================================
   Mobil ve Küçük Ekran Uyumluluğu
   ========================================================================== */

@media (max-width: 640px) {
  .unscramble-card {
    padding: 1rem;
    border-radius: 16px;
  }
  .unscramble-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .unscramble-title {
    font-size: 1.2rem;
  }
  .unscramble-subtitle {
    font-size: 0.85rem;
  }
  .unscramble-slots-container {
    gap: 6px;
    padding: 1rem 0.5rem;
  }
  .unscramble-slot {
    min-width: 44px;
    min-height: 44px;
  }
  .unscramble-pool-container {
    gap: 8px;
    padding: 0.5rem;
  }
  .unscramble-letter-tile {
    min-width: 44px;
    min-height: 44px;
    font-size: 1.5rem;
  }
  .unscramble-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-unscramble-check {
    width: 100%;
  }
}

/* ==========================================================================
   Erişilebilirlik ve Hareket Azaltma (prefers-reduced-motion)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .unscramble-card,
  .unscramble-slot,
  .unscramble-letter-tile,
  .btn-unscramble-action,
  .btn-unscramble-check,
  .unscramble-energy-fill {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
  .theme-letter-island .unscramble-cloud {
    animation: none !important;
  }
  .unscramble-chest-svg g {
    transition: none !important;
  }
}

/* ==========================================================================
   30. OYUN: KELİMELERİ SIRALA (UNSCRAMBLE WORDS) STİLLERİ
   Cümle Treni (İlkokul) & Mantık Hattı (Ortaokul)
   ========================================================================== */

.unscramble-words-card {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  font-family: inherit;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* --------------------------------------------------------------------------
   Tema 1: Cümle Treni (İlkokul)
   -------------------------------------------------------------------------- */
.theme-sentence-train {
  background: linear-gradient(180deg, #bae6fd 0%, #e0f2fe 55%, #86efac 100%);
  border: 4px solid #0284c7;
  color: #0f172a;
}

.theme-sentence-train .words-atmosphere-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.train-cloud {
  position: absolute;
  font-size: 2rem;
  opacity: 0.8;
  animation: trainCloudDrift 30s linear infinite;
}

.train-cloud.cloud-1 { top: 10px; left: 5%; animation-duration: 35s; }
.train-cloud.cloud-2 { top: 40px; right: 10%; animation-duration: 28s; animation-delay: -10s; }

@keyframes trainCloudDrift {
  0% { transform: translateX(-50px); }
  50% { transform: translateX(50px); }
  100% { transform: translateX(-50px); }
}

.train-hill {
  position: absolute;
  bottom: 0;
  border-radius: 50% 50% 0 0;
  background: #4ade80;
  opacity: 0.5;
}

.train-hill.hill-1 { width: 350px; height: 90px; left: -50px; }
.train-hill.hill-2 { width: 450px; height: 110px; right: -70px; background: #22c55e; opacity: 0.35; }

.train-tree {
  position: absolute;
  bottom: 25px;
  font-size: 1.6rem;
  opacity: 0.75;
}
.train-tree.tree-1 { left: 40px; }
.train-tree.tree-2 { right: 80px; }

/* --------------------------------------------------------------------------
   Tema 2: Mantık Hattı (Ortaokul)
   -------------------------------------------------------------------------- */
.theme-logic-line {
  background: radial-gradient(circle at 50% 30%, #1e293b 0%, #0f172a 100%);
  border: 3px solid #0284c7;
  color: #f8fafc;
}

.theme-logic-line .words-atmosphere-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(14, 165, 233, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.logic-status-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 130px;
}

.logic-status-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #38bdf8;
  text-align: right;
}

.logic-status-bar {
  width: 100%;
  height: 10px;
  background: #334155;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #0284c7;
}

.logic-status-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #10b981);
  transition: width 0.3s ease;
}

.logic-core-svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 2px 8px rgba(14, 165, 233, 0.4));
}

.logic-pulsing-led {
  animation: ledPulse 1.8s infinite ease-in-out;
}

@keyframes ledPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.logic-verified-glow {
  filter: drop-shadow(0 0 16px rgba(16, 185, 129, 0.9));
}

/* --------------------------------------------------------------------------
   Başlık ve Üst Panel
   -------------------------------------------------------------------------- */
.words-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.theme-logic-line .words-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.words-mascot-wrap {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.train-machinist-svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.train-locomotive-wrap {
  width: 110px;
  height: 75px;
  transition: transform 0.4s ease;
}

.train-locomotive-svg {
  width: 100%;
  height: 100%;
}

.train-arrival-celebration {
  animation: trainHonk 0.8s ease infinite alternate;
}

@keyframes trainHonk {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.words-header-info {
  flex: 1;
}

.words-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
}

.theme-sentence-train .words-title {
  color: #0369a1;
}

.theme-logic-line .words-title {
  color: #38bdf8;
}

.words-subtitle {
  margin: 0.25rem 0 0 0;
  font-size: 0.95rem;
  opacity: 0.88;
}

/* --------------------------------------------------------------------------
   Yuvalar Alanı (Slots Container)
   -------------------------------------------------------------------------- */
.words-slots-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 80px;
  padding: 1.25rem 1rem;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.train-track-slots {
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid #7dd3fc;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}

.logic-pipeline-slots {
  background: rgba(15, 23, 42, 0.6);
  border: 2px solid #0284c7;
  box-shadow: inset 0 0 14px rgba(2, 132, 199, 0.2);
}

.words-slot {
  position: relative;
  min-width: 80px;
  min-height: 52px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.train-track-slots .words-slot.slot-empty {
  border: 2px dashed #94a3b8;
  background: rgba(255, 255, 255, 0.5);
}

.logic-pipeline-slots .words-slot.slot-empty {
  border: 2px dashed #475569;
  background: rgba(30, 41, 59, 0.5);
}

.words-slot.slot-drag-over {
  border-color: #0284c7 !important;
  background: rgba(56, 189, 248, 0.2) !important;
  transform: scale(1.04);
}

.words-slot.slot-selected {
  outline: 3px solid #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
}

.words-slot.slot-correct {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.15) !important;
}

.words-slot.slot-misplaced {
  border-color: #f59e0b !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.slot-num-indicator {
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.45;
  pointer-events: none;
}

.train-coupler-link {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 4px;
  background: #64748b;
  border-radius: 2px;
  z-index: 2;
}

.train-coupler-link.coupler-connected {
  background: #0284c7;
}

/* --------------------------------------------------------------------------
   Havuz Alanı (Pool Container)
   -------------------------------------------------------------------------- */
.words-pool-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 80px;
  padding: 1.25rem 1rem;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.theme-logic-line .words-pool-container {
  background: rgba(30, 41, 59, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   Kart Öğesi (Card Item)
   -------------------------------------------------------------------------- */
.words-card-item {
  position: relative;
  min-width: 68px;
  min-height: 48px;
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.words-card-item:hover {
  transform: translateY(-2px);
}

.words-card-item:focus-visible {
  outline: 3px solid #0284c7;
  outline-offset: 2px;
}

.words-card-item.card-selected {
  transform: scale(1.08);
  outline: 3px solid #38bdf8 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.7);
  z-index: 10;
}

.words-card-item.card-dragging {
  opacity: 0.35;
}

/* Tren Vagon Renkleri */
.train-wagon {
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border-bottom: 4px solid rgba(0, 0, 0, 0.25);
}

.train-wagon.wagon-c-1 { background: linear-gradient(135deg, #ef4444, #dc2626); }
.train-wagon.wagon-c-2 { background: linear-gradient(135deg, #0284c7, #0369a1); }
.train-wagon.wagon-c-3 { background: linear-gradient(135deg, #10b981, #059669); }
.train-wagon.wagon-c-4 { background: linear-gradient(135deg, #f59e0b, #d97706); color: #0f172a; }
.train-wagon.wagon-c-5 { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.wagon-wheels {
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
}

.wagon-wheels .wheel {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid #94a3b8;
}

/* Mantık Hattı Kartları */
.logic-card {
  background: #1e293b;
  color: #38bdf8;
  border: 2px solid #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.logic-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35);
}

/* --------------------------------------------------------------------------
   Araç Çubuğu ve Butonlar
   -------------------------------------------------------------------------- */
.words-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
}

.words-hint-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-words-action {
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.85);
  color: #0f172a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.15s ease;
}

.theme-logic-line .btn-words-action {
  background: #334155;
  color: #f8fafc;
}

.btn-words-action:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.theme-logic-line .btn-words-action:hover {
  background: #475569;
}

.btn-words-check {
  min-height: 48px;
  padding: 0.6rem 1.8rem;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.btn-words-check:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45);
}

/* --------------------------------------------------------------------------
   Bildirimler ve Açıklama Kutuları
   -------------------------------------------------------------------------- */
.words-gentle-alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}

.words-gentle-alert.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}

.words-gentle-alert.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.words-gentle-alert.alert-info {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #0284c7;
}

.words-explanation-card {
  padding: 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-left: 4px solid #10b981;
  color: #0f172a;
  font-size: 0.95rem;
}

.theme-logic-line .words-explanation-card {
  background: #1e293b;
  color: #f8fafc;
}

/* --------------------------------------------------------------------------
   A4 Yazdırma Stilleri
   -------------------------------------------------------------------------- */
.unscramble-print-card-tile {
  display: inline-block;
  padding: 6px 12px;
  margin: 4px;
  border: 2px solid #334155;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Mobil ve Duyarlılık Kuralları (320px Taşma Kontrolü)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .unscramble-words-card {
    padding: 1rem;
    gap: 1rem;
  }
  .words-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .words-title {
    font-size: 1.15rem;
  }
  .words-slots-container,
  .words-pool-container {
    padding: 0.75rem 0.5rem;
    gap: 8px;
  }
  .words-card-item {
    min-width: 60px;
    min-height: 44px;
    padding: 0.45rem 0.75rem;
    font-size: 0.95rem;
  }
  .words-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-words-check {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Azaltılmış Hareket Modu (prefers-reduced-motion)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .unscramble-words-card,
  .words-slot,
  .words-card-item,
  .train-locomotive-wrap,
  .logic-status-fill,
  .btn-words-action,
  .btn-words-check {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
  .train-cloud {
    animation: none !important;
  }
  .logic-pulsing-led {
    animation: none !important;
  }
}

/* ==========================================================================
   31. Video Quiz (video-quiz) Oyun Stilleri
   ========================================================================== */

.video-quiz-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  font-family: inherit;
  box-sizing: border-box;
}

.video-quiz-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  background: #0f172a;
  color: #f8fafc;
  position: relative;
}

/* Tema 1: Keşif Sineması (İlkokul) */
.theme-discovery-cinema {
  border: 4px solid #b45309;
  background: radial-gradient(circle at top, #1e1b4b 0%, #0f172a 100%);
  box-shadow: 0 10px 30px rgba(180, 83, 9, 0.25);
}

.theme-discovery-cinema .video-quiz-overlay-card {
  background: rgba(30, 27, 75, 0.95);
  border: 2px solid #fbbf24;
  box-shadow: 0 8px 32px rgba(251, 191, 36, 0.3);
}

.theme-discovery-cinema .vq-choice-btn {
  background: #2e1065;
  border: 2px solid #a855f7;
  color: #f5f3ff;
}

.theme-discovery-cinema .vq-choice-btn:hover {
  background: #3b0764;
  border-color: #fbbf24;
}

/* Tema 2: Medya Laboratuvarı (Ortaokul) */
.theme-media-lab {
  border: 4px solid #0284c7;
  background: radial-gradient(circle at top, #082f49 0%, #020617 100%);
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.25);
}

.theme-media-lab .video-quiz-overlay-card {
  background: rgba(15, 23, 42, 0.96);
  border: 2px solid #38bdf8;
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.35);
}

.theme-media-lab .vq-choice-btn {
  background: #0f172a;
  border: 2px solid #0284c7;
  color: #e0f2fe;
}

.theme-media-lab .vq-choice-btn:hover {
  background: #0369a1;
  border-color: #38bdf8;
}

/* 16:9 Video Alanı */
.video-quiz-stage-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-quiz-stage-wrap iframe,
.video-quiz-stage-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: none;
}

/* Soru Katmanı (Overlay) */
.video-quiz-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.video-quiz-overlay-card {
  width: 100%;
  max-width: 580px;
  max-height: 90%;
  overflow-y: auto;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-sizing: border-box;
  color: #ffffff;
}

.vq-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #4f46e5;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.vq-options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0;
}

.vq-choice-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s, background-color 0.15s, border-color 0.15s;
  box-sizing: border-box;
}

.vq-choice-btn:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}

.vq-choice-btn.selected {
  outline: 3px solid #38bdf8;
  background: rgba(56, 189, 248, 0.25) !important;
}

.vq-choice-btn.correct {
  background: #166534 !important;
  border-color: #22c55e !important;
  color: #ffffff !important;
}

.vq-choice-btn.wrong {
  background: #991b1b !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}

.vq-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.15s;
}

.vq-action-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.vq-action-btn:active {
  transform: translateY(0);
}

/* Mobil 320px uyumu */
@media (max-width: 480px) {
  .video-quiz-overlay-card {
    padding: 0.85rem;
  }
  .vq-choice-btn {
    min-height: 44px;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }
}

/* Azaltılmış Hareket */
@media (prefers-reduced-motion: reduce) {
  .video-quiz-card,
  .video-quiz-overlay-card,
  .vq-choice-btn,
  .vq-action-btn {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* ==========================================================================
   32. Alfabe Çarkı (Alphabet Wheel) Stilleri
   ========================================================================== */

.alphabet-wheel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow-x: hidden;
}

.wheel-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  margin: 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-canvas-wrap svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.15));
}

.wheel-letter-node {
  cursor: pointer;
  outline: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), fill 0.2s;
}

.wheel-letter-node:hover,
.wheel-letter-node:focus-visible {
  transform: scale(1.15);
}

.wheel-letter-node.active-node {
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.9));
}

.wheel-letter-node.passed-node {
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.8));
}

.wheel-letter-node.solved-node {
  filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.8));
}

.wheel-letter-node.failed-node {
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.8));
}

/* Mobil Harf Şeridi (Horizontal Strip) */
.alphabet-mobile-strip {
  display: none;
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0.5rem 0.25rem;
  margin-bottom: 0.75rem;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.alphabet-mobile-strip::-webkit-scrollbar {
  height: 4px;
}

.alphabet-mobile-strip::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.mobile-letter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.5rem;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.05rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
  box-sizing: border-box;
}

.mobile-letter-pill:active {
  transform: scale(0.92);
}

/* Soru Kartı ve Etkileşim Alanı */
.alphabet-wheel-card {
  width: 100%;
  max-width: 600px;
  background: var(--bg-card, #ffffff);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
  box-sizing: border-box;
}

.aw-input-field {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.aw-input-field:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.aw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.aw-btn-pass {
  background: #fef3c7;
  color: #92400e;
  border: 2px solid #fcd34d;
}

.aw-btn-pass:hover {
  background: #fde68a;
}

.aw-btn-submit {
  background: #0284c7;
  color: #ffffff;
}

.aw-btn-submit:hover {
  background: #0369a1;
}

.aw-btn-help {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.aw-btn-help:hover {
  background: #e2e8f0;
}

/* Temalar */
.theme-letter-planet {
  background: radial-gradient(circle at center, #1e1b4b 0%, #0f172a 100%);
  color: #f8fafc;
  border-radius: 16px;
  padding: 1rem;
}

.theme-knowledge-orbit {
  background: linear-gradient(180deg, #090d16 0%, #111827 100%);
  color: #e2e8f0;
  border-radius: 16px;
  padding: 1rem;
}

/* Responsive & Touch Target (Mobile 320px) */
@media (max-width: 640px) {
  .wheel-canvas-wrap {
    max-width: 300px;
  }
  .alphabet-mobile-strip {
    display: flex;
  }
  .alphabet-wheel-card {
    padding: 1rem;
  }
  .aw-btn {
    min-height: 44px;
    padding: 0.5rem 0.85rem;
    font-size: 0.92rem;
  }
}

/* Prefers-reduced-motion: reduce */
@media (prefers-reduced-motion: reduce) {
  .wheel-letter-node,
  .mobile-letter-pill,
  .aw-btn,
  .wheel-canvas-wrap svg * {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Etkileşimli Diyalog (Interactive Dialogue) Oyun Stilleri
   ========================================================================== */

.interactive-dialogue-card {
  position: relative;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-card, #ffffff);
  color: var(--text-color, #1e293b);
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
  min-width: 280px;
}

/* Temalar */
.interactive-dialogue-card.theme-story-town {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  border-color: #bbf7d0;
}

.interactive-dialogue-card.theme-decision-center {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-color: #cbd5e1;
}

/* Arka Plan SVG Sahnesi */
.dialogue-backdrop-svg-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.04);
}

.dialogue-backdrop-svg-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 180px;
}

/* Değer ve Beceri Göstergeleri */
.dialogue-values-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

.dialogue-value-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.dialogue-value-chip .val-count {
  background: #2563eb;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 0.75rem;
}

/* Karakter ve Konuşma Balonu Alanı */
.dialogue-scene-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.dialogue-character-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 90px;
  text-align: center;
}

.dialogue-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border: 3px solid #ffffff;
}

.dialogue-avatar-wrap svg {
  width: 64px;
  height: 64px;
}

.dialogue-character-name {
  font-weight: 800;
  font-size: 0.88rem;
  margin-top: 0.4rem;
  color: #1e293b;
  line-height: 1.2;
}

.dialogue-character-role {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
}

.dialogue-emotion-pill {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #475569;
  font-weight: 600;
}

/* Konuşma Balonu */
.dialogue-speech-bubble {
  position: relative;
  flex: 1;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.dialogue-speech-bubble::before {
  content: '';
  position: absolute;
  top: 24px;
  left: -12px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 12px solid #e2e8f0;
}

.dialogue-speech-bubble::after {
  content: '';
  position: absolute;
  top: 25px;
  left: -9px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-right: 10px solid #ffffff;
}

/* Seçenekler Listesi ve Butonları (Min touch target: 44x44px) */
.dialogue-choices-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.dialogue-choice-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.dialogue-choice-btn:hover:not(:disabled) {
  border-color: #3b82f6;
  background: #eff6ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.15);
}

.dialogue-choice-btn:active:not(:disabled) {
  transform: translateY(0);
}

.dialogue-choice-btn:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}

.dialogue-choice-btn .choice-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Kısa Cevap ve Doğru-Yanlış Düğüm Alanları */
.dialogue-input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.dialogue-text-field {
  flex: 1;
  min-height: 44px;
  min-width: 220px;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 1rem;
}

.dialogue-action-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: #2563eb;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.dialogue-action-btn:hover {
  background: #1d4ed8;
}

.dialogue-action-btn.btn-tf {
  flex: 1;
  min-height: 52px;
  font-size: 1.05rem;
}

.dialogue-action-btn.btn-tf-true {
  background: #10b981;
}

.dialogue-action-btn.btn-tf-true:hover {
  background: #059669;
}

.dialogue-action-btn.btn-tf-false {
  background: #ef4444;
}

.dialogue-action-btn.btn-tf-false:hover {
  background: #dc2626;
}

/* Dönüt ve Geri Bildirim Kutusu */
.dialogue-feedback-box {
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.dialogue-feedback-box.feedback-positive {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.dialogue-feedback-box.feedback-neutral {
  background: #f8fafc;
  color: #334155;
  border-color: #e2e8f0;
}

/* Gezinme ve Geri Dönüş Çubuğu */
.dialogue-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color, #e2e8f0);
}

.dialogue-backtrack-btn {
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dialogue-backtrack-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}

/* Sonuç Kartı */
.dialogue-result-box {
  text-align: center;
  padding: 2rem 1rem;
}

.dialogue-result-badge {
  display: inline-block;
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.dialogue-result-score {
  font-size: 1.75rem;
  font-weight: 800;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.dialogue-result-summary {
  font-size: 1.05rem;
  color: #334155;
  max-width: 500px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.5;
}

/* Mobil Uyumluluk (320px) */
@media (max-width: 640px) {
  .interactive-dialogue-card {
    padding: 1rem;
  }
  .dialogue-scene-box {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .dialogue-character-box {
    width: auto;
  }
  .dialogue-speech-bubble::before,
  .dialogue-speech-bubble::after {
    display: none;
  }
  .dialogue-speech-bubble {
    width: 100%;
    padding: 1rem;
    font-size: 0.95rem;
  }
  .dialogue-choice-btn {
    min-height: 44px;
    padding: 0.6rem 0.9rem;
    font-size: 0.92rem;
  }
  .dialogue-values-bar {
    justify-content: center;
  }
}

/* Prefers-reduced-motion for Interactive Dialogue */
@media (prefers-reduced-motion: reduce) {
  .interactive-dialogue-card,
  .dialogue-choice-btn,
  .dialogue-action-btn,
  .dialogue-speech-bubble,
  .dialogue-avatar-wrap svg * {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Uzay Filosu (Space Fleet) Oyun Kartı ve Bileşenleri (34. Oyun)
   ========================================================================== */

.space-fleet-card {
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
}

/* Yıldız Kaşifleri Teması (Derin Gece / Uzay) */
.space-fleet-theme-star-explorers {
  background: #0b132b;
  color: #f8fafc;
  border: 1.5px solid #1e293b;
}

.space-fleet-theme-star-explorers .space-fleet-prompt-bubble {
  background: rgba(30, 41, 59, 0.7);
  color: #f8fafc;
  border: 1px solid #334155;
}

.space-fleet-theme-star-explorers .space-fleet-choice-btn {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #38bdf8;
}

.space-fleet-theme-star-explorers .space-fleet-choice-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
}

/* Bilim Filosu Teması (Teknik Panel) */
.space-fleet-theme-science-fleet {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
}

.space-fleet-theme-science-fleet .space-fleet-prompt-bubble {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.space-fleet-theme-science-fleet .space-fleet-choice-btn {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #94a3b8;
}

.space-fleet-theme-science-fleet .space-fleet-choice-btn:hover {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #0284c7;
}

/* Başlık ve Durum Çubuğu */
.space-fleet-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.space-fleet-ship-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.space-fleet-ship-meta {
  display: flex;
  flex-direction: column;
}

.space-fleet-ship-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.space-fleet-energy-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #38bdf8;
}

.space-fleet-score-box {
  font-size: 1rem;
  font-weight: 700;
}

/* Enerji İlerleme Çubuğu */
.space-fleet-energy-track {
  width: 100%;
  height: 12px;
  background: rgba(148, 163, 184, 0.25);
  border-radius: 6px;
  overflow: hidden;
  margin: 0.5rem 0 1.25rem 0;
}

.space-fleet-energy-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8 0%, #0284c7 100%);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.space-fleet-energy-fill.energy-low {
  background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%) !important;
}

/* Sahne ve İstasyon Bölgesi */
.space-fleet-scene-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  background: rgba(148, 163, 184, 0.08);
}

.space-fleet-station-visual {
  text-align: center;
  min-width: 90px;
}

.space-fleet-station-title {
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.space-fleet-prompt-bubble {
  flex: 1;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.space-fleet-prompt-text {
  margin: 0;
}

/* Soru ve Seçenek Butonları (Minimum 44px erişilebilirlik) */
.space-fleet-actions-box {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.25rem 0;
}

.space-fleet-choice-btn {
  min-height: 48px;
  min-width: 44px;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.space-fleet-input-field {
  min-height: 48px;
  font-size: 1rem;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  width: 100%;
  margin-bottom: 0.5rem;
}

/* Barışçıl Güneş Enerjisi İkmal Bildirimi */
.space-fleet-resupply-notice {
  background: #fef3c7;
  color: #92400e;
  border: 2px solid #f59e0b;
  border-radius: 10px;
  padding: 1.25rem;
  margin: 1rem 0;
  text-align: center;
}

.space-fleet-resupply-notice h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.15rem;
}

.space-fleet-resupply-notice p {
  margin: 0 0 1rem 0;
}

/* Yardım Araçları Çubuğu */
.space-fleet-help-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.space-fleet-help-btn {
  min-height: 44px;
  min-width: 44px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}

/* Mobil ve 320px Ekran Uyumluluğu */
@media (max-width: 640px) {
  .space-fleet-card {
    padding: 1rem;
  }
  .space-fleet-scene-box {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .space-fleet-choice-btn {
    min-height: 48px;
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
  }
  .space-fleet-header-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Erişilebilirlik: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .space-fleet-card,
  .space-fleet-choice-btn,
  .space-fleet-help-btn,
  .space-fleet-energy-fill,
  .space-fleet-ship-svg * {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* Universal Prominent Active Team Turn Banner */
.player-team-turn-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.45rem 1.25rem;
  margin: 0 auto 0.65rem auto;
  max-width: min(94vw, 580px);
  border-radius: 12px;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  font-weight: 800;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}

.player-team-turn-banner .turn-icon {
  font-size: 1.45rem;
}

.player-team-turn-banner.pulse-turn {
  animation: turnBannerPulse 1.8s infinite alternate;
}

@keyframes turnBannerPulse {
  0% { transform: scale(1); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
  100% { transform: scale(1.025); box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4); }
}

/* ==========================================================================
   AKILLI TAHTA TAM EKRAN, FLUID ÖLÇEKLEME VE DOKUNMATİK MOTOR STİLLERİ
   (Vestel, Arçelik, Promethean, SMART Board ve Yüksek Çözünürlüklü Sınıf Ekranları)
   ========================================================================== */

/* 1. Tam Ekran ve Akıllı Tahta Modu */
html.smartboard-fullscreen-active,
html:fullscreen,
:fullscreen,
body.smartboard-fullscreen,
body:fullscreen,
:-webkit-full-screen body {
  --smart-arena-max-w: 98vw;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100vh !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  scroll-behavior: smooth;
}

body.smartboard-fullscreen .player-arena,
:fullscreen body .player-arena,
:-webkit-full-screen body .player-arena {
  max-width: 98vw !important;
  width: 98vw !important;
  padding: 0.75rem 1.5vw 4rem !important;
  min-height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  overflow-y: visible !important;
  box-sizing: border-box !important;
}

body.smartboard-fullscreen .game-play-card,
:fullscreen body .game-play-card,
:-webkit-full-screen body .game-play-card {
  width: 100% !important;
  max-width: 100% !important;
  min-height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: clamp(0.75rem, 1.8vh, 1.5rem) !important;
  padding: clamp(1rem, 2vh, 2rem) clamp(1.25rem, 2.5vw, 2.5rem) !important;
  box-sizing: border-box !important;
}

/* Soru Başlığı ve Yönergeler */
body.smartboard-fullscreen .question-prompt:not(.frog-prompt),
:fullscreen body .question-prompt:not(.frog-prompt),
:-webkit-full-screen body .question-prompt:not(.frog-prompt) {
  font-size: clamp(1.25rem, 2vw, 2.1rem) !important;
  line-height: 1.35 !important;
  margin-bottom: 0.85rem !important;
  letter-spacing: -0.01em !important;
}

body.smartboard-fullscreen .forest-question-signboard .frog-prompt,
:fullscreen body .forest-question-signboard .frog-prompt,
:-webkit-full-screen body .forest-question-signboard .frog-prompt {
  font-size: clamp(1.35rem, 2.1vw, 2.4rem) !important;
  line-height: 1.3 !important;
}

body.smartboard-fullscreen .game-instruction-banner,
:fullscreen body .game-instruction-banner,
:-webkit-full-screen body .game-instruction-banner {
  font-size: clamp(1rem, 1.3vw, 1.4rem) !important;
  padding: 0.65rem 1.25rem !important;
}

/* Soru Görselleri - Tam Ekranda Taşmayı Önleme */
body.smartboard-fullscreen .question-image-wrap,
:fullscreen body .question-image-wrap {
  max-height: clamp(160px, 26vh, 280px) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-bottom: 0.75rem !important;
}

body.smartboard-fullscreen .question-image,
:fullscreen body .question-image {
  max-height: clamp(150px, 24vh, 260px) !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

/* Çoktan Seçmeli Butonları */
body.smartboard-fullscreen .options-grid,
:fullscreen body .options-grid,
:-webkit-full-screen body .options-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 36vw, 520px), 1fr)) !important;
  gap: clamp(0.75rem, 1.6vh, 1.35rem) !important;
  width: 100% !important;
}

body.smartboard-fullscreen .btn-option,
:fullscreen body .btn-option,
:-webkit-full-screen body .btn-option {
  min-height: clamp(52px, 6.5vh, 78px) !important;
  font-size: clamp(1.05rem, 1.4vw, 1.55rem) !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: 14px !important;
  border-width: 3px !important;
}

body.smartboard-fullscreen .option-badge,
:fullscreen body .option-badge,
:-webkit-full-screen body .option-badge {
  width: clamp(36px, 3.2vw, 48px) !important;
  height: clamp(36px, 3.2vw, 48px) !important;
  font-size: clamp(1rem, 1.3vw, 1.45rem) !important;
  border-radius: 10px !important;
  border-width: 2px !important;
}

/* Doğru - Yanlış */
body.smartboard-fullscreen .tf-statement-box,
:fullscreen body .tf-statement-box,
:-webkit-full-screen body .tf-statement-box {
  padding: clamp(1.25rem, 3vh, 2.5rem) 1.5rem !important;
}

body.smartboard-fullscreen .tf-statement-text,
:fullscreen body .tf-statement-text,
:-webkit-full-screen body .tf-statement-text {
  font-size: clamp(1.4rem, 2.2vw, 2.4rem) !important;
}

body.smartboard-fullscreen .btn-tf,
:fullscreen body .btn-tf,
:-webkit-full-screen body .btn-tf {
  min-height: clamp(70px, 9vh, 110px) !important;
  font-size: clamp(1.4rem, 2vw, 2.2rem) !important;
  border-radius: 16px !important;
}

/* Akıllı Tahta Düşük Yükseklik Uyarlaması (1366x768 / 1280x720) */
@media (max-height: 800px) {
  body.smartboard-fullscreen .player-arena,
  :fullscreen body .player-arena {
    padding: 0.5rem 1vw 2.5rem !important;
  }
  body.smartboard-fullscreen .game-play-card,
  :fullscreen body .game-play-card {
    padding: 0.75rem 1.2rem !important;
    gap: 0.65rem !important;
  }
  body.smartboard-fullscreen .question-prompt:not(.frog-prompt) {
    font-size: clamp(1.1rem, 1.6vw, 1.55rem) !important;
    margin-bottom: 0.5rem !important;
  }
  body.smartboard-fullscreen .btn-option {
    min-height: 48px !important;
    padding: 0.5rem 1rem !important;
    font-size: 1.05rem !important;
  }
  body.smartboard-fullscreen .options-grid {
    gap: 0.65rem !important;
  }
}

/* Akıllı Tahta Kaydırma Çubuğu */
body.smartboard-fullscreen::-webkit-scrollbar,
html.smartboard-fullscreen-active::-webkit-scrollbar {
  width: 10px;
}
body.smartboard-fullscreen::-webkit-scrollbar-track,
html.smartboard-fullscreen-active::-webkit-scrollbar-track {
  background: #0f172a;
}
body.smartboard-fullscreen::-webkit-scrollbar-thumb,
html.smartboard-fullscreen-active::-webkit-scrollbar-thumb {
  background: #38bdf8;
  border-radius: 6px;
}

/* Eşleştirme (Matching) */
body.smartboard-fullscreen .matching-columns-wrap,
:fullscreen body .matching-columns-wrap,
:-webkit-full-screen body .matching-columns-wrap {
  gap: 3.5vw !important;
  width: 100% !important;
}

body.smartboard-fullscreen .matching-card,
:fullscreen body .matching-card,
:-webkit-full-screen body .matching-card {
  min-height: clamp(75px, 8.5vh, 120px) !important;
  font-size: clamp(1.2rem, 1.6vw, 2.2rem) !important;
  padding: 1.25rem 1.75rem !important;
  border-radius: 14px !important;
}

/* Gruplandırma (Grouping) */
body.smartboard-fullscreen .grouping-buckets-wrap,
:fullscreen body .grouping-buckets-wrap,
:-webkit-full-screen body .grouping-buckets-wrap {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
  gap: 2rem !important;
  width: 100% !important;
}

body.smartboard-fullscreen .bucket-card,
:fullscreen body .bucket-card,
:-webkit-full-screen body .bucket-card {
  min-height: clamp(220px, 28vh, 400px) !important;
  padding: 1.5rem !important;
  border-radius: 16px !important;
}

body.smartboard-fullscreen .bucket-header h3,
:fullscreen body .bucket-header h3,
:-webkit-full-screen body .bucket-header h3 {
  font-size: clamp(1.3rem, 1.8vw, 2.4rem) !important;
}

body.smartboard-fullscreen .grouping-item-card,
:fullscreen body .grouping-item-card,
:-webkit-full-screen body .grouping-item-card {
  min-height: clamp(58px, 6.5vh, 95px) !important;
  font-size: clamp(1.15rem, 1.5vw, 2rem) !important;
  padding: 0.85rem 1.4rem !important;
  border-radius: 12px !important;
}

/* Sıralama (Ordering) */
body.smartboard-fullscreen .ordering-list,
:fullscreen body .ordering-list,
:-webkit-full-screen body .ordering-list {
  gap: 1.25rem !important;
  width: 100% !important;
}

body.smartboard-fullscreen .ordering-item-row,
:fullscreen body .ordering-item-row,
:-webkit-full-screen body .ordering-item-row {
  min-height: clamp(75px, 8.5vh, 120px) !important;
  font-size: clamp(1.25rem, 1.8vw, 2.3rem) !important;
  padding: 1.1rem 1.6rem !important;
  border-radius: 14px !important;
}

body.smartboard-fullscreen .btn-order-move,
:fullscreen body .btn-order-move,
:-webkit-full-screen body .btn-order-move {
  width: clamp(54px, 5vw, 84px) !important;
  height: clamp(54px, 5vw, 84px) !important;
  font-size: clamp(1.3rem, 1.8vw, 2.2rem) !important;
  border-radius: 12px !important;
}

/* Boşluk Doldurma (Fill Blanks) */
body.smartboard-fullscreen .fb-word-chip,
:fullscreen body .fb-word-chip,
:-webkit-full-screen body .fb-word-chip {
  font-size: clamp(1.2rem, 1.6vw, 2.2rem) !important;
  padding: 0.85rem 1.6rem !important;
  min-height: 58px !important;
  border-radius: 12px !important;
}

body.smartboard-fullscreen .fb-blank-drop,
:fullscreen body .fb-blank-drop,
:-webkit-full-screen body .fb-blank-drop {
  min-width: 150px !important;
  min-height: 58px !important;
  font-size: clamp(1.2rem, 1.6vw, 2.2rem) !important;
  padding: 0.5rem 1rem !important;
}

/* Yapboz (Jigsaw Puzzle) Akıllı Tahta Esnekliği */
body.smartboard-fullscreen .jigsaw-puzzle-card,
:fullscreen body .jigsaw-puzzle-card,
:-webkit-full-screen body .jigsaw-puzzle-card {
  max-width: 100% !important;
  width: 100% !important;
}

.jigsaw-board-smartboard {
  max-width: min(72vh, 72vw) !important;
  width: 100% !important;
  margin: 0 auto 1.5rem auto !important;
}

/* 2. Tahta Punto Büyüteci (A+ / A-) */
body.tahta-font-lg {
  font-size: 115% !important;
}
body.tahta-font-lg .question-prompt {
  font-size: clamp(2.3rem, 3.6vw, 4.4rem) !important;
}
body.tahta-font-lg .btn-option {
  font-size: clamp(1.4rem, 2.1vw, 2.7rem) !important;
}

body.tahta-font-xl {
  font-size: 130% !important;
}
body.tahta-font-xl .question-prompt {
  font-size: clamp(2.6rem, 4vw, 5rem) !important;
}
body.tahta-font-xl .btn-option {
  font-size: clamp(1.6rem, 2.4vw, 3rem) !important;
}

/* 3. Evrensel Dokunmatik Sürükle-Bırak Efektleri */
[data-touch-draggable="true"],
.touch-draggable {
  touch-action: none !important;
  -webkit-touch-callout: none !important;
  cursor: grab;
}

[data-touch-draggable="true"]:active,
.touch-draggable:active {
  cursor: grabbing;
}

/* Sürüklenen asıl elemanın saydamlaşması */
.touch-dragging {
  opacity: 0.38 !important;
  transform: scale(0.96) !important;
  transition: opacity 0.15s ease, transform 0.15s ease !important;
}

/* Parmağı takip eden hayalet klon (Ghost Proxy) */
.touch-drag-ghost {
  position: fixed !important;
  z-index: 999999 !important;
  pointer-events: none !important;
  transform: scale(1.08) rotate(2.5deg) !important;
  transform-origin: center center !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 3px #38bdf8 !important;
  border-radius: 14px !important;
  opacity: 0.95 !important;
  will-change: transform, left, top !important;
  transition: none !important;
}

/* Parmağın altındaki hedef kutunun vurgusu */
.touch-drop-target {
  box-shadow: 0 0 0 4px #22c55e, 0 8px 30px rgba(34, 197, 94, 0.45) !important;
  background-color: rgba(34, 197, 94, 0.18) !important;
  border-color: #22c55e !important;
  transform: scale(1.025) !important;
  transition: all 0.12s ease !important;
}

/* Çift Yönlü Etkileşim: Dokun-Seç ile seçilen kart için parıldama */
.tap-selected {
  box-shadow: 0 0 0 4px #f59e0b, 0 0 25px rgba(245, 158, 11, 0.75) !important;
  border-color: #f59e0b !important;
  background-color: rgba(245, 158, 11, 0.2) !important;
  transform: scale(1.03) !important;
  animation: tapPulseAnimation 1.2s infinite alternate !important;
}

@keyframes tapPulseAnimation {
  0% { transform: scale(1.01); box-shadow: 0 0 0 3px #f59e0b, 0 0 15px rgba(245, 158, 11, 0.5); }
  100% { transform: scale(1.04); box-shadow: 0 0 0 5px #f59e0b, 0 0 28px rgba(245, 158, 11, 0.85); }
}

/* Dokun-Seç durumunda hedef alanların hafif davetkâr parlaması */
.tap-drop-eligible {
  border-style: dashed !important;
  border-color: #38bdf8 !important;
  animation: tapEligiblePulse 1.8s infinite alternate !important;
}

@keyframes tapEligiblePulse {
  0% { border-color: #0284c7; box-shadow: inset 0 0 10px rgba(2, 132, 199, 0.1); }
  100% { border-color: #38bdf8; box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.25); }
}

/* ==========================================================================
   4. CANLI SAHNE VE OYUN BAZLI TEMATİK ATMOSFERLER (JUICY GAMIFIED UI)
   ========================================================================== */

/* A. 5 Adet Canlı Sahne Arka Planı (CSS Mesh & Glow) */
body.player-body {
  transition: background 0.4s ease;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

body.player-body::before,
body.player-body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body.player-body::before {
  opacity: .72;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.34) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 28%, rgba(255,255,255,.22) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 38% 78%, rgba(255,255,255,.2) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 82%, rgba(255,255,255,.26) 0 2px, transparent 3px);
  background-size: 220px 220px, 180px 180px, 150px 150px, 260px 260px;
  animation: sceneDrift 26s linear infinite alternate;
}

body.player-body::after {
  background:
    linear-gradient(115deg, transparent 0 44%, rgba(255,255,255,.035) 45% 46%, transparent 47% 100%),
    radial-gradient(ellipse at 50% 115%, rgba(15,23,42,.72), transparent 66%);
  background-size: 80px 80px, 100% 100%;
  opacity: .8;
}

@keyframes sceneDrift {
  from { transform: translate3d(-10px,-8px,0) scale(1); }
  to { transform: translate3d(18px,12px,0) scale(1.035); }
}

/* 1. Yarışma Stüdyosu (Varsayılan) */
body.player-body.theme-scene-studio,
body.player-body:not([class*="theme-scene-"]) {
  background: 
    radial-gradient(ellipse at 50% -10%, rgba(14, 165, 233, 0.26) 0%, transparent 65%),
    radial-gradient(circle at 15% 30%, rgba(99, 102, 241, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(245, 158, 11, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #0f172a 0%, #0b132b 50%, #060a17 100%);
}

/* 2. Doğa & Masal Ormanı */
body.player-body.theme-scene-nature {
  background: 
    radial-gradient(ellipse at 50% -10%, rgba(134, 239, 172, 0.22) 0%, transparent 65%),
    radial-gradient(circle at 85% 20%, rgba(250, 204, 21, 0.16) 0%, transparent 50%),
    linear-gradient(180deg, #064e3b 0%, #042f2e 40%, #022c22 75%, #021a14 100%);
}

body.player-body.theme-scene-nature::before {
  opacity: 0.6;
  background-image:
    radial-gradient(ellipse at 15% 85%, rgba(34, 197, 94, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 85%, rgba(16, 185, 129, 0.16) 0%, transparent 60%),
    radial-gradient(circle at 18% 25%, rgba(254, 240, 138, 0.35) 0 2px, transparent 4px),
    radial-gradient(circle at 78% 30%, rgba(187, 247, 208, 0.3) 0 2px, transparent 4px),
    radial-gradient(circle at 50% 50%, transparent 60%, rgba(2, 26, 20, 0.5) 100%);
  background-size: 100% 100%, 100% 100%, 180px 180px, 230px 230px, 100% 100%;
}

/* 3. Kozmik Derin Uzay */
body.player-body.theme-scene-space {
  background: 
    radial-gradient(circle at 80% 10%, rgba(168, 85, 247, 0.32) 0%, transparent 55%),
    radial-gradient(circle at 20% 70%, rgba(56, 189, 248, 0.24) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.15) 0%, transparent 60%),
    #080414;
}

body.player-body.theme-scene-space::before {
  opacity: .92;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(125,211,252,.75) 0 1.5px, transparent 2.3px),
    radial-gradient(circle, rgba(216,180,254,.72) 0 1px, transparent 2px),
    radial-gradient(ellipse at 76% 22%, rgba(168,85,247,.24), transparent 22%);
  background-size: 90px 90px, 145px 145px, 210px 210px, 100% 100%;
}

/* 4. Tarih & Antik Kütüphane */
body.player-body.theme-scene-library {
  background: 
    radial-gradient(circle at 50% -10%, rgba(217, 119, 6, 0.28) 0%, transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(180, 83, 9, 0.22) 0%, transparent 50%),
    radial-gradient(circle at 15% 30%, rgba(146, 64, 14, 0.18) 0%, transparent 45%),
    #160e07;
}

body.player-body.theme-scene-library::before {
  background-image:
    repeating-linear-gradient(90deg, rgba(251,191,36,.07) 0 2px, transparent 2px 72px),
    repeating-linear-gradient(0deg, rgba(251,191,36,.045) 0 1px, transparent 1px 46px),
    radial-gradient(circle at 14% 18%, rgba(253,230,138,.38) 0 3px, transparent 4px),
    radial-gradient(circle at 84% 76%, rgba(251,146,60,.3) 0 2px, transparent 3px);
  background-size: auto, auto, 210px 210px, 250px 250px;
}

/* 5. Neşeli Gündüz Gökyüzü */
body.player-body.theme-scene-sky {
  background: 
    radial-gradient(ellipse at 50% -10%, rgba(255, 255, 255, 0.45) 0%, transparent 60%),
    radial-gradient(circle at 85% 15%, rgba(254, 240, 138, 0.35) 0%, transparent 40%),
    linear-gradient(180deg, #0284c7 0%, #0369a1 40%, #075985 75%, #0c4a6e 100%);
}

body.player-body.theme-scene-sky::before {
  opacity: 0.55;
  background-image:
    radial-gradient(ellipse at 20% 25%, rgba(255, 255, 255, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 35%, rgba(255, 255, 255, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 85%, rgba(255, 255, 255, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, transparent 60%, rgba(12, 74, 110, 0.45) 100%);
  background-size: 100% 100%;
  background-position: center;
}

.player-arena {
  position: relative;
  isolation: isolate;
}

.player-arena::before {
  content: '';
  position: absolute;
  inset: clamp(.35rem,1vw,1rem);
  z-index: -1;
  border-radius: 32px;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: inset 0 0 80px rgba(2, 6, 23, 0.28), 0 25px 70px rgba(2, 6, 23, 0.25);
  backdrop-filter: blur(6px);
}

#player-game-area,
.game-over-card { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  body.player-body::before { animation: none; }
}

/* B. Oyun Oynama Kartının Canlanması (Glassmorphism & Depth) */
.game-play-card {
  background: rgba(30, 41, 59, 0.78) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 2px solid rgba(56, 189, 248, 0.28) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.18) !important;
  border-radius: 22px !important;
}

/* Dokunmatik Buton Yaylanma Hissi (Tactile Juicy Feel) */
.btn-option,
.btn-tf,
.matching-card,
.grouping-item-card,
.ordering-item-row,
.fb-word-chip,
.jigsaw-tile {
  transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease !important;
}

.btn-option:active,
.btn-tf:active,
.matching-card:active,
.grouping-item-card:active,
.fb-word-chip:active,
.jigsaw-tile:active {
  transform: scale(0.97) translateY(2px) !important;
}

/* C. Çoktan Seçmeli: TV Yarışma Stüdyosu Canlılığı */
[data-game-type="multiple-choice"] .game-play-card {
  border-color: rgba(14, 165, 233, 0.4) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(14, 165, 233, 0.15) !important;
}

[data-game-type="multiple-choice"] .btn-option {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(51, 65, 85, 0.88)) !important;
  border: 2px solid rgba(71, 85, 105, 0.8) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3) !important;
}

[data-game-type="multiple-choice"] .btn-option:hover {
  transform: translateY(-3px) scale(1.015) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.25) !important;
}

/* Şık Harf Rozetleri Canlı Renkler */
[data-game-type="multiple-choice"] .options-grid .btn-option:nth-child(1) .option-badge {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4) !important;
}

[data-game-type="multiple-choice"] .options-grid .btn-option:nth-child(2) .option-badge {
  background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
  border-color: #c084fc !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.4) !important;
}

[data-game-type="multiple-choice"] .options-grid .btn-option:nth-child(3) .option-badge {
  background: linear-gradient(135deg, #db2777, #be185d) !important;
  border-color: #f472b6 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(244, 114, 182, 0.4) !important;
}

[data-game-type="multiple-choice"] .options-grid .btn-option:nth-child(4) .option-badge {
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  border-color: #fbbf24 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.4) !important;
}

[data-game-type="multiple-choice"] .options-grid .btn-option:nth-child(5) .option-badge {
  background: linear-gradient(135deg, #059669, #047857) !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.4) !important;
}

/* Doğru Seçenek Zafer Parlaması */
.btn-option.correct {
  background: linear-gradient(135deg, #15803d, #166534) !important;
  border-color: #4ade80 !important;
  color: #ffffff !important;
  animation: correctOptionPulse 0.7s alternate infinite ease-in-out !important;
}

@keyframes correctOptionPulse {
  0% { box-shadow: 0 0 15px rgba(74, 222, 128, 0.6); transform: scale(1.01); }
  100% { box-shadow: 0 0 35px rgba(74, 222, 128, 0.9), 0 8px 25px rgba(0, 0, 0, 0.4); transform: scale(1.03); }
}

/* Yanlış Seçenek Nazik Titreme */
.btn-option.incorrect {
  background: linear-gradient(135deg, #b91c1c, #991b1b) !important;
  border-color: #f87171 !important;
  animation: gentleOptionShake 0.45s ease-in-out !important;
}

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

/* D. Doğru - Yanlış: İki Kutuplu Enerji Arenası */
[data-game-type="true-false"] .tf-statement-box {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.92)) !important;
  border: 2px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(56, 189, 248, 0.08) !important;
  border-radius: 20px !important;
}

.btn-true {
  background: linear-gradient(145deg, #16a34a, #15803d) !important;
  border: 3px solid #86efac !important;
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.35) !important;
}

.btn-true:hover {
  transform: scale(1.04) translateY(-3px) !important;
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.65), inset 0 2px 4px rgba(255, 255, 255, 0.4) !important;
}

.btn-false {
  background: linear-gradient(145deg, #dc2626, #b91c1c) !important;
  border: 3px solid #fca5a5 !important;
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.35) !important;
}

.btn-false:hover {
  transform: scale(1.04) translateY(-3px) !important;
  box-shadow: 0 18px 40px rgba(220, 38, 38, 0.65), inset 0 2px 4px rgba(255, 255, 255, 0.4) !important;
}

/* E. Eşleştirme (Matching): Kristal Kartlar - Durum Sınıflarını Ezmeyecek Şekilde Korumalı */
[data-game-type="matching"] .left-card:not(.selected):not(.matched):not(.mismatched) {
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.4), rgba(30, 41, 59, 0.9)) !important;
  border: 2px solid rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 6px 18px rgba(14, 116, 144, 0.2) !important;
}

[data-game-type="matching"] .left-card:not(.selected):not(.matched):not(.mismatched):hover {
  transform: translateY(-2px) scale(1.02) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.35) !important;
}

[data-game-type="matching"] .right-card:not(.selected):not(.matched):not(.mismatched) {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.4), rgba(30, 41, 59, 0.9)) !important;
  border: 2px solid rgba(168, 85, 247, 0.5) !important;
  box-shadow: 0 6px 18px rgba(109, 40, 217, 0.2) !important;
}

[data-game-type="matching"] .right-card:not(.selected):not(.matched):not(.mismatched):hover {
  transform: translateY(-2px) scale(1.02) !important;
  border-color: #c084fc !important;
  box-shadow: 0 10px 25px rgba(192, 132, 252, 0.35) !important;
}

/* F. Gruplandırma (Grouping): Canlı Hazine Sandıkları */
[data-game-type="grouping"] .bucket-card {
  background: rgba(30, 41, 59, 0.85) !important;
  border: 2px solid rgba(71, 85, 105, 0.8) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.2s ease !important;
}

[data-game-type="grouping"] .bucket-card:nth-child(1) { border-top: 5px solid #38bdf8 !important; }
[data-game-type="grouping"] .bucket-card:nth-child(2) { border-top: 5px solid #4ade80 !important; }
[data-game-type="grouping"] .bucket-card:nth-child(3) { border-top: 5px solid #fbbf24 !important; }
[data-game-type="grouping"] .bucket-card:nth-child(4) { border-top: 5px solid #c084fc !important; }

[data-game-type="grouping"] .grouping-item-card {
  background: linear-gradient(135deg, #334155, #1e293b) !important;
  border: 2px solid #475569 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

[data-game-type="grouping"] .grouping-item-card:hover {
  border-color: #38bdf8 !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 8px 22px rgba(56, 189, 248, 0.35) !important;
}

/* G. Olay Sıralama: Şampiyonlar Podyumu Rozetleri */
[data-game-type="ordering"] .ordering-item-row:nth-child(1) .ordering-step-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #ffffff !important;
  border: 2px solid #fde68a !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.6) !important;
}

[data-game-type="ordering"] .ordering-item-row:nth-child(2) .ordering-step-badge {
  background: linear-gradient(135deg, #94a3b8, #64748b) !important;
  color: #ffffff !important;
  border: 2px solid #e2e8f0 !important;
  box-shadow: 0 0 10px rgba(148, 163, 184, 0.5) !important;
}

[data-game-type="ordering"] .ordering-item-row:nth-child(3) .ordering-step-badge {
  background: linear-gradient(135deg, #d97706, #92400e) !important;
  color: #ffffff !important;
  border: 2px solid #fed7aa !important;
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.5) !important;
}

[data-game-type="ordering"] .btn-order-move {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  border: 2px solid #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4) !important;
}

[data-game-type="ordering"] .btn-order-move:hover:not(:disabled) {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.6) !important;
}

/* H. İlkokul Sevimli Dokunuşları (Pedagogical Friendly Polish) */
[data-kademe="ilkokul"] .game-play-card {
  border-radius: 28px !important;
  border-width: 3px !important;
}

[data-kademe="ilkokul"] .btn-option,
[data-kademe="ilkokul"] .btn-tf,
[data-kademe="ilkokul"] .matching-card,
[data-kademe="ilkokul"] .grouping-item-card,
[data-kademe="ilkokul"] .ordering-item-row {
  border-radius: 18px !important;
}

/* ========================================================
   FAZ 2: DOKUNSAL FİZİK, ÇARK VE TOMBALA ANİMASYONLARI
   ======================================================== */

/* Grouping: Sepet Fiziksel Düşüş ve Sayaç */
.bucket-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(15, 23, 42, 0.7);
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.bucket-landing-pulse {
  animation: bucketPulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bucketPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); box-shadow: 0 0 25px rgba(56, 189, 248, 0.5); }
  100% { transform: scale(1); }
}

.item-dropped-bounce {
  animation: dropBounce 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes dropBounce {
  0% { transform: translateY(-16px) scale(0.92); opacity: 0.7; }
  60% { transform: translateY(3px) scale(1.03); opacity: 1; }
  100% { transform: translateY(0) scale(1); }
}

/* Ordering: Manyetik Yuva Kenetlenmesi */
.magnetic-snap {
  animation: magneticSnapAnim 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.6) !important;
  border-color: #22c55e !important;
}

@keyframes magneticSnapAnim {
  0% { transform: scale(0.94); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.btn-tactile-order {
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  border-bottom-width: 3px !important;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-tactile-order:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4) !important;
}

.ordering-connector-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  color: #38bdf8;
  font-size: 1rem;
  opacity: 0.75;
}

/* Wheel: SVG Çark ve Yaylı Mandal (Ticker Rebound) */
.wheel-stage {
  position: relative;
  width: 320px;
  max-width: 90vw;
  margin: 1.5rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wheel-disc {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 0 6px #1e293b, 0 0 0 10px #38bdf8;
  position: relative;
  will-change: transform;
}

.wheel-ticker {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ticker-needle {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 30px solid #ef4444;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
  transform-origin: 50% 0%;
}

.ticker-pin {
  width: 14px;
  height: 14px;
  background: #facc15;
  border: 2px solid #78350f;
  border-radius: 50%;
  margin-top: -34px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.wheel-ticker.tick-rebound .ticker-needle {
  animation: tickBounce 0.14s infinite alternate ease-in-out;
}

@keyframes tickBounce {
  0% { transform: rotate(-15deg); }
  100% { transform: rotate(15deg); }
}

.wheel-selected-prompt {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border: 2px solid #facc15;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fef08a;
  text-align: center;
  box-shadow: 0 10px 30px rgba(250, 204, 21, 0.25);
  animation: popPrompt 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popPrompt {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.wheel-spin-btn {
  min-height: 64px;
  padding: 0 2.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wheel-spin-btn:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.6);
}

/* Bingo: 3B Çekiliş Fanusu ve Mürekkep Damgası */
.bingo-stage-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.bingo-tumbler-cage {
  width: 90px;
  height: 90px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tumbler-globe {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid #94a3b8;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.2), rgba(30, 41, 59, 0.85));
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.2), 0 6px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.tumbler-wireframe {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.35);
}

.tumbler-ball {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.tumbler-ball.ball-1 { top: 18px; left: 14px; background: #ef4444; }
.tumbler-ball.ball-2 { top: 22px; right: 14px; background: #3b82f6; }
.tumbler-ball.ball-3 { bottom: 16px; left: 24px; background: #10b981; }
.tumbler-ball.ball-4 { bottom: 14px; right: 20px; background: #f59e0b; }

.cage-tumbling .tumbler-globe {
  animation: cageRotate 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cageRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.bingo-caller-box {
  flex: 1;
  min-width: 260px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 2px solid #38bdf8;
  border-radius: 16px;
  padding: 1.15rem 1.35rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.bingo-caller-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

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

@keyframes pulseDot {
  0% { opacity: 0.4; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.3); }
}

.bingo-caller-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: #f8fafc;
  margin-top: 0.4rem;
  line-height: 1.3;
}

.bingo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  max-width: 480px;
  margin: 0 auto;
}

.bingo-tile {
  min-height: 88px;
  padding: 0.75rem 0.5rem;
  border-radius: 14px;
  border: 2px solid #475569;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #f1f5f9;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
  touch-action: manipulation;
}

.bingo-tile:hover:not(.marked) {
  transform: translateY(-2px);
  border-color: #38bdf8;
}

.bingo-tile.marked {
  border-color: #22c55e !important;
  background: linear-gradient(135deg, #052e16, #14532d) !important;
  color: #bbf7d0 !important;
  cursor: default;
}

.bingo-dauber-stamp {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.bingo-dauber-stamp.animate-stamp {
  animation: dauberStampPress 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes dauberStampPress {
  0% { transform: scale(2.2) rotate(-15deg); opacity: 0; }
  60% { transform: scale(0.92) rotate(4deg); opacity: 0.9; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.stamp-ring {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid rgba(34, 197, 94, 0.8);
  background: rgba(34, 197, 94, 0.18);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.stamp-check {
  font-size: 1.8rem;
  color: #4ade80;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
  z-index: 2;
}

.bingo-tile-shake {
  animation: tileShake 0.35s ease-in-out;
  border-color: #ef4444 !important;
}

@keyframes tileShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.bingo-celebration-toast {
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.25rem;
  animation: popPrompt 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cinko-toast {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #ffffff;
  border: 2px solid #fef08a;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.bingo-victory-toast {
  background: linear-gradient(135deg, #15803d, #22c55e);
  color: #ffffff;
  border: 2px solid #bbf7d0;
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.6);
}

/* ========================================================
   FAZ 3: 3B KART DÖNMESİ, YAPBOZ MIKNATISI, BALON SALINIMI
   ======================================================== */

/* Memory Cards: 3B Kart Dönmesi (3D Flip) */
.memory-grid-3d {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.25rem;
  perspective: 1000px;
}

.memory-card-3d {
  min-height: 140px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  perspective: 1000px;
  touch-action: manipulation;
}

.memory-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.memory-card-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.memory-face-back {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 3px solid #38bdf8;
  color: #38bdf8;
}

.mem-back-pattern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.mem-back-icon {
  font-size: 2.2rem;
}

.mem-qmark {
  font-size: 1.5rem;
  font-weight: 800;
  color: #facc15;
}

.memory-face-front {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 3px solid #7dd3fc;
  color: #ffffff;
  transform: rotateY(180deg);
}

.memory-card-3d.is-matched .memory-face-front {
  background: linear-gradient(135deg, #15803d, #166534) !important;
  border-color: #4ade80 !important;
  box-shadow: 0 0 25px rgba(74, 222, 128, 0.5) !important;
}

.mem-card-text {
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.35;
}

.mem-star-burst {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 1.4rem;
  animation: starPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Jigsaw Puzzle: Manyetik Yuva Kenetlenmesi & Önizleme */
.jigsaw-tile {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.jigsaw-tile.is-selected {
  transform: scale(0.96);
  border-color: #38bdf8 !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.8) !important;
}

.jigsaw-tile.snap-correct {
  animation: magneticSnapAnim 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-color: #22c55e !important;
}

.jigsaw-tile.is-correct-locked {
  border-color: #22c55e !important;
}

.jigsaw-tab-corner {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  opacity: 0.5;
}

.jigsaw-tab-corner.tab-locked {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  opacity: 1;
}

.jigsaw-ok-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #22c55e;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jigsaw-preview-box {
  background: rgba(15, 23, 42, 0.85);
  border: 2px dashed #38bdf8;
  border-radius: 14px;
  padding: 0.75rem;
  max-width: 280px;
  margin: 0 auto 1rem auto;
  text-align: center;
}

.jigsaw-preview-img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  object-fit: contain;
}

/* Pop Balloons: Rüzgar Salınımı Fiziği & İğne Patlaması */
@keyframes balloonWindSway {
  0% { transform: translateY(0px) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
  100% { transform: translateY(-16px) rotate(4deg); }
}

.balloon-btn {
  will-change: transform;
}

.balloon-btn:hover {
  transform: scale(1.06) translateY(-4px);
}

.balloon-wobble-fail {
  animation: balloonWobble 0.3s ease-in-out;
}

@keyframes balloonWobble {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px) rotate(-6deg); }
  75% { transform: translateX(10px) rotate(6deg); }
}

.balloon-pop-particles {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.2rem;
  animation: burstParticle 0.4s ease-out forwards;
  pointer-events: none;
}

@keyframes burstParticle {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Maze Quiz: Koridor ve Kapı Açılış Animasyonları */
.pulse-runner {
  animation: runnerBob 0.6s infinite alternate ease-in-out;
}

@keyframes runnerBob {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-4px) scale(1.15); }
}

.maze-key-badge {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: #facc15;
  color: #78350f;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.6);
}

.animate-key-turn {
  animation: keyTurn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes keyTurn {
  0% { transform: rotate(-60deg) scale(0.6); opacity: 0; }
  60% { transform: rotate(20deg) scale(1.1); opacity: 1; }
  100% { transform: rotate(0deg) scale(1); opacity: 1; }
}

/* Who Am I: Kademeli Mozaik Netleşme & Çarpan */
.wai-silhouette-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.wai-silhouette-box {
  width: 140px;
  height: 140px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 3px solid #38bdf8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sil-icon {
  font-size: 3.2rem;
}

.sil-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.wai-score-multiplier {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
}

.wai-score-multiplier.gold-tier {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: 2px solid #fef08a;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.wai-score-multiplier.silver-tier {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: 2px solid #bae6fd;
}

.wai-score-multiplier.bronze-tier {
  background: linear-gradient(135deg, #475569, #334155);
  color: #e2e8f0;
  border: 2px solid #94a3b8;
}

/* ========================================================
   FAZ 4: KELİME BULMACA ODAK, SICAK-SOĞUK RADARI, PİRİNÇ ŞİFRE DİSKİ
   ======================================================== */

/* Crossword: Büyüteç Odak Modu (Active Word Zoom) */
.crossword-word-focused {
  transform: scale(1.02);
  border-color: #38bdf8 !important;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.25), inset 0 0 15px rgba(56, 189, 248, 0.1) !important;
  z-index: 10;
}

.crossword-word-solved {
  border-color: #22c55e !important;
  background: rgba(34, 197, 94, 0.15) !important;
}

.active-zoom-input {
  animation: inputGlow 1.5s infinite alternate ease-in-out;
}

@keyframes inputGlow {
  0% { box-shadow: 0 0 5px rgba(56, 189, 248, 0.4); }
  100% { box-shadow: 0 0 16px rgba(56, 189, 248, 0.9); }
}

/* Locate Point: Sıcak - Soğuk Radarı ve Bayrak Dikme */
.flag-plant-bounce {
  animation: flagPlantAnim 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes flagPlantAnim {
  0% { transform: translate(-50%, -200%) scale(0.6); opacity: 0; }
  60% { transform: translate(-50%, -90%) scale(1.15); opacity: 1; }
  100% { transform: translate(-50%, -100%) scale(1); }
}

.radar-sonar-pulse {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: sonarWave 0.85s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
  pointer-events: none;
}

.radar-sonar-pulse.radar-hot {
  border: 3px solid #ef4444;
  background: rgba(239, 68, 68, 0.25);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.7);
}

.radar-sonar-pulse.radar-warm {
  border: 3px solid #f59e0b;
  background: rgba(245, 158, 11, 0.2);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.radar-sonar-pulse.radar-cold {
  border: 3px solid #0284c7;
  background: rgba(2, 132, 199, 0.2);
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.5);
}

@keyframes sonarWave {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

/* Escape Room: Dönen Pirinç Şifre Diskleri ve Yaylı Kilit */
.brass-padlock-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.5rem;
}

.brass-padlock-shackle {
  width: 56px;
  height: 48px;
  border: 7px solid #d97706;
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brass-padlock-shackle.shackle-unlocked {
  transform: translateY(-22px) rotate(15deg);
  border-color: #22c55e !important;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.7);
}

.brass-rotary-cylinder {
  width: 60px;
  height: 72px;
  border-radius: 12px;
  background: linear-gradient(180deg, #92400e 0%, #d97706 20%, #fef08a 50%, #d97706 80%, #78350f 100%);
  border: 2px solid #fde68a;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.6), inset 0 -2px 6px rgba(0, 0, 0, 0.5), 0 8px 16px rgba(0, 0, 0, 0.4);
  color: #451a03;
  font-size: 2.2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
  user-select: none;
  transition: transform 0.15s ease;
}

.brass-rotary-cylinder.dial-ticked {
  animation: dialTickBounce 0.15s ease;
}

@keyframes dialTickBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.dial-arrow-btn {
  min-width: 44px;
  min-height: 38px;
  font-weight: 800;
  border-radius: 8px;
}

.brass-unlock-btn {
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  border: 2px solid #fde68a !important;
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.5) !important;
  color: #ffffff !important;
}

.padlock-shake {
  animation: padlockShakeAnim 0.35s ease-in-out;
}

@keyframes padlockShakeAnim {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px) rotate(-1deg); }
  75% { transform: translateX(8px) rotate(1deg); }
}

/* ========================================================================
   ÇOKTAN SEÇMELİ - TAM EKRAN YARIŞMA SAHNESİ
   ======================================================================== */

[data-game-type="multiple-choice"] .multiple-choice-card {
  position: relative;
  overflow: hidden;
}

[data-game-type="multiple-choice"] .multiple-choice-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -20%, rgba(56, 189, 248, 0.2), transparent 42%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.12), transparent 55%);
}

[data-game-type="multiple-choice"] .multiple-choice-card > * {
  position: relative;
  z-index: 1;
}

.mc-question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  color: #bae6fd;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 900;
}

.mc-question-step,
.mc-question-instruction {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  background: rgba(14, 165, 233, 0.13);
  border: 1px solid rgba(125, 211, 252, 0.26);
}

.mc-question-instruction {
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.38);
  border-color: rgba(148, 163, 184, 0.2);
}

body.smartboard-fullscreen[data-game-type="multiple-choice"] .player-arena {
  min-height: calc(100vh - 118px) !important;
  justify-content: center !important;
  padding: clamp(1rem, 2.5vh, 2.5rem) clamp(1rem, 2.8vw, 3rem) !important;
}

body.smartboard-fullscreen[data-game-type="multiple-choice"] .multiple-choice-card {
  width: 100% !important;
  max-width: min(94vw, 1480px) !important;
  min-height: min(740px, calc(100vh - 150px));
  justify-content: center !important;
  padding: clamp(2rem, 4vh, 4rem) clamp(2rem, 4.2vw, 5rem) !important;
  gap: clamp(1.25rem, 2.5vh, 2.35rem) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.2), transparent 44%),
    linear-gradient(145deg, rgba(15, 42, 72, 0.96), rgba(15, 23, 42, 0.93)) !important;
  border: 2px solid rgba(56, 189, 248, 0.42) !important;
  box-shadow: 0 28px 65px rgba(2, 8, 23, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

body.smartboard-fullscreen[data-game-type="multiple-choice"] .question-prompt {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto !important;
  color: #f8fafc;
  font-size: clamp(2.25rem, 3.55vw, 4.4rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.025em;
  text-wrap: balance;
  text-shadow: 0 4px 20px rgba(2, 8, 23, 0.45);
}

body.smartboard-fullscreen[data-game-type="multiple-choice"] .question-image {
  max-height: clamp(150px, 24vh, 300px) !important;
}

body.smartboard-fullscreen[data-game-type="multiple-choice"] .options-grid.grid-2x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(1rem, 1.8vw, 1.75rem) !important;
}

body.smartboard-fullscreen[data-game-type="multiple-choice"] .btn-option {
  min-height: clamp(92px, 11vh, 148px) !important;
  padding: clamp(1rem, 1.6vw, 1.75rem) clamp(1.25rem, 1.8vw, 2rem) !important;
  gap: clamp(0.8rem, 1.2vw, 1.25rem) !important;
  border-radius: 20px !important;
  border-width: 3px !important;
  font-size: clamp(1.45rem, 2.05vw, 2.45rem) !important;
  line-height: 1.18 !important;
  box-shadow: 0 10px 25px rgba(2, 8, 23, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

body.smartboard-fullscreen[data-game-type="multiple-choice"] .option-badge {
  flex: 0 0 auto;
  width: clamp(3.25rem, 4.8vw, 5rem) !important;
  height: clamp(3.25rem, 4.8vw, 5rem) !important;
  border-radius: 16px !important;
  font-size: clamp(1.45rem, 2vw, 2.3rem) !important;
}

body.smartboard-fullscreen[data-game-type="multiple-choice"] .option-text {
  overflow-wrap: anywhere;
}

body.smartboard-fullscreen[data-game-type="multiple-choice"] .btn-option.correct {
  animation: mcCorrectVictory 0.62s ease-in-out infinite alternate !important;
}

@keyframes mcCorrectVictory {
  from { transform: scale(1.015); box-shadow: 0 0 22px rgba(74, 222, 128, 0.62), 0 10px 25px rgba(2, 8, 23, 0.34); }
  to { transform: scale(1.035); box-shadow: 0 0 46px rgba(74, 222, 128, 0.95), 0 14px 32px rgba(2, 8, 23, 0.4); }
}

/* Doğru cevap anında kartın üstünde konfeti ve zafer mesajı. */
.mc-celebration {
  position: absolute !important;
  inset: 0;
  z-index: 8 !important;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.mc-celebration::before {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.24), rgba(14, 165, 233, 0.08) 42%, transparent 70%);
  transform: scale(0.45);
  opacity: 0;
}

.mc-celebration.is-visible {
  opacity: 1;
  visibility: visible;
}

.mc-celebration.is-visible::before {
  animation: mcCelebrationGlow 0.9s ease-out forwards;
}

.mc-celebration-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: clamp(1rem, 2vw, 1.75rem) clamp(1.6rem, 4vw, 3.5rem);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(21, 128, 61, 0.96), rgba(22, 101, 52, 0.96));
  border: 3px solid #86efac;
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.12), 0 18px 45px rgba(2, 8, 23, 0.5);
  transform: scale(0.65) rotate(-3deg);
  opacity: 0;
}

.mc-celebration.is-visible .mc-celebration-message {
  animation: mcCelebrationPop 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.mc-celebration-emoji {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1;
}

.mc-celebration-text {
  color: #ffffff;
  font-size: clamp(1.35rem, 2.5vw, 2.8rem);
  letter-spacing: 0.04em;
}

.mc-celebration-subtext {
  color: #dcfce7;
  font-size: clamp(0.9rem, 1.3vw, 1.3rem);
  font-weight: 700;
}

.mc-confetti-piece {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.8rem;
  height: 1.25rem;
  border-radius: 0.2rem;
  background: var(--confetti-color);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg) scale(0.5);
}

.mc-celebration.is-visible .mc-confetti-piece {
  animation: mcConfettiBurst 1s cubic-bezier(0.18, 0.75, 0.28, 1) var(--delay) forwards;
}

@keyframes mcCelebrationGlow {
  0% { opacity: 0; transform: scale(0.45); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.2); }
}

@keyframes mcCelebrationPop {
  0% { opacity: 0; transform: scale(0.65) rotate(-3deg); }
  65% { opacity: 1; transform: scale(1.08) rotate(1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes mcConfettiBurst {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(0.5); }
  14% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--rot)) scale(1); }
}

body.smartboard-fullscreen[data-game-type="multiple-choice"] .feedback-modal.feedback-success {
  bottom: auto;
  top: 50%;
  width: min(86vw, 760px);
  max-width: 760px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  border-width: 3px;
  border-radius: 28px;
  transform: translate(-50%, -50%);
  animation: mcFeedbackIn 0.42s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.smartboard-fullscreen[data-game-type="multiple-choice"] .feedback-success .feedback-icon {
  font-size: clamp(3.5rem, 7vw, 6rem);
}

body.smartboard-fullscreen[data-game-type="multiple-choice"] .feedback-success .feedback-title {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
}

body.smartboard-fullscreen[data-game-type="multiple-choice"] .feedback-success .feedback-text {
  font-size: clamp(1rem, 1.6vw, 1.4rem);
}

body.smartboard-fullscreen[data-game-type="multiple-choice"] .feedback-success .feedback-actions {
  margin-top: 0.5rem;
}

@keyframes mcFeedbackIn {
  from { opacity: 0; transform: translate(-50%, -45%) scale(0.82); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 900px) {
  body.smartboard-fullscreen[data-game-type="multiple-choice"] .multiple-choice-card {
    min-height: auto;
    justify-content: flex-start !important;
    padding: 1.5rem !important;
  }

  body.smartboard-fullscreen[data-game-type="multiple-choice"] .question-prompt {
    font-size: clamp(1.9rem, 5.8vw, 3.2rem) !important;
  }

  body.smartboard-fullscreen[data-game-type="multiple-choice"] .options-grid.grid-2x2 {
    grid-template-columns: 1fr !important;
  }

  body.smartboard-fullscreen[data-game-type="multiple-choice"] .btn-option {
    min-height: 82px !important;
    font-size: clamp(1.25rem, 3.8vw, 1.9rem) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mc-celebration.is-visible::before,
  .mc-celebration.is-visible .mc-celebration-message,
  .mc-celebration.is-visible .mc-confetti-piece,
  body.smartboard-fullscreen[data-game-type="multiple-choice"] .btn-option.correct {
    animation: none !important;
  }

  .mc-celebration.is-visible .mc-celebration-message {
    opacity: 1;
    transform: none;
  }
}

/* Eşleştirme: sakin zemin, küçük turlar ve ekrana sığan cevap sütunları. */
body.player-body.theme-scene-studio,
body.player-body:not([class*="theme-scene-"]) {
  background: radial-gradient(ellipse at 12% 0%, #203e50 0, transparent 55%),
    radial-gradient(ellipse at 100% 100%, #29324c 0, transparent 55%), #101d2d;
}
body.player-body[data-game-type="matching"]::before {
  background-image: radial-gradient(circle, rgba(148, 163, 184, .16) 1px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: .35;
  animation: none;
}
body.player-body[data-game-type="matching"]::after { background: none; }
body[data-game-type="matching"] .player-arena::before { display: none; }
body[data-game-type="matching"] .player-arena { justify-content: flex-start; }
.matching-play-board.matching-board-stage {
  height: min(var(--matching-available-height, 680px), 820px);
  min-height: 360px;
  padding: clamp(12px, 1.5vw, 24px) !important;
  gap: 12px !important;
  background: #f4f7fb !important;
  border: 1px solid #d8e3ee !important;
  border-radius: 24px !important;
  box-shadow: 0 16px 44px rgba(5, 15, 28, .24) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-sizing: border-box;
  color: #203249;
}
.matching-stage-title { margin: 0; font-size: clamp(1.3rem, 2vw, 2rem); color: #203249; letter-spacing: -.03em; }
.matching-play-board .matching-hud-bar {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  gap: 8px;
  backdrop-filter: none;
  flex-shrink: 0;
}
.matching-play-board .matching-hud-message {
  min-height: 28px;
  padding: 0;
  color: #52647a;
  font-size: clamp(.88rem, 1.2vw, 1.12rem);
  font-weight: 600;
  text-align: left;
  justify-content: flex-start;
  text-shadow: none;
}
.matching-play-board .matching-hud-message.hud-msg-selection { color: #126282; }
.matching-play-board .matching-hud-message.hud-msg-success { color: #157347; }
.matching-play-board .matching-hud-message.hud-msg-error { color: #b42332; }
.matching-play-board .matching-hud-stats { justify-content: flex-start; gap: 6px; }
.matching-play-board .matching-stat-pill,
.matching-play-board .matching-round-label {
  background: #fff;
  border: 1px solid #dce5ef;
  color: #43536a;
  font-size: clamp(.74rem, 1vw, .94rem);
  padding: 6px 10px;
  border-radius: 9px;
}
.matching-play-board .pill-completed { color: #126a55; background: #e7f5ef; border-color: #c9e8dc; }
.matching-play-board .pill-score { color: #846015; background: #fff6df; border-color: #f3e4b9; }
.matching-play-board .matching-round-label { margin-left: auto; background: #e9eef6; color: #405575; font-weight: 700; }
.matching-play-board .matching-columns-wrap {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(12px, 2.4vw, 40px) !important;
  flex: 1;
  min-height: 0;
  width: 100%;
}
.matching-play-board .matching-column {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b1c3d7 transparent;
  padding: 0 4px 6px;
  gap: 10px;
}
.matching-play-board .matching-col-header {
  position: sticky;
  top: 0;
  z-index: 4;
  flex-shrink: 0;
  font-size: clamp(.84rem, 1.1vw, 1.1rem);
  text-transform: none;
  letter-spacing: 0;
  padding: 9px 12px;
  box-shadow: none;
}
.matching-play-board .left-header { background: #e0f1f2; color: #23666c; border: 1px solid #c8e3e6; }
.matching-play-board .right-header { background: #ebe8f6; color: #605484; border: 1px solid #dcd6ed; }
.matching-play-board.matching-board-stage .matching-card {
  flex-shrink: 0;
  min-height: 64px !important;
  padding: clamp(10px, 1.25vw, 18px) !important;
  font-size: clamp(.94rem, 1.35vw, 1.5rem) !important;
  border-radius: 12px !important;
  color: #203249;
  box-sizing: border-box;
}
.matching-play-board.matching-board-stage .matching-card:not(.selected):not(.matched):not(.mismatched) {
  background: #fff !important;
  border: 1px solid #d3e0ea !important;
  box-shadow: 0 3px 0 #dce5ee !important;
}
.matching-play-board.matching-board-stage .matching-card:not(.selected):not(.matched):not(.mismatched):hover {
  transform: translateY(-1px) !important;
  border-color: #849fb8 !important;
  box-shadow: 0 4px 0 #dce5ee !important;
}
.matching-play-board.matching-board-stage .matching-card.awaiting-match {
  animation: none;
  border-color: #9cb7c9 !important;
}
.matching-play-board.matching-board-stage .matching-card.selected {
  background: #eaf5ff !important;
  border-color: #267fa4 !important;
  box-shadow: 0 0 0 2px #bddfe9 !important;
  transform: none !important;
}
.matching-play-board.matching-board-stage .matching-card.matched {
  background: #e6f6ec !important;
  border-color: #3b9a65 !important;
  box-shadow: 0 0 0 2px #c7e7d2 !important;
}
.matching-play-board.matching-board-stage .matching-card.mismatched {
  background: #fff0f0 !important;
  border-color: #ce5d64 !important;
  box-shadow: 0 0 0 2px #f5d9dc !important;
}
.matching-play-board .matching-card-inner { gap: 0; }
.matching-play-board .matching-badges-row { gap: 4px; }
.matching-play-board .matching-badges-row:has(.matching-status-badge:not(.hidden)) { margin-bottom: 4px; }
.matching-play-board .matching-status-badge { font-size: .7rem; text-transform: none; box-shadow: none; }
.matching-play-board .matching-pair-badge { display: none; }
.matching-play-board .matching-card[hidden] { display: none !important; }
.matching-play-board .matching-card:focus-visible { outline: 3px solid #267fa4; outline-offset: 2px; }
.matching-play-board .matching-card-img { max-width: clamp(36px, 5vw, 64px); max-height: 64px; object-fit: contain; }
.matching-play-board .matching-options-note { margin: 0; font-size: .8rem; line-height: 1.35; color: #607289; flex-shrink: 0; }
.matching-play-board .matching-confetti-container { display: none; }
.matching-play-board.matching-is-complete { height: auto; }
.matching-play-board .matching-results-review-card { background: #fff; color: #203249; border-color: #d3e0ea; }
.matching-play-board .matching-review-item { background: #f4f7fb; color: #203249; }
.matching-play-board .matching-review-explanation { color: #52647a; }
@media (max-width: 600px) {
  .matching-play-board.matching-board-stage { gap: 9px !important; border-radius: 16px !important; }
  .matching-play-board .matching-stat-pill { padding: 5px 7px; }
  .matching-play-board .matching-round-label { padding: 5px 7px; }
  .matching-play-board .matching-column { gap: 8px; padding: 0 2px 5px; }
  .matching-play-board .matching-col-header { padding: 8px 5px; gap: 4px; }
  .matching-play-board .matching-col-header .col-icon { display: none; }
  .matching-play-board .matching-card-content { flex-wrap: wrap; gap: 5px; }
  .matching-play-board .matching-options-note { font-size: .72rem; }
}
.matching-play-board .matching-scroll-hint { margin-left: auto; font-size: .9rem; color: #64748b; }
.matching-play-board .matching-scroll-hint[hidden] { display: none; }
.matching-play-board .matching-column::-webkit-scrollbar { width: 6px; }
.matching-play-board .matching-column::-webkit-scrollbar-thumb { background: #b1c3d7; border-radius: 6px; }
@media (min-width: 1000px) {
  .matching-play-board .right-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
  }
  .matching-play-board .right-header { grid-column: 1 / -1; }
}
