/* Okul Bahçem ortak görünümü: açılış, sınıf ve iletişim sayfaları.
 * Renkler --ob-* değişkenlerinde; koyu tema <html data-theme="dark"> ile gelir (landing/tema.js cihaz
 * ayarını izler, elle seçileni hatırlar). Oyunlar bu dosyayı yüklemez.
 * Kurallar: turuncu yalnızca eylem (Oyna, Bahçeye gir); her sınıfın tek rengi (.g1–.g4);
 * dokunma hedefi en az 44 px; metin kontrastı en az 4.5:1. */

:root {
  --ob-bg: #fbf7ef;
  --ob-surface: #ffffff;
  --ob-surface-2: #f4eee3;
  --ob-line: #e8dfcf;
  --ob-text: #2b2620;
  --ob-soft: #675d53;
  --ob-brand: #2e6b3a;
  --ob-brand-soft: #e3f1e0;
  --ob-primary: #d4581a;
  --ob-primary-edge: #a9430f;
  --ob-on-primary: #ffffff;
  --ob-primary-text: #b04a12;
  --ob-link: #2f6fa0;
  --ob-focus: #3e8fc9;
  --ob-deco: #e2d3b8;
  --ob-leaf: #5fae62;
  --ob-leaf-dark: #3f8a4a;
  --ob-star: #e0a91c;
  --ob-error: #b5452f;
  --ob-shadow: 0 1px 2px rgba(70, 50, 25, 0.06), 0 8px 24px rgba(70, 50, 25, 0.07);
  --ob-shadow-lift: 0 2px 4px rgba(70, 50, 25, 0.08), 0 14px 32px rgba(70, 50, 25, 0.12);
  --ob-glass: rgba(255, 255, 255, 0.88);

  --ob-g1: #f2b630;
  --ob-g1-soft: #fff2cc;
  --ob-g1-ink: #7a4e00;
  --ob-g2: #e5708f;
  --ob-g2-soft: #fde3ea;
  --ob-g2-ink: #9c2f4d;
  --ob-g3: #3e8fc9;
  --ob-g3-soft: #dceef9;
  --ob-g3-ink: #1d5c8a;
  --ob-g4: #8e6cc8;
  --ob-g4-soft: #ece4f8;
  --ob-g4-ink: #5a3d91;

  --ob-font: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ob-font-letter: "Andika", "Nunito", "Segoe UI", system-ui, sans-serif;
  --ob-wrap: 1200px;
  --ob-gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ob-bg: #0f1522;
  --ob-surface: #172033;
  --ob-surface-2: #131b2b;
  --ob-line: #26324a;
  --ob-text: #eef1f8;
  --ob-soft: #a9b3c7;
  --ob-brand: #9ad69a;
  --ob-brand-soft: #1b2940;
  --ob-primary: #f2894a;
  --ob-primary-edge: #b95e26;
  --ob-on-primary: #231208;
  --ob-primary-text: #f2894a;
  --ob-link: #8cc4f0;
  --ob-focus: #8cc4f0;
  --ob-deco: #2e3d5e;
  --ob-leaf: #3f8f5e;
  --ob-leaf-dark: #2a6a45;
  --ob-star: #ffd772;
  --ob-error: #ff9a85;
  --ob-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.3);
  --ob-shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.45), 0 16px 36px rgba(0, 0, 0, 0.4);
  --ob-glass: rgba(15, 21, 34, 0.82);

  --ob-g1: #f2c14e;
  --ob-g1-soft: #3d2e14;
  --ob-g1-ink: #ffd772;
  --ob-g2: #f08aa6;
  --ob-g2-soft: #3a2029;
  --ob-g2-ink: #ffa9c0;
  --ob-g3: #6cb4e8;
  --ob-g3-soft: #172e3f;
  --ob-g3-ink: #93cdf5;
  --ob-g4: #b39ae8;
  --ob-g4-soft: #2a2340;
  --ob-g4-ink: #cbb8f5;
  color-scheme: dark;
}

.g1 { --g: var(--ob-g1); --g-soft: var(--ob-g1-soft); --g-ink: var(--ob-g1-ink); }
.g2 { --g: var(--ob-g2); --g-soft: var(--ob-g2-soft); --g-ink: var(--ob-g2-ink); }
.g3 { --g: var(--ob-g3); --g-soft: var(--ob-g3-soft); --g-ink: var(--ob-g3-ink); }
.g4 { --g: var(--ob-g4); --g-soft: var(--ob-g4-soft); --g-ink: var(--ob-g4-ink); }

/* ---------- Temel ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--ob-bg);
  -webkit-text-size-adjust: 100%;
  /* Yapışkan üst menü bağlantı hedeflerinin üstünü örtmesin */
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--ob-bg);
  color: var(--ob-text);
  font: 600 1.0625rem/1.55 var(--ob-font);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
}
:focus-visible {
  outline: 3px solid var(--ob-focus);
  outline-offset: 3px;
  border-radius: 8px;
}
.wrap {
  width: 100%;
  max-width: calc(var(--ob-wrap) + 2 * var(--ob-gutter));
  margin-inline: auto;
  padding-inline: var(--ob-gutter);
}
@media (min-width: 900px) {
  :root {
    --ob-gutter: 32px;
  }
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico--fill {
  fill: currentColor;
  stroke: none;
}

/* ---------- Üst menü ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--ob-line);
  background: var(--ob-glass);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  padding-top: env(safe-area-inset-top);
}
.nav__in {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  min-height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
  text-decoration: none;
  color: var(--ob-text);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ob-brand);
  color: var(--ob-bg);
}
.logo__mark .ico {
  width: 22px;
  height: 22px;
  stroke-width: 2.3;
}
.nav__links {
  display: flex;
  gap: 2px;
  margin-right: auto;
}
.nav__links a,
.nav__menu-list a,
.nav__menu-list button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ob-text);
  font-weight: 800;
  font-size: 1rem;
}
.nav__links a:hover {
  background: var(--ob-surface-2);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 12px 0 4px;
  margin-right: auto;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ob-text);
  font-weight: 800;
}
.back .ico {
  width: 22px;
  height: 22px;
  stroke-width: 2.4;
}
.back:hover {
  background: var(--ob-surface-2);
}

/* Telefonda menü: <details> açılır listesi (betik gerekmez) */
.nav__menu {
  position: relative;
}
.nav__menu > summary {
  list-style: none;
}
.nav__menu > summary::-webkit-details-marker {
  display: none;
}
.nav__menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  gap: 2px;
  min-width: 230px;
  padding: 8px;
  border: 1px solid var(--ob-line);
  border-radius: 18px;
  background: var(--ob-surface);
  box-shadow: var(--ob-shadow-lift);
}
.nav__menu-list button {
  width: 100%;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}
.nav__menu-list a:hover,
.nav__menu-list button:hover {
  background: var(--ob-surface-2);
}
@media (min-width: 900px) {
  .nav__menu {
    display: none;
  }
}
@media (max-width: 899px) {
  .nav__links,
  .nav__wide {
    display: none !important;
  }
}

/* ---------- Düğmeler ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 16px;
  font: 900 1.0625rem/1.2 var(--ob-font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease;
}
.btn .ico {
  stroke-width: 2.6;
}
.btn--primary {
  background: var(--ob-primary);
  color: var(--ob-on-primary);
  box-shadow: 0 4px 0 var(--ob-primary-edge);
}
.btn--primary:hover {
  filter: brightness(1.05);
}
.btn--primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ob-primary-edge);
}
.btn--secondary {
  border-color: var(--ob-line);
  background: var(--ob-surface);
  color: var(--ob-text);
}
.btn--secondary:hover {
  background: var(--ob-surface-2);
}
.btn--ghost {
  background: transparent;
  color: var(--ob-soft);
  font-weight: 800;
  font-size: 1rem;
}
.btn--ghost:hover {
  background: var(--ob-surface-2);
  color: var(--ob-text);
}
.btn--lg {
  min-height: 58px;
  padding: 0 28px;
  border-radius: 18px;
  font-size: 1.1875rem;
}
.btn--sm {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 1rem;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ob-line);
  border-radius: 12px;
  background: var(--ob-surface);
  color: var(--ob-text);
  cursor: pointer;
}
.icon-btn:hover {
  background: var(--ob-surface-2);
}
/* Tema düğmesi: açıkta ay, koyuda güneş */
.icon-btn .ico-sun,
:root[data-theme="dark"] .icon-btn .ico-moon {
  display: none;
}
:root[data-theme="dark"] .icon-btn .ico-sun {
  display: block;
}

/* ---------- Ortak parçalar ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--ob-brand-soft);
  color: var(--ob-brand);
  font-weight: 800;
  font-size: 0.875rem;
}
.chip .ico {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}
.tag {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--ob-surface-2);
  color: var(--ob-soft);
  font-size: 0.8125rem;
  font-weight: 800;
  white-space: nowrap;
}
.badge {
  align-self: flex-start;
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--g-soft, var(--ob-surface-2));
  color: var(--g-ink, var(--ob-soft));
  font-size: 0.8125rem;
  font-weight: 900;
}
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 24px;
}
.sec-head h2 {
  margin: 0;
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.sec-head p {
  margin: 6px 0 0;
  max-width: 56ch;
  color: var(--ob-soft);
}

/* ---------- Hareketli arka plan: tohum sıraları, süzülen yapraklar; gece yıldız ve ateş böcekleri ---------- */

.decor-zone {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.decor__rows {
  position: absolute;
  left: 0;
  width: 100%;
  height: 70px;
  overflow: visible;
}
.decor__rows path {
  fill: none;
  stroke: var(--ob-deco);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1 14;
  vector-effect: non-scaling-stroke;
  animation: ob-flow 9s linear infinite;
}
.decor__rows path + path {
  animation-duration: 12s;
  animation-direction: reverse;
}
@keyframes ob-flow {
  to {
    stroke-dashoffset: -150;
  }
}
.decor__i {
  position: absolute;
  left: var(--l);
  top: var(--t);
  animation: ob-drift var(--d, 18s) ease-in-out infinite;
  animation-delay: var(--w, 0s);
}
@keyframes ob-drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(-20deg);
  }
  33% {
    transform: translate(34px, 70px) rotate(25deg);
  }
  66% {
    transform: translate(-8px, 140px) rotate(-8deg);
  }
}
.decor__leaf {
  width: 24px;
  height: 13px;
  border-radius: 0 100% 0 100%;
  background: var(--ob-leaf);
  opacity: 0.5;
}
.decor__leaf--dark {
  background: var(--ob-leaf-dark);
}
.decor__petal {
  width: 14px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, #f5a3b8);
  opacity: 0.85;
}
.decor__star,
.decor__fly {
  display: none;
}
.decor__star {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f6e7b0;
  animation: ob-twinkle var(--d, 3.5s) ease-in-out infinite;
  animation-delay: var(--w, 0s);
}
@keyframes ob-twinkle {
  0%,
  100% {
    opacity: 0.15;
  }
  50% {
    opacity: 1;
  }
}
.decor__fly {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffe58a;
  box-shadow: 0 0 10px 4px rgba(255, 229, 138, 0.35);
  animation: ob-drift var(--d, 13s) ease-in-out infinite, ob-twinkle 2.6s ease-in-out infinite;
}
:root[data-theme="dark"] .decor__leaf,
:root[data-theme="dark"] .decor__petal {
  display: none;
}
:root[data-theme="dark"] .decor__star,
:root[data-theme="dark"] .decor__fly {
  display: block;
}

/* Nokta dokulu bant */
.dotted {
  background-color: var(--ob-surface-2);
  background-image: radial-gradient(var(--ob-deco) 1.5px, transparent 1.7px);
  background-size: 26px 26px;
  border-block: 1px solid var(--ob-line);
}

/* ---------- Eğitsel (macera) oyun kartları: build-landing.mjs merkezi kayıttan yazar ---------- */

.adv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}
.adv {
  /* Konumlu: içindeki görünmez ekran okuyucu metni yana kayan şeridin dışına taşıp sayfayı genişletmesin */
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ob-line);
  border-radius: 24px;
  background: var(--ob-surface);
  box-shadow: var(--ob-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.adv:hover {
  transform: translateY(-3px);
  box-shadow: var(--ob-shadow-lift);
}
.adv[hidden] {
  display: none;
}
.adv__cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ob-surface-2);
}
.adv__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  padding: 16px 20px 20px;
}
.adv h3 {
  margin: 0;
  font-size: 1.375rem;
  line-height: 1.2;
  font-weight: 900;
}
.adv__desc {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ob-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.adv__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}
.adv__info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--ob-soft);
}
.adv__bar {
  flex: 1 1 auto;
  max-width: 120px;
  height: 8px;
  border-radius: 999px;
  background: var(--ob-surface-2);
  overflow: hidden;
}
.adv__bar > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--g, var(--ob-leaf));
}
.adv__stars {
  white-space: nowrap;
}
.adv__stars b {
  color: var(--ob-star);
}
.adv--soon .adv__cover {
  filter: grayscale(0.6);
  opacity: 0.7;
}
.adv__soon {
  font-weight: 800;
  color: var(--ob-soft);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ob-line);
  border-radius: 999px;
  background: var(--ob-surface);
  color: var(--ob-text);
  font: 800 0.9375rem var(--ob-font);
  cursor: pointer;
}
.filter[aria-pressed="true"] {
  border-color: var(--ob-text);
  background: var(--ob-text);
  color: var(--ob-bg);
}
/* Telefonda: ana sayfada yana kayan kartlar, sınıf sayfasında kısa satırlar */
@media (max-width: 640px) {
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(-1 * var(--ob-gutter));
    padding-inline: var(--ob-gutter);
    scrollbar-width: none;
  }
  .filter {
    flex: none;
  }
  .adv-list--rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--ob-gutter));
    padding: 4px var(--ob-gutter) 12px;
    scroll-padding-inline: var(--ob-gutter);
    scrollbar-width: none;
  }
  .adv-list--rail > .adv {
    flex: 0 0 min(82%, 300px);
    scroll-snap-align: start;
  }
  .adv-list--rail .adv:hover {
    transform: none;
  }
  .adv-list--rows {
    gap: 10px;
  }
  .adv-list--rows .adv {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
  }
  .adv-list--rows .adv__cover {
    flex: 0 0 104px;
    width: 104px;
    border-radius: 12px;
  }
  .adv-list--rows .adv__body {
    padding: 0;
    gap: 2px;
  }
  .adv-list--rows .adv h3 {
    font-size: 1.0625rem;
  }
  .adv-list--rows .adv__desc,
  .adv-list--rows .badge,
  .adv-list--rows .adv__bar {
    display: none;
  }
  .adv-list--rows .adv__foot {
    padding: 0;
  }
  /* Satırın tamamı dokunulabilir; sağda yuvarlak oynat düğmesi */
  .adv-list--rows .adv__play {
    position: static;
    flex: none;
    width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 999px;
  }
  .adv-list--rows .adv__play [data-oyna] {
    display: none;
  }
  .adv-list--rows .adv__play::after {
    content: "";
    position: absolute;
    inset: 0;
  }
  .adv-list--rows .adv__info {
    gap: 8px;
  }
}

/* ---------- Sınıf sayfaları (/2-sinif/, /3-sinif/, /4-sinif/) ---------- */

.grade-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 20px;
  padding: 28px clamp(20px, 4vw, 44px);
  border-radius: 28px;
  background: var(--g-soft);
}
/* Bantta tek, alçak bir sıra: yazının üstünden geçmesin */
.grade-hero .decor__rows {
  height: 26px;
}
.grade-hero .decor__rows path {
  stroke: var(--g);
  opacity: 0.4;
}
.grade-hero .decor__rows path + path {
  display: none;
}
.grade-hero__text {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.grade-hero__num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--g-ink);
  font-weight: 900;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
}
.grade-hero__num b {
  font-family: var(--ob-font-letter);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: 0;
}
.grade-hero h1 {
  margin: 0;
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.grade-hero p {
  margin: 0;
  max-width: 44ch;
  color: var(--ob-soft);
}
.grade-hero__art {
  flex: 0 1 380px;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin-inline: auto;
}
/* Başlık çiziminin çimeni ve toprağı gece tonunda */
:root[data-theme="dark"] .grade-hero__art [fill="#a8d98a"] { fill: #2a5a3e; }
:root[data-theme="dark"] .grade-hero__art [fill="#c99a6b"] { fill: #4a3a36; }

.subjects-sec,
.games-sec {
  padding-top: 40px;
}
.subjects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}
.subject {
  height: 100%;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "icon text"
    "desc desc"
    "foot foot";
  gap: 12px 14px;
  padding: 18px;
  border: 1px solid var(--ob-line);
  border-radius: 22px;
  background: var(--ob-surface);
  box-shadow: var(--ob-shadow);
  color: var(--ob-text);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.subject:hover {
  transform: translateY(-2px);
  box-shadow: var(--ob-shadow-lift);
}
.subject__icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--g-soft);
  color: var(--g-ink);
}
.subject__icon .ico {
  width: 26px;
  height: 26px;
}
.subject__text {
  grid-area: text;
  align-self: center;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.subject h3 {
  margin: 0;
  font-size: 1.1875rem;
  line-height: 1.2;
  font-weight: 900;
}
.subject__meta {
  font-size: 0.875rem;
  color: var(--ob-soft);
}
.subject__desc {
  grid-area: desc;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ob-soft);
}
.subject__foot {
  grid-area: foot;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--ob-soft);
}
.subject__bar {
  flex: 1 1 auto;
  height: 8px;
  border-radius: 999px;
  background: var(--ob-surface-2);
  overflow: hidden;
}
.subject__bar > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--g);
}
.subject__done:empty {
  display: none;
}
.subject__go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ob-primary-text);
  font-size: 0.9375rem;
  font-weight: 900;
  white-space: nowrap;
}
.subject__go .ico {
  width: 18px;
  height: 18px;
  stroke-width: 2.6;
}
.note {
  margin: 40px auto 56px;
  max-width: 68ch;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--ob-surface-2);
  font-size: 0.9375rem;
  color: var(--ob-soft);
}
@media (max-width: 640px) {
  .subjects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .subjects > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .subject {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "icon"
      "text"
      "foot";
    gap: 8px;
    padding: 14px;
    border-radius: 20px;
  }
  .subject__icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }
  .subject__icon .ico {
    width: 22px;
    height: 22px;
  }
  .subject h3 {
    font-size: 1.0625rem;
  }
  .subject__meta {
    font-size: 0.8125rem;
  }
  .subject__desc,
  .subject__go {
    display: none;
  }
  .grade-hero {
    margin-top: 16px;
    padding: 20px;
    border-radius: 24px;
  }
  .grade-hero__art {
    max-width: 260px;
  }
  .subjects-sec,
  .games-sec {
    padding-top: 28px;
  }
  .note {
    margin: 28px 0 40px;
  }
}

/* ---------- Alt bilgi ---------- */

.foot {
  margin-top: 0;
  border-top: 1px solid var(--ob-line);
  background: var(--ob-surface);
  color: var(--ob-soft);
  font-size: 0.9375rem;
}
.foot__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  padding-block: 44px 36px;
}
.foot__about {
  flex: 2 1 320px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.foot__about .logo {
  font-size: 1.125rem;
}
.foot__about .logo__mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
.foot__about p {
  margin: 0;
  max-width: 56ch;
}
.foot__col {
  flex: 1 1 180px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.foot__col h2 {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ob-soft);
}
.foot__col a {
  color: var(--ob-text);
  text-decoration: none;
  padding: 3px 0;
}
.foot__col a:hover {
  text-decoration: underline;
}
.foot .sa-foot {
  flex: 1 1 100%;
  padding-top: 20px;
  border-top: 1px solid var(--ob-line);
}

/* ---------- Hareketi azalt ---------- */

@media (prefers-reduced-motion: reduce) {
  .decor__rows path,
  .decor__i,
  .decor__star,
  .decor__fly {
    animation: none !important;
  }
  .btn,
  .adv,
  body {
    transition: none;
  }
}
