:root {
  color-scheme: light;
  font: 17px/1.5 system-ui, sans-serif;
  color: #16342e;
  background: #edf9f5;
  --green: #075d4d;
  --line: #bfdbd2;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.home { color: var(--green); text-underline-offset: .2em; }
main { width: min(100% - 2rem, 62rem); margin: clamp(1.5rem, 5vw, 4rem) auto; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 6vw, 3.65rem); line-height: 1.12; }
h2 { font-size: 1.35rem; line-height: 1.25; }
.eyebrow { color: var(--green); font-weight: 800; font-size: .74rem; letter-spacing: .12em; margin-bottom: .6rem; }
.prompt-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; margin-bottom: .6rem; }
.prompt-head .eyebrow { margin-bottom: 0; }
.level-badge { border-radius: 999px; padding: .1rem .6rem; font-size: .74rem; font-weight: 800; border: 1.5px solid; white-space: nowrap; }
.level-badge[data-level="1"] { background: #e4f7ea; border-color: #7cc79a; color: #145c31; }
.level-badge[data-level="2"] { background: #fff4d6; border-color: #e6c35c; color: #6b4a00; }
.level-badge[data-level="3"] { background: #ffebe5; border-color: #e0917f; color: #8a2a1a; }
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.topic, .panel { border: 1px solid var(--line); border-radius: 1.2rem; background: white; padding: clamp(1rem, 3vw, 1.9rem); }
.topic {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: .85rem;
  align-items: center;
  padding: .85rem;
  text-align: left;
}
button.topic-start { background: #d4f5e8; color: var(--green); }
button.topic-opposites { background: #fff3e8; color: #16342e; }
.topic-punctuation { background: #f5efff; }
.topic img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: .7rem; }
.topic-title { display: block; font-size: clamp(1.05rem, 2.15vw, 1.35rem); font-weight: 800; line-height: 1.25; }
.topic-status { color: #4c5a52; font-size: .8rem; margin-top: .3rem; }
.page-footer { margin-top: 1.2rem; }
@media (max-width: 630px) {
  .topics { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  .topic { grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: auto; }
}
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
button {
  border: 2px solid transparent;
  border-radius: .7rem;
  padding: .55rem .85rem;
  min-height: 44px;
  background: var(--green);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:hover:not(:disabled) { filter: brightness(.92); }
button:focus-visible, a:focus-visible { outline: 3px solid #b35114; outline-offset: 3px; }
button:disabled { cursor: default; opacity: .48; }
button.secondary, button.choice { border-color: var(--line); background: white; color: var(--green); }
.session-bar { display: flex; justify-content: space-between; align-items: center; gap: .6rem; font-weight: 750; }
.session-bar > button { white-space: nowrap; flex: 0 0 auto; }
.session-right { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; justify-content: flex-end; }
button.sound-toggle { min-height: 40px; padding: .4rem .8rem; white-space: nowrap; }
button.sound-toggle[aria-pressed="false"] { background: #fff3e8; border-color: #e9c39f; color: #7e310e; }
progress { display: block; margin: .9rem 0 1.2rem; width: 100%; height: .65rem; accent-color: var(--green); }
.exercise { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(1rem, 4vw, 2.5rem); align-items: center; }
.clues {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.35rem, 1vw, .7rem);
}
.clues img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 1rem; background: #d8f0e8; }
.clues.opposites { grid-template-columns: minmax(0, 1fr); }
#listen { margin-top: .65rem; }
.audio-status { color: #7e310e; font-size: .84rem; }
.audio-status:not(:empty) { margin-top: .45rem; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: .9rem; }
button.choice { overflow-wrap: anywhere; }
button.choice:disabled { opacity: 1; }
button.choice.correct { background: #d5f6df; border-color: #21844c; color: #145c31; }
button.choice.wrong { background: #ffebe5; border-color: #a94130; color: #8a2a1a; }
.feedback { min-height: 1.5em; margin: .6rem 0; font-weight: 650; }
.result p + .actions, .result h1 + p { margin-top: .8rem; }
.exercise.no-clues { grid-template-columns: minmax(0, 1fr); max-width: 34rem; margin-inline: auto; }
@media (max-width: 630px) {
  .exercise { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Noktalama İşaretleri (noktalama.js) ---- */
button.topic-punctuation { background: #f5efff; color: #16342e; border-color: var(--line); }
.pn-eyebrow { margin-top: 1rem; }
.pn-title { font-size: clamp(1.5rem, 4.5vw, 2.3rem); margin: 0 0 .8rem; outline: none; }
.pn-signs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: .6rem 0 1rem; }
.pn-sign {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: .3rem .75rem;
  padding: .65rem .85rem; border: 2px solid var(--line); border-radius: 1rem; background: #fff; cursor: pointer;
}
.pn-sign:has(input:checked) { border-color: var(--green); background: #f1fbf6; }
.pn-sign input { width: 1.35rem; height: 1.35rem; margin: 0; accent-color: var(--green); }
.pn-sign-mark { font-size: 1.9rem; font-weight: 900; min-width: 2.2rem; text-align: center; color: var(--green); line-height: 1; }
.pn-sign-text b { display: block; line-height: 1.2; }
.pn-sign-text small { display: block; color: #4c5a52; font-size: .8rem; }
.pn-bar { grid-column: 1 / -1; height: .35rem; border-radius: 999px; background: #e3efe9; overflow: hidden; }
.pn-bar i { display: block; height: 100%; background: #2f9e5b; }
.pn-all { margin-bottom: .2rem; background: #fffdf5; border-color: #e9dca8; }
.pn-summary { font-weight: 650; min-height: 1.5em; margin: .2rem 0 .4rem; }
.pn-actions button { min-height: 48px; }
.pn-startrow { margin: .3rem 0 1rem; }
.pn-startrow button { min-height: 62px; padding: .72rem 1.7rem; font-size: 1.3rem; }
.pn-ask { font-weight: 700; color: #4c5a52; margin: .2rem 0 .5rem; }
.pn-sentence {
  font-size: clamp(1.35rem, 4.2vw, 2rem); line-height: 1.9; font-weight: 600; overflow-wrap: anywhere; outline: none;
  background: #fffdf5; border: 2px solid #efe4bd; border-radius: 1rem; padding: 1rem 1.1rem; margin: .3rem 0 .8rem;
}
.pn-blank {
  display: inline-block; min-width: 2.1rem; height: 1.5em; margin: 0 .15rem; text-align: center; font-weight: 900;
  line-height: 1.35em; vertical-align: -.28em; border: 2px dashed #b35114; border-radius: .45rem; background: #fff3e8;
}
.pn-blank.shown { border-style: solid; border-color: #21844c; background: #d5f6df; color: #145c31; }
.pn-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .4rem; }
button.pn-choice { display: flex; align-items: center; justify-content: flex-start; gap: .7rem; min-height: 64px; padding: .5rem .9rem; text-align: left; }
.pn-choice-mark { font-size: 2rem; font-weight: 900; min-width: 2.4rem; text-align: center; line-height: 1; }
.pn-choice-name { font-size: 1rem; line-height: 1.25; }
.feedback.ok { color: #145c31; }
.feedback.bad { color: #8a2a1a; }
.pn-rule { background: #fff8e8; border: 1px solid #f3dca1; border-radius: .8rem; padding: .6rem .85rem; margin: .1rem 0 .8rem; font-weight: 650; color: #6b4a00; }
#punctPractice > #pnNext { margin-top: .2rem; }
@media (max-width: 520px) {
  .pn-signs { grid-template-columns: minmax(0, 1fr); }
  .pn-sentence { padding: .8rem .85rem; }
  .pn-choice-mark { font-size: 1.7rem; min-width: 2rem; }
  .pn-choice-name { font-size: .92rem; }
  button.pn-choice { gap: .5rem; padding: .45rem .65rem; }
}

/* ---- Cümle – Resim Eşleştirme (cumle-resim.js) ---- */
button.topic-cr { background: #fff4d6; color: #16342e; border-color: var(--line); }
.topics:has(> .topic-cr) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 900px) { .topics:has(> .topic-cr) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 630px) { .topics:has(> .topic-cr) { grid-template-columns: minmax(0, 1fr); gap: .65rem; } }

.cr-panel { background: linear-gradient(180deg, #fffbe9 0%, #ffffff 55%); }
.cr-eyebrow {
  margin: .4rem 0 0; text-align: center; color: #b35114; font-weight: 800; font-size: .9rem; letter-spacing: .08em;
  font-family: 'Baloo 2', system-ui, sans-serif;
}
.cr-bubble {
  position: relative; max-width: 46rem; margin: .7rem auto 1.9rem; padding: 1.15rem 3.6rem 1.25rem; text-align: center;
  background: linear-gradient(135deg, #fffbe0, #ffe6b8); border: 4px solid #f4b24a; border-radius: 2rem;
  box-shadow: 0 7px 0 #efc474, 0 14px 26px rgba(179, 110, 20, .18);
}
.cr-bubble::before, .cr-bubble::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); }
.cr-bubble::before { bottom: -25px; border: 15px solid transparent; border-top: 22px solid #f4b24a; border-bottom: 0; }
.cr-bubble::after { bottom: -16px; border: 11px solid transparent; border-top: 17px solid #ffe6b8; border-bottom: 0; }
.cr-sentence {
  margin: 0; outline: none; color: #6b2f00; font-weight: 700; line-height: 1.25; text-wrap: balance; overflow-wrap: anywhere;
  font-family: 'Baloo 2', 'Segoe UI', system-ui, sans-serif; font-size: clamp(1.6rem, 5.4vw, 2.75rem);
}
button.cr-listen {
  position: absolute; top: .65rem; right: .65rem; width: 2.8rem; height: 2.8rem; min-height: 0; padding: 0;
  border-radius: 50%; border-color: #f4b24a; background: #fff; font-size: 1.3rem; line-height: 1;
}
.cr-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.5rem, 1.6vw, 1rem); }
button.cr-choice {
  position: relative; padding: 0; min-height: 0; overflow: hidden; border: 5px solid #ffe0a3; border-radius: 1.4rem;
  background: #fff; transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
  box-shadow: 0 5px 0 #f1cf8e;
}
button.cr-choice:hover:not(:disabled) { transform: translateY(-4px); box-shadow: 0 9px 0 #f1cf8e; filter: none; border-color: #f4b24a; }
button.cr-choice:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 2px 0 #f1cf8e; }
button.cr-choice img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #f4ead0; }
button.cr-choice:disabled { opacity: 1; cursor: default; }
button.cr-choice.correct { border-color: #27a35a; box-shadow: 0 0 0 5px rgba(39, 163, 90, .28), 0 5px 0 #1d7f45; animation: crPop .45s ease; }
button.cr-choice.wrong { border-color: #d4503a; box-shadow: 0 5px 0 #a73a28; }
button.cr-choice.dim, button.cr-choice.dim:disabled { opacity: .42; filter: grayscale(.35); }
.cr-badge {
  position: absolute; top: .5rem; right: .5rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: none;
  align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 1.5rem; line-height: 1;
  border: 3px solid #fff; font-family: system-ui, sans-serif;
}
.correct > .cr-badge { display: flex; background: #27a35a; }
.wrong > .cr-badge { display: flex; background: #d4503a; }
.cr-feedback {
  min-height: 2.2em; margin: 1rem 0 .4rem; text-align: center; font-weight: 800; font-size: 1.35rem;
  font-family: 'Baloo 2', system-ui, sans-serif;
}
.cr-feedback.ok { color: #146c37; }
.cr-feedback.bad { color: #8a4b12; }
button.cr-next { display: block; margin: 0 auto; min-width: 12rem; padding: .7rem 1.8rem; border-radius: 999px; font-size: 1.1rem; }
.cr-done .cr-stars { font-size: 3rem; margin: .4rem 0; letter-spacing: .2em; }
@keyframes crPop { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { button.cr-choice, button.cr-choice.correct { animation: none; transition: none; } }
@media (max-width: 560px) {
  .cr-bubble { padding: 1rem 3.2rem 1.1rem 1rem; margin-bottom: 1.7rem; border-radius: 1.5rem; }
  .cr-choices { gap: .4rem; }
  button.cr-choice { border-width: 3px; border-radius: 1rem; }
  button.cr-choice img { aspect-ratio: 1 / 1.4; }
  .cr-panel { padding-inline: .6rem; }
  .cr-badge { width: 1.9rem; height: 1.9rem; font-size: 1.15rem; top: .3rem; right: .3rem; border-width: 2px; }
  button.cr-next { width: 100%; }
}
/* ---- Sözcük – Anlam Eşleşmesi (sozcuk-anlam.js) ---- */
button.topic-sa { background: #e8f1ff; color: #16342e; border-color: var(--line); }
.topic-art {
  display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: .7rem; font-size: clamp(3.4rem, 9vw, 5.4rem); line-height: 1;
  background: linear-gradient(135deg, #cfe3ff, #f3e7ff);
}
.topics:has(> .topic-sa) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 900px) { .topics:has(> .topic-sa) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 630px) {
  .topics:has(> .topic-sa) { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  .topic-art { font-size: 2.4rem; }
}
.sa-panel { background: linear-gradient(180deg, #f3f8ff 0%, #ffffff 55%); }
.sa-head { margin-top: .9rem; }
.sa-defwrap { position: relative; margin: .3rem 0 1rem; padding: 1.2rem 3.6rem 1.3rem 1.3rem; background: #fff; border: 3px solid #9ec3f5; border-radius: 1.4rem; box-shadow: 0 6px 0 #c4dcfa; }
.sa-def {
  margin: 0; outline: none; color: #123a73; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; text-wrap: balance;
  font-family: 'Baloo 2', 'Segoe UI', system-ui, sans-serif; font-size: clamp(1.35rem, 4.6vw, 2.1rem);
}
button.sa-listen { position: absolute; top: .65rem; right: .65rem; width: 2.6rem; height: 2.6rem; min-height: 0; padding: 0; border-radius: 50%; border-color: #9ec3f5; background: #fff; font-size: 1.2rem; line-height: 1; }
.sa-choices { margin-top: .4rem; }
button.sa-choice { min-height: 64px; font-size: 1.25rem; font-family: 'Baloo 2', 'Segoe UI', system-ui, sans-serif; }
@media (max-width: 560px) { .sa-defwrap { padding: 1rem 3.2rem 1.1rem 1rem; } button.sa-choice { font-size: 1.1rem; min-height: 58px; } }

/* ---- Okuma Parçası (okuma-parcasi.js) ---- */
button.topic-op { background: #ffeef0; color: #16342e; border-color: var(--line); }
.topic-op .topic-art { background: linear-gradient(135deg, #ffd9dd, #fff0c9); }
button.topic-os { background: #e8f6ed; color: #16342e; border-color: var(--line); }
.topic-os .topic-art { background: linear-gradient(135deg, #d1f0de, #eff4c8); }
button.os-theme { grid-template-columns: auto minmax(0, 1fr); text-align: left; color: #16342e; }
#osPractice {
  max-width: 40rem;
  padding: clamp(1rem, 3vw, 1.75rem);
  background: #fff;
}
#osPractice .session-bar { margin-bottom: 1rem; }
#osPractice .session-bar > button {
  min-height: 44px;
  padding: .35rem 0;
  border-color: transparent;
}
#osProgress, #osTheme { color: #4c625b; font-size: .82rem; font-weight: 600; }
#osTheme { margin: 0 0 .4rem; letter-spacing: normal; }
#osText {
  margin: 0 0 1.2rem;
  padding: .85rem 1rem;
  border: 0;
  border-radius: .65rem;
  box-shadow: none;
  background: #eff6f3;
  color: #16342e;
  font: 500 clamp(1rem, 2.5vw, 1.18rem)/1.55 system-ui, sans-serif;
}
#osQuestion {
  margin-bottom: .6rem;
  color: #16342e;
  font: 750 clamp(1.1rem, 2.5vw, 1.28rem)/1.35 system-ui, sans-serif;
}
.os-events {
  margin: 0 0 1rem;
  padding-inline-start: 2rem;
  line-height: 1.45;
}
.os-events li { padding-inline-start: .25rem; }
.os-events li + li { margin-top: .35rem; }
.os-events li::marker { font-weight: 700; color: #4c625b; }
#osPractice .os-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#osPractice .os-choices button {
  justify-content: center;
  min-height: 48px;
  padding: .45rem .3rem;
  gap: .4rem;
  border-radius: .6rem;
  font: 650 .95rem/1.25 system-ui, sans-serif;
}
#osPractice .os-choices button::before {
  width: 1.4rem;
  height: 1.4rem;
  font-size: .78rem;
}
#osPractice .os-choices button:not(.correct):not(.wrong)::before {
  background: #eff6f3;
  color: #075d4d;
}
#osPractice .op-foot { margin-top: .85rem; }
@media (max-width: 560px) {
  main:has(> #osPractice:not([hidden])) { width: calc(100% - 1rem); margin-block: .5rem; }
}
@media (max-width: 380px) {
  #osPractice .os-choices { grid-template-columns: minmax(0, 1fr); }
  #osPractice .os-choices button { justify-content: flex-start; padding-inline: .65rem; }
}

.op-panel { background: linear-gradient(180deg, #fff6f1 0%, #ffffff 55%); max-width: 46rem; margin-inline: auto; }
.op-panel > progress { margin: .6rem 0 .8rem; }
/* Metin kartı */
.op-card {
  margin: 0 0 .9rem; padding: clamp(.7rem, 2.6vw, 1.2rem) clamp(.8rem, 3vw, 1.4rem) clamp(.8rem, 2.8vw, 1.3rem);
  background: #fff; border: 3px solid #f3b9a4; border-radius: 1.4rem; box-shadow: 0 6px 0 #f9d9cc;
}
.op-head { margin-bottom: .35rem; flex-wrap: nowrap; }
.op-head .level-badge:empty { display: none; }
.op-title {
  flex: 1 1 auto; min-width: 0; color: #7a2b12; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere;
  font-family: 'Baloo 2', 'Segoe UI', system-ui, sans-serif; font-size: clamp(1.1rem, 3.6vw, 1.5rem);
}
.op-text {
  margin: 0; color: #2a2320; font-weight: 600; overflow-wrap: anywhere;
  font-family: 'Baloo 2', 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(1rem, 3.9vw, 1.4rem); line-height: 1.5;
}
.op-s {
  padding: .05em .12em; margin: 0 -.12em; border-radius: .35em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-color .3s ease;
}
/* Yanlış cevapta: cevabın geçtiği cümle */
.op-s.op-ev {
  background-color: #ffe9a8; color: #5b3200;
  text-decoration: underline; text-decoration-color: #ee9a2f; text-decoration-thickness: .12em; text-underline-offset: .2em;
  animation: opEv 1.1s ease 1;
}
@keyframes opEv {
  0% { background-color: #fff; }
  35% { background-color: #ffc94d; }
  100% { background-color: #ffe9a8; }
}
/* Soru */
.op-q {
  margin: 0 0 .5rem; outline: none; color: #123a73; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere;
  font-family: 'Baloo 2', 'Segoe UI', system-ui, sans-serif; font-size: clamp(1.08rem, 4.1vw, 1.5rem);
}
.op-choices { grid-template-columns: minmax(0, 1fr); gap: .45rem; margin-top: 0; counter-reset: op; }
button.op-choice {
  counter-increment: op; display: flex; align-items: center; gap: .7rem; min-height: 64px; padding: .4rem .9rem;
  text-align: left; line-height: 1.25; border-radius: 1rem; border-color: #c9d9ee;
  font-family: 'Baloo 2', 'Segoe UI', system-ui, sans-serif; font-size: clamp(1.02rem, 3.9vw, 1.25rem); color: #16342e;
}
button.op-choice::before {
  content: counter(op, upper-alpha); flex: 0 0 auto; display: grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 50%; background: #e8f1ff; color: #123a73; font-weight: 800; line-height: 1;
}
button.op-choice.correct::before { content: '✓'; background: #21844c; color: #fff; }
button.op-choice.wrong::before { content: '✗'; background: #a94130; color: #fff; }
/* Geri bildirim + Sonraki aynı satırda (telefonda yer kazanır) */
.op-foot { display: flex; align-items: center; gap: .6rem; margin-top: .6rem; }
.op-foot .feedback { flex: 1 1 auto; min-width: 0; margin: 0; line-height: 1.25; }
.op-foot > button { flex: 0 0 auto; min-height: 48px; padding-inline: 1.2rem; white-space: nowrap; }
main:has(> #opPractice:not([hidden])) { margin-top: clamp(.5rem, 2vw, 1.5rem); }
@media (prefers-reduced-motion: reduce) { .op-s { transition: none; } .op-s.op-ev { animation: none; } }
@media (max-width: 560px) {
  /* Metin + soru + 3 şık + Sonraki tek ekrana sığsın */
  main:has(> #opPractice:not([hidden])) { width: min(100% - 1rem, 62rem); margin-top: .5rem; margin-bottom: .5rem; }
  .op-panel { padding: .6rem .65rem .7rem; }
  .op-panel .session-bar > button, .op-panel button.sound-toggle { min-height: 36px; padding: .25rem .6rem; font-size: .88rem; }
  .op-panel .session-right { gap: .45rem; font-size: .9rem; flex-wrap: nowrap; }
  .op-panel > progress { margin: .4rem 0 .5rem; height: .5rem; }
  .op-card { margin-bottom: .55rem; border-radius: 1.1rem; box-shadow: 0 4px 0 #f9d9cc; }
  .op-head { margin-bottom: .15rem; }
  .op-card { padding: .5rem .7rem .6rem; }
  .op-text { font-size: clamp(.94rem, 4.2vw, 1.1rem); line-height: 1.36; }
  .op-q { margin-bottom: .4rem; line-height: 1.25; }
  .op-choices { gap: .35rem; }
  button.op-choice { min-height: 58px; padding: .3rem .7rem; gap: .55rem; }
  button.op-choice::before { width: 1.75rem; height: 1.75rem; font-size: .95rem; }
  .op-foot { margin-top: .4rem; }
  .op-foot .feedback { font-size: .92rem; }
  .op-foot > button { min-height: 46px; }
}

/* ---- Neden – Sonuç (neden-sonuc.js) ---- */
button.topic-ns { background: #eef0ff; color: #16342e; border-color: var(--line); }
.topic-ns .topic-art { background: linear-gradient(135deg, #d9defa, #fdeccd); }
.ns-panel .op-head .eyebrow { margin: 0; }
.ns-stem {
  margin: .5rem 0 .2rem; color: #16342e; overflow-wrap: anywhere;
  font: 800 clamp(1.3rem, 4.6vw, 1.8rem)/1.35 'Baloo 2', 'Segoe UI', system-ui, sans-serif;
}
.ns-blank { color: #c4572e; letter-spacing: .1em; }
.ns-full { color: #1e7a45; border-bottom: 3px solid #9fd9b4; }

/* ---- Harf Bilgisi (harf-bilgisi.js) ---- */
button.topic-hr { background: #f6ecff; color: #16342e; border-color: var(--line); }
.topic-hr .topic-art { background: linear-gradient(135deg, #e6d4ff, #ffe3c2); }
.hr-panel { background: linear-gradient(180deg, #f8f1ff 0%, #ffffff 55%); }
.hr-head { margin-top: .6rem; }
.hr-prompt {
  margin: .3rem 0 .7rem; outline: none; color: #3b1f73; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; text-wrap: balance;
  font-family: 'Baloo 2', 'Segoe UI', system-ui, sans-serif; font-size: clamp(1.2rem, 4.4vw, 1.8rem);
}
.hr-big {
  margin: 0 0 .8rem; padding: .7rem 1rem; text-align: center; background: #fff; border: 3px solid #c9a8f5; border-radius: 1.2rem; box-shadow: 0 5px 0 #e0cdfa;
  color: #5a2bb0; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; font-family: 'Baloo 2', 'Segoe UI', system-ui, sans-serif; font-size: clamp(1.3rem, 5vw, 2rem);
}
.hr-big:empty { display: none; }
.hr-big.hr-big-letter { font-size: clamp(3rem, 14vw, 4.6rem); line-height: 1.05; }
.hr-choices { margin-top: .3rem; }
.hr-choices.hr-wide { grid-template-columns: minmax(0, 1fr); }
button.hr-choice { min-height: 58px; font-size: 1.2rem; font-family: 'Baloo 2', 'Segoe UI', system-ui, sans-serif; }
.hr-rule { margin: .3rem 0 .6rem; padding: .6rem .8rem; border-radius: .9rem; background: #fff6d6; border: 2px solid #e6c35c; color: #5b4300; font-weight: 600; line-height: 1.35; }
.hr-rule:empty { display: none; }
@media (max-width: 560px) {
  button.hr-choice { min-height: 52px; font-size: 1.08rem; }
  .hr-big { padding: .45rem .7rem; margin-bottom: .55rem; }
  .hr-big.hr-big-letter { font-size: 3rem; }
  .hr-rule { padding: .45rem .65rem; font-size: .92rem; }
}

/* ---- Yazım Kuralları (yazim-kurallari.js) ---- */
button.topic-yz { background: #e9f6ff; color: #16342e; border-color: var(--line); }
.topic-yz .topic-art { background: linear-gradient(135deg, #cfe9fb, #ffe6ef); }
.yz-panel { background: linear-gradient(180deg, #eef8ff 0%, #ffffff 55%); }
.yz-panel > .pt-points { margin-top: .6rem; }
.yz-panel .yz-card { margin-top: .8rem; border-color: #a9d2ee; box-shadow: 0 6px 0 #d3e9f7; }
.yz-panel .op-head .eyebrow { margin: 0; color: #0d5c8c; }
.yz-q { margin: .35rem 0 0; }
.yz-prompt {
  margin: .5rem 0 .1rem; padding: .55rem .8rem; outline: none; color: #16342e; overflow-wrap: anywhere; white-space: pre-line;
  background: #fffdf5; border: 2px dashed #efd9a0; border-radius: .9rem;
  font: 800 clamp(1.3rem, 4.8vw, 1.9rem)/1.5 'Baloo 2', 'Segoe UI', system-ui, sans-serif;
}
.yz-prompt:empty { display: none; }
.yz-blank {
  display: inline-block; min-width: 2.6em; margin: 0 .12em; padding: 0 .3em; text-align: center; line-height: 1.25;
  color: #b35114; background: #fff3e8; border: 2px dashed #e0a070; border-bottom: 4px solid #c4572e; border-radius: .45rem;
}
.yz-blank.yz-filled { color: #145c31; background: #d5f6df; border: 2px solid #21844c; border-bottom-width: 4px; }
button.yz-choice { white-space: pre-line; min-height: 60px; padding-block: .45rem; }
.yz-rule {
  margin: .6rem 0 0; padding: .6rem .85rem; border-radius: .9rem; background: #fff8e8; border: 2px solid #f0d488;
  border-left: 6px solid #e2a62b; color: #5b4300; font-weight: 650; line-height: 1.35;
}
main:has(> #yzPractice:not([hidden])) { margin-top: clamp(.5rem, 2vw, 1.5rem); }
@media (max-width: 560px) {
  /* Soru + 3 şık + Sonraki tek ekrana sığsın */
  main:has(> #yzPractice:not([hidden])) { width: min(100% - 1rem, 62rem); margin-top: .5rem; margin-bottom: .5rem; }
  .yz-panel > .pt-points { margin-top: .4rem; }
  .yz-panel .yz-card { margin-top: .5rem; box-shadow: 0 4px 0 #d3e9f7; }
  .yz-q { margin-top: .2rem; }
  .yz-panel > .pt-points { margin-top: .3rem; }
  .yz-panel .yz-card { margin-top: .4rem; margin-bottom: .4rem; padding: .4rem .6rem .45rem; }
  .yz-q { margin-top: .15rem; font-size: 1.02rem; line-height: 1.2; }
  .yz-prompt { margin-top: .25rem; padding: .25rem .5rem; font-size: clamp(1.02rem, 4.7vw, 1.2rem); line-height: 1.3; border-width: 1px; }
  /* Telefonda boşluk satır içi: cümle gereksiz yere uzamasın */
  .yz-blank, .yz-blank.yz-filled {
    display: inline; min-width: 0; margin: 0; padding: 0 .15em; line-height: inherit; border: 0; border-bottom: 2px solid #c4572e; border-radius: .25rem;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
  }
  .yz-blank.yz-filled { border-bottom-color: #21844c; }
  .yz-panel .yz-choices { gap: .3rem; }
  button.yz-choice { min-height: 46px; padding-block: .2rem; font-size: 1rem; line-height: 1.2; }
  .yz-rule { margin-top: .3rem; padding: .3rem .5rem; font-size: .84rem; line-height: 1.25; border-width: 1px; border-left-width: 5px; }
  .yz-panel .op-foot { margin-top: .3rem; }
  .yz-panel .op-foot .feedback { font-size: .86rem; line-height: 1.2; }
  .yz-panel .op-foot > button { min-height: 42px; }
}
/* ---- Hece Bilgisi (hece-bilgisi.js) ---- */
button.topic-hc { background: #fff4e0; color: #16342e; border-color: var(--line); }
.topic-hc .topic-art { background: linear-gradient(135deg, #ffe2b8, #d9f3e6); }
.hc-stemwrap { padding-right: 1.3rem; }
.hc-stem { overflow-wrap: anywhere; font-size: clamp(1.25rem, 4.6vw, 1.7rem); line-height: 1.4; }
button.hc-choice { min-height: 60px; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .hc-panel { padding: .6rem .65rem .7rem; }
  .hc-stemwrap { padding: .8rem .9rem; margin-bottom: .6rem; }
  button.hc-choice { min-height: 52px; font-size: 1.05rem; }
}@media (max-width: 560px) {
  .hr-panel { padding: .7rem .8rem; }
  .hr-panel .session-bar { gap: .35rem; margin-bottom: .3rem; }
  .hr-panel .session-bar button { min-height: 40px; padding: .3rem .7rem; font-size: .95rem; }
  .hr-panel .session-right { flex-wrap: nowrap; gap: .4rem; }
  .hr-panel progress { margin: .2rem 0; }
  .hr-head { margin-top: .2rem; }
  .hr-prompt { margin: .15rem 0 .45rem; font-size: 1.1rem; }
  .hr-choices { gap: .35rem; margin-top: .1rem; }
  button.hr-choice { min-height: 46px; padding: .35rem .5rem; font-size: 1rem; }
  .hr-panel .feedback { margin: .35rem 0; font-size: .95rem; min-height: 1.2em; }
  .hr-panel > button#hrNext { min-height: 46px; }
}@media (max-width: 560px) {
  .hc-panel .session-bar > button, .hc-panel button.sound-toggle { min-height: 36px; padding: .25rem .6rem; font-size: .88rem; }
  .hc-panel .session-right { gap: .45rem; font-size: .9rem; flex-wrap: nowrap; }
  .hc-panel > progress { margin: .4rem 0 .5rem; height: .5rem; }
  .hc-stem { font-size: 1.15rem; }
  .hc-panel .sa-head { margin-top: .4rem; }
  .hc-panel .pn-rule { padding: .45rem .65rem; margin-bottom: .5rem; }
}

/* ---- Benzetme (benzetme.js) ---- */
button.topic-bz { background: #fff3d6; color: #16342e; border-color: var(--line); }
.topic-bz .topic-art { background: linear-gradient(135deg, #ffe08a, #ffb877); }
.bz-panel { background: linear-gradient(180deg, #fff7e0 0%, #ffffff 55%); }
.bz-panel .pt-points, .bz-panel .pt-guest { margin: .5rem 0 .6rem; }
.bz-panel .pt-guest { font-size: 1rem; }
.bz-card { border-color: #f2c76a; box-shadow: 0 6px 0 #fae3ad; margin-top: .6rem; }
.bz-panel .op-head .eyebrow { margin: 0; color: #a45a00; font-size: .8rem; }
.bz-stem {
  margin: .5rem 0 .2rem; outline: none; color: #16342e; overflow-wrap: anywhere; text-wrap: balance;
  font: 800 clamp(1.3rem, 4.6vw, 1.8rem)/1.35 'Baloo 2', 'Segoe UI', system-ui, sans-serif;
}
/* "gibi" sözcüğü: benzetmenin ipucu */
.bz-gibi { padding: 0 .28em; border-radius: .4em; background: #ffe9a8; color: #8a4b00; }
/* Boşluk ve doldurulmuş hâli */
.bz-blank {
  display: inline-block; min-width: 3.2em; padding: 0 .2em; text-align: center; letter-spacing: .1em;
  color: #c4572e; border-bottom: 3px dashed #eaa27f; line-height: 1.15;
}
.bz-full {
  display: inline-block; padding: 0 .22em; border-radius: .4em; color: #145c31; background: #d5f6df; border-bottom: 3px solid #9fd9b4;
  animation: bzPop .35s ease 1;
}
@keyframes bzPop { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
/* Şıklar: tek sütun, 3 büyük düğme */
.bz-choices button.op-choice { border-color: #f0d79b; min-height: 60px; }
.bz-choices button.op-choice::before { background: #fff0c4; color: #8a4b00; }
/* Yanlış cevaptan sonra kısa açıklama */
.bz-explain {
  display: flex; align-items: flex-start; gap: .5rem; margin: .55rem 0 0; padding: .5rem .8rem;
  border: 2px solid #cfe3a0; border-left-width: 6px; border-radius: .9rem;
  background: linear-gradient(135deg, #fffbe0, #eefbe3); color: #2f4a12;
  font: 650 1.02rem/1.35 'Baloo 2', 'Segoe UI', system-ui, sans-serif; overflow-wrap: anywhere;
}
.bz-explain[hidden] { display: none; }
.bz-explain::before { content: '💡'; flex: 0 0 auto; line-height: 1.3; }
.bz-explain b { color: #145c31; }
main:has(> #bzPractice:not([hidden])) { margin-top: clamp(.5rem, 2vw, 1.5rem); }
@media (prefers-reduced-motion: reduce) { .bz-full { animation: none; } }
@media (max-width: 560px) {
  /* Soru + 3 şık + açıklama + Sonraki 360x640'ta sığsın */
  main:has(> #bzPractice:not([hidden])) { width: min(100% - 1rem, 62rem); margin-top: .5rem; margin-bottom: .5rem; }
  .bz-panel .session-bar > button, .bz-panel button.sound-toggle { font-size: 1rem; }
  .bz-panel .session-right { font-size: 1rem; }
  .bz-panel .pt-points, .bz-panel .pt-guest { margin: .35rem 0 .4rem; }
  .bz-card { margin-top: .4rem; box-shadow: 0 4px 0 #fae3ad; }
  .bz-stem { margin: .3rem 0 .1rem; font-size: clamp(1.2rem, 5.6vw, 1.45rem); line-height: 1.28; }
  .bz-choices button.op-choice { min-height: 56px; font-size: 1.05rem; }
  .bz-explain { margin-top: .4rem; padding: .4rem .65rem; font-size: 1rem; line-height: 1.3; }
  .bz-panel .op-foot .feedback { font-size: 1rem; }
}

/* ---- Cümle Tamamlama (cumle-tamamlama.js) ---- */
button.topic-ct { background: #e6f7f4; color: #16342e; border-color: var(--line); }
.topic-ct .topic-art { background: linear-gradient(135deg, #bfeee4, #fff1b8); }
.ct-panel { background: linear-gradient(180deg, #eafaf6 0%, #ffffff 55%); }
.ct-panel > .pt-points { margin-top: .6rem; }
.ct-panel .ct-card { margin-top: .8rem; border-color: #8fd6c6; box-shadow: 0 6px 0 #cdeee6; }
.ct-panel .op-head .eyebrow { margin: 0; color: #0b6b5a; }
.ct-panel .op-head .eyebrow:empty { display: none; }
.ct-q { margin: .35rem 0 0; color: #0b5a4c; }
.ct-prompt {
  margin: .5rem 0 .1rem; padding: .6rem .85rem; outline: none; color: #16342e; overflow-wrap: anywhere; text-wrap: balance;
  background: #fffdf5; border: 2px dashed #efd9a0; border-radius: .9rem;
  font: 800 clamp(1.35rem, 4.8vw, 1.95rem)/1.5 'Baloo 2', 'Segoe UI', system-ui, sans-serif;
}
.ct-prompt:empty { display: none; }
.ct-blank {
  display: inline-block; min-width: 3em; margin: 0 .12em; padding: 0 .3em; text-align: center; line-height: 1.25;
  color: #b35114; background: #fff3e8; border: 2px dashed #e0a070; border-bottom: 4px solid #c4572e; border-radius: .45rem;
}
.ct-blank.ct-filled { color: #145c31; background: #d5f6df; border: 2px solid #21844c; border-bottom-width: 4px; animation: ctPop .35s ease 1; }
@keyframes ctPop { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
/* Şıklar tek sözcük: geniş ekranda 3'ü yan yana */
.ct-panel .ct-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
button.ct-choice { min-height: 62px; border-color: #b9e2d8; font-size: clamp(1.1rem, 3.6vw, 1.35rem); font-weight: 700; overflow-wrap: anywhere; }
button.ct-choice::before { background: #dcf5ef; color: #0b6b5a; }
main:has(> #ctPractice:not([hidden])) { margin-top: clamp(.5rem, 2vw, 1.5rem); }
@media (prefers-reduced-motion: reduce) { .ct-blank.ct-filled { animation: none; } }
@media (max-width: 560px) {
  /* Soru + cümle + 3 şık + Sonraki tek ekrana sığsın */
  main:has(> #ctPractice:not([hidden])) { width: min(100% - 1rem, 62rem); margin-top: .5rem; margin-bottom: .5rem; }
  .ct-panel > .pt-points { margin-top: .3rem; }
  .ct-panel .ct-card { margin-top: .4rem; margin-bottom: .45rem; padding: .4rem .6rem .5rem; box-shadow: 0 4px 0 #cdeee6; }
  .ct-q { margin-top: .15rem; font-size: 1.02rem; line-height: 1.2; }
  .ct-prompt { margin-top: .3rem; padding: .35rem .55rem; font-size: clamp(1.12rem, 5.2vw, 1.32rem); line-height: 1.35; }
  .ct-blank { min-width: 2.4em; padding: 0 .2em; border-width: 1px; border-bottom-width: 3px; line-height: 1.15; }
  .ct-blank.ct-filled { border-width: 1px; border-bottom-width: 3px; }
  .ct-panel .ct-choices { grid-template-columns: minmax(0, 1fr); gap: .32rem; }
  button.ct-choice { min-height: 50px; padding-block: .2rem; font-size: 1.12rem; line-height: 1.2; }
  .ct-panel .op-foot { margin-top: .35rem; }
  .ct-panel .op-foot .feedback { font-size: .88rem; line-height: 1.2; }
  .ct-panel .op-foot > button { min-height: 44px; }
}

/* ---- Şiir Başlığı (siir-baslik.js) ---- */
button.topic-sb { background: #fdeef6; color: #16342e; border-color: var(--line); }
.topic-sb .topic-art { background: linear-gradient(135deg, #f9cfe3, #e3dcff); }
.sb-panel { background: linear-gradient(180deg, #fdf0f7 0%, #ffffff 55%); }
.sb-panel > .pt-points { margin-top: .6rem; }
.sb-panel .sb-card { margin-top: .8rem; border-color: #e8a9c9; box-shadow: 0 6px 0 #f7d7e7; }
.sb-panel .op-head .eyebrow { margin: 0; color: #9c2f6b; }
.sb-panel .op-head .eyebrow:empty { display: none; }
.sb-q { margin: .35rem 0 0; color: #7d2457; }
/* Cevaptan sonra şiirin üstünde görünen başlık */
.sb-reveal {
  margin: .5rem 0 0; padding: .15rem .8rem; text-align: center; color: #145c31; background: #d5f6df;
  border: 2px solid #21844c; border-radius: 999px; overflow-wrap: anywhere;
  font: 800 clamp(1.2rem, 4.4vw, 1.6rem)/1.3 'Baloo 2', 'Segoe UI', system-ui, sans-serif; animation: sbPop .35s ease 1;
}
.sb-reveal[hidden] { display: none; }
@keyframes sbPop { 0% { transform: scale(.9); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
/* Dörtlük: her dize ayrı satır, solda ince çizgi */
.sb-poem {
  position: relative; margin: .55rem 0 .1rem; padding: .55rem .9rem .55rem 1.15rem; outline: none; color: #3a2440;
  background: #fffafd; border-radius: .9rem; border-left: 5px solid #e39ac0;
  font: 700 clamp(1.15rem, 4.2vw, 1.55rem)/1.5 'Baloo 2', 'Segoe UI', system-ui, sans-serif;
}
.sb-poem:empty { display: none; }
.sb-line { display: block; overflow-wrap: anywhere; padding-left: .9em; text-indent: -.9em; }
.sb-choices button.op-choice { min-height: 58px; border-color: #efc9dd; font-weight: 700; }
.sb-choices button.op-choice::before { background: #fbe2ee; color: #9c2f6b; }
main:has(> #sbPractice:not([hidden])) { margin-top: clamp(.5rem, 2vw, 1.5rem); }
@media (prefers-reduced-motion: reduce) { .sb-reveal { animation: none; } }
@media (max-width: 560px) {
  /* Soru + 4 dize + 3 başlık + Sonraki tek ekrana sığsın */
  main:has(> #sbPractice:not([hidden])) { width: min(100% - 1rem, 62rem); margin-top: .5rem; margin-bottom: .5rem; }
  .sb-panel > .pt-points { margin-top: .3rem; }
  .sb-panel .sb-card { margin-top: .4rem; margin-bottom: .4rem; padding: .35rem .55rem .45rem; box-shadow: 0 4px 0 #f7d7e7; }
  .sb-q { margin-top: .1rem; font-size: 1rem; line-height: 1.2; }
  .sb-reveal { margin-top: .25rem; padding: .05rem .6rem; font-size: 1.05rem; line-height: 1.25; border-width: 1px; }
  .sb-poem { margin-top: .25rem; padding: .25rem .4rem .25rem .6rem; font-size: clamp(.94rem, 4.2vw, 1.06rem); line-height: 1.16; border-left-width: 4px; }
  .sb-line + .sb-line { margin-top: .12rem; }
  .sb-panel .session-bar { margin-bottom: 0; }
  .sb-panel .sb-choices { gap: .25rem; }
  .sb-panel .sb-card { margin-bottom: .35rem; padding-block: .3rem .4rem; }
  .sb-choices button.op-choice { min-height: 42px; padding-block: .1rem; font-size: 1.02rem; line-height: 1.2; }
  .sb-choices button.op-choice::before { width: 1.6rem; height: 1.6rem; font-size: .9rem; }
  .sb-panel .op-foot { margin-top: .3rem; }
  .sb-panel .op-foot .feedback { font-size: .86rem; line-height: 1.2; }
  .sb-panel .op-foot > button { min-height: 42px; }
}
button.topic-mixed { background: #dbeefe; color: #16342e; border-color: var(--line); }
.topic-mixed .topic-art {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: .7rem;
  background: #b9def8;
  color: #1d5574;
  font-size: clamp(2rem, 6vw, 4rem);
}
#mixedStatus:not(:empty), #mixedBar { margin-bottom: .8rem; }

@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
  main:has(> #topics:not([hidden])) {
    width: calc(75% + min(100% - 2rem, 62rem) / 4);
  }
  #topics {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .8rem;
    --card-width: calc((75vw + min(100vw - 2rem, 62rem) / 4 - 4rem) / 6);
  }
  /* Kart oranı sabit: her ekran genişliğinde aynı görünüm. */
  #topics .topic {
    min-width: 0;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: .64rem;
    padding: .64rem;
    aspect-ratio: 3 / 4;
  }
  #topics .topic img, #topics .topic-mixed .topic-art { height: 100%; min-height: 0; aspect-ratio: auto; }
  #topics .topic img { object-fit: contain; }
  #topics .topic-title { font-size: clamp(.82rem, calc(var(--card-width) * .072), 1.15rem); overflow-wrap: anywhere; }
}
