/* ──────────────────────────────────────────────
   MATHLOOQ — Enhanced Styles v2
   Mathify-inspired · Colorful · Universal
   ────────────────────────────────────────────── */

:root {
  --ink:     #30323a;
  --muted:   #6d7079;
  --paper:   #fffaf8;
  --surface: #ffffff;
  --line:    #eadfe4;
  --aura:    #CEF4F8;
  --violet:  #D1CCEB;
  --pink:    #FED3D9;
  --derby:   #FDF0D7;
  --mint:    #C5EBD5;
  --yellow:  #FDF0D7;
  /* Vurgular yalnızca Pastels for Easter kartelasındaki beş renktir. */
  --blue:    #CEF4F8;
  --indigo:  #D1CCEB;
  --green:   #C5EBD5;
  --coral:   #FED3D9;
  --rose:    #FED3D9;
  --amber:   #FDF0D7;
  --teal:    #CEF4F8;
  --shadow:  0 24px 60px rgba(48, 50, 58, 0.13);
  --shadow-sm: 0 8px 24px rgba(48, 50, 58, 0.08);
  --r: 14px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ── TOPBAR ── */
.topbar {
  align-items: center;
  background: rgba(255,250,248,0.9);
  border-bottom: 1px solid rgba(234,223,228,0.95);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 13px clamp(16px, 4vw, 60px);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px);
}

.domain-strip {
  background: rgba(255, 250, 248, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(234,223,228,0.95);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px clamp(16px, 4vw, 60px);
  position: sticky;
  top: 70px;
  z-index: 95;
}

.domain-strip[hidden] { display: none; }

.domain-strip-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.domain-strip-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}

.domain-strip-btns::-webkit-scrollbar { display: none; }

.domain-strip-btn {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #676a73;
  cursor: pointer;
  font-family: Nunito, sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 9px 14px;
  transition: background .15s, border-color .15s, box-shadow .15s, color .15s, transform .15s;
  white-space: nowrap;
}

.domain-strip-btn:hover {
  background: #f2fbfd;
  border-color: rgba(85,185,199,0.35);
  color: var(--ink);
}

.domain-strip-btn.active {
  background: linear-gradient(135deg, var(--pink), var(--violet));
  border-color: rgba(214,109,134,0.28);
  box-shadow: 0 10px 24px rgba(214,109,134,0.12);
  color: var(--ink);
}

.domain-strip-close {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  height: 38px;
  padding: 0 12px;
  flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
}

.domain-strip-close:hover {
  background: var(--pink);
  border-color: rgba(214,109,134,0.25);
  color: var(--ink);
}

@media (max-width: 680px) {
  .domain-strip { gap: 6px; }
  .domain-strip-label { display: none; }
  .domain-strip-btn { font-size: 13px; padding: 12px 11px 9px; }
}

.brand { align-items: center; display: inline-flex; flex-shrink: 0; gap: 11px; }

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--ink), #4a4d59);
  border-radius: 10px;
  display: inline-flex;
  gap: 3px;
  height: 44px;
  justify-content: center;
  position: relative;
  width: 44px;
  flex-shrink: 0;
}

.brand-mark.small { height: 36px; width: 36px; border-radius: 8px; }
.brand-mark.large {
  height: 160px;
  width: 160px;
  border-radius: 32px;
  gap: 10px;
}
.brand-mark.large .mark-eye { height: 36px; width: 36px; }
.brand-mark.large .mark-eye::after { height: 14px; width: 14px; left: 11px; top: 11px; }
.brand-mark.large .mark-lens { height: 40px; width: 40px; border-width: 5px; margin-left: 4px; }
.brand-mark.large .mark-lens::after { height: 28px; width: 6px; right: -16px; top: 24px; border-radius: 6px; }

.mark-eye {
  background: #fff;
  border-radius: 50%;
  display: inline-block;
  height: 10px;
  position: relative;
  width: 10px;
}

.mark-eye::after {
  background: var(--ink);
  border-radius: 50%;
  content: "";
  height: 4px;
  left: 3px;
  position: absolute;
  top: 3px;
  width: 4px;
}

.mark-lens {
  border: 2px solid var(--pink);
  border-radius: 50%;
  display: inline-block;
  height: 11px;
  margin-left: 1px;
  position: relative;
  width: 11px;
}

.mark-lens::after {
  background: var(--pink);
  border-radius: 3px;
  content: "";
  height: 8px;
  position: absolute;
  right: -5px;
  top: 7px;
  transform: rotate(-42deg);
  width: 2px;
}

.brand strong, .brand small { display: block; line-height: 1.05; }
.brand strong { font-family: Nunito, sans-serif; font-size: 18px; font-weight: 700; letter-spacing: 0; }
.brand small { color: var(--muted); font-size: 11px; font-weight: 400; margin-top: 1px; }

.topnav {
  align-items: center;
  display: flex;
  flex: 1;
  gap: clamp(10px, 1.5vw, 22px);
  justify-content: flex-end;
  min-width: 0;
}

.topnav a {
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  opacity: 1;
  position: relative;
  white-space: nowrap;
}

.topnav a::after {
  background: linear-gradient(90deg, var(--pink), var(--violet));
  border-radius: 999px;
  bottom: -9px;
  content: "";
  height: 3px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 150ms ease;
  width: 100%;
}

.topnav a:hover::after { transform: translateX(-50%) scaleX(1); }

.materials-menu {
  flex-shrink: 0;
  position: relative;
}

/* Başlıkla açılır liste arasındaki görünmez köprü, fare aşağı inerken menünün kapanmasını önler. */
.materials-menu::after {
  content: "";
  height: 12px;
  position: absolute;
  right: 0;
  top: 100%;
  width: 280px;
}

.materials-menu summary {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  gap: 5px;
  list-style: none;
  min-height: 0;
  opacity: 1;
  padding: 0;
  transition: color 140ms ease, opacity 140ms ease;
  white-space: nowrap;
}

.materials-menu summary::-webkit-details-marker { display: none; }

.materials-menu summary::after {
  color: var(--ink);
  content: "⌄";
  font-size: .9rem;
  line-height: 1;
  margin-top: -1px;
  transition: transform 140ms ease;
}

.materials-menu summary:hover,
.materials-menu[open] summary {
  color: var(--ink);
  opacity: 1;
}

.materials-menu[open] summary::after {
  transform: rotate(180deg);
}

.materials-dropdown {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(234, 223, 228, 0.95);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(48, 50, 58, 0.14);
  display: grid;
  gap: 6px;
  min-width: 260px;
  padding: 12px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 130;
}

.materials-dropdown p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 4px;
  padding: 4px 6px 8px;
}

.materials-dropdown a {
  align-items: center;
  border-radius: 12px;
  color: #4d5059;
  display: flex;
  font-size: 0.9rem;
  font-weight: 900;
  gap: 10px;
  padding: 10px;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.materials-dropdown a > div { display: grid; gap: 1px; }
.materials-dropdown a strong {
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
}
.materials-dropdown a small { color: var(--muted); font-size: .74rem; font-weight: 700; line-height: 1.25; }

.materials-dropdown a span {
  align-items: center;
  background: var(--derby);
  border-radius: 10px;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

/* Öğrenme araçları için emoji yerine Mathlooq'a özgü küçük araç simgeleri. */
.materials-dropdown a > span:first-child {
  font-size: 0;
  overflow: hidden;
  position: relative;
}

.materials-dropdown a > span:first-child::before,
.materials-dropdown a > span:first-child::after {
  content: "";
  position: absolute;
}

.materials-dropdown a[href="hizli-ogren.html"] > span:first-child { background: #FAD2E1; }
.materials-dropdown a[href="hizli-ogren.html"] > span:first-child::before {
  background: #d66d86;
  clip-path: polygon(52% 0, 15% 53%, 47% 53%, 35% 100%, 86% 38%, 55% 38%);
  height: 18px;
  inset: 0;
  margin: auto;
  width: 15px;
}

.materials-dropdown a[href="planner.html"] > span:first-child { background: #D1CCED; }
.materials-dropdown a[href="planner.html"] > span:first-child::before {
  border: 2px solid #766eb3;
  border-radius: 4px;
  height: 15px;
  inset: 0;
  margin: auto;
  width: 15px;
}
.materials-dropdown a[href="planner.html"] > span:first-child::after {
  background: #766eb3;
  box-shadow: 5px 0 #766eb3;
  height: 3px;
  left: 10px;
  top: 9px;
  width: 3px;
}

.materials-dropdown a[href="youtube.html"] > span:first-child { background: #CEF4F8; }
.materials-dropdown a[href="youtube.html"] > span:first-child::before {
  border-bottom: 6px solid transparent;
  border-left: 10px solid #4aa9ba;
  border-top: 6px solid transparent;
  left: 11px;
  top: 9px;
}

.materials-dropdown a[href="kolaylastiricilar.html"] > span:first-child { background: #C5EBD5; }
.materials-dropdown a[href="kolaylastiricilar.html"] > span:first-child::before {
  background: #4d9870;
  border-radius: 2px;
  box-shadow: 7px 0 #4d9870, 3.5px -6px #4d9870;
  height: 7px;
  left: 8px;
  top: 13px;
  width: 7px;
}

.materials-dropdown a:hover {
  background: linear-gradient(135deg, rgba(254, 211, 217, 0.72), rgba(209, 204, 235, 0.72));
  color: var(--ink);
  transform: translateX(2px);
}

/* ── BUTTONS ── */
.button {
  align-items: center;
  border: 2px solid transparent;
  border-radius: 10px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms;
  cursor: pointer;
}

.button:hover { transform: translateY(-2px); }

.button.primary {
  background: linear-gradient(135deg, var(--aura) 0%, var(--yellow) 100%);
  box-shadow: 0 10px 24px rgba(213,166,66,0.22);
  color: var(--ink);
}

.button.primary:hover { box-shadow: 0 14px 32px rgba(213,166,66,0.3); }

.button.secondary {
  background: rgba(253,240,215,0.88);
  border-color: rgba(213,166,66,0.34);
  color: var(--ink);
}

.button.outline {
  background: rgba(255,255,255,0.52);
  border-color: rgba(255,255,255,0.84);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.button.outline:hover { background: rgba(255,255,255,0.22); }

.button.outline-dark {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
  font-size: 0.9rem;
  min-height: 40px;
  padding: 8px 16px;
}

.nav-cta {
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  border: none;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(213,166,66,0.22);
  color: var(--ink);
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 900;
  min-height: 40px;
  padding: 9px 18px;
  transition: transform 140ms, box-shadow 140ms;
}

.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(213,166,66,0.3); }

/* ── TYPOGRAPHY ── */
.eyebrow {
  color: #8a6a2a;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: "Nunito", system-ui, sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.03;
  margin: 0;
}

h1 { font-size: 5rem; margin-top: 12px; }
h2 { font-size: 3.2rem; }
h3 { font-size: 1.9rem; }

h1 em { color: var(--coral); font-style: normal; }

/* Ana sayfa bölüm başlıkları daha ferah bir hiyerarşi için inceltildi. */
.section .section-title h2 {
  font-size: 2.35rem;
  font-weight: 700;
}

p { font-size: 1.05rem; line-height: 1.65; margin: 0; }
.muted { color: var(--muted); }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  align-items: center;
  display: grid;
  gap: clamp(26px, 4.5vw, 64px);
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.1fr);
  min-height: min(760px, calc(100vh - 70px));
  overflow: hidden;
  padding: clamp(32px, 5vw, 72px) clamp(16px, 5vw, 78px) 60px;
  position: relative;
  background:
    radial-gradient(circle at 13% 18%, rgba(254,211,217,0.44) 0 14%, transparent 31%),
    radial-gradient(circle at 86% 18%, rgba(206,244,248,0.58) 0 13%, transparent 32%),
    radial-gradient(circle at 74% 86%, rgba(253,240,215,0.78) 0 15%, transparent 34%),
    radial-gradient(circle at 44% 74%, rgba(197,235,213,0.36) 0 13%, transparent 32%),
    linear-gradient(135deg, #fffaf8 0%, #fff 48%, #fef7ef 100%);
}

.hero::before {
  background-image:
    linear-gradient(rgba(209,204,235,0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(209,204,235,0.16) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  inset: 0;
  opacity: 0.24;
  pointer-events: none;
  position: absolute;
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.45), transparent 58%);
}

.hero-canvas {
  height: 100%;
  inset: 0;
  opacity: 0.9;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.hero-copy { max-width: 680px; order: 2; position: relative; z-index: 2; }

.hero-portrait {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0;
  min-width: 0;
  order: 1;
  position: relative;
  z-index: 2;
}

.hero-portrait img {
  display: block;
  height: auto;
  max-height: min(68vh, 620px);
  object-fit: contain;
  position: relative;
  width: min(100%, 560px);
  z-index: 1;
}

.hero-script {
  color: #46484f;
  display: block;
  font-family: "Caveat", cursive;
  font-size: clamp(2.95rem, 5vw, 4.9rem);
  font-weight: 700;
  line-height: 0.92;
  margin-bottom: 12px;
}

.hero-greeting {
  color: var(--ink) !important;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: clamp(2rem, 3.1vw, 3rem) !important;
  font-weight: 700 !important;
  letter-spacing: -.035em;
  line-height: 1.06 !important;
  margin: 0 !important;
}

.hero-greeting-gradient {
  background: none;
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--ink);
  display: inline;
  font-family: "Allura", cursive;
  font-size: 1.28em;
  font-weight: 400;
  letter-spacing: 0;
  line-height: .74;
  margin: 0;
  padding: 0;
}

.hero-signature {
  color: var(--ink);
  display: block;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: clamp(1.55rem, 2.55vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0;
  margin-top: .8rem;
  white-space: nowrap;
}

.hero-copy > .hero-intro {
  color: #374151;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1.03rem;
  font-weight: 400;
  line-height: 1.7;
  max-width: 610px;
}

.hero .eyebrow { color: var(--teal); }

h1 { color: var(--ink); max-width: 820px; }
.hero h1 {
  color: var(--ink);
  font-size: clamp(2.65rem, 4.6vw, 4.45rem);
  letter-spacing: 0;
  max-width: 720px;
}
.hero h1 em { color: var(--rose); font-style: normal; }

.hero-copy > p {
  color: #686b73;
  font-size: clamp(1rem, 1.12vw, 1.16rem);
  font-weight: 650;
  line-height: 1.55;
  margin-top: 18px;
  max-width: 620px;
}

.hero-tagline {
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: clamp(1.3rem, 2.1vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.18;
  margin-top: 28px;
  max-width: 760px;
}

.hero-tagline em {
  background: linear-gradient(90deg, #d65e88 0%, #e78398 45%, #8e86cb 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-style: normal;
  font-weight: 900;
}

.hero-start {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.hero-start .hero-tagline {
  margin-top: 0;
}

.hero-start-btn {
  align-items: center;
  background: linear-gradient(135deg, var(--rose), var(--indigo));
  border: 2px solid rgba(255,255,255,0.78);
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(214,109,134,0.22);
  color: #fff;
  display: inline-flex;
  flex-shrink: 0;
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  justify-content: center;
  letter-spacing: .04em;
  min-height: 52px;
  padding: 13px 24px;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.hero-start-btn:hover {
  box-shadow: 0 20px 42px rgba(142,134,203,0.28);
  filter: saturate(1.08);
  transform: translateY(-3px);
}

/* Başlangıç çağrısı, üst menüden ayrışan ana eylemdir. */
.hero-start-btn {
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--violet);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(209, 204, 235, 0.28);
  color: var(--ink);
  font-size: .92rem;
  gap: 9px;
  letter-spacing: .01em;
  min-height: 46px;
  padding: 11px 18px;
}

.hero-start-btn:hover {
  background: linear-gradient(135deg, rgba(254, 211, 217, .72), rgba(209, 204, 235, .72));
  border-color: var(--violet);
  box-shadow: 0 14px 28px rgba(48, 50, 58, .12);
  filter: none;
  transform: translateY(-2px);
}

.hero-start-btn span { font-size: 1.08rem; transition: transform 140ms ease; }
.hero-start-btn:hover span { transform: translateX(3px); }


.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-badge-row span {
  align-items: center;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #53565f;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 800;
  min-height: 42px;
  padding: 9px 15px;
  box-shadow: 0 8px 24px rgba(48,50,58,0.06);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-promise-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
  max-width: 680px;
}

.hero-promise {
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(48,50,58,0.06);
  padding: 14px 16px;
}

.hero-promise strong {
  color: var(--teal);
  display: block;
  font-family: "Nunito", sans-serif;
  font-size: 1.72rem;
  font-weight: 900;
  line-height: 1;
}

.hero-promise span {
  color: var(--muted);
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  margin-top: 5px;
}

/* ── STATS BAND ── */
#home {
  display: flex;
  flex-direction: column;
}

#materials { order: 1; }
#about { order: 2; }
#home > .stats-band { order: 3; }

.stats-band {
  align-items: center;
  background: linear-gradient(135deg, var(--aura) 0%, var(--yellow) 36%, var(--pink) 68%, var(--violet) 100%);
  display: flex;
  gap: 0;
  justify-content: center;
  padding: 30px clamp(16px, 4vw, 60px);
  position: relative;
  overflow: hidden;
}

.stats-band::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.26), transparent);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.stat-item {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  max-width: 200px;
  position: relative;
  text-align: center;
}

.stat-num {
  color: var(--ink);
  display: block;
  font-family: "Nunito", sans-serif;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.stat-item span { color: rgba(48,50,58,0.72); font-size: 0.88rem; font-weight: 800; }

.stat-divider {
  background: rgba(48,50,58,0.14);
  flex-shrink: 0;
  height: 48px;
  margin: 0 6px;
  width: 1px;
}

/* ── SECTIONS ── */
.section {
  padding: 60px clamp(16px, 4vw, 60px);
  scroll-margin-top: 88px;
}

.section-title {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 30px;
}

/* ══════════════════════════════════════════════
   TOPICS GRID
══════════════════════════════════════════════ */
.multiplication-section {
  background:
    radial-gradient(circle at 8% 18%, rgba(197,235,213,.72), transparent 28%),
    radial-gradient(circle at 92% 84%, rgba(209,204,235,.62), transparent 30%),
    #f8fcfb;
  overflow: hidden;
}

.multiplication-shell {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  margin: 0 auto;
  max-width: 1240px;
}

.multiplication-intro { align-self: center; }
.multiplication-intro .eyebrow { color: var(--teal); }
.multiplication-intro h2 { max-width: 620px; }
.multiplication-intro > p:not(.practice-memory) {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
  margin-top: 14px;
  max-width: 620px;
}

.practice-modes { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-top: 26px; }
.practice-mode {
  align-items: center;
  background: rgba(255,255,255,.75);
  border: 2px solid transparent;
  border-radius: 14px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 11px;
  padding: 13px 14px;
  text-align: left;
  transition: border-color 140ms, background 140ms, transform 140ms;
}
.practice-mode > span:first-child { font-size: 1.55rem; }
.practice-mode strong, .practice-mode small { display: block; }
.practice-mode strong { font-family: "Nunito", sans-serif; font-size: .92rem; font-weight: 900; }
.practice-mode small { color: var(--muted); font-size: .75rem; font-weight: 700; margin-top: 2px; }
.practice-mode:hover { transform: translateY(-2px); }
.practice-mode.active { background: #fff; border-color: var(--teal); box-shadow: 0 10px 24px rgba(85,185,199,.13); }

.practice-timing { align-items: center; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.practice-timing > span { color: var(--muted); font-size: .76rem; font-weight: 800; margin-right: 2px; }
.practice-timing button { background: rgba(255,255,255,.64); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); cursor: pointer; font: 800 .76rem "Nunito", sans-serif; padding: 7px 10px; }
.practice-timing button.active { background: var(--violet); border-color: var(--violet); }

.factor-picker { border: 0; margin: 24px 0 0; padding: 0; }
.factor-picker legend { color: var(--ink); font-family: "Nunito", sans-serif; font-size: .86rem; font-weight: 900; margin-bottom: 10px; }
.factor-picker-grid { display: grid; gap: 8px; grid-template-columns: repeat(9, 1fr); }
.factor-picker button {
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid rgba(48,50,58,.12);
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  font-family: "Nunito", sans-serif;
  font-size: .95rem;
  font-weight: 900;
  transition: 130ms ease;
}
.factor-picker button:hover { border-color: var(--teal); color: var(--teal); }
.factor-picker button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 7px 14px rgba(85,185,199,.2); transform: translateY(-2px); }

.multiplication-start, .practice-summary button {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-family: "Nunito", sans-serif;
  font-size: .94rem;
  font-weight: 900;
  justify-content: space-between;
  margin-top: 20px;
  min-height: 51px;
  padding: 13px 18px;
  transition: transform 140ms, box-shadow 140ms;
  width: 100%;
}
.multiplication-start:hover, .practice-summary button:hover { box-shadow: 0 12px 24px rgba(48,50,58,.18); transform: translateY(-2px); }
.multiplication-start span { color: var(--yellow); font-size: 1.35rem; }
.practice-memory { color: var(--muted); font-size: .76rem; font-weight: 700; margin-top: 12px; }
.practice-memory span { color: var(--teal); }
.practice-insights { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-top: 16px; }
.daily-goal, .factor-insight { background: rgba(255,255,255,.65); border: 1px solid var(--line); border-radius: 12px; min-width: 0; padding: 11px 12px; }
.insight-label { color: var(--muted); display: block; font-size: .7rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.daily-goal strong { color: var(--ink); display: block; font: 900 1rem "Nunito", sans-serif; margin-top: 4px; }
.daily-goal small { color: var(--muted); display: block; font-size: .7rem; font-weight: 700; margin-top: 6px; }
.daily-goal-bar { background: var(--pink); border-radius: 999px; height: 6px; margin-top: 7px; overflow: hidden; }
.daily-goal-bar span { background: linear-gradient(90deg, var(--mint), var(--aura)); border-radius: inherit; display: block; height: 100%; transition: width 240ms ease; width: 0; }
.factor-insight p { color: var(--ink); font-size: .78rem; font-weight: 700; line-height: 1.45; margin-top: 5px; }

.practice-board {
  background: #fff;
  border: 1px solid rgba(48,50,58,.08);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(48,50,58,.1);
  min-height: 510px;
  overflow: hidden;
  padding: clamp(22px, 4vw, 38px);
  position: relative;
}
.practice-board::after { background: var(--yellow); border-radius: 50%; content: ""; height: 120px; opacity: .45; position: absolute; right: -55px; top: -48px; width: 120px; }
.practice-board-top { align-items: center; display: flex; gap: 14px; justify-content: space-between; position: relative; z-index: 1; }
.practice-label { color: var(--teal); font-family: "Nunito", sans-serif; font-size: .78rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.practice-stats { display: flex; gap: 8px; }
.practice-stats span { background: #f6f7f8; border-radius: 999px; color: var(--muted); font-size: .75rem; font-weight: 800; padding: 7px 10px; }
.practice-stats .practice-timer { background: var(--yellow); color: var(--ink); }
.practice-stats strong { color: var(--ink); }
.practice-progress { background: #eef1f1; border-radius: 999px; height: 7px; margin-top: 18px; overflow: hidden; }
.practice-progress span { background: linear-gradient(90deg, var(--mint), var(--teal)); border-radius: inherit; display: block; height: 100%; transition: width 260ms ease; width: 0; }

.practice-welcome, .practice-question, .practice-summary { align-items: center; display: flex; flex-direction: column; justify-content: center; min-height: 380px; text-align: center; }
.practice-welcome[hidden], .practice-question[hidden], .practice-summary[hidden] { display: none; }
.practice-welcome h3, .practice-summary h3 { color: var(--ink); font-size: clamp(1.55rem, 3vw, 2.15rem); margin-top: 20px; }
.practice-welcome p { color: var(--muted); line-height: 1.55; margin-top: 10px; max-width: 410px; }
.practice-orbit { align-items: center; background: linear-gradient(145deg, var(--aura), var(--violet)); border-radius: 50%; display: flex; flex-direction: column; height: 150px; justify-content: center; position: relative; width: 150px; }
.practice-orbit span { color: rgba(48,50,58,.65); font-family: "Nunito", sans-serif; font-size: 1rem; font-weight: 900; }
.practice-orbit strong { color: var(--ink); font-family: "Nunito", sans-serif; font-size: 3.1rem; font-weight: 900; line-height: 1; }
.practice-orbit i { align-items: center; background: var(--rose); border: 5px solid #fff; border-radius: 50%; color: #fff; display: flex; font-family: "Nunito", sans-serif; font-size: 1.25rem; font-style: normal; font-weight: 900; height: 46px; justify-content: center; position: absolute; right: -4px; top: 8px; width: 46px; }

.question-counter { color: var(--teal); font-size: .78rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.multiplication-equation { align-items: center; color: var(--ink); display: flex; font-family: "Nunito", sans-serif; font-size: clamp(3.2rem, 7vw, 5.6rem); font-weight: 900; gap: clamp(10px, 2vw, 18px); justify-content: center; line-height: 1; margin: 24px 0 12px; }
.multiplication-equation .operator, .multiplication-equation .equals { color: var(--teal); font-size: .62em; }
.multiplication-equation .unknown { align-items: center; background: var(--yellow); border-radius: 14px; display: flex; font-size: .7em; height: 1.35em; justify-content: center; width: 1.35em; }
.multiplication-hint { color: var(--muted); font-size: .88rem; font-weight: 700; min-height: 22px; }
.practice-question label { color: var(--muted); font-size: .76rem; font-weight: 900; margin: 20px 0 7px; text-transform: uppercase; }
.answer-line { display: flex; gap: 9px; max-width: 340px; width: 100%; }
.answer-line input { border: 2px solid #dfe5e5; border-radius: 11px; color: var(--ink); font: 900 1.2rem "Nunito", sans-serif; min-width: 0; padding: 11px 12px; text-align: center; width: 110px; }
.answer-line input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(85,185,199,.12); outline: 0; }
.answer-line button { background: var(--teal); border: 0; border-radius: 11px; color: #fff; cursor: pointer; flex: 1; font: 900 .9rem "Nunito", sans-serif; padding: 11px 14px; }
.answer-line button.next { background: var(--ink); }
.answer-label { color: var(--muted); font-size: .76rem; font-weight: 900; margin: 18px 0 8px; text-transform: uppercase; }
.answer-options { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 340px; width: 100%; }
.answer-options button { background: #fff; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); cursor: pointer; font: 800 1.05rem "Nunito", sans-serif; min-height: 44px; transition: background 140ms ease, border-color 140ms ease, transform 140ms ease; }
.answer-options button:hover:not(:disabled) { background: var(--aura); border-color: var(--violet); transform: translateY(-1px); }
.answer-options button:disabled { cursor: default; opacity: .7; }
.answer-options button.correct { background: var(--mint); border-color: var(--mint); opacity: 1; }
.answer-options button.wrong { background: var(--pink); border-color: var(--pink); opacity: 1; }
.practice-next { background: var(--ink); border: 0; border-radius: 11px; color: #fff; cursor: pointer; font: 800 .9rem "Nunito", sans-serif; margin-top: 12px; min-height: 42px; padding: 9px 18px; }
.multiplication-feedback { font-size: .9rem; font-weight: 900; margin-top: 13px; min-height: 24px; }
.multiplication-feedback.correct { color: #3d9868; }
.multiplication-feedback.wrong { color: var(--rose); }

.summary-icon { font-size: 3.3rem; }
.practice-summary .question-counter { margin-top: 12px; }
.summary-numbers { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); margin-top: 24px; width: 100%; }
.summary-numbers div { background: #f7f8f8; border-radius: 12px; padding: 14px 8px; }
.summary-numbers strong { color: var(--ink); display: block; font: 900 1.3rem "Nunito", sans-serif; }
.summary-numbers span { color: var(--muted); display: block; font-size: .7rem; font-weight: 800; margin-top: 3px; }
.practice-summary button { justify-content: center; max-width: 280px; }

/* Hızlı Öğren: çarpma pratiği daha yoğun ve tek ekranda rahat izlenebilir. */
.standalone-practice .multiplication-section { padding-bottom: 44px; padding-top: 42px; }
.standalone-practice .multiplication-shell { gap: clamp(24px, 3.5vw, 42px); max-width: 1120px; }
.standalone-practice .multiplication-intro h1 { font-size: clamp(2rem, 3vw, 3rem); line-height: 1.08; }
.standalone-practice .multiplication-intro > p:not(.practice-memory) { font-size: .98rem; line-height: 1.55; margin-top: 10px; }
.standalone-practice .practice-modes { margin-top: 18px; }
.standalone-practice .factor-picker { margin-top: 18px; }
.standalone-practice .multiplication-start { min-height: 46px; padding: 10px 16px; }
.standalone-practice .practice-memory { margin-top: 9px; }
.standalone-practice .practice-board { border-radius: 18px; min-height: 420px; padding: clamp(18px, 2.5vw, 28px); }
.standalone-practice .practice-welcome,
.standalone-practice .practice-question,
.standalone-practice .practice-summary { min-height: 300px; }
.standalone-practice .practice-orbit { height: 118px; width: 118px; }
.standalone-practice .practice-orbit strong { font-size: 2.55rem; }
.standalone-practice .practice-orbit i { font-size: 1rem; height: 38px; width: 38px; }
.standalone-practice .practice-welcome h3,
.standalone-practice .practice-summary h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin-top: 14px; }
.standalone-practice .multiplication-equation { font-size: clamp(2.7rem, 5.2vw, 4.4rem); margin: 18px 0 8px; }
.standalone-practice .practice-question label { margin-top: 14px; }

/* Hızlı Öğren mini tekrarları */
.quick-labs { padding-top: 28px; }
.quick-labs .section-title { margin: 0 auto 22px; max-width: 1120px; }
.quick-labs .section-title > p { color: var(--muted); font-size: .95rem; max-width: 360px; }
.quick-labs-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 auto; max-width: 1240px; }
.quick-lab { background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 26px rgba(48,50,58,.06); cursor: pointer; padding: 20px; position: relative; transition: border-color .2s ease, box-shadow .2s ease, filter .2s ease, transform .2s ease; }
.quick-lab:hover:not(.is-focused) { box-shadow: 0 18px 34px rgba(48,50,58,.14); filter: saturate(1.06); transform: translateY(-4px); }
.quick-lab:nth-child(1) { background: linear-gradient(145deg, rgba(253,240,215,.78), rgba(255,255,255,.9) 68%); border-color: rgba(253,240,215,.98); }.quick-lab:nth-child(1) .quick-lab-icon { background: var(--derby); }
.quick-lab:nth-child(2) { background: linear-gradient(145deg, rgba(254,211,217,.72), rgba(255,255,255,.9) 68%); border-color: rgba(254,211,217,.96); }.quick-lab:nth-child(2) .quick-lab-icon { background: var(--pink); }
.quick-lab:nth-child(3) { background: linear-gradient(145deg, rgba(197,235,213,.76), rgba(255,255,255,.9) 68%); border-color: rgba(197,235,213,.98); }.quick-lab:nth-child(3) .quick-lab-icon { background: var(--mint); }
.quick-lab:nth-child(4) { background: linear-gradient(145deg, rgba(206,244,248,.76), rgba(255,255,255,.9) 68%); border-color: rgba(206,244,248,.98); }.quick-lab:nth-child(4) .quick-lab-icon { background: var(--aura); }
.quick-lab:nth-child(5) { background: linear-gradient(145deg, rgba(209,204,235,.7), rgba(255,255,255,.9) 68%); border-color: rgba(209,204,235,.95); }.quick-lab:nth-child(5) .quick-lab-icon { background: var(--violet); }
.quick-lab:nth-child(6) { background: linear-gradient(145deg, rgba(206,244,248,.76), rgba(255,255,255,.9) 68%); border-color: rgba(206,244,248,.98); }.quick-lab:nth-child(6) .quick-lab-icon { background: var(--aura); }
.quick-lab-icon { align-items: center; border-radius: 10px; color: var(--ink); display: inline-flex; font: 900 1.15rem "Nunito", sans-serif; height: 36px; justify-content: center; width: 36px; }
.quick-lab-kicker { color: var(--muted); display: block; font-size: .72rem; font-weight: 900; letter-spacing: .07em; margin-top: 14px; text-transform: uppercase; }
.quick-lab h3 { color: var(--ink); font-size: 1.2rem; margin-top: 4px; }.quick-lab > p { color: var(--muted); font-size: .88rem; line-height: 1.45; margin-top: 5px; }
.quick-lab:not(.is-focused)::after { color: var(--ink); content: "Keşfet →"; display: block; font: 800 .8rem "Nunito", sans-serif; margin-top: 16px; }.quick-lab-play { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }.quick-lab:not(.is-focused) .quick-lab-play { display: none; }.quick-prompt { color: var(--ink); font: 800 1rem/1.35 "Nunito", sans-serif; min-height: 44px; }
.quick-factor-picker { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }.quick-lab:not(.is-focused) .quick-factor-picker { display: none; }.quick-factor-picker > span { color: var(--muted); display: block; font-size: .75rem; font-weight: 900; margin-bottom: 8px; text-transform: uppercase; }.quick-factor-picker > div { display: grid; gap: 6px; grid-template-columns: repeat(9, 1fr); }.quick-factor-picker button { background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); cursor: pointer; font: 800 .82rem "Nunito", sans-serif; min-height: 32px; }.quick-factor-picker button[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); }
.quick-choices { display: grid; gap: 7px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; }.quick-choices button { background: #fff; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); cursor: pointer; font: 800 .9rem "Nunito", sans-serif; min-height: 38px; padding: 6px; }.quick-choices button:hover:not(:disabled) { background: var(--violet); border-color: var(--violet); }.quick-choices button:disabled { cursor: default; opacity: .72; }.quick-choices button.correct { background: var(--mint); border-color: var(--mint); opacity: 1; }.quick-choices button.wrong { background: var(--pink); border-color: var(--pink); opacity: 1; }
.quick-feedback { color: var(--muted); font-size: .82rem; font-weight: 700; line-height: 1.4; margin-top: 10px; min-height: 34px; }.quick-feedback.correct { color: var(--ink); }.quick-next { background: transparent; border: 0; color: var(--ink); cursor: pointer; font: 800 .78rem "Nunito", sans-serif; margin-top: 5px; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.quick-lab-backdrop { backdrop-filter: blur(9px); background: rgba(48,50,58,.18); border: 0; inset: 0; position: fixed; z-index: 200; }
.quick-lab.is-focused { cursor: default; left: 50%; max-height: min(560px, calc(100vh - 32px)); overflow: auto; padding: 28px; position: fixed; top: 50%; transform: translate(-50%, -50%); width: min(540px, calc(100vw - 32px)); z-index: 201; }
.quick-lab.is-focused::after { display: none; }.quick-lab-close { background: var(--pink); border: 0; border-radius: 50%; color: var(--ink); cursor: pointer; display: none; font-size: 1.1rem; height: 30px; position: absolute; right: 15px; top: 15px; width: 30px; }.quick-lab.is-focused .quick-lab-close { align-items: center; display: inline-flex; justify-content: center; }
body.quick-lab-open { overflow: hidden; }

.topics-section {
  background: linear-gradient(180deg, #fff 0%, rgba(253,240,215,0.34) 100%);
}

.topics-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.topic-card {
  align-items: center;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-family: inherit;
  gap: 8px;
  min-height: 170px;
  overflow: hidden;
  padding: 22px 16px;
  position: relative;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
  width: 100%;
}

.topic-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.topic-card.active {
  box-shadow: 0 0 0 3px var(--blue), var(--shadow);
}

.tc-1 { background: linear-gradient(145deg, var(--aura) 0%, var(--yellow) 100%); color: var(--ink); }
.tc-2 { background: linear-gradient(145deg, var(--mint) 0%, #edf9f1 100%); color: var(--ink); }
.tc-3 { background: linear-gradient(145deg, var(--violet) 0%, var(--yellow) 100%); color: var(--ink); }
.tc-4 { background: linear-gradient(145deg, var(--pink) 0%, #fff4f6 100%); color: var(--ink); }
.tc-5 { background: linear-gradient(145deg, var(--yellow) 0%, var(--aura) 100%); color: var(--ink); }
.tc-6 { background: linear-gradient(145deg, var(--yellow) 0%, var(--mint) 100%); color: var(--ink); }

.topic-card::before {
  background: rgba(255,255,255,0.38);
  border-radius: 50%;
  content: "";
  height: 120px;
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
}

.topic-icon {
  font-size: 2.4rem;
  position: relative;
  z-index: 1;
}

.topic-card strong {
  display: block;
  font-family: "Nunito", sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  position: relative;
  z-index: 1;
}

.topic-sub {
  color: rgba(48,50,58,0.68);
  font-size: 0.82rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.topic-count {
  background: rgba(255,255,255,0.66);
  border-radius: 99px;
  color: rgba(48,50,58,0.78);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 10px;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════
   ALAN (DOMAIN) TARAYICISI — anasayfa "Matematik Dünyası"
   sinif-5/6/7/8.html'deki konu tarayıcısıyla aynı görsel dil
══════════════════════════════════════════════ */
.domain-browser {
  align-items: stretch;
  backdrop-filter: blur(11px) saturate(.92);
  background: rgba(255, 250, 248, .42);
  display: flex;
  inset: 0;
  justify-content: center;
  margin: 0;
  overflow-y: auto;
  padding: 0;
  position: fixed;
  z-index: 220;
}

.domain-browser[hidden] { display: none; }

body.domain-browser-open { overflow: hidden; }

.domain-browser-dialog {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-height: none;
  max-width: none;
  min-height: 100dvh;
  outline: none;
  overflow-y: auto;
  padding: clamp(18px, 4vw, 48px);
  width: 100%;
}

.domain-browser .topic-browser-layout,
.domain-browser .domain-browser-foot {
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
  width: 100%;
}

.domain-browser-foot {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.topic-links-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.topic-link-card { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: flex; gap: 14px; padding: 18px 20px; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.topic-link-card:hover { border-color: var(--amber); box-shadow: 0 4px 16px rgba(213,166,66,.16); transform: translateY(-2px); }
.tlc-num { align-items: center; background: var(--yellow); border-radius: 8px; color: var(--ink); display: flex; flex-shrink: 0; font-family: Nunito, sans-serif; font-size: 18px; font-weight: 900; height: 44px; justify-content: center; width: 44px; }
.tlc-body { flex: 1; }
.tlc-body strong { color: var(--ink); display: block; font-size: 16px; font-weight: 700; }
.tlc-body span { color: var(--muted); font-size: 12px; }
.tlc-arrow { color: var(--muted); font-size: 18px; flex-shrink: 0; }
.topic-link-card:hover .tlc-arrow { color: var(--amber); }

.topic-link-card.is-placeholder {
  cursor: default;
  opacity: 0.55;
}
.topic-link-card.is-placeholder:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}
.topic-link-card.is-placeholder .tlc-num { background: var(--line); }

.topic-link-card.is-selected {
  border-color: rgba(85,185,199,0.42);
  box-shadow: 0 10px 28px rgba(85,185,199,.12);
}
.topic-detail-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(48,50,58,.08);
  margin: 0;
  overflow: hidden;
  min-height: 320px;
}
.topic-detail-head {
  align-items: flex-start;
  background: linear-gradient(135deg, #f2fbfd 0%, #fffaf8 52%, #fed3d9 100%);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px clamp(18px,3vw,28px);
}
.topic-detail-title { min-width: 0; }
.topic-detail-title span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.topic-detail-title h3 {
  color: var(--ink);
  font-family: Nunito, sans-serif;
  font-size: clamp(22px,3vw,30px);
  line-height: 1.1;
  margin: 0;
}
.topic-detail-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.topic-detail-btn {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  min-height: 40px;
  padding: 9px 13px;
  text-decoration: none;
}
.topic-detail-btn:hover {
  border-color: var(--amber);
  color: #8a6a2a;
}
.topic-detail-body {
  padding: 22px clamp(18px,3vw,28px) 28px;
}
.topic-detail-overview {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 22px;
  max-width: 760px;
}
.topic-detail-note {
  background: #f2fbfd;
  border: 1px solid rgba(85,185,199,0.22);
  border-radius: 12px;
  color: var(--ink);
  line-height: 1.6;
  margin: 0 0 22px;
  padding: 14px 16px;
}
.topic-detail-note a { color: #8a6a2a; font-weight: 800; }
.topic-teaching-note {
  background: linear-gradient(135deg, #fffaf8, #f2fbfd);
  border: 1px solid rgba(85,185,199,0.25);
  border-radius: 12px;
  margin: 0 0 22px;
  padding: 14px 16px;
}
.topic-teaching-note span {
  color: #278e9d;
  display: block;
  font-family: Nunito, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.topic-teaching-note p { color: var(--ink); line-height: 1.6; margin: 0; }
.topic-detail-section { margin-top: 28px; }
.topic-detail-section:first-of-type { margin-top: 0; }
.topic-detail-section h4 {
  color: var(--ink);
  font-family: Nunito, sans-serif;
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 14px;
}
.topic-detail-section .topic-links-grid { margin-bottom: 0; }
.topic-detail-empty {
  background: #fffaf8;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  display: grid;
  gap: 4px;
  padding: 18px;
}
.topic-detail-empty strong { color: var(--ink); font-family: Nunito, sans-serif; }

.topic-quick-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.topic-quick-grid span {
  background: #fffaf8;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 4px;
  padding: 14px;
}

.topic-quick-grid strong {
  color: var(--ink);
  font-family: Nunito, sans-serif;
  font-size: 0.95rem;
}

.topic-quick-grid small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 680px) {
  .topic-detail-head { align-items: stretch; flex-direction: column; }
  .topic-detail-actions { justify-content: flex-start; }
  .topic-detail-btn { justify-content: center; width: 100%; }
  .topic-quick-grid { grid-template-columns: 1fr; }
}

.topic-browser-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}
.domain-browser .topic-selector-panel { position: static; }
.topic-selector-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(48,50,58,0.06);
  overflow: hidden;
  position: sticky;
  top: 88px;
}
.topic-selector-head {
  align-items: center;
  background: linear-gradient(135deg, #fed3d9, #fffaf8);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 16px 18px;
  text-transform: uppercase;
}

.topic-selector-head small {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(234,223,228,0.9);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  padding: 4px 9px;
  text-transform: none;
  white-space: nowrap;
}

.topic-selector-list { display: grid; gap: 0; grid-template-columns: 1fr; }
.topic-selector-list .topic-link-card {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  min-height: 76px;
  padding: 14px 16px;
}
.topic-selector-list .topic-link-card:last-child { border-bottom: 0; }
.topic-selector-list .topic-link-card:hover {
  background: #f2fbfd;
  box-shadow: none;
  transform: none;
}
.topic-selector-list .topic-link-card.is-selected:hover,
.topic-selector-list .topic-link-card.is-selected {
  background: #eef6ff;
  border-color: var(--line);
  box-shadow: inset 4px 0 0 var(--blue);
}
.topic-selector-list .tlc-num {
  background: #fff3cf;
  border-radius: 12px;
  height: 40px;
  width: 40px;
}
.topic-selector-list .tlc-body strong { font-size: 0.98rem; line-height: 1.25; }
.topic-selector-list .tlc-body span { font-size: 0.82rem; font-weight: 700; }
@media (max-width: 980px) {
  .topic-browser-layout { grid-template-columns: 1fr; }
  .topic-selector-panel { position: static; }
  .topic-selector-list { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .topic-selector-list .topic-link-card { border-right: 1px solid var(--line); }
}

/* ── CLASS GRID ── */
.class-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.class-card {
  background: linear-gradient(145deg, var(--surface) 62%, color-mix(in srgb, var(--grade-color, var(--aura)) 34%, white));
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  display: grid;
  gap: 10px;
  min-height: 240px;
  overflow: hidden;
  padding: 24px;
  position: relative;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.class-card::after {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.55));
  content: "";
  height: 130px;
  pointer-events: none;
  position: absolute;
  right: -40px;
  top: -48px;
  transform: rotate(28deg);
  width: 90px;
}

.class-card.active { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-3px); }
.class-card:hover:not(.active) { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.class-number {
  align-items: center;
  border-radius: 10px;
  color: #fff;
  display: flex;
  font-family: "Nunito", sans-serif;
  font-size: 2.25rem;
  font-weight: 900;
  height: 78px;
  justify-content: center;
  margin-bottom: 8px;
  width: 78px;
}

.class-card h3 {
  font-size: 1.35rem;
  line-height: 1.12;
  margin: 0;
}

.class-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.class-action {
  align-self: end;
  color: var(--rose);
  font-size: 0.9rem;
  font-weight: 900;
  margin-top: 8px;
}

/* ══════════════════════════════════════════════
   GAMES CATALOG
══════════════════════════════════════════════ */
.games-section {
  background: linear-gradient(180deg, var(--paper) 0%, rgba(253,240,215,0.42) 48%, #fff 100%);
}

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

.filter-btn {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  color: #4d5059;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 7px 18px;
  transition: all 140ms ease;
}

.filter-btn:hover { background: var(--yellow); }

.filter-btn.active {
  background: linear-gradient(135deg, var(--yellow), var(--aura));
  border-color: rgba(213,166,66,0.38);
  color: var(--ink);
}

.games-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.games-section > .game-group {
  margin-left: auto;
  margin-right: auto;
  max-width: 1240px;
  width: 100%;
}

.game-group + .game-group { margin-top: 48px; }

.game-group-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 0 18px;
}

.game-group-heading h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin: 5px 0 0;
}

.game-group-heading p {
  color: var(--muted);
  margin: 0;
  max-width: 300px;
  text-align: right;
}

.fun-game-group {
  border-top: 1px solid var(--line);
  padding-top: 38px;
}

.fun-game-card .game-card-bg { min-height: 152px; }

@media (max-width: 640px) {
  .game-group-heading { align-items: start; flex-direction: column; gap: 7px; }
  .game-group-heading p { text-align: left; }
}

.game-card {
  border-radius: var(--r);
  color: inherit;
  display: block;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.game-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.game-card-soon { cursor: default; opacity: 0.76; }
.game-card-soon:hover { box-shadow: var(--shadow-sm); transform: none; }
.game-card-soon .game-play-btn { background: #f2f3f5; color: var(--muted); }

.game-card:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

.game-card-bg {
  align-items: flex-end;
  display: flex;
  height: 120px;
  justify-content: flex-start;
  overflow: hidden;
  padding: 16px 18px;
  position: relative;
}

.game-card-icon {
  font-size: 5rem;
  opacity: 0.2;
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(-10deg);
}

.game-topic-pill {
  background: rgba(255,255,255,0.58);
  border-radius: 99px;
  color: rgba(48,50,58,0.82);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  position: absolute;
  left: 14px;
  top: 14px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.game-card-body {
  background: #fff;
  border: 1px solid var(--line);
  border-top: none;
  border-bottom-left-radius: var(--r);
  border-bottom-right-radius: var(--r);
  padding: 18px;
}

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

.difficulty { display: flex; gap: 5px; }

.dot {
  background: #eadfe4;
  border-radius: 50%;
  display: inline-block;
  height: 9px;
  width: 9px;
}

.dot.filled { background: var(--amber); }

.game-xp {
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  border-radius: 99px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 10px;
}

.game-card-body h3 {
  font-family: "Nunito", sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 6px;
}

.game-card-body p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0 0 14px;
}

.game-footer {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.grade-tags { display: flex; gap: 5px; }

.grade-tag {
  background: var(--derby);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 3px 8px;
}

.game-play-btn {
  flex-shrink: 0;
  font-size: 0.85rem;
  min-height: 36px;
  padding: 6px 14px;
  pointer-events: none;
}

/* ── DAILY CHALLENGE ── */
.daily-challenge {
  align-items: center;
  background: linear-gradient(135deg, var(--aura) 0%, var(--yellow) 42%, var(--mint) 72%, var(--pink) 100%);
  color: var(--ink);
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  overflow: hidden;
  position: relative;
}

.daily-challenge::before {
  background:
    radial-gradient(ellipse at 15% 50%, rgba(209,204,235,0.5) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 50%, rgba(254,211,217,0.38) 0%, transparent 55%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.daily-challenge > * { position: relative; }

.daily-badge {
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  border-radius: 99px;
  color: var(--ink);
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 900;
  margin-bottom: 14px;
  padding: 6px 16px;
}

.daily-challenge h2 { color: var(--ink); font-size: 2.4rem; line-height: 1.05; margin-bottom: 12px; }
.daily-challenge p { color: #6d7079; max-width: 460px; }
.daily-challenge p strong { color: var(--amber); }

.daily-meta { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 22px; }

.time-left, .participants {
  background: rgba(255,255,255,0.44);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 6px 12px;
}

.daily-visual {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.daily-number {
  align-items: center;
  background: rgba(255,255,255,0.42);
  border: 2px solid rgba(213,166,66,0.28);
  border-radius: var(--r);
  color: #d5a642;
  display: flex;
  font-family: "Nunito", sans-serif;
  font-size: 5rem;
  font-weight: 900;
  height: 110px;
  justify-content: center;
  width: 110px;
}

.daily-factors {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}

.daily-factors span {
  align-items: center;
  background: rgba(255,255,255,0.36);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  color: rgba(48,50,58,0.68);
  display: flex;
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  justify-content: center;
  min-height: 38px;
}

/* ══════════════════════════════════════════════
   GEOMETRİ ATÖLYESİ
══════════════════════════════════════════════ */
.workshop-section { background: #fff; }

.workshop-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}

/* Info panel */
.workshop-desc p { color: #6d7079; line-height: 1.65; }

.workshop-features {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.wf-item {
  align-items: flex-start;
  display: flex;
  gap: 12px;
}

.wf-icon {
  align-items: center;
  border-radius: 10px;
  display: flex;
  flex-shrink: 0;
  font-size: 1.3rem;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.wf-item strong { display: block; font-size: 0.95rem; font-weight: 900; margin-bottom: 2px; }
.wf-item p { color: var(--muted); font-size: 0.88rem; margin: 0; line-height: 1.45; }

.workshop-constructions { margin-top: 22px; }

.workshop-label {
  color: #8a6a2a;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.workshop-constructions ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.workshop-constructions li {
  align-items: center;
  background: #fffaf8;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0;
  color: #4d5059;
  display: flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 8px;
  padding: 9px 12px;
}

.workshop-constructions li::before {
  content: "◆";
  color: var(--amber);
  font-size: 0.6rem;
}

/* iframe wrapper */
.workshop-frame-wrap {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.frame-toolbar {
  align-items: center;
  background: #30323a;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 16px;
}

.frame-title {
  color: #6d7079;
  font-size: 0.88rem;
  font-weight: 800;
}

.frame-open-btn {
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #eadfe4;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 4px 10px;
  transition: background 120ms;
}

.frame-open-btn:hover { background: rgba(255,255,255,0.2); }

.workshop-frame {
  border: none;
  display: block;
  height: 560px;
  width: 100%;
}

.frame-fallback {
  align-items: center;
  background: #fffaf8;
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
}

.frame-fallback span { font-size: 2.5rem; }
.frame-fallback p { color: var(--muted); max-width: 340px; }

/* Geometry shapes showcase */
.geo-showcase {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 32px;
}

.geo-card {
  align-items: center;
  background: var(--c, #FDF0D7);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 12px;
  transition: transform 160ms ease, box-shadow 160ms ease;
  text-align: center;
}

.geo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.geo-shape { height: 54px; width: 54px; }
.geo-shape svg { display: block; height: 100%; width: 100%; }

.geo-card strong {
  color: var(--ct, #4d5059);
  font-family: "Nunito", sans-serif;
  font-size: 0.92rem;
  font-weight: 900;
}

/* ── HOW IT WORKS ── */
.how-section { background: var(--paper); }

.how-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.how-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 28px 22px;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.how-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }

.how-icon {
  align-items: center;
  border-radius: 14px;
  display: inline-flex;
  font-size: 1.8rem;
  height: 60px;
  justify-content: center;
  margin-bottom: 14px;
  width: 60px;
}

.how-icon.how-illustration {
  background: transparent;
  display: flex;
  height: 64px;
  margin: 0 auto 14px;
  overflow: visible;
  width: 64px;
}

.how-icon.how-illustration img {
  display: block;
  height: 72px;
  max-width: none;
  object-fit: contain;
  width: 72px;
}

.how-card strong {
  display: block;
  font-family: "Nunito", sans-serif;
  font-size: 1.08rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.how-card p { color: var(--muted); font-size: 0.875rem; line-height: 1.55; }

/* ── ACHIEVEMENT PATH ── */
.split {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
}

.achievement-list { display: grid; gap: 12px; }

.achievement-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto;
  padding: 18px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.achievement-card:hover,
.import-card:hover,
.class-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.achievement-card strong { display: block; font-size: 1.02rem; font-weight: 800; }

.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }

.tag {
  background: #FDF0D7;
  border-radius: 7px;
  color: #4d5059;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 4px 9px;
}

/* ── STUDIO ── */
.studio-layout {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-template-columns: 280px minmax(0, 1fr);
}

.module-menu {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.module-button {
  align-items: center;
  background: #fffaf8;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #4d5059;
  cursor: pointer;
  display: flex;
  font-weight: 900;
  justify-content: space-between;
  min-height: 52px;
  padding: 12px;
  text-align: left;
  transition: background 120ms, border-color 120ms;
}

.module-button:hover:not(.active) { background: #FDF0D7; }

.module-button.active {
  background: linear-gradient(135deg, #30323a 0%, #4d5059 100%);
  border-color: #30323a;
  color: #fff;
}

.activity-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(18px, 3vw, 28px);
}

.level-display {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 12px;
  padding: 10px 16px;
}

.level-badge {
  background: linear-gradient(135deg, #30323a, #4d5059);
  border-radius: 8px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  padding: 6px 12px;
  white-space: nowrap;
}

.level-badge strong { color: #d5a642; }

.level-xp-wrap { display: flex; flex-direction: column; flex: 1; gap: 4px; min-width: 120px; }

.level-xp-track {
  background: #eadfe4;
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
}

.level-xp-fill {
  background: linear-gradient(90deg, #e78398, #FDF0D7);
  border-radius: 99px;
  height: 100%;
  transition: width 0.5s ease;
}

#xpText { color: var(--muted); font-size: 0.78rem; font-weight: 800; }

.score-wrap { align-items: center; display: flex; gap: 8px; }

.status-pill {
  background: #FDF0D7;
  border-radius: 8px;
  color: #8a6a2a;
  font-weight: 900;
  padding: 7px 12px;
}

.xp-earn {
  background: linear-gradient(135deg, #e78398, #FDF0D7);
  border-radius: 8px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  opacity: 0;
  padding: 7px 12px;
  transition: opacity 0.3s;
}

.xp-earn.show {
  animation: popIn 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  opacity: 1;
}

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

.activity-panel > p { color: #6d7079; margin-top: 12px; }

.question-box {
  align-items: center;
  background: linear-gradient(135deg, #ecfdf5 0%, #EAFBFD 100%);
  border: 1px solid #C5EBD5;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  padding: 16px 20px;
}

.question-label { color: #3f7656; font-weight: 900; }

.question-box strong {
  color: #3f7656;
  font-family: "Nunito", sans-serif;
  font-size: 2.8rem;
  line-height: 1;
}

.answer-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.answer-grid button {
  align-items: center;
  background: #fffaf8;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 1.2rem;
  font-weight: 900;
  justify-content: center;
  min-height: 50px;
  transition: background 100ms, transform 100ms, border-color 100ms;
}

.answer-grid button:hover:not(:disabled) { transform: scale(1.04); }

.answer-grid button.selected { background: #FDF0D7; border-color: #d5a642; color: #8a6a2a; }
.answer-grid button.correct  { background: #C5EBD5; border-color: #4da875; color: #3f7656; }
.answer-grid button.wrong    { background: #FED3D9; border-color: #d66d86; color: #d66d86; }

.feedback {
  background: #fffaf8;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: #4d5059;
  font-weight: 800;
  margin-top: 16px;
  padding: 13px 16px;
  transition: border-color 0.3s;
}

.activity-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ── BLOG IMPORT ── */
.content-import {
  background: var(--paper);
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(240px, 0.6fr) minmax(0, 1.4fr);
}

.import-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.import-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.import-card img { aspect-ratio: 16/9; height: auto; object-fit: cover; width: 100%; }

.import-card strong, .import-card span { padding-left: 14px; padding-right: 14px; }
.import-card strong { font-size: 1.02rem; padding-top: 14px; }
.import-card span   { color: var(--muted); padding-bottom: 16px; padding-top: 6px; font-size: 0.9rem; }

/* ══════════════════════════════════════════════
   HAFTALIK DERS PROGRAMI — PLANNER SECTION
══════════════════════════════════════════════ */

.planner-section {
  background: linear-gradient(160deg, rgba(253,240,215,0.78) 0%, rgba(206,244,248,0.42) 52%, #fef9f5 100%);
  border-bottom: 1px solid rgba(213,166,66,0.22);
  border-top: 1px solid rgba(213,166,66,0.22);
}

.planner-layout {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: 360px 1fr;
}

.planner-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.planner-desc {
  color: #374151;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.planner-tips {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.planner-tip {
  align-items: flex-start;
  display: flex;
  gap: 12px;
}

.planner-tip-icon {
  border-radius: 10px;
  flex-shrink: 0;
  font-size: 1.1rem;
  height: 38px;
  line-height: 38px;
  text-align: center;
  width: 38px;
}

.planner-tip strong { display: block; font-size: 0.9rem; font-weight: 800; margin-bottom: 1px; }
.planner-tip p { color: var(--muted); font-size: 0.82rem; line-height: 1.5; margin: 0; }

.planner-cta { align-self: flex-start; margin-top: 4px; }

/* ── Preview mockup ── */
.planner-preview {
  background: #fff;
  border: 1.5px solid #eadfe4;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pp-toolbar {
  align-items: center;
  background: linear-gradient(90deg, var(--yellow) 0%, var(--violet) 100%);
  color: var(--ink);
  display: flex;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 14px;
}

.planner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.pp-action,
.pp-add {
  background: rgba(255,255,255,0.54);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  font-family: "Nunito", sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 5px 9px;
  transition: background 140ms, transform 140ms;
}

.pp-action:hover,
.pp-add:hover {
  background: #fff;
  transform: translateY(-1px);
}

.pp-action.muted {
  color: rgba(48,50,58,0.62);
}

.planner-form {
  background: rgba(255,250,248,0.72);
  border-bottom: 1.5px solid #eadfe4;
  display: grid;
  gap: 8px;
  grid-template-columns: 1.05fr 1.05fr minmax(170px, 1.8fr) 0.9fr 0.95fr auto;
  padding: 12px;
}

.planner-form input,
.planner-form select {
  background: #fff;
  border: 1.5px solid #eadfe4;
  border-radius: 9px;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  min-width: 0;
  padding: 8px 9px;
}

.planner-form input:focus,
.planner-form select:focus {
  border-color: rgba(85,185,199,0.55);
  outline: none;
}

.pp-add {
  background: linear-gradient(135deg, var(--aura), var(--yellow));
  border-color: rgba(85,185,199,0.18);
  min-width: 64px;
}

.pp-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 12px;
}

.pp-day {
  border: 1.5px solid #eadfe4;
  border-radius: 10px;
  overflow: hidden;
  min-height: 178px;
}

.pp-today { border-color: var(--amber); }

.pp-day-head {
  background: #fffaf8;
  border-bottom: 1.5px solid #eadfe4;
  display: flex;
  flex-direction: column;
  padding: 7px 8px;
  text-align: center;
}

.pp-today .pp-day-head { background: var(--yellow); }
.pp-today .pp-day-head span  { color: rgba(48,50,58,0.62); }
.pp-today .pp-day-head strong { color: var(--ink); }

.pp-day-head span   { color: var(--muted); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.07em; }
.pp-day-head strong { color: var(--ink);   font-family: "Nunito", sans-serif; font-size: 1rem; font-weight: 900; }

.pp-day-body {
  min-height: 118px;
  padding-bottom: 6px;
}

.pp-block {
  border-left: 3px solid var(--pc, #55b9c7);
  background: var(--pb, #CEF4F8);
  border-top: 0;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 6px 6px 0;
  padding: 6px 7px;
  border-radius: 0 6px 6px 0;
  position: relative;
  text-align: left;
  width: calc(100% - 12px);
}

.pp-block:last-child { margin-bottom: 6px; }

.pp-block span  { color: var(--pc); font-size: 0.65rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.pp-block strong { font-size: 0.78rem; font-weight: 800; }
.pp-block small  { color: var(--muted); font-size: 0.7rem; }
.pp-block.pp-done { opacity: 0.55; }
.pp-block.pp-done strong { text-decoration: line-through; }

.pp-remove {
  background: rgba(255,255,255,0.6);
  border: 0;
  border-radius: 999px;
  color: rgba(48,50,58,0.52);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
  height: 18px;
  line-height: 18px;
  opacity: 0;
  position: absolute;
  right: 5px;
  text-align: center;
  top: 5px;
  transition: opacity 120ms, background 120ms;
  width: 18px;
}

.pp-block:hover .pp-remove { opacity: 1; }
.pp-remove:hover { background: #fff; color: var(--rose); }

.pp-summary {
  align-items: center;
  background: #fffaf8;
  border-top: 1.5px solid #eadfe4;
  display: flex;
  gap: 16px;
  padding: 10px 14px;
}

.pp-summary span { color: var(--muted); font-size: 0.8rem; }
.pp-summary strong { color: var(--amber); font-family: "Nunito", sans-serif; }

@media (max-width: 1180px) {
  .planner-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pp-add { min-height: 38px; }
  .pp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .planner-form { grid-template-columns: 1fr; }
  .planner-actions { justify-content: flex-start; width: 100%; }
  .pp-toolbar { align-items: flex-start; flex-direction: column; }
  .pp-grid { grid-template-columns: 1fr; }
}

@media print {
  body * { visibility: hidden; }
  #quickPlanner, #quickPlanner * { visibility: visible; }
  #quickPlanner {
    border: 0;
    box-shadow: none;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }
  #quickPlanner .planner-form,
  #quickPlanner .planner-actions,
  #quickPlanner .pp-remove {
    display: none !important;
  }
  #quickPlanner .pp-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

/* ══════════════════════════════════════════════
   OKU, İZLE, KEŞFET — BLOG SECTION
══════════════════════════════════════════════ */

.blog-section { }

.blog-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card {
  background: #fff;
  border: 1px solid #eadfe4;
  border-radius: var(--r);
  box-shadow: 0 4px 16px rgba(15,23,42,0.06);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 200ms, transform 200ms;
}

.blog-card:hover {
  box-shadow: 0 12px 40px rgba(15,23,42,0.14);
  transform: translateY(-3px);
}

.blog-card-img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.blog-card-img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms;
  width: 100%;
}

.blog-card:hover .blog-card-img { transform: scale(1.04); }

.blog-tag {
  border-radius: 20px;
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  left: 12px;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  position: absolute;
  text-transform: uppercase;
  top: 12px;
}

.blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
}

.blog-card-body h3 {
  font-family: "Nunito", sans-serif;
  font-size: 0.97rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.blog-card-body p {
  color: var(--muted);
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0;
}

.blog-read-more {
  color: #8a6a2a;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 4px;
}

/* ══════════════════════════════════════════════
   HAKKIMDA — ABOUT SECTION
══════════════════════════════════════════════ */

.about-section {
  background: linear-gradient(135deg, #fffaf8 0%, #FDF0D7 100%);
  border-bottom: 1px solid #FDF0D7;
}

.about-layout {
  display: grid;
  gap: 40px;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1240px;
  align-items: center;
}

.about-how {
  border-top: 1px solid rgba(214,109,134,.18);
  margin-top: 56px;
  padding-top: 48px;
}

.about-how .section-title { margin-bottom: 28px; }

.about-how-section .about-how {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

/* Ana sayfa arka plan akışı */
body { background: #fffaf8; }
#home {
  background:
    radial-gradient(ellipse 48% 18% at 12% 8%, rgba(254,211,217,.62), transparent 72%),
    radial-gradient(ellipse 46% 19% at 87% 18%, rgba(206,244,248,.7), transparent 72%),
    radial-gradient(ellipse 48% 17% at 72% 47%, rgba(209,204,235,.56), transparent 72%),
    radial-gradient(ellipse 48% 18% at 16% 64%, rgba(197,235,213,.56), transparent 72%),
    radial-gradient(ellipse 52% 18% at 84% 86%, rgba(253,240,215,.72), transparent 72%),
    linear-gradient(180deg, #fffaf8 0%, #ffffff 100%);
}
.hero {
  background: transparent;
}
.hero::before { opacity: 0.16; }
.about-how-section,
.topics-section,
.games-section,
.blog-section,
.materials-section,
.about-section { background: transparent; }

.about-photo-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  justify-content: center;
}

.about-photo-wrap {
  border-radius: 50%;
  box-shadow: 0 0 0 6px #fff, 0 0 0 10px #e78398, 0 16px 48px rgba(231,131,152,0.18);
  overflow: hidden;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
}

.about-photo {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.about-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.social-btn {
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  display: flex;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms;
  box-shadow: var(--shadow-sm);
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(214,109,134,0.18);
  border-color: var(--rose);
}

.social-btn-icon {
  background: var(--ink);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 140ms;
}

.social-btn:hover .social-btn-icon {
  background: linear-gradient(135deg, var(--rose), var(--indigo));
}

.social-btn-icon svg { width: 18px; height: 18px; color: #fff; }

.social-btn svg { flex-shrink: 0; width: 20px; height: 20px; }

.back-to-top {
  align-items: center;
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.7), transparent 34%),
    linear-gradient(135deg, #fed3d9 0%, #e78398 55%, #d1cceb 100%);
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  bottom: 22px;
  box-shadow: 0 14px 30px rgba(231, 131, 152, 0.24);
  color: #fff;
  display: inline-flex;
  font-family: "Nunito", sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  line-height: 1;
  position: fixed;
  right: 22px;
  text-decoration: none;
  text-shadow: 0 2px 8px rgba(214, 109, 134, 0.22);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
  width: 52px;
  z-index: 120;
}

.back-to-top:hover {
  box-shadow: 0 18px 38px rgba(142, 134, 203, 0.28);
  filter: saturate(1.08);
  transform: translateY(-4px) scale(1.03);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

.about-text .eyebrow { margin-bottom: 4px; }

.about-text {
  justify-self: center;
  max-width: 610px;
  text-align: left;
}

.about-text h2 {
  font-size: 2.35rem;
  margin-bottom: 16px;
  margin-top: 0;
}

.about-text p {
  color: #374151;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1.03rem;
  line-height: 1.7;
  max-width: 610px;
  margin-bottom: 14px;
  margin-top: 0;
}

.about-quote {
  border-left: 4px solid #e78398;
  background: rgba(249,115,22,0.07);
  border-radius: 0 10px 10px 0;
  color: #7c3a00;
  font-family: "Nunito", sans-serif;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.55;
  margin: 20px 0 28px;
  padding: 14px 18px;
}

/* ══════════════════════════════════════════════
   MATERYALLEr — MATERIALS SECTION
══════════════════════════════════════════════ */

.materials-layout {
  align-items: start;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 1fr;
}

.youtube-wrap {
  background: #30323a;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.youtube-label {
  background: #30323a;
  color: rgba(255,255,255,0.68);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  text-transform: uppercase;
}

.youtube-frame,
.youtube-cover {
  aspect-ratio: 16/9;
  border: none;
  display: block;
  width: 100%;
}

.youtube-cover {
  background: #24262b;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.youtube-cover img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, opacity 260ms ease;
  width: 100%;
}

.youtube-cover:hover img {
  opacity: 0.86;
  transform: scale(1.035);
}

.youtube-cover::after {
  background: linear-gradient(180deg, rgba(48,50,58,0.08) 0%, rgba(48,50,58,0.72) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.youtube-cover-overlay {
  align-items: center;
  bottom: 0;
  display: flex;
  gap: 14px;
  left: 0;
  padding: 18px 20px;
  position: absolute;
  right: 0;
  z-index: 1;
}

.youtube-play {
  align-items: center;
  background: var(--yellow);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  flex-shrink: 0;
  font-size: 1rem;
  height: 46px;
  justify-content: center;
  width: 46px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.2);
}

.youtube-cover-overlay strong,
.youtube-cover-overlay small {
  display: block;
}

.youtube-cover-overlay strong {
  font-family: "Nunito", sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 900;
  line-height: 1.2;
}

.youtube-cover-overlay small {
  color: rgba(255,255,255,0.74);
  font-size: 0.86rem;
  font-weight: 800;
  margin-top: 4px;
}

.youtube-preview-note { color: rgba(255,255,255,.72); font-size: .78rem; font-weight: 700; line-height: 1.45; margin: 0; padding: 13px 16px; }
.video-list {
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 252px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(206,244,248,0.42) rgba(255,255,255,0.04);
  scrollbar-width: thin;
}

.video-item {
  align-items: center;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #6d7079;
  cursor: pointer;
  display: flex;
  gap: 11px;
  min-height: 70px;
  padding: 10px 16px;
  text-align: left;
  transition: background .12s, color .12s;
  width: 100%;
}
.video-item:last-child { border-bottom: none; }
.video-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.video-item.active { background: rgba(206,244,248,0.16); color: var(--aura); }
.video-item-thumb { background: rgba(255,255,255,.08); border-radius: 7px; flex: 0 0 76px; height: 43px; overflow: hidden; position: relative; }
.video-item-thumb::after { color: #fff; content: "▶"; font-size: .62rem; left: 50%; opacity: .92; position: absolute; text-shadow: 0 1px 4px rgba(0,0,0,.7); top: 50%; transform: translate(-50%,-50%); }
.video-item-thumb img { display: block; height: 100%; object-fit: cover; opacity: .86; transition: opacity .16s ease, transform .16s ease; width: 100%; }
.video-item:hover .video-item-thumb img, .video-item.active .video-item-thumb img { opacity: 1; transform: scale(1.04); }
.video-item-body { flex: 1; }
.video-item-body strong { display: block; font-size: 13px; font-weight: 700; }
.video-item-body small { font-size: 11px; opacity: .65; }
.video-item-arrow { font-size: .9rem; opacity: .62; }

.worksheets-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow: hidden;
}

.worksheets-intro {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.worksheets-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  scrollbar-color: rgba(213,166,66,0.38) rgba(48,50,58,0.06);
  scrollbar-width: thin;
}

.worksheet-card {
  align-items: center;
  background: #fff;
  border: 1.5px solid #eadfe4;
  border-radius: 12px;
  color: var(--ink);
  display: flex;
  gap: 14px;
  padding: 12px 16px;
  text-decoration: none;
  transition: border-color 150ms, box-shadow 150ms, transform 150ms;
}

.worksheet-card:hover {
  border-color: var(--amber);
  box-shadow: 0 4px 18px rgba(213,166,66,0.16);
  transform: translateX(3px);
}

.ws-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.ws-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ws-body strong {
  font-size: 0.92rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-body small {
  color: var(--muted);
  font-size: 0.78rem;
}

.ws-grade {
  background: #FDF0D7;
  border-radius: 6px;
  color: var(--muted);
  flex-shrink: 0;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px;
}

.ws-arrow {
  color: var(--amber);
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 700;
}

/* ── FOOTER SOCIAL ── */
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  grid-column: 1 / -1;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  border-top: 1px solid #30323a;
  padding-top: 20px;
  margin-top: 4px;
}

.footer-social-link {
  align-items: center;
  border-radius: 8px;
  color: #6d7079;
  display: flex;
  font-size: 0.83rem;
  font-weight: 700;
  gap: 6px;
  padding: 6px 12px;
  text-decoration: none;
  transition: background 130ms, color 130ms;
}

.footer-social-link:hover { background: rgba(255,255,255,0.08); color: #eadfe4; }

/* ── CMS BAND ── */
.cms-band {
  align-items: center;
  background: linear-gradient(135deg, var(--violet), var(--aura));
  color: var(--ink);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
}

.cms-band .eyebrow { color: var(--teal); }
.cms-band h2 { color: var(--ink); }
.cms-band p { color: rgba(48,50,58,0.7); margin-top: 12px; }

.cms-preview {
  background: #fff;
  border-radius: var(--r);
  color: var(--ink);
  display: grid;
  gap: 8px;
  padding: 16px;
}

.cms-preview div {
  align-items: center;
  background: #fffaf8;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 11px 14px;
}

.cms-preview span { color: var(--muted); font-weight: 800; }

/* ── FOOTER ── */
.footer {
  align-items: center;
  background: #fffaf8;
  border-top: 1px solid rgba(234,223,228,0.95);
  color: var(--ink);
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr auto 1fr;
  min-height: 71px;
  /* Alt barın iki dış sınırı, ana sayfadaki 1240px'lik kart alanıyla eşleşir. */
  padding: 13px max(16px, calc((100vw - 1240px) / 2));
}

.footer-note {
  color: rgba(48,50,58,.64);
  font-size: .82rem;
  justify-self: end;
  text-align: right;
}

/* ── BAĞIMSIZ İÇERİK SAYFALARI ── */
.utility-main {
  min-height: calc(100vh - 160px);
  padding: clamp(44px, 7vw, 86px) clamp(16px, 5vw, 78px);
}

.utility-hero {
  margin: 0 auto 36px;
  max-width: 980px;
}

.utility-hero h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
  margin: 8px 0 16px;
}

.utility-hero p { color: var(--muted); max-width: 720px; }

.utility-shell { margin: 0 auto; max-width: 980px; }

.utility-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.policy-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 4vw, 36px);
}

.policy-card h2 { font-size: 1.55rem; margin-bottom: 12px; }
.policy-card h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.policy-card p, .policy-card li { color: #555963; font-size: 1rem; line-height: 1.7; }
.policy-card ul { margin: 8px 0 0; padding-left: 20px; }
.policy-card a { color: #a74668; font-weight: 800; }

.facilitators-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.standalone-practice { padding-top: clamp(34px, 5vw, 64px); }

.footer-brand { align-items: center; display: flex; gap: 10px; }
.footer .brand-mark.small { border-radius: 10px; height: 44px; width: 44px; }
.footer-brand strong { color: var(--ink); display: block; font-family: "Nunito", sans-serif; font-size: 1.05rem; }
.footer-brand span { color: var(--muted); font-size: 0.84rem; display: block; margin-top: 1px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; }

.footer-links a {
  border-radius: 7px;
  color: rgba(48,50,58,.74);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 6px 10px;
  transition: background 120ms, color 120ms;
}

.footer-links a:hover { background: rgba(255,255,255,0.5); color: var(--ink); }

.footer-math {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.footer-math span {
  color: rgba(255,255,255,0.32);
  font-family: "Nunito", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .multiplication-shell { grid-template-columns: 1fr; }
  .quick-labs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-grid   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workshop-layout { grid-template-columns: 1fr; }
  .geo-showcase { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .materials-layout { grid-template-columns: 1fr; }
  .planner-layout { grid-template-columns: 1fr; }
  .pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .section { scroll-margin-top: 128px; }
  h1 { font-size: 3.6rem; }
  h2 { font-size: 2.6rem; }
  h3 { font-size: 1.7rem; }

  .hero, .split, .studio-layout, .content-import, .cms-band, .daily-challenge {
    grid-template-columns: 1fr;
  }

  .class-grid, .import-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: auto; }
  .hero-portrait { order: -1; }
  .hero-portrait img { max-height: 400px; }
  .nav-cta { display: none; }
  .topbar { flex-wrap: wrap; }
  .topnav { flex-basis: 100%; order: 3; justify-content: flex-start; overflow-x: auto; padding-top: 4px; scrollbar-width: none; }
  .topnav::-webkit-scrollbar { display: none; }

  .stats-band { flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }

  .about-layout { grid-template-columns: 1fr; }
  .about-photo-col { flex-direction: row; align-items: center; gap: 24px; flex-wrap: wrap; }
  .about-photo-wrap { width: 160px; height: 160px; }
  .about-social { flex-direction: row; flex-wrap: wrap; }
  .about-text h2 { font-size: 2rem; }
  .section .section-title h2 { font-size: 2rem; }

  .footer { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-math { align-items: center; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-social { justify-content: center; }
  .footer-note { justify-self: center; text-align: center; }
}

@media (max-width: 680px) {
  .quick-labs-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.7rem; }
  h2 { font-size: 2.1rem; }
  h3 { font-size: 1.45rem; }

  .topbar, .section-title { align-items: flex-start; flex-direction: column; }
  .topnav { width: 100%; }
  .materials-menu { width: 100%; }
  .materials-menu summary { justify-content: center; width: 100%; }
  .materials-dropdown { left: 0; min-width: 0; right: auto; width: min(320px, 100%); }

  .hero { gap: 26px; padding-top: 28px; text-align: left; }
  .hero-script { font-size: 3.35rem; }
  .hero h1 { font-size: 2.45rem; }
  .hero-tagline { font-size: 1.75rem; margin-top: 22px; }
  .hero-start { align-items: stretch; flex-direction: column; }
  .hero-start .hero-tagline { margin-top: 0; }
  .hero-start-btn { width: 100%; }
  .hero-portrait img { max-height: 330px; }
  .hero-promise-grid { grid-template-columns: 1fr; }

  .class-grid, .import-grid, .answer-grid, .games-grid, .how-grid, .geo-showcase, .blog-grid, .topics-grid {
    grid-template-columns: 1fr;
  }

  .utility-grid, .facilitators-grid { grid-template-columns: 1fr; }

  .practice-modes { grid-template-columns: 1fr; }
  .practice-insights { grid-template-columns: 1fr; }
  .factor-picker-grid { grid-template-columns: repeat(5, 1fr); }
  .practice-board { min-height: 480px; padding: 20px 16px; }
  .practice-board-top { align-items: flex-start; flex-direction: column; }
  .multiplication-equation { font-size: clamp(2.75rem, 14vw, 4rem); }

  .about-photo-col { flex-direction: column; }
  .about-photo-wrap { width: 180px; height: 180px; }
  .about-social { flex-direction: column; }

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

  .hero-actions, .hero-badge-row { align-items: stretch; flex-direction: column; }
  .button, .hero-badge-row span { width: 100%; }
  .game-footer { align-items: stretch; flex-direction: column; }
  .game-play-btn { width: 100%; }
  .back-to-top { bottom: 16px; font-size: 1.25rem; height: 46px; right: 16px; width: 46px; }

  .activity-head, .board-head, .board-foot { align-items: flex-start; flex-direction: column; }
  .cms-preview div { align-items: flex-start; flex-direction: column; gap: 4px; }

  .level-display { flex-wrap: wrap; }
  .workshop-frame { height: 400px; }
  .daily-challenge h2 { font-size: 1.85rem; }
  .geo-showcase { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 420px) {
  .topbar, .hero, .section, .footer { padding-left: 14px; padding-right: 14px; }
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.9rem; }
  .section { overflow: hidden; }
  .game-card-icon { font-size: 4rem; right: 10px; }
  .youtube-wrap,
  .worksheets-col { max-width: calc(100vw - 28px); min-width: 0; }

}

/* Alt bar yalnızca ana sayfada gösterilir. */
body:not(.home-page) .footer { display: none !important; }

/* ── ORTAK KART SİSTEMİ ─────────────────────────
   Ana sayfadaki farklı içerik türlerini tek bir görsel ailede toplar. */
:root {
  --card-radius: 16px;
  --card-border: rgba(234, 223, 228, .96);
  --card-shadow: 0 10px 28px rgba(48, 50, 58, .07);
  --card-shadow-hover: 0 18px 38px rgba(48, 50, 58, .12);
}

.section > .section-title,
.section > .topics-grid,
.section > .class-grid,
.section > .games-grid,
.section > .blog-grid {
  margin-left: auto;
  margin-right: auto;
  max-width: 1240px;
}

/* "Nasıl Çalışır?" bölümü de ana sayfadaki ortak içerik genişliğini kullanır. */
.about-how-section .about-how {
  margin-left: auto;
  margin-right: auto;
  max-width: 1240px;
}

.section > .section-title { margin-bottom: 30px; }

.topic-card,
.class-card,
.how-card,
.blog-card {
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.topic-card,
.class-card,
.how-card,
.blog-card,
.game-card {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.topic-card:hover,
.class-card:hover,
.how-card:hover,
.blog-card:hover,
.game-card:hover {
  box-shadow: var(--card-shadow-hover);
}

/* Konu kartlarında renk, tüm kartı kaplamak yerine yönlendirici bir vurgu olur. */
.topic-card {
  --topic-accent: var(--aura);
  align-items: flex-start;
  background: rgba(255, 255, 255, .92);
  gap: 10px;
  min-height: 209px;
  padding: 20px;
  text-align: left;
}

.topic-card::before { display: none; }
.tc-1 {
  --topic-accent: var(--aura);
  align-items: center;
  background: rgba(255,255,255,.92);
  display: grid;
  grid-template-rows: 1fr auto;
  justify-content: center;
  text-align: center;
}

.topic-card-main {
  align-items: center;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

.topic-card--illustrated {
  align-items: center;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-content: center;
  text-align: center;
}

.tc-2 { --topic-accent: var(--mint); background: rgba(255,255,255,.92); }
.tc-3 { --topic-accent: var(--violet); background: rgba(255,255,255,.92); }
.tc-4 { --topic-accent: var(--pink); background: rgba(255,255,255,.92); }
.tc-5 { --topic-accent: var(--derby); background: rgba(255,255,255,.92); }
.tc-6 { --topic-accent: #e7d6b9; background: rgba(255,255,255,.92); }

.topic-icon {
  align-items: center;
  background: color-mix(in srgb, var(--topic-accent) 68%, white);
  border-radius: 12px;
  display: inline-flex;
  font-size: 1.7rem;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.topic-icon.topic-illustration {
  align-self: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  height: 64px;
  margin: -8px auto -8px;
  overflow: visible;
  width: 64px;
}

.topic-icon.topic-illustration img {
  display: block;
  height: 76px;
  max-width: none;
  object-fit: contain;
  width: 76px;
}

.tc-3 .topic-icon.topic-illustration {
  transform: translateY(-8px);
}

.tc-4 .topic-icon.topic-illustration {
  transform: translateY(-7px);
}

.tc-6 .topic-icon.topic-illustration {
  transform: translateY(-5px);
}

.topic-card strong { font-size: 1.08rem; }
.topic-sub { color: var(--muted); }
.topic-count {
  align-items: center;
  background: color-mix(in srgb, var(--topic-accent) 44%, white);
  box-sizing: border-box;
  color: rgba(48,50,58,.76);
  display: inline-flex;
  font-size: .74rem;
  justify-content: center;
  justify-self: center;
  margin-top: auto;
  min-height: 26px;
  width: 78px;
}


.class-card {
  align-content: center;
  align-items: center;
  background: linear-gradient(145deg, var(--surface) 62%, color-mix(in srgb, var(--grade-color, var(--aura)) 34%, white));
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  justify-content: center;
  justify-items: center;
  min-height: 209px;
  padding: 18px;
  text-align: center;
}

.class-card::after { display: block; opacity: 1; }

.class-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.class-card h3 {
  font-size: 1.35rem;
  line-height: 1.12;
  margin: 0;
}

.class-card .class-action {
  align-self: auto;
  margin-top: 8px;
}

.game-card {
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.game-card-body {
  border-color: var(--card-border);
  border-bottom-left-radius: var(--card-radius);
  border-bottom-right-radius: var(--card-radius);
}

.how-card { background: rgba(255,255,255,.88); }
