/* Kurs sayfası ve öğretmen paneli. Görünüm: çocuklar için kalın kenarlı, yuvarlak, renkli "oyuncak" kartlar.
   Yazı tipi Nunito (yerel, web-derle.js kopyalar). Renkler değişken: her hafta kendi rengini --renk ile getirir. */
@font-face { font-family: 'Nunito'; font-weight: 600; font-display: swap; src: url(yazi/nunito-latin-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-weight: 600; font-display: swap; src: url(yazi/nunito-latin-ext-600.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url(yazi/nunito-latin-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url(yazi/nunito-latin-ext-700.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url(yazi/nunito-latin-800.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url(yazi/nunito-latin-ext-800.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url(yazi/nunito-latin-900.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url(yazi/nunito-latin-ext-900.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --lacivert: #1B2340;
  --lacivert-2: #2C3760;
  --turuncu: #F07A2B;
  --turuncu-koyu: #B5530F;
  --sari: #FFC93C;
  --pembe: #FF5C9A;
  --mavi: #3E8BFF;
  --yesil: #2DBE6C;
  --mor: #8B5CF6;
  --krem: #FFF8EC;
  --krem-2: #FCEFD8;
  --cizgi: #EADFCB;
  --metin: #1B2340;
  --metin-soluk: #5B6178;
  --kenar: #1B2340;          /* oyuncak kartların kalın kenarı */
  --golge: 0 5px 0 var(--kenar);
  --golge-kucuk: 0 3px 0 var(--kenar);
  --yuvarlak: 22px;
}
* { box-sizing: border-box; }
html { background: var(--krem); }
body {
  margin: 0; min-height: 100vh; font-family: 'Nunito', 'Segoe UI', Arial, sans-serif; font-weight: 600; color: var(--metin);
  background-color: var(--krem);
  /* Uçuşan şekiller: daireler, üçgen ve yıldız (yalnız süs) */
  background-image:
    radial-gradient(circle at 6% 18%, rgba(255, 201, 60, .45) 0 70px, transparent 71px),
    radial-gradient(circle at 96% 10%, rgba(62, 139, 255, .22) 0 110px, transparent 111px),
    radial-gradient(circle at 92% 78%, rgba(255, 92, 154, .20) 0 90px, transparent 91px),
    radial-gradient(circle at 3% 88%, rgba(45, 190, 108, .20) 0 80px, transparent 81px),
    radial-gradient(rgba(27, 35, 64, .07) 1.5px, transparent 1.6px);
  background-size: auto, auto, auto, auto, 22px 22px;
  background-attachment: fixed;
}
button, input, select, textarea { font-family: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mavi); outline-offset: 3px; }

/* --- Üst çubuk --- */
.ust { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 24px; background: var(--lacivert); color: white;
  box-shadow: 0 4px 0 var(--turuncu); }
.logo { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 900; letter-spacing: -0.3px; }
.logo::before { content: ''; width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: conic-gradient(from 45deg, var(--sari) 0 25%, var(--pembe) 0 50%, var(--mavi) 0 75%, var(--yesil) 0); transform: rotate(-8deg); box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.logo span { color: var(--sari); }
.ust-yazi { padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 14px; font-weight: 800; }
.kullanici { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 15px; }
.kullanici .merhaba { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; }
.kullanici .avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sari); font-size: 18px; }
.kullanici .sinif-adi { padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.14); font-weight: 800; }
.kullanici .cikis { min-height: 36px; padding: 6px 14px; border-radius: 12px; border: 2px solid rgba(255,255,255,.5); background: transparent; color: white; font-weight: 800; cursor: pointer; transition: background .15s; }
.kullanici .cikis:hover { background: rgba(255,255,255,.14); }

main { max-width: 1240px; margin: 0 auto; padding: 28px 24px 56px; }
.yukleniyor { color: var(--metin-soluk); font-weight: 800; }

/* --- Selam bölümü --- */
.giris { position: relative; margin-bottom: 24px; padding: 22px 26px 22px 110px; border-radius: var(--yuvarlak); background: var(--sari); border: 3px solid var(--kenar); box-shadow: var(--golge); }
.giris::before { content: '🚀'; position: absolute; left: 22px; top: 50%; transform: translateY(-50%) rotate(-12deg); font-size: 62px; line-height: 1; }
.giris h1 { margin: 0 0 4px; font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; line-height: 1.15; }
.giris p { margin: 0; max-width: 760px; font-size: 17px; line-height: 1.5; color: var(--lacivert); }

/* --- Hafta kartları --- */
.haftalar { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.kart { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--yuvarlak); background: white; border: 3px solid var(--kenar);
  box-shadow: var(--golge); transition: transform .18s ease-out, box-shadow .18s ease-out; }
.kart:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 9px 0 var(--kenar); }
.resim { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--renk); border-bottom: 3px solid var(--kenar); }
.resim img { display: block; width: 100%; height: 100%; object-fit: cover; }
.govde { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.ust-satir { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hafta { padding: 4px 12px; border-radius: 999px; background: var(--renk); color: white; font-weight: 900; font-size: 14px; border: 2px solid var(--kenar); text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.kart h2 { margin: 8px 0 4px; font-size: 24px; font-weight: 900; line-height: 1.15; }
.ozet { margin: 0 0 12px; font-size: 15.5px; line-height: 1.45; color: var(--metin-soluk); flex: 1; }
.kart.kilitli { background: #F4F1EA; }
.kart.kilitli:hover { transform: none; box-shadow: var(--golge); }
.kart.kilitli .resim img { filter: grayscale(.9) brightness(.92); }
.kilit-yazi { position: absolute; inset: auto 10px 10px auto; padding: 5px 12px; border-radius: 999px; background: var(--lacivert); color: white; font-weight: 900; font-size: 14px; border: 2px solid white; }

/* Etkinlik satırları */
.etkinlikler { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.etkinlik { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; grid-template-areas: "simge ad ek ac" "simge durum ek ac"; align-items: center; column-gap: 8px; padding: 7px 8px 7px 10px; border-radius: 16px; background: var(--krem); border: 2px solid var(--cizgi); }
.etkinlik.ders { background: color-mix(in srgb, var(--renk) 16%, white); border-color: color-mix(in srgb, var(--renk) 45%, white); }
.e-simge { grid-area: simge; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: white; font-size: 20px; flex: none; }
.e-ad { grid-area: ad; min-width: 0; font-weight: 800; font-size: 15.5px; line-height: 1.2; overflow-wrap: anywhere; }
.e-ad small { display: block; font-size: 11.5px; font-weight: 900; color: var(--metin-soluk); text-transform: uppercase; letter-spacing: .5px; }
.e-durum { grid-area: durum; font-size: 13px; color: var(--metin-soluk); white-space: nowrap; font-weight: 800; }
.etkinlik [data-is="bastan"] { grid-area: ek; width: 36px; padding: 0; }
.e-ac, .e-kilit { grid-area: ac; }
.e-kilit { font-size: 14px; color: var(--metin-soluk); padding: 0 6px; white-space: nowrap; font-weight: 800; }
.etkinlik.kapali { opacity: .65; }

/* --- Düğmeler --- */
.dugme { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 14px;
  border: 2.5px solid var(--kenar); background: white; color: var(--metin); font-size: 16px; font-weight: 900; text-decoration: none; cursor: pointer;
  box-shadow: var(--golge-kucuk); transition: transform .12s ease-out, box-shadow .12s ease-out, filter .12s; }
.dugme:hover { filter: brightness(.97); transform: translateY(-1px); box-shadow: 0 4px 0 var(--kenar); }
.dugme:active { transform: translateY(3px); box-shadow: 0 0 0 var(--kenar); }
.dugme.ana { background: var(--renk, var(--turuncu)); color: white; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.dugme.koyu { background: var(--lacivert); color: white; }
.dugme.kucuk { min-height: 36px; padding: 4px 10px; font-size: 14px; border-radius: 12px; }
.dugme.genis { width: 100%; min-height: 54px; font-size: 19px; }
.dugme.tehlikeli { background: #E5484D; color: white; }
.e-ac { white-space: nowrap; min-height: 40px !important; padding: 5px 14px !important; font-size: 15px !important; background: var(--renk) !important; color: white !important; text-shadow: 0 1px 0 rgba(0,0,0,.25); }

/* --- Serbest atölye ve kayıtlı çalışmalar --- */
section.serbest { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(260px, 2fr); gap: 24px; margin-top: 28px; align-items: start; }
.serbest-kart { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--yuvarlak); background: var(--mor); color: white; text-decoration: none; line-height: 1.45;
  border: 3px solid var(--kenar); box-shadow: var(--golge); transition: transform .15s; }
.serbest-kart:hover { transform: translateY(-3px) rotate(.5deg); }
.serbest-kart b { font-size: 20px; font-weight: 900; }
.serbest-simge { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: white; font-size: 34px; flex: none; transform: rotate(-6deg); }
.kayitlilar { padding: 14px 18px; border-radius: var(--yuvarlak); background: white; border: 3px solid var(--kenar); box-shadow: var(--golge); }
.kayitlilar h2 { margin: 0 0 8px; font-size: 18px; font-weight: 900; }
.kayitlilar ul { margin: 0; padding: 0; list-style: none; columns: 2 220px; }
.kayitlilar li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; break-inside: avoid; font-size: 15px; }
.kayitlilar li span { color: var(--metin-soluk); white-space: nowrap; }
.kayitlilar a { font-weight: 800; }
.not { margin-top: 28px; font-size: 14px; color: var(--metin-soluk); }
.ogretmen-yerel { margin-top: 24px; font-size: 15px; color: var(--metin-soluk); }
.ogretmen-yerel ul { columns: 2 260px; margin: 8px 0 0; padding-left: 18px; }
.ogretmen-yerel li { margin: 3px 0; }

/* --- Öğretmen notları (öğrenci sayfası) --- */
.notlar { position: relative; margin: 0 0 24px; padding: 16px 20px; border-radius: var(--yuvarlak); background: white; border: 3px solid var(--kenar); box-shadow: var(--golge); }
.notlar.yeni { background: #FFF0F6; border-color: var(--pembe); box-shadow: 0 5px 0 var(--pembe); animation: sallan 1.6s ease-in-out 2; }
.notlar h2 { margin: 0 0 8px; font-size: 20px; font-weight: 900; }
.notlar ul { margin: 0; padding: 0; list-style: none; }
.notlar li { padding: 8px 0; border-top: 2px dashed var(--krem-2); font-size: 16px; line-height: 1.45; }
.notlar li:first-child { border-top: 0; }
.notlar li.okunmamis { font-weight: 900; }
.notlar li span { margin-left: 8px; color: var(--metin-soluk); font-size: 13px; font-weight: 700; }
@keyframes sallan { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-.6deg); } 75% { transform: rotate(.6deg); } }

/* --- Giriş --- */
.giris-alani { position: relative; display: grid; place-items: center; min-height: 70vh; }
.giris-kart { position: relative; z-index: 1; width: min(540px, 100%); padding: 34px 30px 28px; border-radius: 28px; background: white; border: 3px solid var(--kenar); box-shadow: 0 8px 0 var(--kenar); text-align: center; }
.giris-alani::before, .giris-alani::after { content: ''; position: absolute; z-index: 0; border: 3px solid var(--kenar); }
.giris-alani::before { width: 90px; height: 90px; border-radius: 50%; background: var(--pembe); top: calc(50% - 150px); left: calc(50% + 210px); }
.giris-alani::after { width: 70px; height: 70px; border-radius: 18px; background: var(--mavi); top: calc(50% + 80px); right: calc(50% + 225px); transform: rotate(18deg); }
.giris-kart h1 { margin: 6px 0 8px; font-size: 30px; font-weight: 900; line-height: 1.2; }
.giris-kart p { margin: 0 0 18px; color: var(--metin-soluk); font-size: 17px; line-height: 1.5; }
.giris-kart form { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.giris-kart input { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 16px; border: 3px solid var(--cizgi); font-size: 18px; font-weight: 700; background: var(--krem); color: var(--metin); }
.giris-kart input:focus { outline: none; border-color: var(--mavi); background: white; }
.giris-kart .geri { position: absolute; left: 14px; top: 12px; min-height: 36px; padding: 4px 10px; border: 0; border-radius: 10px; background: var(--krem); color: var(--metin); font-size: 15px; font-weight: 800; cursor: pointer; }
.giris-kart .dugme.ana { background: var(--turuncu); }
.secim { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.buyuk-secim { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 10px 18px; border-radius: 22px; border: 3px solid var(--kenar); background: var(--sari);
  font-size: 21px; font-weight: 900; color: var(--metin); cursor: pointer; box-shadow: var(--golge); transition: transform .15s ease-out, box-shadow .15s; }
.buyuk-secim + .buyuk-secim { background: #BFE0FF; }
.buyuk-secim span { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: white; border: 3px solid var(--kenar); font-size: 44px; }
.buyuk-secim:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 8px 0 var(--kenar); }
.buyuk-secim:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--kenar); }
.kod-girdi { text-align: center; letter-spacing: 10px; font-size: 34px !important; font-weight: 900 !important; text-transform: uppercase; }
.pin-girdi { text-align: center; letter-spacing: 16px; font-size: 38px !important; font-weight: 900 !important; }
.ad-dugmesi { min-height: 46px; padding: 8px 16px; border-radius: 999px; border: 2.5px solid var(--kenar); background: white; font-size: 17px; font-weight: 800; color: var(--metin); cursor: pointer; box-shadow: var(--golge-kucuk); transition: transform .12s; }
.ad-dugmesi:hover { transform: translateY(-2px); }
.kendi-adim { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 16px; }
.kendi-adim p { margin: 0; }
.kendi-adim .ad-dugmesi { min-height: 56px; padding: 10px 28px; font-size: 20px; background: #FFF1C7; }
.yeni-ogrenci { flex-direction: row !important; flex-wrap: wrap; align-items: center !important; gap: 8px !important; padding-top: 14px; border-top: 2px dashed var(--cizgi); }
.yeni-ogrenci label { flex: 1 1 100%; text-align: left; font-weight: 900; font-size: 15px; }
.yeni-ogrenci input { flex: 1; min-width: 0; font-size: 16px; min-height: 46px; padding: 9px 12px; }
.hata { margin: 0 !important; min-height: 1.2em; color: #C62828 !important; font-weight: 800; font-size: 15px !important; }
.kucuk-yazi { font-size: 15px !important; margin-top: 16px !important; }

/* Karşılama: üç kapı (öğrenci, öğretmen, kişisel) ve kurum şeridi. Abonelik ekranı: plan kartları. Teklif formu. */
.giris-kart.genis { width: min(980px, 100%); padding: 34px 32px 30px; }
.giris-kart.genis > p { max-width: 640px; margin-left: auto; margin-right: auto; }
/* Oyun vitrini: kartın üstünde, kenardan kenara; iki sıra ters yönde kayar */
.giris-kart.karsilama { padding-top: 0; overflow: hidden; }
.vitrin { position: relative; margin: 0 -32px 24px; padding: 16px 0 14px; background: var(--lacivert); border-bottom: 3px solid var(--kenar);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.vitrin-satir { overflow: hidden; }
.vitrin-satir + .vitrin-satir { margin-top: 12px; }
.vitrin-serit { display: flex; width: max-content; animation: vitrin-kay 70s linear infinite; }
.vitrin-satir.saga .vitrin-serit { animation-direction: reverse; animation-duration: 80s; }
.vitrin:hover .vitrin-serit { animation-play-state: paused; }
@keyframes vitrin-kay { to { transform: translateX(-50%); } }
.vitrin-oyun { position: relative; flex: none; width: 196px; margin: 0 12px 0 0; border-radius: 16px; overflow: hidden; border: 3px solid var(--renk); background: var(--renk); box-shadow: 0 4px 0 rgba(0,0,0,.35); }
.vitrin-oyun:nth-child(odd) { transform: rotate(-1.5deg); }
.vitrin-oyun:nth-child(even) { transform: rotate(1.5deg); }
.vitrin-oyun img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.vitrin-oyun figcaption { position: absolute; left: 8px; bottom: 8px; padding: 2px 10px; border-radius: 999px; background: var(--renk); color: white; font-size: 13px; font-weight: 900;
  border: 2px solid var(--kenar); text-shadow: 0 1px 0 rgba(0,0,0,.35); white-space: nowrap; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; }
.karsilama h1 { font-size: 34px; }
.karsilama h1 .vurgu { background: linear-gradient(90deg, var(--turuncu), var(--pembe) 55%, var(--mor)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: reduce) { .vitrin-serit { animation: none; } }
/* Karşılama ekranı kaydırmadan sığsın: vitrin, başlık, kapılar ve kurum şeridi ekranın yüksekliğine göre küçülür
   (dizüstünde ~650 px, büyük ekranda tam boy). Telefonda (≤640 px) kapılar alt alta, orada kaydırma olur. */
@media (min-width: 641px) {
  main:has(.giris-kart.karsilama) { padding-top: clamp(8px, 2vh, 28px); padding-bottom: clamp(8px, 2vh, 28px); }
  .giris-alani:has(.karsilama) { min-height: 0; }
  .giris-kart.karsilama { padding-bottom: clamp(16px, 2.6vh, 30px); }
  .karsilama .vitrin { margin-bottom: clamp(12px, 2.2vh, 24px); padding: clamp(8px, 1.4vh, 16px) 0; }
  .karsilama .vitrin-satir + .vitrin-satir { margin-top: clamp(6px, 1vh, 12px); }
  .karsilama .vitrin-oyun { width: clamp(118px, 19vh, 196px); border-radius: 13px; }
  .karsilama .vitrin-oyun figcaption { font-size: clamp(11px, 1.6vh, 13px); padding: 1px 8px; left: 6px; bottom: 6px; }
  .karsilama h1 { margin: 0 0 4px; font-size: clamp(26px, 4.4vh, 34px); }
  .giris-kart.karsilama > p { max-width: 760px; margin-bottom: clamp(10px, 2vh, 18px); font-size: clamp(15px, 2.3vh, 17px); }
  .karsilama .kapilar { gap: clamp(12px, 2vh, 18px); margin: 0 0 clamp(10px, 2vh, 18px); }
  .karsilama .kapi { padding: clamp(12px, 2.4vh, 22px) 14px clamp(12px, 2.2vh, 20px); gap: 4px; }
  .karsilama .kapi-simge { width: clamp(54px, 10vh, 84px); height: clamp(54px, 10vh, 84px); font-size: clamp(30px, 5.6vh, 46px); margin-bottom: 2px; }
  .karsilama .kapi b { font-size: clamp(19px, 3vh, 22px); }
  .karsilama .kurum-seridi { padding: clamp(8px, 1.6vh, 14px) 18px; }
}
.kapilar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 4px 0 18px; }
.kapi { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 22px 14px 20px; border-radius: 24px; border: 3px solid var(--kenar);
  background: var(--sari); color: var(--metin); font: inherit; cursor: pointer; box-shadow: var(--golge); transition: transform .15s ease-out, box-shadow .15s; }
.kapi-ogretmen { background: linear-gradient(160deg, #DDEEFF, #A9D3FF); }
.kapi-kisisel { background: linear-gradient(160deg, #FFE3EE, #FFB8D3); }
.kapi:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 9px 0 var(--kenar); }
.kapi:hover .kapi-simge { animation: kapi-zipla .5s ease-out; }
@keyframes kapi-zipla { 30% { transform: translateY(-8px) rotate(-6deg); } 60% { transform: translateY(0) rotate(4deg); } 100% { transform: none; } }
.kapi { position: relative; overflow: hidden; }
.kapi::after { content: ''; position: absolute; right: -22px; top: -22px; width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,.45); pointer-events: none; }
.kapi-ogrenci { background: linear-gradient(160deg, #FFE27A, var(--sari)); }
.kapi:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--kenar); }
.kapi-simge { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 4px; border-radius: 50%; background: white; border: 3px solid var(--kenar); font-size: 46px; }
.kapi b { font-size: 22px; font-weight: 900; line-height: 1.2; }
.kapi small { font-size: 15px; font-weight: 800; color: var(--metin-soluk); }
.kurum-seridi { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; border-radius: 20px; border: 3px dashed var(--kenar); background: #E3F7EA;
  color: var(--metin); font: inherit; text-align: left; cursor: pointer; transition: transform .15s, background .15s; }
.kurum-seridi:hover { transform: translateY(-2px); background: #D2F2DE; border-style: solid; }
.kurum-simge { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: white; border: 3px solid var(--kenar); font-size: 28px; }
.kurum-yazi { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.kurum-yazi b { font-size: 18px; font-weight: 900; }
.kurum-yazi small { font-size: 15px; font-weight: 800; color: var(--metin-soluk); }
.kurum-ok { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--yesil); color: white; font-weight: 900; border: 2px solid var(--kenar); text-shadow: 0 1px 0 rgba(0,0,0,.25); white-space: nowrap; }
.planlar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 8px 0 4px; text-align: left; }
.plan-karti { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 22px 20px 20px; border-radius: 24px; border: 3px solid var(--kenar); background: white; box-shadow: var(--golge); }
.plan-karti.secili { background: color-mix(in srgb, var(--renk) 12%, white); box-shadow: 0 7px 0 var(--kenar); }
.plan-etiket { position: absolute; z-index: 1; top: -14px; right: 16px; padding: 3px 12px; border-radius: 999px; background: var(--renk); color: white; font-size: 13px; font-weight: 900; border: 2px solid var(--kenar); text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.plan-karti { overflow: visible; }
.plan-resim { position: relative; margin: -22px -20px 30px; border-radius: 21px 21px 0 0; border-bottom: 3px solid var(--kenar); background: var(--renk); }
.plan-resim img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 21px 21px 0 0; }
.plan-simge { position: absolute; left: 16px; bottom: -26px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--renk); border: 3px solid var(--kenar); font-size: 30px; box-shadow: var(--golge-kucuk); }
.plan-karti h2 { margin: 12px 0 2px; font-size: 22px; font-weight: 900; }
.giris-kart .plan-kim { margin: 0 0 10px; font-size: 15px; }
.giris-kart .plan-fiyat { display: flex; align-items: baseline; gap: 4px; margin: 0; color: var(--metin); }
.plan-fiyat b { font-size: 36px; font-weight: 900; letter-spacing: -.5px; }
.plan-fiyat span { font-size: 17px; font-weight: 900; color: var(--metin-soluk); }
.plan-fiyat.teklifle b { font-size: 30px; }
.giris-kart .plan-kdv { margin: 0 0 12px; font-size: 13px; }
.plan-karti ul { flex: 1; margin: 0 0 16px; padding: 0; list-style: none; }
.plan-karti li { position: relative; padding: 5px 0 5px 28px; font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.plan-karti li::before { content: '✓'; position: absolute; left: 0; top: 5px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--renk); color: white; font-size: 12px; font-weight: 900; }
.plan-karti .dugme.ana { background: var(--renk); }
.abonelik-kutusu { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.ayrac { display: flex; align-items: center; gap: 10px; color: var(--metin-soluk); font-size: 15px; font-weight: 800; }
.ayrac::before, .ayrac::after { content: ''; flex: 1; border-top: 2px dashed var(--cizgi); }
.dugme.genis { width: 100%; }
.teklif-formu { text-align: left; gap: 10px !important; }
.form-alani { display: flex; flex-direction: column; gap: 4px; font-size: 15px; font-weight: 900; }
.form-alani small { font-weight: 700; color: var(--metin-soluk); }
.giris-kart .teklif-formu input, .giris-kart .teklif-formu select, .giris-kart .teklif-formu textarea { min-height: 46px; padding: 9px 12px; font-size: 16px; }
.teklif-formu select, .teklif-formu textarea { width: 100%; border-radius: 16px; border: 3px solid var(--cizgi); background: var(--krem); color: var(--metin); font-weight: 700; }
.teklif-formu textarea { resize: vertical; }
.teklif-formu select:focus, .teklif-formu textarea:focus { outline: none; border-color: var(--mavi); background: white; }
.onay { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--krem); font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--metin-soluk); cursor: pointer; }
.giris-kart .onay input { flex: none; width: 22px; min-height: 22px; height: 22px; margin: 1px 0 0; padding: 0; accent-color: var(--turuncu); }
.tuzak { position: absolute !important; left: -9999px; width: 1px !important; height: 1px; opacity: 0; }
.tesekkur-simge { font-size: 64px; line-height: 1; margin-top: 6px; }
@media (max-width: 760px) {
  .planlar { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 640px) {
  .giris-kart.genis { padding: 26px 16px 20px; }
  .giris-kart.karsilama { padding-top: 0; }
  .vitrin { margin: 0 -16px 18px; padding: 12px 0 10px; }
  .vitrin-oyun { width: 150px; }
  .karsilama h1 { font-size: 27px; }
  .kapilar { grid-template-columns: 1fr; gap: 12px; }
  .kapi { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center; padding: 12px 16px; text-align: left; }
  .kapi-simge { grid-row: span 2; width: 60px; height: 60px; margin: 0; font-size: 32px; }
  .kapi b { align-self: end; font-size: 20px; }
  .kapi small { align-self: start; }
  .kurum-seridi { flex-wrap: wrap; }
  .kurum-ok { width: 100%; text-align: center; }
  /* Telefonda da karşılama kaydırmadan sığsın: vitrin tek sıra, kapılar ve şerit sıkı */
  main:has(.giris-kart.karsilama) { padding: 10px 12px; }
  .giris-alani:has(.karsilama) { min-height: 0; }
  .giris-kart.karsilama { padding-bottom: 14px; }
  .karsilama .vitrin { margin-bottom: 12px; padding: 8px 0; }
  .karsilama .vitrin-satir.saga { display: none; }
  .karsilama .vitrin-oyun { width: 118px; }
  .karsilama .vitrin-oyun figcaption { font-size: 11px; padding: 1px 7px; left: 5px; bottom: 5px; }
  .karsilama h1 { margin: 0 0 4px; font-size: 23px; }
  .giris-kart.karsilama > p { margin-bottom: 10px; font-size: 14px; line-height: 1.4; }
  .karsilama .kapilar { gap: 8px; margin: 0 0 10px; }
  .karsilama .kapi { padding: 8px 14px; }
  .karsilama .kapi-simge { width: 46px; height: 46px; font-size: 26px; }
  .karsilama .kapi b { font-size: 18px; }
  .karsilama .kapi small { font-size: 13px; }
  .karsilama .kurum-seridi { padding: 8px 12px; gap: 8px 12px; }
  .karsilama .kurum-ok { padding-top: 6px; padding-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) { .kapi, .kurum-seridi { transition: none; } .kapi:hover, .kurum-seridi:hover { transform: none; } .kapi:hover .kapi-simge { animation: none; } }

/* =========================== Öğretmen paneli =========================== */
.ogretmen-paneli main { max-width: 1560px; }
.panel { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.sinif-detay, .panel > * { min-width: 0; }
.sinif-listesi { position: sticky; top: 84px; padding: 16px; border-radius: var(--yuvarlak); background: white; border: 3px solid var(--kenar); box-shadow: var(--golge); }
.sinif-listesi h2 { margin: 0 0 10px; font-size: 18px; font-weight: 900; }
.geri-baglanti { display: inline-block; margin: 0 0 10px; font-weight: 900; color: var(--mor); text-decoration: none; }
.geri-baglanti:hover { text-decoration: underline; }
.sinif-listesi ul { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sinif-listesi li a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; text-decoration: none; border: 2px solid transparent; transition: background .12s; }
.sinif-simge { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--renk); color: white; font-weight: 900; font-size: 15px; flex: none; border: 2px solid var(--kenar); text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.sinif-yazi { min-width: 0; }
.sinif-yazi b { display: block; overflow-wrap: anywhere; font-weight: 900; }
.sinif-yazi small { display: block; font-size: 13px; color: var(--metin-soluk); }
.sinif-listesi li a:hover { background: var(--krem); }
.sinif-listesi li a.secili { background: var(--krem-2); border-color: var(--kenar); }
.yeni-sinif { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 2px dashed var(--cizgi); }
.yeni-sinif label { font-weight: 900; font-size: 14px; }
.yeni-sinif input, .yeni-sinif select { min-height: 44px; padding: 9px 12px; border-radius: 12px; border: 2.5px solid var(--cizgi); font-size: 15px; font-weight: 700; background: var(--krem); }
.yeni-sinif input:focus, .yeni-sinif select:focus { outline: none; border-color: var(--mavi); background: white; }

.sinif-baslik { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; padding: 18px 22px; border-radius: var(--yuvarlak);
  background: var(--mavi); color: white; border: 3px solid var(--kenar); box-shadow: var(--golge); }
.sinif-baslik-yazi { min-width: 0; flex: 1; }
.sinif-baslik h1 { margin: 0; font-size: 30px; font-weight: 900; overflow-wrap: anywhere; text-shadow: 0 2px 0 rgba(0,0,0,.2); }
.sinif-baslik p { margin: 4px 0 0; font-size: 15px; opacity: .95; }
.kod-kutu { padding: 8px 20px; border-radius: 18px; background: var(--sari); color: var(--lacivert); text-align: center; border: 3px solid var(--kenar); transform: rotate(2deg); box-shadow: var(--golge-kucuk); }
.kod-kutu small { display: block; font-size: 13px; font-weight: 900; }
.kod-kutu b { font-size: 36px; font-weight: 900; letter-spacing: 6px; }
button.kod-kutu { font-family: inherit; cursor: pointer; transition: transform .12s; }
button.kod-kutu:hover { transform: rotate(0deg) scale(1.03); }
button.kod-kutu:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.kod-kutu .kod-link { font-size: 12px; font-weight: 800; opacity: .8; }
.bildirim { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translateX(-50%); max-width: min(620px, calc(100vw - 32px)); padding: 12px 20px;
  border-radius: 16px; background: var(--lacivert); color: white; font-weight: 800; font-size: 15px; overflow-wrap: anywhere; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.bildirim[hidden] { display: none; }

.sekmeler { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.sekme { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 16px; border-radius: 14px; border: 2.5px solid var(--kenar); background: white; color: var(--metin);
  font-size: 16px; font-weight: 900; cursor: pointer; box-shadow: var(--golge-kucuk); transition: transform .12s, background .12s; }
.sekme:hover { background: var(--krem); transform: translateY(-1px); }
.sekme.secili { background: var(--turuncu); color: white; transform: translateY(2px); box-shadow: 0 1px 0 var(--kenar); text-shadow: 0 1px 0 rgba(0,0,0,.25); }

.kart-blok { margin-bottom: 20px; padding: 18px 20px; border-radius: var(--yuvarlak); background: white; border: 3px solid var(--kenar); box-shadow: var(--golge); }
.kart-blok h2 { margin: 0 0 4px; font-size: 21px; font-weight: 900; }
.aciklama { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: var(--metin-soluk); max-width: 900px; }
.soluk { color: var(--metin-soluk); }
.bos-durum { padding: 40px; text-align: center; border-radius: var(--yuvarlak); background: white; border: 3px dashed var(--kenar); }
.buyuk-simge { font-size: 54px; line-height: 1.1; }
.kod-yazi { padding: 2px 10px; border-radius: 10px; background: var(--sari); letter-spacing: 3px; color: var(--lacivert); }

/* Haftaları aç */
.kilit-tablosu { display: flex; flex-direction: column; gap: 8px; }
.kilit-satiri { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 12px; border-radius: 16px; background: var(--krem); border: 2px solid var(--cizgi); }
.kilit-satiri.acik { background: color-mix(in srgb, var(--renk) 12%, white); border-color: color-mix(in srgb, var(--renk) 55%, white); }
.hafta-rozet { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 999px; background: var(--renk); color: white; font-weight: 900; border: 2px solid var(--kenar); text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.kilit-ad { flex: 1; min-width: 160px; }
.kilit-ad b { font-size: 17px; font-weight: 900; }
.kilit-ad small { display: block; font-size: 13.5px; color: var(--metin-soluk); }
.kilit-anahtarlar { display: flex; gap: 8px; flex-wrap: wrap; }
.anahtar { position: relative; display: inline-flex; cursor: pointer; }
.anahtar input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.anahtar-yuz { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 2.5px solid var(--kenar); background: white; font-size: 15px; font-weight: 900; white-space: nowrap; box-shadow: var(--golge-kucuk); transition: background .15s; }
.anahtar-yuz i { position: relative; width: 34px; height: 20px; border-radius: 999px; background: #D5D0C4; transition: background .15s; }
.anahtar-yuz i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: white; transition: transform .18s ease-out; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.anahtar.acik .anahtar-yuz { background: var(--renk); color: white; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.anahtar.acik .anahtar-yuz i { background: rgba(255,255,255,.45); }
.anahtar.acik .anahtar-yuz i::after { transform: translateX(14px); }
.anahtar input:focus-visible + .anahtar-yuz { outline: 3px solid var(--mavi); outline-offset: 2px; }

/* İlerleme tablosu */
/* İlerleme: yatay kaydırma yok. Öğrencinin yanında seçili ders (etkinlikler hizalı sütunlarda, adları başlıkta),
   sonra önceki derslerin rozetleri. Tablo 780px'ten darsa (container query) her öğrenci bir kart olur. */
.ders-secici { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ders-sec { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; max-width: 100%; min-height: 48px; padding: 6px 14px; border-radius: 14px;
  border: 2.5px solid color-mix(in srgb, var(--renk) 55%, white); background: color-mix(in srgb, var(--renk) 10%, white); color: var(--metin); cursor: pointer; text-align: left; font: inherit; transition: transform .12s; }
.ders-sec:hover { transform: translateY(-1px); border-color: var(--renk); }
.ders-sec.secili { background: var(--renk); border-color: var(--kenar); color: white; box-shadow: var(--golge-kucuk); text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.ders-sec:focus-visible, .mini-ders:focus-visible, .etkinlik-cip:focus-visible { outline: 3px solid var(--mavi); outline-offset: 2px; }
.ders-no { font-size: 12.5px; font-weight: 900; opacity: .85; }
.ders-ad { font-size: 15px; font-weight: 900; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ders-sayi { font-size: 12px; font-weight: 800; opacity: .8; }
.gosterge { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: -4px 0 12px; font-size: 13.5px; color: var(--metin-soluk); font-weight: 800; }
.gosterge > span { display: inline-flex; align-items: center; gap: 4px; }
.tablo-kutu { container-type: inline-size; border-radius: 16px; border: 2px solid var(--cizgi); overflow: hidden; }
.ilerleme { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.ilerleme col.k-ogrenci { width: 21%; }
.ilerleme col.k-islem { width: 124px; }
.ilerleme th, .ilerleme td { padding: 8px 10px; border-bottom: 2px solid var(--krem-2); text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.ilerleme tbody tr:last-child > * { border-bottom: 0; }
.ilerleme thead th { position: sticky; top: 0; z-index: 2; background: white; font-size: 14px; font-weight: 900; vertical-align: bottom; }
.odak-baslik { background: color-mix(in srgb, var(--renk) 14%, white) !important; border-bottom: 4px solid var(--renk) !important; }
.odak-ust { display: flex; align-items: center; gap: 6px; min-width: 0; }
.odak-no { flex: none; padding: 2px 9px; border-radius: 999px; background: var(--renk); color: white; font-size: 12.5px; text-shadow: 0 1px 0 rgba(0,0,0,.3); border: 2px solid var(--kenar); }
.odak-ad { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.etkinlik-basliklari, .etkinlik-listesi { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); gap: 6px; }
.etkinlik-basliklari { margin-top: 6px; font-size: 12.5px; color: var(--metin-soluk); }
.etkinlik-basliklari > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onceki-baslik { color: var(--metin-soluk); }
.gizli-yazi { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ogrenci-ad { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ad-yazi { min-width: 0; }
.ogrenci-ad .harf { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--krem-2); border: 2px solid var(--kenar); font-weight: 900; flex: none; }
.ilerleme tbody tr:nth-child(4n+1) .harf { background: #FFE58F; } .ilerleme tbody tr:nth-child(4n+2) .harf { background: #BFDBFF; }
.ilerleme tbody tr:nth-child(4n+3) .harf { background: #FFC7DC; } .ilerleme tbody tr:nth-child(4n) .harf { background: #BDEFD2; }
.ogrenci-ad b { display: block; font-weight: 900; }
.ogrenci-ad small { display: block; font-size: 12.5px; color: var(--metin-soluk); font-weight: 700; }
.ilerleme tbody tr:hover > * { background: #FFFBF2; }
.odak-hucre { background: color-mix(in srgb, var(--renk) 5%, white); }
.etkinlik-cip { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 40px; padding: 4px 8px; border-radius: 12px; text-decoration: none; color: var(--metin);
  border: 2px solid var(--cizgi); background: white; font-weight: 800; transition: transform .12s; }
.etkinlik-cip:hover { transform: translateY(-1px); border-color: var(--kenar); }
.etkinlik-cip.tamam { background: #DDF7E7; border-color: var(--yesil); }
.etkinlik-cip.bos { color: var(--metin-soluk); border-style: dashed; }
.cip-ad { display: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.etkinlik-cip .yildiz { white-space: nowrap; flex: none; }
.ilerleme .teslim { font-size: 13px; color: #1E7B45; font-weight: 900; white-space: nowrap; }
.mini-dersler { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-ders { position: relative; display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 10px; font: inherit; font-weight: 900; font-size: 14px; cursor: pointer;
  border: 2px dashed var(--cizgi); background: white; color: var(--metin-soluk); }
.mini-ders.yarim { border: 2px solid color-mix(in srgb, var(--renk) 60%, white); background: color-mix(in srgb, var(--renk) 14%, white); color: var(--metin); }
.mini-ders.tamam { border: 2px solid var(--yesil); background: #DDF7E7; color: #1E7B45; }
.mini-ders:hover { border-color: var(--kenar); }
.mini-ders.ornek { min-width: 24px; height: 24px; font-size: 12px; cursor: default; }
.mini-isaret { position: absolute; right: -6px; top: -7px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--yesil); color: white; font-size: 10px; }
.mini-ders .nokta { position: absolute; left: -4px; top: -4px; width: 9px; height: 9px; }
.nokta { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--yesil); box-shadow: 0 0 0 3px rgba(45,190,108,.25); animation: nabiz 1.6s ease-in-out infinite; flex: none; }
@keyframes nabiz { 50% { box-shadow: 0 0 0 6px rgba(45,190,108,0); } }
.islemler { white-space: nowrap; text-align: right !important; }
.islemler button { width: 36px; height: 36px; margin: 0; border: 2px solid transparent; border-radius: 10px; background: none; font-size: 17px; cursor: pointer; }
.islemler button:hover { background: var(--krem); border-color: var(--cizgi); }
/* Dar alan: her öğrenci bir kart (ad + işlemler üstte, seçili dersin etkinlikleri adlarıyla, önceki dersler) */
@container (max-width: 780px) {
  .ilerleme, .ilerleme tbody { display: block; }
  .ilerleme colgroup, .ilerleme thead { display: none; }
  /* Kart: üst satır ad · önceki dersler · işlemler; altında seçili dersin etkinlikleri */
  .ilerleme tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 10px; padding: 10px 12px; border-bottom: 2px solid var(--krem-2); }
  .ilerleme tbody tr:last-child { border-bottom: 0; }
  .ilerleme tbody tr > * { display: block; padding: 0; border: 0; background: none !important; }
  .ilerleme tbody th { grid-column: 1; grid-row: 1; }
  .ilerleme .onceki-hucre { grid-column: 2; grid-row: 1; }
  .ilerleme .islemler { grid-column: 3; grid-row: 1; }
  .ilerleme .odak-hucre { grid-column: 1 / -1; grid-row: 2; }
  .mini-dersler { justify-content: flex-end; gap: 6px; }
  .etkinlik-listesi { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .etkinlik-cip { justify-content: space-between; }
  .cip-ad { display: block; }
}
/* Telefon: önceki dersler adın altına iner */
@container (max-width: 520px) {
  .ilerleme tbody tr { grid-template-columns: minmax(0, 1fr) auto; }
  .ilerleme .islemler { grid-column: 2; }
  .ilerleme .onceki-hucre { grid-column: 1 / -1; grid-row: 3; }
  .mini-dersler { justify-content: flex-start; }
  .ilerleme .onceki-hucre::before { content: 'Önceki dersler'; display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 900; color: var(--metin-soluk); }
  .etkinlik-listesi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etkinlik-cip { gap: 3px; padding: 4px 7px; }
  .etkinlik-cip .yildiz { font-size: 11.5px; letter-spacing: -1px; }
  .cip-ad { font-size: 13px; }
}
@media (max-width: 640px) { .ders-ad { max-width: 16ch; } }

/* Pencereler */
dialog.pencere { width: min(560px, calc(100vw - 32px)); padding: 0; border: 3px solid var(--kenar); border-radius: 26px; box-shadow: 0 8px 0 var(--kenar); color: var(--metin); background: white; }
dialog.pencere::backdrop { background: rgba(27, 35, 64, .5); }
.pencere-ust { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 16px 12px 22px; background: var(--sari); border-bottom: 3px solid var(--kenar); }
.pencere-ust h2 { flex: 1; margin: 0; font-size: 20px; font-weight: 900; }
.kapat { width: 40px; height: 40px; border-radius: 12px; border: 2.5px solid var(--kenar); background: white; font-size: 17px; font-weight: 900; cursor: pointer; }
.pencere-govde { padding: 18px 22px 22px; }
.etkinlik-ozet { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; padding: 12px 14px; border-radius: 18px; background: color-mix(in srgb, var(--renk) 14%, white); border: 2px solid color-mix(in srgb, var(--renk) 50%, white); }
.etkinlik-ozet b { font-size: 19px; font-weight: 900; }
.etkinlik-ozet p { margin: 2px 0 0; color: var(--metin-soluk); font-size: 15px; }
.pencere-dugmeler { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.pencere-dugmeler .dugme.ana { --renk: var(--turuncu); }
.not-listesi { margin: 0 0 16px; padding: 0; list-style: none; max-height: 260px; overflow: auto; }
.not-listesi li { padding: 10px 12px; margin-bottom: 8px; border-radius: 14px; background: var(--krem); }
.not-listesi li p { margin: 2px 0; font-size: 15.5px; }
.not-listesi li small { color: var(--metin-soluk); font-size: 13px; }
.not-formu { display: flex; flex-direction: column; gap: 8px; }
.not-formu label { font-weight: 900; }
.not-formu select, .not-formu textarea { width: 100%; padding: 10px 12px; border-radius: 14px; border: 2.5px solid var(--cizgi); background: var(--krem); font-size: 15.5px; font-weight: 700; color: var(--metin); }
.not-formu select:focus, .not-formu textarea:focus { outline: none; border-color: var(--mavi); background: white; }

/* Derste göster */
.goster-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.goster-kart { overflow: hidden; border-radius: 20px; border: 3px solid var(--kenar); background: white; box-shadow: var(--golge-kucuk); }
.goster-kart:not(.acik) { background: #FAF7F1; }
.goster-resim { position: relative; aspect-ratio: 16 / 7; background: var(--renk); border-bottom: 3px solid var(--kenar); }
.goster-resim img { width: 100%; height: 100%; object-fit: cover; display: block; }
.goster-resim .hafta-rozet { position: absolute; left: 10px; top: 10px; }
.goster-govde { padding: 12px 14px 14px; }
.goster-govde h3 { margin: 0; font-size: 20px; font-weight: 900; }
.goster-govde > p { margin: 0 0 8px; color: var(--metin-soluk); font-size: 14px; }
.goster-govde ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.goster-govde li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 14px; background: var(--krem); }
.goster-govde li .e-ad { flex: 1 1 100%; white-space: normal; }
.goster-govde li .dugme { flex: 1; }
.goster-govde .dugme.kucuk { min-height: 34px; font-size: 13px; padding: 3px 9px; }
.kendi-sifirla[hidden] { display: none !important; }
.goster-govde li .kendi-sifirla { flex: 1 1 100%; background: white; border-style: dashed; }

/* İzinler */
.izin-listesi { display: flex; flex-direction: column; gap: 10px; }
.izin { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--krem); border: 2.5px solid var(--cizgi); cursor: pointer; transition: background .15s, border-color .15s; }
.izin.acik { background: #E3F8EC; border-color: var(--yesil); }
.izin-simge { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: white; border: 2px solid var(--kenar); font-size: 26px; flex: none; }
.izin-yazi { flex: 1; min-width: 0; }
.izin-yazi b { display: block; font-size: 18px; font-weight: 900; }
.izin-yazi small { display: block; font-size: 14px; color: var(--metin-soluk); line-height: 1.4; }
.izin input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dugmecik { position: relative; width: 60px; height: 34px; border-radius: 999px; background: #CFC9BC; border: 2.5px solid var(--kenar); flex: none; transition: background .15s; }
.dugmecik::after { content: ''; position: absolute; top: 3px; left: 3px; width: 23px; height: 23px; border-radius: 50%; background: white; border: 2px solid var(--kenar); transition: transform .18s ease-out; }
.izin.acik .dugmecik { background: var(--yesil); }
.izin.acik .dugmecik::after { transform: translateX(25px); }
.izin input:focus-visible ~ .dugmecik { outline: 3px solid var(--mavi); outline-offset: 3px; }
.satir-dugmeler { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.tehlike { margin-top: 10px; font-size: 15px; color: var(--metin-soluk); }
.tehlike summary { cursor: pointer; font-weight: 800; }

/* --- Dar ekranlar --- */
.sinif-baslik h1, .kart h2, .giris-kart h1 { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .panel { grid-template-columns: minmax(0, 1fr); }
  .sinif-listesi { position: static; }
}
@media (max-width: 640px) {
  .ust { flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px; }
  .ust-yazi, .kullanici .sinif-adi { display: none; }
  main, .ogretmen-paneli main { padding: 18px 16px 40px; }
  .giris { padding: 18px 18px 18px 18px; }
  .giris::before { display: none; }
  section.serbest { grid-template-columns: 1fr; }
  .secim { grid-template-columns: 1fr; }
  .giris-kart { padding: 30px 16px 20px; }
  .giris-alani::before, .giris-alani::after { display: none; }
  .kod-kutu { width: 100%; transform: none; }
  .kod-kutu b { font-size: 28px; letter-spacing: 4px; }
  .kart-blok { padding: 14px; }
  .pencere-dugmeler { grid-template-columns: 1fr; }
  .haftalar { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Sınıfın kademesi (İlkokul / Ortaokul) başlıkta küçük rozet */
.kademe-rozet { display: inline-block; margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.25); border: 2px solid rgba(255,255,255,.6); font-size: 14px; font-weight: 800; vertical-align: middle; }
