/* Nunito (SIL Open Font License 1.1) — yazı tipi uygulamanın kendi sunucusundan yüklenir, üçüncü tarafa istek gitmez */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/nunito-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/nunito-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #FFF9F2;
  --ink: #2F2A3B;
  --muted: #7A7287;
  --card: #FFFFFF;
  --line: #EDE6DD;
  --primary: #FF8A3D;
  --primary-d: #E06A1C;
  --ok: #2EAF62;
  --bad: #E4505B;
  --radius: 22px;
  --shadow: 0 6px 20px rgba(80, 60, 30, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  background-image: radial-gradient(circle at 10% 10%, #FFEBD9 0, transparent 30%), radial-gradient(circle at 90% 80%, #E3F1FF 0, transparent 35%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  font-size: 18px;
  -webkit-tap-highlight-color: transparent;
}
button { font-family: inherit; color: inherit; }
#app { max-width: 1100px; margin: 0 auto; padding: 16px; }
.screen { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.center { text-align: center; }

/* ---------- Düğmeler ---------- */
.btn {
  border: 0; border-radius: 999px; padding: 12px 22px; font-size: 17px; font-weight: 800; cursor: pointer;
  background: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .08); transition: transform .1s, filter .15s;
}
.btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn.primary { background: var(--a, var(--primary)); color: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, .18); }
.btn.soft { background: #fff; border: 2px solid var(--line); }
.btn.ghost { background: transparent; border: 2px dashed #D9CFC3; color: var(--muted); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.big { font-size: 20px; padding: 16px 30px; }
.btn.small { padding: 6px 14px; font-size: 15px; margin-left: 8px; }
.btn.round { width: 46px; height: 46px; padding: 0; font-size: 22px; flex: none; }

/* ---------- Avatar ---------- */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: none; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .1); line-height: 1; }

/* ---------- Profil ---------- */
.profiles { text-align: center; padding-top: 20px; }
.brand-logo { font-size: 54px; display: block; }
.brand h1 { margin: 6px 0 4px; font-size: 40px; font-weight: 900; color: var(--primary-d); letter-spacing: -.5px; }
.brand p { margin: 0 0 26px; color: var(--muted); font-size: 20px; font-weight: 700; }
.profile-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.profile-card { position: relative; width: 180px; padding: 22px 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer; transition: transform .15s; }
.profile-card:hover { transform: translateY(-4px) rotate(-1deg); }
.profile-card .pname { margin-top: 12px; font-weight: 900; font-size: 21px; }
.pdel { position: absolute; top: 8px; right: 8px; border: 0; background: #F4EEE8; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; color: var(--muted); opacity: .6; }
.pdel:hover { opacity: 1; background: #FFD9DC; }
.add-av { width: 96px; height: 96px; font-size: 48px; background: #F3EEE8; color: var(--muted); border-style: dashed; }
.new-profile { max-width: 640px; margin: 0 auto; text-align: left; }
.preview { text-align: center; margin-bottom: 12px; }
.preview .pname { font-size: 26px; font-weight: 900; margin-top: 8px; }
.new-profile label { display: block; font-weight: 800; }
.new-profile input { display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 22px; font-weight: 700; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--line); outline: none; }
.new-profile input:focus { border-color: var(--primary); }
.lbl { font-weight: 800; margin: 16px 0 8px; }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; }
.av-opt { font-size: 32px; height: 56px; border-radius: 14px; border: 3px solid transparent; background: #FAF6F1; cursor: pointer; }
.av-opt.sel { border-color: var(--primary); background: #FFF0E3; transform: scale(1.08); }
.col-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.col-opt { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); cursor: pointer; }
.col-opt.sel { box-shadow: 0 0 0 3px var(--primary); }
.row-btns { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 10px; }
.row-btns .primary { margin-left: auto; }
.shake { animation: shake .4s; border-color: var(--bad) !important; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

/* ---------- Ana sayfa ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.who { display: flex; align-items: center; gap: 14px; }
.hello { font-size: 26px; font-weight: 900; }
.sub { color: var(--muted); font-weight: 700; }
.top-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.today { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; background: linear-gradient(120deg, #FFF0E0, #FFE3EC); }
.today > div { flex: 1; min-width: 220px; }
.today-title { font-size: 22px; font-weight: 900; }
.today-sub { color: var(--muted); font-weight: 700; margin: 2px 0 8px; }
.progress { height: 14px; background: #fff; border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #FFB347, #FF7F50); border-radius: 99px; transition: width .5s; }
.group-title { font-weight: 900; color: var(--muted); margin: 18px 6px 8px; font-size: 17px; letter-spacing: .3px; }
.ex-list { display: flex; flex-direction: column; gap: 10px; }
.ex-row {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  background: var(--c); border: 0; border-left: 8px solid var(--a); border-radius: 20px; padding: 14px 18px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .05); transition: transform .12s;
}
.ex-row:hover { transform: translateX(4px); }
.ex-num { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .75); display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--a); flex: none; }
.ex-icon { font-size: 34px; flex: none; }
.ex-text { flex: 1; display: flex; flex-direction: column; }
.ex-text b { font-size: 20px; font-weight: 900; }
.ex-text small { color: #5E5768; font-size: 15px; font-weight: 600; }
.ex-badge { background: rgba(255, 255, 255, .85); color: var(--a); font-weight: 900; padding: 6px 12px; border-radius: 99px; font-size: 15px; white-space: nowrap; }
.ex-done { width: 28px; font-size: 22px; flex: none; }

/* ---------- Egzersiz başlığı (satırla aynı pastel ton) ---------- */
.ex-header {
  display: flex; align-items: center; gap: 12px; background: var(--c); border-bottom: 5px solid var(--a);
  padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; flex-wrap: wrap;
}
.ex-header h2 { margin: 0; font-size: 26px; font-weight: 900; flex: 1; min-width: 140px; }
.hdr-icon { font-size: 34px; }
.lvl-chip { background: var(--a); color: #fff; font-weight: 900; padding: 6px 14px; border-radius: 99px; font-size: 16px; white-space: nowrap; }
.score-chips { display: flex; gap: 6px; }
.chip { background: #fff; border-radius: 99px; padding: 6px 12px; font-weight: 800; }
.timer { position: relative; width: 64px; height: 64px; flex: none; }
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.t-bg { fill: #fff; stroke: rgba(255, 255, 255, .6); stroke-width: 5; }
.t-fg { fill: none; stroke: var(--a); stroke-width: 5; stroke-linecap: round; transition: stroke .3s; }
#tleft { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 20px; }
.play.hurry .t-fg { stroke: var(--bad); }
.play.hurry .timer { animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.1); } }

/* ---------- Açıklama ekranı ---------- */
.note { background: #FFF6D6; border: 2px solid #F5DD8A; border-radius: 16px; padding: 12px 16px; margin-bottom: 12px; font-weight: 700; }
.note.warm { background: #FFE9E9; border-color: #F7B9B9; }
.note.info { background: #E8F6FF; border-color: #B5DBF5; }
.intro-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; border-top: 6px solid var(--a); }
.demo-wrap { background: var(--c); border-radius: 18px; padding: 10px; }
.demo-label { font-weight: 900; color: var(--a); margin: 2px 4px 8px; }
.demo { background: #fff; border-radius: 14px; height: 260px; position: relative; overflow: hidden; }
.howto h3 { margin: 0 0 8px; font-size: 22px; }
.howto ol { margin: 0; padding-left: 22px; }
.howto li { margin-bottom: 10px; line-height: 1.45; font-weight: 600; }
.howto b { color: var(--a); }
.meta { margin-top: 12px; padding: 10px 14px; background: var(--c); border-radius: 12px; font-weight: 700; }
.intro-btns { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* ---------- Tanıtım animasyonları ---------- */
.d-arena { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.d-arena.col { flex-direction: column; gap: 14px; padding: 12px; }
.d-cap { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-weight: 800; color: var(--a); }
.d-q { font-weight: 800; }
.d-opts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.d-opts span { padding: 8px 14px; border-radius: 12px; background: #F6F2EC; font-weight: 800; transition: all .3s; }
.tap { background: #C9F2D6 !important; outline: 3px solid var(--ok); position: relative; }
.tap::after { content: '👆'; position: absolute; right: -10px; bottom: -22px; font-size: 26px; animation: tapf .6s; }
@keyframes tapf { from { transform: translate(20px, 20px); opacity: 0; } }
.demo-bounce { position: absolute; animation: dbounce 3.5s linear infinite; }
@keyframes dbounce { 0% { left: 5%; top: 10%; } 25% { left: 80%; top: 60%; } 50% { left: 45%; top: 5%; } 75% { left: 10%; top: 70%; } 100% { left: 5%; top: 10%; } }
.demo-tick { animation: dtick 4.2s linear infinite; }
@keyframes dtick { from { transform: translateX(60%); } to { transform: translateX(-110%); } }

/* ---------- Oyun alanı ---------- */
.stage { min-height: 62vh; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; position: relative; overflow: hidden; }
.center-stage { min-height: 56vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; }
.hint { color: var(--muted); font-weight: 800; font-size: 20px; }
.big-num { font-size: 64px; font-weight: 900; color: var(--a); }

/* Soru kartı */
.qcard { max-width: 860px; margin: 0 auto; text-align: center; padding: 10px; animation: fadeIn .25s; }
.qtitle { display: inline-block; background: var(--c); color: var(--ink); padding: 6px 16px; border-radius: 99px; font-weight: 800; margin-bottom: 10px; }
.qtext { font-size: 28px; font-weight: 900; margin: 14px 0 22px; }
.qopts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.qopts.words { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin: 0 auto; }
.qopt {
  background: #FBF8F4; border: 3px solid var(--line); border-radius: 22px; padding: 18px 10px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px; transition: transform .12s, background .2s;
}
.qopt:hover:not(:disabled) { transform: translateY(-3px) scale(1.02); border-color: var(--a); background: var(--c); }
.qemoji { font-size: 64px; line-height: 1.1; }
.qlabel { font-size: 21px; font-weight: 800; }
.qopts.words .qlabel { font-size: 28px; }
.qopt.right { background: #D4F5DF; border-color: var(--ok); animation: bounceIn .4s; }
.qopt.wrong { background: #FFDDE0; border-color: var(--bad); animation: shake .4s; }
.qopt:disabled { cursor: default; }
@keyframes bounceIn { 50% { transform: scale(1.08); } }

/* ---------- Isınma ---------- */
.warm { display: flex; flex-direction: column; gap: 10px; }
.seg-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 22px; }
.seg-icon { font-size: 32px; }
.seg-tip { color: var(--muted); font-weight: 700; font-size: 18px; }
.seg-steps { display: flex; gap: 6px; }
.seg-steps span { padding: 4px 8px; border-radius: 10px; background: #F5F0EA; opacity: .5; font-size: 18px; }
.seg-steps span.cur { background: var(--c); opacity: 1; outline: 2px solid var(--a); }
.seg-steps span.done { opacity: .9; }
.arena { position: relative; height: 52vh; min-height: 300px; background: #FBF8F4; border-radius: 18px; overflow: hidden; }
.dot { position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--a); display: flex; align-items: center; justify-content: center; will-change: transform; }
.dot.big { width: 60px; height: 60px; font-size: 52px; background: none; }
.breath-ball { position: absolute; left: 50%; top: 45%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFD1D1, var(--a)); transition: transform .1s linear; box-shadow: 0 0 60px rgba(226, 93, 93, .3); }
.breath-ball.small { width: 140px; height: 140px; margin: -70px 0 0 -70px; transition: transform 1.5s ease-in-out; transform: scale(.5); }
.breath-cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 26px; font-weight: 900; color: var(--a); }
.track-lines { position: absolute; inset: 12% 8%; display: flex; flex-direction: column; justify-content: space-between; }
.trk { height: 6px; border-radius: 3px; background: #E7DFD6; }
.trk.on { background: var(--c); outline: 2px solid var(--a); }
.star-pop { position: absolute; border: 0; background: none; font-size: 58px; cursor: pointer; animation: popIn .25s; padding: 0; }
.star-pop.tapped { animation: tapped .35s forwards; }
.star-pop.gone { opacity: 0; transition: opacity .3s; }
@keyframes popIn { from { transform: scale(0); } }
@keyframes tapped { to { transform: scale(1.8); opacity: 0; } }

/* ---------- Kelime Yakala ---------- */
.fix-circle { width: min(420px, 80vw); height: 200px; border-radius: 100px; background: #FBF5E3; border: 4px dashed var(--a); display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 900; color: var(--muted); }
.flash-w { font-size: 56px; color: var(--ink); }
.mask { letter-spacing: 4px; color: #CFC6BA; }
.d-arena .fix-circle { width: 220px; height: 110px; font-size: 28px; }
.d-arena .flash-w { font-size: 34px; }

/* ---------- Schulte ---------- */
.schulte-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.find { font-size: 22px; font-weight: 800; }
.find b { color: var(--a); font-size: 30px; }
.schulte { position: relative; display: grid; gap: 8px; width: min(520px, 90vw); aspect-ratio: 1; }
.schulte.s3 { grid-template-columns: repeat(3, 1fr); }
.schulte.s4 { grid-template-columns: repeat(4, 1fr); }
.schulte.s5 { grid-template-columns: repeat(5, 1fr); }
.schulte button { border: 2px solid var(--line); background: #FDFBF8; border-radius: 14px; font-size: 32px; font-weight: 800; cursor: pointer; }
.schulte button.found { background: var(--c); color: #B9AFA5; border-color: transparent; }
.schulte button.nope { background: #FFDDE0; animation: shake .3s; }
.fix-dot { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; background: var(--a); opacity: .35; pointer-events: none; }
.schulte.mini { width: 190px; gap: 6px; grid-template-columns: repeat(3, 1fr); }
.schulte.mini span { background: #FDFBF8; border: 2px solid var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 24px; transition: all .2s; }
.schulte.mini span.found { background: var(--c); color: var(--a); }

/* ---------- Baklava ---------- */
.diamond-stage, .diamond { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.diamond-stage { padding: 10px 0; }
.dl { font-size: 26px; font-weight: 800; padding: 3px 16px; border-radius: 12px; background: var(--c); animation: grow .3s; white-space: nowrap; }
.dl.past { background: none; opacity: .3; font-size: 20px; }
.dl b, .diamond b { color: var(--a); }
.diamond div { font-weight: 800; font-size: 20px; }
.diamond div.past { opacity: .35; }
@keyframes grow { from { transform: scaleX(.5); opacity: 0; } }

/* ---------- Karışık Harfler ---------- */
.scr { font-size: 40px; font-weight: 900; letter-spacing: 6px; background: var(--c); padding: 10px 26px; border-radius: 18px; display: inline-block; }
.scr.big { font-size: 60px; margin-bottom: 4px; }
.scr i { font-style: normal; color: var(--a); }
.scr.ghost { opacity: .5; }
.hide-bar { width: 300px; height: 10px; background: #F0EAE2; border-radius: 9px; overflow: hidden; }
.hide-bar span { display: block; height: 100%; background: var(--a); animation: shrink linear forwards; }
@keyframes shrink { from { width: 100%; } to { width: 0; } }

/* ---------- Aynı mı Farklı mı ---------- */
.pairs-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; width: 100%; }
.pairs button { border: 2px solid var(--line); background: #FDFBF8; border-radius: 16px; padding: 12px; font-size: 24px; font-weight: 800; line-height: 1.35; cursor: pointer; }
.pairs button.found { background: #D4F5DF; border-color: var(--ok); }
.pairs button.nope { background: #FFDDE0; border-color: var(--bad); }
.pairs button.missed { background: #FFF1C9; border-color: #E6B800; animation: pulse .6s 2; }
.pairs.mini { display: flex; gap: 8px; width: auto; }
.pairs.mini span { background: #FDFBF8; border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; font-weight: 800; text-align: center; transition: all .3s; }
.pairs.mini span.found { background: #D4F5DF; border-color: var(--ok); }

/* ---------- Tekerleme & Sayışma ---------- */
.karaoke { position: relative; max-width: 900px; font-size: 38px; font-weight: 800; line-height: 2.1; text-align: center; padding-top: 20px; }
.karaoke .w { padding: 2px 6px; border-radius: 10px; color: #A79F98; transition: all .15s; }
.karaoke .w.read { color: var(--ink); }
.karaoke .w.on { background: var(--c); color: var(--a); outline: 3px solid var(--a); }
.kball { position: absolute; left: 0; top: 0; font-size: 26px; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.karaoke.small { font-size: 24px; padding: 0; }
.kids { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.kids span { font-size: 54px; width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #FBF5EE; position: relative; transition: all .15s; }
.kids span.on { background: var(--c); outline: 4px solid var(--a); transform: translateY(-8px); }
.kids span.on::before { content: '👇'; position: absolute; top: -38px; font-size: 30px; }
.kids span.ebe { background: #FFE58A; }
.kids span.ebe::after { content: '👑 Ebe!'; position: absolute; bottom: -34px; font-size: 18px; font-weight: 900; white-space: nowrap; color: var(--a); }
.kids.small span { font-size: 34px; width: 54px; height: 54px; }

/* ---------- Okuma metinleri ---------- */
.reading { max-width: 860px; margin: 0 auto; }
.reading h3 { font-size: 26px; margin: 4px 0 14px; }
.reading h3 small { font-size: 15px; background: var(--c); color: var(--a); padding: 4px 10px; border-radius: 99px; margin-left: 8px; vertical-align: middle; }
.rtext, .ptext { font-size: 25px; line-height: 1.85; font-weight: 600; }
.reading.pick .w { cursor: pointer; border-radius: 6px; }
.reading.pick .w:hover { background: var(--c); }
.w.picked { background: var(--a) !important; color: #fff; }
.reading .center { margin-top: 20px; }
.ptext .w { transition: color .25s, opacity .4s, background .2s; border-radius: 6px; padding: 0 2px; }
.ptext.light .w { color: #D2CBC4; }
.ptext.light .w.dark { color: var(--ink); }
.ptext.fl { font-weight: 400; color: #4A4453; }
.ptext.fl b { font-weight: 900; color: var(--ink); }
.ptext .w.pace { background: #FFF0A6; }
.ptext .w.vanish { opacity: 0; }
.ptext.small { font-size: 20px; }
.ticker { position: relative; overflow: hidden; height: 120px; background: #FBF8F4; border-radius: 18px; display: flex; align-items: center; margin-top: 30px; }
.ticker-in { white-space: nowrap; font-size: 46px; font-weight: 800; will-change: transform; padding-left: 0; }
.focus-l { position: absolute; left: 50%; top: 10px; bottom: 10px; border-left: 3px dashed var(--a); opacity: .4; }
.ticker.small { height: 70px; width: 90%; margin: 0; }
.ticker.small .ticker-in { font-size: 26px; }
.d-text { font-size: 18px; font-weight: 600; line-height: 1.7; padding: 0 10px; }
.d-text .lastw { padding: 2px 4px; border-radius: 6px; }

/* ---------- Sayaç ve uyarılar ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255, 249, 242, .94); }
.cd-num { font-size: 140px; font-weight: 900; color: var(--a); }
.cd-num.pop { animation: cd .7s ease; }
.cd-sub { font-size: 26px; font-weight: 800; color: var(--muted); }
@keyframes cd { from { transform: scale(2.2); opacity: 0; } 40% { transform: scale(1); opacity: 1; } }
.timeup { background: rgba(47, 42, 59, .75); animation: fadeIn .2s; }
.tu-icon { font-size: 120px; animation: ring .5s 3; }
.tu-text { font-size: 64px; font-weight: 900; color: #fff; background: var(--bad); padding: 8px 40px; border-radius: 30px; margin-top: 10px; box-shadow: 0 8px 0 rgba(0, 0, 0, .2); }
@keyframes ring { 25% { transform: rotate(-15deg); } 75% { transform: rotate(15deg); } }
.modal-bg { position: fixed; inset: 0; background: rgba(47, 42, 59, .45); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: var(--radius); padding: 24px; max-width: 440px; width: 100%; animation: fadeIn .2s; }
.modal h3 { margin: 0 0 8px; }
.modal-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ---------- Sonuçlar ---------- */
.res-top { display: flex; align-items: center; gap: 18px; }
.res-title { font-size: 28px; font-weight: 900; }
.res-sub { color: var(--muted); font-weight: 700; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.tile { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; align-items: center; border-bottom: 4px solid var(--a, #E8DED2); }
.ti { font-size: 28px; }
.tv { font-size: 32px; font-weight: 900; }
.tl { color: var(--muted); font-weight: 700; font-size: 15px; text-align: center; }
.lvl-msg { padding: 14px 18px; border-radius: 16px; font-weight: 800; font-size: 19px; margin-bottom: 16px; }
.lvl-msg.up { background: #D9F7E4; }
.lvl-msg.down { background: #FFF0D4; }
.lvl-msg.same { background: var(--c); }
.chart-card h3 { margin: 0 0 8px; }
.chart-card h3 small { color: var(--muted); font-weight: 700; font-size: 14px; display: block; }
.chart svg { width: 100%; height: auto; display: block; }
.bars .grid { stroke: #EFE8E0; stroke-width: 1; }
.bars .base { stroke: #CFC5BA; stroke-width: 1; }
.bars .ax { font-size: 12px; fill: var(--muted); font-family: inherit; font-weight: 700; }
.bars .ax.cur { fill: var(--ink); font-weight: 900; }
.bars .ax.lv { font-size: 11px; }
.bars .val { font-size: 13px; fill: var(--ink); font-weight: 900; }
.bars .bar { cursor: default; }
.bars .bar:hover path { opacity: 1 !important; }
.empty { color: var(--muted); padding: 20px; text-align: center; }
.ctip { position: fixed; z-index: 70; display: none; background: var(--ink); color: #fff; padding: 6px 10px; border-radius: 8px; font-size: 14px; font-weight: 700; pointer-events: none; white-space: nowrap; }
.res-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.celebrate .card { max-width: 560px; margin: 40px auto; text-align: center; }
.celebrate h1 { font-size: 34px; margin: 14px 0 6px; }
.confetti { font-size: 44px; letter-spacing: 10px; animation: bounceIn 1s infinite; }

/* ---------- Raporlar ---------- */
.rep-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.rep-card { background: var(--c); border-radius: 20px; padding: 14px 16px; border-left: 7px solid var(--a); }
.rep-head { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.rep-head .ex-icon { font-size: 28px; }
.rep-head b { flex: 1; }
.rep-meta { color: #5E5768; font-weight: 600; font-size: 15px; margin: 6px 0; }
.rep-card .chart { background: rgba(255, 255, 255, .7); border-radius: 12px; padding: 4px; }

/* ---------- Duyarlı ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .intro-card { grid-template-columns: 1fr; }
  .qopts { grid-template-columns: repeat(2, 1fr); }
  .qemoji { font-size: 50px; }
  .karaoke { font-size: 28px; }
  .ex-header h2 { font-size: 21px; }
  .ex-text small { display: none; }
  .ticker-in { font-size: 34px; }
  .rtext, .ptext { font-size: 21px; }
  .flash-w { font-size: 42px; }
  .scr.big { font-size: 44px; }
}
@media print {
  body { background: #fff; }
  .top-btns, .btn { display: none !important; }
  .rep-card { break-inside: avoid; }
}

/* =====================================================================
   EKRANA SIĞDIRMA — oyun alanı ekranın kalan yüksekliğini doldurur,
   içerik alanın boyutuna (cq birimleri) göre büyür / küçülür.
   ===================================================================== */
:root { --pad: 16px; }
#app { padding: var(--pad); }
.play { display: flex; flex-direction: column; height: calc(100vh - 2 * var(--pad)); height: calc(100dvh - 2 * var(--pad)); }
.play .ex-header { flex: none; flex-wrap: nowrap; margin-bottom: 10px; padding: 8px 12px; }
.play .ex-header h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.stage { flex: 1; min-height: 0; overflow: auto; container-type: size; padding: 16px; }
.center-stage { min-height: 100cqh; gap: clamp(10px, 4cqh, 26px); }
.hint { font-size: clamp(17px, 4cqmin, 26px); }
.big-num { font-size: clamp(48px, 15cqmin, 110px); }

/* Soru kartı */
.qcard { min-height: 100cqh; display: flex; flex-direction: column; justify-content: center; max-width: 980px; }
.qtext { font-size: clamp(21px, 5.6cqmin, 38px); margin: clamp(6px, 2cqh, 16px) 0 clamp(10px, 3cqh, 24px); }
.qopts { gap: clamp(8px, 2.4cqmin, 18px); }
.qopt { padding: clamp(10px, 2.6cqmin, 24px) 8px; border-radius: clamp(16px, 3cqmin, 26px); }
.qemoji { font-size: clamp(46px, 14cqmin, 104px); }
.qlabel { font-size: clamp(17px, 3.8cqmin, 28px); }
.qopts.words { max-width: 760px; }
.qopts.words .qlabel { font-size: clamp(22px, 6.4cqmin, 44px); }
@container (max-width: 620px) { .qopts { grid-template-columns: repeat(2, 1fr); } }

/* Ekrana sığan ızgara: genişlik hem genişliğe hem yüksekliğe göre seçilir */
.ngrid {
  --w: min(var(--maxw, 96cqw), (100cqh - var(--top, 100px)) * var(--cols) * var(--ar, 1) / (var(--rows) * (1 + .07 * var(--ar, 1))));
  position: relative; width: var(--w); margin: 0 auto; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: calc(var(--w) / var(--cols) * .07); font-size: calc(var(--w) / var(--cols) * var(--fs, .42));
}
.ngrid > * { min-width: 0; overflow: hidden; aspect-ratio: var(--ar, 1); display: flex; align-items: center; justify-content: center; font-weight: 800; border-radius: 14%; font-size: 1em; }
.ngrid > button { border: 2px solid var(--line); background: #FDFBF8; cursor: pointer; padding: 0; }
.ngrid > button.found { background: var(--c); border-color: var(--a); color: var(--a); }
.ngrid > .nope, .nope { animation: shake .3s; background: #FFDDE0 !important; }
.schulte.ngrid { aspect-ratio: auto; }
.schulte.ngrid button { font-size: 1em; }
.schulte.ngrid button.found { color: #C9C0B6; border-color: transparent; }
.schulte-wrap, .gridgame, .wfind { min-height: 100cqh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.find { font-size: clamp(20px, 5cqmin, 32px); font-weight: 800; text-align: center; }
.find b { color: var(--a); font-size: 1.35em; letter-spacing: 2px; }
.find small { color: var(--muted); font-size: .65em; }

/* Kelime Yakala / Aklında Tut */
.fix-circle { width: min(90cqw, 600px); height: clamp(110px, 34cqh, 250px); border-radius: 999px; }
.flash-w { font-size: clamp(34px, 12.5cqmin, 92px); letter-spacing: 1px; }
.hide-bar { width: min(320px, 80cqw); }

/* Karışık Harfler */
.scr.big { font-size: clamp(36px, 13cqmin, 88px); letter-spacing: .1em; }

/* Baklava */
.diamond-stage { min-height: 100cqh; justify-content: center; gap: 4px; }
.dl { font-size: clamp(18px, 4.8cqmin, 34px); white-space: normal; text-wrap: balance; max-width: 96cqw; }
.dl.past { font-size: .72em; padding: 0 10px; }

/* Aynı mı Farklı mı */
.pairs-wrap { min-height: 100cqh; justify-content: center; }
.pairs { grid-template-columns: repeat(auto-fill, minmax(clamp(105px, 22cqw, 175px), 1fr)); gap: clamp(6px, 1.6cqmin, 12px); }
.pairs button { font-size: clamp(18px, 4.4cqmin, 30px); padding: clamp(6px, 1.8cqmin, 14px); }

/* Tekerleme / Sayışma */
.karaoke { font-size: clamp(24px, 6.4cqmin, 52px); }
.kids { gap: clamp(6px, 2cqmin, 16px); }
.kids span { --k: clamp(52px, 15cqmin, 112px); width: var(--k); height: var(--k); font-size: calc(var(--k) * .64); }

/* Okuma */
.rtext, .ptext { font-size: clamp(19px, 4.6cqmin, 29px); }
.reading h3 { font-size: clamp(20px, 5cqmin, 30px); }
.ticker { height: clamp(90px, 24cqh, 170px); }
.ticker-in { font-size: clamp(36px, 10.5cqmin, 76px); }
.reading.search .find.sticky { position: sticky; top: -16px; background: #fff; padding: 8px 0; z-index: 2; border-bottom: 2px solid var(--c); }
.reading.search .w { cursor: pointer; border-radius: 6px; }
.reading.search .w.found { background: var(--a); color: #fff; }

/* Isınma */
.warm { height: 100cqh; }
.arena { flex: 1; height: auto; min-height: 220px; }
.breath-ball { --b: min(58cqmin, 320px); width: var(--b); height: var(--b); margin: calc(var(--b) / -2) 0 0 calc(var(--b) / -2); }
.breath-cap { font-size: clamp(19px, 5cqmin, 30px); }
.star-pop { font-size: clamp(50px, 13cqmin, 84px); }
.seg-title { font-size: clamp(18px, 4.4cqmin, 24px); }

/* ---------- Yeni egzersizler ---------- */
/* Anagram */
.ana { min-height: 100cqh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(10px, 3cqh, 24px);
  --cell: min(calc(92cqw / var(--n) - 8px), 16cqh, 96px); }
.ana-hint { font-size: clamp(60px, 22cqmin, 140px); line-height: 1; }
.ana-slots, .ana-tiles { display: flex; gap: 8px; justify-content: center; flex-wrap: nowrap; }
.ana-slots span { width: var(--cell); height: var(--cell); border-bottom: 5px solid var(--a); background: #FBF8F4; border-radius: 12px 12px 4px 4px; display: flex; align-items: center; justify-content: center; font-size: calc(var(--cell) * .6); font-weight: 900; }
.ana-slots span.fill { background: var(--c); animation: bounceIn .25s; }
.ana-slots span.show { color: var(--bad); }
.ana.good .ana-slots span { background: #D4F5DF; border-color: var(--ok); }
.ana-tiles button { width: var(--cell); height: var(--cell); border: 0; border-radius: 16px; background: var(--a); color: #fff; font-size: calc(var(--cell) * .6); font-weight: 900; cursor: pointer; box-shadow: 0 5px 0 rgba(0, 0, 0, .2); }
.ana-tiles button.used { visibility: hidden; }
.ana-hint.small { font-size: 54px; }
.ana-slots.small span, .ana-tiles.small button { width: 40px; height: 40px; font-size: 24px; }
.ana-slots.small, .ana-tiles.small { --cell: 40px; }

/* Kelime Bulmaca */
.targets { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.targets span { background: var(--c); border: 2px solid var(--a); padding: 4px 14px; border-radius: 99px; font-weight: 900; font-size: clamp(18px, 4.6cqmin, 28px); }
.targets span.done { background: var(--a); color: #fff; text-decoration: line-through; }
.wg.ngrid { --fs: .5; }
.wg > button.sel { background: #FFE58A; border-color: #E0B400; transform: scale(1.06); }
.wg > span { background: #FDFBF8; border: 2px solid var(--line); }
.wg > span.sel { background: #FFE58A; }
.wg > span.found { background: var(--c); color: var(--a); }

/* Sayı Arama, Çift/Tek */
.numg > button { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.find .mode { background: var(--a); color: #fff; padding: 2px 14px; border-radius: 12px; letter-spacing: 1px; }

/* Numarayı aklında tut — tuş takımı */
.keypad-wrap { min-height: 100cqh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(10px, 2.5cqh, 20px);
  --kw: min(92cqw, (100cqh - 130px) * .75, 460px); }
.kp-show { min-width: min(80cqw, 420px); text-align: center; font-size: clamp(36px, 11cqmin, 76px); font-weight: 900; letter-spacing: .12em; background: #FBF8F4; border-radius: 18px; padding: 4px 18px; border-bottom: 5px solid var(--a); }
.kp-show small { font-size: .4em; letter-spacing: 0; color: var(--muted); display: block; }
.kp-show.good { background: #D4F5DF; } .kp-show.bad { background: #FFDDE0; }
.kp-show.small { font-size: 34px; min-width: 140px; }
.keypad { width: var(--kw); display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--kw) * .03); }
.keypad button { aspect-ratio: 1.35; border: 0; border-radius: 18px; background: var(--c); font-size: calc(var(--kw) * .11); font-weight: 900; cursor: pointer; box-shadow: 0 4px 0 rgba(0, 0, 0, .12); }
.keypad button:active { transform: translateY(3px); box-shadow: none; }
.keypad .kok { background: var(--ok); color: #fff; }

/* Harf tabloları */
.mpair { display: flex; gap: 4cqw; justify-content: center; align-items: center; padding: 10px; border-radius: 20px; transition: background .2s; }
.mpair.good { background: #D4F5DF; } .mpair.badf { background: #FFDDE0; }
.mg.ngrid { --maxw: 44cqw; --top: 120px; --fs: .55; gap: calc(var(--w) / var(--cols) * .04); background: #fff; padding: 6px; border-radius: 14px; border: 3px solid var(--a); }
.mg > span { background: #FBF8F4; }
.mg > span.mark { background: #FFE58A; outline: 3px solid #E0B400; }
.ab-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.ab-btns .btn { font-size: clamp(20px, 5cqmin, 30px); padding: clamp(12px, 3cqmin, 20px) clamp(22px, 6cqmin, 44px); }
.ab-btns .same { background: #D4F5DF; } .ab-btns .diff { background: #FFDDE0; }
.mini-m { font-size: 28px; font-weight: 900; background: #fff; border: 3px solid var(--a); border-radius: 12px; padding: 6px 12px; line-height: 1.3; }
.d-opts .x, .d-text .x { border-radius: 8px; }

/* ---------- Telefon ---------- */
@media (max-width: 600px) {
  :root { --pad: 8px; }
  .stage { padding: 10px; border-radius: 18px; }
  .ex-header { gap: 8px; padding: 8px 10px; border-radius: 18px; }
  .ex-header h2 { font-size: 18px; }
  .hdr-icon { font-size: 24px; }
  .lvl-chip { font-size: 13px; padding: 4px 9px; }
  .chip { padding: 4px 8px; font-size: 14px; }
  .timer { width: 50px; height: 50px; }
  #tleft { font-size: 16px; }
  .btn.round { width: 38px; height: 38px; font-size: 18px; }
  .demo { height: 210px; }
  .intro-btns .btn.big { flex: 1 1 100%; }
  .hello { font-size: 21px; }
  .ex-row { padding: 12px; gap: 10px; }
  .ex-icon { font-size: 28px; }
  .ex-text b { font-size: 17px; }
  .ex-num { display: none; }
  .tv { font-size: 26px; }
  .res-title { font-size: 22px; }
}
@media (max-width: 420px) {
  .play .hdr-icon { display: none; }
  .play .lvl-chip { display: none; }
  .score-chips { gap: 4px; }
}

/* Dik ekranda harf tabloları alt alta, kelime çiftleri daha büyük */
@container (orientation: portrait) {
  .mpair { flex-direction: column; gap: 3cqh; }
  .mg.ngrid { --maxw: 84cqw; --top: calc(50cqh + 110px); }
}
.pairs { grid-template-columns: repeat(auto-fill, minmax(clamp(120px, 30cqw, 190px), 1fr)); }
.pairs button { font-size: clamp(20px, 5.4cqmin, 34px); }
.kball { font-size: clamp(24px, 5cqmin, 40px); }
@container (orientation: portrait) { .mg.ngrid { --top: calc(50cqh + 70px); } }
.pairs-wrap #done { position: sticky; bottom: 0; z-index: 3; box-shadow: 0 4px 0 rgba(0,0,0,.18), 0 -8px 18px rgba(255,255,255,.9); }

/* =====================================================================
   1–3. SINIF GELİŞTİRMELERİ
   ===================================================================== */
/* Sınıf seçimi ve ayarlar */
.pgrade { color: var(--muted); font-weight: 800; font-size: 15px; margin-top: 2px; }
.grade-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.grade-grid.big { max-width: 760px; margin: 0 auto; }
.grade-opt { border: 3px solid var(--line); background: #FBF8F4; border-radius: 18px; padding: 14px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.grade-opt .ge { font-size: 40px; }
.grade-opt b { font-size: 20px; }
.grade-opt small { color: var(--muted); font-weight: 700; font-size: 13px; }
.grade-opt.sel { border-color: var(--primary); background: #FFF0E3; transform: scale(1.03); }
.grade-grid.big .grade-opt { padding: 26px 10px; } .grade-grid.big .ge { font-size: 64px; } .grade-grid.big b { font-size: 24px; }
.tog { display: flex !important; align-items: center; gap: 10px; font-weight: 700 !important; margin: 6px 0; cursor: pointer; }
.tog input { width: 24px !important; height: 24px; margin: 0 !important; accent-color: var(--primary); flex: none; display: inline !important; }
.tog small { color: var(--muted); font-weight: 600; }
.gchip { background: #fff; border: 2px solid var(--line); border-radius: 99px; padding: 1px 10px; font-weight: 800; color: var(--ink); margin-right: 4px; }

/* Ödül çubuğu */
.rewards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.rw { background: #fff; border: 0; border-radius: 18px; box-shadow: var(--shadow); padding: 10px 6px; display: flex; flex-direction: column; align-items: center; cursor: pointer; font-family: inherit; }
div.rw { cursor: default; }
.rwi { font-size: 30px; line-height: 1.1; }
.rw b { font-size: 22px; font-weight: 900; }
.rw small { color: var(--muted); font-weight: 700; font-size: 13px; }
.rw.fire { background: linear-gradient(160deg, #FFF3D6, #FFE1CC); }
.rw.fire .rwi { animation: pulse 1.4s infinite; }

/* Bugünün programı */
.today { display: block; }
.today-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.prog-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pchip { background: var(--c); border: 0; border-left: 5px solid var(--a); border-radius: 12px; padding: 8px 12px; font-weight: 800; font-size: 15px; cursor: pointer; font-family: inherit; }
.pchip.done { opacity: .65; }
.all-ex { margin-top: 18px; }
.all-ex summary { cursor: pointer; font-weight: 900; font-size: 20px; padding: 12px 16px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); list-style: none; }
.all-ex summary::-webkit-details-marker { display: none; }
.all-ex summary::after { content: ' ▾'; color: var(--muted); }
.all-ex[open] summary::after { content: ' ▴'; }
.all-ex summary small { color: var(--muted); font-weight: 700; }

/* Albüm */
.next-sticker { margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.next-sticker small { color: var(--muted); font-weight: 700; }
.sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.stk { aspect-ratio: 1; background: #F2EDE7; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 34px; color: #B9AFA5; }
.stk small { font-size: 13px; font-weight: 800; }
.stk.got { background: #fff; font-size: 58px; box-shadow: var(--shadow); border: 3px dashed #FFC98A; animation: bounceIn .5s; }

/* Sonuç yıldızları, çıkartma, konfeti */
.res-top { flex-wrap: wrap; }
.res-stars { margin-left: auto; text-align: center; }
.stars-big { font-size: 40px; letter-spacing: 2px; }
.stars-big > * { display: inline-block; }
.star-off { filter: grayscale(1); opacity: .25; }
.res-stars small { font-weight: 900; color: var(--a); font-size: 16px; }
.sticker-pop { text-align: center; }
.sp-icon { font-size: 110px; animation: bounceIn .6s; }
.confetti-box { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.confetti-box i { position: absolute; top: -40px; font-style: normal; animation: fall 2.6s ease-in forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); opacity: .7; } }
.cel-stats { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.cel-stats span { background: #FFF3E0; padding: 6px 14px; border-radius: 99px; font-weight: 800; }

/* Soruyu dinle */
.qspeak { border: 0; background: var(--c); border-radius: 50%; width: 44px; height: 44px; font-size: 20px; cursor: pointer; vertical-align: middle; margin-left: 6px; }

/* Hece renklendirme (kırmızı / mavi) */
.hece-on .hc.h0, .hece-slots .h0 { color: #D6342F; }
.hece-on .hc.h1, .hece-slots .h1 { color: #1F5FD1; }
.hece-on .ptext.light .w:not(.dark) .hc,
.hece-on .karaoke .w:not(.read):not(.on) .hc { color: inherit; }
.hece-on .w.picked .hc, .hece-on .reading.search .w.found .hc { color: #fff; }

/* Hece Ustası */
.hece-slots span, .hece-tiles button { width: auto; min-width: var(--cell); padding: 0 .35em; }
.hece-slots span { font-size: calc(var(--cell) * .5); }
.hece-tiles button { font-size: calc(var(--cell) * .5); }
.hece-tiles { flex-wrap: wrap; }
.hece-word { font-size: clamp(26px, 8cqmin, 52px); font-weight: 900; color: var(--a); letter-spacing: 1px; }
.ana-slots.done span { background: #D4F5DF; }

/* 1. sınıf: daha büyük okuma yazısı */
.g1 .rtext, .g1 .ptext { font-size: clamp(22px, 5.8cqmin, 38px); line-height: 1.9; word-spacing: .12em; }
.g1 .karaoke { font-size: clamp(28px, 7.2cqmin, 60px); }
.g1 .dl { font-size: clamp(20px, 5.4cqmin, 38px); }

@media (max-width: 600px) {
  .grade-opt { padding: 10px 4px; } .grade-opt .ge { font-size: 30px; } .grade-opt b { font-size: 16px; } .grade-opt small { display: none; }
  .grade-grid.big .grade-opt small { display: block; }
  .rw b { font-size: 18px; } .rwi { font-size: 24px; }
  .res-stars { margin: 0 auto; }
  .top-btns .btn { padding: 8px 12px; font-size: 14px; }
}
.tog { flex-wrap: wrap; }
.tog small { flex-basis: 100%; padding-left: 34px; margin-top: -4px; }
.new-stk span { font-size: 40px; vertical-align: middle; }
@media (max-width: 600px) { .tiles { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; } .tile { padding: 10px 6px; } .tl { font-size: 13px; } }

/* =====================================================================
   TABLET UYGULAMASI HİSSİ — büyük, dokunması kolay kartlar
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; }
body { overscroll-behavior-y: none; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
button, .ex-card, .pcard, .s-card, .profile-card, .grade-opt, .qopt { -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.ex-row, .ex-card, .pcard, .s-card, .profile-card, .grade-opt { -webkit-tap-highlight-color: transparent; }

/* Bugünün programı: kart dizisi */
.prog-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.pcard { position: relative; min-height: 132px; background: var(--c); border: 3px solid transparent; border-radius: 22px; padding: 14px 10px 12px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; font-family: inherit;
  box-shadow: 0 5px 0 color-mix(in srgb, var(--a) 35%, transparent); transition: transform .12s; }
.pcard:hover { transform: translateY(-3px); }
.pcard:active { transform: translateY(3px); box-shadow: none; }
.pc-icon { font-size: 46px; line-height: 1; }
.pc-title { font-weight: 900; font-size: 16px; line-height: 1.2; }
.pc-num { position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--a); font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.pcard.done { opacity: .6; border-color: var(--a); }
.pcard.done .pc-num { background: var(--ok); color: #fff; }
.pcard:not(.done):first-of-type, .pcard.next { border-color: var(--a); }

/* Tüm egzersizler: kart ızgarası (her kart kendi pastel tonunda) */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 8px; }
.ex-grid .group-title { grid-column: 1 / -1; margin: 14px 4px 0; }
.ex-card { position: relative; min-height: 190px; background: var(--c); border: 0; border-bottom: 6px solid var(--a); border-radius: 24px; padding: 18px 14px 14px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-family: inherit; box-shadow: var(--shadow); transition: transform .12s; }
.ex-card:hover { transform: translateY(-4px); }
.ex-card:active { transform: scale(.97); }
.ec-icon { font-size: 54px; line-height: 1.1; }
.ec-title { font-size: 19px; font-weight: 900; line-height: 1.2; }
.ec-desc { color: #5E5768; font-weight: 600; font-size: 13.5px; line-height: 1.35; flex: 1; }
.ec-badge { background: #fff; color: var(--a); font-weight: 900; padding: 5px 14px; border-radius: 99px; font-size: 14px; }
.ec-done { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--ok); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.tchip { font-size: 13px; background: #E3F0FF; color: #2A5DB0; padding: 3px 10px; border-radius: 99px; vertical-align: middle; font-weight: 800; }

/* Öğretmen girişi ve PIN */
.teacher-entry { text-align: center; margin-top: 26px; }
.pin-card { max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.pin-card label { font-weight: 800; display: flex; flex-direction: column; gap: 6px; }
.pin-card input, .modal-in { font: inherit; font-size: 24px; font-weight: 800; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--line); outline: none; text-align: center; letter-spacing: .2em; width: 100%; }
.pin-card input#cname { letter-spacing: 0; text-align: left; font-size: 20px; }
.pin-card input:focus, .modal-in:focus { border-color: var(--primary); }
.modal-in { margin-top: 10px; }
.linkbtn { background: none; border: 0; color: #2A5DB0; font-weight: 800; cursor: pointer; text-decoration: underline; font-family: inherit; font-size: 15px; padding: 6px; }
.muted { color: var(--muted); }
.pin-card hr { border: 0; border-top: 2px dashed var(--line); width: 100%; }

/* Öğretmen paneli */
.teacher .tiles { margin-top: 0; }
.t-alerts { margin-bottom: 14px; background: #FFF6E5; }
.t-alerts h3 { margin: 0 0 6px; }
.t-alerts ul { margin: 0; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.t-alerts li { font-weight: 700; cursor: pointer; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .7); }
.detail .t-alerts li { cursor: default; }
.t-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; align-items: center; font-weight: 800; color: var(--muted); }
.fchip { border: 2px solid var(--line); background: #fff; border-radius: 99px; padding: 9px 16px; font-weight: 800; font-size: 15px; cursor: pointer; font-family: inherit; color: var(--ink); min-height: 44px; }
.fchip.sel { background: #2F2A3B; color: #fff; border-color: #2F2A3B; }
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 12px 0 16px; }
.s-card { background: #fff; border: 3px solid transparent; border-radius: 24px; box-shadow: var(--shadow); padding: 16px; cursor: pointer; text-align: left; font-family: inherit;
  display: flex; flex-direction: column; gap: 12px; transition: transform .12s; }
.s-card:hover { transform: translateY(-3px); border-color: #FFD2B0; }
.s-card:active { transform: scale(.98); }
.s-card.has-alert { border-color: #FFE0A3; }
.s-top { display: flex; align-items: center; gap: 12px; }
.s-who { display: flex; flex-direction: column; min-width: 0; }
.s-who b { font-size: 20px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-who small { color: var(--muted); font-weight: 700; font-size: 14px; }
.s-who .src { font-size: 12.5px; }
.s-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.s-stats > span { background: #FBF8F4; border-radius: 14px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; }
.s-stats small { color: var(--muted); font-weight: 700; font-size: 12px; }
.s-stats b { font-size: 20px; font-weight: 900; white-space: nowrap; }
.s-stats i, .up, .down { font-style: normal; font-size: 13px; margin-left: 3px; }
.up { color: var(--ok); } .down { color: var(--bad); }
.s-week { display: flex; align-items: center; gap: 8px; }
.s-week small { color: var(--muted); font-weight: 800; }
.weekdots { display: inline-flex; gap: 4px; }
.weekdots i { width: 16px; height: 16px; border-radius: 5px; background: #EDE6DD; }
.weekdots i.on { background: var(--ok); }
.s-last { font-weight: 800; font-size: 15px; }
.s-last.warn { color: #C0570B; }
.s-alerts { display: flex; flex-wrap: wrap; gap: 6px; }
.s-alerts span { background: #FFF1D6; border-radius: 10px; padding: 4px 8px; font-size: 13px; font-weight: 800; color: #8A5300; }
.empty-t p { margin: 6px 0; }
.t-help { margin-top: 6px; background: #F4F8FF; }
.t-help ul { margin: 8px 0 0; padding-left: 18px; } .t-help li { margin-bottom: 6px; }
.t-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 14px; }
.t-grid .chart-card { margin: 0; }
.teacher .card { margin-bottom: 14px; }
.teacher .card h3 small { color: var(--muted); font-weight: 700; font-size: 14px; }
.xe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 10px; }
.xe-card { background: var(--c); border-bottom: 5px solid var(--a); border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.xe-head { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.xe-icon { font-size: 28px; }
.xe-level { display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(255, 255, 255, .75); border-radius: 14px; padding: 6px; }
.xe-level span { display: flex; flex-direction: column; align-items: center; min-width: 54px; }
.xe-level small { color: var(--muted); font-weight: 700; font-size: 12px; }
.xe-level b { font-size: 26px; font-weight: 900; color: var(--a); line-height: 1; }
.xe-nolv { color: var(--muted); font-weight: 800; padding: 10px; }
.lv-btn { width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--a); color: #fff; font-size: 26px; font-weight: 900; cursor: pointer; box-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.lv-btn:active { transform: translateY(2px); box-shadow: none; }
.xe-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13.5px; font-weight: 700; color: #5E5768; }
.xe-card .linkbtn { align-self: flex-start; padding: 2px; font-size: 14px; }
.grade-grid.small .grade-opt { padding: 10px 6px; } .grade-grid.small .ge { font-size: 30px; }
.prog-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 8px 0; }
.prog-pick.off { opacity: .4; pointer-events: none; }
.pp { display: flex; align-items: center; gap: 8px; background: var(--c); border-left: 5px solid var(--a); border-radius: 12px; padding: 10px; font-weight: 800; cursor: pointer; min-height: 48px; }
.pp input { width: 22px; height: 22px; accent-color: var(--a); flex: none; }
.teacher textarea { width: 100%; font: inherit; font-size: 17px; padding: 12px; border-radius: 14px; border: 2px solid var(--line); resize: vertical; }
.danger-t { color: var(--bad) !important; border-color: #F3B8BD !important; }
.bad-list { text-align: left; color: var(--bad); font-weight: 700; font-size: 15px; }

@media (max-width: 600px) {
  .prog-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard { min-height: 116px; } .pc-icon { font-size: 40px; } .pc-title { font-size: 15px; }
  .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ex-card { min-height: 150px; padding: 14px 8px 10px; } .ec-icon { font-size: 44px; } .ec-title { font-size: 16px; } .ec-desc { display: none; }
  .s-grid { grid-template-columns: 1fr; }
  .xe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xe-head { font-size: 14px; }
  .lv-btn { width: 40px; height: 40px; }
  .teacher .top-btns { width: 100%; }
}
@media print {
  .teacher .t-filter, .teacher .t-help, .lv-btn, .linkbtn, .teacher textarea + .row-btns { display: none !important; }
}
@media (max-width: 600px) {
  .teacher .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .teacher .tiles .tile { min-width: 0; }
  .teacher .top-btns .btn { flex: 1 1 auto; }
}

/* ===== İnternet senkronu ===== */
.sync-box, .cloud-bar { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; background: #EAF7EE; border: 2px solid #BFE6CB; }
.sync-box.off, .cloud-bar.off { background: #F4F8FF; border-color: #CFE0FA; }
.sync-box.warn, .cloud-bar.warn { background: #FFF6E5; border-color: #FFE0A3; }
.sync-box > div, .cloud-bar > div:not(.cb-btns) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sync-box b, .cloud-bar b { font-size: 18px; }
.sync-box small, .cloud-bar small { color: #5E5768; font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.sb-ic { font-size: 40px; flex: none; }
.cb-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.remote-note { margin: 4px 0 0; }
.cloud .steps { display: flex; flex-direction: column; gap: 14px; }
.cloud .step { display: flex; gap: 16px; align-items: flex-start; }
.cloud .step > div { flex: 1; min-width: 0; }
.cloud .step b { font-size: 19px; }
.cloud .step p { margin: 6px 0 10px; line-height: 1.45; }
.st-n { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 900; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.code-peek { margin-top: 10px; } .code-peek summary { cursor: pointer; font-weight: 800; color: #2A5DB0; padding: 6px 0; }
.code-peek pre { max-height: 260px; overflow: auto; background: #2F2A3B; color: #F5EFE6; padding: 12px; border-radius: 12px; font-size: 12px; white-space: pre; }
.wide-in { font: inherit; font-size: 17px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); width: 100%; outline: none; }
.wide-in:focus { border-color: var(--primary); }
.link-box { background: #FBF8F4; border: 2px dashed var(--line); border-radius: 14px; padding: 12px; font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; word-break: break-all; margin: 8px 0; user-select: all; }
.link-box.key { font-size: 18px; letter-spacing: .05em; }
.row-btns.left { justify-content: flex-start; flex-wrap: wrap; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; color: inherit; }
.modal-in.txt { letter-spacing: 0; font-size: 16px; text-align: left; }
@media (max-width: 600px) {
  .sync-box, .cloud-bar { flex-wrap: wrap; } .sync-box .btn, .cb-btns, .cb-btns .btn { width: 100%; }
  .cloud .step { gap: 10px; } .st-n { width: 36px; height: 36px; font-size: 18px; }
}
.join-chip { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 22px; text-align: center; }
.join-chip small { color: var(--muted); font-weight: 700; }
.join-chip.on { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 6px; background: #EAF7EE; border: 2px solid #BFE6CB; border-radius: 99px; padding: 10px 18px; font-weight: 700; color: #2D6B42; max-width: 560px; margin-left: auto; margin-right: auto; }
.join-chip + .teacher-entry { margin-top: 10px; }
.paste-btn { width: 100%; margin-top: 8px; }
.ios-note { background: #F4F8FF; border-radius: 14px; padding: 10px 12px; line-height: 1.45; }

/* ===== QR ===== */
.qr-card { display: flex; gap: 20px; align-items: center; }
.qr-box { flex: none; width: 210px; background: #fff; border-radius: 18px; padding: 8px; border: 3px solid #FFD2B0; }
.qr-svg { display: block; width: 100%; height: auto; }
.qr-info { flex: 1; min-width: 0; } .qr-info h3 { margin-top: 0; }
.scan-btn { width: 100%; margin: 6px 0 4px; }
.modal .or { margin: 12px 0 2px; color: var(--muted); font-weight: 700; font-size: 15px; }
.qr-poster { position: fixed; inset: 0; z-index: 80; background: #FFF9F2; display: flex; align-items: center; justify-content: center; padding: 20px; overflow: auto; }
.qp-in { text-align: center; max-width: 720px; width: 100%; }
.qp-brand { font-weight: 900; color: var(--primary); font-size: clamp(18px, 2.6vw, 26px); }
.qr-poster h1 { margin: 4px 0 14px; font-size: clamp(30px, 5vw, 54px); }
.qp-code { width: min(50vh, 82vw, 520px); margin: 0 auto; background: #fff; border-radius: 24px; padding: 12px; box-shadow: var(--shadow); }
.qr-poster ol { display: inline-block; text-align: left; font-size: clamp(18px, 2.4vw, 26px); font-weight: 700; margin: 18px auto 6px; line-height: 1.6; }
.qp-alt { color: var(--muted); font-weight: 700; margin: 4px 0 16px; }
.scan-ov { position: fixed; inset: 0; z-index: 90; background: #1E1A26; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; color: #fff; }
.scan-box { position: relative; width: min(90vw, 70vh, 520px); aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: #000; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; inset: 12%; border: 5px solid #FFD633; border-radius: 22px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); animation: scanPulse 1.4s ease-in-out infinite; }
@keyframes scanPulse { 50% { inset: 14%; } }
.scan-tip { font-size: 19px; font-weight: 800; text-align: center; margin: 0; }
.scan-cancel { background: #fff; color: var(--ink); }
@media (max-width: 600px) { .qr-card { flex-direction: column; } .qr-box { width: min(260px, 80%); } }
@media print {
  body.printing-qr #app, body.printing-qr .modal-bg { display: none !important; }
  body.printing-qr .qr-poster { position: static; background: #fff; padding: 0; }
  body.printing-qr .qp-close { display: none; }
  body.printing-qr .qp-code { width: 12cm; box-shadow: none; border: 2px solid #ddd; }
}
.about-link { display: block; margin-top: 14px; color: var(--muted); font-weight: 800; font-size: 15px; text-decoration: none; }
.about-link:hover { color: var(--ink); text-decoration: underline; }
.t-help a { color: #2A5DB0; font-weight: 800; }
