:root {
  color-scheme: light;
  --ink: #0d1247;
  --muted: #61698c;
  --purple: #763aff;
  --border: #e4e5ee;
  --tile-ratio: 1;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}

* { box-sizing: border-box; }
.site-header nav { flex-wrap:wrap; justify-content:center; }
.game-grid.worksheet-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.worksheet-card { padding:24px; }
.worksheet-badge { background:#eee4ff;color:#6230bf;border-radius:12px;padding:18px;width:72px;text-align:center;font-weight:800; }
.worksheet-actions { display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:auto; }
.worksheet-actions a { font-size:16px; }
@media(max-width:640px) { .game-grid.worksheet-grid { grid-template-columns:1fr; } .worksheet-card { padding:20px; } }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 78% 16%, #f3edff80, transparent 38%),
    linear-gradient(#fff, #fdfcfe);
}

button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
svg { display: block; }
img { max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid #4520bf;
  outline-offset: 4px;
}

.container {
  width: min(1320px, calc(100% - 80px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 14px 20px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  background: #ffffffeb;
  border-bottom: 1px solid #f1eff7;
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon { width: 64px; height: 64px; }
.brand strong {
  display: block;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: 1px;
  font-weight: 850;
}
.brand small { display: block; margin-top: 3px; font-size: 12px; }

nav { display: flex; align-items: center; gap: 8px; }
nav a {
  padding: 11px 17px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
nav a:hover, nav .home-link { background: #eee4ff; }

.hero {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  min-height: 438px;
  align-items: center;
  position: relative;
}

.hero-copy { position: relative; z-index: 2; padding: 32px 0; }
.eyebrow {
  display: inline-block;
  padding: 10px 22px;
  margin: 0 0 18px;
  background: linear-gradient(110deg, #e9dbff, #f1eaff);
  border-radius: 30px;
  font-size: 13px;
  letter-spacing: 1.5px;
  font-weight: 650;
}

h1 {
  font-size: clamp(40px, 4.7vw, 66px);
  line-height: 1.04;
  letter-spacing: -2.8px;
  margin: 0 0 16px;
  font-weight: 850;
}

.hero-description {
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.5;
  margin: 0 0 22px;
  max-width: 570px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 14px 30px;
  border: 1px solid #9365ff;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #8c4cff, #7131f6);
  box-shadow: 0 7px 20px #7936f52b, inset 0 1px 1px #ffffff70;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}
.primary-button:hover { background: #6020e5; }
.primary-button span { font-size: 26px; line-height: 1; }

.hero-note {
  color: var(--muted);
  margin: 20px 0 0;
  font-size: 15px;
  font-style: italic;
}

.hero-visual {
  align-self: stretch;
  position: relative;
  min-width: 0;
  isolation: isolate;
}

.portrait-backdrop {
  position: absolute;
  inset: 14px 11% 0 7%;
  z-index: -2;
  border-radius: 48% 48% 0 0;
  background: linear-gradient(130deg, #e4d9ff, #c4adff);
}

.portrait {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  z-index: 1;
}

.hero-planet {
  position: absolute;
  width: 132px;
  height: 132px;
  left: -3%;
  top: 35px;
  transform: rotate(-15deg);
}

.hero-atom {
  position: absolute;
  width: 125px;
  height: 145px;
  right: -1%;
  top: 30px;
  color: #7045df;
  transform: rotate(12deg);
}

.hero-leaf {
  position: absolute;
  width: 135px;
  height: 150px;
  bottom: 36px;
  left: -8%;
  opacity: .65;
  transform: rotate(-25deg);
}

.spark {
  position: absolute;
  width: 26px;
  height: 38px;
  background: linear-gradient(#fff6b3, #ffcb47);
  clip-path: polygon(50% 0, 64% 35%, 100% 50%, 64% 64%,
                     50% 100%, 36% 64%, 0 50%, 36% 35%);
}
.spark-one { right: 25%; top: 56px; }
.spark-two { left: 9%; bottom: 130px; width: 15px; height: 24px; }

.name-card {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 330px;
  padding: 16px 18px;
  background: #ffffffed;
  border: 1px solid #fff;
  border-radius: 18px;
  box-shadow: 0 10px 35px #25234a10;
}
.name-card strong { display: block; font-size: 17px; }
.name-card div > span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
}
.name-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e8deff;
}
.name-icon svg { width: 29px; height: 29px; }

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

.class-card {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 124px;
  padding: 12px 16px 12px 10px;
  text-align: left;
  color: var(--ink);
  border: 0;
  border-radius: 17px;
  box-shadow: 0 8px 24px #19255408;
  transition: transform .15s ease, box-shadow .15s ease;
}
.class-card:hover { transform: translateY(-3px); }
.class-card[aria-pressed="true"] {
  outline: 3px solid #8143ff;
  outline-offset: 3px;
}
.class-card:focus-visible {
  outline: 4px solid #121b56;
  outline-offset: 6px;
}
.grade-five { background: linear-gradient(125deg, #83e9dc, #a5f0e6); }
.grade-six { background: linear-gradient(125deg, #b899ff, #8550f3); color: #fff; }
.grade-seven { background: linear-gradient(125deg, #ffe2a2, #ffcb7e); }
.grade-eight { background: linear-gradient(125deg, #a9d8ff, #94caff); }

.class-art { width: 88px; height: 94px; flex-shrink: 0; }
.class-copy { min-width: 0; }
.class-copy strong {
  display: block;
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 800;
  white-space: nowrap;
}
.class-copy small { display: block; margin-top: 4px; font-size: 12px; }
.class-arrow {
  display: grid;
  place-items: center;
  margin-left: auto;
  padding-bottom: 3px;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ffffffdc;
  color: #5d26d2;
  font-size: 32px;
}

.materials { padding-bottom: 30px; }
.materials-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  margin-bottom: 8px;
}
.materials h2 {
  margin: 0;
  font-size: clamp(25px, 2.7vw, 37px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.9px;
}
.class-summary { margin: 7px 0 0; color: var(--muted); font-size: 17px; }
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.search-control {
  display: flex;
  align-items: center;
  width: 205px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding-left: 12px;
}
.search-control svg { width: 19px; height: 19px; color: #7b80a0; flex-shrink: 0; }
.search-control input {
  width: 100%;
  min-width: 0;
  padding: 12px 9px;
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 10px;
  font-size: 13px;
}
.unit-control select {
  width: 150px;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}
.ready-control {
  display: flex;
  position: relative;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}
.ready-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.ready-control:has(input:focus-visible) {
  outline: 3px solid #4520bf;
  outline-offset: 3px;
}
.switch { width: 31px; height: 18px; border-radius: 20px; background: #b9bdcd; }
.switch::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin: 3px;
  border-radius: 50%;
  background: white;
}
.ready-control input:checked ~ .switch { background: var(--purple); }
.ready-control input:checked ~ .switch::before { transform: translateX(13px); }
.clear-button {
  border: 0;
  background: transparent;
  color: #6230bd;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 10px 4px;
  font-size: 12px;
}
.clear-button:disabled { opacity: .45; cursor: default; }
.result-status {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 13px;
  min-height: 18px;
}

.unit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.unit-card {
  --tint: #ece3ff;
  --badge: #d1baff;
  background: var(--tint);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px #23204b06;
}
.unit-card[data-art="0"] { --tint: #eee5ff; --badge: #d3bdff; }
.unit-card[data-art="1"] { --tint: #ffe8d5; --badge: #ffc796; }
.unit-card[data-art="2"] { --tint: #d9f7e9; --badge: #95e7d5; }
.unit-card[data-art="3"] { --tint: #ddf1ff; --badge: #a9d8fd; }
.unit-card[data-art="4"] { --tint: #ffe3ec; --badge: #ffb7cc; }
.unit-card[data-art="5"] { --tint: #d6faf1; --badge: #8be7dc; }
.unit-card[data-art="6"] { --tint: #fff0d7; --badge: #ffdaa0; }

.unit-header {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 16px 20px;
  overflow: hidden;
}
.unit-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, var(--tint) 35%, transparent 88%);
  pointer-events: none;
}
.unit-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 15px;
  background: var(--badge);
  font-size: 23px;
  font-weight: 800;
}
.unit-header h3 {
  margin: 0;
  max-width: 64%;
  font-size: 21px;
  line-height: 1.17;
  letter-spacing: -.5px;
  text-wrap: balance;
  text-shadow: 0 1px 8px var(--tint), 0 1px 3px var(--tint);
}
.science-art {
  position: absolute;
  z-index: -2;
  width: 48%;
  aspect-ratio: var(--tile-ratio);
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  overflow: hidden;
  pointer-events: none;
}
.science-art img {
  display: block;
  position: absolute;
  width: 400%;
  max-width: none;
  height: auto;
  left: calc(var(--col) * -100%);
  top: calc(var(--row) * -100%);
}

.section-list {
  display: grid;
  gap: 3px;
  list-style: none;
  padding: 0 10px 10px;
  margin: 0;
}
.material-row {
  background: #ffffffed;
  border-radius: 10px;
  overflow: hidden;
}
.material-link, .soon-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 13px;
  min-height: 46px;
  padding: 10px 14px;
  text-align: left;
  color: var(--ink);
  text-decoration: none;
  border: 0;
  background: transparent;
}
.material-link:hover, .soon-button:hover { background: #f8f5ff; }
.material-link:focus-visible, .soon-button:focus-visible {
  outline-offset: -3px;
}
.document-icon { width: 19px; height: 22px; flex-shrink: 0; color: #59618b; }
.material-name {
  min-width: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.material-action {
  color: #6330df;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 650;
}
.soon-badge {
  flex-shrink: 0;
  border-radius: 20px;
  padding: 4px 9px;
  background: #f0eef6;
  color: #66617d;
  font-size: 11px;
}
.alternative-link {
  display: block;
  width: fit-content;
  margin: -3px 12px 9px 46px;
  color: #6230dc;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.empty-state {
  text-align: center;
  background: #f4efff;
  padding: 38px 20px;
  border-radius: 18px;
}
.empty-state h3 { font-size: 22px; margin-top: 0; }
.empty-state p { color: var(--muted); }

.teacher-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 36px;
  margin: 8px 0 28px;
  background: linear-gradient(110deg, #f1eaff, #f8fffc);
  border: 1px solid #eee8f8;
  border-radius: 20px;
}
.section-label {
  margin: 0 0 9px;
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: #6738bf;
}
.teacher-section h2 { margin: 0 0 10px; font-size: 28px; }
.teacher-section p:not(.section-label) {
  max-width: 820px;
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 13px;
}
.email-link { color: #6230bf; text-underline-offset: 4px; overflow-wrap: anywhere; }
.teacher-art { width: 100px; height: 115px; flex-shrink: 0; }

.site-footer {
  border-top: 1px solid #eeedf5;
  padding-block: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}
.site-footer p { margin: 0; }
.site-footer a { flex-shrink: 0; text-underline-offset: 4px; }

dialog {
  border: 1px solid #e5dafb;
  border-radius: 22px;
  padding: 30px;
  color: var(--ink);
  width: min(470px, calc(100% - 32px));
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 100px #17113c40;
}
dialog::backdrop { background: #15133366; }
dialog h2 { margin-top: 0; font-size: 25px; }
dialog p { line-height: 1.55; }
.soon-section { font-weight: 650; }
dialog .primary-button { margin-top: 8px; }

@media (min-width: 1450px) {
  .hero { min-height: 480px; }
}

@media (max-width: 1150px) {
  .container { width: calc(100% - 64px); }
  .hero { min-height: 410px; }
  .class-art { width: 66px; height: 80px; }
  .class-card { min-height: 110px; padding-right: 10px; gap: 3px; }
  .class-arrow { width: 29px; height: 29px; }
  .class-copy strong { font-size: 25px; }
  .class-copy small { font-size: 11px; }
  .name-card { max-width: 290px; }
  .materials-top { display: block; }
  .filters { margin-top: 15px; }
  .unit-header h3 { font-size: 20px; }
}

@media (max-width: 850px) {
  .container { width: calc(100% - 40px); }
  .header-inner { flex-wrap: wrap; justify-content: center; padding: 14px 0; gap: 12px; }
  nav { justify-content: center; }
  nav a { font-size: 13px; padding: 9px 12px; }
  .hero { grid-template-columns: 1fr 1fr; min-height: 390px; }
  h1 { font-size: 42px; letter-spacing: -1.7px; }
  .hero-description { font-size: 17px; }
  .eyebrow { padding: 9px 13px; font-size: 11px; letter-spacing: 1px; }
  .hero-atom { width: 80px; right: -8px; }
  .hero-planet { width: 90px; left: -15px; }
  .name-card { max-width: 255px; padding: 12px; bottom: 14px; gap: 8px; }
  .name-card strong { font-size: 15px; }
  .name-icon { width: 32px; height: 32px; }
  .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .class-art { width: 78px; }
  .class-card { padding-inline: 12px; gap: 10px; }
  .class-copy strong { font-size: 27px; }
  .class-copy small { font-size: 12px; }
  .unit-header { padding: 14px; gap: 10px; }
  .unit-number { width: 42px; height: 45px; font-size: 20px; }
  .unit-header h3 { font-size: 18px; max-width: 72%; }
  .material-link, .soon-button { padding: 10px; gap: 8px; }
  .material-name { font-size: 13px; }
  .material-action { font-size: 11px; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 16px; }
  .container { width: calc(100% - 32px); }
  .brand-icon { width: 49px; height: 49px; }
  .brand strong { font-size: 27px; }
  .brand small { font-size: 11px; }
  nav { width: 100%; gap: 1px; }
  nav a { padding: 9px 10px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 28px 0 12px; }
  h1 { font-size: clamp(36px, 10vw, 52px); line-height: 1.08; }
  .hero-description { max-width: 430px; margin-bottom: 17px; }
  .hero-note { font-size: 13px; }
  .hero-visual { height: 340px; margin-top: 10px; }
  .portrait-backdrop { inset: 10px 10% 0; }
  .portrait { object-position: center bottom; }
  .hero-planet { left: 0; width: 100px; }
  .hero-atom { right: 0; top: 12px; width: 90px; }
  .hero-leaf { left: -5px; width: 90px; }
  .name-card { right: 0; max-width: 272px; bottom: 12px; }
  .class-section { padding-top: 18px; padding-bottom: 27px; }
  .class-grid { gap: 12px; }
  .class-card { min-height: 100px; padding: 10px 8px; gap: 2px; }
  .class-art { width: 45px; height: 68px; }
  .class-copy strong { font-size: 22px; }
  .class-copy small { font-size: 10px; line-height: 1.4; }
  .class-arrow { width: 23px; height: 25px; font-size: 24px; }
  .materials h2 { font-size: 27px; letter-spacing: -.6px; }
  .class-summary { font-size: 14px; }
  .filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px;
  }
  .search-control { width: 100%; grid-column: 1 / -1; }
  .unit-control, .unit-control select { width: 100%; min-width: 0; }
  .ready-control { font-size: 12px; justify-content: space-between; }
  .clear-button { grid-column: 1 / -1; justify-self: start; }
  .unit-grid { grid-template-columns: 1fr; gap: 14px; }
  .unit-header { min-height: 87px; gap: 12px; padding-inline: 14px; }
  .unit-header h3 { font-size: 20px; max-width: 72%; }
  .material-name { font-size: 13px; }
  .material-action { font-size: 11px; }
  .material-link, .soon-button { min-height: 48px; gap: 9px; }
  .alternative-link { margin-left: 38px; }
  .teacher-section { padding: 25px 22px; }
  .teacher-section h2 { font-size: 25px; }
  .teacher-art { display: none; }
  .site-footer { align-items: flex-start; font-size: 11px; line-height: 1.6; }
}

@media (max-width: 360px) {
  .class-art { width: 34px; }
  .class-copy strong { font-size: 20px; }
  .class-arrow { width: 20px; }
  .material-link, .soon-button { flex-wrap: wrap; }
  .material-name { flex-basis: calc(100% - 30px); }
  .material-action, .soon-badge { margin-left: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .class-card:hover { transform: none; }
}
/* PORTRE ÇEVRESİNDEKİ DEKORATİF YAZILAR */

.portrait-note {
  position: absolute;
  z-index: 4;
  margin: 0;
  color: #6555b0;
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: clamp(15px, 1.35vw, 19px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
  pointer-events: none;
}

.portrait-note::after {
  content: "";
  display: block;
  width: 88%;
  height: 13px;
  margin: 5px auto 0;
  border-top: 2px solid #8c65ee;
  border-radius: 50%;
  transform: rotate(-7deg);
}

.portrait-note-left {
  left: -17%;
  bottom: 32px;
  width: 150px;
  transform: rotate(-10deg);
}

.portrait-note-right {
  right: -3%;
  top: 43%;
  width: 155px;
  transform: rotate(-8deg);
}

/* SEKİZLİ GÖRSELDEN ATOM */

.hero-atom-art {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: -2%;
  width: clamp(105px, 11vw, 155px);
  aspect-ratio: var(--tile-ratio);
  transform: rotate(10deg);
  pointer-events: none;
}

.hero-atom-art .science-art {
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  z-index: auto;
}

/* KÜÇÜK RENKLİ KÜRELER VE PARILTI */

.decor-orb {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  pointer-events: none;
  box-shadow:
    inset -3px -4px 7px #00000012,
    0 5px 12px #65529212;
}

.decor-orb-mint {
  width: 22px;
  height: 22px;
  left: 12%;
  top: 44%;
  background: radial-gradient(
    circle at 30% 25%,
    #f0ffd7,
    #a6df69 50%,
    #6caf51
  );
}

.decor-orb-purple {
  width: 13px;
  height: 13px;
  right: 12%;
  top: 37%;
  background: radial-gradient(
    circle at 30% 25%,
    #ede0ff,
    #a77ae7 55%,
    #7846c6
  );
}

.decor-star {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 32px;
  pointer-events: none;
  background: linear-gradient(135deg, #fff5b4, #ffd15b);
  clip-path: polygon(
    50% 0,
    64% 35%,
    100% 50%,
    64% 64%,
    50% 100%,
    36% 64%,
    0 50%,
    36% 35%
  );
}

.decor-star-extra {
  right: 26%;
  top: 28%;
}

/* SON ÜNİTENİN YANINDAKİ BOŞ ALAN */

.grid-closing-note {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  gap: 22px;
  min-height: 145px;
  padding: 22px 30px;
  background: radial-gradient(
    ellipse at center,
    #f1ecff75,
    transparent 72%
  );
}

.closing-leaf {
  flex-shrink: 0;
  width: 65px;
  height: 80px;
  transform: rotate(-7deg);
}

.closing-handwriting {
  max-width: 240px;
  margin: 0;
  color: #6250a6;
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: 25px;
  font-style: italic;
  line-height: 1.55;
  text-align: center;
  transform: rotate(-6deg);
}

.closing-handwriting::after {
  content: "";
  display: block;
  width: 115px;
  height: 15px;
  margin: 12px auto 0;
  border-top: 2px solid #7a5dcc;
  border-radius: 50%;
  transform: rotate(-6deg);
}

/* TABLET: YAZILARIN PORTRE VE BAŞLIKLA ÇAKIŞMASINI AZALT */

@media (min-width: 641px) and (max-width: 1000px) {
  .portrait-note-left {
    display: none;
  }

  .portrait-note-right {
    right: 0;
    top: 42%;
    width: 110px;
    font-size: 13px;
  }

  .hero-atom-art {
    right: 0;
    width: 100px;
  }

  .grid-closing-note {
    gap: 12px;
    padding: 20px 15px;
  }

  .closing-handwriting {
    font-size: 21px;
  }
}

/* MOBİL: DEKORLAR AYNI PORTRE ALANI İÇİNDE KALIR */

@media (max-width: 640px) {
  .portrait-note-left {
    left: 0;
    bottom: 88px;
    width: 102px;
    font-size: 12px;
  }

  .portrait-note-right {
    right: 0;
    top: 112px;
    width: 108px;
    font-size: 12px;
  }

  .hero-atom-art {
    top: 14px;
    right: 0;
    width: 90px;
  }

  .decor-orb-mint {
    left: 12%;
    top: 42%;
    width: 14px;
    height: 14px;
  }

  .decor-orb-purple,
  .decor-star-extra {
    display: none;
  }

  .grid-closing-note {
    min-height: 100px;
    padding: 14px 20px;
    gap: 15px;
  }

  .closing-leaf {
    width: 43px;
    height: 57px;
  }

  .closing-handwriting {
    max-width: 230px;
    font-size: 21px;
  }
}
/* İsim kartını portre alanının ortasına al */
.hero-visual .name-card {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(330px, calc(100% - 24px));
  max-width: none;
}

/* Masaüstünde menü bağlantılarını birbirine yaklaştır */
@media (min-width: 851px) {
  .site-header nav {
    gap: 2px;
  }

  .site-header nav a {
    padding-inline: 12px;
  }
}
/* İsim kartındaki unvan */
.name-card .teacher-title {
  line-height: 1.5;
}

/* Yalnızca mobil görünüm */
@media (max-width: 640px) {
  .hero-visual {
    height: 290px;
  }

  .hero-visual .name-card {
    padding: 10px 12px;
    gap: 8px;
    bottom: 10px;
  }

  .name-card strong {
    font-size: 15px;
  }

  .name-card .teacher-title {
    font-size: 11px;
  }

  .portrait-note {
    display: none;
  }
}
/* Sınıf kartlarındaki okları ve beyaz dairelerini gizle */
.class-card .class-arrow {
  display: none;
}
/* Eğitici Oyunlar */
.section-games { display:block; width:fit-content; margin:0 14px 10px 46px; padding:5px 12px; border-radius:8px; background:#eee5ff; color:#5324ac; font-size:12px; font-weight:700; text-decoration:none; }
.section-games:hover { background:#ded0ff; }
.games-main { padding-bottom:35px; }
.games-intro { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:42px 0 28px; }
.games-intro h1 { font-size:clamp(32px,4vw,54px); letter-spacing:-1.6px; }
.games-intro p:not(.eyebrow) { color:var(--muted); font-size:18px; line-height:1.5; margin-bottom:0; }
.games-intro > svg { width:160px; height:125px; flex-shrink:0; }
.games-page .class-card { min-height:95px; }
.games-page .class-art { height:72px; width:64px; }
.game-controls { display:flex; gap:25px; align-items:center; padding:25px 0 20px; }
.game-controls label { display:grid; gap:8px; font-size:13px; font-weight:700; max-width:100%; }
.game-controls select { color:var(--ink); background:white; border:1px solid var(--border); border-radius:12px; padding:12px; width: min(470px,100%); font:inherit; }
.game-context { display:grid; gap:6px; font-size:14px; }
.game-context span { color:var(--muted); }
.section-choices { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.section-choice { display:grid; align-content:start; text-align:left; gap:6px; border:1px solid #ded7ee; border-radius:13px; padding:15px; background:white; color:var(--ink); min-height:90px; }
.section-choice small { color:#6f6487; font-size:10px; letter-spacing:1px; }
.section-choice strong { font-size:14px; line-height:1.5; }
.section-choice[aria-pressed="true"] { background:#efe6ff; border-color:#8150e6; box-shadow:inset 0 0 0 1px #8150e6; }
.general-choice { background:#fff4db; border-color:#f1d49b; }
.general-choice[aria-pressed="true"] { background:#ffe9b6; border-color:#b4770e; box-shadow:inset 0 0 0 1px #b4770e; }
.game-heading-row { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:32px 0 20px; }
.game-heading-row h2 { margin:0; font-size:clamp(23px,2.5vw,32px); line-height:1.25; }
#game-count { color:var(--muted); font-size:13px; margin:9px 0 0; }
.back-materials { color:#6030b4; font-size:13px; flex-shrink:0; text-underline-offset:4px; }
.game-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.game-card { border:1px solid #e9e4f1; padding:14px; border-radius:19px; background:#fff; text-decoration:none; box-shadow:0 5px 20px #30205406; transition:transform .15s ease; }
.game-card:hover { transform:translateY(-3px); border-color:#9b7bc9; }
.game-art { position:relative; height:125px; display:grid; place-items:center; border-radius:12px; background:radial-gradient(circle at 50% 35%,white, hsl(var(--card-hue) 80% 91%)); overflow:hidden; }
.game-art svg { width:95px; height:105px; }
.game-number { position:absolute; top:12px; left:12px; color:#65557e; font-size:11px; letter-spacing:2px; }
.game-card h3 { font-size:19px; margin:16px 0 12px; line-height:1.3; }
.game-launch { display:block; color:#6730c5; font-size:13px; font-weight:700; padding-bottom:3px; }
@media(max-width:850px) {
 .site-header nav { flex-wrap:wrap; }
 .section-choices { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .game-controls { align-items:flex-start; flex-direction:column; gap:12px; }
 .games-page .class-copy strong { font-size:24px; }
}
@media(max-width:640px) {
 .site-header nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); text-align:center; }
 .site-header nav a { padding:10px 5px; }
 .games-intro { padding:26px 0 22px; }
 .games-intro > svg { display:none; }
 .games-intro .eyebrow { font-size:10px; }
 .games-intro p:not(.eyebrow) { font-size:15px; }
 .games-page .class-art { width:40px; height:60px; }
 .games-page .class-copy strong { font-size:22px; }
 .game-controls label { width:100%; }
 .game-controls select { width:100%; }
 .game-heading-row { align-items:flex-start; flex-direction:column; gap:14px; padding-top:24px; }
 .section-choice { padding:12px; }
 .section-choice strong { font-size:12px; }
 .game-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .game-card { padding:10px; border-radius:14px; }
 .game-card h3 { font-size:16px; }
 .game-art { height:100px; }
 .game-art svg { width:73px; height:85px; }
 .section-games { margin-left:38px; }
}
@media(prefers-reduced-motion:reduce) { .game-card:hover { transform:none; } }

/* Gerçek oyun kapakları ve açıklamaları */
.games-page .game-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.games-page .game-art {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  background: #f5f2fc;
  flex-shrink: 0;
}
.games-page .game-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.games-page .game-description {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.games-page .game-launch {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 16px;
  border-radius: 20px;
  background: #7131dd;
  color: #fff;
}
@media (max-width: 640px) {
  .games-page .game-description { font-size: 12px; line-height: 1.5; }
  .games-page .game-launch { font-size: 12px; padding: 9px 12px; }
}

/* Referans düzeni ve okunabilirlik */
.container{max-width:1320px}
.name-card div > span{font-size:14px}
.class-copy small{font-size:14px}
.material-action,.alternative-link,.soon-badge,.clear-button,.search-control input,.unit-control select,.ready-control,.section-games{font-size:14px}
.unit-header h3{max-width:62%}
.science-art{width:45%}
.game-description{font-size:16px!important}
.game-launch{font-size:14px!important}
@media(min-width:1000px){.hero-copy{padding-left:30px}.hero{min-height:420px}.class-card{min-height:116px}.portrait-note-left{left:-19%;bottom:26px}.portrait-note-right{right:-1%;width:125px}.materials-top{display:block}.filters{margin-top:14px}.class-section{padding-bottom:28px}}
@media(max-width:850px){nav a{font-size:14px}.class-copy small{font-size:12px}.unit-grid{grid-template-columns:1fr}.name-card div > span{font-size:14px}.portrait-note{display:none}}
@media(max-width:640px){.hero-visual{height:290px}.name-card .teacher-title{font-size:12px}.class-copy strong{font-size:22px}.class-copy small{font-size:12px}.class-art{width:40px}.material-name{font-size:14px}.material-action{font-size:12px}.section-choice strong{font-size:14px}.section-choice small{font-size:12px}.game-grid{grid-template-columns:1fr}.game-card h3{font-size:21px}.game-art{max-height:none}.unit-header h3{font-size:20px}.hero-note{font-size:14px}}
@media(max-width:360px){.class-art{width:28px}.class-copy strong{font-size:20px}.class-card{padding-inline:6px}.class-copy small{font-size:12px}}

/* Bilim atlasından ayrı hücreler: komşu görsel sızıntısı olmaz. */
.unit-header .science-art{height:145px;width:46%;aspect-ratio:auto}
.unit-header .science-art img{width:100%;height:100%;max-width:100%;left:0;top:0;object-fit:cover;object-position:center}

.video-badge { width:fit-content; }
