/*
 * MatUzay stilleri — yükleme sırası önemlidir.
 *
 * Sonraki katman öncekinin kurallarını ezer:
 *   1-temel/    ilk tasarım: düzen, soru kartı, konular, paneller
 *   2-tasarim/  Matrota tasarım katmanı: renkler, uygulama yerleşimi, konu ekranları, ödüller
 *   3-matuzay/  MatUzay maskotu, kapak, logo, giriş, üst bar ve veli ekranları
 *
 * Kapak sayfasının bütün kuralları 3-matuzay/kapak.css içindedir.
 * Diğer ekranların kuralları birden çok katmanda olabilir; sırayı değiştirmeyin.
 */

/* 1. Temel */

:root {
  --bg: #eef1e3;
  --bg-card: #fffdf8;
  --ink: #2b2a25;
  --ink-soft: #6b6a5f;
  --leaf: #3f7a52;
  --leaf-dark: #2f5c3d;
  --apple-red: #c4483d;
  --apple-red-dark: #a13a30;
  --sun: #e3a93b;
  --sky: #3e6e8e;
  --sky-dark: #2f5670;
  --amber-soft: #f5deb0;
  --amber-ink: #7a5a1c;
  --grape: #6d5a9e;
  --border: #d9d7c4;
  --shadow: 0 10px 24px rgba(43, 42, 37, 0.10);
  color-scheme: light;
}

:root:not([data-theme="light"]) {
  @media (prefers-color-scheme: dark) {
    --bg: #1b1d17; --bg-card: #26281f; --ink: #f1efe4; --ink-soft: #b6b4a4;
    --leaf: #6fae82; --leaf-dark: #8fc7a0; --apple-red: #e08277; --apple-red-dark: #e79a91;
    --sun: #e3b25a; --sky: #7fb2cf; --sky-dark: #9ac4dc; --amber-soft: #3a2f18;
    --amber-ink: #e3c37e; --grape: #b1a0e0; --border: #3a3c30; --shadow: 0 10px 24px rgba(0,0,0,0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1d17; --bg-card: #26281f; --ink: #f1efe4; --ink-soft: #b6b4a4;
  --leaf: #6fae82; --leaf-dark: #8fc7a0; --apple-red: #e08277; --apple-red-dark: #e79a91;
  --sun: #e3b25a; --sky: #7fb2cf; --sky-dark: #9ac4dc; --amber-soft: #3a2f18;
  --amber-ink: #e3c37e; --grape: #b1a0e0; --border: #3a3c30; --shadow: 0 10px 24px rgba(0,0,0,0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* Android / iOS uygulaması: çift dokunmada yakınlaşma yok, kenarlarda esneme yok */
html.uygulama, html.uygulama body { touch-action: manipulation; overscroll-behavior: none; }
/* Uygulamada uzun basınca yazı seçilmez, Kopyala / Paylaş balonu çıkmaz (yazı alanları hariç) */
html.uygulama body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.uygulama input, html.uygulama textarea, html.uygulama [contenteditable] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }

body {
  margin: 0; min-height: 100%; background: var(--bg); color: var(--ink);
  font-family: 'Karla', system-ui, sans-serif;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  -webkit-tap-highlight-color: transparent;
}
.wrap { max-width: 560px; margin: 0 auto; padding: 20px 16px 40px; }
@media (min-width: 1040px) { .wrap { max-width: 1240px; } }

/* Sol: konu panelleri · Orta: işlemler ve sorular · Sağ: profil ve ödüller */
.app-shell {
  display: grid; gap: 18px;
  grid-template-areas: "right" "left" "center";
}
.col-left { grid-area: left; }
.col-center { grid-area: center; min-width: 0; }
.col-right { grid-area: right; }
@media (min-width: 1040px) {
  .app-shell {
    grid-template-columns: 190px minmax(0, 1fr) 230px;
    grid-template-areas: "left center right";
    align-items: start;
  }
  .col-left, .col-right { position: sticky; top: 16px; }
  .col-left { max-height: calc(100vh - 32px); }
  .col-left::-webkit-scrollbar { width: 10px; }
  .col-left::-webkit-scrollbar-track { background: var(--bg); border-radius: 999px; }
  .col-left::-webkit-scrollbar-thumb { background: var(--leaf); border-radius: 999px; border: 2px solid var(--bg); }
  .col-left::-webkit-scrollbar-thumb:hover { background: var(--leaf-dark); }
}

/* Gizleme sınıfı: her kuralı ezmelidir (!important bilinçli) */
.hidden { display: none !important; }

header.topbar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-bottom: 18px; flex-wrap: wrap;
}
.brand { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--leaf-dark); line-height: 1.1; }
.brand span { color: var(--apple-red); }
.brand .brand-tag { font-family: 'Karla', sans-serif; font-weight: 700; font-size: 0.82rem; color: var(--ink-soft); margin-left: 8px; letter-spacing: 0.01em; }
.top-right { display: flex; align-items: center; gap: 8px; }
.score-pill, .best-pill {
  font-family: 'Karla', sans-serif; font-weight: 700; font-size: 0.92rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 14px; white-space: nowrap; box-shadow: var(--shadow);
}
.score-pill b { color: var(--leaf-dark); font-family: 'Baloo 2', sans-serif; font-size: 1.05em; }
.best-pill { color: var(--ink-soft); }

.profile-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 16px;
  padding: 12px; margin-bottom: 14px;
}
@media (min-width: 1040px) { .profile-card { flex-direction: column; align-items: stretch; } }
.side-label {
  font-family: 'Karla', sans-serif; font-weight: 800; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin: 0 2px 6px;
}
.link-btn {
  font-family: 'Karla', sans-serif; font-weight: 600; font-size: 0.85rem;
  color: var(--sky); background: none; border: none; cursor: pointer;
  padding: 6px 4px; text-decoration: underline; text-underline-offset: 3px;
}
.icon-btn {
  font-size: 1.15rem; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 999px; width: 44px; height: 44px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; box-shadow: var(--shadow); flex: none;
}
.icon-btn:active { transform: scale(0.92); }


.badge-toast {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  z-index: 30; display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border: 2px solid var(--sun); border-radius: 16px;
  padding: 10px 16px; box-shadow: 0 12px 28px rgba(43, 42, 37, 0.22);
  width: max-content; max-width: calc(100% - 24px);
}
.badge-toast-ico { font-size: 1.8rem; line-height: 1; }
.badge-toast-text { font-family: 'Karla', sans-serif; font-size: 0.86rem; color: var(--ink); line-height: 1.35; }
.badge-toast-text b { color: var(--amber-ink); font-family: 'Baloo 2', sans-serif; font-size: 0.95rem; }
.badge-toast.pop { animation: badge-toast-in 0.4s ease; }
@keyframes badge-toast-in {
  0% { transform: translateX(-50%) translateY(-16px) scale(0.85); opacity: 0; }
  60% { transform: translateX(-50%) translateY(2px) scale(1.03); opacity: 1; }
  100% { transform: translateX(-50%) translateY(0) scale(1); }
}
.badge-strip {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; min-height: 0;
}
.badge-strip .badge-chip {
  position: relative; font-size: 1.3rem; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 999px; width: 40px; height: 40px; display: flex; align-items: center;
  justify-content: center; box-shadow: var(--shadow);
  animation: pop-in 0.35s ease;
}
.badge-strip .badge-chip .badge-count {
  position: absolute; top: -5px; right: -5px; min-width: 15px; height: 15px; padding: 0 2px;
  border-radius: 999px; background: var(--leaf); color: #fff; border: 2px solid var(--bg-card);
  font-family: 'Karla', sans-serif; font-weight: 800; font-size: 0.62rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}

.mascot-row { display: flex; justify-content: center; margin-bottom: 4px; }
.mascot { transition: transform 0.25s ease; }
.mascot svg .eye { transition: r 0.15s ease, cy 0.15s ease; }
.mascot.happy { animation: bounce 0.5s ease; }
.mascot.sad { animation: shake 0.4s ease; }
.mascot.sad svg .eye { r: 3; }

@keyframes bounce {
  0% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-14px) scale(1.08); }
  55% { transform: translateY(0) scale(0.98); }
  75% { transform: translateY(-5px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px) rotate(-3deg); }
  75% { transform: translateX(6px) rotate(3deg); }
}
@keyframes pop-in {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

.confetti-piece {
  position: fixed; top: -20px; width: 9px; height: 9px; border-radius: 2px;
  pointer-events: none; z-index: 999; animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(540deg); opacity: 0.9; }
}

/* Yan panel: yalnızca sınıf düğmeleri (dar ekranda yan yana, geniş ekranda alt alta) */
.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 1040px) { .topics { grid-template-columns: 1fr; gap: 10px; } }
.grade-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 48px;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1rem; line-height: 1.15;
  color: var(--ink); background: var(--bg-card); border: 2px solid var(--border);
  border-radius: 14px; padding: 8px 10px; cursor: pointer; box-shadow: var(--shadow); text-align: center;
}
.grade-btn .chev { color: var(--ink-soft); font-size: 1.1rem; display: none; }
.grade-btn.active { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.grade-btn.active .chev { color: #fff; }
.grade-btn:active { transform: scale(0.97); }
@media (min-width: 1040px) {
  .grade-btn { justify-content: space-between; padding: 14px 16px; font-size: 1.1rem; text-align: left; }
  .grade-btn .chev { display: inline; }
}
:root[data-theme="dark"] .grade-btn.active, :root[data-theme="dark"] .grade-btn.active .chev { color: #14160f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grade-btn.active, :root:not([data-theme="light"]) .grade-btn.active .chev { color: #14160f; } }

/* Orta ekran 1: seçilen sınıfın konuları */
.topics-view { background: var(--bg-card); border: 1px solid var(--border); border-radius: 22px; padding: 22px 18px 24px; box-shadow: var(--shadow); }
.tv-title { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.45rem; color: var(--leaf-dark); margin: 0 0 2px; line-height: 1.2; }
.tv-sub { font-family: 'Karla', sans-serif; font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 16px; }
.tv-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 700px) { .tv-grid { grid-template-columns: 1fr 1fr; } }
.tv-grid .topic-btn { min-height: 58px; font-size: 1rem; padding: 14px 16px; }
.tv-grid .topic-btn:hover { border-color: var(--leaf); }
.tv-group-title {
  font-family: 'Karla', sans-serif; font-weight: 800; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink-soft); margin: 20px 2px 8px;
}
.tv-empty { text-align: center; padding: 34px 12px 26px; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.5; }
.tv-empty .tv-empty-ico { font-size: 2.4rem; display: block; margin-bottom: 8px; }

/* Orta ekran 2: soru ekranının üstündeki geri dön şeridi */
.q-bar { margin-bottom: 12px; }
.back-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-family: 'Karla', sans-serif; font-weight: 800; font-size: 0.95rem; color: var(--sky-dark);
  background: var(--bg-card); border: 2px solid var(--border); border-radius: 999px;
  padding: 0 18px 0 14px; cursor: pointer; box-shadow: var(--shadow);
}
.back-btn:hover { border-color: var(--sky); }
.back-btn:active { transform: scale(0.96); }
@media (max-width: 699px) { .q-bar-grade { display: none; } }
.q-bar-name { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grade-group { display: flex; flex-direction: column; }
.grade-heading {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font-family: 'Karla', sans-serif; font-weight: 800; font-size: 0.85rem;
  color: var(--ink); background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px; margin: 6px 0 0; cursor: pointer;
}
.grade-heading .chev { color: var(--ink-soft); font-size: 0.8rem; transition: transform 0.15s ease; }
.grade-heading.open { color: var(--leaf-dark); border-color: var(--leaf); }
.grade-topics {
  display: flex; flex-direction: column; gap: 8px; padding: 8px 0 2px;
}
.topic-btn {
  position: relative; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; width: 100%;
  background: var(--bg-card); border: 2px solid var(--border); border-radius: 14px;
  padding: 12px 14px; cursor: pointer; text-align: left;
  font-family: 'Karla', sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--ink);
  box-shadow: var(--shadow);
}
.topic-btn .ico { font-size: 1.3rem; flex: none; }
.topic-group-heading {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font-family: 'Karla', sans-serif; font-weight: 800; font-size: 0.9rem;
  color: var(--ink); background: var(--bg-card); border: 2px solid var(--border);
  border-radius: 14px; padding: 12px 14px; cursor: pointer; box-shadow: var(--shadow);
}
.topic-group-heading .chev { color: var(--ink-soft); font-size: 0.8rem; }
.topic-group-heading.open { color: var(--leaf-dark); border-color: var(--leaf); }
.topic-subgroup {
  display: flex; flex-direction: column; gap: 8px; margin-left: 10px; padding-left: 10px;
  border-left: 3px solid var(--border);
}
.topic-btn .topic-label { flex: 1 1 auto; min-width: 0; }
.topic-badges { display: flex; gap: 4px; flex: none; margin-left: auto; padding-left: 6px; }
.topic-badge-mini {
  font-size: 0.8rem; opacity: 0.3; filter: grayscale(1); line-height: 1; transition: opacity 0.2s ease, filter 0.2s ease;
}
.topic-badge-mini.earned { opacity: 1; filter: none; }
.topic-btn.active { border-color: var(--leaf); background: var(--amber-soft); background: color-mix(in srgb, var(--leaf) 12%, var(--bg-card)); }
.topic-btn .lock { position: absolute; top: 8px; right: 10px; font-size: 0.8rem; }
.topic-btn.locked { color: var(--ink-soft); }

.level-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.level-row .seg { flex: none; }
.level-desc { font-family: 'Karla', sans-serif; font-size: 0.85rem; color: var(--ink-soft); padding: 0 4px; line-height: 1.4; }
.seg {
  display: flex; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 3px; gap: 3px; box-shadow: var(--shadow); flex: 1 1 auto;
}
.seg button {
  flex: 1; border: none; background: transparent; color: var(--ink-soft);
  font-family: 'Karla', sans-serif; font-weight: 600; font-size: 0.86rem;
  padding: 8px 6px; border-radius: 9px; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.seg button.active { background: var(--leaf); color: #fff; }

.lock-note {
  background: var(--amber-soft); color: var(--amber-ink); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 16px; font-size: 0.92rem; line-height: 1.5;
}
.lock-note button {
  margin-top: 8px; font-family: 'Karla', sans-serif; font-weight: 700; font-size: 0.86rem;
  background: var(--sky); color: #fff; border: none; border-radius: 10px; padding: 8px 14px; cursor: pointer;
}

main.card { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: 22px; padding: 26px 20px 24px; box-shadow: var(--shadow); }
/* Tebrik/ödül panelleri soruların çıktığı kartın içinde, ortada katman olarak açılır */
main.card.overlay-open::before {
  content: ''; position: absolute; inset: 0; z-index: 15; border-radius: inherit;
  background: rgba(255, 253, 248, 0.84); background: color-mix(in srgb, var(--bg-card) 84%, transparent);
}

.orchard { min-height: 64px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 3px; margin-bottom: 6px; font-size: 1.5rem; line-height: 1; }
.orchard .sep { font-family: 'Baloo 2', sans-serif; font-size: 1.1rem; color: var(--ink-soft); margin: 0 8px; align-self: center; }
.orchard .row { display: flex; width: 100%; justify-content: center; gap: 3px; }
.orchard.obj-row { flex-wrap: nowrap; align-items: stretch; gap: 6px; }
.orchard.obj-row .obj-group {
  display: flex; flex: 1 1 0; flex-wrap: wrap; gap: 2px; justify-content: center; align-content: center; align-items: center;
  border: 2px solid var(--border); border-radius: 14px; background: var(--bg);
  padding: 6px; min-height: 56px; min-width: 0;
}
.orchard.obj-row .obj-group .obj { width: 20px; height: 20px; flex: none; }
/* Toplama / Çıkarma: çerçeve aynı boyda kalır, içindeki nesneler çerçeveyi dolduracak kadar büyür */
.orchard.obj-row .obj-group.fit { height: 64px; box-sizing: border-box; padding: 3px 4px; gap: 2px; overflow: hidden; }
.orchard.obj-row .obj-group .obj.tall { width: 32px; height: 32px; margin: 0 -1px; }
.orchard.obj-row.obj-three .obj-group { padding: 4px; gap: 1px; }
.orchard.obj-row.obj-three .obj-group .obj { width: 16px; height: 16px; }
.orchard.obj-row.obj-three .sep { font-size: 1.5rem; }
@media (min-width: 900px) { .orchard.obj-row.obj-three .obj-group .obj { width: 24px; height: 24px; } }
.orchard.obj-row.obj-three .obj-group .obj.tall { width: 24px; height: 24px; margin: 0; }
@media (min-width: 900px) { .orchard.obj-row.obj-three .obj-group .obj.tall { width: 32px; height: 32px; } }
.orchard.obj-row .sep {
  font-size: 1.9rem; color: var(--apple-red-dark); font-weight: 700; margin: 0 2px; flex: none;
}

/* Modül 1-2: öğrencinin kendi kurduğu model */
.orchard.builder { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-wrap: nowrap; }
.b-tray { display: grid; grid-template-columns: repeat(20, 23px); gap: 2px; justify-content: center; }
.b-cell { width: 23px; height: 26px; display: flex; align-items: center; justify-content: center; }
.b-obj { display: inline-flex; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.b-obj .obj { width: 22px; height: 22px; display: block; pointer-events: none; }
.b-obj .obj.tall { width: 26px; height: 26px; margin: 0 -2px; }
.b-obj.dragging-chip { opacity: 0.25; }
.b-ops { display: flex; gap: 10px; justify-content: center; }
.b-op {
  width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--border); background: var(--bg-card);
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--apple-red-dark);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; display: flex; align-items: center; justify-content: center; padding: 0;
}
.b-op.dragging-chip { opacity: 0.3; }
.b-model { display: flex; align-items: stretch; gap: 6px; width: 100%; }
.b-frame {
  flex: 1 1 0; min-width: 0; min-height: 64px; display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; align-content: center; align-items: center;
  border: 2px dashed var(--border); border-radius: 14px; background: var(--bg); padding: 6px;
}
.b-frame.active { border-color: var(--sky); }
.b-frame.over, .b-slot.over { border-color: var(--leaf); border-style: solid; }
.b-slot {
  flex: none; align-self: center; width: 40px; height: 40px; border-radius: 12px; border: 2px dashed var(--border); background: var(--bg);
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.7rem; line-height: 1; color: var(--apple-red-dark);
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.b-slot.filled { border-style: solid; background: var(--bg-card); }
.b-three .b-frame { padding: 4px; }
.b-three .b-slot { font-size: 1.5rem; }
.b-three .b-frame .b-obj .obj { width: 18px; height: 18px; }
.b-three .b-frame .b-obj .obj.tall { width: 22px; height: 22px; }
@media (min-width: 900px) { .b-three .b-frame .b-obj .obj { width: 22px; height: 22px; } .b-three .b-frame .b-obj .obj.tall { width: 26px; height: 26px; } }
.b-steps { flex-direction: column; align-items: stretch; gap: 4px; }
.b-row { display: flex; align-items: stretch; gap: 5px; width: 100%; }
.b-row.b-off { opacity: 0.4; }
.b-step { font-family: 'Karla', sans-serif; font-weight: 700; font-size: 0.8rem; color: var(--sky-dark); text-align: left; margin-top: 2px; }
.b-eq { flex: none; align-self: center; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--ink-soft); }
.b-res {
  flex: none; align-self: center; width: 44px; height: 40px; border-radius: 12px; border: 2px dashed var(--sky); background: var(--bg);
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.3rem; line-height: 1; color: var(--sky-dark);
  display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
}
.b-res.filled { border-style: solid; background: var(--bg-card); }
.b-res.b-q { cursor: default; border-color: var(--border); color: var(--ink-soft); }
.b-picker { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 6px; border: 2px solid var(--border); border-radius: 12px; background: var(--bg-card); }
.b-picker.hidden { display: none; }
.b-picker button {
  height: 34px; border-radius: 9px; border: 2px solid var(--border); background: var(--bg); cursor: pointer; padding: 0;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--ink);
}
.b-two .b-frame { min-height: 52px; }
/* Dar ekranda soru kartı konu listesinin üstünde durur; kartın başındaki şerit hangi konuda olunduğunu gösterir */
.topic-chip .tc-name { font-family: 'Karla', sans-serif; font-weight: 700; font-size: 0.86rem; color: var(--ink-soft); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-chip .tc-btn {
  flex: none; font-family: 'Karla', sans-serif; font-weight: 700; font-size: 0.84rem; color: var(--sky-dark);
  background: var(--bg); border: 2px solid var(--border); border-radius: 999px; padding: 0 14px; min-height: 40px; cursor: pointer;
}
.topic-chip { margin: -4px 0 8px; gap: 8px; justify-content: space-between; align-items: center; display: none; }
@media (max-width: 1039px) {
  .mascot-row svg { width: 48px; height: 48px; }
  .col-left { scroll-margin-top: 8px; }
  #practiceCard, #questionView { scroll-margin-top: 8px; }
}
.speak-btn { min-height: 40px; }
.b-three .b-slot { width: 36px; height: 40px; }
@media (max-width: 620px) { .b-tray { grid-template-columns: repeat(10, 31px); } .b-cell { width: 31px; height: 31px; } .b-tray .b-obj .obj { width: 26px; height: 26px; } .b-tray .b-obj .obj.tall { width: 29px; height: 29px; } }
.b-frame.shown { border-style: solid; border-color: var(--leaf); }
.b-shown .b-tray, .b-shown .b-ops { opacity: 0.35; }
.text-first .problem.text-problem { margin: 6px 0 12px; }
.text-first .orchard { margin-bottom: 14px; }
.speak-btn.model-toggle { margin-left: 8px; }
@media (max-width: 620px) { .problem.text-problem .speak-btn { font-size: 0.8rem; padding: 6px 9px; gap: 4px; } .speak-btn.model-toggle { margin-left: 4px; } }
.speak-btn.model-toggle.off { color: var(--ink-soft); background: transparent; border-style: dashed; }
.numline .nl-box { width: 100%; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.numline .nl-box svg { display: block; max-width: 100%; }
.nl-undo {
  font-family: 'Karla', sans-serif; font-weight: 700; font-size: 0.84rem; color: var(--sky-dark);
  background: var(--bg); border: 2px solid var(--border); border-radius: 999px; padding: 0 14px; min-height: 40px; cursor: pointer;
}
.nl-undo[disabled] { opacity: 0.4; cursor: default; }
.numline.b-shown .nl-box { pointer-events: none; }
@media (max-width: 620px) { .numline { margin-left: -12px; margin-right: -12px; } }
/* ---- Çalışma kağıdı (PDF) ---- */
.ws-card { margin-top: 18px; }
/* ===== Ödev Hazırla Paneli (Gelişim Takip Paneli ile aynı renkler) ===== */
#parentView .od-sub { color: #56617A; font-size: 15px; line-height: 1.5; margin: 6px 0 4px; }
#parentView h3.od-baslik { display: flex; align-items: center; gap: 10px; margin: 28px 0 14px; padding: 0 0 8px; border-bottom: 2px solid #E6EAF2; font-family: 'Karla', sans-serif; font-size: 16px; font-weight: 800; letter-spacing: .05em; color: #1F2A44; }
#parentView .od-baslik::before { content: ""; width: 6px; height: 20px; border-radius: 3px; background: var(--od, #2F7BF5); flex: none; }
#parentView .od-baslik small { margin-left: auto; font-size: 13px; font-weight: 600; letter-spacing: 0; color: #8A93A6; text-align: right; }
#parentView .od-b1 { --od: #2F7BF5; } #parentView .od-b2 { --od: #11A391; } #parentView .od-b3 { --od: #FF6F59; } #parentView .od-b4 { --od: #A3ABBD; }
#parentView .od-alan { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
#parentView .od-alan > span { font-size: 14px; font-weight: 700; color: #1F2A44; }
#parentView .od-alan input[type="text"] { font: inherit; font-size: 16px; font-weight: 600; color: #1F2A44; padding: 11px 14px; border: 2px solid #DDE2EC; border-radius: 12px; background: #F4F6FA; min-height: 48px; box-sizing: border-box; width: 100%; }
#parentView .od-alan input:focus, #parentView .od-kad input:focus { outline: none; border-color: #2F7BF5; background: #FFFFFF; }
#parentView .od-siniflar { display: flex; gap: 8px; flex-wrap: wrap; }
#parentView .od-sinif { height: 42px; padding: 0 18px; border-radius: 999px; border: 2px solid #DDE2EC; background: #FFFFFF; color: #56617A; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
#parentView .od-sinif.on { border-color: #1F2A44; color: #1F2A44; box-shadow: inset 0 0 0 1px #1F2A44; }
#parentView .od-secici { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; padding: 0 16px; border: 2px solid #DDE2EC; border-radius: 12px; background: #F4F6FA; color: #1F2A44; font: inherit; font-size: 16px; cursor: pointer; text-align: left; }
#parentView .od-secici.acik { border-color: #2F7BF5; background: #FFFFFF; }
#parentView .od-secici i { font-style: normal; color: #56617A; }
#parentView .od-konular { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; border: 2px solid #DDE2EC; border-radius: 12px; background: #FFFFFF; margin-top: 4px; }
#parentView .od-konu { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 0 12px; border: none; border-radius: 10px; background: transparent; color: #1F2A44; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-align: left; }
#parentView .od-konu:hover { background: #F4F6FA; }
#parentView .od-konu.on { background: #EEF4FF; box-shadow: inset 0 0 0 2px #2F7BF5; }
#parentView .od-konu small { font-size: 12px; font-weight: 800; color: #2F7BF5; white-space: nowrap; }
#parentView .od-kademeler { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
#parentView .od-kad { display: flex; flex-direction: column; gap: 6px; }
#parentView .od-kad b { font-size: 14px; color: #1F2A44; text-align: center; }
#parentView .od-kad small { font-size: 12px; color: #8A93A6; text-align: center; font-weight: 600; min-height: 15px; }
#parentView .od-kad input { font: inherit; font-size: 22px; font-weight: 800; text-align: center; color: #1F2A44; padding: 8px; border: 2px solid #DDE2EC; border-radius: 12px; background: #F4F6FA; min-height: 52px; box-sizing: border-box; width: 100%; }
#parentView .od-kad input.dolu { border-color: #2F7BF5; background: #EEF4FF; }
#parentView .od-ipucu { margin: 10px 0 0; font-size: 13px; color: #8A93A6; }
#parentView .od-liste { display: flex; flex-direction: column; }
#parentView .od-satir { display: flex; align-items: center; gap: 14px; padding: 12px 2px; border-bottom: 1px solid #E6EAF2; }
#parentView .od-satir .ad { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#parentView .od-satir .ad b { font-size: 15px; color: #1F2A44; }
#parentView .od-satir .ad span { font-size: 13px; color: #56617A; }
#parentView .od-satir .say { font-size: 15px; font-weight: 800; color: #1F2A44; white-space: nowrap; }
#parentView .od-satir.secili { background: #EEF4FF; border-radius: 10px; padding-left: 10px; padding-right: 10px; }
#parentView .od-kbtn { height: 36px; padding: 0 12px; border-radius: 10px; border: 1.5px solid #DDE2EC; background: #FFFFFF; color: #1F2A44; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
#parentView .od-kbtn:hover { border-color: #1F2A44; }
#parentView .od-kbtn.sil { color: #C2412A; }
#parentView .od-kbtn.sil:hover { border-color: #C2412A; }
#parentView .od-bos { padding: 16px; border: 2px dashed #DDE2EC; border-radius: 12px; color: #8A93A6; font-size: 14px; text-align: center; }
#parentView .od-segment { display: inline-flex; flex-wrap: wrap; gap: 6px; background: #F4F6FA; border: 2px solid #DDE2EC; border-radius: 12px; padding: 4px; align-self: flex-start; }
#parentView .od-segment button { min-height: 40px; padding: 0 16px; border: none; border-radius: 9px; background: transparent; color: #56617A; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
#parentView .od-segment button.on { background: #FFFFFF; color: #1F2A44; box-shadow: 0 1px 3px rgba(31,42,68,.15); }
#parentView .od-kucuk { font-size: 13px; color: #8A93A6; }
#parentView .od-alt { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding-top: 18px; border-top: 2px solid #E6EAF2; }
#parentView .od-toplam { font-size: 15px; color: #56617A; font-weight: 600; }
#parentView .od-toplam b { font-size: 26px; color: #1F2A44; font-family: 'Baloo 2', sans-serif; margin-right: 4px; }
#parentView .od-dugmeler { display: flex; gap: 10px; flex-wrap: wrap; }
#parentView .od-ana { height: 48px; padding: 0 22px; border-radius: 14px; border: none; background: #1F2A44; color: #FFFFFF; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
#parentView .od-ana:hover { background: #2C3A5C; }
#parentView .od-ikinci { height: 48px; padding: 0 18px; border-radius: 14px; border: 2px solid #DDE2EC; background: #FFFFFF; color: #56617A; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
#parentView .od-hata { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; background: #FFE9E4; border: 2px solid #E5484D; color: #A3201B; border-radius: 14px; padding: 12px 14px; font-size: 15px; font-weight: 700; }
#parentView .od-hata::before { content: "!"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #E5484D; color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 800; }
@media (max-width: 620px) {
  #parentView .od-kademeler { grid-template-columns: 1fr 1fr; }
  #parentView .od-konular { grid-template-columns: 1fr; }
  #parentView .od-satir { flex-wrap: wrap; }
  #parentView .od-satir .ad { flex-basis: 100%; }
  #parentView .od-baslik small { display: none; }
}
.ws-title-row { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.9rem; margin-bottom: 12px; }
.ws-title-row input { flex: 1; min-width: 0; font: inherit; font-weight: 400; padding: 9px 12px; border: 2px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--ink); }
.ws-title-row select { flex: 1; min-width: 0; font: inherit; font-weight: 700; padding: 10px 12px; border: 2px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--ink); min-height: 44px; }
.ws-levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ws-levels label { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); text-align: center; }
.ws-levels input { width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; text-align: center; padding: 9px 2px; border: 2px solid var(--border); border-radius: 9px; background: var(--bg); color: var(--ink); }
.ws-picked { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.ws-picked .ws-pick { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); font-size: 0.88rem; }
.ws-picked .ws-pick b { flex: none; }
.ws-picked .ws-pick span { flex: 1; min-width: 0; color: var(--ink-soft); }
.ws-picked .ws-pick button { flex: none; font: inherit; font-size: 0.8rem; font-weight: 700; color: var(--sky-dark); background: none; border: 1px solid var(--border); border-radius: 8px; padding: 6px 9px; cursor: pointer; }
.ws-picked .ws-none { font-size: 0.85rem; color: var(--ink-soft); }
.ws-total { font-weight: 700; margin: 12px 0; }
.ws-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#wsSheet { display: none; }
body.ws-open { overflow: hidden; }
body.ws-open #wsSheet { display: block; position: fixed; inset: 0; z-index: 3000; overflow: auto; background: #6f7468; padding: 64px 12px 24px; }
.ws-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 3001; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 10px; background: #2b2e28; }
.ws-bar button { font-family: 'Karla', sans-serif; font-weight: 700; font-size: 0.92rem; border-radius: 10px; padding: 10px 16px; cursor: pointer; border: 0; }
.ws-bar .ws-pdf { background: #3f7a52; color: #fff; }
.ws-bar .ws-pdf[disabled] { opacity: 0.6; cursor: default; }
.ws-bar .ws-again, .ws-bar .ws-close, .ws-bar .ws-tab, .ws-bar .ws-print { background: #e9e7d6; color: #2a2a26; }
.ws-bar .ws-tip { color: #d9d8c6; font-size: 0.8rem; flex-basis: 100%; text-align: center; }
.ws-page { background: #fff; color: #111; max-width: 794px; margin: 0 auto; padding: 38px 42px; font-family: 'Karla', Arial, sans-serif; font-size: 15px; line-height: 1.45; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
/* Üst bilgi tek satır: başlık solda, öğrenci alanları sağda; çözüm alanlarına yer kalsın diye olabildiğince küçük */
.ws-head { display: flex; align-items: flex-end; gap: 14px; border-bottom: 1.5px solid #111; padding-bottom: 3px; margin-bottom: 2px; }
.ws-head h1 { font-family: 'Baloo 2', Arial, sans-serif; font-size: 14px; line-height: 1.2; margin: 0; flex: none; max-width: 38%; }
.ws-fields { display: flex; gap: 12px; flex: 1; min-width: 0; font-weight: 700; font-size: 11px; }
.ws-fields span { border-bottom: 1px dotted #333; white-space: nowrap; }
.ws-fields span:nth-child(1) { flex: 3 1 0; } .ws-fields span:nth-child(2) { flex: 1.6 1 0; } .ws-fields span:nth-child(3) { flex: 1.4 1 0; }
.ws-sec { margin-top: 6px; }
.ws-cevap .ws-cv-liste { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.ws-cevap .ws-cv-liste li { border-bottom: 1px solid #E3E6EC; padding: 4px 0 6px; font-size: 14px; }
.ws-veli { margin-top: 22px; border: 2px solid #F3D27A; background: #FFF9E8; border-radius: 12px; padding: 12px 16px; }
.ws-veli h3 { margin: 0 0 6px; font-family: 'Baloo 2', Arial, sans-serif; font-size: 16px; }
.ws-veli ul { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.5; }
.ws-sec h2 { font-family: 'Baloo 2', Arial, sans-serif; font-size: 13px; line-height: 1.25; margin: 0 0 2px; padding: 2px 8px; background: #eceee4; border-left: 4px solid #3f7a52; break-after: avoid; page-break-after: avoid; }
.ws-sec .ws-ins { font-size: 11.5px; color: #333; margin: 2px 0 3px; break-after: avoid; page-break-after: avoid; }
.ws-q { break-inside: avoid; page-break-inside: avoid; padding: 7px 0; display: flex; gap: 8px; }
.ws-q .ws-no { font-weight: 800; flex: none; min-width: 26px; }
.ws-q .ws-body { flex: 1; min-width: 0; }
/* Bir A4 sayfaya 40 işlem (4 sütun × 10 satır) ve 10 problem (2 sütun × 5 satır) sığacak sabit ölçüler */
.ws-grid { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 10px; }
.ws-grid .ws-q { height: 20.5mm; box-sizing: border-box; padding: 0; align-items: center; gap: 5px; }
.ws-grid .ws-q .ws-no { min-width: 0; font-size: 12px; color: #444; }
.ws-prow { display: flex; gap: 8px; height: 20.5mm; box-sizing: border-box; padding: 1mm 0; break-inside: avoid; page-break-inside: avoid; }
.ws-prow .ws-no { font-weight: 800; flex: none; min-width: 26px; }
.ws-prow .ws-ptext { flex: 42 1 0; min-width: 0; }
.ws-prow .ws-pright { flex: 58 1 0; }
.ws-prow .ws-pright { flex-direction: column; display: flex; min-width: 0; position: relative; }
.ws-prow .ws-work { height: auto; flex: 1 1 0; margin: 0; }
.ws-prow .ws-ans { position: absolute; right: 8px; bottom: 5px; font-size: 12.5px; background: #fff; padding-left: 4px; }
.ws-prow .ws-ptext { overflow: hidden; line-height: 1.32; font-size: 12.5px; }
.ws-form-row { margin-top: 12px; }
/* Nesne Sayısı ve Ritmik Sayma: sayfa başına 10 soru, 2 sütun × 5 satır, sabit hücre */
.ws-g1 .ws-q { min-height: 48mm; box-sizing: border-box; padding: 1.5mm 0; align-items: flex-start; border-bottom: 1px dashed #bbb; }
.ws-g1 .ws-q:last-child { border-bottom: none; }
.ws-uzmain { flex: 1; min-width: 0; }
.ws-uztext { font-size: 15px; font-weight: 700; line-height: 1.35; }
.ws-uzopts { display: flex; flex-direction: column; gap: 7px; margin-top: 9px; font-size: 15px; }
.ws-uzopts i, .ws-uzmark { display: inline-block; width: 16px; height: 16px; border: 2px solid #111; border-radius: 3px; box-sizing: border-box; }
.ws-uzopts i { margin-right: 8px; vertical-align: -3px; }
.ws-czv .ws-q { height: 41mm; }
.ws-czt .ws-q { height: 20.5mm; box-sizing: border-box; padding: 1mm 0; overflow: hidden; }
.ws-cztext { font-weight: 700; font-size: 13px; line-height: 1.3; }
.ws-czrow { display: flex; align-items: flex-start; gap: 4mm; margin-top: 1.5mm; }
.ws-czpic { flex: none; width: 21mm; text-align: center; line-height: 0; }
.ws-czpic.wide { width: 44mm; }
.ws-czpic .ws-uzsvg { border-width: 1px; border-color: #777; border-radius: 3px; }
.ws-czpic .ws-uzmark { width: 13px; height: 13px; margin-top: 1mm; }
.ws-czdraw { flex: 1; height: 27mm; border: 1.5px dashed #888; border-radius: 6px; }
.ws-czans { display: flex; flex-direction: column; gap: 6px; font-size: 14px; padding-top: 2mm; }
.ws-czopts { display: flex; flex-direction: column; gap: 5px; }
.ws-czt .ws-czopts { flex-direction: row; gap: 14px; }
.ws-czt .ws-czans { padding-top: 0; }
.ws-czopts i { display: inline-block; width: 14px; height: 14px; border: 2px solid #111; border-radius: 3px; box-sizing: border-box; margin-right: 6px; vertical-align: -2px; }
.ws-czline { font-weight: 700; font-size: 15px; }
.ws-czline .ws-blank { min-width: 36px; }
.ws-uzline { margin-top: 10px; font-size: 17px; font-weight: 700; }
.ws-uzline .ws-blank { min-width: 42px; }
.ws-uzscenes { flex: none; display: flex; gap: 3mm; }
.ws-uzsc { width: 66mm; max-width: 44vw; text-align: center; line-height: 0; }
.ws-uzscenes.two .ws-uzsc { width: 52mm; max-width: 30vw; }
.ws-uzsvg { display: block; width: 100%; height: auto; border: 1.5px solid #111; border-radius: 4px; box-sizing: border-box; }
.ws-uzmark { margin-top: 1.5mm; }
.ws-g2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.ws-g2 .ws-q { height: 41mm; box-sizing: border-box; padding: 1.5mm 0; overflow: hidden; }
.ws-g2 .ws-body { font-size: 13px; line-height: 1.3; }
.ws-g2 .ws-objs { max-width: none; gap: 2px; }
.ws-g2 .ws-objs .obj { width: 26px; height: 26px; }
.ws-g2 .ws-circles { grid-template-columns: repeat(10, 24px); gap: 3px; }
.ws-g2 .ws-circles i { width: 22px; height: 22px; box-sizing: border-box; }
.ws-g2r .ws-num { min-width: 24px; height: 26px; line-height: 23px; font-size: 13px; margin: 3px 1px; padding: 0 2px; border-width: 1.5px; box-sizing: border-box; }
.ws-g2r .ws-box { width: 25px; height: 28px; margin: 3px 1px; border-width: 1.5px; box-sizing: border-box; }
/* Alt alta işlemler: sayfa başına 40 işlem, 8 sütun × 5 satır */
.ws-vgrid { display: grid; grid-template-columns: repeat(8, 1fr); column-gap: 6px; }
.ws-v { height: 41mm; box-sizing: border-box; padding-top: 1mm; break-inside: avoid; page-break-inside: avoid; position: relative; }
.ws-v .ws-no { position: absolute; top: 2mm; left: 0; font-size: 11px; font-weight: 800; color: #444; }
.ws-vop { display: flex; flex-direction: column; align-items: stretch; width: 15mm; margin: 3mm auto 0; font-family: 'Baloo 2', Arial, sans-serif; font-size: 20px; font-weight: 700; line-height: 1.25; }
.ws-vr { display: flex; justify-content: space-between; }
.ws-vr i { font-style: normal; width: 5mm; text-align: left; }
.ws-vr.ws-vlast { border-bottom: 2px solid #111; padding-bottom: 1px; }
.ws-eq { font-family: 'Baloo 2', Arial, sans-serif; font-size: 17px; font-weight: 700; white-space: nowrap; }
.ws-eq .ws-blank { min-width: 34px; }
.ws-blank { display: inline-block; min-width: 46px; border-bottom: 2px solid #111; height: 1.1em; vertical-align: baseline; }
.ws-box { display: inline-block; width: 34px; height: 34px; border: 2px solid #111; border-radius: 6px; vertical-align: middle; margin: 2px 3px; }
.ws-work { border: 1.5px dashed #888; border-radius: 8px; height: 92px; margin: 6px 0 4px; position: relative; }
.ws-work::before { content: "Çözüm"; position: absolute; top: 3px; left: 8px; font-size: 11px; color: #777; }
.ws-ans { font-weight: 700; }
.ws-objs { display: flex; flex-wrap: wrap; gap: 3px; margin: 4px 0; max-width: 330px; }
.ws-objs .obj { width: 28px; height: 28px; }
.ws-kinds { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.ws-kinds .obj { width: 26px; height: 26px; vertical-align: middle; }
.ws-objs.ws-framed { border: 1.5px solid #111; border-radius: 8px; padding: 4px 5px; width: max-content; max-width: 100%; margin: 3px 0 2px; }
.ws-anslabel { font-size: 10px; font-weight: 700; color: #555; margin-top: 2px; }
.ws-kinds.ws-strip { background: #eceee4; border-radius: 6px; padding: 3px 8px; width: max-content; max-width: 100%; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ws-g2 .ws-objs.ws-framed .obj { width: 23px; height: 23px; }
.ws-g2 .ws-kinds .obj { width: 22px; height: 22px; }
.ws-circles { display: grid; grid-template-columns: repeat(10, 26px); gap: 4px; margin-top: 4px; }
.ws-circles i { width: 24px; height: 24px; border: 2px solid #111; border-radius: 50%; }
.ws-num { display: inline-block; min-width: 34px; height: 34px; line-height: 30px; text-align: center; border: 2px solid #111; border-radius: 17px; font-weight: 800; margin: 2px 3px; padding: 0 6px; }
.ws-big { font-family: 'Baloo 2', Arial, sans-serif; font-size: 24px; font-weight: 800; margin-right: 10px; }
@media (max-width: 620px) { .ws-page { padding: 22px 16px; } .ws-grid { grid-template-columns: 1fr 1fr; } .ws-g2 { grid-template-columns: 1fr; } .ws-g2 .ws-q { height: auto; min-height: 30mm; } .ws-vgrid { grid-template-columns: repeat(4, 1fr); } .ws-prow { height: auto; flex-wrap: wrap; } .ws-prow .ws-ptext { flex-basis: calc(100% - 40px); } .ws-prow .ws-pright { flex-basis: 100%; height: 24mm; } .ws-head { flex-wrap: wrap; } .ws-head h1 { max-width: none; flex-basis: 100%; } }
@media print {
  /* Yazdırma: yalnızca kağıt görünsün; ekran stillerini kesin olarak ezmek için !important bilinçli */
  @page { size: A4; margin: 10mm 12mm; }
  html.ws-open-root { height: auto !important; overflow: visible !important; }
  body.ws-open { overflow: visible !important; height: auto !important; background: #fff !important; }
  #wsFrame { display: none !important; }
  body.ws-open > *:not(#wsSheet):not(#obj-sprite) { display: none !important; }
  body.ws-open #wsSheet { position: static; overflow: visible; background: #fff; padding: 0; }
  .ws-bar { display: none !important; }
  .ws-page { box-shadow: none; max-width: none; padding: 0; margin: 0; }
  .ws-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .ws-g2 { grid-template-columns: 1fr 1fr !important; }
  .ws-g2 .ws-q { height: 41mm !important; min-height: 0 !important; }
  .ws-g1 .ws-q { height: 48mm !important; min-height: 0 !important; overflow: hidden; }
  .ws-czt .ws-q { height: 20.5mm !important; }
  .ws-uzsc { max-width: none !important; }
  .ws-uzsvg { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ws-vgrid { grid-template-columns: repeat(8, 1fr) !important; }
  .ws-prow { height: 20.5mm !important; flex-wrap: nowrap !important; }
  .ws-prow .ws-ptext, .ws-prow .ws-pright { flex-basis: 0 !important; height: auto !important; }
  .ws-newpage { break-before: page; page-break-before: always; margin-top: 0; }
  .ws-break { break-after: page; page-break-after: always; }
  .ws-sec h2 { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* Kademe kutuları konunun kademe sayısı kadar (4–8); zirve kutusu ayrı renkte */
#parentView .od-kademeler { grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); gap: 10px; }
#parentView .od-kad.zirve b { color: #B45309; }
#parentView .od-kad.zirve input { border-color: #F5C451; background: #FFFBEB; }
#parentView .od-kad.zirve input.dolu { border-color: #E3A008; background: #FFF4D6; }
@media (max-width: 620px) { #parentView .od-kademeler { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; } }
/* Zirve soruları: satırda bir soru; şıklar ve kartlar iki sütunda */
.ws-zirve .ws-czans { flex: 1; min-width: 0; }
.ws-zirve .ws-czopts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.ws-zirve .ws-czrow { flex-direction: row-reverse; gap: 4mm; }
.ws-zirve .ws-czpic { width: 30mm; }
.ws-zirve .ws-czpic.wide { width: 56mm; }
/* Kesirler kağıtta alt alta: pay, çizgi, payda */
.ws-kesir { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.05; margin: 0 1px; }
.ws-kesir > span:first-child { border-bottom: 1.5px solid currentColor; padding: 0 2px; }
.ws-kesir > .ws-blank { margin: 1px 0; }
/* ---- Veli / Öğretmen paneli: sekmeli, kısa görünüm ---- */
.pv-card { padding: 18px 16px; }
.pv-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.pv-tabs button { font-family: 'Karla', sans-serif; font-weight: 700; font-size: 0.86rem; line-height: 1.15; border: 0; background: transparent; color: var(--ink-soft); border-radius: 9px; padding: 6px 2px; min-height: 44px; cursor: pointer; }
.pv-tabs button.on { background: var(--bg-card); color: var(--leaf-dark); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14); }
.pv-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pv-tile { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.pv-tile small { display: block; color: var(--ink-soft); font-weight: 700; font-size: 0.76rem; }
.pv-tile .big { font-family: 'Baloo 2', sans-serif; font-size: 1.4rem; font-weight: 800; line-height: 1.2; }
.pv-h { font-family: 'Karla', sans-serif; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin: 16px 0 4px; }
.pv-line { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.pv-line:last-child { border-bottom: 0; }
.pv-line .nm { flex: 1; min-width: 0; font-weight: 700; }
.pv-line .v { color: var(--ink-soft); white-space: nowrap; font-size: 0.84rem; }
.pv-line .bar-track { width: 64px; flex: none; margin-top: 0; }
.pv-line.low .bar-fill { background: var(--sun); }
.pv-muted { color: var(--ink-soft); font-size: 0.86rem; }
.pv-badges { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pv-seg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.pv-seg button { font-family: 'Karla', sans-serif; font-weight: 700; font-size: 0.85rem; border: 2px solid var(--border); background: var(--bg-card); color: var(--ink-soft); border-radius: 999px; padding: 7px 13px; min-height: 40px; cursor: pointer; }
.pv-seg button.on { border-color: var(--leaf); color: var(--leaf-dark); background: var(--bg); }
table.stats.pv-stats { margin: 0 0 6px; }
table.stats.pv-stats td, table.stats.pv-stats th { white-space: nowrap; text-align: right; }
table.stats.pv-stats td:first-child, table.stats.pv-stats th:first-child { text-align: left; white-space: normal; font-weight: 700; min-width: 120px; }
#parentView .pv-h.oz-baslik { display: flex; align-items: center; gap: 10px; margin: 26px 0 8px; padding: 0 0 8px; border-bottom: 2px solid #E6EAF2; font-size: 16px; font-weight: 800; letter-spacing: .05em; text-transform: none; color: #1F2A44; }
#parentView .pv-h.oz-baslik::before { content: ""; width: 6px; height: 20px; border-radius: 3px; background: var(--oz, #8A93A6); flex: none; }
#parentView .oz-destek { --oz: #FF6F59; }
/* Konular sekmesi: beceri satırları */
table.stats.pv-stats tr.pv-sub.bc-sub td:first-child { padding-left: 26px; font-weight: 500; }
table.stats.pv-stats tr.pv-sub.bc-tur td:first-child { padding-left: 52px; }
table.stats.pv-stats tr.bc-tur td { background: #FBFCFE; }
table.stats.pv-stats tr.bc-sev td:first-child { padding-left: 22px; }
table.stats.pv-stats .bc-dy { font-size: 0.86rem; text-align: right; }
table.stats.pv-stats .bc-yok { color: #8A93A6; font-weight: 600; }
table.stats.pv-stats .bc-zor { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: #FFE6E0; color: #C2412A; font-size: 11px; font-weight: 800; vertical-align: 1px; }
table.stats.pv-stats tr.bc-not td { background: var(--bg); font-size: 0.82rem; color: #8A93A6; font-weight: 500; padding-left: 26px; text-align: left; }
table.stats.pv-stats tr.bc-kagit td { background: #F7F9FC; padding: 10px 12px 12px 26px; text-align: left; }
.bc-kagit-ic { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: #56617A; font-weight: 500; }
.bc-kagit-ic b { color: #1F2A44; }
.bc-btn { height: 40px; padding: 0 16px; border-radius: 12px; border: none; background: #1F2A44; color: #FFFFFF; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.bc-btn:hover { background: #2C3A5C; }
table.stats.pv-stats tr.pv-grp { cursor: pointer; }
table.stats.pv-stats tr.pv-grp td:first-child::before { content: "▸ "; color: var(--leaf); }
table.stats.pv-stats tr.pv-grp.open td:first-child::before { content: "▾ "; }
table.stats.pv-stats tr.pv-sub td { background: var(--bg); }
table.stats.pv-stats tr.pv-sub td:first-child { padding-left: 22px; font-weight: 500; }
.pv-more { display: block; width: 100%; margin-top: 6px; font-family: 'Karla', sans-serif; font-size: 0.85rem; font-weight: 700; color: var(--sky-dark); background: none; border: 1px dashed var(--border); border-radius: 10px; padding: 10px; min-height: 42px; cursor: pointer; }
.pv-day { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 6px; overflow: hidden; }
.pv-day > button { display: flex; width: 100%; align-items: center; gap: 8px; font-family: 'Karla', sans-serif; font-size: 0.92rem; color: var(--ink); background: var(--bg-card); border: 0; padding: 10px 12px; min-height: 44px; cursor: pointer; text-align: left; }
.pv-day > button .nm { flex: 1; font-weight: 700; }
.pv-day > button::after { content: "▸"; color: var(--leaf); }
.pv-day.open > button::after { content: "▾"; }
.pv-day .det { display: none; padding: 8px 12px 10px; font-size: 0.86rem; color: var(--ink-soft); background: var(--bg); line-height: 1.6; }
.pv-day.open .det { display: block; }
.pv-details { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; }
.pv-details summary { cursor: pointer; font-weight: 700; font-size: 0.9rem; color: var(--ink-soft); min-height: 32px; }
.pv-details[open] summary { margin-bottom: 10px; }
.pv-pane.ws-card { margin-top: 0; }
.auth-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: var(--ink-soft); font-size: 0.82rem; font-weight: 700; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-google { display: flex; justify-content: center; min-height: 44px; }

/* Konular tablosu: oran henüz yoksa (10 sorudan az) üstüne gelince açıklama */
.pv-oransiz { cursor: help; }
/* ---- Giriş ekranı: tanıtım slaytları + giriş kartı ---- */
.auth-wrap { display: grid; gap: 16px; max-width: 440px; margin: 0 auto; }
.auth-wrap .auth-card { max-width: none; margin: 0; }
@media (min-width: 900px) { .auth-wrap { grid-template-columns: 1fr 1fr; max-width: 920px; align-items: center; } }
.intro { background: var(--bg-card); border: 1px solid var(--border); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.intro-slide { display: none; }
.intro-slide.on { display: block; }
.intro-slide h3 { font-family: 'Baloo 2', sans-serif; font-size: 1.15rem; color: var(--leaf-dark); margin: 12px 0 4px; }
.intro-slide p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; line-height: 1.45; min-height: 5.2em; }
.intro-art { background: var(--bg); border-radius: 16px; height: 168px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px; }
.ia-row { display: flex; align-items: center; gap: 8px; }
.ia-box { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; max-width: 124px; padding: 6px 8px; border: 2px solid var(--border); border-radius: 12px; background: var(--bg-card); }
.ia-box.dashed { border-style: dashed; }
.ia-box .obj { width: 24px; height: 24px; }
.ia-op { font-family: 'Baloo 2', sans-serif; font-size: 1.5rem; color: var(--apple-red-dark); }
.ia-eq { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.7rem; color: var(--ink); }
.ia-eq i { font-style: normal; color: var(--apple-red-dark); margin: 0 4px; }
.ia-eq u { text-decoration: none; color: var(--sky); }
.ia-story { font-weight: 700; font-size: 0.92rem; text-align: center; line-height: 1.4; }
.ia-story b { color: var(--sky-dark); }
.ia-badges { font-size: 2.6rem; letter-spacing: 10px; }
.ia-streak { font-weight: 700; color: var(--ink-soft); }
.ia-streak b { color: var(--leaf-dark); }
.ia-tiles { display: flex; gap: 8px; }
.ia-tiles span { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 6px 12px; text-align: center; }
.ia-tiles small { display: block; font-size: 0.72rem; font-weight: 700; color: var(--ink-soft); }
.ia-tiles b { font-family: 'Baloo 2', sans-serif; font-size: 1.2rem; }
.ia-tiles i { font-style: normal; } .ia-tiles .ok { color: var(--leaf-dark); } .ia-tiles .no { color: var(--apple-red-dark); }
.ia-pdf { font-weight: 700; font-size: 0.9rem; background: var(--leaf); color: #fff; border-radius: 10px; padding: 7px 14px; }
.intro-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; }
.intro-arrow { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border); background: var(--bg); color: var(--leaf-dark); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.intro-dots { display: flex; gap: 2px; }
.intro-dots button { width: 28px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; position: relative; }
.intro-dots button::after { content: ""; position: absolute; left: 9px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.intro-dots button.on::after { background: var(--leaf); }
.b-hint { font-family: 'Karla', sans-serif; font-size: 0.82rem; color: var(--ink-soft); text-align: center; line-height: 1.3; }
.answers.need-model button { opacity: 0.45; }

.problem { text-align: center; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 2.6rem; color: var(--ink); margin: 4px 0 20px; letter-spacing: 0.5px; }
.problem .op { color: var(--apple-red-dark); margin: 0 10px; }
.problem .q { color: var(--sky); }
.problem.text-problem .story-text { display: block; }
.problem.text-problem .question-text:first-child { margin-top: 0; }
.problem.text-problem .question-text { display: block; margin-top: 10px; color: var(--sky-dark); }
.problem.text-problem { font-family: 'Karla', sans-serif; font-weight: 700; font-size: 1.15rem; line-height: 1.55; text-align: left;  margin-top: 14px;}

.orchard .obj.alt { filter: hue-rotate(150deg) saturate(1.3); }
.speak-btn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-family: 'Karla', sans-serif; font-weight: 700; font-size: 0.88rem; color: var(--sky-dark);
  background: var(--bg); border: 2px solid var(--border); border-radius: 999px; padding: 7px 14px; cursor: pointer;
}
.instruction .ins-text { flex: 1 1 auto; min-width: 0; }
.speak-btn.ins-speak { margin-top: 0; flex: none; padding: 5px 12px; font-size: 0.84rem; background: var(--bg-card); white-space: nowrap; }
.speak-btn:active { transform: scale(0.96); }
.speak-btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.method-hint {
  text-align: center; font-family: 'Karla', sans-serif; font-size: 0.88rem; color: var(--sky-dark);
  background: color-mix(in srgb, var(--sky) 10%, var(--bg-card));
  background: var(--bg); border: 1px dashed var(--border); border-radius: 12px;
  padding: 10px 14px; margin: -6px 0 16px; line-height: 1.5;
}

.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.answers button {
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.6rem; color: var(--ink);
  background: var(--bg); border: 2px solid var(--border); border-radius: 16px; padding: 16px 8px; cursor: pointer;
  transition: transform 0.08s ease, border-color 0.15s ease, background 0.15s ease;
}
.answers button:active { transform: scale(0.96); }
.answers button:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.answers button.correct { background: var(--leaf); border-color: var(--leaf-dark); color: #fff; animation: pop-in 0.3s ease; }
.answers button.incorrect { background: var(--amber-soft); border-color: var(--sun); color: var(--amber-ink); animation: shake 0.35s ease; }
.answers button[disabled] { cursor: default; }

.feedback { min-height: 26px; text-align: center; font-weight: 700; font-size: 1.02rem; margin-bottom: 14px; }
.feedback.good { color: var(--leaf-dark); }
.feedback.hmm { color: var(--amber-ink); }
/* Telefonda hikâyeli problemler: dört sayı şıkkı tek sırada, hikâye biraz daha sıkı; model ve şıklar kaydırmadan sığsın */
@media (max-width: 620px) {
  .problem.text-problem { margin-top: 2px; margin-bottom: 10px; line-height: 1.4; }
  .problem.text-problem ~ .answers:has(> button:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .problem.text-problem ~ .answers:has(> button:nth-child(4):last-child) button { padding: 8px 2px; min-height: 56px; }
}
@media (max-width: 620px) { .problem.text-problem { font-size: 1.08rem; line-height: 1.35; } }
/* ---- Nesne Sayısı Belirleme (K.1) ---- */
.obj { width: 44px; height: 44px; display: block; flex: none; }
.obj-mini { width: 1.5em; height: 1.5em; display: inline-block; vertical-align: -0.3em; }
.topic-btn .ico { display: inline-flex; align-items: center; }
.topic-btn .ico .obj-mini { width: 1.7rem; height: 1.7rem; vertical-align: middle; }

.instruction {
  display: flex; gap: 10px; align-items: flex-start; background: var(--bg);
  border: 1px dashed var(--border); border-radius: 14px; padding: 10px 12px; margin: 4px 0 14px;
  font-family: 'Karla', sans-serif; font-weight: 700; font-size: 1rem; line-height: 1.4; color: var(--ink);
}
.instruction .ins-code {
  font-size: 0.7rem; font-weight: 800; color: var(--sky-dark); background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; white-space: nowrap; margin-top: 2px;
}
.exercise { margin-bottom: 14px; }
/* ---- 1. Sınıf: Uzamsal İlişkiler ---- */
.uz-scene {
  position: relative; width: 100%; max-width: 470px; aspect-ratio: 360 / 230; margin: 4px auto 14px;
  border: 2px solid var(--border); border-radius: 18px; overflow: hidden; background: #f6ecd6;
  user-select: none; -webkit-user-select: none;
}
.uz-layer { position: absolute; inset: 0; pointer-events: none; }
.uz-layer svg { display: block; width: 100%; height: 100%; }
.uz-item {
  position: absolute; aspect-ratio: 1; padding: 0; margin: 0; border: none; background: transparent;
  border-radius: 50%; cursor: pointer; transition: transform 0.12s ease;
}
.uz-item .obj { display: block; width: 100%; height: 100%; pointer-events: none; }
.uz-item:not([disabled]):hover { transform: scale(1.08); }
.uz-item:not([disabled]):active { transform: scale(0.95); }
.uz-item:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.uz-item[disabled] { cursor: default; }
.uz-item.ok { box-shadow: 0 0 0 4px #3f9a5a, 0 0 0 8px rgba(63, 154, 90, 0.28); background: rgba(255, 255, 255, 0.55); }
.uz-item.bad { box-shadow: 0 0 0 4px #E5484D, 0 0 0 8px rgba(229, 72, 77, 0.25); background: rgba(255, 255, 255, 0.55); }
.uz-options { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 4px; }
.uz-opt {
  flex: 1 1 120px; max-width: 200px; min-height: 56px; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.2rem;
  color: var(--ink); background: var(--bg); border: 2px solid var(--border); border-radius: 16px; cursor: pointer; padding: 8px 12px;
}
.uz-opt:not([disabled]):hover { border-color: var(--leaf); }
.uz-opt:active { transform: scale(0.97); }
.uz-opt.ok { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.uz-opt.bad { background: rgba(229, 72, 77, 0.13); border-color: #E5484D; color: #B42318; } /* yanlış seçenek: açık kırmızı (kullanıcının isteği) */
.uz-optwrap { display: flex; align-items: center; gap: 6px; flex: 1 1 170px; max-width: 250px; }
.uz-optwrap .uz-opt { flex: 1 1 auto; max-width: none; }
.uz-spk {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--border); background: var(--bg-card);
  color: var(--sky-dark); font-size: 1.15rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.uz-spk:hover { border-color: var(--sky); }
.uz-spk:active { transform: scale(0.94); }
.uz-spk:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.uz-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 6px; }
.uz-pics.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 620px) { .uz-pics, .uz-pics.three { grid-template-columns: 1fr; max-width: 300px; margin-left: auto; margin-right: auto; } }
.uz-pic { border: 4px solid transparent; border-radius: 22px; padding: 2px; cursor: pointer; transition: transform 0.12s ease; }
.uz-pic .uz-scene { margin: 0; max-width: none; pointer-events: none; }
.uz-pic:not(.done):hover { border-color: var(--sky); transform: translateY(-2px); }
.uz-pic:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.uz-pic.done { cursor: default; }
.uz-pic.ok { border-color: #3f9a5a; background: rgba(63, 154, 90, 0.12); }
.uz-pic.bad { border-color: #E5484D; background: rgba(229, 72, 77, 0.12); }
.uz-zone {
  position: absolute; aspect-ratio: 1; border: 2.5px dashed #2f6f95; border-radius: 14px;
  background: rgba(255, 255, 255, 0.55); display: flex; align-items: center; justify-content: center;
}
.uz-armed .uz-zone { cursor: pointer; background: rgba(255, 255, 255, 0.8); }
.uz-zone.over { background: #fff3c4; border-style: solid; }
.uz-zone.ok { border: 3px solid #3f9a5a; background: rgba(214, 240, 220, 0.85); }
.uz-zone.bad { border: 3px solid #E5484D; background: rgba(229, 72, 77, 0.12); }
.uz-zone.hint { border: 3px solid #3f9a5a; background: rgba(214, 240, 220, 0.85); animation: uz-pulse 0.9s ease 2; }
@keyframes uz-pulse { 50% { transform: scale(1.12); } }
.uz-tray {
  display: flex; gap: 14px; justify-content: center; align-items: center; min-height: 76px; padding: 8px;
  background: var(--bg); border: 1px dashed var(--border); border-radius: 14px; max-width: 470px; margin: 0 auto;
}
.uz-tray:empty::before { content: 'Yerini değiştirmek için nesneyi yeniden sürükle'; color: var(--ink-soft); font-size: 0.82rem; font-family: 'Karla', sans-serif; font-weight: 600; text-align: center; }
.uz-piece { width: 58px; height: 58px; touch-action: none; cursor: grab; border-radius: 12px; user-select: none; -webkit-user-select: none; }
.uz-piece .obj { display: block; width: 100%; height: 100%; pointer-events: none; }
.uz-piece.dragging { opacity: 0.25; }
.uz-piece.selected { box-shadow: 0 0 0 3px var(--sky); background: rgba(255, 255, 255, 0.7); }
.uz-piece:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.uz-zone .uz-piece { width: 100%; height: 100%; }
/* ---- 1. Sınıf: Sıra Sayıları ---- */
/* resim büyük, cevap alanı küçük: geniş ekranda resim solda geniş yer tutar, cevaplar sağda dar bir sütunda durur */
.ss-scene { flex: none; width: 100%; max-width: 440px; margin: 0; }
.ss-scene.ss-wide { max-width: 470px; }
.ss-lay .cz-side { max-width: 300px; }
.ss-lay .cz-line { padding: 6px 8px; gap: 6px 7px; margin-bottom: 8px; }
.ss-lay .cz-line .cz-word { font-size: 0.98rem; }
.ss-lay .cz-line .numbox { min-width: 46px; height: 40px; font-size: 1.35rem; border-radius: 11px; }
.ss-lay .keypad { gap: 5px; margin-bottom: 7px; max-width: 250px; }
.ss-lay .keypad button { padding: 6px 0; font-size: 1.05rem; border-radius: 10px; min-height: 36px; }
.ss-lay .check-row { max-width: 250px; gap: 6px; }
.ss-lay .check-row button { padding: 8px 12px; font-size: 0.9rem; border-radius: 11px; }
.ss-lay .uz-options { flex-direction: column; align-items: stretch; gap: 7px; }
.ss-lay .uz-optwrap { flex: none; max-width: none; }
.ss-lay .uz-opt { min-height: 42px; font-size: 1.02rem; padding: 5px 10px; border-radius: 12px; }
.ss-lay .uz-spk { width: 38px; height: 38px; font-size: 1rem; }
.ss-lay .uz-tray { min-height: 58px; padding: 5px; }
.ss-lay .uz-piece { width: 48px; height: 48px; }
.ss-lay .uz-zone .uz-piece { width: 100%; height: 100%; }
@media (min-width: 760px) {
  .ss-lay { gap: 20px; align-items: center; }
  .ss-lay .ss-scene { flex: 0 0 440px; width: 440px; }
  .ss-lay .ss-scene.ss-wide { flex-basis: 470px; width: 470px; }
  .ss-lay .cz-side { flex: 0 1 250px; max-width: 250px; }
}
.cz-side .uz-options { margin-top: 0; }
.cz-side .uz-tray { min-height: 70px; }
.nt-wait { visibility: hidden; }
.nt-cover { position: absolute; z-index: 6; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(90deg, #c94f43 0 14px, #b8443a 14px 28px); box-shadow: inset 0 -10px 0 rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.18);
}
.nt-cover.nt-drop { animation: ntDrop .45s ease-out; }
.nt-cover.nt-open { visibility: hidden; }
.nt-show { font: inherit; font-weight: 800; font-size: 1.05rem; padding: 10px 18px; border-radius: 999px; border: 3px solid #fff; background: #3f9a5a; color: #fff; cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.nt-show:hover { background: #358a4d; }
.nt-cover span { background: #fff; color: #9c2f26; font-weight: 800; padding: 6px 14px; border-radius: 999px; font-size: 1.05rem; box-shadow: 0 2px 4px rgba(0,0,0,.15); }
@keyframes ntDrop { from { transform: scaleY(0); transform-origin: top; } to { transform: scaleY(1); transform-origin: top; } }
.nt-timer { position: absolute; z-index: 6; left: 4%; right: 4%; bottom: 3%; height: 7px; border-radius: 4px; background: #e2483d; transform-origin: left; animation-name: ntShrink; animation-timing-function: linear; animation-fill-mode: forwards; opacity: .85; }
@keyframes ntShrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.ss-hit { position: absolute; z-index: 4; padding: 0; margin: 0; border: none; background: transparent; border-radius: 10px; cursor: pointer; }
.ss-hit:not([disabled]):hover { box-shadow: 0 0 0 3px rgba(47, 111, 149, 0.55); background: rgba(255, 255, 255, 0.25); }
.ss-hit:focus-visible { outline: 3px solid var(--sky); outline-offset: 1px; }
.ss-hit[disabled] { cursor: default; }
.ol-badge { position: absolute; z-index: 5; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: #2f6f95; border-radius: 6px; font-size: clamp(12px, 2.2vw, 18px); pointer-events: none; }
.ol-badge.ok { background: #3f9a5a; }
.ol-badge.bad { background: #c0392b; }
.ss-hit.ol-picked { box-shadow: 0 0 0 3px rgba(47, 111, 149, 0.45); }
.ol-hint { font-size: 16px; line-height: 1.4; color: #4a3b2a; margin: 4px 0 12px; }
.ol-reset { font: inherit; font-weight: 700; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 2px solid #2f6f95; background: #fff; color: #1f4c80; cursor: pointer; }
.ol-reset:hover { background: #eef6fb; }
.ss-hit.ok { box-shadow: 0 0 0 4px #3f9a5a, 0 0 0 8px rgba(63, 154, 90, 0.28); background: rgba(214, 240, 220, 0.35); }
.ss-hit.bad { box-shadow: 0 0 0 4px #E5484D, 0 0 0 8px rgba(229, 72, 77, 0.25); background: rgba(229, 72, 77, 0.12); }
.ss-zone { aspect-ratio: auto; border-color: transparent; background: transparent; z-index: 4; }
.uz-armed .ss-zone { background: rgba(255, 243, 196, 0.55); }
.ss-zone.over { background: #fff3c4; }
/* ---- 1. Sınıf: Sayıları Çözümleme ---- */
.cz-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin: 6px auto 14px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; max-width: 470px; }
.cz-line .cz-br { flex-basis: 100%; height: 0; }
/* Adımlar yan yana: her grup bölünmez; gruplar arasında ince ayraç */
.cz-line.cz-gruplu { max-width: 100%; column-gap: 0; row-gap: 10px; }
.cz-line .cz-grup { display: inline-flex; align-items: center; gap: 8px 10px; flex-wrap: nowrap; white-space: nowrap; padding: 0 16px; }
.cz-line .cz-grup + .cz-grup { border-left: 2px solid var(--border); }
.cz-line .cz-word { font-family: 'Karla', sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.cz-line .cz-num { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.7rem; color: var(--sky-dark); }
.cz-line .numbox { min-width: 58px; height: 50px; font-size: 1.7rem; padding: 0 10px; border-radius: 14px; cursor: pointer; }
.cz-lay { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cz-side { width: 100%; max-width: 380px; min-width: 0; }
.cz-scene { flex: none; width: 150px; max-width: 150px; aspect-ratio: 140 / 176; margin: 0; border-width: 1.5px; border-radius: 14px; }
.cz-scene .uz-layer svg { width: 100%; height: 100%; }
.cz-pics { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 6px; }
.cz-pics .uz-pic { width: 150px; border-radius: 18px; }
.cz-pics .cz-scene { width: 100%; max-width: none; pointer-events: none; }
.cz-build { display: grid; grid-template-columns: 1fr; gap: 4px 16px; }
.cz-compact .target-number { margin: 0 auto 2px; line-height: 1.1; }
.cz-compact .mascot-row svg { width: 36px; height: 36px; }
main.card.cz-compact { padding-top: 14px; padding-bottom: 14px; }
.cz-compact .feedback { min-height: 22px; margin-bottom: 8px; }
.cz-compact .exercise { margin-bottom: 8px; }
.cz-compact .instruction { margin-bottom: 10px; }
.cz-compact .cz-line { margin: 0 auto 10px; }
@media (min-width: 760px) {
  .cz-lay { flex-direction: row; justify-content: center; gap: 30px; }
  .cz-side { flex: 0 1 360px; width: auto; }
  .cz-build { grid-template-columns: 1fr 1fr; }
}
.cz-dz { align-items: flex-end; align-content: flex-end; gap: 8px; min-height: 136px; }
.dz-item.cz-p-ten { width: 24px; height: 122px; display: flex; align-items: flex-end; justify-content: center; }
.dz-item.cz-p-one { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.cz-ten { display: block; width: 18px; height: 120px; border: 1.5px solid #255a96; border-radius: 3px; pointer-events: none;
  background: repeating-linear-gradient(to bottom, #4d8fdc 0, #4d8fdc 10.5px, #255a96 10.5px, #255a96 12px); }
.cz-one { display: block; width: 18px; height: 18px; border: 1.5px solid #a87a10; border-radius: 3px; background: #f2b632; pointer-events: none; }
.dz-ghost .cz-ten, .dz-ghost .cz-one { margin: 0 auto; }
/* ---- 1. Sınıf: Eş Nesneler ---- */
.es-item { border-radius: 14px; }
.es-item[disabled] { opacity: 1; }
.es-item.es-sel { box-shadow: 0 0 0 4px #2f6f95, 0 0 0 8px rgba(47, 111, 149, 0.25); background: rgba(255, 255, 255, 0.6); }
.es-item.es-m1, .es-item.es-h1 { box-shadow: 0 0 0 4px #3f9a5a; background: rgba(255, 255, 255, 0.6); }
.es-item.es-m2, .es-item.es-h2 { box-shadow: 0 0 0 4px #2f6f95; background: rgba(255, 255, 255, 0.6); }
.es-item.es-m3, .es-item.es-h3 { box-shadow: 0 0 0 4px #8b5fcb; background: rgba(255, 255, 255, 0.6); }
.es-zone { border-color: transparent; background: transparent; }
.es-zone.over { background: rgba(255, 243, 196, 0.8); border-color: transparent; }
.es-zone.ok, .es-zone.bad { border-radius: 14%; }
.uz-armed .es-zone { background: rgba(255, 243, 196, 0.5); }
.es-tray { gap: 10px; flex-wrap: wrap; min-height: 86px; }
.es-tray:empty::before { content: ''; }
.es-piece { width: 64px; height: 64px; }
.es-piece.small { width: 40px; height: 40px; }
.uz-zone .es-piece { width: 86%; height: 86%; }
.uz-zone .es-piece.small { width: 53%; height: 53%; }
.es-piece.es-right { box-shadow: 0 0 0 4px #3f9a5a; background: rgba(214, 240, 220, 0.85); }
.uz-options.col { flex-direction: column; align-items: center; flex-wrap: nowrap; }
.uz-options.col .uz-optwrap { flex: none; width: 100%; max-width: 340px; }

.nudge { animation: shake 0.35s ease; }

.count-group { display: grid; grid-template-columns: repeat(5, 50px); gap: 6px; justify-content: center; margin: 6px auto 16px; }
.count-group .obj { width: 50px; height: 50px; }

.answer-row { display: flex; justify-content: center; margin-bottom: 14px; }
.numbox {
  min-width: 84px; height: 64px; border: 3px solid var(--border); border-radius: 16px; background: var(--bg);
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 2.2rem; color: var(--ink);
  display: flex; align-items: center; justify-content: center; padding: 0 16px;
}
.numbox.empty { color: var(--ink-soft); }
.numbox.active { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(62, 110, 142, 0.22); }
.numbox.ok { border-color: #3BA55C; background: rgba(59, 165, 92, 0.15); color: #2F7A44; } /* doğru: açık yeşil (kullanıcının isteği; temadan bağımsız, yanlışın kehribarından ayrılsın) */
.numbox.bad { border-color: #E5484D; background: rgba(229, 72, 77, 0.13); color: #B42318; } /* yanlış: açık kırmızı (kullanıcının isteği) */

.keypad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 340px; margin: 0 auto 10px; }
.keypad button {
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.4rem; padding: 8px 0; border-radius: 12px;
  border: 2px solid var(--border); background: var(--bg); color: var(--ink); cursor: pointer;
}
.keypad button:active { transform: scale(0.95); }
.keypad button[disabled], .check-row button[disabled] { opacity: 0.5; cursor: default; }
.check-row { display: flex; gap: 8px; max-width: 340px; margin: 0 auto; }
.btn-check {
  flex: 1; background: var(--leaf); color: #fff; border: none; border-radius: 14px; padding: 13px 18px;
  font-family: 'Karla', sans-serif; font-weight: 800; font-size: 1rem; cursor: pointer;
}
.btn-erase {
  background: var(--bg-card); color: var(--ink-soft); border: 2px solid var(--border); border-radius: 14px;
  padding: 12px 18px; font-family: 'Karla', sans-serif; font-weight: 700; font-size: 0.95rem; cursor: pointer;
}

/* Karışık nesneler: türler karışık ama düzenli sıralar hâlinde (satırda en çok 10), boş hücre yok — az yer kaplar */
.scatter {
  display: grid; grid-template-columns: repeat(var(--cols, 10), minmax(0, 38px)); gap: 4px; justify-content: center;
  width: fit-content; max-width: 100%; margin: 4px auto 12px;
  padding: 0;
}
.scatter .cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.scatter .cell .obj { width: 100%; height: 100%; }
/* Sayılacak nesneler çerçevede, cevap kutuları ayrı etiketli şeritte: öğrenci cevap için konulan nesneyi saymasın */
.scatter.framed { border: 2.5px solid var(--leaf); border-radius: 16px; padding: 8px; background: var(--bg-card); }
.k12-rows { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: center; margin: 26px auto 12px; position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 8px 10px; }
.k12-rows::before { content: "Cevabını buraya yaz"; position: absolute; top: -19px; left: 6px; font-family: 'Karla', sans-serif; font-size: 0.76rem; font-weight: 700; color: var(--ink-soft); }
.k12-row { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.k12-row .obj { width: 38px; height: 38px; }
.k12-row .numbox { min-width: 58px; height: 50px; font-size: 1.7rem; padding: 0 10px; border-radius: 14px; }

.target-number {
  text-align: center; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 3.2rem; line-height: 1;
  color: var(--sky-dark); margin: 2px 0 6px;
}
.dz-label { font-family: 'Karla', sans-serif; font-weight: 800; font-size: 0.78rem; color: var(--ink-soft); margin: 8px 2px 4px; }
.dz { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-radius: 16px; min-height: 60px; align-content: flex-start; }
.dz-source { background: var(--bg); border: 1px dashed var(--border); }
.dz-target { background: var(--bg-card); border: 2px dashed var(--leaf); min-height: 116px; }
.dz-target:empty::before { content: 'Nesneleri buraya sürükle'; color: var(--ink-soft); font-size: 0.85rem; font-family: 'Karla', sans-serif; font-weight: 600; margin: auto; }
.dz-target.over { background: var(--amber-soft); border-style: solid; }
.dz-target.ok { border-color: var(--leaf); border-style: solid; background: var(--bg); }
.dz-target.bad { border-color: #E5484D; border-style: solid; }
.dz-item { width: 40px; height: 40px; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; border-radius: 8px; }
.dz-item:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.dz-item .obj { width: 40px; height: 40px; pointer-events: none; }
.dz-item.dragging { opacity: 0.25; }
.dz-ghost {
  position: fixed; z-index: 1000; width: 54px; height: 54px; pointer-events: none;
  transform: translate(-50%, -50%) scale(1.12); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.28));
}
.dz-ghost .obj { width: 100%; height: 100%; }

/* ---- Ritmik Sayma (K.2): sayıları sürükleyerek/dokunarak sırala ---- */
.seq-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 4px 0 10px; touch-action: none; }
.seq-source { min-height: 62px; padding: 6px 0; align-items: center; }
.slot-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 12px 0 10px; }
.slot {
  width: 64px; height: 64px; border: 3px dashed var(--border); border-radius: 16px; background: var(--bg);
  display: flex; align-items: center; justify-content: center; transition: border-color 0.12s ease, transform 0.08s ease;
}
.slot.over { border-color: var(--leaf); border-style: solid; transform: scale(1.06); }
.slot .chip { box-shadow: none; }
.seq-small .chip { min-width: 46px; height: 46px; padding: 0 8px; font-size: 1.15rem; border-radius: 12px; }
.seq-small.seq-row, .seq-small.slot-row { gap: 6px; }
.seq-small .slot { width: 52px; height: 52px; border-radius: 13px; }
.seq-source.seq-small { min-height: 52px; }
.reorder-hint { text-align: center; font-family: 'Karla', sans-serif; font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 16px; }
.chip {
  min-width: 56px; height: 56px; padding: 0 12px; border-radius: 14px; border: 3px solid var(--border);
  background: var(--bg-card); font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.3rem;
  color: var(--ink); cursor: grab; box-shadow: var(--shadow); touch-action: none; user-select: none; -webkit-user-select: none;
  transition: border-color 0.12s ease, transform 0.08s ease;
}
.chip:active { cursor: grabbing; }
.chip.selected { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(62, 110, 142, 0.22); }
.chip.drop-target { border-color: var(--leaf); transform: scale(1.08); }
.chip.dragging-chip { opacity: 0.3; }
.chip.ok { border-color: var(--leaf-dark); background: var(--leaf); color: #fff; cursor: default; }
.chip.bad { border-color: #E5484D; background: rgba(229, 72, 77, 0.13); color: #B42318; cursor: default; }
.chip-ghost {
  position: fixed; z-index: 1000; pointer-events: none; transform: translate(-50%, -50%) scale(1.12);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
}

.progress-row { display: flex; align-items: center; gap: 10px; }

.mastery-banner {
  position: absolute; z-index: 20; left: 14px; right: 14px; top: 0; bottom: 0; margin: auto 0; height: max-content;
  text-align: center; background: var(--amber-soft); border: 2px solid var(--sun);
  border-radius: 18px; padding: 18px 16px; animation: pop-in 0.4s ease;
  box-shadow: 0 14px 34px rgba(43, 42, 37, 0.25);
}
.mastery-icon { font-size: 2.2rem; line-height: 1; margin-bottom: 6px; }
.mastery-title { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--amber-ink); margin-bottom: 4px; }
.mastery-sub { font-family: 'Karla', sans-serif; font-size: 0.9rem; color: var(--amber-ink); margin-bottom: 14px; opacity: 0.9; }
.mastery-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.mastery-actions button {
  font-family: 'Karla', sans-serif; font-weight: 700; font-size: 0.9rem;
  border: none; border-radius: 12px; padding: 11px 18px; cursor: pointer;
}
.mastery-actions .btn-advance { background: var(--leaf); color: #fff; }
.mastery-actions .btn-stay { background: var(--bg-card); color: var(--ink-soft); border: 1px solid var(--border); }
.dots { display: flex; gap: 5px; flex: 1; }
.dots span { flex: 1; height: 8px; border-radius: 999px; background: var(--border); }
.dots span.filled { background: var(--sun); }

footer { text-align: center; color: var(--ink-soft); font-size: 0.8rem; margin-top: 20px; }

/* Giriş / kayıt */
.auth-card { max-width: 440px; margin: 0 auto; }
.auth-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; font-weight: 700; font-size: 0.85rem; color: var(--ink-soft); }
.auth-field input {
  font-family: 'Karla', sans-serif; font-weight: 600; font-size: 1.05rem; padding: 11px 12px; width: 100%;
  border-radius: 12px; border: 2px solid var(--border); background: var(--bg); color: var(--ink);
}
.auth-field input:focus-visible { outline: 3px solid var(--sky); outline-offset: 1px; }
.auth-ok { color: var(--leaf-dark); font-size: 0.88rem; font-weight: 700; line-height: 1.45; margin-bottom: 10px; }
.auth-submit { width: 100%; padding: 13px 18px; font-size: 1rem; }
.auth-links { display: flex; flex-wrap: wrap; gap: 2px 14px; justify-content: center; margin-top: 12px; }
.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: 1 1 100%; min-width: 0; }
.acct-name { font-weight: 700; font-size: 0.88rem; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
/* Telefonda rakam tuşları iki sıra: 1–5 ve 6–0; “Sil” ve “Kontrol Et” sağ sütunda. Böylece tuş takımı ~90 px daha az yer kaplar
   ve model, işlem ve tuşlar kaydırmadan ekrana sığar. */
@media (max-width: 620px) {
  .keypad-wrap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 2fr); gap: 6px; max-width: 360px; margin: 0 auto; }
  .keypad-wrap .keypad, .keypad-wrap .check-row { display: contents; }
  .keypad-wrap .keypad button { min-height: 46px; padding: 0; font-size: 1.35rem; }
  .keypad-wrap .check-row button { min-height: 46px; padding: 0 4px; border-radius: 12px; font-size: .9rem; line-height: 1.1; }
  .keypad-wrap .btn-erase { grid-column: 6; grid-row: 1; }
  .keypad-wrap .btn-check { grid-column: 6; grid-row: 2; }
}
@media (max-width: 620px) { .uz-options.col { gap: 8px; } .uz-options.col .uz-opt { min-height: 46px; padding: 6px 10px; font-size: 1.1rem; line-height: 1.2; } }
@media (max-width: 620px) { .uz-pics.three { max-width: 230px; gap: 8px; } }
@media (max-width: 620px) { .uz-options.uzun { flex-direction: column; align-items: center; flex-wrap: nowrap; gap: 8px; } .uz-options.uzun .uz-optwrap { flex: none; width: 100%; max-width: 340px; } .uz-options.uzun .uz-opt { min-height: 46px; padding: 6px 10px; font-size: 1.1rem; line-height: 1.2; } }
@media (max-width: 480px) { .dz > .dz-item:not(.tb-p-onluk):not(.tb-p-birlik):not(.sy-p-onluk):not(.sy-p-birlik) { width: 34px; height: 34px; } .dz.dz-target { min-height: 96px; } }
@media (max-width: 620px) { .uz-options.kisa { flex-wrap: nowrap; gap: 8px; } .uz-options.kisa .uz-optwrap { flex: 1 1 0; min-width: 0; max-width: none; } .uz-options.kisa .uz-opt { padding: 8px 4px; min-width: 0; } }
/* koyu temada doğru kutunun yazısı açık yeşil, yanlışınki açık kırmızı */
:root[data-theme="dark"] .numbox.ok, :root[data-theme="dark"] .yn-line .numbox.yn-isaret.ok { color: #8FD3A3; }
:root[data-theme="dark"] .numbox.bad, :root[data-theme="dark"] .uz-opt.bad, :root[data-theme="dark"] .yn-line .numbox.yn-isaret.bad { color: #F4A3A6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .numbox.ok, :root:not([data-theme="light"]) .yn-line .numbox.yn-isaret.ok { color: #8FD3A3; }
  :root:not([data-theme="light"]) .numbox.bad, :root:not([data-theme="light"]) .uz-opt.bad, :root:not([data-theme="light"]) .yn-line .numbox.yn-isaret.bad { color: #F4A3A6; }
}
/* ---- Ödül kutlaması (yıldız / madalya / kupa): yalnızca soru kartının içinde açılır ---- */
.reward-overlay {
  position: absolute; inset: 0; z-index: 40; border-radius: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 18px 16px; text-align: center; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #4a3a14, #16180f 70%);
  animation: reward-fade 0.35s ease;
}
.reward-rays {
  position: absolute; left: 50%; top: 42%; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax; pointer-events: none;
  background: repeating-conic-gradient(rgba(255, 214, 110, 0.20) 0deg 10deg, rgba(255, 214, 110, 0) 10deg 20deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, transparent 60%); mask-image: radial-gradient(circle, #000 0, transparent 60%);
  animation: reward-spin 18s linear infinite;
}
.reward-stage { position: relative; width: min(44vw, 190px); height: min(44vw, 190px); flex: none; display: flex; align-items: center; justify-content: center; }
.reward-glow {
  position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 140, 0.95), rgba(255, 190, 70, 0.35) 55%, rgba(255, 190, 70, 0) 72%);
  animation: reward-pulse 1.6s ease-in-out infinite;
}
.reward-icon {
  position: relative; font-size: min(28vw, 120px); line-height: 1; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
  animation: reward-pop 0.9s cubic-bezier(0.2, 1.5, 0.4, 1) both, reward-float 2.4s ease-in-out 0.9s infinite;
}
.reward-spark {
  position: absolute; left: 50%; top: 50%; font-size: 1.5rem; color: #ffe08a; pointer-events: none; opacity: 0;
  animation: reward-spark 1.5s ease-out infinite;
}
.reward-kicker {
  position: relative; font-family: 'Karla', sans-serif; font-weight: 800; font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #ffd978; animation: reward-rise 0.5s ease 0.35s both;
}
.reward-title {
  position: relative; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: clamp(1.6rem, 5.5vw, 2.3rem); line-height: 1.1; color: #fff;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); text-wrap: balance; animation: reward-rise 0.5s ease 0.5s both;
}
.reward-sub {
  position: relative; font-family: 'Karla', sans-serif; font-weight: 600; font-size: 0.98rem; line-height: 1.4; color: #f3ecd6; max-width: 30ch;
  animation: reward-rise 0.5s ease 0.65s both;
}
.reward-btn {
  position: relative; margin-top: 10px; font-family: 'Karla', sans-serif; font-weight: 800; font-size: 1.05rem; color: #3a2a05;
  background: linear-gradient(#ffe08a, #f2b43a); border: none; border-radius: 999px; padding: 12px 30px; cursor: pointer;
  box-shadow: 0 6px 0 #b9831f, 0 12px 22px rgba(0, 0, 0, 0.35); animation: reward-rise 0.5s ease 1.1s both;
}
.reward-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #b9831f, 0 6px 12px rgba(0, 0, 0, 0.35); }
.reward-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@keyframes reward-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes reward-spin { to { transform: rotate(360deg); } }
@keyframes reward-pulse { 0%, 100% { transform: scale(0.92); opacity: 0.75; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes reward-pop { 0% { transform: scale(0) rotate(-200deg); opacity: 0; } 70% { transform: scale(1.2) rotate(12deg); opacity: 1; } 100% { transform: scale(1) rotate(0deg); } }
@keyframes reward-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
@keyframes reward-spark {
  0% { transform: translate(-50%, -50%) rotate(var(--a)) translateY(-20px) scale(0.3); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * min(32vw, 140px))) scale(1.1); opacity: 0; }
}
@keyframes reward-rise { from { transform: translateY(18px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .reward-rays, .reward-glow, .reward-spark { animation: none; }
  .reward-icon { animation: reward-fade 0.3s ease both; }
}

/* Ödüle göre kutlama: yıldız = uzay, madalya = hazine, kupa = ışık hüzmeleri (yukarıdaki varsayılan) */
.reward-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.reward-overlay.rw-space .reward-rays, .reward-overlay.rw-space .reward-glow, .reward-overlay.rw-space #rewardSparks,
.reward-overlay.rw-treasure .reward-rays, .reward-overlay.rw-treasure .reward-glow, .reward-overlay.rw-treasure #rewardSparks { display: none; }

.reward-overlay.rw-space { background: radial-gradient(circle at 50% 40%, #4b2a8a, #1b103f 55%, #080516); }
.rw-space .reward-kicker { color: #c9b3ff; }
.rw-space .reward-sub { color: #e6dcff; }
.rw-space .reward-btn { color: #1b103f; background: linear-gradient(#e7dcff, #b79cff); box-shadow: 0 6px 0 #6f52c4, 0 12px 22px rgba(0, 0, 0, 0.35); }
.rw-space .reward-btn:active { box-shadow: 0 2px 0 #6f52c4, 0 6px 12px rgba(0, 0, 0, 0.35); }
.rw-space .reward-icon { animation: rw-zoom 1s cubic-bezier(0.2, 0.9, 0.3, 1.2) both, rw-orbit 3.2s ease-in-out 1s infinite; }
.rw-ring { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; border-radius: 50%; border: 4px solid rgba(220, 200, 255, 0.9); opacity: 0; animation: rw-ring 1.6s ease-out 0.55s infinite; }
.rw-ring.r2 { animation-delay: 1.1s; }
.rw-tw { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; animation: rw-tw 1.8s ease-in-out infinite; }
.rw-shoot { position: absolute; width: 120px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff); animation: rw-shoot 1.2s ease-in forwards; }
@keyframes rw-zoom { 0% { transform: scale(9); opacity: 0; filter: blur(14px); } 60% { transform: scale(0.85); opacity: 1; filter: blur(0) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)); } 100% { transform: scale(1); } }
@keyframes rw-orbit { 0%, 100% { transform: translate(0, 0) rotate(-3deg); } 25% { transform: translate(8px, -8px) rotate(2deg); } 50% { transform: translate(0, -14px) rotate(4deg); } 75% { transform: translate(-8px, -8px) rotate(-1deg); } }
@keyframes rw-ring { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(12); opacity: 0; } }
@keyframes rw-tw { 0%, 100% { opacity: 0.2; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.5); } }
@keyframes rw-shoot { from { transform: translate(0, 0) rotate(-30deg); opacity: 1; } to { transform: translate(420px, -240px) rotate(-30deg); opacity: 0; } }

.reward-overlay.rw-treasure { background: radial-gradient(circle at 50% 45%, #1f6b4c, #0d3d2b 60%, #06231a); perspective: 900px; }
.rw-treasure .reward-title { color: #ffe9a8; }
.rw-treasure .reward-sub { color: #d9f0e3; }
.rw-treasure .reward-icon { animation: rw-flip 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) both, rw-tilt 3s ease-in-out 1.5s infinite; }
.rw-shine { position: absolute; inset: 0; border-radius: 50%; mix-blend-mode: overlay; background: linear-gradient(115deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0) 60%); background-size: 250% 100%; animation: rw-shine 2.2s ease-in-out 1.4s infinite; }
.rw-coin { position: absolute; top: -40px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b8, #f5c542 55%, #b9831f); box-shadow: inset 0 0 0 3px rgba(185, 131, 31, 0.55); animation: rw-coin linear forwards; }
@keyframes rw-flip { 0% { transform: rotateY(0) scale(0.2); opacity: 0; } 20% { opacity: 1; } 100% { transform: rotateY(1080deg) scale(1); } }
@keyframes rw-tilt { 0%, 100% { transform: rotateY(-18deg); } 50% { transform: rotateY(18deg); } }
@keyframes rw-shine { 0% { background-position: 120% 0; } 60%, 100% { background-position: -60% 0; } }
@keyframes rw-coin { from { transform: translateY(0) rotateX(0); } to { transform: translateY(900px) rotateX(1440deg); } }
.rw-confetti { position: absolute; top: -14px; width: 9px; height: 9px; border-radius: 2px; animation: rw-confetti linear forwards; }
@keyframes rw-confetti { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(900px) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) {
  .rw-ring, .rw-tw, .rw-shoot, .rw-shine, .rw-coin, .rw-confetti { animation: none; }
  .rw-space .reward-icon, .rw-treasure .reward-icon { animation: reward-fade 0.3s ease both; }
}

/* Parent gate + panel */
.panel-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 22px; padding: 26px 22px; box-shadow: var(--shadow); }
.panel-card h2 { font-family: 'Baloo 2', sans-serif; font-size: 1.3rem; margin: 0 0 6px; color: var(--leaf-dark); }
.panel-card p.sub { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 18px; }
.gate-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.gate-row input {
  flex: 1; font-family: 'Baloo 2', sans-serif; font-size: 1.2rem; padding: 10px 12px;
  border-radius: 12px; border: 2px solid var(--border); background: var(--bg); color: var(--ink); width: 100%;
}
.gate-row button, .panel-card .primary-btn {
  font-family: 'Karla', sans-serif; font-weight: 700; font-size: 0.9rem; background: var(--leaf); color: #fff;
  border: none; border-radius: 12px; padding: 11px 18px; cursor: pointer; white-space: nowrap;
}
.gate-err { color: var(--apple-red-dark); font-size: 0.85rem; min-height: 18px; margin-bottom: 6px; }

.day-stats { flex: 1 1 100%; min-width: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px 9px; font-family: 'Karla', sans-serif; }
.ds-head { font-weight: 800; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); margin: 6px 0 3px; overflow-wrap: anywhere; }
.ds-head:first-child { margin-top: 0; }
.ds-row { display: flex; justify-content: space-between; gap: 8px; font-size: 0.82rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.ds-lbl { color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.ds-val { color: var(--ink); white-space: nowrap; }
.ds-ok { color: var(--leaf-dark); font-weight: 800; }
.ds-no { color: var(--apple-red-dark); font-weight: 800; }
.stats-scroll { overflow-x: auto; }
.history-card { margin-top: 18px; }
.history-box { margin-top: 16px; }
.hist-more { margin: 2px 0 14px; }
.hist-title { font-family: 'Baloo 2', sans-serif; font-size: 1.05rem; color: var(--leaf-dark); margin: 4px 0 0; }
.hist-date { white-space: nowrap; font-weight: 700; }
.hist-topics { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.5; min-width: 180px; }
#historyBox table.stats { margin-top: 6px; }
table.stats { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 0.9rem; }
table.stats th, table.stats td { font-variant-numeric: tabular-nums; text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); }
table.stats th { color: var(--ink-soft); font-weight: 600; font-size: 0.8rem; }
.bar-track { background: var(--border); border-radius: 999px; height: 7px; width: 100%; overflow: hidden; margin-top: 4px; }
.bar-fill { background: var(--leaf); height: 100%; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; }
.toggle-row .lbl { font-weight: 700; font-size: 0.9rem; }
.toggle-row .note { color: var(--ink-soft); font-size: 0.78rem; margin-top: 2px; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--border); border-radius: 999px; cursor: pointer; transition: background 0.15s ease; }
.switch .track::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 0.15s ease; }
.switch input:checked + .track { background: var(--leaf); }
.switch input:checked + .track::before { transform: translateX(18px); }

.panel-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.ghost-btn { font-family: 'Karla', sans-serif; font-weight: 600; font-size: 0.85rem; background: none; border: 1px solid var(--border); color: var(--ink-soft); border-radius: 10px; padding: 9px 14px; cursor: pointer; }
.danger-btn {
  font-family: 'Karla', sans-serif; font-weight: 700; font-size: 0.85rem; cursor: pointer;
  background: var(--bg-card); border: 2px solid var(--apple-red); color: var(--apple-red-dark);
  border-radius: 10px; padding: 9px 14px;
}
.danger-btn:active { transform: scale(0.97); }
.reset-confirm {
  margin-top: 10px; background: var(--amber-soft); border: 1px solid var(--sun); border-radius: 12px;
  padding: 12px 14px; font-family: 'Karla', sans-serif; font-size: 0.85rem; color: var(--amber-ink);
}
.reset-confirm-actions { display: flex; gap: 8px; margin-top: 10px; }
.reset-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; }
.reset-scope select { font: inherit; font-weight: 600; padding: 6px 10px; border-radius: 10px; border: 2px solid var(--border); background: var(--bg-card); color: var(--ink); max-width: 100%; }
.demo-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 14px; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) { .answers button, .switch .track, .switch .track::before { transition: none; } }

/* ===== Sınıf tabanlı konular (2. sınıf ve sonrası): ortak parçalar ===== */
.sy-lay { align-items: center; }
.sy-sahne { background: #fffaf0; border: 1.5px solid var(--border); border-radius: 14px; padding: 10px; margin: 0 auto; max-width: 100%; box-sizing: border-box; }
.sy-sahne svg { display: block; width: 100%; height: auto; }
.sy-lay .sy-sahne { flex: 0 1 auto; min-width: 0; }
.sy-sahne.mini { padding: 7px; }
.sy-pics .uz-pic { width: auto; max-width: 100%; }
.sy-buyuk { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 3rem; line-height: 1.05; color: var(--sky-dark); text-align: center; margin: 0 auto 10px; }
.sy-okunus { font-family: 'Andika', 'Karla', sans-serif; font-weight: 700; font-size: 1.9rem; color: var(--ink); text-align: center; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 8px 22px; width: max-content; max-width: 100%; margin: 0 auto 12px; }
.uz-opt.sy-kelime { font-family: 'Andika', 'Karla', sans-serif; font-size: 1.25rem; }
.sy-check { margin-top: 12px; }
.sy-kur-ust .sy-check { margin: 0; width: auto; flex: none; }

/* ===== 2. sınıf Sayıları Çözümleme: taban blokları, basamak tablosu ===== */
.tb-sahne { padding: 12px 14px; }
.tb-tablo { display: grid; grid-template-columns: repeat(2, 96px); justify-content: center; margin: 0 auto 14px; border: 2px solid #C9D2E3; border-radius: 14px; overflow: hidden; width: max-content; background: var(--bg-card); }
.tb-tablo .tb-bas { font-family: 'Karla', sans-serif; font-weight: 800; font-size: 0.95rem; text-align: center; padding: 6px 8px; background: #E6EEFF; color: #1F2A44; }
.tb-tablo .tb-bas:first-child { border-right: 2px solid #C9D2E3; }
.tb-tablo .tb-hucre { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 2.6rem; line-height: 1.1; text-align: center; padding: 4px 0; color: var(--sky-dark); border-top: 2px solid #C9D2E3; }
.tb-tablo .tb-hucre:nth-of-type(3) { border-right: 2px solid #C9D2E3; }
.tb-tablo.kucuk { grid-template-columns: repeat(2, 76px); margin-bottom: 10px; }
.tb-tablo.kucuk .tb-hucre { font-size: 1.9rem; }
.tb-tablo .tb-yuva { margin: 8px auto; border-radius: 12px; min-width: 64px; min-height: 54px; }
.tb-tablo .tb-yuva:nth-of-type(1) { }
.tb-dokun { display: flex; justify-content: center; gap: 14px; margin: 6px auto 4px; }
.tb-rakam { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 3.6rem; line-height: 1; width: 96px; height: 110px; border-radius: 20px; border: 3px solid #C9D2E3; background: var(--bg-card); color: var(--sky-dark); cursor: pointer; }
.tb-rakam:not([disabled]):hover { border-color: var(--sky); }
.tb-rakam.ok { border-color: #3f9a5a; background: rgba(63, 154, 90, 0.12); }
.tb-rakam.bad { border-color: #E5484D; background: rgba(229, 72, 77, 0.12); }
.tb-deger-satir { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 4px auto 0; }
.tb-deger-sayi { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 2.2rem; color: var(--ink); }
.tb-deger-isaret { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 2rem; color: var(--apple-red); }
/* boyama */
.tb-boya { display: flex; justify-content: center; align-items: flex-end; gap: 22px; flex-wrap: wrap; width: max-content; max-width: 100%; margin: 0 auto; padding: 10px 14px; border-radius: 14px; background: #fffaf0; border: 1.5px solid var(--border); }
.tb-boya.ok { border-color: #3f9a5a; box-shadow: 0 0 0 3px rgba(63, 154, 90, 0.25); }
.tb-boya.bad { border-color: #E5484D; box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.25); }
.tb-boya-grup.birlik { padding-left: 22px; border-left: 2px dashed #C9D2E3; }
.tb-boya-sira { display: flex; gap: 6px; align-items: flex-end; }
.tb-boya-grup.birlik .tb-boya-sira { display: grid; grid-template-columns: repeat(3, auto); gap: 6px; }
.tb-parca { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 4px; line-height: 0; }
.tb-parca:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.tb-parca svg { display: block; }
.tb-parca.tb-onluk svg { width: 20px; height: 182px; }
.tb-parca.tb-birlik svg { width: 34px; height: 34px; }
.tb-parca .tb-dolu { display: none; }
.tb-parca.boyali .tb-dolu { display: inline; }
.tb-parca.boyali .tb-bos { display: none; }
/* sürükleyerek gösterme */
.tb-dz .tb-p-onluk { order: 1; }
.tb-dz .tb-p-birlik { order: 3; }
.dz-item.tb-p-onluk { width: 20px; height: 162px; }
.dz-item.tb-p-birlik { width: 20px; height: 20px; }
.tb-svg-onluk { display: block; width: 18px; height: 162px; pointer-events: none; }
.tb-svg-birlik { display: block; width: 18px; height: 18px; pointer-events: none; }
.tb-dz { min-height: 220px; gap: 8px 6px; }
.tb-dz.dz-target:empty::before { content: 'Blokları buraya sürükle'; }
.tb-coklu { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 6px auto 0; }
.tb-coklu-oge { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.9rem; min-width: 92px; min-height: 66px; border-radius: 16px; border: 3px solid #C9D2E3; background: var(--bg-card); color: var(--ink); cursor: pointer; }
.tb-coklu-oge.secili { border-color: var(--sky); background: #E6EEFF; }
.tb-coklu-oge.ok { border-color: #3f9a5a; background: rgba(63, 154, 90, 0.14); }
.tb-coklu-oge.bad { border-color: #E5484D; background: rgba(229, 72, 77, 0.14); }
.dz-ghost:has(.tb-svg-onluk), .dz-ghost:has(.tb-svg-birlik) { width: auto; height: auto; }
@media (max-width: 620px) {
  .tb-rakam { width: 82px; height: 96px; font-size: 3rem; }
  .tb-parca.tb-onluk svg { width: 16px; height: 146px; }
  .tb-parca.tb-birlik svg { width: 28px; height: 28px; }
  .tb-boya { gap: 14px; padding: 8px; }
  .tb-boya-grup.birlik { padding-left: 14px; }
  .tb-boya-sira { gap: 4px; }
}


/* Eşleştirme ve kelime dizme: kartlar ve yuvalar */
.sy-esler { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.sy-es { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; }
@media (max-width: 620px) {
  .sy-esler { flex-direction: column; align-items: center; gap: 8px; }
  .sy-es { flex-direction: row; gap: 12px; }
}
.sy-yuva { min-width: 70px; min-height: 50px; padding: 4px; box-sizing: border-box; border: 2px dashed var(--leaf); border-radius: 14px; background: var(--bg-card); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sy-yuva.genis { min-width: 120px; }
.sy-yuva:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.sy-yuva.ok { border-style: solid; border-color: #3f9a5a; background: rgba(63, 154, 90, 0.12); }
.sy-yuva.bad { border-style: solid; border-color: #E5484D; background: rgba(229, 72, 77, 0.12); }
.sy-sira { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.sy-havuz { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 58px; box-sizing: border-box; padding: 8px; margin: 12px auto 0; max-width: 480px; border-radius: 14px; background: var(--bg); border: 1px dashed var(--border); }
.sy-kart { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.45rem; line-height: 1.2; color: var(--ink); background: var(--bg-card); border: 2px solid var(--sky); border-radius: 12px; padding: 5px 14px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.sy-kart.kelime { font-family: 'Andika', 'Karla', sans-serif; font-size: 1.25rem; }
.sy-kart.secili { background: var(--amber-soft); border-color: var(--sun); }
.sy-kart.dragging { opacity: 0.3; }
.sy-kart:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.dz-ghost.sy-kart { height: auto; box-sizing: border-box; white-space: nowrap; filter: none; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25); will-change: transform; } /* gölge filter yerine: sürüklerken her karede yeniden çizilmesin */
.dz-ghost:has(.sy-onluk-svg) { width: auto; height: auto; }

/* Sayıyı nesnelerle kurma: onluk paket (dikey 10'lu) ve tek nesneler */
/* onluk paket ve tek nesne aynı nesne boyunda (34px); paket yan yana 10 nesneden oluşan bir sıradır */
.sy-dz { align-items: flex-start; align-content: flex-start; gap: 6px 4px; min-height: 250px; }
.dz-item.sy-p-onluk { width: 386px; height: 34px; display: block; border-radius: 6px; }
.sy-onluk-svg { display: block; width: 386px; height: 34px; pointer-events: none; }
.dz-item.sy-p-birlik { width: 34px; height: 34px; }
.dz-item.sy-p-birlik .obj { width: 34px; height: 34px; }
.sy-build { grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.sy-dz .sy-p-onluk { order: 1; }
.sy-dz .sy-p-birlik { order: 3; }
.sy-grup-bas { flex-basis: 100%; font-family: 'Karla', sans-serif; font-weight: 800; font-size: 0.8rem; color: var(--ink-soft); pointer-events: none; }
.sy-grup-onluk { order: 0; margin: 0 0 2px; }
.sy-grup-birlik { order: 2; margin: 12px 0 2px; padding-top: 12px; border-top: 2px dashed #C9D2E3; }
.dz-target .sy-p-birlik:first-of-type { margin-top: 0; }
.sy-kur-ust { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 6px; }
.sy-kur-ust .target-number { margin: 0; width: auto; flex: none; }
@media (max-width: 760px) { .sy-build { grid-template-columns: 1fr; } .dz-item.sy-p-onluk, .sy-onluk-svg { width: 318px; height: 28px; } .dz-item.sy-p-birlik, .dz-item.sy-p-birlik .obj { width: 28px; height: 28px; } .sy-dz { min-height: 120px; } }

/* Boyama: satırda 10 şekil, beşten sonra boşluk */
.sy-boya { --boya: #2f6fd6; --hc: 34px; display: flex; flex-direction: column; gap: 3px; width: max-content; max-width: 100%; margin: 0 auto; padding: 8px; border-radius: 14px; background: #fffaf0; border: 1.5px solid var(--border); touch-action: none; user-select: none; -webkit-user-select: none; }
.sy-boya-satir { display: flex; gap: 3px; }
.sy-boya-satir .sy-hucre:nth-child(6) { margin-left: 9px; }
.sy-hucre { width: var(--hc); height: var(--hc); cursor: pointer; }
.sy-hucre svg { display: block; width: 100%; height: 100%; fill: #fff; stroke: #55534a; stroke-width: 1.4; stroke-linejoin: round; }
.sy-hucre.boyali svg { fill: var(--boya); stroke: #2b2a25; }
.sy-boya.ok { border-color: #3f9a5a; box-shadow: 0 0 0 3px rgba(63, 154, 90, 0.25); }
.sy-boya.bad { border-color: #E5484D; box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.25); }
@media (max-width: 620px) { .sy-boya { --hc: 26px; } }
@media (max-width: 400px) { .sy-boya { --hc: 24px; padding: 6px; } .sy-boya-satir .sy-hucre:nth-child(6) { margin-left: 6px; } .sy-kart { font-size: 1.25rem; padding: 4px 10px; } }

/* Simetri: resimli üç seçenek telefonda tek satırda */
@media (max-width: 480px) {
  .sm-uc { flex-wrap: nowrap; gap: 8px; }
  .sm-uc .uz-pic { flex: 1 1 0; min-width: 0; padding: 4px; }
  .sm-uc .sy-sahne { width: 100% !important; }
}

/* Ön koşul önerisi: sorunun üstünde, kapatılabilir */
.onkosul-not { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding: 10px 14px; border-radius: 14px; background: #FFF7E0; border: 1.5px solid #F5C451; color: #1F2A44; font-weight: 700; font-size: .95rem; }
.onkosul-not button { flex: none; border: 0; border-radius: 10px; padding: 6px 12px; background: #F5B83D; color: #1F2A44; font: inherit; cursor: pointer; }

/* Problem kurma: iki bilgi ve bir soru kutusu, altında cümle kartları */
.kg-kurgu { display: flex; flex-direction: column; gap: 5px; max-width: 520px; margin: 0 auto; width: 100%; }
.kg-satir { display: flex; align-items: center; gap: 8px; }
.kg-et { flex: none; width: 64px; font-weight: 800; font-size: .85rem; color: var(--ink-soft, #5B6472); text-align: right; }
.kg-yuva { flex: 1; min-height: 40px; padding: 3px; justify-content: flex-start; }
.kg-havuz { gap: 5px; padding: 5px; margin-top: 8px; min-height: 0; max-width: 520px; }
.sy-kart.kg-kart { font-size: 1rem; line-height: 1.25; padding: 5px 10px; white-space: normal; text-align: left; }
.kg-yuva .kg-kart { width: 100%; }
@media (max-width: 480px) { .kg-et { width: 46px; font-size: .75rem; } .sy-kart.kg-kart { font-size: .86rem; padding: 3px 7px; border-width: 1.5px; } }
@media (max-width: 480px) { .kg-yuva { min-height: 34px; padding: 2px; } .kg-kurgu { gap: 4px; } .kg-havuz { gap: 4px; padding: 4px; margin-top: 6px; } }
@media (max-width: 480px) { .tb-coklu { gap: 8px; } .tb-coklu-oge { min-width: 78px; min-height: 56px; font-size: 1.7rem; } }
@media (max-width: 620px) { .sy-es { gap: 8px; width: 100%; } .sy-es > .sy-sahne.mini { flex: 1 1 auto; min-width: 0; width: auto !important; } .sy-es > .sy-sahne.mini svg { width: 100%; max-height: 84px; } .sy-es > .sy-yuva { flex: none; min-width: 64px; } }
@media (max-width: 400px) { .sy-havuz { gap: 6px; padding: 6px; margin-top: 8px; } .il-aile { gap: 6px; } }
@media (max-width: 480px) { .kg-havuz { justify-content: space-between; } .kg-havuz .sy-kart.kg-kart { flex: 0 1 calc(50% - 3px); box-sizing: border-box; text-align: center; font-size: .82rem; line-height: 1.2; padding: 3px 5px; } }
@media (max-width: 480px) { .kg-yuva { min-height: 30px; } .kg-kurgu { gap: 3px; } .kg-havuz { gap: 4px 0; } }
/* Nesnelerin Geometrisi: resimli çoklu seçim (3 sütun) ve dörtlü resim seçenekleri */
.ng-coklu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 420px; margin: 4px auto 0; }
.ng-oge { display: flex; align-items: center; justify-content: center; padding: 4px; border-radius: 14px; border: 2.5px solid #D9E2F0; background: #FFFFFF; cursor: pointer; }
.ng-oge .sy-sahne { width: 100% !important; max-width: 96px; padding: 0; background: none; border: 0; }
.ng-oge.secili { border-color: #F59E0B; background: #FFF7E0; box-shadow: 0 0 0 2px #FCD34D; }
.ng-oge.ok { border-color: #1B7F4B; background: #E1F5EA; box-shadow: none; }
.ng-oge.bad { border-color: #BE3455; background: #FDE7EC; box-shadow: none; }
.ng-coklu.dokuz .ng-oge .sy-sahne { max-width: 84px; }
.ng-dort { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ng-dort .uz-pic { min-width: 0; padding: 4px; }
.ng-dort .sy-sahne { width: 100% !important; }
@media (max-width: 480px) { .ng-coklu { gap: 6px; } .ng-dort { gap: 6px; } }
/* Nesnelerin Geometrisi: nesne şıkları — resim büyük, ad küçük */
.uz-options.ng-resimli { flex-wrap: nowrap; gap: 10px; justify-content: center; }
.uz-options.ng-resimli .uz-optwrap { flex: 1 1 0; min-width: 0; max-width: 200px; }
.uz-options.ng-resimli .uz-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 6px; min-height: 0; }
.uz-options.ng-resimli .uz-opt b { font-size: 3.2rem; line-height: 1.1; font-weight: 400; }
.uz-options.ng-resimli .uz-opt small { font-size: .95rem; font-weight: 700; line-height: 1.2; }
@media (max-width: 620px) {
  .uz-options.ng-resimli { flex-wrap: nowrap; gap: 8px; }
  .uz-options.ng-resimli .uz-optwrap { flex: 1 1 0; min-width: 0; max-width: none; }
  .uz-options.ng-resimli .uz-opt b { font-size: 2.6rem; }
  .uz-options.ng-resimli .uz-opt small { font-size: .82rem; }
}
/* Nesnelerin Geometrisi: kareli kağıtta çizme */
.ng-kareli { padding: 4px; }
.ng-kareli.ok { box-shadow: 0 0 0 3px #1B7F4B; }
.ng-kareli.bad { box-shadow: 0 0 0 3px #BE3455; }
.ng-araclar { display: flex; justify-content: center; gap: 18px; margin: 2px 0 4px; }
.cz-lay.cp-ust.ng-yan { flex-direction: row; justify-content: center; align-items: center; gap: 8px; flex-wrap: nowrap; }
/* 3. sınıf konuları */

/* Sayılar: verilen rakamlar */
.s3-rakamlar { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 2.4rem; line-height: 1.2; letter-spacing: 1px; color: var(--ink); text-align: center; margin: 2px 0 8px; }

/* Sayılar: resimlerle yazılmış sayılarda resim–rakam anahtarı */
.s3-anahtar { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.5rem; line-height: 1.3; color: var(--ink); text-align: center; white-space: pre-wrap; margin: 0 0 4px; }

/* Sayılar: şekille kodlamada şekil kartları (başlıktaki şekillerle aynı boyda görünsün) */
.sy-kart.s3-sembol { font-size: 1.7rem; line-height: 1.1; min-width: 54px; text-align: center; }

/* Sayılar: okunuşlarla eşleştirme */
.s3-esles { display: flex; flex-direction: column; gap: 6px; width: min(100%, 460px); margin: 0 auto; }
.s3-es { display: flex; align-items: center; gap: 10px; }
.s3-es b { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.6rem; width: 62px; flex: none; text-align: right; color: var(--ink); }
.s3-yuva { flex: 1; min-width: 0; min-height: 46px; }
.s3-havuz { max-width: 560px; margin-top: 8px; }
.s3-havuz .sy-kart, .s3-es .sy-kart { font-size: 1.05rem; padding: 5px 9px; }

/* Sayıları Çözümleme: taban blokları, abaküs, eşleştirme etiketleri, blokla kurma */
.s3c-model { max-width: 100%; margin: 4px auto 8px; }
.s3c-satir { font-size: 1.45rem; }
.s3-esles.uzun { width: 100%; max-width: none; margin: 0; gap: 10px; }
.s3-esles.uzun .s3-es { align-items: center; gap: 14px; }
.s3-esles.uzun .s3-es b { flex: 1 1 auto; min-width: 0; width: auto; text-align: left; white-space: normal; }
.s3-esles.uzun .s3-yuva { flex: 0 0 190px; min-height: 50px; }
.s3-esles.uzun .sy-kart { white-space: nowrap; }
.s3c-es b { width: auto; min-width: 150px; font-family: 'Andika', 'Karla', sans-serif; font-size: 1.05rem; font-weight: 700; text-align: left; }

/* Sayıları Çözümleme: kavram haritası (merkez, üç dal) ve dallanmış ağaç */
.s3c-harita { display: flex; flex-direction: column; align-items: center; margin: 0 auto 4px; width: min(100%, 520px); }
.s3c-h-merkez { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.7rem; color: #fff; background: var(--sky); border-radius: 14px; padding: 2px 18px; position: relative; margin-bottom: 14px; }
.s3c-h-merkez::after { content: ''; position: absolute; left: 50%; top: 100%; width: 2px; height: 14px; background: var(--sky); }
.s3c-h-dallar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; border-top: 2px solid var(--sky); padding-top: 8px; }
.s3c-h-dal { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.s3c-h-ad { font-family: 'Andika', 'Karla', sans-serif; font-weight: 700; font-size: 0.95rem; text-align: center; }
.s3c-h-et { font-size: 0.75rem; color: #6B7280; }
.s3c-h-yuva { min-width: 0; width: 100%; max-width: 110px; min-height: 42px; }
.s3c-agac { display: flex; flex-direction: column; gap: 8px; width: min(100%, 560px); margin: 0 auto; }
.s3c-agac-adim { border: 1.5px solid var(--border); border-radius: 14px; padding: 8px 10px; background: var(--bg-card); }
.s3c-agac-adim p { margin: 0 0 6px; font-family: 'Andika', 'Karla', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.s3c-agac-adim .uz-opt.secili { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12) inset; }

/* Sayıları Çözümleme: blokla kurma. Solda tükenmez birer blok, sağda boş çerçeve */
.s3c-kur { display: flex; align-items: stretch; justify-content: center; gap: 10px; width: min(100%, 560px); margin: 4px auto 8px; }
.s3c-kur-kaynak { display: flex; flex-direction: column; justify-content: space-around; align-items: center; gap: 8px; padding: 8px 10px; border: 2px solid var(--border); border-radius: 14px; background: var(--bg-card); }
.s3c-kaynak-satir { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.s3c-kaynak-satir small { font-size: 0.75rem; color: #6B7280; }
.s3c-kur-hedef { flex: 1; min-height: 190px; display: flex; flex-wrap: wrap; align-content: flex-start; align-items: flex-end; gap: 8px; padding: 10px; border: 2px dashed var(--sky); border-radius: 14px; background: #fffaf0; position: relative; }
.s3c-kur-hedef.ok { border-style: solid; border-color: #3f9a5a; background: rgba(63, 154, 90, 0.08); }
.s3c-kur-hedef.bad { border-style: solid; border-color: #E5484D; background: rgba(229, 72, 77, 0.08); }
.s3c-kur-bos { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #6B7280; font-size: 0.95rem; pointer-events: none; }
.s3c-kur-grup { display: flex; flex-wrap: wrap; gap: 4px; align-items: flex-end; }
.s3c-kur-grup:empty { display: none; }
.s3c-g2 { max-width: 64px; }
.s3c-parca { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; line-height: 0; border-radius: 4px; }
.s3c-parca svg { display: block; }
.s3c-p1, .s3c-p2 { padding: 3px; } /* ince onluk ve küçük birlik kolay tutulsun */
.s3c-kaynak-parca:focus-visible, .s3c-konan:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.s3c-hayalet { position: fixed; z-index: 1000; pointer-events: none; will-change: transform; filter: none; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25); background: #fff; }

/* Sayıları Sıralama: uzun karşılaştırma satırı ve rakam seçme düğmeleri */
.uz-opt.s3s-isaret { font-size: 2.1rem; font-weight: 800; line-height: 0.75; } /* <, >, = belirgin; satır yüksekliği düşük tutulduğu için düğmenin boyu değişmez */
.s3s-satir { font-size: 1.6rem; }
.tb-coklu.s3s-rakamlar { gap: 8px; max-width: 420px; margin-left: auto; margin-right: auto; }
.tb-coklu.s3s-rakamlar .tb-coklu-oge { min-width: 52px; padding: 4px 10px; font-size: 1.6rem; }

/* Sayılar: okunuşlarla bulmaca */
.s3-bulmaca-ust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 18px; margin-bottom: 6px; }
.s3-ipuclari { display: flex; flex-direction: column; gap: 2px; width: fit-content; max-width: 100%; font-family: 'Andika', 'Karla', sans-serif; font-size: 1.05rem; color: var(--ink); }
.s3-ipucu { display: flex; align-items: baseline; gap: 8px; }
.s3-ipucu b { color: #C2410C; font-size: 1.2rem; width: 1.2em; flex: none; text-align: center; }
.s3-bulmaca .cz-line { display: grid; grid-template-columns: repeat(3, 50px); grid-auto-rows: 50px; gap: 3px; justify-content: center; width: fit-content; min-width: 0; margin: 0; padding: 6px; }
.s3-bulmaca .cz-br { display: none; }
.s3-bulmaca .numbox { width: 50px; min-width: 0; height: 50px; padding: 0; font-size: 1.7rem; box-sizing: border-box; border-radius: 8px; }

/* Sayılar: sayı doğrusu */
.s3-dogru .cz-line { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: flex-end; gap: 4px; width: min(100%, 560px); min-width: 0; box-sizing: border-box; margin: 6px auto 12px; padding: 6px 8px 16px; position: relative; }
.s3-dogru .cz-line::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 8px; height: 3px; background: var(--ink); border-radius: 2px; }
.s3-dogru .cz-num, .s3-dogru .numbox { position: relative; flex: 1 1 0; min-width: 0; text-align: center; box-sizing: border-box; }
.s3-dogru .cz-num { font-size: 1.35rem; padding-bottom: 8px; }
.s3-dogru .numbox { height: 46px; margin-bottom: 8px; padding: 0 2px; font-size: 1.35rem; overflow: visible; }
.s3-dogru .cz-num::after, .s3-dogru .numbox::after { content: ''; position: absolute; left: 50%; bottom: -14px; width: 3px; height: 14px; margin-left: -1.5px; background: var(--ink); }
.s3-dogru .numbox::after { bottom: -22px; }
.s3-arasi .numbox::after { display: none; } /* arada kalan her sayı doğru: kutu doğruda belli bir noktayı göstermez */

/* Sayılar: 0–1000 sayı doğrusunda tahmin */
.s3-tahmin { max-width: 100%; margin: 4px auto 10px; }

/* Sayılar: 100 kareyi tek seferde boyama */
.s3-paketler { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 480px; margin: 0 auto 8px; }
.s3-paket { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 0.95rem; line-height: 1.1; white-space: nowrap; width: 72px; height: 40px; padding: 2px; border: 2px solid #C2410C; border-radius: 10px; background: #fffaf0; color: #C2410C; cursor: pointer; }
.s3-paket.boyali { background: #F2681D; border-color: #C2410C; color: #fff; }
.s3-paket:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.s3-izgara { --hc: 26px; }
.s3-izgara .sy-boya-satir .sy-hucre:nth-child(6) { margin-left: 7px; }

@media (max-width: 620px) {
  .s3-rakamlar { font-size: 2rem; }
  .s3-anahtar { font-size: 1.2rem; }
  .s3s-satir { font-size: 1.2rem; }
  .tb-coklu.s3s-rakamlar .tb-coklu-oge { min-width: 44px; font-size: 1.35rem; }
  .s3c-satir { font-size: 1.15rem; }
  .s3-es.s3c-es b { width: auto; min-width: 0; flex: none; white-space: nowrap; font-size: 0.95rem; } /* basamak adı tek satırda; .s3-es b’nin 50px genişliğini ezer */
  .s3c-h-ad { font-size: 0.8rem; }
  .s3c-h-merkez { font-size: 1.4rem; }
  .s3c-agac-adim p { font-size: 1rem; }
  .s3-ipuclari { font-size: 0.86rem; line-height: 1.2; gap: 0; }
  .s3-ipucu { gap: 5px; }
  .s3-ipucu b { font-size: 1rem; }
  .s3-bulmaca .cz-line { grid-template-columns: repeat(3, 36px); grid-auto-rows: 36px; padding: 3px; }
  .s3-bulmaca .numbox { width: 36px; height: 36px; font-size: 1.25rem; }
  .s3-dogru .cz-num { font-size: 1.1rem; }
  .s3-dogru .numbox { height: 42px; font-size: 1.1rem; }
  .s3-esles { gap: 3px; }
  .s3-es b { width: 50px; font-size: 1.3rem; }
  .s3-yuva { min-height: 38px; padding: 1px; }
  .s3-esles.uzun .s3-es b { white-space: normal; font-size: 0.95rem; }
  .s3-esles.uzun .s3-yuva { flex-basis: 140px; }
  .s3-havuz { gap: 4px 6px; padding: 5px; margin-top: 5px; }
  .s3-havuz .sy-kart, .s3-es .sy-kart { font-size: 0.88rem; padding: 3px 7px; }
  .s3-paketler { gap: 4px; margin-bottom: 5px; }
  .s3-paket { width: 62px; height: 30px; font-size: 0.82rem; white-space: nowrap; }
  .s3-izgara { --hc: 22px; padding: 5px; }
  .s3-izgara .sy-boya-satir { gap: 2px; }
}

/* Ritmik sayma modeli: her grup bir kutu (yumurta kolisi, kalem kutusu …) */
.s3r-gruplar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 12px; max-width: 560px; }
.s3r-grup { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 6px 8px; border: 2px solid var(--border); border-radius: 12px; background: var(--bg); font-size: 1.25rem; line-height: 1.2; }
@media (max-width: 480px) { .s3r-grup { font-size: 1.05rem; padding: 4px 6px; } }

/* Tek ve çift: nesneler ikişer ikişer sütunlarda; tek kalan sütun kesik çerçeveli */
.s3t-ikili { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 0 auto 12px; max-width: 600px; }
.s3t-grup { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px; border: 2px solid var(--border); border-radius: 12px; background: var(--bg); }
.s3t-sutun { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; padding: 2px 3px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 1.35rem; line-height: 1.2; min-height: 3.6rem; }
.s3t-sutun.tek:not(:has(span + span)) { border-style: dashed; border-color: #E8590C; }
.s3t-arti { font-size: 1.8rem; color: var(--ink); }
@media (max-width: 480px) { .s3t-sutun { font-size: 1.1rem; min-height: 3rem; } }

/* Örüntüler: tekrarlayan şekiller satırı, sonda soru işaretli kutu */
.s3o-sekiller { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 auto 12px; max-width: 600px; }
.s3o-hucre { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--bg); }
.s3o-hucre.bos { border: 2px dashed #E8590C; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.4rem; color: #C2410C; }
@media (max-width: 480px) { .s3o-hucre { width: 38px; height: 38px; } .s3o-hucre svg { width: 30px; height: 30px; } }

/* Kesirler: pay üstte, payda altta, arada çizgi */
.s3k-kesir { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.05; font-weight: 800; vertical-align: middle; }
.s3k-kesir > span:first-child { border-bottom: 3px solid currentColor; padding: 0 .2em 1px; }
.s3k-kesir > span:last-child { padding-top: 1px; }
.s3k-buyuk { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-family: "Baloo 2", sans-serif; font-size: 2.1rem; color: var(--ink); margin: 0 auto 12px; }
@media (max-width: 480px) { .s3k-buyuk { font-size: 1.6rem; } }
.s3k-virgul { align-self: flex-end; }
.uz-opt.s3k-sec { font-size: 1.5rem; }
.s3k-iki { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 0 auto 10px; }
.s3k-iki > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.s3k-et { font-size: 1.3rem; color: var(--ink); }
.sy-kart.s3k-kart { font-size: 1.3rem; }
/* Kesir modeli çizme: parça sayısı ayarı ve dikdörtgen */
.s3k-model { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 auto 8px; }
.s3k-ayar { display: inline-flex; align-items: center; gap: 12px; padding: 4px 8px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--bg); }
.s3k-ayar-btn { font: inherit; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.6rem; width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--border); background: var(--bg-card); color: var(--ink); cursor: pointer; }
.s3k-ayar-yazi { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.2rem; min-width: 8.5em; text-align: center; color: var(--ink); }
/* Metin içindeki kesirler (soru, açıklama) satır içinde alt alta */
.s3k-kesir.s3k-satir { font-size: .95em; margin: 0 3px; }
.s3k-kesir.s3k-satir > span:first-child { border-bottom-width: 2px; }
/* Cevap kutuları alt alta: üst kutu, çizgi, alt kutu */
.s3k-kutu-kesir { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; vertical-align: middle; margin: 0 4px; }
.s3k-kutu-cizgi { display: block; width: 100%; min-width: 44px; border-top: 3px solid var(--ink); }

/* Toplama (3. sınıf): konu anlatımındaki örnek dört sütunlu (işaret, Y, O, B) */
.tp-ornek.uc .tp-satir { grid-template-columns: 34px 56px 56px 56px; }
.tp-dikey.uc .tp-satir.elde .tp-elde { justify-self: center; }

/* Toplama: basamak adlarıyla alt alta yazılmış toplananlar (1 yüzlük + 3 onluk + 5 birlik) */
.tp-basamak { display: grid; grid-template-columns: 28px auto 28px auto 28px auto; align-items: center; justify-content: center; column-gap: 4px; row-gap: 8px; margin: 10px auto 16px; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 26px; color: var(--ink, #1F2937); }
.tp-basamak > span { text-align: right; white-space: nowrap; }
.tp-basamak > .tp-isaret { text-align: center; color: #E5484D; font-weight: 800; }
.tp-basamak > .tp-cizgi { grid-column: 1 / -1; height: 3px; background: currentColor; border-radius: 2px; margin-top: 2px; }
@media (max-width: 520px) { .tp-basamak { font-size: 19px; grid-template-columns: 18px auto 18px auto 18px auto; } }

/* Çıkarma (3. sınıf): yüzlük, onluk ve birlik bölmeleri; dokununca üstü çizilir, sürükleyince bozulur */
.c3x-sutun { display: flex; flex-direction: column; align-items: center; margin: 0 auto 6px; }
.c3x-model { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: stretch; }
.c3x-bolum { background: #FFFAF0; border: 2px solid #E3D3B0; border-radius: 14px; padding: 6px 10px 10px; min-height: 130px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.c3x-bolum.hedef { border-color: #3BA55C; background: rgba(59,165,92,.12); }
.c3x-bolum.yuz { min-width: 120px; } .c3x-bolum.on { min-width: 110px; } .c3x-bolum.bir { min-width: 100px; }
.c3x-bolum.yuz .c3x-ic { display: grid; grid-template-columns: repeat(3, 50px); gap: 5px; align-content: start; }
.c3x-bolum.on .c3x-ic { display: grid; grid-template-columns: repeat(10, 9px); gap: 6px 5px; align-content: start; }
.c3x-bolum.bir .c3x-ic { display: grid; grid-template-columns: repeat(5, 13px); gap: 5px; align-content: start; }
.c3x-blok { line-height: 0; position: relative; border-radius: 3px; cursor: pointer; touch-action: none; }
.c3x-blok.yuz, .c3x-blok.on { cursor: grab; }
.c3x-blok.suruk { cursor: grabbing; z-index: 5; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.c3x-blok:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.c3x-blok.yeni svg rect:first-child { stroke: #E5484D; }
.c3x-blok.cizik svg { opacity: .4; }
.c3x-blok.cizik::after { content: ''; position: absolute; inset: -2px; background: linear-gradient(to top right, transparent calc(50% - 1.6px), #E5484D calc(50% - 1.6px), #E5484D calc(50% + 1.6px), transparent calc(50% + 1.6px)), linear-gradient(to top left, transparent calc(50% - 1.6px), #E5484D calc(50% - 1.6px), #E5484D calc(50% + 1.6px), transparent calc(50% + 1.6px)); pointer-events: none; }
.c3x-blok.on.cizik::after { inset: -2px -3px; }
@media (max-width: 520px) { .c3x-bolum { padding: 4px 6px 6px; min-height: 110px; } .c3x-bolum.yuz .c3x-ic { grid-template-columns: repeat(3, 40px); } .c3x-blok.yuz svg { width: 40px; height: 40px; } }
/* 3. sınıf konu anlatımı: üç basamaklı örnekler geniş; sığmazsa bölümler alt alta geçer */
.tp-anlatim.uc { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.tp-anlatim.uc > * { min-width: 0; }

/* İlişki Zirve: yapılandırılmış biçimler (hesap üçgeni, sayı duvarı, fark piramidi, zincir, sihirli üçgen, sayı bağı, şerit, makine) */
.bc-sahne { display: flex; justify-content: center; margin: 4px auto 10px; max-width: 100%; }
.bc-alan { position: relative; flex: none; }
.bc-alan svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bc-yuva { position: absolute; transform: translate(-50%, -50%); }
.bc-daire { width: 78px; height: 78px; border-radius: 50%; border: 2.5px solid #1F2A44; display: flex; align-items: center; justify-content: center; }
.bc-daire.buyuk { width: 96px; height: 96px; }
.bc-daire.sari { background: #FFE2A8; } .bc-daire.mavi { background: #BFE3FF; }
.bc-kutu { min-width: 78px; height: 50px; border-radius: 10px; border: 2.5px solid #1F2A44; background: #fff; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.bc-sayi { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.45rem; color: #1F2A44; }
.bc-ic { display: inline-flex; align-items: center; gap: 2px; }
.bc-birim { font-size: 0.8rem; font-weight: 700; color: #5B6475; }
.bc-numbox.numbox { width: 62px; min-width: 0; height: 46px; font-size: 1.4rem; padding: 0; box-sizing: border-box; }
.bc-duvar { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bc-sira { display: flex; gap: 4px; }
.bc-tas { width: 94px; height: 56px; border: 2.5px solid #9A5B2E; background: #F6D2A8; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.bc-tas.fark { background: #D9EEFF; border-color: #2F6E9E; }
.bc-zincir, .bc-makine { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.bc-halka { min-width: 78px; height: 56px; border: 2.5px solid #1F2A44; border-radius: 28px; background: #FFE2A8; display: flex; align-items: center; justify-content: center; padding: 0 8px; }
.bc-ok { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.3rem; color: #5B6475; }
.bc-serit { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: center; width: min(480px, 100%); }
.bc-serit b { font-family: 'Baloo 2', sans-serif; }
.bc-alt { display: flex; gap: 4px; }
.bc-bar { height: 54px; border: 2.5px solid #1F2A44; border-radius: 8px; display: flex; align-items: center; justify-content: center; min-width: 76px; }
.bc-bar.uzun { background: #BFE3FF; } .bc-bar.kisa { background: #FFE2A8; }
.bc-farkbar { flex: 1; min-width: 76px; height: 54px; border: 2.5px dashed #E5484D; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.bc-govde { display: inline-flex; align-items: center; gap: 6px; background: #6D5A9E; color: #fff; border-radius: 14px; padding: 12px 16px; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.5rem; box-shadow: inset 0 -6px 0 rgba(0,0,0,.18); }
.bc-govde .bc-sayi { color: #fff; }
.bc-etiket { font-size: 0.8rem; color: #5B6475; text-align: center; font-weight: 700; }
@media (max-width: 420px) { .bc-alan, .bc-duvar { zoom: .84; } .bc-tas { width: 84px; } }

/* Çarpma (3. sınıf): alt alta çarpmada kısmi çarpım satırları */
.cp3-dikey .tp-satir.kismi { min-height: 48px; }
.cp3-dikey .tp-satir.elde + .tp-satir.elde { min-height: 34px; }
.cp3-dikey .tp-satir .numbox:not(.tp-elde) { width: 46px; min-width: 0; height: 50px; font-size: 1.8rem; padding: 0; box-sizing: border-box; }
@media (max-width: 720px) { .cp3-dikey .tp-satir .numbox:not(.tp-elde) { width: 42px; height: 46px; font-size: 1.6rem; } }
/* Çarpma dizi modeli: model solda, işlem ve tuşlar sağda */
.cp3-yan { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 6px auto 0; }
.cp3-yan .cp3-dizi { margin: 0; flex: 0 1 auto; max-width: 58%; }
.cp3-yan .cp3-dizi svg { width: 100%; height: auto; }
.cp3-yan-sag { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 0 0 auto; }
@media (max-width: 420px) { .cp3-yan { flex-direction: column; } .cp3-yan .cp3-dizi { max-width: 100%; } }
.cp3-yan-sag .cz-line { margin: 0; }

/* Bölme (3. sınıf): kalan kutusu değerlendirilir; tekrarlı çıkarma satırları */
.bl3 .bl-satir .numbox.bl3-kalan { width: 42px; height: 44px; min-width: 0; padding: 0; font-size: 1.6rem; box-sizing: border-box; }
.bl3-satirlar { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 4px auto 10px; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.35rem; color: var(--ink); }

/* Bütün sınıflar: model (resim) solda, işlem ve tuşlar sağda (geniş ekranda; dar ekranda alt alta) */
@media (min-width: 760px) {
  .cz-lay.mdl-yan { align-items: center; }
  .cz-lay.mdl-yan > .sy-sahne { flex: 0 1 auto; max-width: 56%; margin: 0; }
  .cz-lay.mdl-yan > .sy-sahne svg { width: 100%; height: auto; }
  /* 2. sınıf çarpma ve bölmedeki “model üstte” düzeni de yan yana (uzay-odulleri.css’teki kuralı geçmek için seçici güçlendirildi) */
  .cz-lay.cp-ust:not(.mdl-yok) { flex-direction: row; align-items: center; justify-content: center; gap: 24px; }
  .cz-lay.cp-ust:not(.mdl-yok) > .sy-sahne { flex: 0 1 auto; max-width: 56%; }
  .cz-lay.cp-ust:not(.mdl-yok) > .cz-side { flex: 0 1 360px; width: auto; }
  .cz-lay.cp-ust:not(.mdl-yok):has(> .cp-dogru) { flex-direction: column; } /* sayı doğrusu geniş: üstte kalır */
  .cz-lay.cp-ust:not(.mdl-yok):has(> .cp-dogru) > .cz-side { flex: none; width: 100%; }
}

/* Yönergeler: adım kartları akışı */
.yn-akis { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; margin: 4px auto 12px; max-width: 640px; }
.yn-kart { background: #F0FDF4; border: 2px solid #65A30D; border-radius: 12px; padding: 6px 12px; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--ink); white-space: nowrap; }
.yn-kart.bas { background: #FEF9C3; border-color: #CA8A04; }
.yn-ok { font-family: 'Baloo 2', sans-serif; font-weight: 800; color: #65A30D; font-size: 1.2rem; }
.yn-line .numbox.yn-isaret { min-width: 48px; width: 48px; padding: 0; border-style: dashed; color: #A21CAF; }
.yn-line .numbox.yn-isaret.ok { color: #2F7A44; border-style: solid; }
.yn-line .numbox.yn-isaret.bad { color: #B42318; border-style: solid; }
.yn-isaret-kap { position: relative; display: inline-flex; }
.yn-menu { display: none; position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 6; gap: 6px; padding: 6px; background: var(--bg-card); border: 2px solid #A21CAF; border-radius: 14px; box-shadow: 0 8px 18px rgba(0,0,0,.14); }
.yn-menu.acik { display: flex; }
.yn-secenek { width: 44px; height: 44px; border-radius: 10px; border: 2px solid #E9D5FF; background: #FAF5FF; color: #701A75; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.6rem; cursor: pointer; padding: 0; }
.yn-secenek:hover { border-color: #A21CAF; }

/* Problemler: problem metni */
.tp3-metin { max-width: 640px; margin: 4px auto 12px; padding: 10px 14px; background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 14px; font-size: 1.15rem; line-height: 1.5; font-weight: 600; color: var(--ink); }
.cz-line.tp3-cumle { display: block; max-width: 100%; text-align: left; line-height: 2.2; }
.cz-line.tp3-cumle .cz-word { font-size: 1.25rem; display: inline; }
.cz-line.tp3-cumle .numbox { display: inline-flex; vertical-align: middle; margin: 0 6px; } /* kutu cümlenin içinde, son kelimenin hemen ardında */

/* Problem konularında uzun seçenekler: tam genişlikte, tek satır (dar ekranda kırılır) */
.uz-options.col .uz-optwrap:has(.tp3-sik) { max-width: 100%; }
.uz-opt.tp3-sik { font-size: 1.1rem; line-height: 1.3; padding: 10px 16px; }
.tb-coklu.tp3-coklu { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 8px; width: 100%; }
.tb-coklu.tp3-coklu .tb-coklu-oge { font-family: 'Andika', 'Karla', sans-serif; font-weight: 700; font-size: 1.1rem; line-height: 1.3; min-height: 0; padding: 10px 16px; border-radius: 12px; text-align: center; }
@media (max-width: 480px) { .tb-coklu.tp3-coklu .tb-coklu-oge { font-size: 0.95rem; min-height: 0; padding: 8px 12px; } }

/* Dört İşlem Problemleri: tablo ortada */
.tp3-tablo { display: flex; justify-content: center; margin: 4px 0 10px; }

/* Problem Kurma: cümle kartlarıyla kurma (kısa sıra etiketi, geniş kutu) */
.s3-esles.kur { width: 100%; max-width: 760px; gap: 8px; }
.s3-esles.kur .s3-es b { width: auto; min-width: 0; flex: none; font-family: 'Baloo 2', sans-serif; font-size: 1.15rem; text-align: right; }
.s3-esles.kur .s3-yuva { flex: 1 1 auto; min-height: 50px; }
.s3-esles.kur .sy-kart, .s3-esles.kur + .s3-havuz .sy-kart { white-space: normal; text-align: left; }

/* Geometrik Cisimler: dokunarak köşe, yüz, ayrıt gösterme */
.gc-dokun [data-oge].gc-secili { stroke: #F59E0B; }
.gc-dokun polygon.gc-secili { fill: #FDE047; }
.gc-dokun line.gc-secili { stroke: #F59E0B; stroke-width: 6; }
.gc-dokun circle.gc-secili { fill: #F59E0B; stroke: #1F2A44; stroke-width: 2; }
.gc-dokun .gc-ok.gc-secili { fill: #3BA55C; stroke: #2F7A44; }
.gc-dokun line.gc-ok { stroke: #3BA55C; }
.gc-dokun .gc-bad.gc-secili { fill: #E5484D; stroke: #B42318; }
.gc-dokun line.gc-bad { stroke: #E5484D; }
/* Gerçek nesneyle eşleştirme: büyük resim ve ad, satırlar ortada */
.s3-esles.uzun.gc-nesne { max-width: 680px; margin: 0 auto; gap: 14px; }
.s3-esles.uzun.gc-nesne .s3-es b { font-size: 2rem; line-height: 1.2; }
.s3-esles.uzun.gc-nesne .s3-yuva { flex-basis: 260px; min-height: 62px; }
@media (max-width: 620px) { .s3-esles.uzun.gc-nesne .s3-es b { font-size: 1.45rem; } .s3-esles.uzun.gc-nesne .s3-yuva { flex-basis: 170px; } }
.s3-esles.uzun.gc-nesne .gc-resim { font-size: 3.2rem; line-height: 1; margin-right: 12px; vertical-align: middle; } /* nesne resmi adından büyük */
.s3-esles.gc-nesne + .s3-havuz .sy-kart, .s3-esles.gc-nesne .sy-kart { font-size: 1.35rem; padding: 8px 14px; }

/* Geometrik Şekiller: şekillerden istenenleri seç */
.gs-izgara { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 560px; margin: 6px auto 0; }
.gs-oge { aspect-ratio: 1; padding: 6px; border-radius: 16px; border: 3px solid #C9D2E3; background: var(--bg-card); cursor: pointer; }
.gs-oge svg { width: 100%; height: 100%; display: block; }
.gs-oge.secili { border-color: var(--sky); background: #E6EEFF; }
.gs-oge.ok { border-color: #3BA55C; background: rgba(59,165,92,.15); }
.gs-oge.bad { border-color: #E5484D; background: rgba(229,72,77,.13); }
.gs-oge.eksik { border-color: #E5484D; border-style: dashed; }
@media (max-width: 480px) { .gs-izgara { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }

/* Şekil ve Cisim Çizme: model solda, noktalı zemin sağda */
.sc-cizim { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.sc-zemin.ok svg { outline: 3px solid #3BA55C; border-radius: 10px; }
.sc-zemin.bad svg { outline: 3px solid #E5484D; border-radius: 10px; }
/* Eşleştirmede etiket ile kutu yakın: satırlar ortada, dar */
.s3-esles.uzun.yakin { max-width: 680px; margin: 0 auto; gap: 12px; }
.s3-esles.uzun.yakin .s3-es b { font-size: 1.3rem; }
.s3-esles.uzun.yakin .s3-yuva { flex-basis: 320px; min-height: 54px; }
@media (max-width: 620px) { .s3-esles.uzun.yakin .s3-yuva { flex-basis: 190px; } .s3-esles.uzun.yakin .s3-es b { font-size: 1.05rem; } }
.gs-izgara.cv-uc { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 520px; }

/* Sıvı Miktarı: kap resimleri büyük (seçeneklerde yazının üstünde) */
.uz-opt.sv-resimli, .tb-coklu-oge.sv-resimli { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding-top: 10px; padding-bottom: 10px; }
.sv-resim { font-size: 3.2rem; line-height: 1.1; }
.s3-es b.sv-resimli { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.s3-es b.sv-resimli .sv-resim { font-size: 2.6rem; }
@media (max-width: 480px) { .sv-resim { font-size: 2.4rem; } }
.sy-kart.sv-resimli { display: inline-flex; align-items: center; gap: 8px; }
.sy-kart.sv-resimli .sv-resim { font-size: 2.8rem; line-height: 1; }
.s3-esles.kur .s3-yuva:has(.sv-resimli) { min-height: 66px; }
.tb-coklu.sv-kaplar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 560px; margin: 6px auto 0; }
.tb-coklu.sv-kaplar .tb-coklu-oge { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; font-family: 'Baloo 2', sans-serif; font-size: 1.15rem; padding: 8px 6px; min-height: 0; }
.sv-sise { width: 92px; height: 120px; }
.s3-esles.uzun .s3-es b.sv-resimli { white-space: nowrap; }

/* Veriyle Çalışma: tablo solda, cevaplar sağda */
.vr-yan { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; }
.vr-sag { flex: 1 1 260px; max-width: 420px; display: flex; flex-direction: column; gap: 10px; }
.vr-sag .uz-options.col .uz-optwrap { max-width: 100%; }
.vr-sag .tb-coklu { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 8px; margin: 0; }
.vr-sag .tb-coklu-oge { font-size: 1.35rem; min-height: 52px; }
.vr-sag .check-row { margin-top: 6px; }
/* Tablo, cevap sütunuyla aynı genişlikte ve yükseklikte */
.vr-yan { align-items: stretch; }
.vr-yan > .sy-sahne { flex: 1 1 280px; max-width: 440px; width: auto !important; display: flex; align-items: center; justify-content: center; }
.vr-yan > .sy-sahne svg { width: 100%; height: auto; }
.vr-sag { flex: 1 1 280px; max-width: 440px; }

/* Veriyle Çalışma: grafik seçenekleri büyük, başlıksız; harf üstte */
.gs-izgara.vr-grafikler { max-width: 860px; gap: 14px; }
.vr-grafikler .gs-oge { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px; }
.vr-grafikler .gs-oge svg { width: 100%; height: auto; }
.vr-harf { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--ink); line-height: 1; }
@media (max-width: 620px) { .gs-izgara.vr-grafikler { grid-template-columns: 1fr; max-width: 360px; } }
.vr-sag .s3-esles { width: 100%; gap: 14px; }
.vr-sag .s3-es { min-height: 54px; }
/* Çetele eşleştirme: çetele biraz küçük; harf kutunun hemen yanında, kutular sayı boyunda */
.vr-cetele { align-items: center; }
.vr-cetele > .sy-sahne { flex: 0 1 320px; max-width: 320px; }
.vr-cetele .vr-sag { flex: 0 1 auto; max-width: none; align-items: center; }
.vr-cetele .s3-esles { width: auto; }
.vr-cetele .s3-es { justify-content: flex-start; gap: 12px; }
.vr-cetele .s3-es b { width: 28px; text-align: right; }
.vr-cetele .s3-yuva { flex: 0 0 96px; min-height: 52px; }
.vr-cetele { gap: 28px; }
.vr-cetele .s3-es b { font-family: 'Baloo 2', sans-serif; font-size: 1.6rem; }
.vr-cetele .s3-esles { gap: 16px; }
.vr-yan > .sy-sahne { margin: 0; } /* otomatik kenar boşluğu sağ sütunu kenara itiyordu */

/* Çetele eşleştirme: harf | çetele | kutu satırları, ortada */
.vr-cs { display: grid; grid-template-columns: auto auto 104px; align-items: center; justify-content: center; column-gap: 16px; row-gap: 12px; margin: 6px auto 4px; padding: 12px 18px; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; width: fit-content; }
.vr-cs-harf { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.7rem; color: var(--ink); text-align: center; }
.vr-cs .vr-cs-cetele { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.vr-cs .vr-cs-yuva { min-height: 54px; width: 104px; }
.vr-cs-havuz { justify-content: center; margin: 8px auto 0; width: fit-content; }
@media (max-width: 480px) { .vr-cs { column-gap: 8px; padding: 10px; grid-template-columns: auto auto 84px; } .vr-cs .vr-cs-yuva { width: 84px; } }

/* Zaman Ölçme: sürüklenebilir analog saat paneli (karalama tahtasının yanında açılır) */
.zm-saat-panel { display: none; margin: 10px auto 0; padding: 12px; background: var(--bg-card); border: 2px solid #C7D2FE; border-radius: 16px; max-width: 360px; text-align: center; }
.zm-saat-panel.acik { display: block; }
.zm-surukle { margin: 0 auto; touch-action: none; cursor: grab; }
.zm-surukle svg { touch-action: none; }
.zm-saat-yazi { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 6px; font-family: 'Baloo 2', sans-serif; color: var(--ink); }
.zm-saat-yazi b { font-size: 2rem; letter-spacing: 1px; }
.zm-saat-yazi span { font-size: 1.1rem; font-weight: 700; }
.zm-saat-ipucu { font-size: .9rem; color: var(--ink-soft); margin-top: 4px; }
/* 4. sınıf konuları: 3. sınıf ekranlarını (sinif3-konular.css) kullanır; burada yalnızca 4. sınıfa özel ayarlar var */

/* Doğru yazılanlar: okunuş → sayı kartları uzun; iki sütun, küçük yazı (dar ekranda tek sütun) */
.tb-coklu.s4-uzun { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 640px; }
.tb-coklu.s4-uzun .tb-coklu-oge { font-size: 1.1rem; font-weight: 700; min-height: 0; padding: 10px 12px; line-height: 1.3; }
@media (max-width: 560px) { .tb-coklu.s4-uzun { grid-template-columns: 1fr; } }

/* Günlük hayatta okuma: cümle uzun, okunuştan biraz küçük */
.s4-cumle { font-size: 1.35rem; line-height: 1.4; }

/* Dikte: sayıyı yeniden dinleme düğmesi */
.s4-dinle { display: block; margin: 6px auto 4px; font-size: 1.15rem; padding: 10px 18px; }

/* Nüfus tablosu */
.s4-tablo { margin: 4px auto 10px; border-collapse: collapse; font-family: 'Baloo 2', sans-serif; font-size: 1.25rem; background: var(--bg-card); border-radius: 12px; overflow: hidden; }
.s4-tablo th { background: #EDE7FF; color: #4B2FB0; font-weight: 800; padding: 6px 18px; text-align: left; }
.s4-tablo td { padding: 6px 18px; border-top: 1px solid #E3E8F2; font-weight: 700; }
.s4-tablo td:last-child, .s4-tablo th:last-child { text-align: right; }

/* Ritmik Sayma: her kutuda 100 ya da 1 000 nesne */
.s4r-kutular { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px auto 10px; max-width: 560px; }
.s4r-kutu { display: flex; flex-direction: column; align-items: center; min-width: 56px; padding: 4px 6px; border-radius: 12px; border: 2px solid #C9B8FF; background: #F4F0FF; }
.s4r-kutu span { font-size: 1.7rem; line-height: 1.1; }
.s4r-kutu b { font-family: 'Baloo 2', sans-serif; font-size: 1.05rem; color: #4B2FB0; }
.s4r-kutu.bin { border-color: #8B5CF6; background: #EDE7FF; }

/* Ritmik Sayma: binler tablosundan 3 × 3 parça (sağa yüzer, aşağı biner) */
.s4-tablo-parca .cz-line { display: grid; grid-template-columns: repeat(3, auto); gap: 8px; justify-content: center; }
.s4-tablo-parca .cz-num { display: flex; align-items: center; justify-content: center; min-width: 92px; padding: 6px 10px; border: 2px solid #C9B8FF; border-radius: 12px; background: #F4F0FF; }

/* Çözümleme: basamak pulları (her basamak bir sütun) */
.s4c-pullar { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin: 4px auto 10px; }
.s4c-sutun { display: flex; flex-direction: column-reverse; align-items: center; gap: 3px; min-width: 44px; }
.s4c-pul { display: flex; align-items: center; justify-content: center; border-radius: 999px; font-family: 'Baloo 2', sans-serif; font-weight: 800; color: #fff; line-height: 1; }
.s4c-p1000 { width: 46px; height: 24px; font-size: .8rem; background: #6D4AD8; }
.s4c-p100 { width: 40px; height: 22px; font-size: .8rem; background: #E8590C; }
.s4c-p10 { width: 34px; height: 20px; font-size: .78rem; background: #1F8A5B; }
.s4c-p1 { width: 26px; height: 18px; font-size: .75rem; background: #2B6CB0; }
.s4c-bos { color: #9AA3B5; font-weight: 700; }
/* Kavram haritası dört dallı */
.s4c-harita .s3c-h-dallar { flex-wrap: wrap; }

/* Model solda, cevap sağda: iki yan dikeyde ortalanır, model kendi alanında ortada durur */
.cz-lay.mdl-yan.s4-yan { justify-content: center; gap: 28px; }
.s4-yan > .s4c-pullar, .s4-yan > .s4r-kutular { margin: 0; padding: 14px 18px; border-radius: 16px; background: #F7F4FF; }
.s4-yan > .s4r-kutular { max-width: 300px; }
/* Yan yana düzende iki taraf aynı boyda; pullar büyür ve alanın ortasında durur */
.cz-lay.mdl-yan.s4-yan { align-items: stretch; }
.s4-yan > .s4c-pullar, .s4-yan > .s4r-kutular { display: flex; align-items: center; justify-content: center; min-width: 240px; }
.s4-yan .s4c-sutun { gap: 4px; min-width: 56px; }
.s4-yan .s4c-p1000 { width: 62px; height: 30px; font-size: 1rem; }
.s4-yan .s4c-p100 { width: 54px; height: 28px; font-size: 1rem; }
.s4-yan .s4c-p10 { width: 46px; height: 26px; font-size: .95rem; }
.s4-yan .s4c-p1 { width: 36px; height: 24px; font-size: .9rem; }
.s4-yan > .cz-side { display: flex; flex-direction: column; justify-content: center; }
/* Abaküs görünümü: her basamak bir çubuk, pullar alttaki tabandan başlayıp yukarı dizilir */
.cz-lay.mdl-yan.s4-yan > .s4c-pullar { align-items: stretch; padding: 14px 18px 0; border-bottom: 8px solid #B9A8F5; border-radius: 16px 16px 6px 6px; }
.s4-yan .s4c-sutun { position: relative; justify-content: flex-start; padding-bottom: 6px; }
.s4-yan .s4c-sutun::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px; border-radius: 2px; background: #CFC4F7; }
.s4-yan .s4c-pul, .s4-yan .s4c-bos { position: relative; }
.s4-yan .s4c-bos { visibility: hidden; }
.cz-lay.mdl-yan.s4-yan > .s4c-pullar { min-height: 220px; }

/* Rakam seçme (0–9): beşerli iki sıra, soru sayısıyla orantılı küçük düğmeler */
.tb-coklu.s4-rakam-sec { display: grid; grid-template-columns: repeat(5, 64px); gap: 10px; justify-content: center; }
.tb-coklu.s4-rakam-sec .tb-coklu-oge { min-width: 0; min-height: 56px; font-size: 1.6rem; border-radius: 14px; }
/* Rakam seçmede: soru cümlesi biraz büyük, sayı orta boy */
.ins-text.s4-ins-buyuk { font-size: 1.3em; line-height: 1.35; }
.sy-buyuk.s4-sayi-orta { font-size: 1.9rem; margin-top: 2px; margin-bottom: 8px; }

/* Sıralama: altı basamaklı sayı kartları için geniş yuvalar */
.sy-yuva.s4-sira-yuva { min-width: 96px; }
/* Sıralama yuvaları tek satırda: yuvalar eşit paylaşır, yuvadaki kartın yazısı küçülür */
.sy-sira.s4-tek-satir { flex-wrap: nowrap; gap: 6px; }
.sy-sira.s4-tek-satir .sy-yuva.s4-sira-yuva { min-width: 0; flex: 1 1 0; max-width: 118px; padding: 3px; }
.sy-sira.s4-tek-satir .sy-yuva .sy-kart { font-size: clamp(.85rem, 2.6vw, 1.25rem); padding: 4px 4px; min-width: 0; }
/* Karşılaştırma sembolleri (<, =, >) büyük */
.uz-opt.s4-isaret { font-size: 2.6rem; font-weight: 800; line-height: 1; padding-top: 6px; padding-bottom: 10px; }
/* Çözümlenmiş sayı şıkları tek satırda: çerçeve yanlara genişler, yazı gerekirse küçülür */
.uz-options.col.s4-tek-satir-sik .uz-optwrap { max-width: 640px; }
.uz-options.col.s4-tek-satir-sik .uz-opt { white-space: nowrap; font-size: clamp(.95rem, 3.2vw, 1.55rem); padding-left: 14px; padding-right: 14px; }
/* Tablo solda, şıklar sağda: tablo yan alanda kenar boşluksuz, şıklar dikeyde ortalı */
.s4-yan > .s4-tablo { margin: 0; align-self: center; }
.s4-yan > .cz-side .uz-options.col { width: 100%; }

/* Örüntüler: nokta örüntüsünün adımları ve adım–terim tablosu */
.s4o-adimlar { display: flex; justify-content: center; align-items: flex-end; gap: 18px; margin: 4px auto 10px; flex-wrap: wrap; }
.s4o-adim { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 14px; background: #F4F0FF; border: 2px solid #D9CEFB; }
.s4o-noktalar { display: grid; grid-template-columns: repeat(4, 16px); gap: 5px; justify-content: center; }
.s4o-nokta { width: 16px; height: 16px; border-radius: 50%; background: #7C3AED; }
.s4o-adim b { font-size: .95rem; color: #4B2FB0; }
.s4o-tablo th, .s4o-tablo td { text-align: center; }

/* Eşleştirme: satırlar solda, kartlar sağda alt alta; etiket (sayı, dizi) kendi genişliğinde, kesilmez */
.s4-esles-yan { display: flex; align-items: flex-start; justify-content: center; gap: 20px; width: 100%; }
.s4-esles-yan > .s3-esles.s4-esles { flex: 1 1 auto; width: auto; max-width: 560px; margin: 0; }
.s4-esles .s3-es b { width: auto; min-width: 0; flex: 0 0 auto; white-space: nowrap; font-size: 1.45rem; }
.s4-esles .s3-yuva { flex: 1 1 160px; min-width: 140px; }
.s4-esles-yan > .s3-havuz.s4-havuz { flex: 0 1 260px; margin: 0; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
@media (max-width: 620px) { .s4-esles-yan { flex-direction: column; align-items: stretch; } .s4-esles-yan > .s3-havuz.s4-havuz { flex-basis: auto; flex-direction: row; flex-wrap: wrap; justify-content: center; } }

/* A / B soruları: verilenler alt alta, soru altlarında belirgin */
.s4-satirlar { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: fit-content; max-width: 100%; margin: 6px auto 4px; padding: 12px 20px; border-radius: 16px; background: #F7F4FF; border: 2px solid #E1D8FC; }
.s4-satir { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.55rem; color: var(--ink); line-height: 1.25; }
.s4-satir b { display: inline-flex; align-items: center; justify-content: center; width: 1.6em; height: 1.6em; margin-right: 10px; border-radius: 10px; background: #6D4AD8; color: #fff; font-size: .85em; }
.s4-soru { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.35rem; color: #4B2FB0; text-align: center; margin: 8px auto 12px; }
@media (max-width: 620px) { .s4-satir { font-size: 1.2rem; } .s4-soru { font-size: 1.15rem; } }
.s4-satir.uzun { font-size: 1.2rem; }
/* Adım–terim tablosu: satır satır farklı renk (Adım: turuncu-sarı, Terim: mor) */
.s4o-tablo tr:first-child th { background: #F5B83D; color: #7C2D12; }
.s4o-tablo tr:first-child td { background: #FFF3D6; color: #9A3412; font-weight: 800; border-top: 0; }
.s4o-tablo tr:nth-child(2) th { background: #6D4AD8; color: #fff; }
.s4o-tablo tr:nth-child(2) td { background: #F1ECFF; color: #3B2A8C; }
.s4o-tablo td + td { border-left: 2px solid #fff; }
.s4o-tablo td { min-width: 64px; }

/* Toplama (4. sınıf): dört basamaklı alt alta işlem ve basamak adlarıyla toplama (model abaküs: toplama.js) */
.tp-dikey.dort .tp-satir { grid-template-columns: 34px 56px 56px 56px 56px; }
.tp-dikey.dort .tp-satir.bas { font-size: .8rem; }
@media (max-width: 620px) { .tp-dikey.dort .tp-satir { grid-template-columns: 26px 44px 44px 44px 44px; } .tp-dikey.dort .tp-satir.son .numbox { width: 40px; } }
.tp-basamak.s4t-basamak { grid-template-columns: 28px auto 28px auto 28px auto 28px auto; }
@media (max-width: 620px) { .tp-basamak.s4t-basamak { font-size: 16px; grid-template-columns: 14px auto 14px auto 14px auto 14px auto; } }
/* Basamak adlarıyla toplama: cevap satırı tek satırda */
.s4t-tek-satir .cz-line { flex-wrap: nowrap; white-space: nowrap; gap: 6px; width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }
.s4t-tek-satir .cz-line .cz-word { font-size: clamp(.9rem, 2.4vw, 1.25rem); }
.s4t-tek-satir .cz-line .numbox { width: clamp(38px, 6vw, 52px); min-width: 0; height: 52px; }

/* Çarpma (4. sınıf): sütun sayısı soruya göre (--n); kısmi çarpım satırları ve elde satırları (carpma.js) */
.tp-dikey.s4c .tp-satir { grid-template-columns: 34px repeat(var(--n, 5), 52px); }
.tp-dikey.s4c .tp-satir .numbox { width: 46px; min-width: 0; height: 52px; font-size: 1.8rem; padding: 0; box-sizing: border-box; }
.tp-dikey.s4c .tp-satir.elde { min-height: 36px; }
.tp-dikey.s4c .tp-satir.elde .numbox { width: 32px; height: 32px; font-size: 1.1rem; }
.tp-dikey.s4c .tp-satir.elde.ikinci .numbox { border-color: #E8590C; }
.tp-dikey.s4c.statik .tp-satir { min-height: 44px; }
.tp-dikey.s4c .s4c-yanlis { color: #E5484D; }
@media (max-width: 620px) {
  .tp-dikey.s4c .tp-satir { grid-template-columns: 24px repeat(var(--n, 5), 40px); min-height: 42px; }
  .tp-dikey.s4c .tp-satir .numbox { width: 36px; height: 42px; font-size: 1.45rem; }
  .tp-dikey.s4c .tp-satir.elde .numbox { width: 26px; height: 26px; font-size: .95rem; }
}
/* Geniş çarpma çerçevesinde tuşlar sıkışmasın: yer yoksa tuş takımı alta geçer */
.cz-lay:has(> .tp-dikey.s4c) { flex-wrap: wrap; justify-content: center; }
.cz-lay:has(> .tp-dikey.s4c) > .cz-side { flex: 0 0 auto; min-width: 240px; }
/* Alan modeli ve yerleşim seçenekleri */
.s4c-secenek { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 4px 0 10px; }
.s4c-yer { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.s4c-yer > b { font-family: 'Baloo 2', sans-serif; font-size: 1.3rem; color: #6D4AD8; }
.s4c-yer .tp-dikey.s4c { font-size: 1.7rem; padding: 4px 10px 8px; }
.s4c-yer .tp-dikey.s4c .tp-satir { grid-template-columns: 22px repeat(var(--n, 5), 30px); min-height: 36px; }
.cz-line.s4c-bitisik { gap: 8px; }
/* Çarpımı değerlendir: çözüm solda, şıklar sağda; iki yan aynı genişlik ve boyda */
.s4c-yan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 20px; max-width: 680px; margin: 4px auto 0; }
.s4c-yan-coz { display: flex; align-items: center; justify-content: center; background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 16px; padding: 6px; }
.s4c-yan-coz > .tp-dikey { margin: 0; border: 0; background: none; }
/* Çözüm kendi sütununa sığsın: sütunlar biraz dar */
.s4c-yan-coz .tp-dikey.s4c { font-size: 1.7rem; padding: 4px 6px 8px; }
.s4c-yan-coz .tp-dikey.s4c .tp-satir { grid-template-columns: 20px repeat(var(--n, 5), 34px); min-height: 42px; }
.s4c-yan-sik { display: flex; align-items: stretch; }
.s4c-yan-sik > .uz-options { align-self: stretch; }
.s4c-yan-sik .uz-options { flex: 1; display: flex; flex-direction: column; flex-wrap: nowrap; justify-content: stretch; align-items: stretch; gap: 12px; margin: 0; width: 100%; height: 100%; }
.s4c-yan-sik .uz-options.col .uz-optwrap { flex: 1 1 0; width: 100%; max-width: none; display: flex; }
.s4c-yan-sik .uz-opt.s4c-sik { align-self: stretch; height: auto; flex: 1; width: 100%; font-size: 1.2rem; line-height: 1.3; padding: 12px 16px; min-height: 64px; }
/* Dar ekranda da yan yana (kullanıcının isteği): şıklar ve çözüm küçülür */
@media (max-width: 620px) {
  .s4c-yan { gap: 8px; }
  .s4c-yan-coz { padding: 2px; }
  .s4c-yan-sik .uz-options { gap: 8px; }
  .s4c-yan-sik .uz-opt.s4c-sik { font-size: .85rem; line-height: 1.2; padding: 6px 8px; min-height: 44px; }
  .s4c-yan-coz .tp-dikey.s4c { font-size: 1.2rem; padding: 4px 4px 6px; }
  .s4c-yan-coz .tp-dikey.s4c .tp-satir { grid-template-columns: 14px repeat(var(--n, 5), 24px); min-height: 32px; }
}
/* Eldeyi adım adım: birler, onlar, yüzler birer satırda; kutular ve yazılar küçük */
.cz-line.s4c-adim { max-width: 640px; gap: 10px 6px; }
.cz-line.s4c-adim .cz-word { font-size: 1.05rem; white-space: nowrap; }
.cz-line.s4c-adim .numbox { min-width: 40px; height: 40px; font-size: 1.35rem; padding: 0 6px; border-radius: 10px; }
@media (max-width: 620px) {
  .cz-line.s4c-adim { gap: 8px 3px; padding: 8px 6px; }
  .cz-line.s4c-adim .cz-word { font-size: .82rem; }
  .cz-line.s4c-adim .numbox { min-width: 28px; height: 32px; font-size: 1.05rem; padding: 0 4px; border-radius: 8px; }
}

/* Çoklu seçimde işlem kartları: her kart ayrı açık renk, sayılar bir tık küçük; seçilen kart kalın mor çerçeve ve ✓ */
.tb-coklu.s4-renkli .tb-coklu-oge { position: relative; font-size: 1.55rem; min-height: 60px; padding: 6px 14px; }
.tb-coklu.s4-renkli .tb-coklu-oge:nth-child(6n+1) { background: #E3EEFF; border-color: #A9C3F2; }
.tb-coklu.s4-renkli .tb-coklu-oge:nth-child(6n+2) { background: #FFEBD6; border-color: #F2C08C; }
.tb-coklu.s4-renkli .tb-coklu-oge:nth-child(6n+3) { background: #DFF5E6; border-color: #9ED3AF; }
.tb-coklu.s4-renkli .tb-coklu-oge:nth-child(6n+4) { background: #F1E8FF; border-color: #C7AEF2; }
.tb-coklu.s4-renkli .tb-coklu-oge:nth-child(6n+5) { background: #FFE4EC; border-color: #F2A9BE; }
.tb-coklu.s4-renkli .tb-coklu-oge:nth-child(6n+6) { background: #DDF4F6; border-color: #95D2D9; }
.tb-coklu.s4-renkli .tb-coklu-oge.secili { border-color: #6D4AD8; box-shadow: inset 0 0 0 2px #6D4AD8; }
.tb-coklu.s4-renkli .tb-coklu-oge.secili::after { content: '✓'; position: absolute; top: -10px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: #6D4AD8; color: #fff; font-size: .9rem; line-height: 24px; text-align: center; }
.tb-coklu.s4-renkli .tb-coklu-oge.ok { border-color: #3f9a5a; box-shadow: inset 0 0 0 2px #3f9a5a; }
.tb-coklu.s4-renkli .tb-coklu-oge.bad { border-color: #E5484D; box-shadow: inset 0 0 0 2px #E5484D; }
@media (max-width: 480px) { .tb-coklu.s4-renkli .tb-coklu-oge { font-size: 1.25rem; min-height: 50px; padding: 4px 10px; } }
/* Kısa yoldan çarpma eşleştirmeleri: işlem etiketi (25 × 1000) tek satırda */
.s3-esles.s4k-islem .s3-es b { white-space: nowrap; }

/* Bölme (4. sınıf): uzun bölme; sütun sayısı bölünenin basamak sayısı (--n); çarpımların altı çizili; kalan kutusu bölümün altında */
.bl-dikey.bl4 .bl-satir { grid-template-columns: 22px repeat(var(--n, 3), 44px); min-height: 42px; }
.bl-dikey.bl4 .bl4-alt { align-self: stretch; justify-self: stretch; display: flex; align-items: center; justify-content: center; border-bottom: 3px solid var(--ink); }
.bl-dikey.bl4 .bl-bolum { flex-wrap: nowrap; }
.bl4-kalan { display: flex; align-items: center; gap: 8px; padding: 12px 8px 0 10px; font-family: 'Karla', sans-serif; font-size: 1.05rem; font-weight: 800; color: var(--ink-soft); }
.bl4-kalan .numbox { width: 50px; min-width: 0; height: 56px; font-size: 2rem; padding: 0; box-sizing: border-box; }
@media (max-width: 620px) {
  .bl-dikey.bl4 { font-size: 1.45rem; padding: 6px 6px 8px; }
  .bl-dikey.bl4 .bl-sol { padding-right: 6px; }
  .bl-dikey.bl4 .bl-satir { grid-template-columns: 14px repeat(var(--n, 3), 30px); min-height: 34px; }
  .bl-dikey.bl4 .numbox.bl-ara { width: 27px; height: 27px; font-size: 1rem; }
  .bl-dikey.bl4 .bl-bolen { padding: 4px 8px 6px; }
  .bl-dikey.bl4 .bl-bolum { gap: 3px; padding: 6px 4px 0 6px; }
  .bl-dikey.bl4 .bl-bolum .numbox, .bl4-kalan .numbox { width: 30px; height: 40px; font-size: 1.3rem; }
  .bl4-kalan { font-size: .85rem; gap: 5px; padding: 10px 4px 0 6px; }
}
.cz-lay:has(> .bl-dikey.bl4) { flex-wrap: wrap; justify-content: center; }
.cz-lay:has(> .bl-dikey.bl4) > .cz-side { flex: 0 0 auto; min-width: 240px; }
/* Dört işlem problemleri: çözüm yolu kartları; her işlem ayrı satırda */
.sy-kart.di4-kart { white-space: pre-line; text-align: left; font-size: 1.05rem; line-height: 1.4; }
/* Problem–işlem sırası eşleştirme: problem metni tam genişlikte küçük yazıyla, kutusu sağında; kartlar altta */
.s3-esles.uzun.di4-metinli .s3-es b { font-family: 'Andika', 'Karla', sans-serif; font-weight: 700; font-size: 1.05rem; line-height: 1.4; }
.s3-esles.uzun.di4-metinli .s3-yuva { flex: 0 0 200px; }
@media (max-width: 620px) { .s3-esles.uzun.di4-metinli .s3-es { flex-direction: column; align-items: stretch; } .s3-esles.uzun.di4-metinli .s3-yuva { flex: 0 0 auto; } }

/* Problem Kurma (4. sınıf): klavyeyle yazma alanı, işlem ve cevap kutuları, kontrol listesi; kartla kurmada geniş kartlar */
.pk4-yazi { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 640px; margin: 4px auto 0; }
.pk4-metin { width: 100%; box-sizing: border-box; font-family: 'Andika', 'Karla', sans-serif; font-size: 1.15rem; line-height: 1.5; padding: 12px 14px; border: 2px solid #B9A8F5; border-radius: 14px; background: var(--bg-card); color: var(--ink); resize: vertical; }
.pk4-metin:focus { outline: none; border-color: #6D4AD8; box-shadow: 0 0 0 3px rgba(109, 74, 216, .18); }
.pk4-satir { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.pk4-sayi { width: 92px; text-align: center; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.4rem; padding: 6px 8px; border: 2px solid #B9A8F5; border-radius: 12px; background: var(--bg-card); color: var(--ink); }
.pk4-sayi:focus { outline: none; border-color: #6D4AD8; }
.pk4-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 1rem; line-height: 1.4; }
.pk4-liste li { padding: 8px 12px; border-radius: 10px; }
.pk4-liste li.ok { background: rgba(63, 154, 90, .12); color: #1f6b3a; }
.pk4-liste li.bad { background: rgba(229, 72, 77, .1); color: #9b1c1f; }
.s3-esles.uzun.pk4-kartli .s3-es b { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.05rem; flex: 0 0 auto; }
.s3-esles.uzun.pk4-kartli .s3-yuva { flex: 1 1 auto; min-height: 50px; }

/* 4. sınıf Kesirler: tam sayılı kesir (tam kısım solda, kesir alt alta) ve dokunulan sayı doğrusu */
.k4-tamli { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; }
.k4-tam { font-weight: 800; font-size: 1.2em; }
.k4-dogru.ok { outline: 3px solid var(--ok, #16A34A); border-radius: 12px; }
.k4-dogru.bad { outline: 3px solid var(--bad, #DC2626); border-radius: 12px; }
.k4-iki { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 0 auto 10px; }
.k4-iki-oge { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.k4-iki-oge > b { font-family: 'Baloo 2', sans-serif; font-size: 1.3rem; color: var(--ink); }
/* Kesir karşılaştırmada < = > şıkları büyük */
.uz-opt.k4-isaret { font-size: 3rem; line-height: 1; font-weight: 800; }
@media (max-width: 480px) { .uz-opt.k4-isaret { font-size: 2.4rem; } }

/* 4. sınıf Bir Çokluğun Kesri: eş gruplar (seçili grup renkli), boyanan kareler, şerit modeli */
.k4c-grup.secili { background: #FED7AA; border-color: #EA580C; }
button.k4c-grup { font: inherit; cursor: pointer; }
.k4c-gruplar.ok .k4c-grup.secili, .k4c-kareler.ok .k4c-kare.boyali { border-color: #16A34A; }
.k4c-gruplar.bad, .k4c-kareler.bad { outline: 3px solid #DC2626; border-radius: 12px; }
.k4c-kareler { display: grid; gap: 4px; max-width: 280px; margin: 0 auto 12px; }
.k4c-kare { aspect-ratio: 1; min-width: 36px; border: 2px solid #1F2A44; border-radius: 4px; background: #FFF8EC; cursor: pointer; }
.k4c-kare.boyali { background: #FB923C; }
.k4c-serit-kap { max-width: 420px; margin: 0 auto 12px; font-family: 'Baloo 2', sans-serif; font-weight: 800; }
.k4c-serit { display: flex; max-width: 420px; margin: 0 auto 12px; border: 2.5px solid #1F2A44; border-radius: 6px; overflow: hidden; }
.k4c-serit-kap .k4c-serit { margin: 4px 0; }
.k4c-serit > span { flex: 1; min-height: 40px; display: flex; align-items: center; justify-content: center; border-left: 2px solid #1F2A44; background: #FFF8EC; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.k4c-serit > span:first-child { border-left: 0; }
.k4c-serit > span.dolu { background: #FED7AA; }
.k4c-serit-ust { text-align: center; border-bottom: 2px solid #EA580C; color: #C2410C; font-size: 1.2rem; }
.k4c-serit-alt { text-align: center; border-top: 2px solid #1F2A44; font-size: 1.2rem; color: var(--ink); }
.k4c-cerceve { border: 3px solid; border-radius: 16px; padding: 8px 12px 4px; width: 100%; max-width: 640px; }
.k4c-cerceve .k4c-gruplar { margin-bottom: 6px; }
/* Kesir Problemleri: boyanabilir şerit ve gösterilen çözüm satırları */
.k4p-boya > span { cursor: pointer; }
.k4p-boya.ok { border-color: #16A34A; } .k4p-boya.bad { border-color: #DC2626; }
.k4p-cozum { max-width: 460px; margin: 0 auto 12px; padding: 8px 14px; border: 2px dashed var(--border); border-radius: 12px; background: var(--bg); font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.k4p-cozum p { margin: 4px 0; }

/* Bütün uygulama: görsel (resim, tablo) solda, şıklar sağda (Ciz.yanaAl; dar ekranda alt alta) */
@media (min-width: 760px) {
  .cz-lay.cz-sec-yan { flex-direction: row; align-items: center; justify-content: center; gap: 24px; }
  .cz-lay.cz-sec-yan > .sy-sahne, .cz-lay.cz-sec-yan > .tp3-tablo { flex: 0 1 auto; max-width: 56%; margin: 0; }
  .cz-lay.cz-sec-yan > .cz-side { flex: 0 1 360px; width: auto; min-width: 240px; }
  .cz-sec-yan > .cz-side > .uz-options { margin: 0; }
  .cz-sec-yan > .cz-side > .uz-options.col { width: 100%; }
}

/* Sütun Grafiği: tablo ve grafik yan yana; üç küçük grafik; kurulan grafik */
.k4g-yan { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; margin: 0 auto 10px; }
.k4g-yan > .sy-sahne { margin: 0; }
.k4g-mini { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 auto 10px; }
.k4g-mini .sy-sahne { margin: 0; }
.k4g-sahne.ok { outline: 3px solid #16A34A; } .k4g-sahne.bad { outline: 3px solid #DC2626; }
.k4g-sahne svg { touch-action: none; }

/* Üçgen, Kare ve Dikdörtgen: resimli çoklu seçim */
.tb-coklu-oge.k4s-sekil { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; }
.k4s-harf { font-family: 'Baloo 2', sans-serif; font-size: 1rem; }

/* Küp Açınımı ve Küplerle Yapılar: açınımlar, canlı katlanma, küp kurma ızgarası */
.k4k-acinimlar { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 auto 10px; }
.k4k-acinimlar .sy-sahne { margin: 0; }
.k4k-katla { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 auto 10px; }
.k4k-sahne { perspective: 900px; padding: 30px 40px; min-height: 200px; display: flex; align-items: center; justify-content: center; }
.k4k-duz { position: relative; transform-style: preserve-3d; transition: transform 1s ease; }
.k4k-katla.katli .k4k-duz { transform: scale(1.6) rotateX(-25deg) rotateY(-35deg); }
.k4k-yuz { position: absolute; left: 0; top: 0; box-sizing: border-box; border: 2px solid #1E3A8A; transform-style: preserve-3d; transition: transform 1.2s ease; backface-visibility: visible; }
.k4k-kur { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 auto 8px; }
.k4k-alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; }
.k4k-not { margin: 0 0 6px; font-weight: 700; font-size: .9rem; color: var(--ink-soft, #5B6472); text-align: center; }
.k4k-izgara { display: grid; gap: 6px; justify-content: center; }
.k4k-hucre { width: 52px; height: 52px; border: 2px solid #CBD5E1; border-radius: 8px; background: #fff; font: 800 1.4rem 'Baloo 2', sans-serif; color: #1E3A8A; cursor: pointer; }
.k4k-acinim-izgara .k4k-hucre { width: 44px; height: 44px; }
.k4k-hucre.dolu { background: #93C5FD; border-color: #1E3A8A; }
.k4k-izgara.ok { outline: 3px solid #16A34A; border-radius: 10px; } .k4k-izgara.bad { outline: 3px solid #DC2626; border-radius: 10px; }
.k4k-canli { min-width: 180px; min-height: 120px; display: flex; align-items: center; justify-content: center; }
.k4k-canli .sy-sahne { margin: 0; }
.k4k-bos { color: var(--ink-soft, #5B6472); font-size: .9rem; }
.k4k-harf { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 800 1.5rem 'Baloo 2', sans-serif; color: #1F2A44; pointer-events: none; }

/* Açı Ölçme: sürüklenebilir iletki ve döndürülebilir ışın; harf */
.k4a-yer svg { touch-action: none; }
.k4a-yer.yerde { outline: 3px solid #16A34A; border-radius: 12px; }
.k4a-yer.ok { outline: 3px solid #16A34A; border-radius: 12px; } .k4a-yer.bad { outline: 3px solid #DC2626; border-radius: 12px; }
.k4a-harf { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 6rem; line-height: 1; text-align: center; color: #1F2A44; margin: 0 auto 8px; }

/* Alan Ölçme: boyama sayacı */
.k4al-sayac { text-align: center; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.1rem; color: #3F6212; margin: 4px 0 2px; }

/* Sıvı Ölçme: kaplar bilmecesi adım kartları (alt alta) ve sürüklenen kap */
.sy-sira:has(.k4s-adim-yuva) { flex-direction: column; align-items: stretch; max-width: 560px; margin-left: auto; margin-right: auto; }
.sy-yuva.k4s-adim-yuva { min-height: 46px; justify-content: flex-start; }
.sy-kart.k4s-adim { font-size: 1rem; line-height: 1.25; text-align: left; white-space: normal; }
.k4s-kap svg { touch-action: none; user-select: none; -webkit-user-select: none; }
.k4s-kap.ok { outline: 3px solid #16A34A; border-radius: 12px; } .k4s-kap.bad { outline: 3px solid #DC2626; border-radius: 12px; } /* 2. Matrota tasarım katmanı */ /* ===== Matrota tasarım katmanı: renkler, yazı, üst bar, sınıf menüsü, maskot ve ödüller ===== */
:root:not(#mtz), :root[data-theme="dark"]:not(#mtz) {
  --s-c: #1F6FD6; --s-koyu: #1857AB; --s-acik: #E3EEFC; --s-cizgi: #D9E2F0; --s-zemin: #F4F7FC;
  --bg: var(--s-zemin); --bg-card: #FFFFFF; --ink: #1F2A44; --ink-soft: #56617A;
  --leaf: var(--s-c); --leaf-dark: var(--s-koyu); --sky: var(--s-c); --sky-dark: var(--s-koyu);
  --apple-red: #E5484D; --apple-red-dark: var(--s-c); --sun: #FFB020;
  --amber-soft: #FFF4D6; --amber-ink: #7A5300; --grape: #6D4AD8; --border: var(--s-cizgi);
  --shadow: none; --tint: var(--s-acik);
  --dogru: #1B7F4B; --dogru-zemin: #E1F5EA; --yanlis: #BE3455; --yanlis-zemin: #FDE7EC;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not(#mtz) {
    --bg: var(--s-zemin); --bg-card: #FFFFFF; --ink: #1F2A44; --ink-soft: #56617A;
    --leaf: var(--s-c); --leaf-dark: var(--s-koyu); --sky: var(--s-c); --sky-dark: var(--s-koyu);
    --apple-red: #E5484D; --apple-red-dark: var(--s-c); --sun: #FFB020;
    --amber-soft: #FFF4D6; --amber-ink: #7A5300; --grape: #6D4AD8; --border: var(--s-cizgi);
    --shadow: none; color-scheme: light;
  }
}
:root[data-sinif="2"]:not(#mtz) { --s-c: #0F766E; --s-koyu: #0B5C56; --s-acik: #D9F2EE; --s-cizgi: #CFE6E1; --s-zemin: #F2FAF8; }
:root[data-sinif="3"]:not(#mtz) { --s-c: #C2410C; --s-koyu: #9A330A; --s-acik: #FFE8D4; --s-cizgi: #F3DCC8; --s-zemin: #FFF8F1; }
:root[data-sinif="0"]:not(#mtz) { --s-c: #1F2A44; --s-koyu: #141C30; --s-acik: #E6EAF2; --s-cizgi: #DDE2EC; --s-zemin: #F4F6FA; }
:root[data-sinif="4"]:not(#mtz) { --s-c: #6D4AD8; --s-koyu: #5536B5; --s-acik: #EAE4FB; --s-cizgi: #DDD6F3; --s-zemin: #F7F5FD; }

/* Yazı: her yerde Andika (çalışma kağıdı hariç) */
body:not(.ws-doc), body:not(.ws-doc) :not(#wsSheet):not(#wsSheet *):not(.ws-page):not(.ws-page *) {
  font-family: 'Andika', 'Trebuchet MS', sans-serif;
}
body:not(.ws-doc) { background: var(--bg); color: var(--ink); font-size: 16px; }

/* Üst bar */
html { scroll-padding-top: 80px; }
#questionView, main.card { scroll-margin-top: 80px; }
.top-right .kisa { display: none; }
body:not(.ws-doc) .wrap { padding-top: 0; }
body:not(.ws-doc) header.topbar {
  position: sticky; top: 0; z-index: 40;
  width: 100vw; margin: 0 0 18px calc(50% - 50vw);
  display: flex; align-items: center; justify-content: flex-start; gap: 14px; flex-wrap: nowrap;
  min-height: 64px; box-sizing: border-box;
  padding: 10px max(16px, calc(50vw - 604px));
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
}
body:not(.ws-doc) .brand { color: #FFFFFF; font-size: 1.6rem; font-weight: 700; }
body:not(.ws-doc) .brand span { color: #FFFFFF; }
body:not(.ws-doc) .brand .brand-tag { margin-left: 0; }
.menu-btn {
  flex: none; height: 46px; padding: 0 16px 0 12px; border-radius: 14px; font-size: 1.05rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
}
.menu-btn svg { display: block; }
.menu-btn:active { transform: scale(0.96); }
.menu-btn:focus-visible, .top-right .icon-btn:focus-visible, .top-right .link-btn:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
body:not(.ws-doc) .top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
body:not(.ws-doc) .top-right .icon-btn { width: 44px; height: 44px; border: none; background: rgba(255, 255, 255, 0.18); color: #FFFFFF; box-shadow: none; }
body:not(.ws-doc) .top-right .link-btn { color: #FFFFFF; font-weight: 700; font-size: 0.95rem; padding: 10px 6px; }
body:not(.ws-doc) .top-right .acct-row { display: flex; align-items: center; gap: 4px; }
body:not(.ws-doc) .top-right .acct-row.hidden { display: none; }
body:not(.ws-doc) .top-right .acct-name { color: rgba(255, 255, 255, 0.9); font-size: 0.85rem; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body:has(#practiceView.hidden) .menu-btn, body:has(#practiceView.hidden) .top-right { display: none; }
@media (max-width: 699px) {
  body:not(.ws-doc) .top-right .acct-name { display: none; }
  body:not(.ws-doc) .top-right .link-btn { font-size: 0.9rem; white-space: nowrap; }
  .top-right .uzun { display: none; }
  .top-right .kisa { display: inline; }
  .menu-btn { padding: 0 12px 0 10px; }
}
@media (max-width: 420px) { body:not(.ws-doc) .brand { font-size: 1.3rem; } }


/* Marka: "rota" kelimesinin altından başlangıç noktasından bayrağa uzanan yol; yanında iki satırlı slogan */
body:not(.ws-doc) .brand { min-width: 0; line-height: 1.1; align-items: center; column-gap: 12px; flex-wrap: nowrap; }
body:not(.ws-doc) .brand .bw { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
body:not(.ws-doc) .brand .bw-rota { position: relative; display: inline-block; }
body:not(.ws-doc) .brand .bw-yol { position: absolute; left: -3px; right: -9px; bottom: -10px; width: calc(100% + 12px); height: 14px; overflow: visible; }
body:not(.ws-doc) .brand .brand-tag { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; padding-left: 12px; border-left: 2px solid rgba(255, 255, 255, 0.35); color: rgba(255, 255, 255, 0.92); font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
body:not(.ws-doc) .brand .brand-tag b { font-size: 0.98rem; font-weight: 700; color: #FFFFFF; }
@media (max-width: 699px) { body:not(.ws-doc) .brand .brand-tag { display: none; } }
@media (max-width: 420px) { body:not(.ws-doc) .brand .bw { font-size: 1.4rem; } }


/* Yanlış cevaptan sonra çözüm kartı */
.cozum-kart { margin-top: 14px; background: #FFFFFF; border: 2px solid var(--s-cizgi); border-left: 2px solid var(--s-cizgi); border-radius: 20px; padding: 14px 18px 16px; color: var(--ink); }
.cozum-kart.hidden { display: none; }
.ck-bas { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; color: var(--s-c); }
.ck-bas b { font-size: 1.15rem; font-weight: 800; }
.ck-bas small { margin-left: auto; font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
.ck-soru { margin: 8px 0 4px; font-size: 0.98rem; color: #3D4861; line-height: 1.45; }
.ck-adimlar { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ck-adimlar li { background: var(--s-acik); border-radius: 14px; padding: 10px 16px; display: flex; flex-direction: column; gap: 2px; }
.ck-no { font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.03em; }
.ck-islem { font-size: 1.7rem; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; }
.ck-cevap { margin-top: 10px; font-size: 1.05rem; }
.ck-cevap b { display: inline-block; min-width: 40px; text-align: center; padding: 2px 12px; margin-left: 4px; border-radius: 10px; background: var(--dogru-zemin, #E1F5EA); color: var(--dogru, #1B7F4B); font-size: 1.3rem; font-weight: 800; }
@media (max-width: 560px) { .ck-islem { font-size: 1.4rem; } .ck-bas small { margin-left: 0; width: 100%; } }


/* Menü: alt kısım (Gelişim Takip Paneli, e-posta, çıkış) en altta */
body:not(.ws-doc) .col-left { display: flex; flex-direction: column; }
body:not(.ws-doc) .col-left .menu-alt { margin-top: auto; }
/* Başlıktaki Matrota yazısı ana ekrana götürür */
body:not(.ws-doc) #brandHome { cursor: pointer; border-radius: 10px; }
body:not(.ws-doc) #brandHome:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 4px; }
/* İlerleme, maskot ve ödüller yalnızca soru ekranında; konu, seviye ve ana ekranlarda orta alan tam genişlik */
body:not(.ws-doc):has(#questionView.hidden) .col-right { display: none; }
@media (min-width: 1040px) { body:not(.ws-doc):has(#questionView.hidden) .app-shell { grid-template-columns: minmax(0, 1fr); grid-template-areas: "center"; } }
@media (max-width: 1039px) { body:not(.ws-doc):has(#questionView.hidden) .app-shell { grid-template-areas: "center"; } }
body:not(.ws-doc) .topics-view[data-gorunum="topics"] .konu-kartlar, body:not(.ws-doc) .topics-view[data-gorunum="levels"] .konu-kartlar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { body:not(.ws-doc) .topics-view[data-gorunum] .konu-kartlar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { body:not(.ws-doc) .topics-view[data-gorunum] .konu-kartlar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Ana ekranda ödül toplamı */
.odul-toplam { margin-top: 18px; background: #FFF8E6; border: 2px solid #FFE3A3; border-radius: 20px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ot-bas { display: flex; flex-direction: column; gap: 2px; }
.ot-bas b { font-size: 1.15rem; font-weight: 800; }
.ot-bas span { font-size: 0.9rem; color: var(--ink-soft); }
.ot-liste { display: flex; gap: 10px; flex-wrap: wrap; }
.ot-oge { display: flex; align-items: center; gap: 8px; background: #FFFFFF; border: 2px solid #EEE3C4; border-radius: 16px; padding: 6px 14px 6px 8px; }
.ot-oge .odul { display: block; }
.ot-metin { display: flex; flex-direction: column; line-height: 1.05; }
.ot-metin b { font-size: 1.45rem; font-weight: 900; }
.ot-metin small { font-size: 0.8rem; color: var(--ink-soft); font-weight: 700; }
.ot-oge:not(.acik) .ot-metin b { color: #8A93A6; }
/* Giriş ekranı okları: simge tam ortada */
body:not(.ws-doc) .intro-arrow { display: inline-flex; align-items: center; justify-content: center; padding: 0; }
body:not(.ws-doc) .intro-arrow svg { display: block; }
/* ===== Uygulama yerleşimi: cevap kutuları, sınıf menüsü, sütunlar, ödüller, soru alanı, konu listesi ===== */

/* Birden çok cevap kutusu: ad + kutu çiftleri iki sütunda */
.cz-line.cz-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; min-width: 260px; }
.cz-pair .cz-word { font-size: 0.92rem; }
.cz-pair { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
/* Sınıf menüsü (hamburger) */
body:not(.ws-doc) .col-left {
  position: fixed; z-index: 60; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); max-height: none;
  background: #FFFFFF; padding: calc(18px + env(safe-area-inset-top, 0px)) 18px 18px; overflow-y: auto;
  transform: translateX(-105%); transition: transform 0.22s ease; box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  visibility: hidden;
}
body.menu-acik:not(.ws-doc) .col-left { transform: none; visibility: visible; box-shadow: 0 0 40px rgba(31, 42, 68, 0.25); }
.menu-perde { position: fixed; inset: 0; z-index: 55; background: rgba(31, 42, 68, 0.35); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
body.menu-acik .menu-perde { opacity: 1; pointer-events: auto; }
.menu-bas { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.menu-bas b { font-size: 1.3rem; }
.menu-kapat { width: 44px; height: 44px; border: none; border-radius: 12px; background: var(--bg); color: var(--ink); font-size: 1.3rem; cursor: pointer; }
body:not(.ws-doc) .col-left .topics { grid-template-columns: 1fr; gap: 10px; }
body:not(.ws-doc) .grade-btn {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px;
  background: #FFFFFF; border: 2px solid var(--s-cizgi); border-radius: 16px; color: var(--ink);
  font-size: 1.1rem; font-weight: 700; box-shadow: none; text-align: left;
}
body:not(.ws-doc) .grade-btn::before {
  content: attr(data-no); flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: #FFFFFF; background: var(--g, #1F6FD6); font-size: 1.3rem;
}
body:not(.ws-doc) .grade-btn .chev { display: inline; margin-left: auto; }
body:not(.ws-doc) .grade-btn.active { background: var(--s-acik); border-color: var(--s-c); color: var(--ink); }
body:not(.ws-doc) .grade-btn.active .chev { color: var(--s-c); }

/* Yerleşim: orta + sağ sütun */
@media (min-width: 1040px) {
  body:not(.ws-doc) .app-shell { grid-template-columns: minmax(0, 1fr) 250px; grid-template-areas: "center right"; }
  body:not(.ws-doc) .col-right { position: sticky; top: 82px; display: flex; flex-direction: column; gap: 12px; }
}
@media (max-width: 1039px) {
  body:not(.ws-doc) .app-shell { grid-template-columns: minmax(0, 1fr); grid-template-areas: "center" "arti" "prog" "odul"; gap: 12px; }
  body:not(.ws-doc):has(#questionView.hidden) .app-shell { grid-template-areas: "arti" "center" "prog" "odul"; }
  body:not(.ws-doc) .col-right { display: contents; }
  .arti-kart { grid-area: arti; }
  .ilerleme-kart { grid-area: prog; }
  .odul-kart { grid-area: odul; }
}

/* Sağ sütun kartları */
.arti-kart, .yan-kart { background: #FFFFFF; border: 2px solid var(--s-cizgi); border-radius: 18px; padding: 12px 14px; }
.arti-kart { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.arti { width: 92px; height: 138px; flex: none; }
.arti-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.arti-balon {
  align-self: stretch; background: var(--s-acik); border: 2px solid var(--s-acik); color: var(--ink);
  border-radius: 14px; padding: 9px 12px; font-size: 1rem; font-weight: 700; line-height: 1.3; text-align: center;
  min-height: 1.3em;
}
.arti-balon[data-ton="iyi"] { background: var(--dogru-zemin); border-color: var(--dogru); color: var(--dogru); }
.arti-balon[data-ton="hata"] { background: var(--yanlis-zemin); border-color: var(--yanlis); color: var(--yanlis); }
.arti-balon[data-ton="odul"] { background: #FFF4D6; border-color: #FFC531; color: #7A5300; }
.arti-balon.pop { animation: balon-pop 0.35s ease; }
@keyframes balon-pop { 0% { transform: scale(0.92); opacity: 0.4; } 100% { transform: scale(1); opacity: 1; } }
@media (max-width: 1039px) {
  .arti-kart { flex-direction: row; padding: 8px 12px; gap: 12px; }
  .arti { width: 56px; height: 84px; }
  .arti-balon { flex: 1 1 auto; align-self: center; text-align: left; font-size: 1.02rem; }
}
body:not(.ws-doc) .side-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-soft); margin: 0 0 8px; }
body:not(.ws-doc) .score-pill, body:not(.ws-doc) .best-pill {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  background: none; border: none; box-shadow: none; border-radius: 0; padding: 4px 0;
  font-size: 1rem; font-weight: 500; color: var(--ink);
}
body:not(.ws-doc) .score-pill b, body:not(.ws-doc) .best-pill b { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
body:not(.ws-doc) #curStreak { color: var(--s-c); }
@media (max-width: 1039px) {
  .ilerleme-kart { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 10px; }
  .ilerleme-kart .side-label { grid-column: 1 / -1; }
  body:not(.ws-doc) .ilerleme-kart .score-pill, body:not(.ws-doc) .ilerleme-kart .best-pill { flex-direction: column; align-items: center; gap: 0; font-size: 0.9rem; color: var(--ink-soft); }
  body:not(.ws-doc) .ilerleme-kart b { font-size: 1.4rem; }
}

/* Ödüller */
body:not(.ws-doc) .badge-strip { display: flex; gap: 10px; margin: 0; flex-wrap: wrap; }
.odul-tile {
  position: relative; width: 56px; height: 56px; border-radius: 14px; box-sizing: border-box;
  background: #EEF1F6; border: 2px solid #DDE2EC; display: flex; align-items: center; justify-content: center;
}
.odul-tile.acik { background: #FFF4D6; border-color: #FFE3A3; }
.odul-tile svg.odul { display: block; }
.odul-tile .kilit { position: absolute; right: -6px; bottom: -6px; }
.odul-tile .badge-count {
  position: absolute; right: -6px; top: -6px; min-width: 22px; height: 22px; padding: 0 5px; box-sizing: border-box;
  border-radius: 999px; background: var(--s-c); color: #FFFFFF; font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.odul-tile.yeni { animation: odul-yeni 1.2s ease 2; }
@keyframes odul-yeni { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.18) rotate(-6deg); } 70% { transform: scale(0.96); } }

/* Soru alanı */
body:not(.ws-doc) main.card { background: #FFFFFF; border: 2px solid var(--s-cizgi); border-radius: 20px; box-shadow: none; }
body:not(.ws-doc) .topics-view { background: #FFFFFF; border: 2px solid var(--s-cizgi); border-radius: 20px; box-shadow: none; }
body:not(.ws-doc) .mascot-row { display: none; }
body:not(.ws-doc) .q-bar-name { font-size: 1.3rem; font-weight: 700; color: var(--ink); }
body:not(.ws-doc) .back-btn { background: #FFFFFF; border: 2px solid var(--s-cizgi); color: var(--s-c); font-weight: 700; border-radius: 12px; box-shadow: none; min-height: 44px; }
body:not(.ws-doc) .back-btn:hover { border-color: var(--s-c); }
body:not(.ws-doc) .problem { font-weight: 700; color: var(--ink); }
body:not(.ws-doc) .problem .op, body:not(.ws-doc) .problem .q { color: var(--s-c); }
body:not(.ws-doc) .instruction { background: var(--s-acik); border-color: transparent; color: var(--ink); border-radius: 12px; }
body:not(.ws-doc) .orchard.obj-row .obj-group { background: #FFFFFF; border: 2px solid var(--s-cizgi); border-radius: 14px; }
body:not(.ws-doc) .orchard.obj-row .sep { color: var(--s-c); }
body:not(.ws-doc) .answers button {
  background: #FFFFFF; border: 2px solid var(--s-cizgi); border-radius: 14px; color: var(--ink);
  font-weight: 700; box-shadow: none;
}
body:not(.ws-doc) .answers button:hover:not([disabled]) { border-color: var(--s-c); }
body:not(.ws-doc) .answers button.correct { background: var(--dogru-zemin); border-color: var(--dogru); color: var(--dogru); }
body:not(.ws-doc) .answers button.incorrect { background: var(--yanlis-zemin); border-color: var(--yanlis); color: var(--yanlis); }
@media (min-width: 700px) {
  body:not(.ws-doc) .answers:has(> button:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Geri bildirim yazısı MatUzay'ın balonunda gösterilir; ekran okuyucular için yerinde kalır */
body:not(.ws-doc) #feedback.good, body:not(.ws-doc) #feedback.hmm {
  position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
body:not(.ws-doc) .dots span { background: var(--s-cizgi); }
body:not(.ws-doc) .dots span.filled { background: var(--sun); }
body:not(.ws-doc) .seg { background: var(--bg); border-color: var(--s-cizgi); }
body:not(.ws-doc) .seg button.active { background: var(--s-c); color: #FFFFFF; }
body:not(.ws-doc) .mastery-banner { background: #FFF4D6; border-color: #FFE3A3; }
body:not(.ws-doc) .mastery-actions .btn-advance { background: var(--s-c); }
body:not(.ws-doc) footer { color: var(--ink-soft); }

/* Konu listesi */
body:not(.ws-doc) .tv-title { color: var(--ink); font-weight: 700; }
body:not(.ws-doc) .topic-btn { background: #FFFFFF; border: 2px solid var(--s-cizgi); border-radius: 16px; color: var(--ink); box-shadow: none; }
body:not(.ws-doc) .tv-grid .topic-btn:hover { border-color: var(--s-c); }
body:not(.ws-doc) .topic-btn.active { background: var(--s-acik); border-color: var(--s-c); }
/* MatUzay'ın hareketleri */
.arti .f, .arti .d { display: none; }
.arti-govde, .arti-sallan, .arti-yildiz-don { transform-box: view-box; }
.arti-govde { animation: arti-zipla 1.8s ease-in-out infinite; }
.arti[data-duygu="kutlama"] .arti-govde, .arti[data-duygu="kupa"] .arti-govde { animation: arti-sevin 0.55s ease-in-out infinite; }
.arti[data-duygu="uykulu"] .arti-govde { animation: arti-uyku 2.6s ease-in-out infinite; }
.arti[data-duygu="uzgun"] .arti-govde { animation: none; }
.arti-sallan { transform-origin: 70px 196px; }
.arti[data-duygu="merhaba"] .arti-sallan, .arti[data-duygu="dinliyor"] .arti-sallan { animation: arti-sallan 1.4s ease-in-out infinite; }
.arti[data-duygu="uzgun"] .arti-sallan { animation: arti-boyun 2s ease-in-out infinite; }
.arti-yildiz-don { transform-origin: 126px 54px; animation: arti-don 1.2s ease-in-out infinite; }
.arti-yas { animation: arti-yas 1.6s ease-in infinite; }
.arti-yanson { animation: arti-yanson 1.2s ease-in-out infinite; }
.arti-yanson.gec { animation-delay: 0.4s; }
.arti-yanson.hizli { animation-duration: 0.8s; }
.arti-suzul { animation: arti-suzul 1.6s ease-in-out infinite; }
.arti-nota { animation: arti-nota 1.8s ease-out infinite; }
.arti-nota.gec { animation-delay: 0.9s; }
.arti-z { opacity: 0; animation: arti-yanson 2.4s ease-in-out infinite; }
.arti-z.z2 { animation-delay: 0.6s; }
.arti-z.z3 { animation-delay: 1.2s; }
.arti-k { animation: arti-konfeti 1.7s linear infinite; transform-box: fill-box; transform-origin: center; }
.arti-k.k2 { animation-duration: 2s; animation-delay: 0.3s; }
.arti-k.k3 { animation-duration: 1.5s; animation-delay: 0.6s; }
.arti-k.k4 { animation-duration: 1.9s; animation-delay: 0.1s; }
.arti-k.k5 { animation-duration: 1.6s; animation-delay: 0.9s; }
.arti-k.k6 { animation-duration: 1.8s; animation-delay: 1.2s; }
.arti-k.k7 { animation-duration: 1.4s; animation-delay: 0.45s; }
.arti-k.k8 { animation-duration: 1.65s; animation-delay: 1.05s; }
@keyframes arti-zipla { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes arti-sevin { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes arti-uyku { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2px); } }
@keyframes arti-sallan { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes arti-boyun { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(0deg); } }
@keyframes arti-don { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
@keyframes arti-yas { 0% { transform: translateY(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
@keyframes arti-yanson { 0%, 100% { opacity: 0.15; } 50% { opacity: 1; } }
@keyframes arti-suzul { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes arti-nota { 0% { transform: translate(0, 0); opacity: 1; } 60% { opacity: 1; } 100% { transform: translate(6px, -24px); opacity: 0; } }
@keyframes arti-konfeti { 0% { transform: translateY(-20px) rotate(0deg); opacity: 1; } 75% { opacity: 1; } 100% { transform: translateY(200px) rotate(360deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .arti *, .arti-balon.pop, .odul-tile.yeni { animation: none !important; }
  .arti-z { opacity: 1; }
  body:not(.ws-doc) .col-left, .menu-perde { transition: none; }
}
/* ===== Adım 2-3: konu kartları, sınıf menüsü, devam kartı, giriş ekranı ===== */
body:not(.ws-doc) .topic-badges { gap: 2px; }
body:not(.ws-doc) .topic-badge-mini { opacity: 1; filter: none; font-size: 0; line-height: 0; display: inline-flex; width: auto; height: auto; }
body:not(.ws-doc) .topic-badge-mini svg { display: block; }
.gn-ad { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gn-ad small { font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); }
body:not(.ws-doc) .grade-btn.yakinda { color: var(--ink-soft); background: #F4F6FA; border-style: dashed; }
body:not(.ws-doc) .grade-btn.yakinda::before { opacity: 0.45; }
.devam-kart {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left;
  background: var(--s-acik); border: 2px solid transparent; border-radius: 20px; padding: 16px 18px; margin: 0 0 18px;
  color: var(--ink); cursor: pointer; font: inherit;
}
@media (hover: hover) { .devam-kart:hover { border-color: var(--s-c); } } /* dokunmatik ekranda parmak çekilince renk takılı kalmasın */
.devam-kart:focus-visible { outline: 3px solid var(--s-c); outline-offset: 2px; }
.dk-metin { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dk-metin small { font-size: 0.8rem; letter-spacing: 0.06em; color: var(--ink-soft); font-weight: 700; }
.dk-metin b { font-size: 1.35rem; }
.dk-metin span { font-size: 0.98rem; color: #3D4861; }
.dk-btn { flex: none; height: 52px; padding: 0 20px; border-radius: 14px; background: var(--s-c); color: #FFFFFF; font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ilk-kart { background: #FFFFFF; border: 2px dashed var(--s-cizgi); border-radius: 20px; padding: 14px 18px; margin: 0 0 18px; display: flex; flex-direction: column; gap: 3px; }
.ilk-kart small { font-size: 0.8rem; letter-spacing: 0.06em; color: var(--ink-soft); font-weight: 700; }
.ilk-kart b { font-size: 1.25rem; }
@media (max-width: 520px) { .devam-kart { flex-direction: column; align-items: stretch; } .dk-btn { justify-content: center; } }
/* ===== Konu ekranları (tasarım: sınıf kartları → konu kartları → seviye kartları) ===== */
.tv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.tv-head-txt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.tv-head .tv-title { margin: 0; font-size: 1.55rem; font-weight: 800; }
.tv-head .tv-sub { margin: 0; font-size: 1rem; }
.tv-head .tv-back { flex: none; }
body:not(.ws-doc) .topics-view[data-gorunum] .tv-group-title { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin: 4px 0 10px; text-transform: none; letter-spacing: 0; }
.sinif-kartlar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sinif-kart { --g: #1F6FD6; height: 112px; padding: 0 18px; border: none; border-radius: 22px; background: var(--g); color: #FFFFFF; font: inherit; text-align: left; display: flex; align-items: center; gap: 16px; cursor: pointer; }
@media (hover: hover) { .sinif-kart:hover { filter: brightness(1.06); } } /* dokunmatik ekranda parmak çekilince renk takılı kalmasın */
.sinif-kart:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sk-no { width: 72px; height: 72px; flex: none; border-radius: 20px; background: rgba(255, 255, 255, 0.22); font-size: 48px; font-weight: 900; line-height: 1; display: flex; align-items: center; justify-content: center; }
.sk-ad { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sk-ad b { font-size: 1.5rem; font-weight: 900; }
.sk-ad span { font-size: 0.95rem; }
.sk-ok { flex: none; }
.sinif-kart.kapali { background: color-mix(in srgb, var(--g) 14%, #FFFFFF); color: var(--g); cursor: default; }
.sinif-kart.kapali .sk-no { background: #FFFFFF; }
.sinif-kart.kapali .sk-ad span { color: var(--ink); }
.sinif-kart.kapali:hover { filter: none; }
.konu-kartlar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.konu-kart { min-height: 136px; padding: 14px; border: 2px solid var(--s-cizgi); border-radius: 18px; background: #FFFFFF; color: var(--ink); font: inherit; text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; cursor: pointer; }
@media (hover: hover) { .konu-kart:hover { border-color: var(--s-c); } } /* dokunmatik ekranda parmak çekilince renk takılı kalmasın */
.konu-kart:focus-visible { outline: 3px solid var(--s-c); outline-offset: 2px; }
.konu-kart.active { border-color: var(--s-c); background: var(--s-acik); }
.kk-ust { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kk-ad { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kk-ad b { font-size: 1.12rem; font-weight: 900; line-height: 1.2; }
.kk-ad span { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.3; }
.kk-no { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--s-acik); color: var(--s-c); font-size: 1.5rem; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.seviye-kartlar .konu-kart { min-height: 170px; }
.seviye-kartlar .kk-ad b { font-size: 1.25rem; }
.seviye-kartlar .kk-ust { align-items: flex-start; }
.tk-oduller { display: flex; gap: 6px; align-items: center; min-height: 44px; }
.tk-oduller .topic-badge-mini.earned svg { filter: drop-shadow(0 2px 3px rgba(184, 134, 11, 0.35)) saturate(1.25); }
.tk-oduller .topic-badge-mini { display: inline-flex; line-height: 0; }
.ana-ekran-btn { width: 100%; min-height: 48px; padding: 0 14px; margin: 0 0 8px; border: none; border-radius: 14px; background: var(--ink); color: #FFFFFF; font: inherit; font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.ana-ekran-btn:focus-visible { outline: 3px solid var(--s-c); outline-offset: 2px; }
@media (max-width: 900px) { .konu-kartlar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .sinif-kartlar { grid-template-columns: 1fr; }
  .sinif-kart { height: 92px; }
  .sk-no { width: 58px; height: 58px; font-size: 38px; }
  .konu-kart { min-height: 118px; padding: 12px; }
  .kk-ad b { font-size: 1rem; }
  .tv-head { flex-direction: column-reverse; align-items: stretch; }
  .tv-head .tv-back { align-self: flex-start; }
}

/* Giriş ekranı: lacivert sol panel + beyaz form */
body:has(#authView:not(.hidden)) header.topbar { display: none; }
body:has(#authView:not(.hidden)) .wrap { padding-top: 24px; }
body:not(.ws-doc) .auth-wrap { gap: 0; background: #FFFFFF; border-radius: 26px; overflow: hidden; align-items: stretch;
}
@media (min-width: 900px) { body:not(.ws-doc) .auth-wrap { grid-template-columns: 460px minmax(0, 1fr); } }
body:not(.ws-doc) .intro { background: #1F2A44; color: #FFFFFF; border: none; border-radius: 0; padding: 26px 28px; box-shadow: none; display: flex; flex-direction: column; gap: 14px; }
.intro-bas { display: flex; align-items: center; gap: 14px; }
.intro-bas .arti { width: 72px; height: 100px; box-sizing: border-box; padding: 6px 8px 4px; background: #FFFFFF; border-radius: 18px; }
.intro-bas b { display: block; font-size: 2.1rem; line-height: 1.05; }
.intro-bas span { display: block; font-size: 1rem; color: #C9D3E6; font-weight: 700; }
body:not(.ws-doc) .intro-art { background: #FFFFFF; border-radius: 18px; }
body:not(.ws-doc) .intro-slide h3 { color: #FFFFFF; font-size: 1.25rem; margin-top: 14px; }
body:not(.ws-doc) .intro-slide p { color: #C9D3E6; font-size: 0.98rem; }
body:not(.ws-doc) .intro-arrow { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: #FFFFFF; }
body:not(.ws-doc) .intro-dots button::after { background: rgba(255, 255, 255, 0.3); }
body:not(.ws-doc) .intro-dots button.on::after { background: #FFB020; }
body:not(.ws-doc) .auth-wrap .auth-card { border: none; border-radius: 0; box-shadow: none; background: #FFFFFF; align-self: center; }
body:not(.ws-doc) .auth-card h2 { color: var(--ink); font-size: 1.9rem; }
body:not(.ws-doc) .auth-field input { background: #FFFFFF; border: 2px solid #DDE2EC; border-radius: 14px; min-height: 52px; font-size: 1.05rem; color: var(--ink); }
body:not(.ws-doc) .auth-field input:focus { border-color: #1F2A44; }
body:not(.ws-doc) .auth-submit, body:not(.ws-doc) .primary-btn { background: #1F2A44; border-color: #1F2A44; color: #FFFFFF; border-radius: 14px; min-height: 52px; font-weight: 700; }
body:not(.ws-doc) .auth-links .link-btn { color: #1F2A44; }
@media (max-width: 899px) { body:not(.ws-doc) .intro { padding: 20px; } }

@media (max-width: 600px) { body:not(.ws-doc) .intro .intro-slides, body:not(.ws-doc) .intro .intro-nav { display: none; } }

/* Menünün altı: Veli / Öğretmen paneli ve çıkış */
.menu-alt { margin-top: 18px; padding-top: 16px; border-top: 2px solid #E3E7EF; display: flex; flex-direction: column; gap: 10px; }
body:not(.ws-doc) .menu-oge {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 14px;
  background: #FFFFFF; border: 2px solid #DDE2EC; border-radius: 16px; color: var(--ink);
  font-size: 1.05rem; font-weight: 700; text-align: left; cursor: pointer; text-decoration: none;
}
body:not(.ws-doc) .menu-oge:hover { border-color: var(--s-c); }
body:not(.ws-doc) .menu-oge svg { flex: none; color: var(--s-c); }
body:not(.ws-doc) .menu-alt .acct-row { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
body:not(.ws-doc) .menu-alt .acct-row.hidden { display: none; }
body:not(.ws-doc) .menu-alt .acct-name { font-size: 0.9rem; color: var(--ink-soft); padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body:not(.ws-doc) .menu-oge.cikis { color: #BE3455; border-color: #F3C9D3; justify-content: center; }

.arti[data-duygu="mutlu"] .f-normal { display: inline; }
.arti[data-duygu="merhaba"] .f-normal,
.arti[data-duygu="merhaba"] .d-el { display: inline; }
.arti[data-duygu="kutlama"] .f-mutlu,
.arti[data-duygu="kutlama"] .d-konfeti { display: inline; }
.arti[data-duygu="uzgun"] .f-uzgun { display: inline; }
.arti[data-duygu="cesaret"] .f-kararli,
.arti[data-duygu="cesaret"] .d-guc { display: inline; }
.arti[data-duygu="dusunuyor"] .f-dusun,
.arti[data-duygu="dusunuyor"] .d-soru { display: inline; }
.arti[data-duygu="sasirdi"] .f-sasir,
.arti[data-duygu="sasirdi"] .d-parilti { display: inline; }
.arti[data-duygu="dinliyor"] .f-dinle,
.arti[data-duygu="dinliyor"] .d-kulaklik,
.arti[data-duygu="dinliyor"] .d-nota { display: inline; }
.arti[data-duygu="yildiz"] .f-mutlu,
.arti[data-duygu="yildiz"] .d-yildiz,
.arti[data-duygu="yildiz"] .d-parilti { display: inline; }
.arti[data-duygu="madalya"] .f-mutlu,
.arti[data-duygu="madalya"] .d-madalya,
.arti[data-duygu="madalya"] .d-parilti { display: inline; }
.arti[data-duygu="kupa"] .f-mutlu,
.arti[data-duygu="kupa"] .d-kep,
.arti[data-duygu="kupa"] .d-kupa,
.arti[data-duygu="kupa"] .d-konfeti { display: inline; }
.arti[data-duygu="uykulu"] .f-uyku,
.arti[data-duygu="uykulu"] .d-zzz { display: inline; }
/* ===== Uzay ödülleri (MatUzay Tasarım · Ödüller · uzay yolculuğu): yalnızca soru kartının içinde ===== */
.uo-soluk { filter: grayscale(1); opacity: .4; }
.uo-ik { display: block; flex: none; }
.uo-perde { position: absolute; inset: 0; z-index: 45; border-radius: inherit; overflow: hidden; background: rgba(17, 23, 58, .55); animation: uo-belir .25s ease-out both; }
main.card.reward-open { min-height: 540px; }
.uo-devam { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 30px; border: 0; border-radius: 16px; background: #FFD84D; color: #1F2A44; font-family: Andika, 'Trebuchet MS', sans-serif; font-size: 1.2rem; font-weight: 700; cursor: pointer; box-shadow: 0 8px 20px rgba(17, 23, 58, .35); opacity: 0; animation: uo-belir .3s ease-out .5s forwards; }
.uo-devam:hover { background: #FFE27A; }
.uo-devam:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
.uo-devam:active { transform: translateX(-50%) scale(.97); }
.uo-perde.uo-kartli { background: rgba(17, 23, 58, .45); }
.uo-kutu { position: absolute; left: 50%; top: 50%; width: 600px; height: 440px; transform-origin: 50% 50%; }
.uo-kutu * { box-sizing: border-box; }
@keyframes uo-belir { from { opacity: 0; } to { opacity: 1; } }
.uo-sahne { position: absolute; inset: 12px; border-radius: 18px; overflow: hidden; background: radial-gradient(ellipse at 70% 20%, #2B3A8C 0%, #1A2357 45%, #11173A 100%); font-family: Andika, 'Trebuchet MS', sans-serif; }
.uo-abs { position: absolute; }
.uo-sahne img.uo-abs { width: auto; max-width: none; }
.uo-nokta { position: absolute; border-radius: 50%; background: #FFFFFF; animation: uo-pirilti 2.4s ease-in-out infinite; }
@keyframes uo-pirilti { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.uo-yazi { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: #FFFFFF; animation: uo-yazi .5s ease-out both; }
.uo-yazi b { font-size: 30px; line-height: 1.1; color: #FFD84D; }
.uo-yazi span { font-size: 17px; color: #DCE3F7; padding: 0 16px; }
.uo-yazi.uo-yazi-sol { left: 24px; right: auto; align-items: flex-start; text-align: left; max-width: 300px; bottom: 30px; }
.uo-yazi.uo-yazi-sol span { padding: 0; }
@keyframes uo-yazi { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes uo-sallan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes uo-don { to { transform: rotate(360deg); } }
/* 20: rokete binme */
.uo-s20-astro { animation: uo-s20a 1.4s ease-in both; }
@keyframes uo-s20a { 0% { transform: translate(0, 30px); opacity: 1; } 80% { transform: translate(170px, -40px) scale(.7); opacity: 1; } 100% { transform: translate(185px, -46px) scale(.45); opacity: 0; } }
.uo-s20-dik { animation: uo-s20d 1.6s linear both; }
@keyframes uo-s20d { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
.uo-s20-rampa { animation: uo-s20d 2s linear both; }
.uo-s20-binen { opacity: 0; animation: uo-s20b 1.1s ease-out 1.35s both, uo-sallan 1.6s ease-in-out 2.45s infinite; }
@keyframes uo-s20b { 0% { opacity: 0; transform: scale(.5); } 45% { opacity: 1; transform: scale(1.12); } 70% { transform: scale(.96) rotate(-3deg); } 100% { opacity: 1; transform: scale(1) translateY(-6px); } }
.uo-s20-hiz { height: 4px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.75)); opacity: 0; animation: uo-s20h .7s linear infinite; }
@keyframes uo-s20h { 0% { transform: translateX(160px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateX(-420px); opacity: 0; } }
/* 50: yıldıza ulaşma */
.uo-s50-isin { opacity: 0; animation: uo-s50i .6s ease-out 1.9s both, uo-don 9s linear 1.9s infinite; }
@keyframes uo-s50i { from { opacity: 0; } to { opacity: 1; } }
.uo-s50-yildiz { transform-origin: 50% 50%; animation: uo-s50y 2s ease-in both, uo-s50n 1.8s ease-in-out 2.4s infinite; }
@keyframes uo-s50y { 0% { transform: scale(.25); opacity: .6; } 85% { transform: scale(1); opacity: 1; } 92% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes uo-s50n { 0%, 100% { filter: drop-shadow(0 0 10px #FFD84D); } 50% { filter: drop-shadow(0 0 30px #FFD84D); } }
.uo-s50-roket { animation: uo-s50r 2s ease-in both; }
@keyframes uo-s50r { 0% { transform: translate(0, 0) scale(.7); opacity: 1; } 88% { transform: translate(300px, -120px) scale(.85); opacity: 1; } 100% { transform: translate(330px, -130px) scale(.4); opacity: 0; } }
.uo-s50-poz { opacity: 0; animation: uo-s50p .6s ease-out 1.95s both, uo-sallan 1.6s ease-in-out 2.6s infinite; }
@keyframes uo-s50p { 0% { opacity: 0; transform: scale(.3); } 60% { opacity: 1; transform: scale(1.15); } 100% { opacity: 1; transform: scale(1); } }
.uo-s50-kivilcim { opacity: 0; animation: uo-s50k 1.1s ease-out 1.95s both; }
@keyframes uo-s50k { 0% { opacity: 1; transform: translate(0, 0) scale(.4); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); } }
/* 100: gezegene ulaşma */
.uo-s100-gez { transform-origin: 50% 50%; animation: uo-s100g 2.1s ease-in-out both; }
@keyframes uo-s100g { 0% { transform: translate(90px, -60px) scale(.22); } 100% { transform: none; } }
.uo-s100-roket { animation: uo-s100r 2.1s ease-in both; }
@keyframes uo-s100r { 0% { transform: translate(0, 0) scale(.8); opacity: 1; } 85% { transform: translate(310px, 10px) scale(.7); opacity: 1; } 100% { transform: translate(330px, 20px) scale(.35); opacity: 0; } }
.uo-s100-poz { opacity: 0; animation: uo-s50p .6s ease-out 2.1s both, uo-sallan 1.8s ease-in-out 2.7s infinite; }
.uo-s100-bayrak { opacity: 0; transform-origin: 0 100%; animation: uo-s100b .5s ease-out 2.45s both; }
@keyframes uo-s100b { 0% { opacity: 0; transform: scaleY(0); } 100% { opacity: 1; transform: scaleY(1); } }
/* gezegenden sonra: yıldız kümesi */
.uo-k-yildiz { opacity: 0; animation: uo-k-gel 1s cubic-bezier(.2,.8,.3,1) both; }
@keyframes uo-k-gel { 0% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(.3); } 100% { opacity: 1; transform: none; } }
.uo-k-cizgi { stroke-dasharray: 400; stroke-dashoffset: 400; animation: uo-k-ciz 1s ease-out 1.1s forwards; }
@keyframes uo-k-ciz { to { stroke-dashoffset: 0; } }
.uo-k-isik { opacity: 0; animation: uo-s50i .6s ease-out 1.8s both, uo-s50n 2s ease-in-out 2.4s infinite; }
.uo-kumeler { left: 0; right: 0; top: 236px; display: flex; justify-content: center; gap: 8px; }
.uo-kumeler > span { width: 44px; height: 40px; border-radius: 12px; border: 2px solid; display: flex; align-items: center; justify-content: center; }
.uo-k-yeni { animation: uo-k-yeni .6s ease-out 2.1s both; }
@keyframes uo-k-yeni { 0% { opacity: .25; transform: scale(1); } 60% { opacity: 1; transform: scale(1.5); } 100% { opacity: 1; transform: scale(1); } }
/* tebrik kartı (10, 30, 40, 60, 70, 80, 90) */
.uo-tkart { position: absolute; left: 50%; top: 50%; width: 400px; margin: 0 0 0 -200px; transform: translateY(-50%); overflow: hidden; border-radius: 24px; background: linear-gradient(160deg, #233072, #141B3D); color: #FFFFFF; padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 18px 40px rgba(17,23,58,.4); font-family: Andika, 'Trebuchet MS', sans-serif; animation: uo-t-gir .45s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes uo-t-gir { 0% { opacity: 0; transform: translateY(-50%) scale(.6) translateY(30px); } 100% { opacity: 1; transform: translateY(-50%); } }
.uo-tkart-yildiz { position: absolute; left: 0; top: 0; }
.uo-tkart-ust { position: relative; display: flex; align-items: center; gap: 16px; }
.uo-tpoz { height: 112px; width: auto; max-width: none; flex: none; animation: uo-sallan 1.6s ease-in-out .5s infinite; }
.uo-tkart-metin { display: flex; flex-direction: column; gap: 6px; }
.uo-tkart-metin small { font-size: 15px; font-weight: 700; color: #9DB3E6; letter-spacing: 1px; }
.uo-tkart-metin b { font-size: 27px; font-weight: 700; line-height: 1.1; color: #FFD84D; }
.uo-tkart-metin span { font-size: 16px; color: #DCE3F7; line-height: 1.35; }
.uo-tkart-alt { position: relative; display: flex; flex-direction: column; gap: 6px; }
.uo-ilerle { position: relative; height: 10px; border-radius: 5px; background: rgba(255,255,255,.18); margin: 0 11px; }
.uo-dolu { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: #FFD84D; animation: uo-dol 1s ease-out .4s both; }
@keyframes uo-dol { from { width: 0; } }
.uo-durak { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2px solid #FFD84D; display: flex; align-items: center; justify-content: center; font-size: 11px; line-height: 1; }
.uo-tkart-not { display: flex; justify-content: space-between; font-size: 13px; color: #9DB3E6; padding-top: 6px; }
/* Hareketi azalt ayarı açıksa ödül perdesi animasyonları anında biter (erişilebilirlik; !important bilinçli) */
@media (prefers-reduced-motion: reduce) {
  .uo-perde, .uo-perde * { animation-duration: .01s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
}
/* soru ekranı: bu konunun ödülleri */
.odul-tile.uo-kume-tile { width: auto; padding: 0 10px 0 6px; gap: 4px; }
.odul-tile.uo-kume-tile b { font-size: 0.95rem; color: #8A93A6; }
.odul-tile.uo-kume-tile.acik b { color: #8E6102; }
.uo-sonraki { flex-basis: 100%; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.35; margin-top: 2px; }
.tk-oduller .uo-kume-us { position: relative; padding-right: 2px; }
/* Sayıları Sıralama */
.uz-opt.ssr-buyuk { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 2.4rem; min-width: 140px; min-height: 92px; }
.uz-opt.ssr-sira { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.5rem; white-space: pre; }
.ssr-ust { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 2.6rem; color: var(--ink); text-align: center; white-space: pre; margin: 4px auto 12px; }
.yvr-dogru { margin: 0 auto 10px; max-width: 100%; }
.rs-dogru { margin: 0 auto 10px; max-width: 100%; }
.uz-opt.rs-dizi { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 2rem; min-width: 0; width: 100%; padding-left: 0; padding-right: 0; }
/* dizi sayıları (kurala uymayan / yanlış yazılan sayı): her zaman tek satırda, aynı hizada */
.uz-options:has(.rs-dizi) { flex-wrap: nowrap; gap: 8px; max-width: 640px; margin-left: auto; margin-right: auto; }
.uz-optwrap:has(.rs-dizi) { flex: 1 1 0; min-width: 0; max-width: 120px; }
.rs-yuzluk { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; max-width: 470px; margin: 0 auto 10px; }
.rs-hucre { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1rem; aspect-ratio: 1.25; border: 1.5px solid #C9D2E3; border-radius: 6px; background: var(--bg-card); color: var(--ink); cursor: pointer; padding: 0; }
.rs-hucre.boyali { background: #7DD3FC; border-color: #0369A1; }
.rs-hucre.ok { background: rgba(63, 154, 90, 0.35); border-color: #3f9a5a; }
.rs-hucre.bad { background: rgba(229, 72, 77, 0.35); border-color: #E5484D; }
.rs-hucre.eksik { border: 2.5px dashed #3f9a5a; }
@media (max-width: 620px) { .rs-yuzluk { gap: 2px; } .rs-hucre { font-size: 0.8rem; border-radius: 4px; } .uz-opt.rs-dizi { font-size: 1.3rem; } .uz-options:has(.rs-dizi) { gap: 4px; } }
.tp-dikey { display: inline-flex; flex-direction: column; align-items: stretch; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 2.3rem; color: var(--ink); background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 16px; padding: 8px 18px 12px; margin: 0 auto; }
.tp-dikey .tp-satir, .tp-ornek .tp-satir { display: grid; grid-template-columns: 34px 56px 56px; justify-items: center; align-items: center; min-height: 52px; }
.tp-dikey.uc .tp-satir { grid-template-columns: 34px 56px 56px 56px; }
.tp-dikey .tp-satir.bas, .tp-ornek .tp-satir.bas { font-family: 'Karla', sans-serif; font-size: 0.9rem; color: var(--ink-soft); min-height: 20px; }
.tp-dikey .tp-satir.elde { min-height: 38px; }
.tp-dikey .tp-elde { width: 34px; height: 34px; min-width: 0; font-size: 1.2rem; border-style: dashed; }
.tp-dikey .tp-elde.cp-elde { border-radius: 50%; padding: 0; }
.uz-opt.cp-iki { white-space: pre-line; line-height: 1.5; }
/* 2. sınıf bölme: alt alta bölme (solda bölünen, sağda bölen; bölüm bölenin altında) */
.bl-dikey { display: inline-grid; grid-template-columns: auto auto; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 2.3rem; color: var(--ink); background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 16px; padding: 12px 20px 14px; margin: 0 auto; line-height: 1; }
.bl-bolunen { padding: 6px 16px 0 4px; letter-spacing: 0.25em; }
.bl-sag { border-left: 3px solid var(--ink); }
.bl-bolen { padding: 6px 14px 8px; border-bottom: 3px solid var(--ink); }
.bl-bolum { display: flex; gap: 6px; padding: 8px 8px 0 10px; }
.bl-bolum .numbox { width: 50px; min-width: 0; height: 56px; font-size: 2rem; padding: 0; box-sizing: border-box; }
/* ara işlemler: bölünenin altında satırlar (işaret · onlar · birler); yuvarlak kutular isteğe bağlı */
.bl-dikey.bl-tam { align-items: start; padding: 8px 16px 10px; }
.bl-sol { padding-right: 12px; }
.bl-satir { display: grid; grid-template-columns: 22px 46px 46px; justify-items: center; align-items: center; min-height: 44px; }
.bl-satir.cizgili-on { background: linear-gradient(var(--ink), var(--ink)) no-repeat 22px 100% / 46px 3px; }
.bl-satir.cizgili { background: linear-gradient(var(--ink), var(--ink)) no-repeat 22px 100% / 92px 3px; }
.bl-eksi { color: #E5484D; font-size: 1.8rem; }
.bl-dikey .numbox.bl-ara { width: 38px; height: 38px; min-width: 0; padding: 0; border-radius: 50%; border-style: dashed; font-size: 1.35rem; box-sizing: border-box; }
.bl-tam .bl-sag { align-self: start; }
@media (max-width: 620px) {
  .bl-dikey.bl-tam { font-size: 2rem; padding: 6px 10px 8px; }
  .bl-satir { grid-template-columns: 20px 40px 40px; min-height: 38px; }
  .bl-satir.cizgili-on { background-size: 40px 3px; background-position: 20px 100%; }
  .bl-satir.cizgili { background-size: 80px 3px; background-position: 20px 100%; }
  .bl-dikey .numbox.bl-ara { width: 34px; height: 34px; font-size: 1.2rem; }
  .bl-tam .bl-bolum .numbox { width: 42px; height: 48px; font-size: 1.7rem; }
}
/* 2. sınıf bölme, 0-19: nesneleri kaplara sürükleyerek paylaştırma / gruplama */
.bl-model { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; max-width: 520px; }
.bl-model.gizli { display: none; }
/* Modelleme düğmesi: sorunun hemen altında (1. sınıf problemlerindeki düğmenin aynısı) */
.bl-model-satir { display: flex; justify-content: center; margin: -6px 0 8px; }
.bl-model-satir .speak-btn.model-toggle { margin: 0; padding: 4px 12px; font-size: 0.84rem; min-height: 34px; background: var(--bg-card); }
.bl-model-satir .speak-btn.model-toggle.off { background: transparent; }
.cp-sahne.gizli { display: none; }
.uz-options.col .uz-opt.bl-cikarma { font-size: 1.25rem; padding: 8px 12px; min-height: 0; } /* uzun tekrarlı çıkarma seçenekleri alt alta */
/* sürükleme ekranları (geniş ekran): tuşlar ve nesneler biraz küçük, kalabalık modelle de kaydırmadan sığsın */
@media (min-width: 621px) {
  .cz-lay:has(.bl-model) .keypad { gap: 6px; margin-bottom: 6px; }
  .cz-lay:has(.bl-model) .keypad button { padding: 4px 0; }
  .cz-lay:has(.bl-model) .cz-line { padding: 5px 10px; margin-bottom: 6px; }
  .cz-lay:has(.bl-model) .cz-line .numbox { height: 44px; }
  .bl-yigin .bl-nesne { width: 26px; height: 26px; }
  .bl-model { gap: 8px; }
}
@media (max-width: 620px) {
  .bl-model-satir { margin: -8px 0 4px; }
  .bl-model-satir .speak-btn.model-toggle { min-height: 28px; padding: 2px 10px; font-size: 0.78rem; }
  .cz-lay:has(.bl-model) { gap: 4px; }
  .bl-yigin .bl-nesne { width: 23px; height: 23px; }
  .bl-kap { min-height: 38px; }
  .bl-kap .bl-nesne { width: 16px; height: 16px; }
}
.bl-yigin { display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 4px; width: 100%; min-height: 40px; padding: 8px; box-sizing: border-box; background: var(--bg); border: 1.5px dashed var(--border); border-radius: 14px; }
.bl-yigin:empty::before { content: 'Hepsi yerleşti'; margin: auto; color: var(--ink-soft); font-family: 'Karla', sans-serif; font-weight: 700; font-size: 0.85rem; }
.bl-kaplar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bl-kap { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 2px; width: 84px; min-height: 58px; padding: 5px; box-sizing: border-box; background: #FFFAF0; border: 2.5px solid #C4B5FD; border-radius: 14px; cursor: pointer; }
.bl-kap.secili { border-color: #7C3AED; box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22); }
.bl-yigin.over, .bl-kap.over { background: var(--amber-soft); }
.bl-kap.ok { border-color: var(--leaf); box-shadow: none; }
.bl-kap.bad { border-color: #E5484D; box-shadow: none; }
.bl-nesne { width: 30px; height: 30px; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; border-radius: 6px; }
.bl-nesne svg { display: block; width: 100%; height: 100%; pointer-events: none; }
.bl-kap .bl-nesne { width: 22px; height: 22px; }
.bl-nesne.dragging { opacity: 0.25; }
.bl-nesne:focus-visible, .bl-kap:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
@media (max-width: 620px) {
  .bl-model { gap: 6px; }
  .bl-yigin { gap: 3px; padding: 5px; }
  .bl-nesne { width: 25px; height: 25px; }
  .bl-kaplar { gap: 5px; }
  .bl-kap { width: 62px; min-height: 44px; padding: 3px; }
  .bl-kap .bl-nesne { width: 17px; height: 17px; }
  .bl-kaplar.bl-grup .bl-kap { width: 54px; } /* gruplamada kapta en çok 5 nesne: 5 kap yan yana sığar */
  /* sürükleme ekranlarında tuşlar ve işlem kutuları biraz basık: kalabalık modelle de kaydırmadan sığsın */
  .cz-lay:has(.bl-model) .keypad { gap: 6px; margin-bottom: 6px; }
  .cz-lay:has(.bl-model) .keypad button { padding: 4px 0; }
  .cz-lay:has(.bl-model) .cz-line { padding: 4px 8px; margin-bottom: 6px; }
  .cz-lay:has(.bl-model) .cz-line .numbox { height: 42px; min-width: 50px; }
}
.dz-ghost.bl-hayalet { width: 38px; height: 38px; }
.dz-ghost.bl-hayalet svg { width: 100%; height: 100%; }
.cz-lay.cp-ust { flex-direction: column; align-items: center; gap: 8px; }
.cz-lay.cp-ust .cz-side { flex: none; width: 100%; max-width: 380px; }
.cz-lay.cp-ust .cp-dogru { width: min(100%, 520px) !important; padding: 4px 8px; }
.cz-lay.cp-ust .cz-line { margin: 0 auto 8px; padding: 6px 10px; gap: 6px 8px; }
.tp-arti, .tp-ornek .tp-satir span:first-child { color: #E5484D; }
.tp-cizgi { height: 3px; background: var(--ink); border-radius: 2px; margin: 4px 0 6px; }
.tp-dikey .tp-satir.son .numbox { width: 50px; min-width: 0; height: 56px; font-size: 2rem; padding: 0; box-sizing: border-box; }
.tp-model { margin: 0 auto 10px; max-width: 100%; }
.cz-lay:has(.tp-dikey) { align-items: center; }
.tp-alt { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.tp-link { font: inherit; font-family: 'Karla', sans-serif; font-weight: 800; font-size: 0.95rem; color: var(--sky-dark); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 4px; }
.tp-tahta { display: none; margin-top: 8px; background: #22302B; border: 6px solid #8B5E34; border-radius: 14px; padding: 6px; }
.tp-tahta.acik { display: block; }
.tp-araclar { display: flex; gap: 8px; margin-bottom: 6px; }
.tp-arac { font: inherit; font-family: 'Karla', sans-serif; font-weight: 800; font-size: 0.9rem; background: #34453E; color: #F8FAFC; border: 2px solid transparent; border-radius: 10px; padding: 5px 12px; cursor: pointer; }
.tp-arac.secili { border-color: #F8FAFC; }
.tp-canvas { display: block; width: 100%; height: 240px; touch-action: none; cursor: crosshair; border-radius: 8px; }
.tp-anlatim { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 980px; margin: 0 auto; }
.tp-anlatim .tp-basla { grid-column: 1 / -1; justify-self: center; }
.tp-ders { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 16px; padding: 12px 16px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start; }
/* !important gerekli: konu anlatımı listesinde başka bir kuralı eziyor (ölçümle doğrulandı) */
.tp-ders ol { font-size: 0.95rem !important; }
.tp-ders h3 { grid-column: 1 / -1; margin: 0; font-size: 1.15rem; }
.tp-ders ol { margin: 0; padding-left: 20px; line-height: 1.55; font-size: 1rem; }
.tp-ornek { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.7rem; }
.tp-ornek .tp-satir { grid-template-columns: 24px 38px 38px; min-height: 36px; }
.tp-ornek .tp-satir.elde { min-height: 20px; font-size: 1.05rem; color: #E5484D; }
.tp-ornek .tp-satir.son { color: var(--sky-dark); }
.tp-takas { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.95rem; font-weight: 700; color: var(--ink-soft); }
.tp-takas svg { max-width: 100%; height: auto; }
.tp-basla { align-self: center; width: auto; min-height: 48px; padding: 0 30px; }
@media (max-width: 620px) {
  .tp-dikey { font-size: 1.9rem; padding: 6px 12px 10px; }
  .tp-dikey .tp-satir { grid-template-columns: 28px 48px 48px; min-height: 44px; }
  .tp-dikey.uc .tp-satir { grid-template-columns: 28px 48px 48px 48px; }
  .tp-dikey .tp-satir.son .numbox { width: 42px; height: 48px; font-size: 1.7rem; }
  .tp-ders { grid-template-columns: auto 1fr; }
  .tp-anlatim { grid-template-columns: 1fr; }
  .tp-canvas { height: 200px; }
}
.cx-model { display: grid; grid-template-columns: auto auto; gap: 10px; justify-content: center; margin: 0 auto 4px; }
.cx-bolum { background: #FFFAF0; border: 2px solid #E3D3B0; border-radius: 14px; padding: 6px 10px 10px; min-width: 120px; min-height: 186px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cx-bolum.birler { min-width: 150px; }
.cx-bolum.hedef { border-color: #3BA55C; background: rgba(59,165,92,.12); }
.cx-bas { font-family: 'Karla', sans-serif; font-weight: 800; font-size: 0.95rem; color: var(--ink-soft); }
.cx-bolum.onlar .cx-ic { display: flex; gap: 5px; align-items: flex-end; }
.cx-bolum.birler .cx-ic { display: grid; grid-template-columns: repeat(5, 14px); gap: 4px; align-content: start; }
.cx-onluk { cursor: grab; touch-action: none; line-height: 0; border-radius: 3px; transition: transform .05s; }
.cx-onluk.suruk { cursor: grabbing; position: relative; z-index: 5; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.cx-onluk:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.cx-birlik.yeni svg rect:first-child { stroke: #E5484D; }
.cx-not { text-align: center; font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; margin-bottom: 8px; }
.cx-geri { font-size: 0.85rem; margin-left: 8px; }
.tp-dikey .tp-elde.genis { width: 46px; }
.tp-ornek .cx-ciz { text-decoration: line-through; text-decoration-color: #E5484D; text-decoration-thickness: 2px; }
.cx-onluk.cizik, .cx-birlik.cizik { position: relative; }
.cx-onluk.cizik svg, .cx-birlik.cizik svg { opacity: .4; }
.cx-onluk.cizik::after, .cx-birlik.cizik::after { content: ''; position: absolute; inset: -2px; background: linear-gradient(to top right, transparent calc(50% - 1.6px), #E5484D calc(50% - 1.6px), #E5484D calc(50% + 1.6px), transparent calc(50% + 1.6px)), linear-gradient(to top left, transparent calc(50% - 1.6px), #E5484D calc(50% - 1.6px), #E5484D calc(50% + 1.6px), transparent calc(50% + 1.6px)); pointer-events: none; }
.cx-onluk.cizik::after { inset: -2px -3px; }
.cx-birlik { line-height: 0; cursor: pointer; }
.cx-birlik:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.cx-cz { color: #E5484D; font-size: 0.8rem; margin-left: 4px; }
.cx-dug { display: inline-flex; gap: 10px; }
.cx-dug .tp-link { font-size: 0.85rem; padding: 2px 2px; }
.cx-uyari { min-height: 0; max-height: 0; overflow: hidden; font-size: 0.85rem; font-weight: 700; color: #B45309; text-align: center; transition: max-height .2s; }
.cx-uyari.acik { max-height: 40px; }
.tp-dikey .cx-ciz { text-decoration: line-through; text-decoration-color: #E5484D; text-decoration-thickness: 3px; }
.tpp-tablo { border-collapse: collapse; font-family: 'Karla', sans-serif; font-size: 1.05rem; background: #FFFAF0; border-radius: 12px; overflow: hidden; }
.tpp-tablo caption { font-weight: 800; color: var(--ink-soft); padding-bottom: 6px; font-size: 0.95rem; }
.tpp-tablo th, .tpp-tablo td { border: 2px solid #E3D3B0; padding: 6px 14px; text-align: center; }
.tpp-tablo tr:first-child th { background: #F5E9CF; }
.tpp-tablo td { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.3rem; }
.tpp-tdikey .tp-satir:not(.elde) .numbox { width: 50px; min-width: 0; height: 56px; font-size: 2rem; padding: 0; box-sizing: border-box; }
.tpp-tdikey .tp-satir:not(.elde):not(.son):not(.bas) { margin-bottom: 4px; }
.uz-opt.kp-islem { white-space: pre-line; line-height: 1.5; padding: 10px 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 620px) { .uz-options:has(.kp-islem) { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .uz-options:has(.kp-islem) .uz-optwrap { width: auto; max-width: none; } .uz-opt.kp-islem { font-size: 1rem; padding: 8px 6px; min-height: 0; } }
.uz-options.col .uz-optwrap:has(.tpp-uzun) { max-width: 600px; }
.uz-opt.tpp-uzun { text-align: left; line-height: 1.4; font-size: 1rem; padding: 10px 14px; min-height: 0; white-space: normal; }
@media (max-width: 620px) { .tpp-tdikey .tp-satir:not(.elde) .numbox { width: 42px; height: 48px; font-size: 1.7rem; } .tpp-model { max-width: 190px; margin-bottom: 0; } .tpp-grup { max-width: 100%; } .tpp-tablo { font-size: 0.95rem; } .tpp-tablo th, .tpp-tablo td { padding: 4px 9px; } .uz-opt.tpp-uzun { font-size: 0.92rem; padding: 8px 10px; } }
.il-kontrol { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.il-karar { display: flex; gap: 12px; justify-content: center; }
.il-karar-btn { min-width: 120px; }
.il-karar-btn.secili { border-color: var(--sky-dark); background: #E0F2FE; box-shadow: 0 0 0 2px var(--sky) inset; }
.il-aile { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 4px auto 0; }
.il-satir { display: flex; align-items: center; gap: 8px; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--ink); }
.il-verilen { background: #EEF2FF; border: 2px solid #C7D2FE; border-radius: 12px; padding: 2px 16px; }
.il-isaret { min-width: 18px; text-align: center; color: #E5484D; }
.il-aile .sy-yuva { min-width: 64px; min-height: 48px; }
.il-cubuk { max-width: 100%; }
@media (max-width: 620px) { .il-satir { font-size: 1.3rem; gap: 5px; } .il-aile .sy-yuva { min-width: 54px; min-height: 44px; } }
.devam-row { display: flex; justify-content: center; margin: -4px 0 12px; }
.devam-row .btn-check.btn-devam { width: auto; flex: 0 0 auto; min-width: 200px; padding: 0 28px; min-height: 48px; }
.cx-sol { display: flex; flex-direction: column; align-items: center; max-width: 330px; }
.cz-lay:has(.cx-sol) + .cz-side, .cz-lay:has(.cx-sol) .cz-side { min-width: 280px; }
@media (max-width: 620px) { .cx-sol { max-width: none; } .cx-bolum { min-height: 140px; min-width: 96px; padding: 4px 6px 6px; gap: 4px; } .cx-bolum.birler { min-width: 120px; } .cx-onluk svg { width: 11px; height: 110px; } .cx-birlik svg { width: 11px; height: 11px; } .cx-bolum.birler .cx-ic { grid-template-columns: repeat(5, 11px); gap: 3px; } .cx-not { font-size: 0.78rem; margin-bottom: 4px; } }
.nt2-sahne { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 auto 10px; }
.nt2-sahne .sy-sahne { position: relative; padding: 6px; }
.nt2-ortu { position: absolute; background: #1F2A44; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #DCE3F7; font-family: 'Karla', sans-serif; font-weight: 800; font-size: 1rem; transition: opacity .25s; }
.nt2-ortu.acik { opacity: 0; pointer-events: none; }
.nt2-ortu.sabit { background: repeating-linear-gradient(45deg, #C9D2E3, #C9D2E3 10px, #DCE3EF 10px, #DCE3EF 20px); color: #1F2A44; border-radius: 0 14px 14px 0; }
.nt2-goster { font: inherit; font-family: 'Karla', sans-serif; font-weight: 800; font-size: 1.05rem; padding: 10px 22px; border-radius: 14px; border: 0; background: #F59E0B; color: #1F2A44; cursor: pointer; }
.nt2-goster:disabled { opacity: .7; cursor: default; }
.uz-opt.nt2-sec { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.4rem; }
.uz-opt.nt2-sec:disabled:not(.ok):not(.bad) { opacity: .45; }
/* Dar ekranda sahne genişlikleri JavaScript'in verdiği satır içi genişliği ezer; !important bu yüzden gerekli */
@media (max-width: 620px) { .uz-opt.nt2-sec { font-size: 1.15rem; } .cz-lay .nt2-sahne .sy-sahne { width: min(100%, 300px) !important; } .nt2-goster { padding: 8px 18px; } }
.or2-sira { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 4px auto 14px; }
.or2-kutu { width: 54px; height: 54px; border-radius: 12px; border: 2px solid #E3E8F2; background: var(--bg-card); display: flex; align-items: center; justify-content: center; padding: 0; }
.or2-kutu.bos { border: 2.5px dashed #8A93A6; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.8rem; color: #E5484D; }
button.or2-kutu { cursor: pointer; }
button.or2-kutu.ok { border-color: #3f9a5a; background: rgba(63, 154, 90, 0.14); }
button.or2-kutu.bad { border-color: #E5484D; background: rgba(229, 72, 77, 0.14); }
.or2-secim { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.uz-opt.or2-sec { min-width: 96px; min-height: 80px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.uz-opt.or2-sec.dizi { min-width: 0; padding: 8px 12px; }
.or2-ikili { font-family: 'Baloo 2', sans-serif; font-size: 1.35rem; font-weight: 700; color: var(--ink); background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 8px 16px; margin: 0 auto 12px; width: max-content; max-width: 100%; box-sizing: border-box; }
.or2-buyu { margin: 0 auto 10px; max-width: 100%; }
@media (max-width: 620px) { .or2-kutu { width: 38px; height: 38px; border-radius: 9px; } .or2-kutu svg { width: 30px; height: 30px; } .or2-sira { gap: 4px; } .uz-opt.or2-sec { min-width: 80px; min-height: 66px; } .or2-ikili { font-size: 1.05rem; } }
.ssr-yuvalar { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px auto 0; }
.ssr-isaret { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.8rem; color: var(--apple-red); }
@media (max-width: 620px) { .uz-opt.ssr-sira { font-size: 1.2rem; } .ssr-ust { font-size: 1.9rem; } .ssr-yuvalar { gap: 4px; } .ssr-yuvalar .sy-yuva { min-width: 56px; } .ssr-isaret { font-size: 1.3rem; } }
/* Sayıları Çözümleme eşleştirme */
.cz-esler { align-items: flex-end; gap: 18px; }
.cz-es { gap: 10px; }
.cz-es-ust { font-family: 'Karla', sans-serif; font-weight: 800; font-size: 1.15rem; line-height: 1.3; color: var(--ink); text-align: center; background: var(--bg); border: 1.5px solid var(--border); border-radius: 14px; padding: 10px 12px; max-width: 200px; min-height: 52px; display: flex; align-items: center; justify-content: center; }
.cz-es-ust.buyuk { font-family: 'Baloo 2', sans-serif; font-size: 2.2rem; min-width: 96px; padding: 4px 14px; }
@media (max-width: 620px) { .cz-esler.blok { flex-direction: row; flex-wrap: nowrap; align-items: flex-end; gap: 8px; } .cz-esler.blok .cz-es { flex-direction: column; gap: 8px; } .cz-esler.blok .sy-sahne { width: calc(var(--oran, 1) * 84px) !important; padding: 5px; } .cz-esler.blok .sy-yuva { min-width: 64px; }
  .cz-esler:not(.blok) { align-items: stretch; } .cz-es { justify-content: space-between; } .cz-es-ust { max-width: 210px; font-size: 1.05rem; } }
.tk-oduller .uo-kume-us:not(.earned) svg { opacity: 0.35; filter: grayscale(1); }
.tk-oduller .uo-kume-us sup { font-family: 'Baloo 2', sans-serif; font-size: 1rem; font-weight: 800; line-height: 1; color: #B8860B; margin-left: 1px; align-self: flex-start; }
.odul-tile.uo-kume-tile .uo-us { font-family: 'Baloo 2', sans-serif; font-size: 1.05rem; font-weight: 800; line-height: 1; color: #8E6102; align-self: flex-start; margin-top: 4px; }
.uo-veli-oduller { display: flex; gap: 10px; flex-wrap: wrap; }
.uo-veli-oduller > span { display: flex; align-items: center; gap: 6px; background: #FFFFFF; border: 2px solid #E3E7F2; border-radius: 14px; padding: 4px 10px 4px 6px; font-weight: 700; }
.uo-veli-oduller > span.bos b { color: #8A93A6; }
.uo-veli-oduller small { color: var(--ink-soft); font-size: 0.8rem; }

/* 2. sınıf Paralarımız: paralara dokunarak tutar oluşturma (tepsi + cüzdan) */
.pr-tepsi { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.pr-cuzdan { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; min-height: 92px; width: min(100%, 520px); margin: 8px auto 0; padding: 10px; border: 2.5px dashed #c9a46a; border-radius: 16px; background: #fffaf0; }
.pr-cuzdan.ok { border-style: solid; border-color: var(--ok, #2f9e5b); }
.pr-cuzdan.bad { border-style: solid; border-color: var(--bad, #d64545); }
.pr-bos { color: #8a7458; font-weight: 700; }
.pr-para { display: inline-flex; padding: 3px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.pr-para:hover { background: rgba(201, 164, 106, .18); }
.pr-para svg { display: block; }
@media (max-width: 600px) { .pr-tepsi { gap: 4px; } .pr-tepsi .pr-para svg { max-width: 104px; height: auto; } .pr-cuzdan .pr-para svg { max-width: 72px; height: auto; } .pr-cuzdan { min-height: 70px; } }
/* para resimleri: çerçeve içi boşluk az, telefonda kartın kenarlarına kadar */
.sy-sahne.pr-sahne { padding: 4px; }
@media (max-width: 600px) { .cz-lay .sy-sahne.pr-sahne { margin-left: -12px; margin-right: -12px; max-width: calc(100% + 24px); } }

/* 2. sınıf Zaman Ölçme: saat kurma düğmeleri */
.zm-kontrol { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 6px; }
.zm-satir { display: flex; align-items: center; gap: 8px; }
.zm-ad { min-width: 78px; text-align: center; font-weight: 800; color: var(--ink, #1F2A44); }
.zm-dugme { width: 52px; height: 44px; border: 2px solid #c9d3e3; border-radius: 12px; background: #fff; font-size: 1.15rem; font-weight: 800; color: #1F2A44; cursor: pointer; }
.zm-dugme:active { transform: scale(.95); }
.zm-satir:first-child .zm-ad { color: #1F2A44; }
.zm-satir:last-child .zm-ad { color: #E5484D; }
/* Telefonda onluk–birlik modeli ile alt alta işlem yan yana: model solda, işlem sağda, açıklama ve tuşlar altta tam genişlik.
   Bloklar biraz incelir; onluk çubuklarının dokunma alanı görünenden geniştir. */
@media (max-width: 620px) {
  .cz-lay:has(> .cx-sol + .tp-dikey) { display: grid; grid-template-columns: max-content max-content; justify-content: center; align-items: start; gap: 6px 6px; }
  .cz-lay:has(> .cx-sol + .tp-dikey) > .cx-sol { display: contents; }
  .cz-lay:has(> .cx-sol + .tp-dikey) .cx-model { grid-column: 1; grid-row: 1; gap: 5px; margin: 0; }
  .cz-lay:has(> .cx-sol + .tp-dikey) > .tp-dikey { grid-column: 2; grid-row: 1; font-size: 1.5rem; padding: 4px 6px 8px; }
  .cz-lay:has(> .cx-sol + .tp-dikey) .cx-not, .cz-lay:has(> .cx-sol + .tp-dikey) .cx-uyari { grid-column: 1 / -1; margin: 0; width: 0; min-width: 100%; }
  .cz-lay:has(> .cx-sol + .tp-dikey) > .cz-side { grid-column: 1 / -1; width: 0; min-width: 100%; }
  .cz-lay:has(> .cx-sol + .tp-dikey) .tp-dikey .tp-satir { grid-template-columns: 20px 36px 36px; min-height: 40px; }
  .cz-lay:has(> .cx-sol + .tp-dikey) .tp-dikey .tp-satir.bas { min-height: 18px; }
  .cz-lay:has(> .cx-sol + .tp-dikey) .tp-dikey .tp-satir.elde { min-height: 30px; }
  .cz-lay:has(> .cx-sol + .tp-dikey) .tp-dikey .tp-elde { width: 28px; height: 28px; font-size: 1rem; }
  .cz-lay:has(> .cx-sol + .tp-dikey) .tp-dikey .tp-satir.son .numbox { width: 34px; height: 42px; font-size: 1.45rem; }
  .cz-lay:has(> .cx-sol + .tp-dikey) .cx-bolum { min-width: 106px; min-height: 128px; padding: 4px 4px 6px; box-sizing: border-box; }
  .cz-lay:has(> .cx-sol + .tp-dikey) .cx-bolum.birler { min-width: 66px; }
  .cz-lay:has(> .cx-sol + .tp-dikey) .cx-model { grid-template-columns: max-content max-content; }
  .cz-lay:has(> .cx-sol + .tp-dikey) .cx-bas { font-size: .82rem; }
  .cz-lay:has(> .cx-sol + .tp-dikey) .cx-bolum.onlar .cx-ic { gap: 3px; }
  .cz-lay:has(> .cx-sol + .tp-dikey) .cx-onluk { position: relative; }
  .cz-lay:has(> .cx-sol + .tp-dikey) .cx-onluk::before { content: ''; position: absolute; inset: 0 -2px; }
  .cz-lay:has(> .cx-sol + .tp-dikey) .cx-onluk svg { width: 8px; height: 100px; }
  .cz-lay:has(> .cx-sol + .tp-dikey) .cx-bolum.birler .cx-ic { grid-template-columns: repeat(5, 10px); gap: 2px; }
  .cz-lay:has(> .cx-sol + .tp-dikey) .cx-birlik svg { width: 10px; height: 10px; }
}
/* Telefonda alt alta işlem biraz basık (model ve tuşlarla birlikte kaydırmadan sığsın) */
@media (max-width: 620px) {
  .cz-lay:has(> .tp-dikey) > .tp-model { margin-bottom: 0; }
  .tp-dikey .tp-satir { min-height: 40px; }
  .tp-dikey .tp-satir.bas { min-height: 18px; }
  .tp-dikey .tp-satir.elde { min-height: 30px; }
  .tp-dikey .tp-elde { width: 30px; height: 30px; }
  .tp-dikey .tp-satir.son .numbox { height: 44px; }
  .tp-cizgi { margin: 2px 0 4px; }
}
/* Telefonda tablolu problemler: tablo satırları ve tablodan yazılan işlem kutuları basık */
@media (max-width: 620px) {
  .tpp-tablo th, .tpp-tablo td { padding: 3px 10px; }
  .tpp-tablo td { font-size: 1.15rem; }
  .tpp-tablo caption { padding-bottom: 3px; }
  .tpp-tdikey .tp-satir:not(.elde) .numbox { height: 42px; }
  .tpp-tdikey .tp-satir:not(.elde):not(.son):not(.bas) { margin-bottom: 2px; }
}
/* Telefonda toplama problemlerinde küçük model ile alt alta işlem yan yana */
@media (max-width: 620px) {
  .cz-lay:has(> .tp-model + .tp-dikey) { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: center; gap: 8px 6px; }
  .cz-lay:has(> .tp-model + .tp-dikey) > .tp-model { grid-column: 1; grid-row: 1; width: 100% !important; max-width: 180px; justify-self: center; margin: 0; }
  .cz-lay:has(> .tp-model + .tp-dikey) > .tp-dikey { grid-column: 2; grid-row: 1; font-size: 1.5rem; padding: 4px 6px 8px; }
  .cz-lay:has(> .tp-model + .tp-dikey) > .cz-side { grid-column: 1 / -1; width: 0; min-width: 100%; }
  .cz-lay:has(> .tp-model + .tp-dikey) .tp-dikey .tp-satir { grid-template-columns: 20px 36px 36px; }
  .cz-lay:has(> .tp-model + .tp-dikey) .tp-dikey .tp-elde { width: 28px; height: 28px; font-size: 1rem; }
  .cz-lay:has(> .tp-model + .tp-dikey) .tp-dikey .tp-satir.son .numbox { width: 34px; height: 42px; font-size: 1.45rem; }
  .cz-lay:has(> .tpp-tablo + .tp-dikey) { gap: 6px; }
  .tpp-tdikey .tp-satir:not(.elde) .numbox { height: 40px; }
}
/* Telefonda tablolu problemlerde tablo ile alt alta işlem yan yana */
@media (max-width: 620px) {
  .cz-lay:has(> .tpp-tablo + .tp-dikey) { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: center; justify-items: center; gap: 8px 6px; }
  .cz-lay:has(> .tpp-tablo + .tp-dikey) > .tpp-tablo { grid-column: 1; grid-row: 1; font-size: .8rem; }
  .cz-lay:has(> .tpp-tablo + .tp-dikey) > .tpp-tablo th, .cz-lay:has(> .tpp-tablo + .tp-dikey) > .tpp-tablo td { padding: 3px 5px; }
  .cz-lay:has(> .tpp-tablo + .tp-dikey) > .tpp-tablo td { font-size: 1.05rem; }
  .cz-lay:has(> .tpp-tablo + .tp-dikey) > .tpp-tablo caption { font-size: .8rem; }
  .cz-lay:has(> .tpp-tablo + .tp-dikey) > .tp-dikey { grid-column: 2; grid-row: 1; font-size: 1.5rem; padding: 4px 6px 8px; }
  .cz-lay:has(> .tpp-tablo + .tp-dikey) > .cz-side { grid-column: 1 / -1; width: 0; min-width: 100%; }
  .cz-lay:has(> .tpp-tablo + .tp-dikey) .tp-dikey .tp-satir { grid-template-columns: 20px 36px 36px; }
  .cz-lay:has(> .tpp-tablo + .tp-dikey) .tp-dikey .tp-elde { width: 28px; height: 28px; font-size: 1rem; }
  .cz-lay:has(> .tpp-tablo + .tp-dikey) .tp-dikey .tp-satir:not(.elde) .numbox { width: 34px; height: 40px; font-size: 1.45rem; }
}
@media (max-width: 620px) { .uz-options:has(.nt2-sec) { gap: 8px; } .uz-opt.nt2-sec { min-height: 48px; } .nt2-sahne { gap: 6px; margin-bottom: 8px; } }
@media (max-width: 620px) { .cz-lay:has(> .nt2-sahne) { gap: 4px; } .cz-lay > .nt2-sahne { margin-bottom: 0; } }
@media (max-width: 620px) { .cz-lay.cp-ust:has(.bl-model) { gap: 4px; } .cz-lay:has(.bl-model) .bl-model { gap: 4px; } }
@media (max-width: 400px) { .bl-yigin .bl-nesne { width: 21px; height: 21px; } .bl-yigin { gap: 2px; padding: 4px; } .bl-kap { min-height: 40px; } .cz-lay:has(.bl-model) .cz-line { margin-bottom: 4px; } }
/* 3. MatUzay katmanı */
/* ===== MatUzay astronot maskotu: her duyguya bir poz (eski artı çizimi gizlenir) ===== */
.arti { background: no-repeat center bottom / contain; animation: mu-suzul 2.6s ease-in-out infinite; }
.arti .arti-svg { display: none; }
.arti[data-duygu="mutlu"] { background-image: url("/maskot/merhaba.webp"); }
.arti[data-duygu="merhaba"] { background-image: url("/maskot/merhaba2.webp"); }
.arti[data-duygu="kutlama"] { background-image: url("/maskot/kutlama.webp"); }
.arti[data-duygu="uzgun"] { background-image: url("/maskot/uzgun.webp"); }
.arti[data-duygu="cesaret"] { background-image: url("/maskot/merhaba2.webp"); }
.arti[data-duygu="dusunuyor"] { background-image: url("/maskot/dusunuyor.webp"); }
.arti[data-duygu="sasirdi"] { background-image: url("/maskot/sasirdi.webp"); }
.arti[data-duygu="dinliyor"] { background-image: url("/maskot/dusunuyor.webp"); }
.arti[data-duygu="yildiz"] { background-image: url("/maskot/roket.webp"); }
.arti[data-duygu="madalya"] { background-image: url("/maskot/yildiz.webp"); }
.arti[data-duygu="kupa"] { background-image: url("/maskot/gezegen.webp"); }
.arti[data-duygu="uykulu"] { background-image: url("/maskot/uykulu.webp"); }
.arti[data-duygu="kutlama"], .arti[data-duygu="kupa"], .arti[data-duygu="madalya"], .arti[data-duygu="yildiz"] { animation: mu-sevin 0.7s ease-in-out infinite; }
.arti[data-duygu="uzgun"], .arti[data-duygu="uykulu"] { animation: none; }
@keyframes mu-suzul { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes mu-sevin { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-8px) rotate(-3deg); } 60% { transform: translateY(-3px) rotate(3deg); } }
.arti-kart .arti { width: 112px; height: 140px; }
@media (max-width: 760px) { .arti-kart .arti { width: 72px; height: 86px; } }
@media (prefers-reduced-motion: reduce) { .arti { animation: none !important; } }
/* ===== Kapak sayfası (giriş yapılmamışken ilk açılan sayfa) =====
 * Bölümler sırasıyla: ilk tasarımdan kalan ortak parçalar (logo, slaytlar, alt bilgi markası),
 * MatUzay kapağı, Ekim 2026 düzenlemeleri. Sıra önemlidir: sonraki bölüm öncekini ezebilir. */

/* --- İlk tasarımdan kalanlar --- */
body.kapak-acik .wrap { display: none; }
body.kapak-acik { background: #FFFFFF; }
.kapak.hidden { display: none; }
.kp-logo { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.01em; padding-bottom: 6px; }
.kp-logo .bw-rota { position: relative; display: inline-block; }
.kp-logo .bw-yol { position: absolute; left: -3px; bottom: -10px; width: calc(100% + 12px); height: 14px; overflow: visible; }
.kp-slayt { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.35s ease; }
.kp-slayt.on { opacity: 1; }
.kp-slayt img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top left; }
.kp-noktalar { display: flex; gap: 4px; }
.kp-noktalar button { width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.kp-noktalar button::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #C5CCDA; }
.kp-noktalar button.on::after { background: #1F2A44; }
.kp-ab-marka { display: flex; flex-direction: column; gap: 10px; }
.kp-ab-marka b { font-size: 1.8rem; color: #FFFFFF; }
.kp-ab-marka span { color: #D5DCEA; line-height: 1.5; }
.kp-ab-marka small { color: #B9C3D6; font-size: 0.88rem; line-height: 1.5; }
@media (max-width: 560px) {
  .kp-logo { font-size: 1.5rem; }
}

/* ===== MatUzay kapak sayfası (tasarımdaki kapak) ===== */
.kapak { font-family: Andika, 'Trebuchet MS', sans-serif; color: #1F2A44; background: #FFFFFF; }
.kapak h1, .kapak h2 { font-family: Andika, 'Trebuchet MS', sans-serif; font-weight: 700; margin: 0; }
.ku-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; position: relative; }
.ku-ust { position: relative; overflow: hidden; background: #F3F7FF; padding-top: env(safe-area-inset-top, 0px); }
.ku-gok { position: absolute; inset: 0; width: 100%; height: 100%; }
.ku-bar { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.ku-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.ku-link { color: #1F2A44; text-decoration: none; font-size: 17px; font-weight: 700; padding: 12px 0; }
.ku-link:hover { color: #2F5FE8; }
.ku-btn { height: 46px; box-sizing: border-box; padding: 0 20px; border-radius: 14px; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.ku-btn.cizgi { background: transparent; color: #1F2A44; border: 2px solid #1F2A44; }
.ku-btn.koyu { background: #1F2A44; color: #FFFFFF; border: 2px solid #1F2A44; }
.ku-btn.koyu:hover { background: #2C3A5C; }
.ku-btn.buyuk { height: 58px; padding: 0 32px; border-radius: 16px; font-size: 20px; }
.ku-btn.mavi { background: #2F5FE8; border: 2px solid #2F5FE8; color: #FFFFFF; width: 100%; height: 50px; }
.ku-btn:focus-visible, .ku-ok:focus-visible, .ku-link:focus-visible, .ku-alt a:focus-visible, .ku-alt button:focus-visible { outline: 3px solid #2F5FE8; outline-offset: 3px; }
.ku-hero { max-width: 1040px; padding-top: 10px; padding-bottom: 48px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ku-maskot { position: absolute; left: 0; top: 0; width: 135px; height: auto; animation: mu-suzul 2.6s ease-in-out infinite; }
.ku-hero-metin { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; max-width: 660px; }
.ku-hero-metin h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.1; }
.ku-hero-metin p { margin: 0; font-size: 19px; line-height: 1.5; color: #3D4861; }
.ku-guven { display: inline-flex; align-items: center; gap: 8px; background: #FFFFFF; border: 2px solid #DDE2EC; border-radius: 999px; padding: 6px 16px; font-size: 15px; font-weight: 700; }
.ku-rota { position: relative; width: 100%; max-width: 880px; aspect-ratio: 880 / 300; }
.ku-rota-cizgi { position: absolute; inset: 0; width: 100%; height: 100%; }
.ku-duraklar { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.ku-durak { position: absolute; width: 20%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.ku-durak svg { width: clamp(70px, 14vw, 140px); height: auto; overflow: visible; }
.ku-durak b { font-size: 18px; }
/* gezegenler hafifçe süzülür; üstüne gelince öne çıkar */
@keyframes ku-suzul { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.ku-durak svg { animation: ku-suzul 4s ease-in-out infinite; transition: scale .25s ease, filter .25s ease; transform-origin: 50% 55%; }
.ku-durak:nth-child(2) svg { animation-delay: -1s; }
.ku-durak:nth-child(3) svg { animation-delay: -2s; }
.ku-durak:nth-child(4) svg { animation-delay: -3s; }
.ku-durak:hover svg { scale: 1.14; filter: drop-shadow(0 10px 12px rgba(31,42,68,.22)); }
.ku-durak:hover b { color: #2F5FE8; }
@media (prefers-reduced-motion: reduce) { .ku-durak svg { animation: none; } }
.ku-durak.acik small { color: #1B7F4B; }
.ku-bolum { padding: 64px 0; }
.ku-bolum.beyaz { background: #FFFFFF; }
.ku-bolum.acik { background: #F3F7FF; }
.ku-dikey { display: flex; flex-direction: column; gap: 26px; }
.ku-ortala { align-items: center; }
.ku-baslik { display: flex; flex-direction: column; gap: 8px; text-align: center; align-items: center; }
.ku-baslik h2, .ku-orta, .ku-veli h2 { font-size: clamp(30px, 4vw, 40px); }
.ku-orta { text-align: center; }
.ku-baslik p { margin: 0; font-size: 18px; color: #56617A; max-width: 640px; min-height: 27px; }
.ku-karusel { width: 100%; max-width: 860px; display: flex; align-items: center; gap: 14px; }
.ku-ok { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 2px solid #DCE6FA; background: #FFFFFF; color: #2F5FE8; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ku-cerceve { flex: 1; min-width: 0; background: #E6EEFF; border-radius: 26px; padding: 14px; box-sizing: border-box; }
.ku-ekran { background: #FFFFFF; border-radius: 16px; overflow: hidden; aspect-ratio: 1280 / 860; display: flex; flex-direction: column; }
.ku-perde { position: relative; flex: 1; background: #F3F7FF; }
.ku-perde .kp-slayt { position: absolute; inset: 0; margin: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity 0.35s ease; }
.ku-perde .kp-slayt img { object-position: top center; }
.ku-perde .kp-slayt.on { opacity: 1; visibility: visible; }
.kapak .y { color: #1B7F4B; }
.kapak .k { color: #BE3455; }
.ku-veli { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; }
.ku-veli-metin { flex: 999 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ku-veli-giris { margin: 0; font-size: 18px; color: #3A4560; }
.ku-v-sekmeler { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ku-v-sekme { background: #F3F7FF; border: 2px solid #DCE6FA; border-top: 6px solid var(--r); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.ku-v-sekme b { font-size: 19px; }
.ku-v-sekme p { margin: 0; font-size: 15px; color: #56617A; line-height: 1.45; }
@media (max-width: 560px) { .ku-v-sekmeler { grid-template-columns: 1fr; } }
.ku-grafik { flex: 1 1 360px; min-width: 0; background: #FFFFFF; border: 2px solid #DCE6FA; border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.ku-g-ust { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; padding-bottom: 10px; border-bottom: 1px solid #E6EAF2; }
.ku-g-ust > b { font-size: 18px; white-space: nowrap; }
/* Renkler Gelişim Takip Paneli'ndeki haftalık grafikle aynı */
.ku-g-lejant { display: flex; gap: 14px; font-size: 14px; color: #56617A; }
.ku-g-lejant span { display: inline-flex; align-items: center; gap: 6px; }
.ku-g-lejant i { width: 11px; height: 11px; border-radius: 3px; }
.ku-g-lejant b { font-size: 17px; color: #1F2A44; }
.ku-grafik .d { background: #2F7BF5; }
.ku-grafik .y { background: #FF6F59; }
/* Her gün yan yana doğru ve yanlış sütunu; sayılar sütunların üstünde */
.ku-g-sutunlar { height: 200px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding-top: 22px; }
.ku-g-gun { display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.ku-g-gun i { position: relative; display: block; width: min(18px, 40%); min-height: 2px; border-radius: 5px 5px 0 0; }
.ku-g-gun em { position: absolute; left: 50%; bottom: 100%; margin-bottom: 3px; transform: translateX(-50%); font-style: normal; font-size: 12px; font-weight: 700; }
.ku-g-adlar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 2px solid #C9D0DC; padding-top: 6px; margin-top: -14px; }
.ku-g-adlar span { text-align: center; font-size: 13px; font-weight: 700; color: #56617A; }
.ku-grafik .ok { color: #2F7BF5; }
.ku-grafik .no { color: #E2553F; }
.ku-ornek-not { font-size: 13px; color: #56617A; }
.ku-alt-ust { display: grid; gap: 28px; }
.ku-alt .kp-ab-marka > span { line-height: 1.5; font-size: 15px; }
.ku-alt-sutun { display: flex; flex-direction: column; align-items: flex-start; }
.ku-alt-sutun small { font-size: 13px; letter-spacing: 1.5px; font-weight: 700; padding-bottom: 6px; }
.ku-alt-sutun a, .ku-alt-sutun button { text-decoration: none; background: none; border: none; font: inherit; font-size: 16px; }
.ku-telif { margin-top: 28px; padding-top: 18px; font-size: 14px; }
@media (max-width: 860px) { .ku-maskot { display: none; } .ku-link { display: none; } }
@media (max-width: 640px) {
  .ku-bolum { padding: 44px 0; }
  .ku-ok { display: none; }
  .ku-durak b { font-size: 15px; }
  .ku-btn.buyuk { height: 54px; font-size: 18px; padding: 0 24px; }
}
@media (prefers-reduced-motion: reduce) { .ku-maskot { animation: none; } .ku-perde .kp-slayt { transition: none; } }

/* ===== Kapak düzenlemeleri (Ekim 2026) ===== */
/* "Her soru bir düşünme basamağı": Bloom basamakları, her kart 1-4. sınıf örnekleriyle yana kayar */
/* slayt göstergesi: küçük noktalar, seçili olan uzun */
.kp-noktalar.ku-noktalar { gap: 0; }
.ku-noktalar button { width: 28px; height: 28px; }
.ku-noktalar button::after { width: 8px; height: 8px; background: #C9D2E3; transition: width .2s; }
.ku-noktalar button.on::after { width: 24px; border-radius: 4px; background: #2F5FE8; }
/* kapak grafiği: doğru + yanlış */
/* alt bar: koyu lacivert zemin, sayfayı kapatır */
.ku-alt { background: #1F2A44; color: #DCE3F7; padding: 36px 0 22px; --yorunge: #FFFFFF; }
.ku-alt-ust { grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(130px, 1fr)); }
.ku-alt-ust > .kp-ab-marka { border-right: 1px solid rgba(220, 227, 247, .22); padding-right: 32px; } /* logo bölümünü bağlantı sütunlarından ayırır */
@media (max-width: 760px) { .ku-alt-ust { grid-template-columns: 1fr 1fr; } .ku-alt-ust > .kp-ab-marka { grid-column: 1 / -1; border-right: 0; padding-right: 0; } }
.ku-alt .kp-ab-marka > span { color: #C9D3F0; }
.ku-alt .ku-alt-logo { font-size: 1.7rem; }
.ku-alt .kp-ab-marka .mu-logo span { color: #FFFFFF; }
.ku-alt .kp-ab-marka .mu-logo .mu-uzay { color: #4A75F0; }
.ku-alt .kp-ab-marka .mu-logo .mu-slogan { color: #DCE3F7; }
.ku-alt-sutun small { color: #FFC20E; }
.ku-alt-sutun a, .ku-alt-sutun button { text-align: left; cursor: pointer; color: #FFFFFF; padding: 7px 0; }
.ku-alt-sutun a:hover, .ku-alt-sutun button:hover { color: #FFC20E; }
.ku-telif { border-top: 1px solid #34436A; color: #B9C3D6; }
.ku-sosyal-sat { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding-bottom: 24px; margin-bottom: 26px; border-bottom: 1px solid #34436A; }
.ku-sosyal-sat > span { font-weight: 700; color: #FFFFFF; }
.ku-sosyal-ler { display: flex; gap: 10px; }
.ku-sosyal { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #3D4D78; color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.ku-sosyal:hover { border-color: #FFC20E; color: #FFC20E; }
.ku-sosyal:focus-visible { outline: 3px solid #FFC20E; outline-offset: 2px; }
.ku-alt a:focus-visible, .ku-alt button:focus-visible { outline-color: #FFC20E; }
/* Tam öğrenme nedir? — alışılmış yol ile karşılaştırma */
.ku-tm-bas { max-width: 820px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 14px; }
.ku-tm-bas h2 { font-size: clamp(30px, 4vw, 40px); }
.ku-tm-bas p { margin: 0; font-size: 18px; color: #3A4560; line-height: 1.55; }
.ku-tm-iki { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.ku-tm-kutu { position: relative; background: #F3F7FF; border: 2px solid #DCE6FA; border-radius: 24px; padding: 26px 28px; display: flex; flex-direction: column; gap: 16px; color: #56617A; }
.ku-tm-kutu.yeni { border: 3px solid #2F7BF5; color: #1F2A44; }
.ku-tm-kutu h3 { margin: 0; font-size: 22px; color: #1F2A44; }
.ku-tm-kutu.yeni h3 { color: #1E5BC6; }
.ku-tm-kutu img { position: absolute; right: 22px; top: -28px; width: 86px; height: auto; }
.ku-tm-kutu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ku-tm-kutu li { display: flex; gap: 10px; align-items: flex-start; font-size: 18px; line-height: 1.4; }
.ku-tm-isaret { flex: none; margin-top: 1px; }
.ku-tm-kutu.eski .ku-tm-isaret { color: #9AA3B8; }
.ku-tm-kutu.yeni .ku-tm-isaret { color: #11A391; }
.ku-tm-serit { display: flex; align-items: center; gap: 14px; background: #1F2A44; color: #FFFFFF; border-radius: 20px; padding: 16px 22px; }
.ku-tm-serit svg { flex: none; }
.ku-tm-serit p { margin: 0; font-size: 18px; line-height: 1.5; }
.ku-tm-serit b { color: #FFC20E; }
@media (max-width: 760px) {
  .ku-tm-iki { grid-template-columns: 1fr; gap: 34px; }
  .ku-tm-bas p, .ku-tm-kutu li, .ku-tm-serit p { font-size: 16px; }
  .ku-tm-kutu img { width: 70px; top: -22px; }
}
/* Bloom taksonomisi: altı basamak soldan sağa yükselir */
.ku-bl-bas { max-width: 860px; margin: 0 auto 4px; text-align: center; display: flex; flex-direction: column; gap: 14px; }
.ku-bl-bas h2 { font-size: clamp(30px, 4vw, 40px); }
.ku-bl-bas p { margin: 0; font-size: 18px; color: #3A4560; line-height: 1.55; }
.ku-bl-merdiven { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: end; }
.ku-bl-merdiven li { height: var(--h); box-sizing: border-box; background: var(--ra); border: 2px solid var(--r); border-top-width: 8px; border-radius: 16px 16px 6px 6px; padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.ku-bl-no { width: 40px; height: 40px; border-radius: 50%; background: var(--r); color: #FFFFFF; font-weight: 700; font-size: 19px; display: grid; place-items: center; flex: none; }
.ku-bl-merdiven b { font-size: 19px; }
.ku-bl-merdiven p { margin: 0; font-size: 15px; color: #3A4560; line-height: 1.4; }
/* Dar ekranda basamaklar alt alta, 1. basamak en üstte */
@media (max-width: 900px) {
  .ku-bl-merdiven { grid-template-columns: 1fr; gap: 10px; }
  .ku-bl-merdiven li { height: auto; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; row-gap: 2px; align-items: center; border-top-width: 2px; border-left-width: 8px; border-radius: 6px 16px 16px 6px; padding: 12px 14px; }
  .ku-bl-merdiven li .ku-bl-no { grid-row: span 2; }
  .ku-bl-bas p { font-size: 16px; }
}
/* Neden MatUzay: tek güçlü cümle ve üç kısa etiket */
.ku-nm { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.ku-nm h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.2; }
.ku-nm h2 span { color: #2F5FE8; }
.ku-nm p { margin: 0; font-size: 19px; color: #56617A; line-height: 1.5; max-width: 640px; }
.ku-nm-etiketler { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.ku-nm-etiketler li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: #F3F7FF; border: 2px solid #DCE6FA; font-size: 18px; font-weight: 700; }
.ku-nm-ik { flex: none; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--r) 14%, #FFFFFF); color: var(--r); display: grid; place-items: center; }
@media (max-width: 600px) { .ku-nm p { font-size: 17px; } .ku-nm-etiketler li { font-size: 16px; } }
/* Uygulama mağazaları: yelpaze gibi açılmış üç telefon */
.ku-mg { overflow: hidden; }
.ku-mg-ic { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.ku-mg h2 { font-size: clamp(30px, 4vw, 40px); }
.ku-mg p { margin: 0; font-size: 19px; color: #56617A; line-height: 1.5; }
.ku-magaza { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.ku-mr { display: inline-flex; align-items: center; gap: 10px; height: 58px; min-width: 190px; padding: 0 20px 0 16px; border-radius: 12px; background: #000000; color: #FFFFFF; border: 1px solid #A6A6A6; text-align: left; }
.ku-mr small { display: block; font-size: 12px; line-height: 1.1; }
.ku-mr b { display: block; font-size: 22px; line-height: 1.15; font-weight: 700; letter-spacing: -.2px; }
.ku-mr-logo { flex: none; }
.ku-yelpaze { position: relative; width: min(760px, 100%); height: 560px; margin-top: 22px; }
.tl { position: absolute; top: 40px; left: 50%; width: 250px; margin-left: -125px; padding: 12px; border-radius: 42px; background: #0B0F1A; box-shadow: 0 28px 50px rgba(31, 42, 68, .28), inset 0 0 0 2px #2A3350; animation: tl-yuz 5s ease-in-out infinite; }
.tl-cent { position: absolute; top: 18px; left: 50%; width: 70px; height: 18px; margin-left: -35px; border-radius: 10px; background: #0B0F1A; z-index: 3; }
.tl-ekran { position: relative; border-radius: 31px; overflow: hidden; aspect-ratio: 390 / 900; background: #FFFFFF; }
.tl-ekran::before { content: "9:41"; position: absolute; top: 7px; left: 26px; font-size: 12px; font-weight: 700; color: #1F2A44; }
.tl-e { position: absolute; left: 0; top: 28px; width: 100%; height: calc(100% - 28px); object-fit: cover; object-position: top; }
.tl.orta { top: 0; z-index: 2; }
.tl.sol { transform: translateX(-230px) rotate(-10deg) scale(.88); animation-delay: -1.5s; }
.tl.sag { transform: translateX(230px) rotate(10deg) scale(.88); animation-delay: -3s; }
@keyframes tl-yuz { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
/* Ortadaki telefonda parmak doğru cevaba dokunur, ekran doğru cevaba geçer */
.tl.dokun .tl-e:nth-child(2) { opacity: 0; animation: tl-dogru 4s infinite; }
@keyframes tl-dogru { 0%, 45% { opacity: 0; } 50%, 90% { opacity: 1; } 95%, 100% { opacity: 0; } }
.tl-dokun { position: absolute; left: 71%; top: 56%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(47, 95, 232, .35); border: 3px solid #2F5FE8; opacity: 0; animation: tl-dokun 4s infinite; z-index: 2; }
@keyframes tl-dokun { 0%, 30% { opacity: 0; transform: scale(1.6); } 40% { opacity: 1; transform: scale(1); } 50% { opacity: 0; transform: scale(.7); } 100% { opacity: 0; } }
@media (max-width: 760px) {
  .ku-yelpaze { height: 470px; }
  .tl { width: 200px; margin-left: -100px; padding: 10px; border-radius: 34px; }
  .tl-ekran { border-radius: 25px; }
  .tl.sol, .tl.sag { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tl, .tl-dokun, .tl.dokun .tl-e:nth-child(2) { animation: none; } .tl-dokun { opacity: 0; } }
/* ===== MatUzay logosu: kalkan roket (gezegen, roket, yıldız) ===== */
.mu-ikon { flex: none; display: block; }
.kp-logo.mu-logo { display: flex; align-items: center; gap: 12px; padding-bottom: 0; }
.mu-logo .mu-yazi { display: flex; flex-direction: column; gap: 5px; }
.mu-logo .mu-ad { line-height: 1; }
.mu-logo .mu-uzay { color: #2F5FE8; }
.mu-logo .mu-slogan { font-size: 0.85rem; font-weight: 700; color: #56617A; letter-spacing: .02em; line-height: 1; }
@media (max-width: 600px) { .mu-logo .mu-slogan { display: none; } .mu-logo .mu-ikon { width: 44px; height: 44px; } }
body:not(.ws-doc) .brand { display: flex; --yorunge: #FFFFFF; }
body:not(.ws-doc) .brand .bw { padding-bottom: 0; }
body:not(.ws-doc) .brand .mu-uzay { color: #4A75F0; }
@media (max-width: 420px) { body:not(.ws-doc) .brand .mu-ikon { width: 40px; height: 40px; } }
/* ===== Ayrı sayfalar: Paketler, SSS, İletişim ===== */
body.sayfa-acik .wrap { display: none; }
body.sayfa-acik { background: #F3F7FF; }
.mu-sayfa { min-height: 100vh; display: flex; flex-direction: column; background: #F3F7FF; color: #1F2A44; }
.mu-sayfa-bar { width: 100%; }
#sayfaLogo, #authLogo { cursor: pointer; border-radius: 12px; }
#sayfaLogo:focus-visible, #authLogo:focus-visible { outline: 3px solid #2F5FE8; outline-offset: 4px; }
.mu-sayfa-ic { width: 100%; flex: 1; padding-top: 24px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
.ms-bas h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); }
.ms-paketler { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.ms-paket { background: #FFFFFF; border: 2px solid #E3E7F2; border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.ms-paket.benim { border-color: var(--g); }
.ms-p-ust { display: flex; align-items: center; justify-content: space-between; }
.ms-p-no { width: 46px; height: 46px; border-radius: 50%; background: var(--g); color: #FFFFFF; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ms-durum { font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #EEF1F7; color: #56617A; }
.ms-durum.hazir { background: #E1F5EA; color: #1B7F4B; }
.ms-paket b { font-size: 21px; }
.ms-paket p { margin: 0; color: #56617A; font-size: 16px; flex: 1; }
.ms-fiyat { font-weight: 700; color: #1F2A44; }
.ku-btn.soluk { background: #EEF1F7; border: 2px solid #EEF1F7; color: #56617A; width: 100%; height: 50px; justify-content: center; }
.ms-sec { justify-content: center; }
.ms-not { margin: 0; text-align: center; color: #1F2A44; font-weight: 700; }
/* Web sitesinde: ödeme mobil uygulamada yapılır bandı */
.ms-odeme { background: linear-gradient(110deg, #1F2A44, #2F5FE8); color: #FFFFFF; border-radius: 22px; padding: 26px 28px; }
.ms-odeme h2 { margin: 0 0 8px; font-size: 30px; color: #FFFFFF; }
.ms-odeme p { margin: 0 0 18px; font-size: 18px; line-height: 1.55; color: #DCE6FF; max-width: 700px; }
.ms-odeme .ku-magaza { justify-content: flex-start; }
@media (max-width: 620px) { .ms-odeme { padding: 20px 18px; } .ms-odeme h2 { font-size: 24px; } .ms-odeme p { font-size: 16px; } }
.ms-sss { display: flex; flex-direction: column; gap: 10px; max-width: 780px; width: 100%; margin: 0 auto; }
.ms-sss details { background: #FFFFFF; border: 2px solid #E3E7F2; border-radius: 18px; padding: 0 20px; }
.ms-sss summary { cursor: pointer; font-size: 18px; font-weight: 700; padding: 16px 36px 16px 0; list-style: none; position: relative; }
.ms-sss summary::-webkit-details-marker { display: none; }
.ms-sss summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: #EEF2FB; color: #2F5FE8; font-size: 20px; line-height: 28px; text-align: center; }
.ms-sss details[open] summary::after { content: "−"; }
.ms-sss summary:focus-visible { outline: 3px solid #2F5FE8; outline-offset: 2px; border-radius: 6px; }
.ms-sss details p { margin: 0 0 16px; color: #56617A; line-height: 1.55; font-size: 16px; }
.ms-hakkinda { display: flex; flex-direction: column; gap: 14px; max-width: 780px; width: 100%; margin: 0 auto; }
.ms-hakkinda section { background: #FFFFFF; border: 2px solid #E3E7F2; border-radius: 18px; padding: 18px 22px; }
.ms-hakkinda h2 { margin: 0 0 8px; font-size: 20px; color: #2F5FE8; }
.ms-hakkinda p { margin: 0; color: #56617A; line-height: 1.6; font-size: 16px; }
.ms-alt-not { text-align: center; color: #56617A; margin: 0; }
.ms-alt-not a { color: #2F5FE8; font-weight: 700; }
.ms-iletisim { align-self: center; background: #FFFFFF; border: 2px solid #E3E7F2; border-radius: 24px; padding: 30px; display: flex; flex-direction: column; align-items: center; gap: 16px; color: #2F5FE8; max-width: 100%; }
.ms-iletisim .ku-btn { text-decoration: none; max-width: 100%; overflow-wrap: anywhere; height: auto; min-height: 50px; }
/* ===== Sınıf tanıtım sayfaları (/1-sinif-matematik …) ===== */
.ss { display: flex; flex-direction: column; gap: 56px; padding: 8px 0 72px; }
.ss-kahraman { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 32px; background: var(--acik); border: 2px solid var(--g); border-radius: 32px; padding: 44px 48px; }
.ss-yol { display: flex; gap: 8px; align-items: center; font-size: 15px; color: #56617A; font-weight: 700; margin-bottom: 14px; }
.ss-yol a { color: #56617A; text-decoration: none; }
.ss-yol a:hover { color: #1F2A44; text-decoration: underline; }
.ss-etiket { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 800; background: #FFFFFF; border: 2px solid var(--g); color: var(--k); }
.ss-etiket.bekle { border-color: #C5CCDA; color: #56617A; }
.ss-kahraman h1 { margin: 14px 0 12px; font-size: clamp(36px, 5vw, 52px); line-height: 1.05; color: #1F2A44; }
.ss-kahraman h1 span { color: var(--k); }
.ss-kahraman p { margin: 0 0 22px; font-size: 20px; line-height: 1.5; color: #3A4560; max-width: 560px; }
.ss-cipler { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.ss-cipler span { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 12px; background: #FFFFFF; border: 2px solid #DDE2EC; font-size: 15px; font-weight: 700; color: #1F2A44; }
.ss-cagri { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 600px; background: #1F2A44; color: #FFFFFF; border-radius: 22px; padding: 20px 24px; }
.ss-cagri b { display: block; font-size: 22px; margin-bottom: 4px; }
.ss-cagri span { color: #C9D2EA; font-size: 15px; }
.ss-cagri .ku-btn { flex: none; height: 50px; padding: 0 22px; font-size: 18px; background: #FFC20E; border: 2px solid #FFC20E; color: #1F2A44; text-decoration: none; }
.ss-cagri .ku-btn:hover { background: #FFD84D; }
.ss-cagri .ku-btn:focus-visible { outline-color: #FFC20E; }
.ss-gorsel { display: grid; place-items: center; }
.ss-gorsel svg { width: min(300px, 100%); height: auto; overflow: visible; filter: drop-shadow(0 18px 24px rgba(31,42,68,.18)); }
.ss-bolum h2 { margin: 0 0 6px; font-size: 34px; color: #1F2A44; text-align: center; }
.ss-bolum > p { margin: 0 auto 26px; text-align: center; color: #56617A; font-size: 18px; max-width: 640px; }
/* Konu baloncukları: gezegen renklerinde, yavaşça dolaşır */
.ss-balonlar { list-style: none; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 22px 46px; padding: 20px 0 40px; }
.ss-balon { width: var(--b); height: var(--b); margin-top: var(--kay); border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; box-sizing: border-box; font-size: 17px; font-weight: 700; line-height: 1.2; color: #1F2A44; border: 3px solid var(--r); background: radial-gradient(circle at 30% 24%, #FFFFFF 0 9%, var(--ra) 55%); box-shadow: 0 8px 18px rgba(31,42,68,.08); animation: ss-gez0 10s ease-in-out infinite; transition: transform .45s cubic-bezier(.2, .8, .3, 1); }
@keyframes ss-gez0 { 0%, 100% { translate: 0 0; } 25% { translate: 16px -11px; } 50% { translate: 5px -20px; } 75% { translate: -12px -7px; } }
@keyframes ss-gez1 { 0%, 100% { translate: 0 0; } 25% { translate: -14px -13px; } 50% { translate: -20px 2px; } 75% { translate: -5px 11px; } }
@keyframes ss-gez2 { 0%, 100% { translate: 0 0; } 25% { translate: 11px 12px; } 50% { translate: 19px -4px; } 75% { translate: 6px -16px; } }
/* !important: animation-name her baloncukta satır içinde verildiği için ancak böyle durdurulur */
@media (prefers-reduced-motion: reduce) { .ss-balon { animation: none !important; } }
.ss-diger { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.ss-diger a { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 10px; border-radius: 14px; border: 2px solid #DDE2EC; background: #FFFFFF; color: #1F2A44; font-weight: 700; text-decoration: none; }
.ss-diger a:hover { border-color: var(--n); }
.ss-diger a i { width: 14px; height: 14px; border-radius: 50%; background: var(--n); border: 2px solid #1B1B2F; }
.ss-diger a.bu { border-color: #1F2A44; }
@media (max-width: 860px) {
  .ss-kahraman { grid-template-columns: 1fr; padding: 28px 22px; }
  .ss-gorsel { order: -1; }
  .ss-gorsel svg { width: 180px; }
}
@media (max-width: 600px) {
  .ss { gap: 40px; }
  .ss-kahraman p { font-size: 17px; }
  .ss-cagri { flex-direction: column; align-items: stretch; }
  .ss-bolum h2 { font-size: 28px; }
  .ss-balonlar { gap: 14px 18px; }
  .ss-balon { width: calc(var(--b) * .78); height: calc(var(--b) * .78); margin-top: calc(var(--kay) * .5); font-size: 14px; padding: 10px; border-width: 3px; }
}
/* Kapak gezegenleri bağlantı oldu */
.ku-durak a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: inherit; text-decoration: none; border-radius: 16px; }
.ku-durak a:focus-visible { outline: 3px solid #2F5FE8; outline-offset: 4px; }
.ku-durak a:focus-visible svg { scale: 1.14; }
/* ===== Hitap penceresi (paket seçiminden sonra) ===== */
.hitap-perde { position: fixed; inset: 0; z-index: 200; background: rgba(20, 28, 48, 0.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.hitap-perde.hidden { display: none; }
.hitap-kart { background: #FFFFFF; border-radius: 28px; padding: 26px 28px; width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; box-sizing: border-box; }
.hitap-maskot { width: 130px; height: auto; animation: hitapSallan 2.4s ease-in-out infinite; }
@keyframes hitapSallan { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .hitap-maskot { animation: none; } }
.hitap-kart h2 { margin: 0; font-size: 26px; color: #1F2A44; }
.hitap-kart > p { margin: 0 0 8px; color: #56617A; font-size: 18px; }
.hitap-kart .auth-field { width: 100%; text-align: left; }
.hitap-btn { width: 100%; justify-content: center; }
/* ===== İlk girişte veli PIN'i (paketten sonra, hitap penceresinden önce) ===== */
.vpi-perde { position: fixed; inset: 0; z-index: 210; background: #F4F6FA; overflow-y: auto; padding: 24px 16px 40px; box-sizing: border-box; color: #1F2A44; }
.vpi-perde.hidden { display: none; }
.vpi-perde * { box-sizing: border-box; }
.vpi-ic { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.vpi-adimlar { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.vpi-adimlar li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #8A93A8; }
.vpi-adimlar li + li::before { content: ''; width: 26px; height: 2px; background: #DCE3EF; }
.vpi-adimlar i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #DCE3EF; background: #FFFFFF; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 13px; }
.vpi-adimlar .tamam { color: #1B7F4B; }
.vpi-adimlar .tamam i { background: #1B7F4B; border-color: #1B7F4B; color: #FFFFFF; }
.vpi-adimlar .simdi { color: #1F2A44; }
.vpi-adimlar .simdi i { background: #FFC20E; border-color: #FFC20E; color: #1F2A44; }
.vpi-govde { display: flex; justify-content: center; align-items: flex-start; gap: 22px; }
.vpi-kart { width: 420px; flex: none; background: #FFFFFF; border: 1px solid #E3E8F2; border-radius: 26px; padding: 30px 30px 26px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 10px 30px rgba(31, 42, 68, .08); }
.vpi-rozet { align-self: center; height: 28px; padding: 0 12px; border-radius: 999px; background: #F4F6FA; font-size: 13px; font-weight: 700; color: #56617A; display: inline-flex; align-items: center; }
.vpi-kart h2 { margin: 0; text-align: center; font-size: 26px; }
.vpi-kart > p { margin: -6px 0 0; text-align: center; font-size: 15px; line-height: 1.5; color: #56617A; }
.vpi-kutular { position: relative; display: flex; justify-content: center; gap: 12px; }
.vpi-kutular.hidden { display: none; }
.vpi-kutu { width: 60px; height: 68px; border-radius: 14px; border: 2px solid #DCE3EF; background: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; }
.vpi-kutu.dolu { border-color: #2F5FE8; }
.vpi-kutu.hata { border-color: #BE3455; }
.vpi-kutular:focus-within .vpi-kutu.siradaki { border-color: #2F5FE8; box-shadow: 0 0 0 3px rgba(47, 95, 232, .18); }
.vpi-kutular input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; font-size: 16px; cursor: text; }
.vpi-hata, .vpi-bilgi { border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 700; text-align: center; }
.vpi-hata { background: #FDE7EC; color: #BE3455; }
.vpi-bilgi { background: #E3F4EA; color: #1B7F4B; }
.vpi-hata.hidden, .vpi-bilgi.hidden { display: none; }
.vpi-btn { height: 52px; border-radius: 14px; border: 0; background: #1F2A44; color: #FFFFFF; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.vpi-btn:hover { background: #2C3A5C; }
.vpi-btn:disabled { opacity: .6; cursor: default; }
.vpi-btn:focus-visible { outline: 3px solid #2F5FE8; outline-offset: 2px; }
.vpi-not { width: 380px; background: #FFF8E6; border: 1px solid #F3DFA8; border-radius: 22px; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.vpi-not h3 { margin: 0; font-size: 19px; }
.vpi-not p { margin: 0; font-size: 14px; line-height: 1.5; color: #56617A; }
.vpi-yer { display: flex; gap: 12px; align-items: flex-start; background: #FFFFFF; border-radius: 14px; padding: 10px 12px; }
.vpi-yer i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #FFFFFF; }
.vpi-yer b { display: block; font-size: 15px; }
.vpi-yer span { display: block; font-size: 13px; color: #56617A; line-height: 1.4; }
.vpi-not .vpi-ipucu { font-size: 13px; color: #7A5300; }
@media (max-width: 860px) {
  .vpi-govde { flex-direction: column; align-items: center; }
  .vpi-kart, .vpi-not { width: 100%; max-width: 440px; }
}
@media (max-width: 480px) {
  .vpi-perde { padding: 14px 12px 28px; }
  .vpi-adimlar li { font-size: 12px; } .vpi-adimlar li + li::before { width: 10px; }
  .vpi-kart { padding: 24px 18px 20px; }
  .vpi-kutu { width: 54px; height: 62px; }
}
/* ===== Giriş / kayıt: yalnızca form ===== */
body:not(.ws-doc) .auth-wrap { display: block; max-width: 480px; border: 2px solid #DDE2EC; }
body:not(.ws-doc) .auth-wrap .auth-card { padding: 22px 30px 28px; }
.auth-ust { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.auth-geri { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px 0 10px; border: 2px solid #DDE2EC; border-radius: 14px; background: #FFFFFF; color: #1F2A44; font: inherit; font-weight: 700; cursor: pointer; }
.auth-geri:hover { border-color: #1F2A44; }
.auth-geri:focus-visible { outline: 3px solid #2F5FE8; outline-offset: 2px; }
.auth-logo { font-size: 1.35rem; }
.auth-logo .mu-slogan { display: none; }
.auth-card .gate-err:not(:empty) { display: flex; align-items: flex-start; gap: 10px; background: #FFE9E4; border: 2px solid #E5484D; color: #A3201B; border-radius: 14px; padding: 12px 14px; margin: 2px 0 14px; font-size: 15px; font-weight: 700; line-height: 1.45; text-align: left; }
.auth-card .gate-err:not(:empty)::before { content: "!"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #E5484D; color: #FFFFFF; display: grid; place-items: center; font-size: 14px; font-weight: 800; line-height: 1; margin-top: 1px; }
.auth-card .auth-ok:not(.hidden) { background: #E3F4EA; border: 2px solid #1B7F4B; color: #14653B; border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.pw-kurallar { list-style: none; margin: -4px 0 12px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 14px; color: #56617A; }
.pw-kurallar li { display: flex; align-items: center; gap: 6px; }
.pw-kurallar li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid #C5CCDA; box-sizing: border-box; }
.pw-kurallar li.ok { color: #1B7F4B; }
.pw-kurallar li.ok::before { border: none; background: #1B7F4B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
/* Giriş, kayıt ve parola ekranları: gece teması (yönetici girişiyle aynı) */
body:has(#authView:not(.hidden)) { background: #1F2A44; }
/* Kart ortalanmaz, üstten sabit durur: içerik (hata mesajı, parola kuralları, Google düğmesi) değişince yalnızca aşağı doğru uzar, yukarı zıplamaz */
#authView:not(.hidden) { min-height: calc(100vh - 48px); display: flex; align-items: flex-start; justify-content: center; padding-top: clamp(8px, 6vh, 64px); box-sizing: border-box; }
#authView .mg-gok { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#authView .mg-teleskop { position: fixed; left: 56px; bottom: 22px; z-index: 0; pointer-events: none; }
@keyframes mg-pr { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
#authView .mg-pir { animation: mg-pr 3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { #authView .mg-pir { animation: none; } }
#authView .auth-wrap { position: relative; z-index: 1; width: 100%; max-width: 480px; margin: 0 auto; border: none; border-radius: 26px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
#authView .auth-wrap .auth-card { padding: 30px 34px 28px; border-radius: 26px; }
#authView .auth-ust { justify-content: center; margin-bottom: 16px; }
#authView .auth-logo { display: flex; flex-direction: column; align-items: center; font-size: 2.4rem; text-align: center; cursor: pointer; }
#authView .auth-logo .mu-yazi { display: flex; flex-direction: column; align-items: center; }
#authView .auth-card h2 { text-align: center; font-size: 1.5rem; margin-top: 4px; }
#authView .auth-card .sub { text-align: center; }
@media (max-width: 1100px) { #authView .mg-teleskop { width: 190px; height: 190px; left: 12px; bottom: 12px; } }
@media (max-width: 860px) { #authView .mg-teleskop { display: none; } }
@media (max-width: 600px) {
  #authView .auth-wrap .auth-card { padding: 24px 20px; }
  #authView .auth-logo { font-size: 2rem; }
}
/* Giriş ekranları: hilal */
#authView .mg-ay { position: fixed; right: 70px; top: 46px; z-index: 0; pointer-events: none; }
@media (max-width: 1100px) { #authView .mg-ay { width: 160px; height: 160px; right: 16px; top: 16px; } }
@media (max-width: 860px) { #authView .mg-ay { display: none; } }
/* ===== Uygulama üst barı: kapakla aynı görünüm ===== */
body:not(.ws-doc) header.topbar { background: #FFFFFF; color: #1F2A44; box-shadow: inset 0 -4px 0 var(--s-c); border-bottom: 1px solid #E3E8F2; }
.menu-btn { background: #FFFFFF; color: #1F2A44; border: 2px solid #1F2A44; }
.menu-btn:hover { background: #F4F6FA; }
.menu-btn:focus-visible { outline-color: #2F5FE8; }
body:not(.ws-doc) #brandHome { color: #1F2A44; --yorunge: #1F2A44; font-size: 1.7rem; font-weight: 800; align-items: center; }
body:not(.ws-doc) #brandHome span { color: #1F2A44; }
body:not(.ws-doc) #brandHome .mu-uzay { color: #2F5FE8; }
body:not(.ws-doc) #brandHome .mu-slogan { color: #56617A; }
body:not(.ws-doc) #brandHome:focus-visible { outline-color: #2F5FE8; }
@media (max-width: 600px) { body:not(.ws-doc) #brandHome { font-size: 1.4rem; } }
/* Veli panelleri: koyu üst bar ve panel adı */
.veli-etiket { display: none; }
body:has(#gateView:not(.hidden)) header.topbar, body:has(#parentView:not(.hidden)) header.topbar { background: #1F2A44; color: #FFFFFF; box-shadow: none; border-bottom: none; --yorunge: #DCE3F7; }
body:has(#gateView:not(.hidden)) #brandHome .mu-ad, body:has(#parentView:not(.hidden)) #brandHome .mu-ad { color: #FFFFFF; }
body:has(#gateView:not(.hidden)) #brandHome .mu-uzay, body:has(#parentView:not(.hidden)) #brandHome .mu-uzay { color: #4A75F0; }
body:has(#gateView:not(.hidden)) #brandHome .mu-slogan, body:has(#parentView:not(.hidden)) #brandHome .mu-slogan { color: #DCE3F7; }
body:has(#gateView:not(.hidden)) .menu-btn, body:has(#parentView:not(.hidden)) .menu-btn { color: #FFFFFF; border-color: rgba(255,255,255,.35); background: transparent; }
body:has(#gateView:not(.hidden)) .veli-etiket, body:has(#parentView:not(.hidden)) .veli-etiket { display: flex; align-items: center; gap: 18px; font-size: 18px; font-weight: 700; color: #DCE3F7; white-space: nowrap; }
body:has(#gateView:not(.hidden)) .veli-etiket::before, body:has(#parentView:not(.hidden)) .veli-etiket::before { content: ""; height: 28px; border-left: 2px solid rgba(255,255,255,.25); }
@media (max-width: 700px) { body:has(#gateView:not(.hidden)) .veli-etiket, body:has(#parentView:not(.hidden)) .veli-etiket { display: none; } }
/* Geri düğmesi: ana ekran dışındaki ekranlarda menü düğmesinin yerinde (konular, seviyeler, soru, veli PIN'i, Gelişim Takip Paneli, Hesabım) */
#geriBtn { display: none; }
body:has(#practiceView:not(.hidden) #topicsView:not(.hidden):not([data-gorunum="home"])) #geriBtn,
body:has(#practiceView:not(.hidden) #questionView:not(.hidden)) #geriBtn,
body:has(#gateView:not(.hidden)) #geriBtn, body:has(#parentView:not(.hidden)) #geriBtn { display: flex; }
body:has(#practiceView:not(.hidden) #topicsView:not(.hidden):not([data-gorunum="home"])) #menuBtn,
body:has(#practiceView:not(.hidden) #questionView:not(.hidden)) #menuBtn { display: none; }
/* Çentik (iPhone): üst çubuk ve kapağın üst bölümü çentiğin arkasına uzanır; gövde ayrıca boşluk bırakmaz (yoksa çentikte beyaz şerit kalır) */
body:has(#practiceView:not(.hidden)), body:has(#gateView:not(.hidden)), body:has(#parentView:not(.hidden)), body.kapak-acik { padding-top: 0; }
/* Android / iOS uygulamasında üst çubuk daha kısa */
html.uygulama body:not(.ws-doc) header.topbar { min-height: 0; gap: 10px; padding-top: calc(6px + env(safe-area-inset-top, 0px)); padding-bottom: 8px; margin-bottom: 12px; }
html.uygulama body:not(.ws-doc) header.topbar .mu-ikon { width: 36px; height: 36px; }
html.uygulama body:not(.ws-doc) #brandHome { font-size: 1.3rem; }
html.uygulama header.topbar .menu-btn { height: 40px; }
/* ===== Ses düğmeleri ===== */
.q-ses { margin-left: auto; flex: none; width: 46px; height: 46px; border-radius: 14px; border: 2px solid #DDE2EC; background: #FFFFFF; color: #1F2A44; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.q-ses:hover { border-color: #1F2A44; }
.q-ses:focus-visible { outline: 3px solid #2F5FE8; outline-offset: 2px; }
.q-ses .ses-kapali { display: none; }
.q-ses.kapali .ses-dalga { display: none; }
.q-ses.kapali .ses-kapali { display: inline; }
.q-bar { display: flex; align-items: center; gap: 12px; }
/* ===== Soru ekranı: "Hata bildir" düğmesi ve penceresi ===== */
.q-hata { margin-left: auto; flex: none; height: 46px; padding: 0 12px; border-radius: 14px; border: 2px solid #DDE2EC; background: #FFFFFF; color: #56617A; font: inherit; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.q-hata:hover { border-color: #BE3455; color: #BE3455; }
.q-hata:focus-visible { outline: 3px solid #2F5FE8; outline-offset: 2px; }
.q-hata[hidden] { display: none; }
.q-hata:not([hidden]) + .q-ses { margin-left: 8px; }
@media (max-width: 600px) { .q-hata span { display: none; } .q-hata { width: 46px; padding: 0; justify-content: center; } }

.hb-perde { position: fixed; inset: 0; z-index: 90; background: rgba(17, 23, 58, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.hb-perde.hidden { display: none; }
.hb-pencere { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; background: #FFFFFF; color: #1F2A44; border-radius: 22px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 18px 40px rgba(17, 23, 58, .25); box-sizing: border-box; }
.hb-pencere h2 { margin: 0; font-size: 22px; }
.hb-pencere p { margin: 0; font-size: 15px; color: #56617A; line-height: 1.45; }
.hb-p-ust { display: flex; align-items: center; gap: 10px; }
.hb-p-ikon { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #FDE7EC; color: #BE3455; display: grid; place-items: center; }
.hb-nedenler { border: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hb-nedenler legend { font-size: 14px; font-weight: 700; color: #56617A; padding: 0 0 6px; }
.hb-neden { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border: 2px solid #E3E8F2; border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; }
.hb-neden:has(input:checked) { border-color: #2F5FE8; background: #F3F7FF; }
.hb-neden input { accent-color: #2F5FE8; margin: 0; flex: none; }
.hb-not { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 700; color: #56617A; }
.hb-not-ust { display: flex; justify-content: space-between; gap: 8px; }
.hb-not-ust small { font-size: 13px; font-weight: 700; color: #8A93A8; flex: none; }
.hb-not textarea { font: inherit; font-size: 15px; font-weight: 400; color: #1F2A44; border: 2px solid #E3E8F2; border-radius: 12px; padding: 8px 10px; resize: none; }
.hb-not textarea:focus { outline: none; border-color: #2F5FE8; }
.hb-bilgi { display: flex; gap: 8px; align-items: flex-start; font-size: 13px !important; background: #F3F7FF; border-radius: 10px; padding: 8px 10px; }
.hb-bilgi svg { flex: none; margin-top: 1px; }
.hb-hata { color: #BE3455 !important; font-weight: 700; }
.hb-p-alt { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hb-hak { font-size: 13px !important; }
.hb-hak b { color: #1F2A44; }
.hb-dugmeler { display: flex; gap: 8px; margin-left: auto; }
.hb-btn { height: 44px; padding: 0 18px; border-radius: 12px; border: 2px solid #DCE3EF; background: #FFFFFF; color: #1F2A44; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.hb-btn.koyu { background: #1F2A44; border-color: #1F2A44; color: #FFFFFF; }
.hb-btn:disabled { opacity: .6; cursor: default; }
.hb-btn:focus-visible { outline: 3px solid #2F5FE8; outline-offset: 2px; }
.hb-sonuc { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 8px 4px; }
.hb-buyuk-ikon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; }
.hb-buyuk-ikon.ok { background: #E1F5EA; color: #1B7F4B; }
.hb-buyuk-ikon.bekle { background: #FFF3CC; color: #8A5A00; }
.hb-buyuk-ikon.bekle svg { width: 30px; height: 30px; }
@media (max-width: 480px) { .hb-nedenler { grid-template-columns: 1fr; } }
/* ===== Yönetici paneli (/yonetici): Hatalı sorular ===== */
.yp { width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 0 64px; display: flex; flex-direction: column; gap: 20px; color: #1F2A44; }
.yp * { box-sizing: border-box; }
#ypIc { display: flex; flex-direction: column; gap: 20px; }
.yp-sekmeler { display: flex; gap: 6px; border-bottom: 2px solid #DCE6FA; }
.yp-sekmeler[hidden] { display: none; }
.yp-sekme { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; font-size: 16px; font-weight: 700; color: #56617A; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.yp-sekme { background: none; border: none; border-bottom: 3px solid transparent; font-family: inherit; cursor: pointer; }
.yp-sekme:hover { color: #1F2A44; }
.yp-sekme:focus-visible { outline: 3px solid #2F5FE8; outline-offset: -3px; border-radius: 8px; }
.yp-sekme.secili { color: #1F2A44; border-bottom-color: #2F5FE8; }
.yp-sekme b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #BE3455; color: #FFFFFF; font-size: 12px; display: inline-grid; place-items: center; }
.yp-sekme b[hidden] { display: none; }
.yp-bas { display: flex; flex-direction: column; gap: 4px; }
.yp-bas h1 { margin: 0; font-size: 32px; }
.yp-bas span { font-size: 16px; color: #56617A; }
.yk-bas { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.yk-cozen { display: flex; align-items: center; gap: 12px; background: #FFFFFF; border: 2px solid #DDE2EC; border-radius: 16px; padding: 10px 18px; }
.yk-cozen i { width: 12px; height: 12px; flex: none; border-radius: 50%; background: #1B7F4B; box-shadow: 0 0 0 4px #E1F5EA; }
.yk-cozen b { font-size: 30px; line-height: 1; }
.yk-cozen span { display: flex; flex-direction: column; font-size: 15px; font-weight: 700; line-height: 1.25; }
.yk-cozen small { font-size: 13px; font-weight: 400; color: #56617A; }
.yp-kart { background: #FFFFFF; border: 2px solid #DCE6FA; border-radius: 20px; }
.yp-uyari { background: #FFFFFF; border: 2px solid #DCE6FA; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.yp-uyari b { font-size: 22px; }
.yp-uyari p { margin: 0; font-size: 16px; color: #56617A; }
.yp-btn { height: 42px; padding: 0 16px; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; border: 2px solid #DCE3EF; background: #FFFFFF; color: #1F2A44; }
.yp-btn:hover { border-color: #2F5FE8; }
/* Seçilen sonuç: Düzeltildi yeşil, Hata yok gri; seçilmemişler beyaz */
.yp-btn.duz-on { border-color: #1B7F4B; color: #1B7F4B; background: #E1F5EA; }
.yp-btn.yok-on { border-color: #8A93A8; color: #1F2A44; background: #EEF1F7; }
.yp-btn:disabled { opacity: .6; cursor: default; }
.yh-iki { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.yh-liste { overflow: hidden; }
.yh-satir { width: 100%; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 120px; gap: 12px; align-items: center; padding: 10px 16px; border: none; border-top: 1px solid #EDF0F6; background: #FFFFFF; min-height: 68px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.yh-satir:hover { background: #F5F8FF; }
.yh-satir.secili { background: #F3F7FF; box-shadow: inset 4px 0 0 #2F5FE8; }
.yh-baslik { min-height: 40px; background: #F7F9FC; font-size: 12px; font-weight: 700; color: #56617A; letter-spacing: .5px; cursor: default; }
.yh-baslik:hover { background: #F7F9FC; }
.yh-bilgi, .yh-kim { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.yh-bilgi b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yh-bilgi small, .yh-kim small { font-size: 13px; color: #56617A; }
.yh-kim { font-size: 14px; overflow-wrap: anywhere; }
.yh-neden { font-size: 14px; color: #3D4861; line-height: 1.3; }
.yh-bos { margin: 0; padding: 28px 16px; text-align: center; color: #56617A; font-size: 15px; border-top: 1px solid #EDF0F6; }
.yh-detay { padding: 18px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
.yh-detay .yh-bos { border-top: none; }
.yh-d-ust { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.yh-d-ust b { font-size: 19px; }
.yh-goruntu { background: #F4F7FC; border: 2px solid #DCE6FA; border-radius: 14px; padding: 8px; }
.yh-goruntu img { display: block; width: 100%; height: auto; border-radius: 8px; }
.yh-dl { margin: 0; display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 14px; }
.yh-dl dt { color: #56617A; font-weight: 700; }
.yh-dl dd { margin: 0; overflow-wrap: anywhere; }
.yh-metin { max-height: 120px; overflow: auto; color: #3D4861; }
.yh-cihaz { font-size: 12px; color: #56617A; }
.yh-hata { margin: 0; color: #BE3455; font-weight: 700; font-size: 14px; }
.yh-d-alt { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .yh-iki { grid-template-columns: 1fr; }
  .yh-detay { position: static; }
  .yh-satir { grid-template-columns: minmax(0, 1fr) 110px; }
  .yh-satir .yh-neden, .yh-baslik span:nth-child(2) { display: none; }
}
.yh-not { margin: 0; font-size: 13px; color: #56617A; }
.yh-rozet { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.yh-rozet i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.yh-satir.yeni .yh-kim { font-weight: 700; }
.yh-satir.yeni .yh-kim small { font-weight: 400; }

/* Ortak: renkli baş harf, düğme türleri, geri bağlantısı */
.yk-av { flex: none; width: 34px; height: 34px; border-radius: 50%; color: #FFFFFF; font-size: 14px; font-weight: 700; display: grid; place-items: center; }
.yk-av.buyuk { width: 46px; height: 46px; font-size: 18px; }
.yp-btn.koyu { background: #1F2A44; border-color: #1F2A44; color: #FFFFFF; }
.yp-btn.uyari { border-color: #E8A317; color: #8A5A00; background: #FFF8E6; }
.yp-btn.yesil { border-color: #1B7F4B; color: #1B7F4B; background: #E1F5EA; }
.yp-btn.tehlike { border-color: #BE3455; background: #BE3455; color: #FFFFFF; }
.yp-btn.tehlike-cizgi, .yp-btn.kaldir { border-color: #F2C2CD; color: #BE3455; background: #FFFFFF; }
.yp-geri { align-self: flex-start; background: none; border: none; padding: 6px 0; font: inherit; font-size: 15px; font-weight: 700; color: #2F5FE8; cursor: pointer; }
.yp-input { height: 44px; border-radius: 12px; border: 2px solid #DCE3EF; padding: 0 14px; font: inherit; font-size: 15px; color: #1F2A44; background: #FFFFFF; width: 100%; }
.yp-input:focus { outline: none; border-color: #2F5FE8; }

/* Kullanıcılar */
.yk-arac { display: flex; gap: 12px; align-items: flex-end; padding: 14px 16px; }
.yk-arac .yp-btn { flex: none; white-space: nowrap; }
.yk-satir { width: 100%; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr) 130px 110px; gap: 12px; align-items: center; padding: 10px 16px; border: none; border-top: 1px solid #EDF0F6; background: #FFFFFF; min-height: 60px; font: inherit; color: inherit; text-align: left; cursor: pointer; font-size: 15px; }
.yk-satir:hover { background: #F5F8FF; }
.yk-satir.yh-baslik:hover { background: #F7F9FC; }
.yk-kim { display: flex; align-items: center; gap: 12px; min-width: 0; }
.yk-kim b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yk-soluk { color: #56617A; font-size: 14px; }
.yk-ust { padding: 22px; display: flex; align-items: center; gap: 16px; }
.yk-ust > div { flex: 1; min-width: 0; }
.yk-ust h1 { margin: 0; font-size: 26px; overflow-wrap: anywhere; }
.yk-ust span { font-size: 15px; color: #56617A; }
.yk-bilgi { padding: 18px 22px; }
.yk-paketler { overflow: hidden; }
.yk-paket-bas { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.yk-paket-bas b { display: block; font-size: 18px; }
.yk-paket-bas span { font-size: 14px; color: #56617A; overflow-wrap: anywhere; }
.yk-silme { margin: 0; padding: 10px 20px; background: #FFF8E6; color: #7A5300; font-size: 14px; font-weight: 700; }
.yk-paket { display: grid; grid-template-columns: 120px 130px minmax(170px, 1fr) minmax(170px, 1fr) 150px 86px; gap: 12px; align-items: center; min-height: 66px; padding: 8px 20px; border-top: 1px solid #EDF0F6; font-size: 15px; }
.yk-paket.soluk { opacity: .62; }
.yk-paket small { display: block; font-size: 13px; color: #56617A; overflow-wrap: anywhere; }
.yk-paket-ust { min-height: 40px; background: #F7F9FC; font-size: 12px; font-weight: 700; color: #56617A; letter-spacing: .5px; }
.yk-psinif { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.yk-psinif i { width: 30px; height: 30px; flex: none; border-radius: 50%; color: #FFFFFF; font-style: normal; display: flex; align-items: center; justify-content: center; }
.yk-pkaldir { height: 36px; padding: 0 12px; font-size: 14px; }
.yk-pform { max-width: 540px; max-height: calc(100vh - 32px); overflow: auto; }
.yk-pcipler { display: flex; flex-wrap: wrap; gap: 8px; }
.yk-pcip input { position: absolute; opacity: 0; width: 0; height: 0; }
.yk-pcip span { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid #DCE3EF; font-size: 15px; font-weight: 700; color: #56617A; background: #FFFFFF; cursor: pointer; }
.yk-pcip input:checked + span { background: #1F2A44; border-color: #1F2A44; color: #FFFFFF; }
.yk-pcip input:focus-visible + span { outline: 3px solid #2F5FE8; outline-offset: 2px; }
.yk-piki { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.yk-psuresiz { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.yk-pnot { margin: 0; background: #FFF8E6; border-radius: 12px; padding: 10px 14px; font-size: 14px; color: #7A5300; line-height: 1.45; }
.yk-pnot.hidden { display: none; }
@media (max-width: 860px) {
  .yk-paket-ust { display: none; }
  .yk-paket { grid-template-columns: 1fr 1fr; }
  .yk-psinif { grid-column: 1 / -1; }
}
.yk-islem { padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; border-color: #F2C2CD; }
.yk-islem > b { font-size: 19px; }
.yk-islem-sat { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.yk-islem-sat + .yk-islem-sat { padding-top: 16px; border-top: 1px solid #EDF0F6; }
.yk-islem-sat div { display: flex; flex-direction: column; gap: 2px; }
.yk-islem-sat span { font-size: 14px; color: #56617A; max-width: 620px; }
.yk-islem-sat .yp-btn { flex: none; }
.kirmizi { color: #BE3455; }

/* Onay penceresi */
.yp-perde { position: fixed; inset: 0; z-index: 95; background: rgba(17, 23, 58, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.yp-onay { width: 100%; max-width: 480px; padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 18px 40px rgba(17, 23, 58, .25); color: #1F2A44; }
.yp-onay > b { font-size: 22px; }
.yp-onay > p { margin: 0; font-size: 15px; color: #3D4861; line-height: 1.5; }
.yp-alan { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: #56617A; }
.yp-alan small { font-weight: 400; }
.yp-alan textarea, .yp-alan input { font: inherit; font-size: 15px; font-weight: 400; color: #1F2A44; border: 2px solid #DCE3EF; border-radius: 12px; padding: 10px 14px; resize: none; }
.yp-alan textarea:focus, .yp-alan input:focus { outline: none; border-color: #2F5FE8; }
.yp-alan-alt { font-size: 12px; font-weight: 400; color: #8A93A8; }
.yp-alan-alt.uyari { color: #BE3455; }
.yp-onay-alt { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }

/* İşlem kayıtları */
.ik-tarih { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: #56617A; flex: none; }
.ik-tarih .yp-input { width: 150px; }
.ik-gun { padding: 8px 16px; background: #F7F9FC; border-top: 1px solid #EDF0F6; font-size: 12px; font-weight: 700; letter-spacing: .6px; color: #56617A; text-transform: uppercase; }
.ik-satir { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 52px; gap: 12px; align-items: center; padding: 10px 16px; border: none; border-top: 1px solid #EDF0F6; background: #FFFFFF; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ik-satir:hover { background: #F5F8FF; }
.ik-satir.secili { background: #F3F7FF; box-shadow: inset 4px 0 0 #2F5FE8; }
.ik-metin { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 15px; }
.ik-metin > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #3D4861; }
.ik-metin b { color: #1F2A44; }
.ik-metin small { font-size: 13px; color: #56617A; }
.ik-saat { font-size: 14px; color: #56617A; text-align: right; }
.ik-alt { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid #EDF0F6; font-size: 14px; color: #56617A; }
.ik-d-bas { display: flex; gap: 12px; align-items: center; padding: 12px; background: #F7F9FC; border-radius: 14px; }
.ik-d-bas b { display: block; font-size: 17px; }
.ik-d-bas small { font-size: 13px; color: #56617A; }
.ik-once { padding: 2px 8px; border-radius: 8px; background: #E1F5EA; color: #1B7F4B; font-weight: 700; }
.ik-sonra { padding: 2px 8px; border-radius: 8px; background: #ECEFF4; color: #56617A; font-weight: 700; }
.ik-kilit { margin: 0; padding: 10px 12px; border-radius: 12px; background: #F3F7FF; color: #1E5BC6; font-size: 13px; font-weight: 700; }

/* Yöneticiler */
.yn { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.yn-ekle { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.yn-ekle label { font-size: 15px; font-weight: 700; }
.yn-ekle-sat { display: flex; gap: 10px; }
.yn-ekle small { font-size: 13px; color: #56617A; }
.yn-liste { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.yn-satir { display: flex; align-items: center; gap: 14px; padding: 14px 20px; }
.yn-satir + .yn-satir { border-top: 1px solid #EDF0F6; }
.yn-bilgi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.yn-bilgi b { font-size: 16px; overflow-wrap: anywhere; }
.yn-bilgi small { font-size: 13px; color: #56617A; }
.yn-sen { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #E3EDFF; color: #1E5BC6; font-size: 12px; vertical-align: 2px; }

@media (max-width: 760px) {
  .yk-satir { grid-template-columns: minmax(0, 1fr) 110px; }
  .yk-satir > span:nth-child(2), .yk-satir > span:nth-child(4) { display: none; }
  .yk-islem-sat { flex-direction: column; align-items: flex-start; }
  .yk-arac { flex-wrap: wrap; }
  .yp-sekmeler { overflow-x: auto; }
  .yp-sekme { flex: none; padding: 0 12px; }
}

/* Siteden bağımsız tam ekran: sitenin üst barı ve alt bilgisi gizlenir */
.mu-sayfa.yp-tam { background: #F4F6FA; }
.mu-sayfa.yp-tam .mu-sayfa-bar, .mu-sayfa.yp-tam #sayfaAlt { display: none; }
.mu-sayfa.yp-tam .mu-sayfa-ic { max-width: none; padding: 0; }
#ypKok { min-height: 100vh; display: flex; flex-direction: column; }
#ypKok > .yp { padding: 20px 24px 64px; }

/* Panel üst barı */
.yp-ust { height: 68px; background: #1F2A44; color: #FFFFFF; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 max(24px, calc(50vw - 600px)); }
.yp-ust-sol, .yp-ust-sag { display: flex; align-items: center; gap: 14px; min-width: 0; }
.yp-ust-sol > span:last-child { font-size: 18px; font-weight: 700; color: #DCE3F7; }
.yp-ust-sol i { height: 28px; border-left: 2px solid rgba(255,255,255,.25); }
.yp-logo { font-size: 26px; font-weight: 700; }
.yp-logo span { color: #FFD84D; }
.yp-ust-sag > span { font-size: 14px; color: #DCE3F7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yp-cik { flex: none; height: 36px; padding: 0 14px; border-radius: 10px; border: 2px solid rgba(255,255,255,.3); background: none; font: inherit; font-weight: 700; color: #FFFFFF; cursor: pointer; }
.yp-cik:hover { border-color: #FFD84D; color: #FFD84D; }

/* Yönetici girişi: yıldızlı koyu zemin, ortada kart */
.yg { position: relative; min-height: 100vh; background: #1F2A44; display: flex; align-items: center; justify-content: center; padding: 24px 16px; overflow: hidden; }
.yg-gok { position: absolute; inset: 0; width: 100%; height: 100%; fill: #FFFFFF; }
@keyframes yg-pr { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.yg-pir { animation: yg-pr 3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .yg-pir { animation: none; } }
.yg-kart { position: relative; width: 100%; max-width: 440px; background: #FFFFFF; color: #1F2A44; border-radius: 26px; padding: 34px 32px 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.yg-bas { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.yg-logo { font-size: 32px; font-weight: 700; line-height: 1; }
.yg-logo span { color: #2F5FE8; }
.yg-etiket { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: #F4F6FA; font-size: 13px; font-weight: 700; color: #56617A; }
.yg-alan { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: #56617A; }
.yg-input { height: 50px; border-radius: 12px; border: 2px solid #DCE3EF; padding: 0 14px; font: inherit; font-size: 16px; font-weight: 400; color: #1F2A44; width: 100%; background: #FFFFFF; }
.yg-input:focus { outline: none; border-color: #2F5FE8; }
.yg-hata { background: #FDE7EC; color: #BE3455; border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 700; }
.yg-bilgi { background: #E1F5EA; color: #1B7F4B; border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 700; line-height: 1.45; }
.yg-btn { height: 52px; border-radius: 14px; border: none; background: #1F2A44; color: #FFFFFF; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.yg-btn:hover { background: #2C3A5C; }
.yg-btn:disabled { opacity: .7; cursor: default; }
.yg-link { align-self: center; background: none; border: none; font: inherit; font-size: 14px; font-weight: 700; color: #2F5FE8; cursor: pointer; padding: 4px; text-decoration: underline; }
.yg-baslik { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.yg-baslik > b { font-size: 24px; }
.yg-baslik span { font-size: 15px; color: #56617A; line-height: 1.5; overflow-wrap: anywhere; }
.yg-baslik span b { color: #1F2A44; }
.yg-parola { position: relative; display: block; }
.yg-parola .yg-input { padding-right: 84px; }
.yg-goz { position: absolute; right: 8px; top: 7px; height: 36px; padding: 0 10px; border: none; border-radius: 8px; background: #F4F6FA; font: inherit; font-size: 13px; font-weight: 700; color: #56617A; cursor: pointer; }
.yg-sure { font-size: 13px; color: #56617A; text-align: center; }
.yg-linkler { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
@media (max-width: 400px) { .yg-kart { padding: 28px 20px 24px; } }
.yg-not { margin: 0; font-size: 13px; color: #56617A; text-align: center; line-height: 1.5; }
.yg-btn:focus-visible, .yg-link:focus-visible, .yp-cik:focus-visible { outline: 3px solid #2F5FE8; outline-offset: 2px; }
@media (max-width: 600px) { .yp-ust-sol > span:last-child, .yp-ust-sol i, .yp-ust-sag > span { display: none; } }
/* ===== Ana ekran: kilitli sınıflar ===== */
.sinif-kart.kapali .sk-ad span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.sk-kilit { flex: none; }

/* Konu kartları: köşeden doğan gezegen (konunun ödül gezegeni). Konu tamamlanana kadar gri. */
.konu-kart { position: relative; overflow: hidden; }
.konu-kart .kk-ad { padding-right: 46px; }
.konu-kart .kk-ad b { color: color-mix(in srgb, var(--kg-k, #1F2A44) 82%, #1F2A44); }
.konu-kart .tk-oduller { position: relative; }
.kk-gezegen { position: absolute; right: -34px; bottom: -30px; width: 120px; height: auto; overflow: visible; filter: grayscale(1); opacity: .35; transition: filter .3s ease, opacity .3s ease; pointer-events: none; }
.konu-kart.kg-tamam .kk-gezegen { filter: none; opacity: 1; }
@media (hover: hover) { .konu-kart:hover { border-color: var(--kg-r, var(--s-c)); } } /* dokunmatik ekranda parmak çekilince renk takılı kalmasın */
@media (max-width: 600px) { .kk-gezegen { width: 96px; right: -28px; bottom: -26px; } }

/* Android / iOS uygulamasında konular alt alta liste: solda gezegen (tam görünür), sağda ad, açıklama ve ödüller.
   Ödüller kazanılınca büyümez, yalnızca renklenir; hiçbir şey kartın dışına taşmaz. */
html.uygulama body:not(.ws-doc) .topics-view[data-gorunum] .konu-kartlar { grid-template-columns: 1fr; gap: 8px; }
html.uygulama .topics-view .konu-kart { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "gz ust" "gz od"; column-gap: 12px; row-gap: 6px; align-items: center; min-height: 0; padding: 10px 12px 10px 8px; }
html.uygulama .topics-view .konu-kart .kk-gezegen { grid-area: gz; position: static; width: 64px; height: auto; }
html.uygulama .topics-view .konu-kart .kk-ust { grid-area: ust; }
html.uygulama .topics-view .konu-kart .kk-ad { padding-right: 0; }
html.uygulama .topics-view .konu-kart .tk-oduller { grid-area: od; min-height: 0; gap: 8px; }
html.uygulama .topics-view .konu-kart .tk-oduller svg { width: 24px; height: 24px; }
html.uygulama .topics-view .konu-kart .tk-oduller .uo-kume-us sup { font-size: .8rem; }

/* Ana ekran · Ödüllerim: Gelişim Takip Paneli'ndeki ödül kartlarıyla aynı düzen */
.odul-toplam { display: block; background: #F7F9FC; border: 1px solid #E6EAF2; border-radius: 16px; padding: 14px 16px 16px; }
.odul-toplam .ot-bas { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid #E6EAF2; }
.odul-toplam .ot-bas b { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.odul-toplam .od-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.odul-toplam .od-kart { display: flex; align-items: center; gap: 12px; background: #FFFFFF; border: 2px solid #E6EAF2; border-radius: 14px; padding: 12px 14px; }
.odul-toplam .od-kart.kazandi { border-color: var(--od); }
.odul-toplam .od-yazi { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.odul-toplam .od-yazi b { font-size: 24px; font-weight: 800; color: #8A93A6; }
.odul-toplam .od-yazi span { font-size: 14px; font-weight: 700; color: #8A93A6; }
.odul-toplam .od-kart.kazandi .od-yazi b, .odul-toplam .od-kart.kazandi .od-yazi span { color: #1F2A44; }
.odul-toplam .od-kart .uo-soluk { opacity: .35; }
@media (max-width: 900px) { .odul-toplam .od-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .odul-toplam .od-kart { flex-direction: column; gap: 4px; padding: 10px 6px; text-align: center; } .odul-toplam .od-kart .uo-ik { width: 40px; height: 40px; } .odul-toplam .od-yazi { align-items: center; } .odul-toplam .od-yazi span { font-size: 13px; } }
/* Dokunmatik ekranda: parmak kartın üstündeyken çerçeve renklenir, çekilince söner */
.konu-kart:active { border-color: var(--kg-r, var(--s-c)); }
.sinif-kart:active { filter: brightness(1.06); }

/* Ana ekran · Günlük görev: her gün 10 soru (halka sayaç, Başla / Devam et) ve haftalık roket yakıtı (7 bölme) */
.gun-kart { background: #E6EAF2; border-radius: 20px; padding: 18px; margin: 0 0 18px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.gun-kart.tamam { background: #E7F6F3; }
.gk-ust { display: flex; align-items: center; gap: 16px; }
.gk-halka { flex: none; position: relative; width: 84px; height: 84px; }
.gk-halka svg { display: block; width: 100%; height: 100%; }
.gk-halka b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.gk-halka b small { font-size: 0.85rem; color: var(--ink-soft); margin-left: 1px; }
.gk-yazi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gk-yazi small { font-size: 0.8rem; letter-spacing: 0.06em; color: var(--ink-soft); font-weight: 700; }
.gk-yazi b { font-size: 1.5rem; line-height: 1.2; }
.gk-yazi span { font-size: 0.98rem; color: #3D4861; }
.gk-btn { flex: none; height: 52px; padding: 0 22px; border-radius: 14px; background: #1F2A44; color: #FFFFFF; font: inherit; font-size: 1.1rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid #1F2A44; cursor: pointer; }
.gun-kart.tamam .gk-btn { background: #FFFFFF; color: #1F2A44; }
.gk-btn:focus-visible { outline: 3px solid #1F2A44; outline-offset: 2px; }
.gk-yakit { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #FFFFFF; border-radius: 16px; padding: 10px 14px; }
.gk-yakit-yazi { display: flex; flex-direction: column; gap: 1px; }
.gk-yakit-yazi b { font-size: 0.95rem; }
.gk-yakit-yazi span { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); }
.gk-depo-sira { display: flex; align-items: center; }
.gk-depo { display: flex; gap: 3px; padding: 4px; border: 2.5px solid #1F2A44; border-radius: 10px; background: #FFFFFF; }
.gk-depo i { width: 16px; height: 22px; border-radius: 4px; background: #EEF1F6; }
.gk-depo i.dolu { background: #F2681D; }
.gk-depo i.bugun { background: #FFD6BC; outline: 2px dashed #F2681D; outline-offset: -2px; }
.gk-depo-uc { width: 5px; height: 12px; background: #1F2A44; border-radius: 0 3px 3px 0; margin-right: 6px; }
.gk-yakit.hazir { background: #FFF4D6; outline: 2px solid #FFC20E; }
.gk-yakit.hazir .gk-yakit-yazi span { color: #7A4E00; }
/* depo yanındaki roket hep hafifçe süzülür */
.gk-roket { animation: gk-suzul 2.6s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes gk-suzul { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-4px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .gk-roket { animation: none; } }
@media (max-width: 600px) {
  .gun-kart { padding: 14px; }
  .gk-ust { flex-wrap: wrap; gap: 12px; }
  .gk-halka { width: 72px; height: 72px; }
  .gk-halka b { font-size: 1.2rem; }
  .gk-yazi b { font-size: 1.25rem; }
  .gk-btn { width: 100%; }
  .gk-yakit { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Seri bozulunca ana ekranda bir kez açılan pencere (üzgün maskot, yeni yolculuk) */
.seri-perde { position: fixed; inset: 0; z-index: 200; background: rgba(31, 42, 68, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.seri-pencere { width: 100%; max-width: 420px; background: #FFFFFF; border-radius: 24px; padding: 24px 26px 26px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--ink); box-shadow: 0 10px 30px rgba(31, 42, 68, .25); }
.seri-pencere img { width: 120px; height: auto; }
.seri-pencere b { font-size: 1.5rem; line-height: 1.2; }
.seri-pencere span { font-size: 1rem; color: #3D4861; line-height: 1.5; }
.seri-pencere .gk-depo { margin: 4px 0; }
.seri-pencere .gk-btn { width: 100%; }

/* Soru ekranı: günlük sayaç her ekranda kendi satırında durur (telefonda konu adının, bilgisayarda Hata bildir ve Ses düğmelerinin altında). */
.gorev-cip { flex: none; padding: 4px 12px; border-radius: 999px; background: #E6EAF2; color: #1F2A44; font-weight: 800; font-size: 0.95rem; white-space: nowrap; }
.gorev-cip.tamam { background: #E7F6F3; color: #0B7A6A; }
.q-bar { flex-wrap: wrap; row-gap: 6px; }
.q-bar .q-bar-name { order: 1; flex: 1 1 0; }
.q-bar .q-hata, .q-bar #soundToggle { order: 2; }
.q-bar::after { content: ""; order: 3; flex-basis: 100%; height: 0; }
.q-bar .gorev-cip { order: 4; }
/* ===== Veli ekranları: haftalık grafik, PIN, gelişim ve ödüller ===== */
/* Haftalık grafik */
.pv-hafta { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding: 6px 2px 0; }
.ph-gun { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ph-alan { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.ph-alan i { display: flex; flex-direction: column; width: min(36px, 100%); min-height: 3px; background: #1B7F4B; border-radius: 8px 8px 3px 3px; overflow: hidden; }
.ph-alan i em { display: block; width: 100%; background: #BE3455; }
.ph-gun.gelecek .ph-alan i, .ph-gun.bos .ph-alan i { background: #E6EAF2; }
.ph-say { font-size: 12px; font-weight: 700; color: #56617A; min-height: 16px; }
.ph-ad { font-size: 13px; color: #56617A; font-weight: 700; }
.ph-gun.bugun .ph-ad { color: #1F2A44; text-decoration: underline; text-underline-offset: 3px; }
.ph-lejant { display: flex; gap: 16px; justify-content: center; font-size: 13px; color: #56617A; margin-top: 6px; }
.ph-lejant span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ph-lejant .ok::before { background: #1B7F4B; }
.ph-lejant .no::before { background: #BE3455; }

/* Veli PIN'i */
#gateView .pin-kart { box-sizing: border-box; width: 100%; max-width: 440px; margin: 40px auto 0; background: #FFFFFF; border: 1px solid #E3E8F2; border-radius: 26px; padding: 34px 34px 30px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 12px 32px rgba(31,42,68,.08); color: #1F2A44; }
#gateView .pin-kart * { box-sizing: border-box; }
#gateView .pin-rozet { align-self: center; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: #F4F6FA; font-size: 13px; font-weight: 700; color: #56617A; }
#gateView .pin-zarf { align-self: center; display: block; }
#gateView .pin-baslik { margin: 0; text-align: center; font-size: 26px; font-weight: 700; color: #1F2A44; }
#gateView .pin-alt { margin: -6px 0 0; text-align: center; font-size: 15px; line-height: 1.5; color: #56617A; }
#gateView .pin-kutular { position: relative; display: flex; justify-content: center; gap: 12px; }
#gateView .pin-kutu { width: 60px; height: 68px; border-radius: 14px; border: 2px solid #DCE3EF; background: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; color: #1F2A44; }
#gateView .pin-kutu.dolu { border-color: #2F5FE8; }
#gateView .pin-kutu.hata { border-color: #BE3455; }
#gateView .pin-kutular:focus-within .pin-kutu.siradaki { border-color: #2F5FE8; box-shadow: 0 0 0 3px rgba(47,95,232,.18); }
#gateView .pin-gizli { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: none; font-size: 16px; cursor: text; }
#gateView .pin-eposta { align-self: center; margin-top: -6px; font-size: 18px; font-weight: 800; color: #1F2A44; background: #F4F6FA; border-radius: 12px; padding: 10px 16px; word-break: break-all; text-align: center; }
#gateView .pin-not { text-align: center; font-size: 13px; color: #56617A; margin-top: -4px; }
#gateView .pin-hata { background: #FDE7EC; color: #BE3455; border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 700; text-align: center; }
#gateView .pin-bilgi { background: #E3F4EA; color: #1B7F4B; border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 700; text-align: center; }
#gateView .pin-btn { height: 52px; border-radius: 14px; border: none; background: #1F2A44; color: #FFFFFF; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; width: 100%; }
#gateView .pin-btn:hover { background: #2C3A5C; }
#gateView .pin-btn:disabled { opacity: .6; cursor: default; }
#gateView .pin-link { align-self: center; background: none; border: none; font: inherit; font-size: 14px; font-weight: 700; color: #1F2A44; cursor: pointer; padding: 4px; text-decoration: underline; }
@media (max-width: 480px) { #gateView .pin-kart { padding: 26px 20px 24px; margin-top: 20px; } #gateView .pin-kutu { width: 54px; height: 62px; } }
#parentView .pv-settings:has(#resetConfirm:not(.hidden)) #resetProgress { display: none; }
/* Gelişim paneli: doğru/yanlış renkleri */
#parentView .ds-ok { color: #2F7BF5; }
#parentView .ds-no { color: #E2553F; }
/* Haftalık grafik: her gün yan yana doğru ve yanlış sütunu; toplamlar sağ üstte */
#parentView .gr { background: #F7F9FC; border: 1px solid #E6EAF2; border-radius: 16px; padding: 16px 20px 18px; margin: 0 0 6px; }
#parentView .gr-ust { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding-bottom: 12px; border-bottom: 1px solid #E6EAF2; }
#parentView .gr-ust h3 { margin: 0; font-size: 17px; font-weight: 800; color: #1F2A44; }
#parentView .gr-lejant { margin-left: auto; display: flex; gap: 18px; font-size: 15px; color: #56617A; }
#parentView .gr-lejant span { display: inline-flex; align-items: center; gap: 7px; }
#parentView .gr-lejant i { width: 12px; height: 12px; border-radius: 3px; }
#parentView .gr-lejant b { font-size: 18px; color: #1F2A44; }
#parentView .gr .d { background: #2F7BF5; }
#parentView .gr .y { background: #FF6F59; }
#parentView .gr-gunler { height: 300px; margin-top: 12px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
#parentView .gr-gun { display: flex; align-items: flex-end; justify-content: center; min-width: 0; }
#parentView .gr-cift { height: calc(100% - 26px); width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 6px; }
#parentView .gr-sut { position: relative; display: block; width: min(34px, 40%); min-height: 2px; border-radius: 7px 7px 0 0; }
#parentView .gr-sut em { position: absolute; left: 50%; bottom: 100%; margin-bottom: 4px; transform: translateX(-50%); font-style: normal; font-size: 14px; font-weight: 700; }
#parentView .gr-sut.d em { color: #2F7BF5; }
#parentView .gr-sut.y em { color: #E2553F; }
#parentView .gr-yok { align-self: center; font-size: 13px; color: #A3ABBD; text-align: center; }
#parentView .gr-adlar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 2px solid #C9D0DC; padding-top: 8px; }
#parentView .gr-adlar span { text-align: center; font-size: 14px; font-weight: 700; color: #56617A; }
#parentView .gr-adlar span.bugun { color: #1F2A44; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  #parentView .gr { padding: 14px 12px 14px; }
  #parentView .gr-gunler { height: 220px; }
  #parentView .gr-cift { gap: 3px; }
  #parentView .gr-sut em { font-size: 12px; }
  #parentView .gr-yok { font-size: 11px; }
  #parentView .gr-lejant { gap: 12px; font-size: 14px; }
}
/* Konu satırları */
#parentView .pv-line .v.pv-dy { font-size: 0.86rem; color: var(--ink-soft); }
#parentView .pv-basari { color: #1F2A44; font-weight: 800; }
@media (max-width: 600px) { #parentView .pv-line { flex-wrap: wrap; } #parentView .pv-line .v.pv-dy { white-space: normal; } }
/* Ödüller */
#parentView .od-kutu { background: #F7F9FC; border: 1px solid #E6EAF2; border-radius: 14px; padding: 14px 18px 16px; margin: 64px 0 8px; }
#parentView .od-ust { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #E6EAF2; margin-bottom: 14px; }
#parentView .od-baslik { margin: 0; font-size: 15px; font-weight: 800; color: #1F2A44; }
#parentView .od-say { font-size: 14px; color: #56617A; }
#parentView .od-say b { color: #1F2A44; font-size: 18px; }
#parentView .od-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
#parentView .od-kart { display: flex; align-items: center; gap: 12px; background: #FFFFFF; border: 2px solid #E6EAF2; border-radius: 14px; padding: 12px 14px; }
#parentView .od-kart.kazandi { border-color: var(--od); }
#parentView .od-yazi { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
#parentView .od-yazi b { font-size: 24px; font-weight: 800; color: #8A93A6; }
#parentView .od-kart.kazandi .od-yazi b { color: #1F2A44; }
#parentView .od-yazi span { font-size: 14px; font-weight: 700; color: #8A93A6; }
#parentView .od-kart.kazandi .od-yazi span { color: #1F2A44; }
#parentView .od-kart .uo-soluk { opacity: .35; }
@media (max-width: 900px) { #parentView .od-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Telefonda kart daralır: ikon yazının üstüne geçer, ad tek satırda kalır */
@media (max-width: 600px) { #parentView .od-kart { flex-direction: column; gap: 4px; padding: 10px 6px; text-align: center; } #parentView .od-kart .uo-ik { width: 40px; height: 40px; } #parentView .od-yazi { align-items: center; } #parentView .od-yazi span { font-size: 13px; } }

/* Sekmeler: her sayfanın rengi ve simgesi; seçili sekme kendi rengiyle dolar, altındaki çizgi o renge döner */
#parentView .pv-tabs { gap: 10px; background: transparent; border-radius: 0; padding: 0 0 14px; border-bottom: 4px solid #2F7BF5; margin-bottom: 16px; }
#parentView .pv-tabs:has([data-pv="konu"].on) { border-bottom-color: #11A391; }
#parentView .pv-tabs:has([data-pv="gecmis"].on) { border-bottom-color: #8A55E6; }
#parentView .pv-tabs:has([data-pv="kagit"].on) { border-bottom-color: #F2681D; }
#parentView .pv-tabs button { --r: #2F7BF5; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; border-radius: 14px; border: 2px solid #E6EAF2; background: #FFFFFF; color: #1F2A44; font-family: inherit; font-size: 16px; font-weight: 700; box-shadow: none; }
#parentView .pv-tabs button[data-pv="konu"] { --r: #11A391; }
#parentView .pv-tabs button[data-pv="gecmis"] { --r: #8A55E6; }
#parentView .pv-tabs button[data-pv="kagit"] { --r: #F2681D; }
#parentView .pv-tabs button:hover { border-color: var(--r); }
#parentView .pv-tabs button:focus-visible { outline: 3px solid var(--r); outline-offset: 2px; }
#parentView .pv-ik { width: 22px; height: 22px; flex: none; color: var(--r); }
#parentView .pv-tabs button.on { background: var(--r); border-color: var(--r); color: #FFFFFF; box-shadow: 0 4px 0 rgba(31,42,68,.18); }
#parentView .pv-tabs button.on .pv-ik { color: #FFFFFF; }
@media (max-width: 600px) {
  #parentView .pv-tabs { gap: 6px; }
  #parentView .pv-tabs button { flex-direction: column; gap: 4px; min-height: 64px; padding: 6px 2px; font-size: 13px; line-height: 1.15; border-radius: 12px; }
}
/* Desteğe ihtiyaç duyulan konular: veliye kısa bilgi */
#parentView .gr + .oz-baslik { margin-top: 24px; }
#parentView .oz-bilgi { margin: 4px 0 10px; padding: 12px 16px; background: #FFF3EE; border-radius: 12px; font-size: 16px; line-height: 1.55; color: #1F2A44; }
#parentView .oz-bilgi-bag { color: #F2681D; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* Hesabım: paketler ve üyelik */
#hesabimKutu { display: flex; flex-direction: column; gap: 14px; max-width: 820px; margin: 0 auto; }
#hesabimKutu.hidden { display: none; }
.hs-bas { margin: 0; font-size: 30px; color: #1F2A44; }
.hs-kart { background: #FFFFFF; border: 2px solid #E3E7F2; border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.hs-kart h3 { margin: 0; font-size: 19px; color: #1F2A44; }
.hs-kart.tehlike { border-color: #F2C2CD; }
.hs-kart.uyari { border-color: #E8A317; }
.hs-sat { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: 16px; }
.hs-sat span { color: #56617A; }
.hs-sat b { overflow-wrap: anywhere; }
.hs-yazi { margin: 0; font-size: 15px; color: #56617A; line-height: 1.5; }
.hs-hata { margin: 0; font-size: 15px; color: #A3201B; font-weight: 700; }
.hs-hata.hidden { display: none; }
.hs-paket { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; border: 2px solid #E6EAF2; border-radius: 14px; padding: 14px 16px; }
.hs-paket.soluk { opacity: .62; }
.hs-no { width: 30px; height: 30px; border-radius: 50%; color: #FFFFFF; font-size: 15px; font-weight: 700; font-style: normal; display: flex; align-items: center; justify-content: center; }
.hs-paket-yazi b { font-size: 17px; color: #1F2A44; }
.hs-paket-yazi span { display: block; font-size: 14px; color: #56617A; line-height: 1.5; }
.hs-paket-sag { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.hs-rozet { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.hs-rozet i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.r-aktif { background: #E1F5EA; color: #1B7F4B; } .r-bitti { background: #ECEFF4; color: #56617A; } .r-iptal { background: #FBE7EC; color: #BE3455; } .r-bekliyor { background: #FFF3CC; color: #8A5A00; }
.hs-btn { height: 42px; padding: 0 16px; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #DCE3EF; background: #FFFFFF; color: #1F2A44; cursor: pointer; text-decoration: none; }
.hs-btn:hover { border-color: #1F2A44; }
.hs-btn:focus-visible { outline: 3px solid #2F5FE8; outline-offset: 2px; }
.hs-btn:disabled { opacity: .45; cursor: default; }
.hs-btn.koyu { background: #1F2A44; border-color: #1F2A44; color: #FFFFFF; }
.hs-btn.cizgi { border-color: #F2C2CD; color: #BE3455; }
.hs-btn.cizgi:hover { border-color: #BE3455; }
.hs-btn.tehlike { background: #BE3455; border-color: #BE3455; color: #FFFFFF; }
.hs-btn.kucuk { height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.hs-bag { align-self: flex-start; }
.hs-dugmeler { display: flex; flex-wrap: wrap; gap: 10px; }
.hs-dugmeler.sag { justify-content: flex-end; }
.hs-perde { position: fixed; inset: 0; z-index: 90; background: rgba(17, 23, 58, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.hs-pencere { width: 100%; max-width: 500px; max-height: calc(100vh - 32px); overflow: auto; background: #FFFFFF; color: #1F2A44; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; }
.hs-pencere h3 { margin: 0; font-size: 22px; }
.hs-not { background: #FFF8E6; border-radius: 12px; padding: 10px 14px; font-size: 14px; color: #7A5300; line-height: 1.45; }
.hs-alan { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.hs-alan input { font: inherit; font-size: 16px; font-weight: 400; color: #1F2A44; height: 46px; box-sizing: border-box; border: 2px solid #DCE3EF; border-radius: 12px; padding: 0 14px; }
.hs-alan input:focus { outline: none; border-color: #2F5FE8; }
@media (max-width: 560px) {
  .hs-paket { grid-template-columns: auto minmax(0, 1fr); }
  .hs-paket-sag { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
}
/* Gelişim Takip Paneli → Özet: bu haftanın özeti (src/ui/haftalik-rapor.js) */
#parentView .hr-kart { background: #FFFFFF; border: 1px solid #E6EAF2; border-radius: 16px; padding: 16px 20px 18px; margin: 14px 0 6px; display: flex; flex-direction: column; gap: 14px; color: #1F2A44; }
#parentView .hr-ust { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#parentView .hr-ust h3 { margin: 0; font-size: 17px; font-weight: 800; }
#parentView .hr-ust span { font-size: 14px; color: #56617A; }
#parentView .hr-yazdir { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 12px; border: 2px solid #DCE3EF; background: #FFFFFF; color: #1F2A44; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; flex: none; }
#parentView .hr-yazdir:hover { border-color: #2F7BF5; color: #2F7BF5; }
#parentView .hr-yazdir svg { width: 18px; height: 18px; }
#parentView .hr-mektup { display: flex; gap: 18px; align-items: center; background: #F7F9FC; border-radius: 14px; padding: 14px 18px; }
#parentView .hr-mektup img { width: 80px; height: auto; flex: none; }
#parentView .hr-mektup p { margin: 0; font-size: 17px; line-height: 1.65; }
#parentView .hr-mektup mark { background: #FFF1B8; color: #1F2A44; border-radius: 6px; padding: 0 4px; font-weight: 700; }
#parentView .hr-mektup mark.mavi { background: #E3EEFC; color: #1F5BC6; }
#parentView .hr-not { background: #FFF3EE; border-radius: 12px; padding: 12px 16px; font-size: 15px; line-height: 1.55; }
#parentView .hr-bag { color: #F2681D; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
#parentView .hr-satir { display: flex; gap: 8px; flex-wrap: wrap; }
#parentView .hr-satir span { background: #F4F6FA; border-radius: 999px; padding: 6px 14px; font-size: 14px; color: #56617A; }
#parentView .hr-satir b { color: #1F2A44; margin-left: 4px; }
@media (max-width: 600px) {
  #parentView .hr-kart { padding: 14px 12px; }
  #parentView .hr-mektup { padding: 12px; gap: 12px; align-items: flex-start; }
  #parentView .hr-mektup img { width: 56px; }
  #parentView .hr-mektup p { font-size: 15px; }
  #parentView .hr-yazdir { padding: 0 10px; }
}
/* Gelişim Takip Paneli tanıtma turu: karartma, ışıklanan bölüm ve maskotlu balon */
.pt { position: fixed; inset: 0; z-index: 4000; font-family: 'Andika', 'Trebuchet MS', sans-serif; }
.pt-isik { position: fixed; border-radius: 14px; box-shadow: 0 0 0 3px #FFC20E, 0 0 0 8px rgba(255, 194, 14, .35), 0 0 0 200vmax rgba(15, 23, 42, .55); transition: left .25s, top .25s, width .25s, height .25s; pointer-events: none; }
.pt.bos { background: rgba(15, 23, 42, .55); }
.pt-sar { position: fixed; display: flex; align-items: flex-end; gap: 8px; }
.pt-sar > img { width: 84px; height: auto; flex: none; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .25)); }
.pt-kutu { position: relative; flex: 1; min-width: 0; background: #FFFFFF; color: #1F2A44; border-radius: 16px; padding: 14px 16px; box-shadow: 0 12px 30px rgba(15, 23, 42, .3); }
.pt-kutu::before { content: ""; position: absolute; left: -8px; bottom: 26px; border: 9px solid transparent; border-right-color: #FFFFFF; border-left: 0; }
.pt-bolum { display: inline-block; font-size: 12px; font-weight: 700; color: #2F7BF5; background: #E3EEFC; border-radius: 999px; padding: 2px 9px; margin-bottom: 6px; }
.pt-kutu b { display: block; font-size: 17px; margin: 0 24px 4px 0; }
.pt-kutu p { margin: 0; font-size: 15px; line-height: 1.5; color: #3A4560; }
.pt-alt { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.pt-nokta { display: flex; gap: 4px; }
.pt-nokta i { width: 7px; height: 7px; border-radius: 50%; background: #DCE3EF; }
.pt-nokta i.on { width: 18px; border-radius: 4px; background: #2F7BF5; }
.pt-dg { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pt-dg button { font: inherit; cursor: pointer; white-space: nowrap; }
.pt-ileri { border: 0; background: #2F7BF5; color: #FFFFFF; font-weight: 700 !important; font-size: 14px !important; padding: 8px 15px; border-radius: 10px; }
.pt-ileri:hover { background: #1F64D6; }
.pt-geri { border: 1.5px solid #DCE3EF; background: #FFFFFF; color: #1F2A44; font-weight: 700 !important; font-size: 14px !important; padding: 7px 12px; border-radius: 10px; }
.pt-gec { border: 0; background: none; color: #8A93A8; text-decoration: underline; font-size: 13px !important; padding: 4px 2px; }
.pt-kapat { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: #8A93A8; font-size: 16px; cursor: pointer; }
.pt-kapat:hover { background: #F1F4F9; }
/* Telefonda maskot balonun üstünde */
.pt-sar.dar { flex-direction: column; align-items: flex-start; gap: 0; }
.pt-sar.dar > img { width: 60px; margin: 0 0 -4px 14px; }
.pt-sar.dar .pt-kutu { width: 100%; box-sizing: border-box; }
.pt-sar.dar .pt-kutu::before { left: 34px; top: -8px; bottom: auto; border: 9px solid transparent; border-bottom-color: #FFFFFF; border-top: 0; }
.pt-sar.dar .pt-alt { flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .pt-isik { transition: none; } }
/* Android / iOS uygulamasında alt sekme çubuğu (html.uygulama yalnızca uygulamada var; web sitesinde hiçbiri görünmez) */
.tab-cubugu, .veli-secim { display: none; }

/* Çubuk: ana ekran, konular, seviyeler, veli PIN'i ve veli bölümlerinde; soru ekranında gizli */
html.uygulama body:has(#practiceView:not(.hidden)) .tab-cubugu,
html.uygulama body:has(#gateView:not(.hidden)) .tab-cubugu,
html.uygulama body:has(#parentView:not(.hidden)) .tab-cubugu {
  /* ekranın altından ayrık, yuvarlak (yüzen) çubuk */
  position: fixed; left: 16px; right: 16px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); z-index: 50;
  display: grid; grid-template-columns: repeat(3, 1fr); height: 72px; padding: 6px;
  background: #FFFFFF; border: 1px solid #DCE3EF; border-radius: 30px;
  box-shadow: 0 14px 34px rgba(31, 42, 68, .30), 0 4px 10px rgba(31, 42, 68, .14); /* içeriğin önünde dursun */
}
html.uygulama body:has(#questionView:not(.hidden)) .tab-cubugu,
html.uygulama body.kapak-acik .tab-cubugu, html.uygulama body.sayfa-acik .tab-cubugu { display: none; }
/* klavye açıkken çubuk alanı kapatmasın (tab-cubugu.js); yukarıdaki :has(#…) kurallarından üstün olmalı */
html.uygulama.klavye-acik .tab-cubugu { display: none !important; }
/* çubuğun altında içerik kalmasın */
html.uygulama body:has(#practiceView:not(.hidden) #topicsView:not(.hidden)),
html.uygulama body:has(#gateView:not(.hidden)), html.uygulama body:has(#parentView:not(.hidden)) { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

.tab-cubugu button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0;
  border: none; border-radius: 24px; background: none; color: #8A93A8; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tab-cubugu .tc-ik { height: 32px; display: grid; place-items: center; }
/* Konular: MatUzay gezegeni; açık değilken gri */
.tab-cubugu .tc-gz { margin-top: -4px; filter: grayscale(1); opacity: .5; transition: filter .15s, opacity .15s; }
.tab-cubugu button:active .tc-ik { transform: scale(.94); }
/* Açık sekme: ekrana göre */
html.uygulama body:has(#practiceView:not(.hidden) #topicsView[data-gorunum="home"]:not(.hidden)) .tab-cubugu [data-tab="ana"],
html.uygulama body:has(#practiceView:not(.hidden) #topicsView[data-gorunum="topics"]:not(.hidden)) .tab-cubugu [data-tab="konular"],
html.uygulama body:has(#practiceView:not(.hidden) #topicsView[data-gorunum="levels"]:not(.hidden)) .tab-cubugu [data-tab="konular"],
html.uygulama body:has(#gateView:not(.hidden)) .tab-cubugu [data-tab="veli"],
html.uygulama body:has(#parentView:not(.hidden)) .tab-cubugu [data-tab="veli"] { color: #1F2A44; }
html.uygulama body:has(#practiceView:not(.hidden) #topicsView[data-gorunum="home"]:not(.hidden)) .tab-cubugu [data-tab="ana"] .tc-ik,
html.uygulama body:has(#practiceView:not(.hidden) #topicsView[data-gorunum="topics"]:not(.hidden)) .tab-cubugu [data-tab="konular"] .tc-ik,
html.uygulama body:has(#practiceView:not(.hidden) #topicsView[data-gorunum="levels"]:not(.hidden)) .tab-cubugu [data-tab="konular"] .tc-ik,
html.uygulama body:has(#gateView:not(.hidden)) .tab-cubugu [data-tab="veli"] .tc-ik,
html.uygulama body:has(#parentView:not(.hidden)) .tab-cubugu [data-tab="veli"] .tc-ik { background: none; }
/* Uygulamada menü düğmesi yok (yerine sekme çubuğu); Geri yalnızca soru ve seviye ekranlarında */
html.uygulama #menuBtn { display: none !important; }
html.uygulama body:has(#topicsView[data-gorunum="topics"]:not(.hidden)) #geriBtn,
html.uygulama body:has(#gateView:not(.hidden)) #geriBtn,
html.uygulama body:has(#parentView:not(.hidden)) #geriBtn { display: none !important; }

/* Veli sekmesi: alttan açılan seçim */
html.uygulama .veli-secim:not([hidden]) { display: flex; position: fixed; inset: 0; z-index: 70; background: rgba(31, 42, 68, .4); align-items: flex-end; }
.vs-kutu { width: 100%; background: #FFFFFF; border-radius: 22px 22px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; }
.vs-kutu b { font-size: 18px; padding: 0 4px 4px; }
.vs-kutu button { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border: 2px solid #E3E8F2; border-radius: 14px; background: #FFFFFF; color: #1F2A44; font: inherit; font-size: 16px; font-weight: 700; text-align: left; cursor: pointer; }
.vs-kutu .vs-cikis { color: #B42318; }
.vs-kutu .vs-kapat { justify-content: center; border: none; background: #F1F4F9; }

/* Konular sekmesi: sınıf düğmeleri (yalnızca uygulamada çizilir) */
.sinif-secici { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
/* her sınıf kendi renginde: seçili değilken açık zemin, seçilince koyu */
.sinif-secici button { --g: #1F6FD6; --g-koyu: #1857AB; --g-acik: #E3EEFC; min-height: 44px; padding: 0 4px; border: 2px solid var(--g-acik); border-radius: 12px; background: var(--g-acik); color: var(--g-koyu); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.sinif-secici button[data-g="g2"] { --g: #0F766E; --g-koyu: #0B5C56; --g-acik: #D9F2EE; }
.sinif-secici button[data-g="g3"] { --g: #C2410C; --g-koyu: #9A330A; --g-acik: #FFE8D4; }
.sinif-secici button[data-g="g4"] { --g: #6D4AD8; --g-koyu: #5536B5; --g-acik: #EAE4FB; }
.sinif-secici button.on { background: var(--g-koyu); border-color: var(--g-koyu); color: #FFFFFF; }

/* açık Konular sekmesinde gezegen renkli */
html.uygulama body:has(#practiceView:not(.hidden) #topicsView[data-gorunum="topics"]:not(.hidden)) .tab-cubugu .tc-gz,
html.uygulama body:has(#practiceView:not(.hidden) #topicsView[data-gorunum="levels"]:not(.hidden)) .tab-cubugu .tc-gz { filter: none; opacity: 1; }
/* Soru ekranı: kademe ilerleme çubuğu (uzay yolu) — soru kartının hemen üstünde */
/* Beyaz kart, sınıf renginde çerçeve; duraklar halka içinde ikon (Dünya, roket, yıldız, gezegen, yıldız kümesi), dolu yol çizgili; yol halkaların arkasından geçer */
.uy { --uy-cerceve: color-mix(in srgb, var(--s-c, #1F6FD6) 30%, #FFFFFF); --uy-dk: 66px; --uy-ty: 42px; --uy-gm: 50px; --uy-bosluk: calc(var(--uy-dk) / 2 + var(--uy-gm) / 2 + 2px); background: #FFFFFF; border: 2.5px solid var(--uy-cerceve); box-shadow: 0 3px 0 var(--uy-cerceve); border-radius: 18px; padding: 12px 20px; margin: 0 0 12px; color: #1F2A44; }
.uy[hidden] { display: none; }
.uy-yol { position: relative; height: 86px; margin: 0 34px; }
.uy-cizgi, .uy-dolu { position: absolute; left: 0; top: var(--uy-ty); height: 12px; transform: translateY(-50%); border-radius: 999px; }
.uy-cizgi { right: 0; background: var(--s-acik, #E3EEFC); }
.uy-dolu { background: repeating-linear-gradient(-45deg, var(--s-c, #1F6FD6) 0 10px, var(--s-koyu, #1857AB) 10px 20px); transition: width .4s ease; }
.uy-durak { position: absolute; top: var(--uy-ty); width: var(--uy-dk); height: var(--uy-dk); transform: translate(-50%, -50%); z-index: 4; display: flex; align-items: center; justify-content: center; box-sizing: border-box; border-radius: 50%; border: 3px solid var(--uy-cerceve); background: #F6F7FA; }
.uy-durak.uy-tamam { background: var(--s-acik, #E3EEFC); border-color: var(--s-c, #1F6FD6); }
.uy-durak.uy-simdi { background: #FFF4CC; border-color: #FFC20E; box-shadow: 0 0 0 4px rgba(255, 194, 14, .35); }
.uy-durak.uy-sonra { border-color: #DDE2EC; }
.uy-durak .uo-ik { display: block; width: 72%; height: 72%; }
.uy-durak .uo-soluk { filter: grayscale(1); opacity: .42; }
/* roket çapraz çizildiği için halkanın ortasına kaydırılır */
.uy-roket .uo-ik { transform: scale(1.25) translate(5%, -7%); }
.uy-gemi { position: absolute; top: var(--uy-ty); width: var(--uy-gm); transform: translate(-50%, -50%); --gk: var(--s-c, #1F6FD6); transition: left .4s ease; filter: drop-shadow(0 3px 3px rgba(31, 42, 68, .3)); z-index: 3; }
.uy-gemi svg { display: block; width: 100%; height: auto; }
.uy-alt { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 2px 14px; font-size: 15px; color: #3D4861; margin-top: 6px; }
.uy-alt b { color: var(--s-koyu, #1857AB); font-weight: 700; text-align: right; }
@media (prefers-reduced-motion: reduce) { .uy-dolu, .uy-gemi { transition: none; } }
@media (max-width: 620px) {
  /* telefonda sıkı: soruların kaydırmadan sığması için */
  .uy { --uy-dk: 40px; --uy-ty: 26px; --uy-gm: 28px; padding: 8px 12px; border-radius: 14px; margin-bottom: 8px; }
  .uy-yol { height: 54px; margin: 0 20px; }
  .uy-cizgi, .uy-dolu { height: 8px; }
  .uy-durak { border-width: 2px; }
  .uy-alt { font-size: 12.5px; margin-top: 2px; line-height: 16px; }
  .uy-alt b { text-align: left; }
}
/* Soru ekranı düzeni: üstte yalnızca çubuk; bilgisayarda konu adı, maskot, düğmeler ve sayılar sağ sütunda */
.uy { grid-area: yol; margin: 0; min-width: 0; }
#qBarName .q-bar-grade { display: none; }
body:not(.ws-doc):has(#questionView.hidden) #uzayYolu { display: none; }
.ik-dogru { color: #2F7BF5 !important; }
.ik-yanlis { color: #E2553F !important; }
@media (min-width: 1040px) {
  body:not(.ws-doc):has(#questionView:not(.hidden)) .app-shell { grid-template-columns: minmax(0, 1fr) 270px; grid-template-areas: "yol yol" "center right"; gap: 14px 16px; }
  .col-right .q-bar { display: flex; align-items: center; gap: 8px; margin: 0; }
  .col-right .q-hata { flex: 1 1 auto; margin: 0; justify-content: center; }
  .col-right .q-hata:not([hidden]) + .q-ses { margin-left: 0; }
  .col-right .q-ses { margin-left: auto; }
  body:not(.ws-doc) .arti-kart .q-bar-name { align-self: stretch; white-space: normal; overflow: visible; font-size: 1.2rem; line-height: 1.2; }
}
@media (max-width: 1039px) {
  /* çubuk, soru; altında maskot ve sayılar yan yana */
  body:not(.ws-doc):has(#questionView:not(.hidden)) .app-shell { grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "yol yol" "center center" "arti prog"; gap: 8px; }
  body:not(.ws-doc) .arti-kart { background: none; border: 0; padding: 0; justify-content: center; }
  .arti-kart .arti-balon { display: none; }
  body:not(.ws-doc) .ilerleme-kart { display: flex; flex-direction: column; justify-content: center; padding: 8px 12px; }
  body:not(.ws-doc) .ilerleme-kart .score-pill { flex-direction: row; align-items: baseline; justify-content: space-between; font-size: 0.92rem; color: var(--ink); }
  body:not(.ws-doc) .ilerleme-kart b { font-size: 1.1rem; }
}
/* Telefonda başlık satırı ince: soru, uzay yolu ve tuşlar kaydırmadan sığsın */
@media (max-width: 620px) {
  body:not(.ws-doc) .q-bar { margin-bottom: 6px; }
  body:not(.ws-doc) .q-bar-name { font-size: 1.15rem; }
  .q-bar .q-ses { width: 38px; height: 38px; border-radius: 12px; }
  .q-bar .q-hata { height: 38px; border-radius: 12px; }
}
