/* ==========================================================================
   2. Sınıf Oyun Dünyası - Oyun Alanı ve Bileşen Stilleri
   ========================================================================== */

/* Oyun Üst Çubuğu */
.game-top-bar {
  height: 60px;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
  gap: 12px;
}

.game-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-screen-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e293b;
  white-space: nowrap;
}

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

.stat-pill {
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 2px solid #e2e8f0;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #334155;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.stat-stars { color: #f59e0b; }
.stat-score { color: #2563eb; }

/* Oyun Sahnesi Ana Gövdesi (Board) */
.game-board {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: calc(14px * var(--game-scale));
  position: relative;
  background: radial-gradient(circle at center, #ffffff 60%, #f8fafc 100%);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Soru Başlığı ve Yönerge (Çocuk Dostu Canlı Renkler) */
.game-prompt-box {
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  border: 3px solid #818cf8;
  border-radius: 24px;
  padding: calc(10px * var(--game-scale)) calc(24px * var(--game-scale));
  text-align: center;
  max-width: 92%;
  margin-bottom: calc(8px * var(--game-scale));
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.12);
}

.game-prompt-title {
  font-size: calc(1.35rem * var(--game-scale));
  font-weight: 900;
  color: #3730a3;
  letter-spacing: 0.5px;
}

.game-prompt-desc {
  font-size: calc(0.95rem * var(--game-scale));
  font-weight: 700;
  color: #4f46e5;
  margin-top: 4px;
}

/* Şekil & Cisim Avcısı */
.shapes-arena {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(12px * var(--game-scale));
  width: 100%;
}

.target-shape-card {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  border: 3px solid #e0e7ff;
  padding: calc(14px * var(--game-scale));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(6px * var(--game-scale));
  min-width: 210px;
}

.shape-big-icon {
  font-size: calc(3.8rem * var(--game-scale));
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.shape-options-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(10px * var(--game-scale));
  max-width: 800px;
}

.shape-btn {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 16px;
  padding: calc(10px * var(--game-scale)) calc(16px * var(--game-scale));
  font-size: calc(1rem * var(--game-scale));
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-sm);
  font-family: inherit;
}

.shape-btn:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: var(--shadow-md);
}

/* Onluk-Birlik Blokları */
.blocks-arena {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(20px * var(--game-scale));
  width: 100%;
}

.blocks-box {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: calc(12px * var(--game-scale));
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 160px;
}

.blocks-col-title {
  font-weight: 800;
  font-size: calc(1rem * var(--game-scale));
  color: #0369a1;
  margin-bottom: calc(6px * var(--game-scale));
}

.tens-rod-container {
  display: flex;
  gap: 6px;
  min-height: 105px;
  align-items: flex-end;
  padding: 6px;
}

.tens-rod {
  width: 19px;
  height: 105px;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  border-radius: 4px;
  border: 1px solid #0369a1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tens-unit {
  height: 9.5px;
  border-bottom: 1px solid rgba(255,255,255,0.4);
}

.ones-cube-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 120px;
  min-height: 105px;
  align-content: flex-start;
  padding: 6px;
}

.ones-cube {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  border-radius: 4px;
  border: 1px solid #b45309;
}

.block-ctrl-btns {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn-pill {
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 12px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.btn-pill:hover {
  background: #f1f5f9;
  transform: scale(1.05);
}

/* Ritmik Sayma Taşları */
.rabbit-track-container {
  width: 96%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: calc(10px * var(--game-scale)) 0;
}

.stones-row {
  display: flex;
  align-items: center;
  gap: calc(10px * var(--game-scale));
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 16px 8px;
}

.stone-item {
  width: calc(58px * var(--game-scale));
  height: calc(58px * var(--game-scale));
  border-radius: 50%;
  background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
  border: 3px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(1.15rem * var(--game-scale));
  font-weight: 800;
  color: #1e293b;
  position: relative;
  transition: all 0.3s;
}

.stone-item.missing {
  background: #fef08a;
  border-color: #ca8a04;
  border-style: dashed;
  color: #ca8a04;
  animation: pulseGold 1.5s infinite;
}

.stone-item.rabbit-here::before {
  content: "🐰";
  position: absolute;
  top: -32px;
  font-size: calc(2.2rem * var(--game-scale));
}

/* Denge Terazisi SVG */
.scale-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: calc(560px * var(--game-scale));
  margin: calc(6px * var(--game-scale)) auto;
}

.scale-svg {
  width: 100%;
  height: auto;
  max-height: calc(250px * var(--game-scale));
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.scale-beam-group {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: 250px 75px;
}

.pan-text {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 19px;
  fill: #1e293b;
  text-anchor: middle;
  dominant-baseline: middle;
}

/* Saat Kadranı SVG */
.clock-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: calc(6px * var(--game-scale)) 0;
}

.clock-svg {
  width: calc(230px * var(--game-scale));
  height: calc(230px * var(--game-scale));
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.12));
}

.clock-number-svg {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 21px;
  fill: #334155;
  text-anchor: middle;
  dominant-baseline: central;
}

/* Kesirler */
.fraction-plate-container {
  display: flex;
  gap: calc(18px * var(--game-scale));
  justify-content: center;
  align-items: center;
}

.fraction-card {
  background: #ffffff;
  border: 3px solid #e2e8f0;
  border-radius: 18px;
  padding: calc(12px * var(--game-scale));
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  min-width: 110px;
}

.fraction-card:hover {
  transform: translateY(-4px);
  border-color: #ec4899;
}

.fraction-visual {
  width: 70px;
  height: 70px;
  margin: 0 auto 6px;
  border-radius: 50%;
  position: relative;
  background: #f1f5f9;
  overflow: hidden;
  border: 2px solid #cbd5e1;
}

.pie-half { width: 50%; height: 100%; background: #f43f5e; }
.pie-quarter { width: 50%; height: 50%; background: #f43f5e; }
.pie-full { width: 100%; height: 100%; background: #f43f5e; }

/* ==========================================================================
   KUSURSUZ SVG TABANLI CETVEL VE ÖLÇÜM SAHNESİ
   ========================================================================== */
.ruler-integrated-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: calc(6px * var(--game-scale)) 0;
}

.ruler-integrated-svg {
  width: 96%;
  max-width: calc(620px * var(--game-scale));
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.1));
}

/* Dokunmatik Sayı Tuş Takımı (Numpad) */
.numpad-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.numpad-display {
  background: #ffffff;
  border: 3px solid #3b82f6;
  border-radius: 16px;
  padding: 6px 20px;
  font-size: calc(1.7rem * var(--game-scale));
  font-weight: 900;
  color: #1e293b;
  min-width: 130px;
  text-align: center;
  letter-spacing: 2px;
  box-shadow: var(--shadow-sm);
}

.numpad-grid {
  display: grid;
  grid-template-columns: repeat(3, calc(54px * var(--game-scale)));
  gap: 5px;
}

.numpad-btn {
  height: calc(48px * var(--game-scale));
  border-radius: 12px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  font-size: calc(1.3rem * var(--game-scale));
  font-weight: 800;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
  box-shadow: var(--shadow-sm);
  font-family: inherit;
}

.numpad-btn:active {
  transform: scale(0.92);
  background: #e2e8f0;
}

.numpad-btn-action {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #2563eb;
}

.numpad-btn-submit {
  grid-column: span 3;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  font-size: calc(1.1rem * var(--game-scale));
  height: calc(46px * var(--game-scale));
}

/* Çetele Tablosu */
.tally-table-card {
  background: #ffffff;
  border: 3px solid #cbd5e1;
  border-radius: 20px;
  padding: calc(12px * var(--game-scale));
  box-shadow: var(--shadow-md);
  margin: calc(8px * var(--game-scale)) 0;
  width: 90%;
  max-width: calc(480px * var(--game-scale));
}

.tally-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.tally-table th, .tally-table td {
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  font-size: calc(1rem * var(--game-scale));
  font-weight: 700;
}

.tally-table th {
  background: #f8fafc;
  color: #0284c7;
}

/* Genel Butonlar ve Modallar */
.btn-action-main {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 10px 24px;
  font-size: calc(1.02rem * var(--game-scale));
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: all 0.2s;
  font-family: inherit;
}

.btn-action-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.celebration-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 26px 34px;
  text-align: center;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.celebration-stars {
  font-size: 2.5rem;
  letter-spacing: 6px;
}

/* Ağırlık Taşları (Kitap S.142) */
.weight-stone-btn {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
  color: #ffffff;
  border: 2px solid #64748b;
  border-radius: 14px;
  padding: calc(8px * var(--game-scale)) calc(14px * var(--game-scale));
  font-size: calc(1.15rem * var(--game-scale));
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s;
  font-family: inherit;
}

.weight-stone-btn:active {
  transform: scale(0.92);
  background: #1e293b;
}

.weight-stone-btn:hover {
  border-color: #94a3b8;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   SORU MODU SEÇİCİ (10, 20, Sonsuz Mod)
   ========================================================================== */
.mode-selector-group {
  display: flex;
  background: #f1f5f9;
  border-radius: 9999px;
  padding: 3px;
  gap: 3px;
  border: 1.5px solid #e2e8f0;
}

.mode-btn {
  background: transparent;
  border: none;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: calc(0.82rem * var(--game-scale));
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.mode-btn:hover {
  color: #1e293b;
}

.mode-btn.active {
  background: #ffffff;
  color: #2563eb;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

/* ==========================================================================
   RİTMİK ZIP ZIP TAVŞAN ANİMASYONLARI
   ========================================================================== */
@keyframes rabbitHop {
  0% { transform: translateY(0) scale(1) rotate(0deg); }
  25% { transform: translateY(-38px) scale(1.15) rotate(-8deg); }
  50% { transform: translateY(-48px) scale(1.2) rotate(0deg); }
  75% { transform: translateY(-20px) scale(1.1) rotate(6deg); }
  100% { transform: translateY(0) scale(1) rotate(0deg); }
}

.rabbit-jumper {
  display: inline-block;
  font-size: calc(3rem * var(--game-scale));
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.rabbit-jumper.hopping {
  animation: rabbitHop 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   DOĞAL SAYILARI KARŞILAŞTIRMA (BÜYÜK YATAY KARTLAR & TİMSAH TEMASI)
   ========================================================================== */
.comparison-arena-horizontal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(24px * var(--game-scale));
  margin: calc(16px * var(--game-scale)) 0;
  width: 100%;
}

.compare-card-big {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 4px solid #22c55e;
  border-radius: 28px;
  min-width: calc(130px * var(--game-scale));
  padding: calc(14px * var(--game-scale)) calc(28px * var(--game-scale));
  font-size: calc(4.2rem * var(--game-scale));
  font-weight: 900;
  color: #15803d;
  text-align: center;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.25);
  letter-spacing: 2px;
  user-select: none;
}

.compare-card-big.card-right {
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  border-color: #3b82f6;
  color: #1d4ed8;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}

.comparison-slot-big {
  width: calc(90px * var(--game-scale));
  height: calc(90px * var(--game-scale));
  border-radius: 24px;
  background: #fef3c7;
  border: 4px dashed #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(3.5rem * var(--game-scale));
  font-weight: 900;
  color: #b45309;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.op-btn-crocodile {
  font-size: calc(2.4rem * var(--game-scale)) !important;
  font-weight: 900 !important;
  padding: calc(10px * var(--game-scale)) calc(24px * var(--game-scale)) !important;
  border-radius: 20px !important;
  transition: transform 0.15s !important;
}

.op-btn-crocodile:hover {
  transform: scale(1.1) !important;
}

/* ==========================================================================
   SIRA BİLDİREN SAYILAR (20 HAYVANLIK YATAY YARIŞ PİSTİ)
   ========================================================================== */
.animal-race-viewport {
  width: 96%;
  max-width: calc(750px * var(--game-scale));
  overflow-x: auto;
  padding: calc(8px * var(--game-scale)) 6px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 2px solid #86efac;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
  margin: calc(10px * var(--game-scale)) 0;
  -webkit-overflow-scrolling: touch;
}

.animal-race-track {
  display: flex;
  align-items: center;
  gap: calc(8px * var(--game-scale));
  min-width: max-content;
  padding: 6px 10px;
}

.animal-slot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 16px;
  padding: calc(6px * var(--game-scale)) calc(8px * var(--game-scale));
  min-width: calc(66px * var(--game-scale));
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.animal-slot-card.highlight {
  border-color: #f59e0b;
  background: #fefce8;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.animal-rank-tag {
  font-size: calc(0.85rem * var(--game-scale));
  font-weight: 800;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 6px;
  border-radius: 8px;
  margin-bottom: 3px;
}

.animal-emoji {
  font-size: calc(2rem * var(--game-scale));
  line-height: 1.1;
}

.animal-name-sub {
  font-size: calc(0.72rem * var(--game-scale));
  font-weight: 700;
  color: #475569;
  margin-top: 2px;
  white-space: nowrap;
}

/* ==========================================================================
   ÇOCUKLARA ÖZEL RENKLİ KARTLAR & TİPOGRAFİ
   ========================================================================== */
.kid-number-card {
  font-size: calc(3.6rem * var(--game-scale));
  font-weight: 900;
  color: #0284c7;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  padding: calc(10px * var(--game-scale)) calc(30px * var(--game-scale));
  border-radius: 28px;
  border: 4px solid #38bdf8;
  display: inline-block;
  letter-spacing: 4px;
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.25);
  text-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.kid-text-card {
  font-size: calc(1.8rem * var(--game-scale));
  font-weight: 900;
  color: #1e293b;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: calc(12px * var(--game-scale)) calc(26px * var(--game-scale));
  border-radius: 24px;
  border: 3px solid #f59e0b;
  display: inline-block;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.2);
  margin: calc(8px * var(--game-scale)) 0;
}

.kid-option-btn {
  font-family: inherit;
  font-weight: 800;
  font-size: calc(1.2rem * var(--game-scale));
  border-radius: 20px;
  padding: calc(12px * var(--game-scale)) calc(20px * var(--game-scale));
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.kid-option-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-md);
}

.kid-option-btn:active {
  transform: scale(0.96);
}

.kid-opt-blue {
  background: linear-gradient(135deg, #e0f2fe 0%, #38bdf8 100%);
  color: #0369a1;
  border-color: #0284c7;
}

.kid-opt-purple {
  background: linear-gradient(135deg, #f3e8ff 0%, #c084fc 100%);
  color: #6b21a8;
  border-color: #9333ea;
}

.kid-opt-green {
  background: linear-gradient(135deg, #ecfdf5 0%, #34d399 100%);
  color: #065f46;
  border-color: #059669;
}

.kid-opt-orange {
  background: linear-gradient(135deg, #fff7ed 0%, #fb923c 100%);
  color: #9a3412;
  border-color: #ea580c;
}


