/* Trafik Dersi — büyük yazı, yüksek kontrast, sade. */

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url(fonts/ahn-latin.woff2) format('woff2');
  font-weight: 200 800; font-display: swap;
  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;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url(fonts/ahn-latin-ext.woff2) format('woff2');
  font-weight: 200 800; font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Atkinson'ın sıfırı üstü çizili; rakamlar için düz sıfırlı Lexend kullanılır. */
@font-face {
  font-family: 'Trafik Rakam';
  src: url(fonts/digits.woff2) format('woff2');
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0030-0039;
}

:root {
  --bg: #F5F1E8;
  --card: #FFFFFF;
  --ink: #141414;
  --ink2: #3A3A3A;
  --line: #D8D0BF;
  --go: #13773A;
  --go-dark: #0B5527;
  --blue: #1F5BA8;
  --red: #B71C23;
  --ok-bg: #E2F3E6;
  --no-bg: #FDE9E7;
  --gold: #F2B705;
  color-scheme: light;
  font-size: 23px;
}
:root[data-size="1"] { font-size: 20px; }
:root[data-size="3"] { font-size: 27px; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Trafik Rakam', 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 1.15rem;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}
body.modal-open { overflow: hidden; }
h1, h2, p { margin: 0; }
svg { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.no-tts .tts-only { display: none !important; }
[hidden] { display: none !important; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- düğmeler ---------- */

.btn {
  font: inherit;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.15;
  min-height: 3.1rem;
  padding: .45rem 1rem;
  border-radius: 18px;
  border: 3px solid var(--ink);
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .08s, box-shadow .08s;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { opacity: .35; cursor: default; }
.btn .ic { width: 1.15em; height: 1.15em; flex: none; }
.btn.go { background: var(--go); border-color: var(--go-dark); color: #fff; box-shadow: 0 4px 0 var(--go-dark); }
.btn.go:active:not(:disabled) { box-shadow: 0 1px 0 var(--go-dark); }
.btn.danger { background: var(--red); border-color: #7d1015; color: #fff; box-shadow: 0 4px 0 #7d1015; }
.btn.big { width: 100%; min-height: 3.5rem; font-size: 1.2rem; }
.btn.wide { width: 100%; margin-top: 1.4rem; }
.btn.speak { border-color: var(--blue); color: var(--blue); box-shadow: 0 4px 0 var(--blue); font-size: 1rem; min-height: 2.6rem; margin: .2rem auto 0; display: flex; }
.btn.speak.on { background: var(--blue); color: #fff; }
:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }

/* ---------- ana sayfa ---------- */

.home { padding-block: 1.1rem 3rem; }
.home-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.home-head .logo { flex: none; width: 3.2rem; }
.home-head .logo svg { width: 100%; height: auto; }
.home-head h1 { font-size: 1.9rem; line-height: 1.05; font-weight: 800; letter-spacing: -.01em; }
.home-head p { color: var(--ink2); font-size: 1rem; margin-top: .15rem; }

.hero {
  background: var(--card);
  border: 3px solid var(--go);
  border-radius: 26px;
  padding: 1rem 1rem 1.15rem;
  box-shadow: 0 10px 28px rgba(60, 40, 10, .10);
}
.eyebrow { font-size: .95rem; font-weight: 800; color: var(--go); text-transform: uppercase; letter-spacing: .04em; }
.hero-row { display: flex; align-items: center; gap: .9rem; margin: .5rem 0 1rem; }
.hero-art { flex: none; width: 5.2rem; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.2)); }
.hero h2 { font-size: 1.45rem; line-height: 1.15; font-weight: 800; }
.hero-sub { color: var(--ink2); font-size: 1rem; margin-top: .2rem; }
.hero-note { color: var(--ink2); font-size: 1rem; margin: -.3rem 0 1rem; }

.sec-title { font-size: 1.3rem; font-weight: 800; margin: 1.8rem 0 .7rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
.muted { color: var(--ink2); font-weight: 400; font-size: .9rem; }

.list { display: grid; gap: .6rem; }
.row {
  font: inherit; color: inherit; text-align: left;
  display: flex; align-items: center; gap: .75rem;
  width: 100%;
  min-height: 4.2rem;
  padding: .6rem .75rem;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 20px;
  cursor: pointer;
  touch-action: manipulation;
}
.row:active { transform: scale(.99); }
.row.next { border: 3px solid var(--go); }
.row-art { flex: none; width: 3rem; }
.row-art svg { width: 100%; height: auto; }
.row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-t { font-weight: 800; font-size: 1.08rem; line-height: 1.2; }
.row-s { color: var(--ink2); font-size: .88rem; line-height: 1.3; margin-top: .1rem; }
.tick { flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--go); color: #fff; display: grid; place-items: center; }
.tick .ic { width: 1.2rem; height: 1.2rem; }
.tick.empty { background: none; border: 3px solid var(--line); }

.settings { margin-top: .6rem; }
.set { background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: .8rem; margin-bottom: .7rem; }
.set-lbl { font-weight: 800; margin-bottom: .6rem; font-size: 1.05rem; }
.seg { display: flex; gap: .5rem; }
.seg-b {
  flex: 1; font: inherit; font-weight: 800; color: var(--ink);
  background: #fff; border: 3px solid var(--line); border-radius: 14px;
  min-height: 3rem; padding: .3rem .2rem; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
}
.seg-b small { font-size: .7rem; font-weight: 700; color: var(--ink2); margin-top: .15rem; }
.seg-b[aria-pressed="true"] { border-color: var(--go); background: var(--ok-bg); box-shadow: inset 0 0 0 2px var(--go); }
.size-1 b { font-size: 1rem; } .size-2 b { font-size: 1.3rem; } .size-3 b { font-size: 1.65rem; }
.link { font: inherit; font-size: .95rem; color: var(--red); background: none; border: 0; padding: .3rem 0; text-decoration: underline; cursor: pointer; }
.confirm { margin-top: .6rem; }
.confirm p { font-weight: 800; margin-bottom: .6rem; }
.confirm-btns { display: flex; gap: .6rem; flex-wrap: wrap; }
.confirm-btns .btn { flex: 1; }

/* bölümler (açılır kapanır) */
.secs { display: grid; gap: .7rem; }
.sec { background: var(--card); border: 2px solid var(--line); border-radius: 22px; overflow: hidden; }
.sec[open] { border-color: #BDB39E; }
.sec summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: .75rem;
  padding: .7rem .8rem; min-height: 4.2rem; touch-action: manipulation;
}
.sec summary::-webkit-details-marker { display: none; }
.sec-art { flex: none; width: 3rem; }
.sec-art svg { width: 100%; height: auto; }
.sec-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sec-t { font-weight: 800; font-size: 1.15rem; line-height: 1.2; }
.sec-s { color: var(--ink2); font-size: .88rem; margin-top: .1rem; }
.chev { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 3px solid var(--ink); display: grid; place-items: center; transition: transform .2s; }
.chev .ic { width: 1.1rem; height: 1.1rem; }
.sec[open] .chev { transform: rotate(180deg); }
.sec .list { padding: 0 .6rem .7rem; }
.sec .row { background: #FBF9F4; }
.btn.redo { border-color: #B26B00; color: #6E4100; background: #FFF3DC; box-shadow: 0 4px 0 #B26B00; }
.btn.redo b { font-weight: 800; }
/* e-sinav/ sayfasına bağlantı */
.row.esinav-link { margin-top: 1rem; border: 3px solid var(--blue); text-decoration: none; overflow-wrap: anywhere; }
.esinav-link .row-t { color: var(--blue); }

/* ---------- üst ve alt çubuk ---------- */

.topbar {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar-in {
  max-width: 720px; margin: 0 auto;
  padding: .6rem 16px .5rem;
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
}
.home-btn { font-size: .95rem; min-height: 2.6rem; padding: .3rem .8rem; box-shadow: 0 3px 0 var(--ink); }
.count { font-size: 1.05rem; color: var(--ink2); white-space: nowrap; }
.count b { color: var(--ink); font-size: 1.25rem; }

.progress { height: 12px; background: #E2DACA; border-radius: 99px; overflow: hidden; margin: .1rem 0 .9rem; }
.progress span { display: block; height: 100%; width: 0; background: var(--go); border-radius: 99px; transition: width .35s ease; }

.bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  background: rgba(245, 241, 232, .97);
  border-top: 2px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottombar-in { max-width: 720px; margin: 0 auto; padding: .65rem 16px .8rem; display: flex; gap: .5rem; }
.bottombar .btn { min-height: 3.4rem; min-width: 0; padding-inline: .5rem; font-size: min(1.2rem, 5.6vw); text-align: center; }
.bottombar .back { flex: 1; }
.bottombar .speak-bar {
  flex: none; flex-direction: column; gap: 0; padding: .2rem .45rem; min-width: 3.2rem;
  border-color: var(--blue); color: var(--blue); box-shadow: 0 4px 0 var(--blue); font-size: min(.72rem, 3.6vw) !important;
}
.bottombar .speak-bar .ic { width: 1.5rem; height: 1.5rem; }
.bottombar .speak-bar.on { background: var(--blue); color: #fff; }
.bottombar .fwd { flex: 1.7; }

/* ---------- ders kartları ---------- */

.lesson, .quiz { padding-bottom: 7.5rem; }
.deck { position: relative; }
.card {
  position: relative;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 28px;
  padding: 1rem 1.1rem 1.2rem;
  box-shadow: 0 12px 30px rgba(60, 40, 10, .12);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  z-index: 1;
}
.card.dragging { cursor: grabbing; }
.card-under {
  position: absolute; left: 14px; right: 14px; top: 16px; bottom: -12px;
  background: #FBF9F4; border: 2px solid var(--line); border-radius: 28px;
}
.card-img { display: flex; justify-content: center; padding: .3rem 0 .8rem; }
.card-img svg { width: min(56vw, 27vh, 280px); height: auto; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .2)); }
.card-title { font-size: 1.55rem; line-height: 1.15; font-weight: 800; text-align: center; margin-bottom: .5rem; letter-spacing: -.005em; }
.card-text { font-size: 1.2rem; line-height: 1.45; margin-bottom: .9rem; }
.card-text.center { text-align: center; }
.card .btn.go.big { margin-top: .3rem; }

.hint { display: flex; gap: .5rem; align-items: center; color: var(--ink); font-size: .95rem; line-height: 1.3; margin: -.3rem 0 .8rem; }
.hint .ic { width: 1.8rem; height: 1.8rem; flex: none; color: var(--ink); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-10px); } }

.blink { animation: blink 1.2s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- test ---------- */

.qcard { padding-top: .8rem; }
.q-img svg { width: min(46vw, 24vh, 220px); }
.q-img.scene svg { width: min(78vw, 42vh, 340px); } /* kavşak sahneleri: numaralar okunsun */
.q-text { font-size: 1.4rem; line-height: 1.2; font-weight: 800; text-align: center; margin-bottom: .7rem; }
.opts { display: grid; gap: .75rem; margin-top: 1.1rem; }
.opt {
  font: inherit; font-weight: 700; font-size: 1.15rem; line-height: 1.25; color: var(--ink); text-align: left;
  display: flex; align-items: center; gap: .7rem;
  width: 100%; min-height: 3.5rem; padding: .6rem .9rem;
  background: #fff; border: 3px solid var(--ink); border-radius: 18px;
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer; touch-action: manipulation;
  transition: transform .08s, box-shadow .08s, opacity .2s;
}
.opt:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.opt:disabled { cursor: default; }
.opt-t { flex: 1; }
.opt-ic { flex: none; width: 2.4rem; }
.opt-ic svg { width: 100%; height: auto; }
.opt .mark { flex: none; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; }
.opt .mark:empty { display: none; }
.opt .mark .ic { width: 1.6rem; height: 1.6rem; }
.opt.right { background: var(--ok-bg); border-color: var(--go); box-shadow: 0 4px 0 var(--go); }
.opt.right .mark { color: var(--go); }
.opt.wrong { background: var(--no-bg); border-color: var(--red); box-shadow: 0 4px 0 var(--red); }
.opt.wrong .mark { color: var(--red); }
.opt.dim { opacity: .45; }
.opts.imgs { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.opt-img { position: relative; padding: .5rem; justify-content: center; aspect-ratio: 1 / 1; }
.opt-img svg { width: 100%; height: auto; filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)); }
.opt-img .mark { position: absolute; top: -.6rem; right: -.6rem; width: 2rem; height: 2rem; border-radius: 50%; background: #fff; border: 3px solid currentColor; }
.opt-img .mark .ic { width: 1.1rem; height: 1.1rem; }

.fb { scroll-margin-bottom: 7rem; margin-top: 1.1rem; border-radius: 20px; padding: .9rem 1rem; border: 3px solid; font-size: 1.1rem; }
.fb.ok { background: var(--ok-bg); border-color: var(--go); }
.fb.no { background: #FFF3DC; border-color: #D98B00; }
.fb-t { font-size: 1.35rem; font-weight: 800; display: flex; align-items: center; gap: .5rem; margin-bottom: .25rem; }
.fb.ok .fb-t { color: var(--go-dark); }
.fb-t .ic { width: 1.4rem; height: 1.4rem; flex: none; }

/* çıkmış sorular: sınavdaki gibi yazılmış kök, altında sade "Yani" açıklaması, A–D şıkları */
.qcard.exam .q-text { font-size: 1.25rem; line-height: 1.3; text-align: left; white-space: pre-line; }
.neg { font-style: normal; color: var(--red); text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.yani { text-align: left; font-size: 1.1rem; line-height: 1.4; background: #EAF1FB; border: 2px solid #B7CBE8; border-radius: 16px; padding: .65rem .85rem; margin-bottom: .8rem; }
.yani-tag { display: inline-block; background: var(--blue); color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .03em; text-transform: uppercase; border-radius: 8px; padding: .1rem .5rem; margin-right: .45rem; vertical-align: .1em; }
.opts.exam .opt { font-size: 1.05rem; }
.opt-l { flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 3px solid var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 1rem; line-height: 1; }
.opt-img .opt-l { position: absolute; top: -.6rem; left: -.6rem; background: #fff; }
.opt.right .opt-l { background: var(--go); border-color: var(--go); color: #fff; }
.opt.wrong .opt-l { background: var(--red); border-color: var(--red); color: #fff; }
.card-text.small { font-size: 1rem; color: var(--ink2); margin-top: .5rem; }
.intro-list { list-style: none; padding: 0; margin: 1rem 0 1.2rem; display: grid; gap: .8rem; text-align: left; font-size: 1.05rem; line-height: 1.35; }
.intro-list li { display: flex; gap: .7rem; align-items: center; }
.intro-list li > :first-child { flex: none; min-width: 4.6rem; text-align: center; margin: 0; }
.intro-list li > span.opt-l { min-width: 0; width: 2.1rem; margin: 0 1.25rem; }

.result { text-align: center; padding-top: 1.4rem; }
.q-cat { text-align: center; font-size: .85rem; font-weight: 800; color: var(--ink2); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .4rem; }
.opts.imgs.n4 { grid-template-columns: repeat(2, 1fr); }
.opts.imgs.n4 .opt-img svg { max-width: 9rem; margin: 0 auto; }
.verdict { display: inline-block; font-weight: 800; font-size: 1.3rem; padding: .3rem 1rem; border-radius: 99px; margin-bottom: .6rem; }
.verdict.pass { background: var(--ok-bg); color: var(--go-dark); border: 3px solid var(--go); }
.verdict.fail { background: #FFF3DC; color: #6E4100; border: 3px solid #D98B00; }
.points { font-size: 3.2rem; line-height: 1; font-weight: 800; margin-bottom: .5rem; }
.points small { font-size: 1.2rem; color: var(--ink2); }
.breakdown { list-style: none; padding: 0; margin: .4rem 0 0; text-align: left; display: grid; gap: .7rem; }
.breakdown li { display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; font-size: 1rem; }
.bd-name { font-weight: 700; }
.bd-num { font-weight: 800; }
.bd-bar { grid-column: 1 / -1; height: 10px; background: #E2DACA; border-radius: 99px; overflow: hidden; }
.bd-bar span { display: block; height: 100%; background: var(--go); }
.stars { display: flex; justify-content: center; gap: .3rem; margin-bottom: .8rem; }
.stars span { width: 3.6rem; color: #DDD5C4; }
.stars span.on { color: var(--gold); filter: drop-shadow(0 2px 0 #C98F00); }
.stars .ic { width: 100%; height: auto; }
.result-btns { display: grid; gap: .8rem; margin-top: 1.1rem; }

/* ---------- sekmeler ---------- */

.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin-bottom: 1.1rem; }
.tab {
  font: inherit; font-weight: 800; font-size: min(1.02rem, 4.4vw); line-height: 1.15; color: var(--ink);
  background: #fff; border: 3px solid var(--line); border-radius: 16px;
  min-height: 3.2rem; min-width: 0; padding: .35rem .4rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; text-align: center;
  cursor: pointer; touch-action: manipulation;
}
.tab .ic { width: 1.25em; height: 1.25em; flex: none; }
.tab.on { border-color: var(--go); background: var(--ok-bg); box-shadow: inset 0 0 0 2px var(--go); color: var(--go-dark); cursor: default; }

/* ---------- ezber kartları ---------- */

.fc-lead { color: var(--ink2); font-size: 1rem; margin-bottom: .9rem; }
.fc-list { grid-template-columns: minmax(0, 1fr); }
.fc-list .row-txt { overflow-wrap: anywhere; }
.row-txt .bd-bar { margin-top: .4rem; }
.fc-chev { flex: none; width: 1.5rem; color: var(--ink2); }
.fc-chev .ic { width: 100%; height: auto; }

.fc { position: relative; z-index: 1; perspective: 1400px; cursor: pointer; touch-action: pan-y; }
.fc.dragging { cursor: grabbing; }
.fc-in { position: relative; display: grid; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; transition: transform .45s cubic-bezier(.3,.7,.3,1); }
.fc-in.flipped { transform: rotateY(180deg); }
.fc-face {
  grid-area: 1 / 1; min-width: 0; min-height: min(56vh, 26rem);
  display: flex; flex-direction: column; justify-content: center;
  /* "hareketsizleştirilmesinin" gibi uzun kelimeler kartı taşırmasın: taşan sayfa telefonda genişler, dokunuşlar kayar. */
  overflow-wrap: anywhere;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  /* Giden yüz dönüş bitince gizlenir (ekran okuyucu ve seçim için); gelen yüz hemen görünür. */
  visibility: hidden; transition: visibility 0s linear .45s;
}
.fc-back { transform: rotateY(180deg); }
.fc-in:not(.flipped) .fc-front, .fc-in.flipped .fc-back { visibility: visible; transition-delay: 0s; }
/* Kartın boyunu görünen yüz belirler; yoksa uzun sorunun kısa cevabı ekranın dışında kalır. */
.fc-in:not(.flipped) .fc-back, .fc-in.flipped .fc-front { position: absolute; inset: 0; overflow: hidden; }
.fc-in.no-anim, .fc-in.no-anim .fc-face { transition: none; }
.fc-label { text-align: center; margin-bottom: .25rem; }
.fc-ans { font-size: 1.45rem; line-height: 1.2; font-weight: 800; color: var(--go-dark); text-align: center; margin-bottom: .7rem; -webkit-hyphens: auto; hyphens: auto; }
.card-img.fc-thumb { padding: .1rem 0 .5rem; }
.card-img.fc-thumb svg { width: min(30vw, 15vh, 130px); }
.card-img.fc-thumb.scene svg { width: min(46vw, 22vh, 190px); }

.fc-stamp {
  position: absolute; top: 1rem; z-index: 3; pointer-events: none; opacity: 0;
  font-weight: 800; font-size: 1.2rem; line-height: 1.1; padding: .3rem .7rem; border-radius: 12px; border: 3px solid; background: #fff;
}
.fc-stamp.yes { left: 1rem; color: var(--go-dark); border-color: var(--go); transform: rotate(-8deg); }
.fc-stamp.no { right: 1rem; color: #6E4100; border-color: #B26B00; transform: rotate(8deg); }

.btn.fc-no { border-color: #B26B00; color: #6E4100; background: #FFF3DC; box-shadow: 0 4px 0 #B26B00; }
.btn.fc-no:active:not(:disabled) { box-shadow: 0 1px 0 #B26B00; }
.bottombar .fc-show, .bottombar .fc-yes, .bottombar .fc-no { flex: 1; }
.fc-end-bar { display: block; margin: .2rem 0 .4rem; }

/* Çok dar ekran + en büyük yazı: "Ana Sayfa" yalnızca simge olur, süs simgeleri kalkar, yazıya yer açılır. */
@media (max-width: 340px) {
  :root[data-size="3"] .home-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  :root[data-size="3"] .fc-yes .ic, :root[data-size="3"] .fc-chev { display: none; }
  :root[data-size="3"] .fc-list .row-art { width: 2.2rem; }
}

/* ---------- bütün işaretler ---------- */

.foot { text-align: center; margin-top: 1.6rem; font-size: .9rem; }
.foot a, .sources a { color: var(--blue); }
.src-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.src-list li { display: flex; gap: .7rem; align-items: center; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: .5rem .7rem; font-size: .8rem; line-height: 1.35; }
.src-list img { width: 3rem; height: 3rem; object-fit: contain; flex: none; }

.dict { padding-bottom: 3rem; }
.page-title { font-size: 1.8rem; font-weight: 800; margin: .6rem 0 .2rem; }
.page-sub { color: var(--ink2); font-size: 1rem; }
.dgroup .sec-title { margin-top: 1.6rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .6rem; }
.tile {
  font: inherit; color: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  background: var(--card); border: 2px solid var(--line); border-radius: 18px;
  padding: .7rem .5rem .6rem;
  font-weight: 700; font-size: .95rem; line-height: 1.2; text-align: center;
  touch-action: manipulation;
}
.tile svg { width: 80%; max-width: 7rem; height: auto; filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)); }

.modal {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(20, 20, 20, .55);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  overflow-y: auto;
}
.modal-card { width: 100%; max-width: 640px; margin: auto 0 0; }
.modal-card .close { margin-top: 1rem; }
@media (min-height: 700px) and (min-width: 600px) { .modal { align-items: center; } .modal-card { margin: auto; } }

/* ---------- geniş ekranlar ---------- */

@media (min-width: 700px) {
  .card { padding: 1.4rem 2rem 1.6rem; }
  .card-img svg { width: min(32vh, 300px); }
  .q-img svg { width: min(24vh, 220px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- soru videoları ---------- */

.vid-count { font-weight: 700; color: var(--go-dark); margin: -.3rem 0 .8rem; }
.vid-art { position: relative; }
.vid-play { position: absolute; right: -.35rem; bottom: -.25rem; width: 1.55rem; height: 1.55rem; border-radius: 50%;
  background: var(--red); color: #fff; border: 2px solid #fff; display: grid; place-items: center; }
.vid-play .ic { width: .8rem; height: .8rem; margin-left: .1rem; }
.vid-box { aspect-ratio: 9 / 16; width: min(100%, calc(70vh * 9 / 16)); margin: .9rem auto 1rem; background: #15171c;
  border-radius: 20px; overflow: hidden; border: 3px solid var(--ink); }
.vid { display: block; width: 100%; height: 100%; background: #15171c; }
.vmodal .vid-box { width: min(100%, calc(66vh * 9 / 16)); margin-top: .4rem; }
.vid-page .page-title { overflow-wrap: anywhere; }
.vid-tip { display: flex; align-items: center; justify-content: center; gap: .5rem; color: var(--ink2); font-size: 1rem; margin: 0 0 1.2rem; text-align: center; }
.vid-tip .ic { width: 1.4rem; height: 1.4rem; flex: none; color: var(--blue); }
.btn.vid-btn { width: 100%; margin-top: .9rem; border-color: var(--blue); color: var(--blue); box-shadow: 0 4px 0 var(--blue); }
.btn.vid-btn:active:not(:disabled) { box-shadow: 0 1px 0 var(--blue); }
.btn.vid-dl { margin: 0 0 .9rem; text-decoration: none; border-color: var(--blue); color: var(--blue); box-shadow: 0 4px 0 var(--blue); }
.btn.vid-dl:active { box-shadow: 0 1px 0 var(--blue); }
.vmodal .btn.vid-dl { margin: .9rem 0 0; }
.fc-list.vid-list .row-txt { overflow-wrap: break-word; }
:root[data-size="3"] .vid-list .fc-chev { display: none; }
:root[data-size="3"] .vid-list .row { gap: .55rem; padding-inline: .6rem; }
:root[data-size="3"] .vid-list .row-art { width: 2.3rem; }
:root[data-size="3"] .vid-list .tick { width: 1.6rem; height: 1.6rem; }
