/* =====================================================================
   NOTA ŞİFRELERİ – "Lavanta" teması
   Satır içi stil (style="...") kullanılmaz; görünüm bu dosyadadır.
   ===================================================================== */
:root {
  --zemin-1: #f3e8ff;
  --zemin-2: #d6c6f3;
  --kart: rgba(255, 255, 255, 0.95);
  --bar: #efe7fc;
  --yazi: #2e1f57;
  --soluk: #6d5a9c;
  --vurgu: #7c3aed;
  --vurgu-koyu: #6d28d9;
  --p1: #7c3aed;
  --p2: #db2777;
  --kenar: #d9ccf5;
  --yuva-kenar: #b9a6ea;
  --yesil: #16a34a;
  --kirmizi: #dc2626;
  --turuncu: #ea580c;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Kaydırma çubuğunun yeri her zaman ayrılır: çubuk çıkıp kaybolunca sayfa genişliği
   değişmez, porte ve altındaki öğeler oynamaz (tam ekranda çubuk olmadığı için sorun yoktu). */
html {
  scrollbar-gutter: stable;
  /* Arka plan sayfanın en dış katmanında da var: kaydırma çubuğu için ayrılan
     şerit, çubuk görünmediğinde (ör. giriş ekranı) beyaz kalmasın. */
  background: radial-gradient(circle at center, var(--zemin-1), var(--zemin-2)) fixed;
  background-color: var(--zemin-2);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: radial-gradient(circle at center, var(--zemin-1), var(--zemin-2));
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--yazi);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
}
button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--vurgu); outline-offset: 2px; }
.gizli { display: none !important; }

/* ---- Üst düğmeler ---- */
.ust-dugme {
  position: fixed; top: .5rem; z-index: 50;
  display: flex; align-items: center; gap: .5rem;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(46, 31, 87, .12);
  border-radius: 1rem; padding: .5rem .875rem;
  font-size: .875rem; font-weight: 800; color: var(--yazi); text-decoration: none;
  box-shadow: 0 10px 18px -8px rgba(46, 31, 87, .35);
}
#ayarlar-dugme { left: .75rem; }
#ana-sayfa-dugme { left: 50%; transform: translateX(-50%); }
#tam-ekran-dugme { right: .75rem; }

/* ---- Ayarlar penceresi ---- */
.pencere-arka {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(46, 31, 87, .45);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.pencere {
  background: #fff; border: 2px solid var(--kenar); border-radius: 1.5rem;
  width: 100%; max-width: 26rem; padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  box-shadow: 0 25px 50px -12px rgba(46, 31, 87, .5);
}
.pencere-ust { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--kenar); padding-bottom: .75rem; }
.pencere-ust h3 { font-size: 1.4rem; font-weight: 900; }
.pencere-x { width: 2.25rem; height: 2.25rem; border-radius: .75rem; background: var(--bar); font-size: 1.3rem; font-weight: 700; color: var(--soluk); }
.cikis-dugme { padding: .9rem; border-radius: .75rem; background: #e11d48; color: #fff; font-weight: 900; }
.kapat-dugme { padding: .75rem; border-radius: .75rem; background: var(--bar); font-weight: 700; border: 1px solid var(--kenar); }

/* ---- Düzen ---- */
#duzen {
  width: 100%; max-width: 76rem;
  padding: 0 1rem; margin: 4.5rem 0 1.5rem;
  display: flex; gap: .625rem; align-items: flex-start; justify-content: center;
}
.yan-sutun { width: clamp(9rem, 11.5vw, 13.5rem); margin-top: 6rem; display: flex; flex-direction: column; gap: .75rem; flex-shrink: 0; }
#ana-kart {
  flex: 1; min-width: 0;
  background: var(--kart); border: 1px solid rgba(46, 31, 87, .1);
  border-radius: 1.5rem; box-shadow: 0 0 3rem rgba(46, 31, 87, .18);
  overflow: hidden; display: flex; flex-direction: column;
}

/* ---- Giriş ---- */
#giris-ekrani { padding: 1.6rem 1.5rem 2rem; display: flex; flex-direction: column; align-items: center; gap: 1.3rem; text-align: center; }
.baslik {
  font-size: 4rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.3;
  padding: 0 .1em .18em;   /* Ş harfinin kuyruğu (çengeli) kesilmesin */
  background: linear-gradient(to right, #6d28d9, #a855f7, #db2777);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--vurgu);
}
.giris-aciklama { font-size: 1.25rem; font-weight: 600; max-width: 46rem; line-height: 1.55; }
.vurgu { color: var(--vurgu); font-weight: 800; }
.kunye-kart {
  background: #fff; border: 1px solid var(--kenar); border-radius: 1rem; padding: 1rem 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 2rem;
  font-weight: 800; font-size: 1.2rem; max-width: 56rem; width: 100%;
}
.kunye-satir { white-space: nowrap; }
.rol-1 { color: var(--vurgu); font-weight: 800; }
.rol-2 { color: var(--p2); font-weight: 800; }
.mod-izgara { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; width: 100%; max-width: 64rem; }
.mod-izgara .mod-sunum { order: 4; }   /* 1x4: Egzersiz, Bireysel, 2 Takımlı, Öğretmen (2x2'de: sağ üstte Öğretmen) */
.mod-kart {
  background: #fff; border: 3px solid #ddd2f6; border-radius: 1rem; padding: 1.1rem;
  text-align: left; display: flex; flex-direction: column; gap: .4rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.mod-ust { display: flex; justify-content: space-between; align-items: center; min-height: 2.2rem; }
.mod-simge { font-size: 1.8rem; }
.rozet { font-size: .75rem; font-weight: 900; color: #fff; padding: .25rem .6rem; border-radius: 999px; visibility: hidden; }
.mod-baslik { font-size: 1.2rem; font-weight: 900; }
.mod-aciklama { font-size: .9rem; color: var(--soluk); font-weight: 500; line-height: 1.4; }
.mod-egzersiz { border-color: rgba(234, 88, 12, .45); } .mod-egzersiz .mod-baslik { color: #c2410c; } .mod-egzersiz .rozet { background: #ea580c; }
.mod-sunum { border-color: rgba(22, 163, 74, .45); } .mod-sunum .mod-baslik { color: #15803d; } .mod-sunum .rozet { background: #16a34a; }
.mod-bireysel { border-color: rgba(124, 58, 237, .45); } .mod-bireysel .mod-baslik { color: #6d28d9; } .mod-bireysel .rozet { background: #7c3aed; }
.mod-takim { border-color: rgba(219, 39, 119, .45); } .mod-takim .mod-baslik { color: #be185d; } .mod-takim .rozet { background: #db2777; }
.mod-kart.secili { transform: scale(1.02); }
.mod-kart.secili .rozet { visibility: visible; }
.mod-egzersiz.secili { border-color: #ea580c; background: #fff4ec; box-shadow: 0 0 0 4px rgba(234, 88, 12, .2); }
.mod-sunum.secili { border-color: #16a34a; background: #effcf3; box-shadow: 0 0 0 4px rgba(22, 163, 74, .2); }
.mod-bireysel.secili { border-color: #7c3aed; background: #f5f0ff; box-shadow: 0 0 0 4px rgba(124, 58, 237, .2); }
.mod-takim.secili { border-color: #db2777; background: #fdf2f8; box-shadow: 0 0 0 4px rgba(219, 39, 119, .2); }
.basla-dugme {
  width: 100%; max-width: 64rem; padding: 1.15rem 0; border-radius: 1.1rem;
  font-weight: 900; font-size: 1.4rem; color: #fff;
  background: linear-gradient(to right, #6d28d9, #8b5cf6);
  box-shadow: 0 18px 30px -14px rgba(109, 40, 217, .7);
}
.basla-dugme:active, .mod-kart:active { transform: scale(.97); }

/* ---- Oyun ekranı ---- */
.ust-bar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; background: var(--bar); padding: .5rem 1.5rem; border-bottom: 1px solid rgba(46, 31, 87, .08); }
.sayac { font-size: 1.2rem; font-weight: 900; color: var(--vurgu); }
.bolum-etiketi { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--kenar); border-radius: 999px; padding: .2rem .7rem; font-size: .85rem; font-weight: 800; color: var(--soluk); margin-left: .6rem; vertical-align: middle; }
.mod-gosterge { font-size: 1.2rem; font-weight: 900; }
.mod-gosterge span { color: var(--vurgu); }
.oyun-ic { padding: .75rem 1rem 1rem; display: flex; flex-direction: column; gap: .7rem; align-items: center; }
.yonerge { font-weight: 800; color: var(--soluk); font-size: 1.05rem; text-align: center; min-height: 1.4em; }

/* Porte kâğıdı */
.kagit { width: 100%; background: #fff; border: 1px solid var(--kenar); border-radius: 1rem; padding: .6rem .6rem 1rem .5rem; box-shadow: inset 0 2px 10px rgba(46, 31, 87, .06); }
.porte { display: block; max-width: 100%; height: auto; }
.satir { display: grid; gap: .5rem; margin-top: 1.1rem; }
.nota-adi { text-align: center; font-weight: 900; font-size: 2.5rem; line-height: 1.1; }
.yuva {
  height: 4.1rem; border: 2.5px dashed var(--yuva-kenar); border-radius: .9rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.75rem; color: var(--yuva-kenar); background: #faf7ff; position: relative;
  transition: background .15s ease, border-color .15s ease;
}
.yuva.dolu { cursor: default; }
.yuva.dogru { border: 2.5px solid var(--yesil); background: #dcfce7; color: #14532d; }
.yuva.yanlis { border: 2.5px solid var(--turuncu); background: #fff1e6; color: #9a3412; }
.yuva.dogru::after, .yuva.yanlis::after {
  position: absolute; top: -.6rem; right: -.5rem; color: #fff; font-size: .75rem;
  width: 1.3rem; height: 1.3rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.yuva.dogru::after { content: '✓'; background: var(--yesil); }
.yuva.yanlis::after { content: '✗'; background: var(--turuncu); }
/* Bilinemeyen yer: kutudaki nota doğru cevaptır. Çarpı yerine "💡 Doğrusu" etiketi. */
.yuva.yanlis::after {
  content: '💡 Doğrusu';
  width: auto !important; height: auto !important;
  right: auto !important; left: 50%; transform: translateX(-50%);
  top: -.8rem !important;
  padding: .12rem .55rem; border-radius: 999px;
  font-size: .78rem !important; font-weight: 800; line-height: 1.3; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(154, 52, 18, .3);
}
.yuva.hedef { border: 2.5px solid var(--vurgu); background: #efe7fc; box-shadow: 0 0 0 4px rgba(124, 58, 237, .2); }
.yuva.hata { border: 2.5px solid var(--kirmizi); background: #fee2e2; color: var(--kirmizi); animation: salla .35s ease; }
.yuva.sorulan { border: 2.5px solid var(--vurgu); background: #efe7fc; color: var(--vurgu); font-size: 2rem; }
/* Bireysel / takım: sorulan yer turuncu ('Doğrusu' kutularından ayrılsın diye zemini beyaz) */
.yuva.sorulan.turuncu { border-color: #f97316; background: #fff; color: #f97316; box-shadow: 0 0 0 4px rgba(249, 115, 22, .2); }
@keyframes salla { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* Şifre */
.sifre { width: 100%; background: #fff; border: 1px solid var(--kenar); border-radius: 1rem; padding: .9rem 1rem; text-align: center; }
.sifre-etiket { font-size: .85rem; font-weight: 900; letter-spacing: .12em; color: var(--soluk); }
.sifre-cumle { font-size: 2.35rem; font-weight: 700; margin-top: .3rem; line-height: 1.4; }
.sifre-cumle b { font-weight: 900; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Mesaj */
.mesaj { font-weight: 900; font-size: 1.35rem; text-align: center; min-height: 1.8rem; }
.mesaj.iyi { color: var(--yesil); } .mesaj.kotu { color: var(--kirmizi); } .mesaj.notr { color: var(--vurgu); }

/* Nota kartları */
.tepsi { width: 100%; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.tepsi-yazi { font-size: .85rem; font-weight: 800; color: var(--soluk); text-align: center; }
.kartlar { display: flex; gap: 1rem; justify-content: center; min-height: 4.4rem; }
.nk {
  min-width: 8.5rem; height: 4.2rem; padding: 0 1.2rem;
  background: #fff; border: 2.5px solid var(--vurgu); border-radius: .9rem;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  font-weight: 900; font-size: 1.8rem; color: var(--yazi);
  box-shadow: 0 6px 0 #c4b5fd, 0 10px 18px -8px rgba(46, 31, 87, .35);
  touch-action: none; cursor: grab;
}
.nk .tutamak { color: #c4b5fd; font-size: 1rem; letter-spacing: -.15em; }
.nk.bos { border-style: dashed; border-color: #ddd2f6; box-shadow: none; background: transparent; cursor: default; visibility: visible; }
.nk.secili { background: #efe7fc; box-shadow: 0 0 0 4px rgba(124, 58, 237, .3), 0 6px 0 #c4b5fd; }
.nk.tasiniyor { opacity: .35; }
.nk.hayalet {
  position: fixed; z-index: 200; pointer-events: none; margin: 0;
  transform: rotate(-5deg) scale(1.06); box-shadow: 0 20px 30px -10px rgba(46, 31, 87, .5); cursor: grabbing;
}

/* Yanlış seçilen şık (tekrar denenebilen modlar) */
.secim .nk.hatali { border-color: var(--kirmizi); background: #fee2e2; color: var(--kirmizi); box-shadow: 0 6px 0 #fca5a5; animation: salla .35s ease; }

/* Nota şıkları */
.secim { display: grid; gap: 1rem; width: 100%; }
.secim .nk { min-width: 0; width: 100%; cursor: pointer; touch-action: manipulation; }
.secim .nk:disabled { opacity: .4; cursor: default; }

/* Puan kartları ve Geri / İleri */
.skor {
  background: #fff; border: 4px solid var(--p1); border-radius: 1.5rem; padding: 1rem; text-align: center;
  box-shadow: 0 18px 30px -14px rgba(46, 31, 87, .4); min-height: 7.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
}
.skor.p2 { border-color: var(--p2); }
.skor.pasif { border-color: transparent; opacity: .75; }
.skor-nokta { width: 1rem; height: 1rem; border-radius: 50%; background: var(--p1); }
.skor.p2 .skor-nokta { background: var(--p2); }
.skor-baslik { font-weight: 900; font-size: 1.15rem; }
.skor-deger { font-weight: 900; font-size: 2.8rem; line-height: 1; color: var(--p1); }
.skor.p2 .skor-deger { color: var(--p2); }
.skor-alt { color: var(--soluk); font-weight: 600; }
.yon {
  background: #fff; border: 2px solid var(--kenar); border-radius: 1.25rem; min-height: 5.25rem;
  font-weight: 900; font-size: 1.35rem; color: var(--yazi);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  box-shadow: 0 18px 30px -14px rgba(46, 31, 87, .4); width: 100%;
}
.yon:disabled { opacity: .35; }
.yon.parla { border-color: var(--vurgu); box-shadow: 0 0 0 4px rgba(124, 58, 237, .25), 0 18px 30px -14px rgba(46, 31, 87, .4); }
.yon small { font-size: .72rem; font-weight: 700; color: var(--soluk); }
.mobil-skor, .mobil-yon { display: none; }

/* Oyun sırasında düzen ekranın tamamını kullanır; Geri / İleri kenarlara yaslanır */
#duzen.genis { max-width: none; padding: 0 .5rem; gap: .5rem; }
#duzen.genis .yan-sutun { width: clamp(7.5rem, 8.5vw, 11rem); }
@media (min-width: 900px) {
  #duzen.genis .skor { min-height: 14.5rem; padding: 1.3rem .4rem; gap: .55rem; }
  #duzen.genis .skor-baslik { font-size: 1.55rem; line-height: 1.15; }
  #duzen.genis .skor-deger { font-size: 5.4rem; }
  #duzen.genis .skor-alt { font-size: 1.45rem; }
}
/* Dar masaüstü: yan sütun daralır, yazılar alt satıra kaymasın ve iki kart eşit kalsın */
@media (min-width: 900px) and (max-width: 1700px) {
  #duzen.genis .skor-baslik { font-size: 1.05rem; }
  #duzen.genis .skor-alt { font-size: 1.05rem; }
  #duzen.genis .skor-deger { font-size: 4.6rem; }
}
@media (min-width: 900px) {
  #duzen.genis .yon { font-size: 1.2rem; }
}

/* Masaüstü: cevap kutuları ve kartlar (porteyle orantılı) */
@media (min-width: 900px) {
  .satir { gap: .7rem; margin-top: .8rem; }
  .yuva { height: 5.6rem; font-size: 3.35rem; border-width: 3px; border-radius: 1rem; }
  .yuva.dogru, .yuva.yanlis, .yuva.hedef, .yuva.hata, .yuva.sorulan { border-width: 3px; }
  .yuva.sorulan { font-size: 3.4rem; }
  .yuva.dogru::after, .yuva.yanlis::after { width: 1.5rem; height: 1.5rem; font-size: .9rem; top: -.7rem; right: -.6rem; }
  .kartlar { width: 100%; gap: 1rem; min-height: 5.4rem; }
  .kartlar .nk { flex: 1 1 0; min-width: 9rem; max-width: 16rem; }
  .nk { height: 5.3rem; font-size: 3rem; border-width: 3px; border-radius: 1rem; }
  .nk .tutamak { font-size: 1.15rem; }
  .secim .nk { height: 5.3rem; }
  .nota-adi { font-size: 3.3rem; }
  .sifre-cumle { font-size: 3.1rem; }
  .oyun-ic { gap: .6rem; }
}

/* Masaüstü: yönerge ve geri bildirim yazıları %150 */
@media (min-width: 900px) {
  .yonerge { font-size: 1.6rem; }
  .mesaj { font-size: 2rem; min-height: 2.7rem; }
}

/* Alt künye */
#alt-kunye {
  padding: .7rem 1rem; background: var(--bar); border-top: 1px solid rgba(46, 31, 87, .08);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 2rem;
  font-weight: 800; font-size: 1.35rem;
}
.alt-satir { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.alt-isim { background: var(--yazi); color: #fff; font-weight: 900; padding: .35rem .85rem; border-radius: .8rem; }
#alt-kunye { padding: .9rem 1rem; gap: .6rem 2.5rem; }

/* Sonuç */
#sonuc-ekrani { padding: 3.5rem 1.5rem 4rem; min-height: 34rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; text-align: center; }
.sonuc-simge { font-size: 6rem; animation: zipla 1s infinite; }
@keyframes zipla { 0%, 100% { transform: translateY(-15%); } 50% { transform: translateY(0); } }
.sonuc-baslik { font-size: 3rem; font-weight: 900; }
.sonuc-alt { font-size: 1.55rem; color: var(--soluk); font-weight: 600; max-width: 46rem; line-height: 1.45; }
.sonuc-tablo { width: 100%; max-width: 38rem; background: #fff; border: 1px solid var(--kenar); border-radius: 1rem; padding: .5rem 1.25rem; }
.sonuc-tablo:empty { display: none; }
.sonuc-satir { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; font-size: 1.75rem; font-weight: 800; }
.sonuc-satir + .sonuc-satir { border-top: 1px solid var(--kenar); }
.sonuc-satir span:first-child { color: var(--vurgu); }
.sonuc-satir.s2 span:first-child { color: var(--p2); }
.sonuc-dugmeler { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; width: 100%; max-width: 38rem; margin-top: .8rem; }
.sonuc-birincil, .sonuc-ikincil { flex: 1; min-width: 13rem; padding: 1.25rem; border-radius: 1rem; font-weight: 900; font-size: 1.3rem; }
.sonuc-birincil { background: linear-gradient(to right, #6d28d9, #8b5cf6); color: #fff; }
.sonuc-ikincil { background: var(--bar); border: 1px solid var(--kenar); }

/* =====================================================================
   DAR EKRAN (899px ve altı)
   ===================================================================== */
@media (max-width: 899px) {
  .ust-dugme span + span { display: none; }
  .ust-dugme { padding: .5rem .65rem; }
  #duzen { padding: 0 .35rem; margin-top: 3.5rem; }
  .yan-sutun { display: none !important; }
  .mobil-skor { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; width: 100%; }
  .mobil-skor .skor { min-height: 5.8rem; padding: .35rem .25rem; border-width: 2px; border-radius: .75rem; gap: .1rem; }
  .mobil-skor .skor-nokta { display: none; }
  .mobil-skor .skor-baslik { font-size: 1.1rem; }
  .mobil-skor .skor-deger { font-size: 2.5rem; }
  .mobil-skor .skor-alt { font-size: .92rem; }
  /* Geri / İleri şıklardan uzakta: yanlışlıkla dokunulmasın */
  .mobil-yon { display: flex; gap: .75rem; width: 100%; margin-top: 1.6rem; padding-top: 1rem; border-top: 1px dashed var(--kenar); }
  .mobil-yon .yon { flex: 1; min-height: 2.8rem; font-size: 1rem; border-radius: .75rem; }
  .mobil-yon .yon small { font-size: .6rem; }
  .ust-bar { padding: .4rem .8rem; }
  .sayac, .mod-gosterge { font-size: 1rem; }
  .bolum-etiketi { display: none; }
  .oyun-ic { padding: .6rem .4rem .8rem; gap: .55rem; }
  .yonerge { font-size: .85rem; }
  .kagit { padding: .35rem .25rem .5rem .2rem; }
  .satir { gap: .2rem; margin-top: .55rem; }
  .nota-adi { font-size: 1.7rem; letter-spacing: -.02em; }
  .yuva, .yuva.sorulan { height: 2.9rem; font-size: 1.25rem; border-radius: .6rem; border-width: 2px; }
  .yuva.dogru::after, .yuva.yanlis::after { width: 1rem; height: 1rem; font-size: .6rem; top: -.45rem; right: -.35rem; }
  .sifre { padding: .6rem .5rem; }
  .sifre-cumle { font-size: 1.7rem; line-height: 1.35; }   /* nota adlarıyla aynı */
  .sifre-etiket { font-size: .7rem; }
  .kartlar { width: 100%; gap: .3rem; min-height: 3.3rem; }
  .kartlar .nk { flex: 1 1 0; min-width: 0; padding: 0; }
  .nk { min-width: 4.2rem; height: 3.2rem; padding: 0 .6rem; font-size: 1.55rem; border-radius: .7rem; border-width: 2px; box-shadow: 0 4px 0 #c4b5fd; }
  .nk .tutamak { display: none; }
  .secim { gap: .3rem; }
  #duzen.genis { padding: 0 .35rem; }
  .mesaj { font-size: 1rem; }
  #alt-kunye { flex-direction: column; gap: .5rem; font-size: 1rem; margin-top: 1rem; }
  .alt-satir { flex-wrap: wrap; justify-content: center; white-space: normal; }
  #giris-ekrani { padding: .9rem .8rem 1.1rem; gap: .85rem; }
  .baslik { font-size: 2.4rem; }
  .giris-aciklama { font-size: 1rem; }
  .kunye-kart { flex-direction: column; gap: .35rem; font-size: 1rem; padding: .7rem; }
  .kunye-satir { white-space: normal; }
  .mod-izgara { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .mod-izgara .mod-sunum { order: 0; }
  .mod-kart { padding: .7rem; }
  .mod-kart.secili { transform: none; }
  .mod-baslik { font-size: 1rem; }
  .mod-aciklama { font-size: .75rem; }
  .mod-simge { font-size: 1.4rem; }
  .mod-ust { min-height: 1.7rem; }
  .basla-dugme { font-size: 1.15rem; padding: .85rem 0; }
  #sonuc-ekrani { padding: 2.5rem 1rem 3rem; min-height: 30rem; gap: 1.1rem; }
  .sonuc-simge { font-size: 4.8rem; }
  .sonuc-baslik { font-size: 2rem; }
  .sonuc-alt { font-size: 1.15rem; }
  .sonuc-satir { font-size: 1.3rem; padding: .8rem 0; }
  .sonuc-birincil, .sonuc-ikincil { font-size: 1.1rem; min-width: 10rem; }
}

/* Çok dar telefonlar: nota adları sığsın */
@media (max-width: 379px) {
  .nota-adi { font-size: 1.45rem; }
  .sifre-cumle { font-size: 1.45rem; }
  .nk { font-size: 1.35rem; }
}

/* "Doğrusu" etiketi: masaüstü ve telefon boyutları */
@media (min-width: 900px) {
  .yuva.yanlis::after { font-size: 1rem !important; top: -.95rem !important; padding: .15rem .7rem; }
}
@media (max-width: 899px) {
  .yuva.yanlis::after { font-size: .5rem !important; top: -.6rem !important; padding: .05rem .3rem; letter-spacing: -.01em; }
}
