/* =========================================================
 * iDerslo – "defter" teması (Derslo tasarım diliyle)
 * Kâğıt zemin, mürekkep çizgiler, keskin köşeler, sert ofset gölgeler.
 * ======================================================= */
:root {
  --paper: #f1ece2;
  --paper2: #e8e1d3;
  --card: #fbf8f2;
  --ink: #17150f;
  --ink-soft: #4a463d;
  --muted: #5f5a4f;
  --rule: #cfc6b4;
  --line: #d3caba;
  --sunken: #efe9dd;
  --hover: #ece5d7;
  --orange: #ff5a1f;
  --orange-text: #e6511c;
  --lime: #d7f04b;
  --lime-soft: #f2f7cf;
  --pen: #2741e8;
  --teal: #26bfaa;
  --good: #1f6b47;
  --good-soft: #d6f2e3;
  --bad: #ae2e24;
  --bad-soft: #fde7e5;
  --shade: #17150f;
  --ach-bg: #fbe7c8;
  --face-back: #fff8e6;
  --tile-bg: #fff3c4;
  --mem-en-bg: #eef0ff;
  --sky: linear-gradient(180deg, #cfe3ff, #eef4ff 70%, #e6f3c0);
  --overlay: rgba(23, 21, 15, .45);
  --balloon-label: rgba(251, 248, 242, .85);
  --primary: var(--ink);
  --warn: var(--orange);
  --r: 3px;
  --b: 1.5px solid var(--ink);
  --shadow: 4px 4px 0 var(--shade);
  --shadow-sm: 2px 2px 0 var(--shade);
  --shadow-lg: 8px 8px 0 var(--shade);
  --font: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --hand: 'Caveat', cursive;
}
/* Koyu tema: "gece defteri" (Derslo'daki değerlerle) */
:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #13110d;
  --paper2: #221f19;
  --card: #1e1b15;
  --ink: #eee8dc;
  --ink-soft: #cfc7b8;
  --muted: #a89f8f;
  --rule: #4a4438;
  --line: #403a30;
  --sunken: #161410;
  --hover: #2e2a22;
  --orange: #ff6a33;
  --orange-text: #ff7a47;
  --lime-soft: #2f3514;
  --pen: #8c9bff;
  --good: #6fd3a0;
  --good-soft: #17382a;
  --bad: #ff8b7e;
  --bad-soft: #421c18;
  --shade: #5c5546;
  --ach-bg: #3a2f1c;
  --face-back: #24201a;
  --tile-bg: #3a3520;
  --mem-en-bg: #1f2340;
  --sky: linear-gradient(180deg, #1b2440, #151b2e 70%, #1c2614);
  --overlay: rgba(0, 0, 0, .6);
  --balloon-label: rgba(30, 27, 21, .85);
}
/* Koyu temada fosforlu ve turuncu "adacıklar" koyu yazıyla kalır */
:root[data-theme='dark'] :is(.side-hero, .sticky, .opt.right, .btn-good, .btn-warn, .g-fill, .mem.done .mem-front,
  .slots.win .slot, .sb-line.win, .av.on, .seg button.on, .confetti, .pbar div) {
  --ink: #17150f; --ink-soft: #4a463d; --muted: #5f5a4f; --b: 1.5px solid #17150f; color: #17150f;
}
:root[data-theme='dark'] .side-hero .sh-icon { background: #fbf8f2; }
:root[data-theme='dark'] .face { background-image: repeating-linear-gradient(transparent 0 31px, rgba(140, 155, 255, .1) 31px 32px); }
:root[data-theme='dark'] .mem-back { background-image: radial-gradient(rgba(23, 21, 15, .25) 1.5px, transparent 1.5px); }
:root[data-theme='dark'] .sticky::before { background: rgba(255, 255, 255, .25); }
:root[data-theme='dark'] .finish-stars .dim, :root[data-theme='dark'] .level-stars .dim { opacity: .4; }
:root[data-theme='dark'] .balloon { color: #17150f; --ink: #17150f; --b: 1.5px solid #17150f; }
:root[data-theme='dark'] .balloon span { color: var(--ink); }
.theme-btn {
  width: 38px; height: 38px; border: var(--b); border-radius: 50%; background: var(--card);
  display: grid; place-items: center; font-size: 1.1rem; flex: none;
}
.theme-btn:hover { background: var(--lime-soft); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: var(--font); color: var(--ink); background: var(--paper);
  min-height: 100vh; -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
::selection { background: var(--lime); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.hand { font-family: var(--hand); color: var(--pen); font-weight: 600; }
.mono-label, .section-title {
  font-family: var(--mono); font-size: .78rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .14em; color: var(--muted);
}

/* ---------- Üst bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; background: var(--paper);
  border-bottom: var(--b);
}
.logo { display: flex; align-items: baseline; font-size: 1.75rem; font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.logo .dot { display: inline-block; width: .32em; height: .32em; background: var(--orange); margin-left: .06em; transform: translateY(.02em); }
.back {
  width: 40px; height: 40px; border: var(--b); border-radius: var(--r); background: var(--card);
  box-shadow: var(--shadow-sm); font-size: 1.2rem; display: grid; place-items: center; flex: none;
}
.back:active { transform: translate(2px, 2px); box-shadow: none; }
.badges { margin-left: auto; display: flex; gap: 8px; }
.badge {
  font-family: var(--mono); font-weight: 700; font-size: .95rem; white-space: nowrap;
  border: var(--b); border-radius: 999px; padding: 3px 12px; background: var(--card);
}
.profile-chip {
  display: flex; align-items: center; gap: 6px; border: var(--b); border-radius: 999px;
  padding: 2px 10px 2px 4px; background: var(--card); font-weight: 700; max-width: 46vw;
}
.pc-avatar { font-size: 1.35rem; }
.pc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Yerleşim: kenar çubuğu + içerik ---------- */
.layout { display: grid; grid-template-columns: 280px 1fr; min-height: calc(100vh - 62px); }
.layout.no-side { grid-template-columns: 1fr; }
.side { border-right: var(--b); padding: 22px 18px; display: flex; flex-direction: column; gap: 18px; }
main { max-width: 1040px; width: 100%; margin: 0 auto; padding: 24px 24px 56px; }
@media (max-width: 900px) {
  .layout { display: block; }
  .side { display: none; }
  main { padding: 16px 16px 48px; }
}
.side-hero {
  display: flex; gap: 12px; align-items: center; background: var(--lime); border: var(--b);
  border-radius: var(--r); box-shadow: var(--shadow); padding: 14px;
}
.side-hero .sh-icon { width: 46px; height: 46px; border: var(--b); background: var(--card); display: grid; place-items: center; font-size: 1.6rem; border-radius: var(--r); flex: none; }
.side-hero b { display: block; font-size: 1.15rem; }
.side-hero span { font-size: .95rem; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav button {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 14px;
  border-radius: var(--r); font-size: 1.1rem; font-weight: 600;
}
.side-nav button:hover { background: var(--hover); }
.side-nav button.on { background: var(--ink); color: var(--card); }
.ach {
  border: var(--b); border-radius: var(--r); box-shadow: var(--shadow); background: var(--ach-bg);
  padding: 16px; text-align: center;
}
.ach .big-num { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.ach .big-num small { font-size: 1rem; }
.ach .ach-sub { color: var(--muted); font-size: .9rem; }
.side .pbar { margin: 6px 0 4px; }
.side-note { color: var(--muted); font-size: .9rem; }

/* ---------- Sayfa başlıkları ---------- */
.greet { font-family: var(--hand); color: var(--pen); font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 600; line-height: 1.1; }
.page-title { font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 800; letter-spacing: -.05em; line-height: .95; margin: 4px 0 10px; }
.page-title .serif { letter-spacing: -.01em; }
.title { font-size: clamp(1.9rem, 6vw, 2.8rem); font-weight: 800; letter-spacing: -.045em; text-align: left; margin: 4px 0 2px; }
.subtitle { color: var(--muted); font-size: 1.05rem; margin: 4px 0 18px; }
.subtitle.left { text-align: left; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 34px 0 14px; }
.section-title::after { content: ''; flex: 1; border-top: 1.5px solid var(--rule); }

/* ---------- Ana sayfa ---------- */
.hello { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; }
@media (max-width: 700px) { .hello { grid-template-columns: 1fr; } }
.hello-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lvl-pill {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .85rem; font-weight: 700;
  border: var(--b); border-radius: 999px; padding: 3px 12px; background: var(--card); text-transform: uppercase; letter-spacing: .06em;
}
.lvl-pill:hover { background: var(--lime-soft); }
.hello-stats { display: flex; gap: 12px; }
.stat {
  border: var(--b); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow);
  padding: 10px 16px; min-width: 120px;
}
.stat span { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.wave { display: inline-block; animation: wave 1.6s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0) } 20% { transform: rotate(18deg) } 40% { transform: rotate(-10deg) } }

/* Günün kelimesi: yapışkan not */
.sticky {
  position: relative; display: inline-block; background: var(--lime); border: var(--b); box-shadow: var(--shadow);
  padding: 16px 20px 14px; transform: rotate(-1.5deg); min-width: 240px; max-width: 100%; margin: 18px 0 6px 4px; text-align: left;
}
.sticky::before {
  content: ''; position: absolute; top: -12px; left: 50%; width: 70px; height: 22px; transform: translateX(-50%) rotate(2deg);
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(0, 0, 0, .08);
}
.sticky .mono-label { color: var(--ink-soft); }
.sticky .sw-en { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; display: flex; align-items: center; gap: 10px; }
.sticky .sw-tr { font-family: var(--hand); font-size: 1.6rem; color: var(--ink-soft); line-height: 1; }

.pbar { height: 14px; background: var(--card); border: var(--b); border-radius: 999px; overflow: hidden; margin: 14px 0; }
.pbar.big { height: 16px; }
.pbar div { height: 100%; background: var(--lime); border-right: 1.5px solid var(--ink); transition: width .4s; min-width: 0; }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.game-card {
  position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center;
  text-align: left; background: var(--card); border: var(--b); border-left: 7px solid var(--c);
  border-radius: var(--r); padding: 16px; box-shadow: var(--shadow);
  transition: transform .12s, box-shadow .12s; text-decoration: none; color: inherit;
}
.game-card:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--shade); }
.game-card:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shade); }
.game-icon {
  grid-row: span 2; width: 58px; height: 58px; display: grid; place-items: center; font-size: 2rem;
  border: var(--b); border-radius: var(--r); background: color-mix(in srgb, var(--c) 22%, var(--card));
}
.game-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.game-desc { color: var(--muted); line-height: 1.3; font-size: .97rem; }
.game-card.far { opacity: .55; }
.lvl-stars { letter-spacing: 2px; font-size: .75rem; }
.foot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 34px; }
.link { color: var(--ink-soft); font-size: 1rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--orange); }

/* Seviye rozeti (lozenge) */
.lvl-badge {
  display: inline-block; background: color-mix(in srgb, var(--c) 28%, var(--card)); color: var(--ink);
  font-family: var(--mono); font-weight: 700; font-size: .72rem; letter-spacing: .04em;
  border: 1px solid color-mix(in srgb, var(--c) 70%, var(--ink)); border-radius: 2px; padding: 0 6px; line-height: 1.5; vertical-align: middle;
}

/* ---------- Kategoriler ---------- */
.lvl-head { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; }
.lvl-head .mine { font-family: var(--hand); color: var(--pen); font-size: 1.3rem; font-weight: 600; letter-spacing: 0; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.cat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left;
  background: var(--card); border: var(--b); border-top: 6px solid var(--c); border-radius: var(--r);
  padding: 12px 12px 12px; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s;
}
.cat:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow); }
.cat.special { background: color-mix(in srgb, var(--c) 30%, var(--card)); }
.cat-icon { font-size: 1.8rem; }
.cat-name { font-weight: 800; font-size: 1.05rem; line-height: 1.15; letter-spacing: -.02em; }
.cat-sub { font-family: var(--mono); color: var(--muted); font-size: .78rem; }
.mini-bar { width: 100%; height: 7px; border: 1px solid var(--ink); border-radius: 99px; overflow: hidden; margin-top: 4px; background: var(--card); }
.mini-bar span { display: block; height: 100%; background: var(--lime); }

/* ---------- Oyun alanı ---------- */
.game-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; }
.tag { font-family: var(--mono); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; border: var(--b); border-radius: 999px; padding: 2px 12px; background: var(--card); white-space: nowrap; }
.game-area { max-width: 660px; margin: 0 auto; }
.row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 16px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--card); color: var(--ink); border: var(--b); border-radius: var(--r);
  padding: 11px 20px; font-size: 1.1rem; font-weight: 700; box-shadow: var(--shadow-sm);
  transition: transform .1s, box-shadow .1s, background .15s;
}
.btn:hover { background: var(--lime-soft); }
.btn:active { transform: translate(2px, 2px); box-shadow: none; }
.btn.sm { font-size: .95rem; padding: 7px 13px; }
.btn-primary { background: var(--ink); color: var(--card); box-shadow: 4px 4px 0 var(--orange); }
.btn-primary:hover { background: var(--ink); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--orange); }
.btn-good { background: var(--lime); }
.btn-good:hover { background: var(--lime); transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--shade); }
.btn-warn { background: var(--orange); color: var(--card); }
.btn-warn:hover { background: var(--orange); transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--shade); }
.btn-round { width: 58px; height: 58px; padding: 0; border-radius: 50%; font-size: 1.5rem; }
.btn-round.sm { width: 44px; height: 44px; font-size: 1.15rem; }
.btn-listen {
  width: 120px; height: 120px; border-radius: 50%; font-size: 3.2rem; background: var(--lime);
  border: var(--b); box-shadow: var(--shadow); animation: pulse 1.8s infinite;
}
@keyframes pulse { 50% { transform: scale(1.05) } }

.pic { font-size: 3rem; line-height: 1; }
.pic.big { font-size: 4.6rem; }
.pic.huge { font-size: 6.5rem; }
.pic-text { font-size: 1.5rem !important; font-weight: 800; }
.pic.big.pic-text, .pic.huge.pic-text { display: none; }

/* Kartlar */
.flip-wrap { margin: 12px auto; max-width: 440px; }
.flip { position: relative; height: 330px; transition: transform .18s ease-in; cursor: pointer; }
.flip.turning { transform: scaleX(0); }
.flip .face-back, .flip.flipped .face-front { display: none; }
.flip.flipped .face-back { display: flex; }
.face {
  position: absolute; inset: 0; background: var(--card); border: var(--b); border-radius: var(--r); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center;
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(39, 65, 232, .09) 31px 32px);
}
.face-back { background-color: var(--face-back); }
.face-back .pic { font-size: 4.2rem; }
.en { font-size: clamp(2.2rem, 9vw, 3.4rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.en.small { font-size: 1.5rem; letter-spacing: -.03em; color: var(--ink-soft); }
.tr { font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 8vw, 3.2rem); color: var(--orange-text); line-height: 1.05; }
.hint { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Soru */
.question {
  text-align: center; background: var(--card); border: var(--b); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 4px;
}
.q-label { font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.q-word { font-size: clamp(2rem, 8vw, 3rem); font-weight: 800; letter-spacing: -.045em; display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; line-height: 1.05; }
.q-word.tr { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--orange-text); }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.opt {
  background: var(--card); border: var(--b); border-radius: var(--r); padding: 16px 10px; font-size: 1.3rem; font-weight: 700;
  box-shadow: var(--shadow-sm); min-height: 76px; transition: transform .1s, box-shadow .1s, background .15s;
}
.opt:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow); background: var(--lime-soft); }
.options.pics .opt { min-height: 116px; }
.options.pics .pic { font-size: 3.8rem; }
.opt.right, .opt.right:hover { background: var(--lime); animation: bounce .45s; }
.opt.wrong { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); box-shadow: none; animation: shake .4s; text-decoration: line-through; text-decoration-color: var(--orange); }
.feedback { text-align: center; font-size: 1.25rem; min-height: 2.2em; margin-top: 14px; }
.good { color: var(--good); font-weight: 800; }
.bad { color: var(--bad); font-weight: 800; }
@keyframes bounce { 40% { transform: scale(1.05) } }
@keyframes shake { 20%, 60% { transform: translateX(-7px) } 40%, 80% { transform: translateX(7px) } }

/* Hafıza */
.mem-info { text-align: center; font-family: var(--mono); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; margin: 8px 0 14px; }
.mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 520px) { .mem-grid { grid-template-columns: repeat(3, 1fr); gap: 9px; } }
.mem { aspect-ratio: 3 / 4; padding: 0; }
.mem-inner { position: relative; width: 100%; height: 100%; }
.mem-back, .mem-front {
  position: absolute; inset: 0; border: var(--b); border-radius: var(--r); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px; text-align: center;
}
.mem .mem-front, .mem.open .mem-back { display: none; }
.mem.open .mem-front { display: flex; animation: turnIn .22s ease-out; }
.mem:not(.open) .mem-back { animation: turnIn .22s ease-out; }
@keyframes turnIn { from { transform: scaleX(0); } }
.mem-back { background: var(--ink); font-size: 2.2rem; background-image: radial-gradient(rgba(215, 240, 75, .25) 1.5px, transparent 1.5px); background-size: 12px 12px; }
.mem-front { background: var(--card); }
.mem-front.en { background: var(--mem-en-bg); }
.mem-en { font-size: clamp(1rem, 4vw, 1.45rem); font-weight: 800; letter-spacing: -.03em; word-break: break-word; line-height: 1.05; }
.mem-pic { font-size: clamp(2rem, 8vw, 2.7rem); }
.mem-tr { font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 3.6vw, 1.25rem); color: var(--orange-text); line-height: 1.05; }
.mem.done .mem-front { background: var(--lime); }

/* Harfleri diz */
.slots, .tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.slot {
  width: 50px; height: 58px; border-radius: var(--r); border: 1.5px dashed var(--ink-soft); background: transparent;
  font-size: 1.9rem; font-weight: 800;
}
.slot.filled { border-style: solid; border-color: var(--ink); background: var(--card); box-shadow: var(--shadow-sm); }
.slots.win .slot { background: var(--lime); animation: bounce .45s; }
.slots.shake { animation: shake .4s; }
.tile {
  width: 54px; height: 58px; border-radius: var(--r); background: var(--tile-bg); border: var(--b);
  font-size: 1.9rem; font-weight: 800; box-shadow: var(--shadow-sm); transition: transform .1s;
}
.tile:active { transform: translate(2px, 2px); box-shadow: none; }
.tile.used { visibility: hidden; }
@media (max-width: 420px) { .slot, .tile { width: 40px; height: 48px; font-size: 1.5rem; } }

/* Balonlar */
.balloon-target {
  display: flex; align-items: center; justify-content: center; gap: 14px; background: var(--card);
  border: var(--b); border-radius: var(--r); padding: 12px 16px; box-shadow: var(--shadow);
}
.balloon-target .q-word { font-size: clamp(1.6rem, 6vw, 2.2rem); }
.sky {
  position: relative; height: 420px; margin-top: 14px; border: var(--b); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow);
  background: var(--sky);
}
.balloon {
  position: absolute; top: 0; width: 23%; max-width: 130px; aspect-ratio: 4 / 5;
  border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%; border: var(--b);
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .6), transparent 30%), var(--c);
  display: grid; place-items: center; color: var(--ink); font-weight: 800; font-size: clamp(.85rem, 3.4vw, 1.2rem);
  padding: 4px; line-height: 1.05; will-change: transform; letter-spacing: -.02em;
}
.balloon span { word-break: break-word; background: var(--balloon-label); padding: 1px 4px; }
.balloon::after { content: ''; position: absolute; bottom: -38px; left: 50%; width: 1.5px; height: 38px; background: var(--ink); }
.balloon.popped { animation: popAnim .35s forwards; }
.balloon.wrong-pop { animation: wrongAnim .5s forwards; }
@keyframes popAnim { to { opacity: 0; scale: 1.8; } }
@keyframes wrongAnim { 50% { scale: .8; } to { opacity: 0; scale: .3; } }

/* Bitiş */
.finish {
  text-align: center; background: var(--card); border: var(--b); border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 26px 18px; margin-top: 12px;
}
.finish-stars { font-size: 3.2rem; letter-spacing: 6px; }
.finish-stars .dim, .level-stars .dim { filter: grayscale(1); opacity: .28; }
.finish h2 { font-size: 2.4rem; font-weight: 800; letter-spacing: -.05em; }
.finish .big { font-family: var(--mono); font-size: 1.1rem; margin: 6px 0 14px; }
.finish-words { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { background: var(--card); border: 1px solid var(--ink); border-radius: 999px; padding: 5px 12px; font-size: 1rem; }
.chip:hover { background: var(--lime-soft); }

/* Kelime listesi */
.search {
  width: 100%; font: inherit; font-size: 1.1rem; padding: 11px 14px; border-radius: var(--r);
  border: 1.5px solid var(--line); background: var(--card); margin-bottom: 14px; color: var(--ink);
}
.search:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--lime-soft); }
.search.err { border-color: var(--bad); }
.word-list { display: flex; flex-direction: column; border: var(--b); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.word-row {
  display: grid; grid-template-columns: 44px 1fr 1fr auto auto; align-items: center; gap: 10px; text-align: left;
  padding: 9px 14px; border-bottom: 1px solid var(--line);
}
.word-row:last-child { border-bottom: 0; }
.word-row:hover { background: var(--hover); }
.word-row.learned { background: var(--lime-soft); }
.wr-pic { font-size: 1.7rem; text-align: center; }
.wr-en { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.wr-tr { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--orange-text); }
.wr-score { color: var(--good); letter-spacing: 1px; font-size: .8rem; }
@media (max-width: 520px) {
  .word-row { grid-template-columns: 40px 1fr auto; }
  .wr-tr { grid-column: 2; grid-row: 2; }
  .wr-score { display: none; }
  .wr-say { grid-row: span 2; }
}

/* Pencere */
.modal { position: fixed; inset: 0; background: var(--overlay); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal-box {
  background: var(--card); border: var(--b); border-radius: var(--r); box-shadow: 6px 6px 0 var(--shade);
  padding: 22px; width: min(400px, 100%); display: flex; flex-direction: column; gap: 12px;
}
.modal-box h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.04em; }
.set-row { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; }
.set-row select { font: inherit; padding: 4px 8px; border: var(--b); border-radius: var(--r); background: var(--card); }
.set-row input, .check input { width: 20px; height: 20px; accent-color: var(--ink); }
hr { border: 0; border-top: 1.5px solid var(--rule); width: 100%; }

/* Konfeti */
.confetti { position: fixed; top: -12px; width: 9px; height: 13px; z-index: 100; border: 1px solid var(--ink); animation: fall linear forwards; pointer-events: none; }
@keyframes fall { to { top: 105vh; transform: rotate(720deg) translateX(40px); } }

/* ---------- Cümle oyunları ---------- */
.levels { display: flex; flex-direction: column; gap: 14px; max-width: 600px; }
.level {
  display: flex; align-items: center; gap: 14px; text-align: left; background: var(--card);
  border: var(--b); border-left: 7px solid var(--c); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow);
  transition: transform .12s, box-shadow .12s;
}
.level:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--shade); }
.level.on { background: var(--lime-soft); }
.level-num {
  width: 52px; height: 52px; border: var(--b); border-radius: 50%; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--c) 30%, var(--card)); font-size: 1.5rem; font-weight: 800; font-family: var(--mono);
}
.level-text { display: flex; flex-direction: column; flex: 1; line-height: 1.25; }
.level-text b { font-size: 1.25rem; letter-spacing: -.03em; }
.level-text span { color: var(--muted); }
.level-stars { font-size: 1.2rem; white-space: nowrap; }
.modal-box .level { padding: 9px 12px; box-shadow: var(--shadow-sm); }
.modal-box .level-num { width: 44px; height: 44px; font-size: 1rem; }

.g-question { gap: 10px; }
.g-pics { display: flex; gap: 14px; font-size: 3.8rem; line-height: 1; }
.g-sentence { font-size: clamp(1.45rem, 5.6vw, 2.1rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.25; }
.g-sentence small { font-size: .6em; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.g-blank { display: inline-block; min-width: 2.6em; border-bottom: 3px solid var(--orange); color: transparent; }
.g-fill { background: var(--lime); padding: 0 4px; }
.g-tr { font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 1.3rem; }
.g-tr.big { font-size: clamp(1.5rem, 5vw, 2rem); color: var(--orange-text); }
.g-tr.hidden { visibility: hidden; }
.g-options { grid-template-columns: 1fr; }
.g-options.big { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
.g-options.big .opt { font-size: 1.6rem; }

.sb-line {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center;
  min-height: 74px; margin-top: 18px; padding: 12px; border-radius: var(--r);
  border: 1.5px dashed var(--ink-soft);
  background: repeating-linear-gradient(transparent 0 35px, rgba(39, 65, 232, .12) 35px 36px);
}
.sb-line.win { border: var(--b); background: var(--lime); animation: bounce .45s; }
.sb-line.shake { animation: shake .4s; border-color: var(--bad); }
.sb-empty { font-family: var(--hand); color: var(--pen); font-size: 1.4rem; }
.sb-punct { font-size: 1.8rem; font-weight: 800; }
.sb-word, .sb-tile { font-size: 1.3rem; font-weight: 800; padding: 7px 13px; border-radius: var(--r); border: var(--b); letter-spacing: -.02em; }
.sb-word { background: var(--card); box-shadow: var(--shadow-sm); }
.sb-word.locked { background: var(--lime-soft); }
.sb-bank { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.sb-tile { background: var(--tile-bg); box-shadow: var(--shadow-sm); }
.sb-tile:active { transform: translate(2px, 2px); box-shadow: none; }
.sb-tile.used { visibility: hidden; }
@media (max-width: 420px) { .sb-word, .sb-tile { font-size: 1.1rem; padding: 6px 10px; } .g-pics { font-size: 3rem; } }

/* ---------- Profiller ---------- */
.profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; max-width: 800px; }
.profile-card { position: relative; background: var(--card); border: var(--b); border-radius: var(--r); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.profile-card:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--shade); }
.profile-card.current { background: var(--lime-soft); }
.profile-card.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; min-height: 190px; border-style: dashed; box-shadow: none; background: transparent; }
.pc-main { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 10px 16px; }
.pc-main b, .profile-card.add b { font-size: 1.3rem; letter-spacing: -.03em; }
.pc-main small { font-family: var(--mono); color: var(--muted); }
.pc-big { font-size: 3.2rem; line-height: 1.1; }
.pc-edit { position: absolute; top: 8px; right: 8px; font-size: 1rem; width: 32px; height: 32px; border-radius: var(--r); }
.pc-edit:hover { background: var(--hover); }

.form { max-width: 600px; display: flex; flex-direction: column; gap: 8px; }
.f-label { font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.avatar-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
@media (max-width: 520px) { .avatar-grid { grid-template-columns: repeat(5, 1fr); } }
.av { font-size: 1.7rem; border: 1.5px solid var(--line); border-radius: var(--r); padding: 4px; background: var(--card); }
.av.on { border-color: var(--ink); background: var(--lime); box-shadow: var(--shadow-sm); }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.seg button {
  display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border-radius: var(--r);
  border: 1.5px solid var(--line); background: var(--card); font-weight: 800; font-size: 1.05rem;
}
.seg button small { font-weight: 500; color: var(--muted); font-size: .82rem; }
.seg button.on { border-color: var(--ink); background: var(--lime); box-shadow: var(--shadow-sm); }
.levels-seg button.on { background: color-mix(in srgb, var(--c) 35%, var(--card)); }
.check { display: flex; gap: 8px; align-items: center; font-size: 1.02rem; margin-top: 8px; }
.opt.idk { grid-column: 1 / -1; min-height: 52px; background: var(--sunken); color: var(--muted); font-size: 1.05rem; }
.test-bars { max-width: 380px; margin: 14px auto; display: flex; flex-direction: column; gap: 8px; }
.tb-row { display: grid; grid-template-columns: 34px 1fr 40px; align-items: center; gap: 8px; font-family: var(--mono); }
.tb-row .pbar { margin: 0; height: 12px; }

/* Yetişkin profili: aynı tema, daha sakin hareket */
body.adult .wave, body.adult .btn-listen { animation: none; }
body.adult .sticky { transform: rotate(-.6deg); }

@media (max-width: 520px) {
  .top { padding: 8px 12px; gap: 8px; }
  .logo { font-size: 1.4rem; }
  .pc-name { display: none; }
  .flip { height: 290px; }
  .sky { height: 360px; }
  .opt { font-size: 1.12rem; }
  .stat { min-width: 0; flex: 1; }
}
@media (max-width: 420px) { .badges .badge + .badge { display: none; } .theme-btn { width: 34px; height: 34px; } }

/* ---------- Bulut senkronu ---------- */
.cloud-btn {
  display: flex; align-items: center; gap: 6px; border: var(--b); border-radius: 999px; background: var(--card);
  padding: 3px 12px; font-family: var(--mono); font-size: .8rem; font-weight: 700; white-space: nowrap; flex: none;
}
.cloud-btn:hover { background: var(--lime-soft); }
.cloud-btn.st-signedout { background: var(--ink); color: var(--card); box-shadow: 2px 2px 0 var(--orange); }
.cloud-btn.st-error { border-color: var(--bad); color: var(--bad); }
.btn.google { gap: 10px; }
.btn.google svg { background: #fff; border-radius: 50%; padding: 2px; width: 22px; height: 22px; }
.cloud-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; max-width: 800px;
  margin-top: 26px; padding: 16px 18px; border: var(--b); border-radius: var(--r); background: var(--lime-soft); box-shadow: var(--shadow);
}
.cloud-banner b { display: block; font-size: 1.2rem; letter-spacing: -.03em; }
.cloud-banner span { color: var(--muted); }
.acct { display: flex; align-items: center; gap: 12px; }
.acct img { width: 48px; height: 48px; border-radius: 50%; border: var(--b); }
.small-err { font-size: .9rem; word-break: break-word; }
.side-cloud .link { font-size: .9rem; }
@media (max-width: 640px) { .cloud-label { display: none; } .cloud-btn { padding: 3px 8px; } }

/* Yükleniyor ve klavye ipucu */
.loading { display: flex; align-items: center; gap: 12px; font-family: var(--hand); color: var(--pen); font-size: 1.6rem; padding: 40px 0; }
.spin { width: 22px; height: 22px; border: 2.5px solid var(--rule); border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.kbd-hint { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 4px 0 0; }
@media (hover: none) { .kbd-hint { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 420px) {
  .top { padding: 8px 10px; gap: 6px; }
  .logo { font-size: 1.25rem; }
  .back { width: 36px; height: 36px; }
  .profile-chip { padding: 2px 4px; }
  .profile-chip .lvl-badge { display: none; }
  .badge { padding: 2px 8px; font-size: .85rem; }
  .theme-btn { width: 32px; height: 32px; font-size: 1rem; }
}

/* ---------- Telefon: alt menü, devam kartı, kurulum, açılır bölümler ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: none; grid-template-columns: repeat(5, 1fr);
  background: var(--paper); border-top: var(--b);
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
}
.bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 2px; border-radius: var(--r); font-size: 1.25rem; }
.bottom-nav small { font-size: .68rem; font-weight: 700; letter-spacing: -.01em; }
.bottom-nav button.on { background: var(--ink); color: var(--card); }
@media (max-width: 900px) {
  .bottom-nav:not([hidden]) { display: grid; }
  body.has-bnav main { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  body.has-bnav .foot { display: none; }
}
.top { padding-top: max(10px, env(safe-area-inset-top)); }

.continue {
  display: block; width: 100%; text-align: left; margin: 18px 0 4px; padding: 12px 16px;
  background: var(--card); border: var(--b); border-left: 7px solid var(--orange); border-radius: var(--r); box-shadow: var(--shadow);
  transition: transform .12s, box-shadow .12s;
}
.continue:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--shade); }
.ct-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.ct-icon { font-size: 1.6rem; }
.ct-row b { font-size: 1.25rem; letter-spacing: -.03em; }
.ct-go { margin-left: auto; width: 40px; height: 40px; display: grid; place-items: center; background: var(--ink); color: var(--card); border-radius: 50%; font-size: 1rem; box-shadow: 2px 2px 0 var(--orange); }

.install-card {
  position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 4px; padding: 12px 40px 12px 12px;
  background: var(--lime-soft); border: var(--b); border-radius: var(--r); box-shadow: var(--shadow);
}
.install-card .ic-icon img { width: 44px; height: 44px; border-radius: 10px; display: block; }
.install-card div { flex: 1; min-width: 180px; }
.install-card b { display: block; letter-spacing: -.02em; }
.install-card span { color: var(--muted); font-size: .92rem; }
.ic-close { position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); }
.steps { padding-left: 20px; line-height: 1.6; margin: 0; }
.ios-share { display: inline-block; border: 1.5px solid var(--ink); border-radius: 4px; padding: 0 4px; font-size: .8rem; }

details.sec > summary { cursor: pointer; list-style: none; }
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary::before { content: '▸'; font-size: .9rem; transition: transform .15s; }
details.sec[open] > summary::before { transform: rotate(90deg); }

/* ---------- Yatay telefon ve tablet ---------- */
@media (orientation: landscape) and (max-height: 520px) {
  .top { padding-top: 6px; padding-bottom: 6px; }
  main { padding-top: 10px; }
  .question { flex-direction: row; justify-content: center; flex-wrap: wrap; padding: 10px 16px; gap: 14px; }
  .pic.big { font-size: 3rem; } .pic.huge { font-size: 4rem; }
  .q-word { font-size: 1.8rem; }
  .options { grid-template-columns: repeat(4, 1fr); margin-top: 10px; }
  .options .opt { min-height: 58px; padding: 10px 6px; font-size: 1.05rem; }
  .options.pics .opt { min-height: 80px; } .options.pics .pic { font-size: 2.6rem; }
  .flip { height: 200px; } .face { flex-direction: row; gap: 20px; }
  .sky { height: 230px; }
  .mem-grid { grid-template-columns: repeat(6, 1fr); } .mem { aspect-ratio: 1; }
  .g-pics { font-size: 2.6rem; }
  .bottom-nav { grid-template-columns: repeat(5, auto); justify-content: space-around; }
  .bottom-nav button { flex-direction: row; gap: 6px; padding: 4px 10px; }
  body.has-bnav main { padding-bottom: 64px; }
}
@media (min-width: 700px) and (max-width: 900px) {
  .options { grid-template-columns: repeat(4, 1fr); }
  .games { grid-template-columns: repeat(2, 1fr); }
}
/* Yatay telefon: genişlik 900'ü geçse de telefon düzeni (kenar çubuğu yerine alt menü) */
@media (max-height: 520px) and (orientation: landscape) {
  .layout { display: block; }
  .side { display: none; }
  .bottom-nav:not([hidden]) { display: grid; }
  body.has-bnav .foot { display: none; }
  .pc-name { display: none; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .flip { height: 170px; }
  .flip-wrap { margin: 6px auto; }
  .flip-wrap ~ .row { display: inline-flex; width: 49%; vertical-align: top; margin: 6px 0; }
  .game-area .pbar { margin: 6px 0; }
}

/* ---------- Günlük hedef, seri, tekrar, rozetler ---------- */
.today-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
@media (max-width: 520px) {
  .today-row { gap: 10px; }
  .goal-card, .streak-card { gap: 8px; padding: 10px; }
  .goal-card b, .streak-card b { font-size: 1rem; }
  .ring { width: 50px; height: 50px; } .ring::before { inset: 5px; }
  .fire { font-size: 1.7rem; }
  .streak-card small { display: none; }
  .sticky { margin-top: 14px; padding: 12px 16px 10px; }
  .sticky .sw-en { font-size: 1.6rem; }
}
.goal-card, .streak-card {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 14px;
  background: var(--card); border: var(--b); border-radius: var(--r); box-shadow: var(--shadow-sm);
}
.goal-card b, .streak-card b { display: block; font-size: 1.15rem; letter-spacing: -.02em; }
.streak-card small { color: var(--muted); font-family: var(--mono); font-size: .75rem; }
.ring {
  --p: 0; width: 62px; height: 62px; border-radius: 50%; flex: none; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--lime) calc(var(--p) * 1%), var(--sunken) 0); border: var(--b);
}
.ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--card); border: 1px solid var(--ink); }
.ring { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring b, .ring small { position: relative; line-height: 1; }
.ring b { font-size: 1.15rem; } .ring small { font-size: .62rem; font-family: var(--mono); color: var(--muted); }
.fire { font-size: 2.2rem; filter: grayscale(1); opacity: .45; }
.streak-card.on .fire { filter: none; opacity: 1; animation: flick 1.6s ease-in-out infinite; }
@keyframes flick { 50% { transform: scale(1.08) rotate(-3deg); } }
.due-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 16px;
  background: color-mix(in srgb, var(--teal) 18%, var(--card)); border: var(--b); border-radius: var(--r); box-shadow: var(--shadow);
}
.due-card b { display: block; font-size: 1.2rem; letter-spacing: -.02em; margin: 2px 0; }
.due-games { display: flex; flex-wrap: wrap; gap: 8px; }

.toasts { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100vw - 24px)); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--card); border: var(--b); border-radius: var(--r);
  box-shadow: 4px 4px 0 var(--orange); animation: toastIn .3s ease-out; transition: opacity .35s, transform .35s;
}
.toast.out { opacity: 0; transform: translateY(-8px); }
.toast small { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.toast b { letter-spacing: -.02em; }
.t-icon { font-size: 1.9rem; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat-grid .stat b { font-size: 1.7rem; }
.chart { position: relative; display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; height: 140px; align-items: end; padding: 0 4px; border-bottom: 1.5px solid var(--ink); }
.bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; padding-bottom: 22px; position: relative; }
.bar-fill { width: 100%; max-width: 30px; background: var(--card); border: var(--b); border-bottom: 0; min-height: 0; }
.bar.met .bar-fill { background: var(--lime); }
.bar-n { font-family: var(--mono); font-size: .65rem; color: var(--muted); }
.bar small { position: absolute; bottom: 2px; font-family: var(--mono); font-size: .65rem; color: var(--muted); }
.goal-line { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--orange); pointer-events: none; }
.lvl-bars { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.bdg { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 10px 6px; border: 1.5px dashed var(--line); border-radius: var(--r); color: var(--muted); }
.bdg.got { border: var(--b); background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.bdg-icon { font-size: 1.9rem; }
.bdg b { font-size: .95rem; letter-spacing: -.02em; }
.bdg small { font-size: .75rem; line-height: 1.2; }
.av { position: relative; }
.av.locked { opacity: .45; cursor: not-allowed; filter: grayscale(.8); }
.av i { position: absolute; right: 0; bottom: -2px; font-size: .7rem; font-style: normal; }
@media (max-width: 520px) { .hello-stats { display: none; } }

/* ---------- Söyle Bakalım ---------- */
.mic-wrap { display: flex; justify-content: center; margin-top: 22px; }
.mic {
  width: 110px; height: 110px; border-radius: 50%; font-size: 3rem; background: var(--orange); color: #fff;
  border: var(--b); box-shadow: var(--shadow); transition: transform .1s;
}
.mic:active { transform: translate(2px, 2px); box-shadow: none; }
.mic.rec { background: var(--lime); animation: pulse 1s infinite; box-shadow: 0 0 0 8px color-mix(in srgb, var(--lime) 40%, transparent); }
.mic-hint { text-align: center; font-family: var(--hand); color: var(--pen); font-size: 1.4rem; margin: 10px 0 0; }
.set-row select { max-width: 58%; }

/* Örnek cümleler */
.ex { max-width: 92%; font-size: 1rem; line-height: 1.35; padding: 8px 10px; border-top: 1.5px dashed var(--rule); margin-top: 4px; cursor: pointer; }
.ex span { font-size: .85rem; }
.ex small { display: block; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1rem; }
.flip.flipped .face-back { justify-content: center; overflow: auto; }
.wr-ex { grid-column: 2 / -1; font-size: .92rem; color: var(--ink-soft); line-height: 1.3; }
.wr-ex small { display: block; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: .95rem; }
@media (max-width: 520px) { .wr-ex { grid-column: 2 / -1; grid-row: 3; } }
.report-link { position: absolute; top: 8px; right: 10px; font-size: .75rem; color: var(--muted); font-family: var(--mono); }
.report-types { grid-template-columns: 1fr 1fr; }
.report-types button { font-size: .9rem; font-weight: 600; }
textarea.search { resize: vertical; font-size: 1rem; }

/* ---------- Hikayeler ---------- */
.story-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.story-card {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; background: var(--card);
  border: var(--b); border-radius: var(--r); box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s;
}
.story-card:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow); }
.story-card.more { border-style: dashed; box-shadow: none; background: transparent; }
.sc-icon { font-size: 2rem; }
.sc-text { flex: 1; display: flex; flex-direction: column; line-height: 1.15; }
.sc-text b { font-size: 1.1rem; letter-spacing: -.02em; }
.sc-text .serif { color: var(--orange-text); font-size: 1.05rem; }
.sc-stars { font-family: var(--mono); font-size: .75rem; color: var(--muted); white-space: nowrap; }
.story-page {
  max-width: 680px; margin: 10px auto 0; padding: 22px 22px 14px; background: var(--card); border: var(--b); border-radius: var(--r); box-shadow: var(--shadow-lg);
  background-image: repeating-linear-gradient(transparent 0 35px, rgba(39, 65, 232, .08) 35px 36px);
}
.story-title { font-size: clamp(1.8rem, 6vw, 2.4rem); font-weight: 800; letter-spacing: -.045em; margin-bottom: 6px; }
.story-title .serif { color: var(--orange-text); font-size: .7em; }
.story-lines { padding-left: 22px; margin: 10px 0; display: flex; flex-direction: column; gap: 4px; }
.story-lines li::marker { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.sl { text-align: left; width: 100%; padding: 6px 8px; border-radius: var(--r); font-size: 1.25rem; line-height: 1.4; }
.sl:hover { background: var(--hover); }
.sl.now { background: var(--lime); color: #17150f; }
.sl-tr { display: none; font-family: var(--serif); font-style: italic; color: var(--orange-text); font-size: 1.1rem; }
.sl.show-tr .sl-tr, .all-tr .sl-tr { display: block; }
.sl.now .sl-tr { color: #4a463d; }

/* ---------- Aile ---------- */
.gate-q { font-size: 2.2rem; font-weight: 800; text-align: center; margin: 4px 0; letter-spacing: -.03em; }
#gateA { text-align: center; font-size: 1.6rem; }
.ranking { display: flex; flex-direction: column; gap: 8px; max-width: 520px; margin-bottom: 8px; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: var(--card); border: var(--b); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.rank-row.me { background: var(--lime-soft); }
.rank-pos { font-size: 1.4rem; width: 32px; text-align: center; font-family: var(--mono); font-weight: 700; }
.rank-av { font-size: 1.6rem; }
.rank-row b { flex: 1; letter-spacing: -.02em; }
.rank-n { font-family: var(--mono); font-weight: 700; }
.family-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 18px; }
.fam-card { background: var(--card); border: var(--b); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.fam-head { display: flex; gap: 12px; align-items: center; }
.fam-head b { display: block; font-size: 1.35rem; letter-spacing: -.03em; }
.fam-head div span, .fam-head small { display: block; color: var(--muted); font-size: .9rem; }
.fam-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fam-stats div { border: 1px solid var(--line); border-radius: var(--r); padding: 6px 8px; }
.fam-stats b { display: block; font-size: 1.3rem; letter-spacing: -.03em; }
.fam-stats span { font-size: .75rem; color: var(--muted); }
.fam-stats em { font-style: normal; font-family: var(--mono); font-size: .7rem; }
.fam-stats em.up { color: var(--good); } .fam-stats em.down { color: var(--bad); }
.mini-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; height: 36px; align-items: end; }
.mini-week span { height: max(3px, var(--h)); background: var(--lime); border: 1px solid var(--ink); }
.hard-words { display: flex; flex-wrap: wrap; gap: 6px; }
.hard-words small { color: var(--bad); font-family: var(--mono); }
.danger-link { color: var(--bad); text-decoration-color: var(--bad); font-size: .92rem; }
.consent { font-size: .82rem; }
.modal-box a { color: var(--pen); }
.foot a.link { color: var(--ink-soft); }
