/* ============================================================
   Flora ile İngilizce — ders sitesi
   Renkler: lacivert / kırmızı / altın, açık zemin
   ============================================================ */
:root {
  --navy: #15173f;
  --navy-2: #2b2e6b;
  --navy-soft: #e7e5f1;
  --red: #e0654f;
  --red-soft: #fbe6e1;
  --lav: #7d75ad;
  --lav-soft: #e6e4f0;
  --beige: #ece7de;
  --peach: #e8c6b9;
  --sage: #dfe5d6;
  --gold: #e6b54a;
  --gold-2: #c9962a;
  --gold-soft: #fbf1d9;
  --green: #2f9e6a;
  --green-soft: #e3f5ec;
  --bg: #f7f6f2;
  --card: #ffffff;
  --ink: #1d2340;
  --muted: #6b7190;
  --line: #e6e2d9;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 2px 0 rgba(31, 42, 90, .06), 0 8px 24px rgba(31, 42, 90, .07);
  --shadow-lift: 0 3px 0 rgba(31, 42, 90, .08), 0 14px 32px rgba(31, 42, 90, .12);
  --font: "DM Sans", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Manrope", "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 3.5vw, 1.7rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--navy-2); }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- üst çubuk ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 246, 242, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); min-width: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: var(--navy); color: var(--gold);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18);
}
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-name span { color: var(--red); }
.top-stats { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-weight: 800; font-size: .92rem; white-space: nowrap;
}
.pill.xp { color: var(--gold-2); }
.pill.streak { color: var(--red); }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line);
  font-size: 1.05rem;
}
.icon-btn:hover { border-color: var(--navy-2); }

/* ---------- genel düzen ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 20px 16px 80px; }
.card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 22px;
}
.card + .card { margin-top: 16px; }
.grid { display: grid; gap: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 14px;
  font-weight: 800; font-size: 1rem; letter-spacing: .01em;
  background: var(--navy); color: #fff;
  box-shadow: 0 4px 0 #0b0c26;
  transition: transform .08s ease, box-shadow .08s ease, background .15s;
  text-decoration: none; user-select: none;
}
.btn:hover { background: var(--navy-2); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #0b0c26; }
.btn.red { background: var(--red); box-shadow: 0 4px 0 #b94a37; }
.btn.red:active { box-shadow: 0 1px 0 #b94a37; }
.btn.gold { background: var(--gold); color: var(--navy); box-shadow: 0 4px 0 var(--gold-2); }
.btn.gold:active { box-shadow: 0 1px 0 var(--gold-2); }
.btn.green { background: var(--green); box-shadow: 0 4px 0 #1f7a4f; }
.btn.ghost { background: var(--card); color: var(--navy); border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line); }
.btn.ghost:hover { border-color: var(--navy-2); }
.btn.small { padding: 8px 14px; font-size: .92rem; border-radius: 12px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.speak-btn {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--navy-soft); color: var(--navy);
  font-size: 1.1rem; transition: transform .1s;
}
.speak-btn:hover { background: #dbe0f3; }
.speak-btn:active { transform: scale(.92); }
.speak-btn.slow { background: var(--gold-soft); }
.speak-btn.playing { animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(45, 59, 120, .12); } }

.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-weight: 800; font-size: .78rem; letter-spacing: .04em;
  background: var(--navy-soft); color: var(--navy);
}
.tag.a1 { background: #e3f5ec; color: #1f7a4f; }
.tag.a2 { background: var(--gold-soft); color: #8a6414; }
.tag.b1 { background: var(--red-soft); color: #a52626; }

/* ---------- ana sayfa ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
  border-radius: 24px; padding: 28px 24px;
  box-shadow: var(--shadow-lift);
}
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero p { color: #d6dbf0; max-width: 560px; }
.hero .deco {
  position: absolute; right: -30px; top: -30px; width: 220px; height: 220px;
  border-radius: 50%; background: var(--gold); opacity: .16;
}
.hero .deco.two { right: 70px; top: auto; bottom: -70px; width: 150px; height: 150px; background: var(--red); opacity: .22; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; position: relative; }
.hero-stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 10px 14px; min-width: 104px; }
.hero-stat b { display: block; font-family: var(--font-display); font-size: 1.45rem; color: var(--gold); line-height: 1.1; }
.hero-stat span { font-size: .85rem; color: #d6dbf0; }

.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 12px; flex-wrap: wrap; }
.section-title h2 { margin: 0; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: .9rem;
  background: var(--card); border: 2px solid var(--line); color: var(--muted);
}
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }

.lesson-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.lesson-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.lesson-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.lesson-thumb {
  aspect-ratio: 16 / 9; position: relative;
  display: grid; place-items: center; font-size: 3.4rem;
  background: linear-gradient(135deg, var(--navy-soft), var(--gold-soft));
}
.lesson-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lesson-thumb .tag { position: absolute; left: 12px; top: 12px; }
.lesson-thumb .done-badge {
  position: absolute; right: 12px; top: 12px; background: var(--green); color: #fff;
  border-radius: 999px; padding: 3px 10px; font-weight: 800; font-size: .78rem;
}
.lesson-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.lesson-body h3 { margin: 0; }
.lesson-body .tr { color: var(--muted); font-size: .95rem; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.05rem; }
.stars .off { color: #e3dccb; }
.progress { height: 10px; border-radius: 999px; background: #efeadf; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--red)); border-radius: inherit; transition: width .5s ease; }
.lesson-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); font-weight: 700; }
.lesson-foot .progress { flex: 1; }

.continue-card { display: flex; gap: 16px; align-items: center; margin-top: 16px; }
.continue-card .emoji { font-size: 2.6rem; flex: none; }
.continue-card .grow { flex: 1; min-width: 0; }

.badge-shelf { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.badge {
  text-align: center; padding: 16px 10px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
}
.badge .b-icon { font-size: 2.2rem; display: block; margin-bottom: 4px; }
.badge b { display: block; font-size: .95rem; color: var(--navy); }
.badge small { color: var(--muted); font-size: .8rem; line-height: 1.3; display: block; }
.badge.locked { opacity: .5; filter: grayscale(1); }

.install-banner {
  display: flex; align-items: center; gap: 14px; margin-top: 16px;
  background: var(--gold-soft); border: 1px solid #f0dfb2;
}
.install-banner .grow { flex: 1; }

/* ---------- ders sayfası ---------- */
.lesson-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.lesson-head .grow { flex: 1; min-width: 220px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--muted); text-decoration: none; margin-bottom: 10px; }
.back-link:hover { color: var(--navy); }
.ring { width: 76px; height: 76px; flex: none; position: relative; }
.ring svg { transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); color: var(--navy); font-size: 1.1rem; }

.stepper {
  position: sticky; top: 59px; z-index: 30;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 12px 2px; margin: 14px -2px 4px;
  background: linear-gradient(var(--bg) 80%, rgba(247,246,242,0));
}
.stepper::-webkit-scrollbar { display: none; }
.step {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px; border-radius: 999px;
  background: var(--card); border: 2px solid var(--line);
  font-weight: 800; font-size: .92rem; color: var(--muted);
  transition: border-color .15s, background .15s;
}
.step .num {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #f1ece1; font-size: .85rem; color: var(--muted);
}
.step.active { border-color: var(--navy); color: var(--navy); }
.step.active .num { background: var(--navy); color: #fff; }
.step.done .num { background: var(--green); color: #fff; }
.step.locked { opacity: .55; }

.panel { animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel-head .p-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; flex: none; background: var(--gold-soft); }
.panel-head h2 { margin: 0; }
.panel-head p { margin: 0; color: var(--muted); font-size: .95rem; }
.panel-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.video-box { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.video-box iframe, .video-box .video-ph { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-ph { display: grid; place-items: center; text-align: center; color: #fff; padding: 20px; background: radial-gradient(circle at 30% 20%, var(--navy-2), var(--navy)); }
.video-ph .big { font-size: 3.4rem; }
.video-ph p { color: #d6dbf0; margin: 6px 0 0; }

.summary-tr { background: var(--navy-soft); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 14px; }
.learn-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.learn-list li { display: flex; gap: 10px; align-items: flex-start; }
.learn-list li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-weight: 900; font-size: .85rem; margin-top: 2px; }
.lang-toggle { display: inline-flex; background: #f1ece1; border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 12px; }
.lang-toggle button { padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: .88rem; color: var(--muted); }
.lang-toggle button.on { background: var(--card); color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.vocab-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.vocab-item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius-sm); background: #fdfcf8; border: 1px solid var(--line); }
.vocab-item .v-emoji { font-size: 1.9rem; flex: none; width: 44px; text-align: center; }
.vocab-item .grow { flex: 1; min-width: 0; }
.vocab-item .grow > b { display: block; color: var(--navy); font-size: 1.05rem; }
.vocab-item small { color: var(--muted); display: block; line-height: 1.35; }

/* ---------- oyun menüsü ---------- */
.game-menu { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
.game-tile {
  text-align: left; padding: 16px; border-radius: var(--radius);
  background: var(--card); border: 2px solid var(--line);
  display: flex; flex-direction: column; gap: 4px; position: relative;
  transition: transform .12s, border-color .12s;
}
.game-tile:hover { transform: translateY(-2px); border-color: var(--navy-2); }
.game-tile .g-icon { font-size: 2rem; }
.game-tile b { color: var(--navy); font-size: 1.05rem; }
.game-tile small { color: var(--muted); line-height: 1.35; }
.game-tile .g-best { position: absolute; right: 12px; top: 12px; font-size: .8rem; font-weight: 800; color: var(--green); }

.game-stage { min-height: 320px; scroll-margin-top: 140px; }
.game-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.game-top .progress { flex: 1; min-width: 120px; }
.game-top .counter { font-weight: 800; color: var(--muted); font-size: .92rem; }

/* kartlar */
.flash-wrap { perspective: 1200px; max-width: 420px; margin: 0 auto; }
.flash {
  position: relative; height: 270px; transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.3,.7,.3,1); cursor: pointer;
}
.flash.flipped { transform: rotateY(180deg); }
.flash .face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 22px; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px;
  border: 2px solid var(--line); background: var(--card); box-shadow: var(--shadow-lift);
}
.flash .back { transform: rotateY(180deg); background: var(--navy); color: #fff; border-color: var(--navy); }
.flash .f-emoji { font-size: 3.6rem; line-height: 1; }
.flash .f-word { font-family: var(--font-display); font-size: 2rem; color: var(--navy); font-weight: 600; }
.flash .back .f-word { color: var(--gold); }
.flash .f-ex { color: #d6dbf0; font-size: .98rem; }
.flash .f-hint { color: var(--muted); font-size: .85rem; margin-top: 8px; }

/* seçenekler */
.options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.opt {
  padding: 14px 16px; border-radius: 14px; text-align: left; font-weight: 700;
  background: var(--card); border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line);
  transition: transform .06s, border-color .12s, background .12s;
  display: flex; align-items: center; gap: 10px;
}
.opt:hover { border-color: var(--navy-2); }
.opt:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.opt .o-key { width: 28px; height: 28px; flex: none; border-radius: 8px; background: #f1ece1; display: grid; place-items: center; font-size: .85rem; color: var(--muted); }
.opt.right { background: var(--green-soft); border-color: var(--green); box-shadow: 0 3px 0 var(--green); }
.opt.right .o-key { background: var(--green); color: #fff; }
.opt.wrong { background: var(--red-soft); border-color: var(--red); box-shadow: 0 3px 0 var(--red); animation: shake .35s; }
.opt.wrong .o-key { background: var(--red); color: #fff; }
.opt.dim { opacity: .55; }
.options.locked .opt { pointer-events: none; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.prompt-big { text-align: center; margin: 10px 0 20px; }
.prompt-big .p-emoji { font-size: 3.4rem; display: block; line-height: 1.1; }
.prompt-big .p-word { font-family: var(--font-display); font-size: 1.9rem; color: var(--navy); }
.listen-big {
  width: 104px; height: 104px; border-radius: 50%; margin: 6px auto 18px; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-size: 2.6rem; box-shadow: 0 6px 0 #141c40;
}
.listen-big:active { transform: translateY(4px); box-shadow: 0 2px 0 #141c40; }

/* geri bildirim */
.feedback { margin-top: 14px; padding: 14px 16px; border-radius: 14px; font-weight: 700; display: flex; gap: 10px; align-items: flex-start; animation: rise .2s ease; }
.feedback.ok { background: var(--green-soft); color: #1d6b46; }
.feedback.no { background: var(--red-soft); color: #8f2222; }
.feedback .f-why { font-weight: 600; display: block; margin-top: 4px; color: var(--ink); opacity: .85; }

/* eşleştirme */
.match-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.match-col { display: grid; gap: 10px; align-content: start; }
.m-item {
  padding: 14px 12px; border-radius: 14px; font-weight: 800; text-align: center; min-height: 56px;
  background: var(--card); border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line);
  transition: transform .1s, opacity .3s, border-color .12s, background .12s;
}
.m-item.sel { border-color: var(--navy); background: var(--navy-soft); }
.m-item.good { border-color: var(--green); background: var(--green-soft); opacity: 0; transform: scale(.9); pointer-events: none; }
.m-item.bad { border-color: var(--red); background: var(--red-soft); animation: shake .35s; }

/* yazım */
.spell-input {
  width: 100%; max-width: 420px; display: block; margin: 0 auto;
  font-family: var(--font-display); font-size: 1.6rem; text-align: center; letter-spacing: .04em;
  padding: 12px 16px; border-radius: 16px; border: 3px solid var(--line); background: #fff; color: var(--navy); outline: none;
}
.spell-input:focus { border-color: var(--navy-2); }
.spell-input.ok { border-color: var(--green); background: var(--green-soft); }
.spell-input.no { border-color: var(--red); animation: shake .35s; }
.spell-mask { text-align: center; font-family: ui-monospace, Menlo, monospace; font-size: 1.4rem; letter-spacing: .3em; color: var(--muted); margin: 10px 0; }

/* cümle kur */
.scramble-target {
  min-height: 70px; padding: 12px; border-radius: 16px; border: 3px dashed var(--line);
  display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; margin-bottom: 14px; background: #fdfcf8;
}
.scramble-target.ok { border-color: var(--green); border-style: solid; background: var(--green-soft); }
.scramble-target.no { border-color: var(--red); animation: shake .35s; }
.scramble-bank { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 52px; }
.tile {
  padding: 10px 14px; border-radius: 12px; font-weight: 800; font-size: 1.05rem;
  background: var(--card); border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line);
  transition: transform .08s;
}
.tile:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.scramble-target .tile { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 3px 0 #141c40; }
.scramble-tr { text-align: center; color: var(--muted); font-weight: 700; margin-bottom: 14px; }

/* hafıza */
.memory-grid { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); max-width: 560px; margin: 0 auto; }
@media (max-width: 480px) { .memory-grid { grid-template-columns: repeat(3, 1fr); } .mem { aspect-ratio: 1 / .85; } }
.mem { aspect-ratio: 1 / 1.05; perspective: 600px; }
.mem-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .4s; }
.mem.open .mem-inner, .mem.found .mem-inner { transform: rotateY(180deg); }
.mem-face {
  position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: grid; place-items: center; text-align: center; padding: 6px; font-weight: 800; font-size: .92rem; line-height: 1.2;
}
.mem-front { background: var(--navy); color: var(--gold); font-size: 1.6rem; box-shadow: 0 4px 0 #0b0c26; }
.mem-back { background: var(--card); border: 2px solid var(--line); transform: rotateY(180deg); color: var(--navy); }
.mem.found .mem-back { background: var(--green-soft); border-color: var(--green); }

/* sonuç ekranı */
.result { text-align: center; padding: 18px 6px; }
.result .r-icon { font-size: 4rem; display: block; animation: pop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.result .r-score { font-family: var(--font-display); font-size: 2.4rem; color: var(--navy); }
.result .r-xp { display: inline-block; margin: 6px 0 16px; padding: 6px 14px; border-radius: 999px; background: var(--gold-soft); color: #8a6414; font-weight: 900; }
.result .btn-row { justify-content: center; }

/* grammar */
.rule-box { background: var(--gold-soft); border: 1px solid #f0dfb2; border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 14px; }
.rule-box p:last-child { margin: 0; }
.g-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 10px 0 16px; font-size: .97rem; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); }
.g-table th { background: var(--navy); color: #fff; text-align: left; padding: 10px 12px; font-weight: 800; }
.g-table td { padding: 9px 12px; border-top: 1px solid var(--line); background: #fff; }
.g-table tr:nth-child(even) td { background: #fdfcf8; }
.hl { color: var(--red); font-weight: 900; }
.table-scroll { overflow-x: auto; }
.q-card { padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fdfcf8; margin-bottom: 12px; }
.q-card .q-text { font-weight: 800; margin-bottom: 10px; color: var(--navy); }
.q-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--navy); color: #fff; font-size: .82rem; margin-right: 8px; vertical-align: 1px; }
.gap-input {
  display: inline-block; width: 140px; padding: 6px 10px; margin: 0 4px; border-radius: 10px; border: 2px solid var(--line);
  font-weight: 800; color: var(--navy); background: #fff; outline: none; text-align: center;
}
.gap-input:focus { border-color: var(--navy-2); }
.gap-input.ok { border-color: var(--green); background: var(--green-soft); }
.gap-input.no { border-color: var(--red); background: var(--red-soft); }
.score-bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--navy-soft); margin-top: 6px; font-weight: 800; flex-wrap: wrap; }

/* listening / reading */
.audio-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius-sm); background: var(--navy); color: #fff; margin-bottom: 14px; flex-wrap: wrap; }
.audio-card .grow { flex: 1; min-width: 160px; }
.audio-card b { color: var(--gold); display: block; }
.audio-card small { color: #d6dbf0; }
.audio-card .btn.gold { box-shadow: 0 3px 0 var(--gold-2); }
.transcript { background: #fdfcf8; border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 14px; }
.transcript .line-now { background: var(--gold-soft); border-radius: 6px; }
.reading-text { font-size: 1.08rem; line-height: 1.75; background: #fdfcf8; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 16px; }
.reading-text h3 { margin-bottom: .6em; }
.gloss { border-bottom: 2px dotted var(--gold-2); cursor: pointer; font-weight: 700; color: var(--navy); }
.gloss:hover { background: var(--gold-soft); }
.tf-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tf-row .opt { flex: 1; min-width: 120px; justify-content: center; }

/* diyalog */
.chat { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--radius); background: #f6f2e8; min-height: 260px; max-height: 60vh; overflow-y: auto; }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 88%; animation: rise .25s ease; }
.msg .avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; background: var(--card); border: 2px solid var(--line); }
.msg .bubble { padding: 10px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.msg .bubble .tr { display: block; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.msg .bubble .speak-mini { margin-left: 6px; font-size: .95rem; vertical-align: -1px; }
.msg.bot .bubble { border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg.me .bubble { background: var(--navy); color: #fff; border-color: var(--navy); border-bottom-right-radius: 6px; }
.msg.me .avatar { background: var(--gold-soft); }
.msg.note { align-self: center; max-width: 100%; }
.msg.note .bubble { background: var(--gold-soft); border-color: #f0dfb2; font-size: .93rem; text-align: center; }
.typing { display: inline-flex; gap: 4px; padding: 6px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.answer-zone { margin-top: 14px; padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.mic-btn {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto;
  background: var(--red); color: #fff; font-size: 2.1rem; box-shadow: 0 5px 0 #a52626; transition: transform .08s;
}
.mic-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #a52626; }
.mic-btn.listening { animation: mic 1.2s infinite; }
@keyframes mic { 50% { box-shadow: 0 5px 0 #a52626, 0 0 0 14px rgba(214, 58, 58, .18); } }
.mic-label { text-align: center; font-weight: 800; color: var(--muted); margin: 10px 0 4px; font-size: .95rem; }
.type-row { display: flex; gap: 8px; margin-top: 12px; }
.type-row input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); outline: none; background: #fff; }
.type-row input:focus { border-color: var(--navy-2); }
.hint-box { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--navy-soft); font-size: .95rem; }
.hint-box b { color: var(--navy); }

/* toast & modal */
.toast-zone { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 14px; font-weight: 800; box-shadow: var(--shadow-lift); animation: toast .3s ease; display: flex; gap: 10px; align-items: center; }
.toast.gold { background: var(--gold); color: var(--navy); }
@keyframes toast { from { opacity: 0; transform: translateY(14px); } }
.modal-back { position: fixed; inset: 0; z-index: 90; background: rgba(20, 28, 64, .45); display: grid; place-items: center; padding: 20px; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--card); border-radius: 24px; padding: 28px 24px; max-width: 420px; width: 100%; text-align: center; box-shadow: var(--shadow-lift); animation: pop .4s cubic-bezier(.3,1.5,.5,1); }
.modal .m-icon { font-size: 4rem; display: block; }
.modal h2 { margin: 8px 0 6px; }
.modal .btn-row { justify-content: center; margin-top: 18px; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; }

.footer { text-align: center; color: var(--muted); font-size: .88rem; padding: 30px 16px 40px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .card { padding: 16px; }
  .wrap { padding: 14px 12px 70px; }
  .hero { padding: 22px 18px; border-radius: 20px; }
  .brand-name { display: none; }
  .stepper { top: 59px; }
  .options { grid-template-columns: 1fr; }
  .step span.lbl { display: none; }
  .step.active span.lbl { display: inline; }
  .flash { height: 250px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================
   Üst menü ve marka
   ============================================================ */
.brand-logo { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.brand-type { height: 40px; width: auto; flex: none; }
.topbar-inner { padding: 10px 20px; }
.top-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.top-nav a, .top-nav button {
  padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: 1rem;
  color: var(--navy); text-decoration: none; white-space: nowrap; font-family: var(--font);
}
.top-nav a:hover, .top-nav button:hover { background: var(--lav-soft); }
.top-nav a.on { background: var(--lav-soft); }
.top-nav a[data-nav="home"] { display: none; }
.top-nav .nav-cta { color: var(--red); }
.top-stats { margin-left: 8px; }
body[data-view="home"] .top-stats { display: none; }
@media (max-width: 760px) {
  .brand-type { height: 40px; }
  .brand-logo { width: 38px; height: 38px; }
  .top-nav a, .top-nav button { padding: 6px 7px; font-size: .9rem; }
  .top-nav a[data-nav="about"] { display: none; }
  body:not([data-view="home"]) .top-nav { display: none; }
  body:not([data-view="home"]) .top-stats { margin-left: auto; }
}
@media (max-width: 400px) { .brand-type { height: 38px; } .top-nav a, .top-nav button { padding: 6px 5px; font-size: .86rem; } }

/* ============================================================
   Tanıtım ana sayfası
   ============================================================ */
.landing { --ink: var(--navy); }
.landing .sec { margin-top: 96px; }
.kicker {
  font-family: var(--font); font-weight: 700; font-size: .78rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 18px;
}
.kicker.dot::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--red); margin-right: 14px; vertical-align: 1px; }
.kicker.light { color: #c9c4e6; }
.display {
  font-family: var(--font-display); font-weight: 800; color: var(--navy);
  font-size: clamp(3rem, 8.4vw, 6.2rem); line-height: .98; letter-spacing: -.05em; margin: 0 0 28px;
}
.display span { display: block; }
.display .accent, .display-2 .accent { color: var(--lav); }
.display-2 {
  font-family: var(--font-display); font-weight: 800; color: var(--navy);
  font-size: clamp(2.1rem, 5.2vw, 3.7rem); line-height: 1.04; letter-spacing: -.045em; margin: 0 0 20px;
}
.display-2 span { display: block; }
.lead2 { font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.7; color: #6c6a78; max-width: 640px; }
.lead2.narrow { max-width: 520px; }
.arr { display: inline-block; font-size: .95em; }

.btn-dark, .btn-cream {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 22px 30px; border-radius: 8px; font-weight: 700; font-size: 1.08rem; text-decoration: none;
  background: var(--navy); color: #fff; min-width: 260px; transition: transform .15s, background .15s;
}
.btn-dark:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn-cream { background: #f3eee5; color: var(--navy); justify-content: center; gap: 14px; }
.btn-cream:hover { background: #fff; transform: translateY(-2px); }
.text-link { font-weight: 700; font-size: 1.08rem; color: var(--navy); text-decoration: none; padding: 0; }
.text-link:hover { color: var(--lav); }
.text-link.strong { display: inline-block; margin: 2px 0 10px; }
.text-link.light { color: #e7e4f6; }
.text-link.light:hover { color: #fff; }
.cta-row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; margin-top: 8px; }
.cta-row.center { justify-content: center; }
.checks { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 30px; color: #6c6a78; font-size: 1.02rem; }

/* giriş */
.hero2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 40px; }
.hero-art {
  position: relative; aspect-ratio: 1 / 1.08; border-radius: 120px 28px 28px 28px; overflow: hidden;
  background: var(--lav-soft); display: grid; place-items: center;
}
.orbit { position: absolute; inset: 0; }
.orbit svg { width: 100%; height: 100%; }
.orbit ellipse { fill: none; stroke: #b8b2d6; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.art-top { position: absolute; top: 9%; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 14%; font-weight: 700; font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: var(--navy); }
.art-logo { width: 58%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 30px 60px rgba(21, 23, 63, .25); position: relative; z-index: 1; background: var(--navy); display: grid; place-items: center; color: #fff; font-size: 6rem; font-family: var(--font-display); }
.art-logo img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.note {
  position: absolute; z-index: 2; background: #f7f3ea; border-radius: 12px; padding: 16px 20px;
  box-shadow: 0 14px 30px rgba(21, 23, 63, .12); color: var(--navy); font-weight: 700; display: flex; align-items: center; gap: 14px;
}
.note.n1 { left: 1%; top: 22%; transform: rotate(-8deg); font-size: 1.05rem; }
.note.n1 i { color: var(--red); font-style: normal; font-size: 1.7rem; }
.note.n2 { right: 1%; bottom: 17%; transform: rotate(4deg); background: #fff; font-weight: 500; line-height: 1.25; }
.note.n2 strong { font-weight: 800; }
.note .tick { width: 44px; height: 44px; border-radius: 50%; background: var(--sage); color: #4c6b43; display: grid; place-items: center; flex: none; }
.art-bottom { position: absolute; left: 12%; right: 10%; bottom: 7%; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .8rem; letter-spacing: .26em; text-transform: uppercase; color: var(--navy); }
.art-bottom .arr { font-size: 1.6rem; letter-spacing: 0; }

/* kayan şerit */
.marquee { margin: 90px calc(50% - 50vw) 0; background: var(--navy); color: #fff; overflow: hidden; padding: 30px 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; padding-left: 56px; }
.marquee-track span { font-weight: 700; letter-spacing: .26em; text-transform: uppercase; font-size: .95rem; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* seviyeler */
.level-cards { display: grid; gap: 22px; margin-top: 40px; }
.level-card {
  display: block; text-decoration: none; color: var(--navy); border-radius: 22px; padding: 44px 48px 0;
  transition: transform .2s ease;
}
.level-card:hover { transform: translateY(-3px); }
.tone-0 { background: var(--lav-soft); }
.tone-1 { background: var(--beige); }
.tone-2 { background: var(--sage); }
.tone-3 { background: var(--peach); }
.lc-top { display: flex; justify-content: space-between; align-items: center; }
.lc-top .kicker { margin: 0; }
.lc-level { font-family: var(--font-display); font-weight: 600; font-size: clamp(3.4rem, 8vw, 5.4rem); line-height: 1; letter-spacing: -.04em; }
.lc-title { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.08; margin: 34px 0 18px; max-width: 620px; }
.level-card p { font-size: 1.15rem; line-height: 1.7; color: #6c6a78; max-width: 620px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px; }
.pills span { border: 1.5px solid #cfcadb; border-radius: 999px; padding: 9px 20px; font-size: 1rem; color: var(--navy); background: rgba(255,255,255,.25); }
.lc-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1.5px solid #cfcadb; padding: 28px 0 34px; font-size: 1.15rem; }

/* konu kartları */
.topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 26px; margin-top: 30px; }
.topic { text-decoration: none; color: var(--navy); display: block; }
.topic-card { position: relative; border-radius: 18px; padding: 34px 32px; aspect-ratio: 16 / 10; display: flex; flex-direction: column; transition: transform .2s; }
.topic:hover .topic-card { transform: translateY(-3px); }
.topic-card .kicker { font-size: .74rem; }
.topic-line { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 5.5vw, 3.6rem); line-height: 1.05; letter-spacing: -.045em; margin-top: auto; margin-bottom: auto; }
.topic-line span { display: block; }
.play { position: absolute; right: 26px; bottom: 26px; width: 66px; height: 66px; border-radius: 50%; background: rgba(255,255,255,.75); display: grid; place-items: center; font-size: .95rem; }
.topic-meta { display: flex; justify-content: space-between; align-items: flex-end; padding: 18px 2px 0; }
.topic-meta b { display: block; font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -.02em; }
.topic-meta small { color: #6c6a78; font-size: 1.05rem; }
.topic-meta .arr { color: #8b889a; }

/* hakkımda */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.about-card { background: var(--lav-soft); border-radius: 22px; padding: 56px 40px 40px; display: grid; justify-items: center; gap: 34px; }
.about-card img { width: min(78%, 360px); aspect-ratio: 1; border-radius: 50%; }
.about-card .kicker { margin: 0; }
.story-more { margin-top: 18px; padding: 26px 28px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.story-more h3 { font-size: 1.5rem; margin-bottom: 12px; }
.story-more p { color: #55535f; line-height: 1.75; font-size: 1.05rem; }

/* yöntem */
.method-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin-top: 30px; }
.method-row { display: flex; gap: 22px; padding: 28px 0; border-top: 1.5px solid #dcd8ce; }
.m-num { font-family: var(--font-display); font-weight: 600; color: var(--lav); font-size: 1.15rem; letter-spacing: .04em; padding-top: 4px; }
.method-row h3 { font-size: 1.4rem; margin-bottom: 8px; }
.method-row p { color: #6c6a78; line-height: 1.65; margin: 0; }

/* grup dersleri */
.group-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; background: var(--beige); border-radius: 22px; padding: 48px; }
.group-card .lead2 { margin: 0; }
.group-side { display: grid; gap: 24px; justify-items: start; }
.pills.big { margin: 0; }
.pills.big span { border-color: #cdc4b3; }

/* kapanış */
.final-cta { margin: 110px calc(50% - 50vw) -80px; background: var(--navy); color: #fff; text-align: center; padding: 100px 20px 110px; }
.final-cta .display-2 { color: #fff; font-size: clamp(2.3rem, 6vw, 4.4rem); }
.final-cta .accent { color: #c9c4e6; }
.final-cta .cta-row { margin-top: 40px; }

/* iletişim penceresi */
.contact-modal { max-width: 480px; text-align: left; position: relative; max-height: 92vh; overflow-y: auto; border-radius: 22px; }
.contact-modal .m-icon, .contact-modal h2 { text-align: center; }
.contact-modal > p { text-align: center; }
.modal-x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; background: #f1eee7; font-weight: 900; color: var(--muted); }
.contact-form { display: grid; gap: 12px; }
.field { display: grid; gap: 5px; font-weight: 700; font-size: .9rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 500; color: var(--ink); padding: 11px 12px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; outline: none; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--lav); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-extra { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 14px; font-weight: 700; color: var(--muted); font-size: .92rem; }

/* alt bilgi */
.footer { border-top: 1px solid var(--line); margin-top: 30px; display: grid; gap: 14px; justify-items: center; padding-top: 40px; }
body[data-view="home"] .footer { margin-top: 0; border-top: 0; }
.foot-brand img { height: 46px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; font-weight: 700; }
.foot-links a, .foot-links button { color: var(--navy); text-decoration: none; }
.foot-links a:hover, .foot-links button:hover { color: var(--lav); }

@media (max-width: 900px) {
  .hero2 { grid-template-columns: 1fr; gap: 40px; padding-top: 20px; }
  .about { grid-template-columns: 1fr; gap: 34px; }
  .group-card { grid-template-columns: 1fr; padding: 36px 30px; }
  .method-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .landing .sec { margin-top: 72px; }
  .kicker { letter-spacing: .22em; font-size: .72rem; }
  .display { font-size: clamp(3.1rem, 15vw, 4.2rem); }
  .btn-dark { min-width: 0; padding: 20px 24px; gap: 24px; }
  .cta-row { gap: 20px; }
  .hero-art { border-radius: 90px 22px 22px 22px; }
  .art-top { padding: 0 9%; font-size: .66rem; letter-spacing: .2em; }
  .art-bottom { font-size: .64rem; letter-spacing: .18em; left: 9%; }
  .note { padding: 12px 14px; font-size: .9rem !important; }
  .note .tick { width: 34px; height: 34px; }
  .level-card { padding: 32px 26px 0; border-radius: 18px; }
  .lc-foot { padding: 22px 0 26px; font-size: 1.05rem; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card { padding: 28px 24px; }
  .play { width: 56px; height: 56px; }
  .about-card { padding: 40px 24px 32px; }
  .group-card { padding: 30px 22px; }
  .final-cta { padding: 76px 20px 86px; }
  .field-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* grammar alıştırma setleri */
.set-list { display: grid; gap: 12px; }
.set-card { border: 1.5px solid var(--line); border-radius: 16px; background: #fdfcf9; scroll-margin-top: 140px; }
.set-card.open { border-color: var(--lav); background: #fff; }
.set-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-align: left; }
.set-num { width: 38px; height: 38px; border-radius: 12px; background: var(--lav-soft); color: var(--navy); display: grid; place-items: center; font-weight: 800; flex: none; font-family: var(--font-display); }
.set-card.open .set-num { background: var(--navy); color: #fff; }
.set-titles { flex: 1; min-width: 0; }
.set-titles b { display: block; color: var(--navy); font-size: 1.05rem; }
.set-titles small { display: block; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.set-score { flex: none; font-size: .82rem; font-weight: 800; color: var(--muted); background: #f1eee7; padding: 4px 10px; border-radius: 999px; }
.set-score.done { background: var(--green-soft); color: var(--green); }
.set-chev { color: var(--muted); transition: transform .2s; }
.set-card.open .set-chev { transform: rotate(180deg); }
.set-body { padding: 0 16px 16px; }
.set-example { background: var(--lav-soft); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: .97rem; }
.task-tag { display: inline-block; padding: 2px 10px; border-radius: 8px; background: var(--red-soft); color: #b94a37; font-size: .82rem; font-weight: 800; margin-right: 4px; vertical-align: 1px; }
.scramble-target.small { min-height: 56px; margin-bottom: 10px; background: #fff; }
.scramble-bank.left { justify-content: flex-start; }
.spot-row { display: flex; flex-wrap: wrap; gap: 8px; }
.spot-word { padding: 9px 14px; border-radius: 10px; font-weight: 700; font-size: 1.05rem; background: #fff; border: 2px solid var(--line); box-shadow: 0 2px 0 var(--line); color: var(--navy); }
.spot-word:hover { border-color: var(--lav); }
.spot-word.right { background: var(--green-soft); border-color: var(--green); }
.spot-word.wrong { background: var(--red-soft); border-color: var(--red); animation: shake .35s; }
@media (max-width: 600px) { .set-head { padding: 14px; gap: 10px; } .set-score { font-size: .74rem; padding: 3px 8px; } }

/* imza, slogan ve fırça darbesi */
.signoff { margin-top: 30px; display: grid; justify-items: start; gap: 6px; }
.signature { width: min(300px, 70vw); height: auto; margin-left: -10px; }
.tagline { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: #8a3c6b; }
.tagline i { font-style: normal; color: #d9b8b4; font-size: 1rem; letter-spacing: 0; }
.tagline.small { font-size: .7rem; color: var(--muted); letter-spacing: .2em; text-align: center; }
.brush-title { position: relative; display: inline-block; padding: 14px 34px 18px 26px; margin-left: -12px; }
.brush-title .brush { position: absolute; inset: 0; z-index: 0; }
.brush-title .brush svg { width: 100%; height: 100%; display: block; overflow: visible; }
.brush-title .brush path { fill: #1d248e; }
.brush-title .brush-text { position: relative; z-index: 1; color: #fff; font-family: "Allura", "Great Vibes", var(--font-display); font-weight: 400; letter-spacing: 0; font-size: 1.25em; line-height: 1.1; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-logo { width: 54px; height: 54px; border-radius: 50%; }
.foot-sign { width: 190px; height: auto; }
@media (max-width: 600px) { .brush-title { padding: 10px 24px 14px 18px; margin-left: -6px; } }
@media (max-width: 600px) {
  .signature { margin-left: -4px; width: min(260px, 72vw); }
  .tagline { letter-spacing: .14em; font-size: .7rem; gap: 8px; }
  .signoff .tagline i { display: none; }
}

/* üst menüdeki "Flora ile İngilizce" yazısı */
.brand-word { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-script { height: 34px; width: auto; display: block; }
.brand-sub { font-family: var(--font); font-weight: 700; font-size: .58rem; letter-spacing: .3em; color: var(--navy); margin-top: 1px; padding-left: .3em; white-space: nowrap; }
@media (max-width: 400px) { .brand-script { height: 28px; } .brand-sub { font-size: .5rem; letter-spacing: .24em; } }
.brand-script { height: 40px; }
.brand-sub { text-transform: uppercase; font-size: .55rem; }
@media (max-width: 400px) { .brand-script { height: 34px; } .brand-sub { font-size: .48rem; } }

/* ============================================================
   Gezinme: konum yolu, üst menüde ana sayfa, telefonda alt menü
   ============================================================ */
.top-nav a[data-nav="home"] { display: inline-block; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .95rem; font-weight: 600; margin: 4px 0 14px; color: var(--muted); }
.crumbs a { color: var(--navy); text-decoration: none; padding: 4px 10px; border-radius: 999px; background: var(--lav-soft); }
.crumbs a:hover { background: #d9d5ea; }
.crumbs .sep { color: #b9b5c6; }
.crumbs .here { color: var(--muted); max-width: 52vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tabbar { display: none; }
@media (max-width: 760px) {
  .top-nav { display: none !important; }
  body[data-view="home"] .top-stats { display: none; }
  .top-stats { margin-left: auto; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgba(21, 23, 63, .06);
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px;
    text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 700; font-family: var(--font);
  }
  .tabbar .t-ico { font-size: 1.25rem; line-height: 1.1; filter: grayscale(.6); opacity: .85; }
  .tabbar .on { color: var(--navy); background: var(--lav-soft); }
  .tabbar .on .t-ico { filter: none; opacity: 1; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .toast-zone { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .final-cta { margin-bottom: -80px; }
}

/* ============================================================
   Çalışma kâğıdı (ekranda önizleme + yazdırma)
   ============================================================ */
.lesson-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 2px; }
.tool-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--navy); font-weight: 700; font-size: .92rem; text-decoration: none; }
.tool-link:hover { border-color: var(--lav); background: var(--lav-soft); }

body[data-view="print"] .tabbar, body[data-view="print"] .footer { display: none; }
.ws-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; background: var(--lav-soft); margin-bottom: 18px; }
.ws-toolbar .grow { flex: 1; min-width: 200px; }
.ws-toolbar b { display: block; color: var(--navy); }
.ws-toolbar small { color: var(--muted); }

.ws {
  background: #fff; color: #1d1f33; max-width: 210mm; margin: 0 auto; padding: 16mm 15mm;
  box-shadow: 0 10px 40px rgba(21, 23, 63, .1); border-radius: 6px;
  font-family: var(--font); font-size: 11pt; line-height: 1.5;
}
.ws-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 2px solid var(--navy); padding-bottom: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.ws-brand { display: flex; align-items: center; gap: 12px; }
.ws-brand img { width: 52px; height: 52px; border-radius: 50%; }
.ws-kicker { font-size: 8pt; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--lav); }
.ws h1 { font-size: 20pt; margin: 2px 0 0; color: var(--navy); letter-spacing: -.02em; }
.ws-sub { color: #6c6a78; font-size: 10pt; }
.ws-name { display: grid; gap: 8px; font-weight: 700; font-size: 10pt; color: var(--navy); }
.ws-line { display: inline-block; min-width: 100%; border-bottom: 1px solid #9a97a8; height: 1.2em; vertical-align: bottom; }
.ws-name .ws-line, li > .ws-line { min-width: 0; }
.ws-q li > .ws-line { width: 110px; }
.ws-sec { margin-top: 16px; break-inside: auto; }
.ws-sec h2 { display: flex; align-items: center; gap: 8px; font-size: 13pt; color: var(--navy); margin: 0 0 4px; break-after: avoid; }
.ws-sec h3 { font-size: 10.5pt; margin: 10px 0 4px; color: var(--navy); break-after: avoid; }
.ws-no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--lav-soft); color: var(--navy); font-size: 10pt; flex: none; }
.ws-instr { margin: 0 0 6px; color: #6c6a78; font-size: 10pt; font-style: italic; }
.ws-example { margin: 0 0 6px; font-size: 10pt; background: #f6f5fa; padding: 4px 8px; border-radius: 4px; }
.ws-table { width: 100%; border-collapse: collapse; font-size: 10pt; }
.ws-table th { text-align: left; background: var(--lav-soft); color: var(--navy); padding: 5px 8px; font-weight: 700; }
.ws-table td { padding: 4px 8px; border-bottom: 1px solid #e7e4ee; vertical-align: top; }
.ws-table td.ex { color: #55535f; font-style: italic; }
.ws-table.compact td, .ws-table.compact th { padding: 3px 8px; }
.ws-table .hl { color: var(--red); font-weight: 800; }
.ws-rule { background: #faf8f2; border-left: 3px solid var(--gold); padding: 6px 10px; font-size: 10pt; margin-bottom: 6px; }
.ws-rule p { margin: 0 0 4px; }
.ws-note { font-size: 9.5pt; background: #f6f5fa; padding: 6px 10px; border-radius: 4px; margin-top: 8px; }
.ws-q { margin: 6px 0 0; padding-left: 22px; display: grid; gap: 7px; }
.ws-q li { break-inside: avoid; padding-left: 2px; }
.ws-opts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 2px; font-size: 10pt; }
.ws-opts b { color: var(--lav); }
.ws-write { display: flex; align-items: flex-end; gap: 6px; margin-top: 5px; }
.ws-write .ws-line { flex: 1; min-width: 0; }
.ws-task { display: inline-block; font-weight: 800; color: var(--red); }
.ws-words { font-weight: 700; color: var(--navy); letter-spacing: .02em; }
.ws-lines { padding-left: 22px; display: grid; gap: 10px; margin: 4px 0 0; }
.ws-lines .ws-line { width: 100%; }
.ws-reading { border: 1px solid #e7e4ee; border-radius: 6px; padding: 8px 12px; font-size: 10.5pt; line-height: 1.6; }
.ws-reading p { margin: 0 0 6px; }
.ws-key { break-before: page; border-top: 2px dashed #cfcadb; padding-top: 12px; margin-top: 24px; }
.ws-keylist { columns: 2; column-gap: 28px; padding-left: 22px; margin: 2px 0 6px; font-size: 9.5pt; }
.ws-keylist li { break-inside: avoid; }
.ws-foot { margin-top: 18px; padding-top: 8px; border-top: 1px solid #e7e4ee; display: flex; justify-content: space-between; align-items: center; font-size: 8.5pt; color: #8b889a; }
.ws-foot img { height: 26px; }
@media (max-width: 600px) { .ws { padding: 18px 14px; font-size: 10.5pt; } .ws-keylist { columns: 1; } }

@page { size: A4; margin: 12mm 12mm 14mm; }
@media print {
  body { background: #fff !important; padding: 0 !important; }
  .topbar, .tabbar, .footer, .no-print, .toast-zone, #confetti { display: none !important; }
  .wrap { max-width: none; padding: 0 !important; margin: 0; }
  .ws { box-shadow: none; padding: 0; max-width: none; border-radius: 0; }
  a { color: inherit; text-decoration: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.ws-keep { break-inside: avoid; break-after: avoid; page-break-after: avoid; }
.ws-keep::after { content: ""; display: block; height: 70px; margin-bottom: -70px; }

/* ders listesi: üniteler, yakında etiketi, sayfalar arası geçiş */
.tag.a1p { background: #e6e4f0; color: #4a4380; }
.unit-jump { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 8px; margin-bottom: 4px; }
.unit-jump::-webkit-scrollbar { display: none; }
.unit-jump .chip { white-space: nowrap; font-size: .85rem; }
.unit-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 30px 0 12px; padding-top: 14px; border-top: 1.5px solid var(--line); scroll-margin-top: 80px; }
.unit-head h3 { margin: 0; font-size: 1.3rem; }
.unit-no { font-weight: 800; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--lav); }
.unit-count { margin-left: auto; color: var(--muted); font-weight: 700; font-size: .9rem; }
.lesson-foot.soon { justify-content: space-between; }
.soon-tag { background: var(--gold-soft); color: #8a6414; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.lesson-card.is-stub .lesson-thumb { background: linear-gradient(135deg, var(--lav-soft), #f3efe6); }
.soon-box { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--gold-soft); border: 1px solid #f0dfb2; }
.soon-box .soon-ico { font-size: 1.8rem; }
.soon-box b { color: var(--navy); display: block; margin-bottom: 4px; }
.soon-box p { margin: 0; color: #5d5a68; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.pager-link { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; color: var(--navy); }
.pager-link:hover { border-color: var(--lav); }
.pager-link.next { text-align: right; }
.pager-link small { color: var(--muted); font-weight: 700; }
.pager-link b { font-size: 1rem; line-height: 1.3; }
@media (max-width: 600px) { .pager-link { padding: 12px; } .pager-link b { font-size: .9rem; } }

.chat-pic { display: block; font-size: 2.6rem; line-height: 1.1; margin-bottom: 4px; }
.ws-q, .ws-lines, .ws-keylist { padding-left: 30px; }

/* renk avı */
.hunt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 420px; margin: 8px auto 0; }
.hunt-grid.locked { pointer-events: none; }
.hunt-item { font-size: 52px; line-height: 1; aspect-ratio: 1; border-radius: 20px; border: 2px solid var(--line, #e6e3ef); background: #fff; cursor: pointer; transition: transform .15s, border-color .15s; }
.hunt-item:hover { transform: translateY(-2px); border-color: var(--lav); }
.hunt-item.right { border-color: #3aa76d; background: #eaf7ef; transform: scale(1.06); }
.hunt-item.wrong { border-color: var(--red); background: #fdeeea; opacity: .55; }
.hunt-line { text-align: center; font-size: 20px; margin: -6px 0 6px; display: flex; gap: 8px; align-items: center; justify-content: center; }

/* set içi görsel (ör. aile ağacı) */
.set-figure { margin: 4px 0 16px; overflow-x: auto; }
.ftree { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 520px; padding: 14px 10px; background: #fff; border: 1.5px solid #e6e3ef; border-radius: 18px; font-family: inherit; }
.ftree .gen { display: flex; gap: 18px; justify-content: center; flex-wrap: nowrap; }
.ftree .fam { display: flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 14px; background: var(--lav-soft, #efedf7); }
.ftree .p { display: flex; flex-direction: column; align-items: center; font-size: 13px; font-weight: 700; color: var(--navy); min-width: 58px; }
.ftree .p span { font-size: 26px; line-height: 1.1; }
.ftree .amp { color: var(--red); font-weight: 800; }
.ftree .down { color: var(--lav); font-size: 18px; line-height: 1; }
.ftree .lbl { font-size: 11px; color: #7d75ad; text-transform: uppercase; letter-spacing: .06em; }
@media print { .ftree { min-width: 0; border-color: #999; } .ftree .fam { background: #f2f2f2; } }

/* doğru kutuya at */
.sort-word { text-align: center; font-family: "Fredoka", sans-serif; font-size: 34px; font-weight: 600; color: var(--navy); margin: 14px 0 18px; display: flex; gap: 10px; align-items: center; justify-content: center; }
.sort-bins { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; max-width: 560px; margin: 0 auto; }
.sort-bins.locked { pointer-events: none; }
.sort-bin { display: flex; flex-direction: column; gap: 2px; align-items: center; padding: 16px 8px; border-radius: 16px; border: 2px dashed var(--lav); background: var(--lav-soft, #efedf7); cursor: pointer; font-size: 20px; color: var(--navy); }
.sort-bin small { font-size: 12px; color: #6b678f; }
.sort-bin.right { border-style: solid; border-color: #3aa76d; background: #eaf7ef; }
.sort-bin.wrong { border-style: solid; border-color: var(--red); background: #fdeeea; opacity: .55; }
@media (max-width: 560px) {
  .ftree { min-width: 0; padding: 10px 4px; }
  .ftree .gen { gap: 6px; }
  .ftree .fam { gap: 2px; padding: 4px 5px; border-radius: 10px; }
  .ftree .p { min-width: 40px; font-size: 11px; }
  .ftree .p span { font-size: 20px; }
  .ftree .amp { font-size: 12px; }
}
