/* yöbi2213 ortak stil: haftaların hepsinde aynı kalan pencereler, renkler, şeritler, yan sütun.
   Öğrenciye: bir sayfa birden fazla stil dosyası kullanabilir. Bu dosyayı <link rel="stylesheet"> ile
   bağlıyoruz; haftaya özel kurallar ise o haftanın kendi <style> bölümünde duruyor. */

/* Öğrenciye: renkler bir kez burada tanımlanır, sonra her yerde var(--ad) ile kullanılır. */
:root {
  color-scheme: dark;
  --gece: #06050b;
  --panel: #0e0b1a;
  --panel-2: #151029;
  --mor: #7a2bff;
  --pembe: #ff2ea6;
  --limon: #b6ff2e;
  --lavanta: #c3b4ff;
  --seftali: #ffb27a;
  --yazi: #ebe6ff;
  --soluk: #a49cd0;
  --pixel: "Pixelify Sans", "Courier New", monospace;
  --govde: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --kod: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  min-height: 100vh;
  font: 16.5px/1.65 var(--govde);
  color: var(--yazi);
  background-color: var(--gece);
  /* Öğrenciye: arka plandaki doku bir resim dosyası değil. Küçük bir SVG, CSS ile döşeniyor. */
  background-image:
    radial-gradient(60% 50% at 80% 10%, rgba(122, 43, 255, .22), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, rgba(255, 46, 166, .14), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect x='0' y='0' width='1' height='1' fill='%237a2bff' fill-opacity='.35'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23ff2ea6' fill-opacity='.22'/%3E%3C/svg%3E");
  background-attachment: fixed;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}
::selection { background: var(--limon); color: #000; }
a { color: var(--limon); text-underline-offset: .18em; }
a:visited { color: var(--lavanta); }
a:hover { color: var(--pembe); }
:focus-visible { outline: 2px dashed var(--limon); outline-offset: 3px; }
code, kbd { font-family: var(--kod); font-size: .86em; }
:not(pre) > code { color: var(--limon); background: #000; padding: .05em .35em; border: 1px solid rgba(182, 255, 46, .35); }
kbd {
  display: inline-block; padding: 0 .45em; line-height: 1.5;
  color: #000; background: var(--lavanta);
  border: 1px solid #000; box-shadow: 2px 2px 0 var(--mor);
  font-weight: 600; white-space: nowrap;
}
* { scrollbar-color: var(--mor) #000; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--mor); border: 2px solid #000; }

body.os-win .mac { display: none !important; }
body.os-mac .win { display: none !important; }

/* Öğrenciye: Pixelify Sans küçük boyda 2'yi 8'e, 5'i S'ye benzetir. Piksel yazının içindeki rakamları
   .r sınıfıyla rakamı net bir yazı tipine geçiriyoruz; harfler piksel kalıyor. */
.r { font-family: var(--kod); font-weight: 700; font-size: .9em; }

/* ---------- İmleç: 8-bit ok ve el ---------- */
/* Öğrenciye: imleç bir resim olabilir. cursor: url(...) ile kendi imlecinizi verirsiniz; sondaki
   "auto" ve "pointer", resim yüklenemezse kullanılacak yedeklerdir. Buradaki resimler SVG ile çizildi. */
html { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='34' viewBox='0 0 11 17' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 0h1v1h-1zM0 1h1v1h-1zM1 1h1v1h-1zM0 2h1v1h-1zM2 2h1v1h-1zM0 3h1v1h-1zM3 3h1v1h-1zM0 4h1v1h-1zM4 4h1v1h-1zM0 5h1v1h-1zM5 5h1v1h-1zM0 6h1v1h-1zM6 6h1v1h-1zM0 7h1v1h-1zM7 7h1v1h-1zM0 8h1v1h-1zM8 8h1v1h-1zM0 9h1v1h-1zM9 9h1v1h-1zM0 10h1v1h-1zM6 10h1v1h-1zM7 10h1v1h-1zM8 10h1v1h-1zM9 10h1v1h-1zM10 10h1v1h-1zM0 11h1v1h-1zM3 11h1v1h-1zM6 11h1v1h-1zM0 12h1v1h-1zM2 12h1v1h-1zM4 12h1v1h-1zM7 12h1v1h-1zM0 13h1v1h-1zM1 13h1v1h-1zM4 13h1v1h-1zM7 13h1v1h-1zM0 14h1v1h-1zM5 14h1v1h-1zM8 14h1v1h-1zM5 15h1v1h-1zM8 15h1v1h-1zM6 16h1v1h-1zM7 16h1v1h-1z'/%3E%3Cpath fill='%23b6ff2e' d='M1 2h1v1h-1zM1 3h1v1h-1zM2 3h1v1h-1zM1 4h1v1h-1zM2 4h1v1h-1zM3 4h1v1h-1zM1 5h1v1h-1zM2 5h1v1h-1zM3 5h1v1h-1zM4 5h1v1h-1zM1 6h1v1h-1zM2 6h1v1h-1zM3 6h1v1h-1zM4 6h1v1h-1zM5 6h1v1h-1zM1 7h1v1h-1zM2 7h1v1h-1zM3 7h1v1h-1zM4 7h1v1h-1zM5 7h1v1h-1zM6 7h1v1h-1zM1 8h1v1h-1zM2 8h1v1h-1zM3 8h1v1h-1zM4 8h1v1h-1zM5 8h1v1h-1zM6 8h1v1h-1zM7 8h1v1h-1zM1 9h1v1h-1zM2 9h1v1h-1zM3 9h1v1h-1zM4 9h1v1h-1zM5 9h1v1h-1zM6 9h1v1h-1zM7 9h1v1h-1zM8 9h1v1h-1zM1 10h1v1h-1zM2 10h1v1h-1zM3 10h1v1h-1zM4 10h1v1h-1zM5 10h1v1h-1zM1 11h1v1h-1zM2 11h1v1h-1zM4 11h1v1h-1zM5 11h1v1h-1zM1 12h1v1h-1zM5 12h1v1h-1zM6 12h1v1h-1zM5 13h1v1h-1zM6 13h1v1h-1zM6 14h1v1h-1zM7 14h1v1h-1zM6 15h1v1h-1zM7 15h1v1h-1z'/%3E%3C/svg%3E") 0 0, auto; }
a, button, summary, label, input[type="checkbox"], [role="button"] { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='32' viewBox='0 0 15 16' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M6 0h1v1h-1zM7 0h1v1h-1zM5 1h1v1h-1zM8 1h1v1h-1zM5 2h1v1h-1zM8 2h1v1h-1zM5 3h1v1h-1zM8 3h1v1h-1zM5 4h1v1h-1zM8 4h1v1h-1zM9 4h1v1h-1zM10 4h1v1h-1zM5 5h1v1h-1zM8 5h1v1h-1zM11 5h1v1h-1zM12 5h1v1h-1zM13 5h1v1h-1zM2 6h1v1h-1zM3 6h1v1h-1zM5 6h1v1h-1zM8 6h1v1h-1zM11 6h1v1h-1zM14 6h1v1h-1zM1 7h1v1h-1zM4 7h1v1h-1zM5 7h1v1h-1zM14 7h1v1h-1zM1 8h1v1h-1zM5 8h1v1h-1zM14 8h1v1h-1zM2 9h1v1h-1zM13 9h1v1h-1zM2 10h1v1h-1zM13 10h1v1h-1zM3 11h1v1h-1zM13 11h1v1h-1zM3 12h1v1h-1zM12 12h1v1h-1zM4 13h1v1h-1zM12 13h1v1h-1zM4 14h1v1h-1zM12 14h1v1h-1zM4 15h1v1h-1zM5 15h1v1h-1zM6 15h1v1h-1zM7 15h1v1h-1zM8 15h1v1h-1zM9 15h1v1h-1zM10 15h1v1h-1zM11 15h1v1h-1zM12 15h1v1h-1z'/%3E%3Cpath fill='%23ff2ea6' d='M6 1h1v1h-1zM7 1h1v1h-1zM6 2h1v1h-1zM7 2h1v1h-1zM6 3h1v1h-1zM7 3h1v1h-1zM6 4h1v1h-1zM7 4h1v1h-1zM6 5h1v1h-1zM7 5h1v1h-1zM9 5h1v1h-1zM10 5h1v1h-1zM6 6h1v1h-1zM7 6h1v1h-1zM9 6h1v1h-1zM10 6h1v1h-1zM12 6h1v1h-1zM13 6h1v1h-1zM2 7h1v1h-1zM3 7h1v1h-1zM6 7h1v1h-1zM7 7h1v1h-1zM8 7h1v1h-1zM9 7h1v1h-1zM10 7h1v1h-1zM11 7h1v1h-1zM12 7h1v1h-1zM13 7h1v1h-1zM2 8h1v1h-1zM3 8h1v1h-1zM4 8h1v1h-1zM6 8h1v1h-1zM7 8h1v1h-1zM8 8h1v1h-1zM9 8h1v1h-1zM10 8h1v1h-1zM11 8h1v1h-1zM12 8h1v1h-1zM13 8h1v1h-1zM3 9h1v1h-1zM4 9h1v1h-1zM5 9h1v1h-1zM6 9h1v1h-1zM7 9h1v1h-1zM8 9h1v1h-1zM9 9h1v1h-1zM10 9h1v1h-1zM11 9h1v1h-1zM12 9h1v1h-1zM3 10h1v1h-1zM4 10h1v1h-1zM5 10h1v1h-1zM6 10h1v1h-1zM7 10h1v1h-1zM8 10h1v1h-1zM9 10h1v1h-1zM10 10h1v1h-1zM11 10h1v1h-1zM12 10h1v1h-1zM4 11h1v1h-1zM5 11h1v1h-1zM6 11h1v1h-1zM7 11h1v1h-1zM8 11h1v1h-1zM9 11h1v1h-1zM10 11h1v1h-1zM11 11h1v1h-1zM12 11h1v1h-1zM4 12h1v1h-1zM5 12h1v1h-1zM6 12h1v1h-1zM7 12h1v1h-1zM8 12h1v1h-1zM9 12h1v1h-1zM10 12h1v1h-1zM11 12h1v1h-1zM5 13h1v1h-1zM6 13h1v1h-1zM7 13h1v1h-1zM8 13h1v1h-1zM9 13h1v1h-1zM10 13h1v1h-1zM11 13h1v1h-1zM5 14h1v1h-1zM6 14h1v1h-1zM7 14h1v1h-1zM8 14h1v1h-1zM9 14h1v1h-1zM10 14h1v1h-1zM11 14h1v1h-1z'/%3E%3C/svg%3E") 12 0, pointer; }
textarea { cursor: text; }

#kabarcik { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 50; pointer-events: none; image-rendering: pixelated; }

/* ---------- Kahraman: sayfanın başındaki büyük pencere ---------- */
.kahraman { padding: 22px 24px 0; }
.kahraman-ic { max-width: 1452px; margin: 0 auto; height: calc(100vh - 44px); display: flex; align-items: center; justify-content: center; }
/* Öğrenciye: görüntüler 16:9. Pencere, ekrana sığan en büyük 16:9 boyutu alıyor; böylece görüntü
   ne kırpılıyor ne de gereğinden fazla büyütülüp bulanıklaşıyor. */
.kahraman .pencere { width: min(100%, calc((100vh - 44px - 36px) * 16 / 9)); display: flex; flex-direction: column; box-shadow: 8px 8px 0 var(--mor); }
.kahraman .cubuk { font-size: 1.05rem; }
.kare-sayac { font: 600 .82rem var(--kod); background: #000; color: var(--limon); padding: 1px 8px; }
.sahne { position: relative; flex: none; aspect-ratio: 16 / 9; overflow: hidden; background: #000 center / cover no-repeat; }
.sahne canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* tarama çizgileri: eski bir ekranın önüne gerilmiş ince bir ızgara */
.sahne::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px); }
.vuruslar { z-index: 1; }
.sahne .poster { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vuruslar { position: absolute; inset: 0; pointer-events: none; }
.vurus {
  position: absolute; left: 5%; bottom: 10%; margin: 0;
  font: 700 clamp(3rem, 8vw, 7.5rem)/.95 var(--pixel);
  color: var(--yazi); text-shadow: 5px 5px 0 var(--mor), 0 0 30px rgba(0, 0, 0, .6);
}
.vurus.v2 { color: var(--limon); text-shadow: 5px 5px 0 #000, 0 0 30px rgba(0, 0, 0, .6); }
.vurus.v3 { font-size: clamp(1.8rem, 3.6vw, 3.2rem); color: var(--yazi); text-shadow: 3px 3px 0 var(--pembe), 0 0 24px rgba(0, 0, 0, .7); }
/* Hareket azaltıldığında: kaydırma yok, tek bir durağan kare ve alt alta üç satır */
.kahraman.durgun .kahraman-ic { height: auto; }
.kahraman.durgun canvas, .kahraman.durgun .kare-sayac { display: none; }
.kahraman.durgun .poster { display: block; }
.kahraman.durgun .vuruslar { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 0 5% 6%; }
.kahraman.durgun .vurus { position: static; max-width: none; opacity: 1 !important; visibility: visible !important; transform: none !important; }

/* ---------- Kayan şeritler ---------- */
.bant {
  --bant: var(--limon);
  display: flex; align-items: stretch;
  border: 2px solid #000; outline: 2px solid var(--bant);
  background: var(--bant); color: #000;
  font: 600 1.05rem/1 var(--pixel);
  overflow: hidden;
}
.bant.pembe { --bant: var(--pembe); }
.bant.mor { --bant: var(--mor); color: #fff; }
.bant-dugme {
  flex: none; display: grid; place-items: center; width: 42px;
  background: #000; color: var(--bant); border: 0; border-right: 2px solid #000;
}
.bant-dugme:hover { background: #1a1430; }
.bant-dugme svg { width: 14px; height: 14px; shape-rendering: crispEdges; }
.bant-dugme .oynat, .bant.durdu .bant-dugme .durdur { display: none; }
.bant.durdu .bant-dugme .oynat { display: block; }
.bant-pencere { flex: 1; min-width: 0; overflow: hidden; padding: 11px 0; }
/* Öğrenciye: içerik iki kez yazıldı. Şerit kendi genişliğinin yarısı kadar kayınca ikinci kopya
   birincinin yerine oturur ve animasyon başa sarar; göz dikişi görmez. */
.bant-yol { display: flex; width: max-content; animation: bant-kay var(--sure, 70s) linear infinite; }
.bant-grup { display: flex; align-items: center; gap: 22px; padding-right: 22px; white-space: nowrap; }
.bant:hover .bant-yol, .bant.durdu .bant-yol { animation-play-state: paused; }
@keyframes bant-kay { to { transform: translateX(-50%); } }
.bant b { font-weight: 700; }
.bant kbd { font-size: .8em; box-shadow: 1px 1px 0 #000; }
.bant code { font-size: .85em; background: #000; color: var(--limon); padding: 0 .3em; }
/* Ayraçlar: küçük piksel şekiller, CSS ile çizildi */
.ayrac { flex: none; width: 10px; height: 10px; background: currentColor; }
.ayrac.elmas { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.ayrac.arti { clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%); }
.ayrac.kare { width: 8px; height: 8px; box-shadow: 3px 3px 0 rgba(0, 0, 0, .35); }
.bant-bosluk { margin: 0 24px; }
@media (prefers-reduced-motion: reduce) {
  .bant-dugme { display: none; }
  .bant-yol { width: auto; }
  .bant-grup { white-space: normal; flex-wrap: wrap; row-gap: 10px; padding: 0 16px; line-height: 1.35; }
  .bant-grup[aria-hidden="true"] { display: none; }
}

/* ---------- Üç şerit: dikey başlık, yan sütun, içerik ---------- */
.sayfa {
  display: grid;
  grid-template-columns: 96px 300px minmax(0, 1fr);
  gap: 22px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 22px 24px 60px;
}
.serit {
  position: sticky; top: 22px;
  height: calc(100vh - 44px);
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  font-family: var(--pixel); font-weight: 700;
  line-height: .86;
  user-select: none;
}
/* Öğrenciye: her harf ayrı bir span. :nth-child ile sırayla renk alıyorlar. */
.serit .harfler { display: flex; flex-direction: column; align-items: center; font-size: clamp(2.6rem, 5.6vh, 4.3rem); }
.serit .harfler span:nth-child(3n+1) { color: var(--pembe); }
.serit .harfler span:nth-child(3n+2) { color: var(--mor); }
.serit .harfler span:nth-child(3n) { color: var(--limon); }
.serit .harfler span { text-shadow: 3px 3px 0 #000; }
.serit .no { font: 700 clamp(3rem, 7vh, 5rem) var(--kod); color: var(--yazi); text-shadow: 4px 4px 0 var(--mor); }

.yan {
  position: sticky; top: 22px;
  height: calc(100vh - 44px);
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px;
  padding: 0 8px 8px 0;
}
.icerik { min-width: 0; display: flex; flex-direction: column; gap: 26px; }

/* ---------- Pencere: bu sayfanın tek yapı taşı ---------- */
.pencere {
  background: var(--panel);
  border: 2px solid var(--limon);
  box-shadow: 5px 5px 0 var(--mor);
  min-width: 0;
}
.pencere > .cubuk {
  display: flex; align-items: center; gap: 10px;
  min-height: 30px; padding: 3px 8px 3px 10px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px),
    var(--limon);
  color: #000;
  font: 600 1rem/1.2 var(--pixel);
  border-bottom: 2px solid var(--limon);
}
.cubuk .ikon { width: 14px; height: 14px; flex: none; background: #000; box-shadow: inset 0 0 0 3px var(--limon), inset 0 0 0 5px #000; }
.cubuk .bosluk { flex: 1; }
.cubuk .dugme {
  font: 600 .82rem var(--pixel);
  background: #000; color: var(--limon);
  border: 1px solid #000; padding: 1px 9px;
}
.cubuk .dugme:hover { background: var(--pembe); color: #000; }
.pencere > .govde { padding: 20px 24px 22px; }
.pencere.pembe { border-color: var(--pembe); box-shadow: 5px 5px 0 var(--limon); }
.pencere.pembe > .cubuk { background: repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px), var(--pembe); border-color: var(--pembe); }
.pencere.pembe .cubuk .ikon { box-shadow: inset 0 0 0 3px var(--pembe), inset 0 0 0 5px #000; }
.pencere.mor { border-color: var(--mor); box-shadow: 5px 5px 0 var(--pembe); }
.pencere.mor > .cubuk { background: repeating-linear-gradient(90deg, rgba(0,0,0,.2) 0 2px, transparent 2px 4px), var(--mor); color: #fff; border-color: var(--mor); }
.pencere.mor .cubuk .ikon { background: #fff; box-shadow: inset 0 0 0 3px var(--mor), inset 0 0 0 5px #fff; }

/* ---------- Yan sütun widget'ları ---------- */
.kimlik .govde { padding: 14px 16px; }
.kimlik dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: baseline; }
.kimlik dt { font: 700 1.05rem var(--pixel); color: var(--pembe); }
.kimlik dd { margin: 0; font-family: var(--kod); font-size: .86rem; color: var(--limon); }
.kimlik .maskot { display: block; width: 72px; height: auto; margin: 0 0 10px auto; }

.isletim .govde { padding: 12px 14px; }
.isletim p { margin: 8px 0 0; font-size: .84rem; color: var(--soluk); }
.secici { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--limon); }
.secici button {
  font: 600 1rem var(--pixel); padding: 6px 0;
  background: #000; color: var(--limon); border: 0;
}
.secici button + button { border-left: 2px solid var(--limon); }
.secici button[aria-pressed="true"] { background: var(--limon); color: #000; }

.harita .govde { padding: 8px 6px 10px; }
.harita ol { list-style: none; margin: 0; padding: 0; counter-reset: b; }
.harita li { counter-increment: b; }
.harita a {
  display: grid; grid-template-columns: 2.4ch 1fr; gap: 8px;
  padding: 4px 10px; text-decoration: none; color: var(--yazi);
  font-size: .94rem; border-left: 3px solid transparent;
}
.harita a::before { content: counter(b, decimal-leading-zero); font: 600 .8rem/1.9 var(--kod); color: var(--soluk); }
.harita a:hover { background: var(--panel-2); color: var(--limon); }
.harita a.gecildi { color: var(--lavanta); }
.harita a.simdi { border-left-color: var(--pembe); background: #000; color: var(--limon); }
.harita a.simdi::before { color: var(--pembe); }

.iletim .govde { font: 400 1.15rem/1.35 var(--pixel); color: var(--limon); text-align: center; padding: 16px 14px; }
.iletim small { display: block; margin-top: 8px; font: .8rem var(--govde); color: var(--soluk); }

/* Öğrenciye: 88x31, eski web'in rozet boyutu. Bunlar resim değil, CSS ile çizildi. */
.rozetler .govde { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
.rozet {
  width: 88px; height: 31px; flex: none;
  display: grid; place-items: center;
  font: 600 .66rem/1 var(--pixel); text-align: center; letter-spacing: .02em;
  border: 1px solid #000; outline: 1px solid rgba(255,255,255,.25); outline-offset: -3px;
  overflow: hidden; position: relative;
}
.r1 { background: repeating-linear-gradient(45deg, #000 0 3px, #1a0d33 3px 6px); color: var(--limon); }
.r2 { background: var(--pembe); color: #000; }
.r3 { background: linear-gradient(#fff, #cfc6ff); color: #1a0d33; }
.r4 { background: #000; color: var(--pembe); }
.r5 { background: repeating-linear-gradient(90deg, var(--mor) 0 4px, #5a1fd0 4px 8px); color: #fff; }
.r6 { background: var(--limon); color: #000; }
.r7 { background: #000; color: var(--lavanta); }
.r7::after { content: ""; width: 6px; height: 11px; background: var(--limon); position: absolute; right: 9px; top: 10px; animation: yanip 1s steps(1) infinite; }
.r8 { background: linear-gradient(90deg, #ff2ea6, #7a2bff, #b6ff2e); color: #000; }
@keyframes yanip { 50% { opacity: 0; } }

/* ---------- 14 hafta ---------- */
.haftalar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.hafta-kutu { position: relative; background: #000; border: 2px solid rgba(195, 180, 255, .45); min-width: 0; }
.hafta-kutu > a, .hafta-kutu > div { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.hafta-kutu .mini { display: flex; align-items: center; gap: 6px; padding: 2px 6px; background: var(--panel-2); border-bottom: 2px solid rgba(195, 180, 255, .45); font: 600 .85rem var(--pixel); color: var(--lavanta); }
.hafta-kutu .mini .etiket { margin-left: auto; font: 700 .7rem var(--pixel); background: var(--pembe); color: #000; padding: 0 5px; }
.hafta-kutu .resim { position: relative; }
.hafta-kutu img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; }
.hafta-kutu .yazi { padding: 7px 8px 9px; }
.hafta-kutu b { display: block; font: 600 .86rem/1.2 var(--pixel); color: var(--yazi); overflow-wrap: break-word; }
.hafta-kutu small { display: block; margin-top: 3px; font-size: .78rem; line-height: 1.35; color: var(--soluk); }
.hafta-kutu.bugun { border-color: var(--limon); box-shadow: 4px 4px 0 var(--pembe); }
.hafta-kutu.bugun .mini { background: var(--limon); color: #000; border-color: var(--limon); }
.hafta-kutu.bugun b { color: var(--limon); }
.hafta-kutu.bugun a:hover b { color: var(--pembe); }
/* Geçen hafta: açık ama sönük; tıklayıp geri dönebilirsiniz. */
.hafta-kutu.gecen { border-color: var(--lavanta); }
.hafta-kutu.gecen .mini .etiket { position: absolute; z-index: 1; top: 28px; right: 6px; background: var(--lavanta); white-space: nowrap; box-shadow: 2px 2px 0 #000; }
.hafta-kutu.gecen a:hover { background: var(--panel-2); }
.hafta-kutu.gecen a:hover b { color: var(--limon); }
/* Öğrenciye: kilitli haftaların üstündeki kafes bir resim değil: iki katmanlı bir CSS deseni. */
.hafta-kutu.sonra { opacity: .62; }
.hafta-kutu.sonra .resim::after {
  content: ""; position: absolute; inset: 0;
  background-image: conic-gradient(#000 25%, transparent 0 50%, #000 0 75%, transparent 0);
  background-size: 4px 4px; opacity: .65;
}
.hafta-kutu.sonra img { filter: grayscale(.7) brightness(.8); }
.hafta-not { margin: 14px 0 0; font-size: .9rem; color: var(--soluk); }
.proje .govde p { margin: 0 0 10px; }
.proje ul { margin: 0; padding-left: 20px; }
.proje li { margin: 4px 0; }

/* ---------- İçerik tipografisi ---------- */
.kapak .govde { padding: 26px 28px 24px; }
.kapak h1 {
  margin: 0; font: 700 clamp(2.8rem, 5vw, 4.4rem)/.95 var(--pixel);
  color: var(--yazi); text-shadow: 4px 4px 0 var(--mor);
}
.kapak .alt { margin: 14px 0 0; font-size: 1.1rem; color: var(--lavanta); max-width: 64ch; }
.kapak .bugun { margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; padding: 0; list-style: none; }
.kapak .bugun li { background: #000; border: 1px solid rgba(182,255,46,.35); padding: 10px 12px; font-size: .95rem; }
.kapak .bugun b { display: block; font: 600 1.05rem var(--pixel); color: var(--limon); margin-bottom: 2px; }

.govde h3 { font: 600 1.35rem/1.2 var(--pixel); color: var(--limon); margin: 26px 0 8px; }
.govde p, .govde li { max-width: 70ch; }
.govde > p:first-child { margin-top: 0; }
.giris { font-size: 1.08rem; color: var(--lavanta); }

ol.adimlar { list-style: none; padding: 0; margin: 12px 0 16px; counter-reset: a; display: grid; gap: 10px; }
ol.adimlar > li { counter-increment: a; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
ol.adimlar > li::before {
  content: counter(a); width: 26px; height: 26px; display: grid; place-items: center;
  font: 700 .9rem var(--kod); color: #000; background: var(--limon); box-shadow: 2px 2px 0 var(--mor);
}

ol.zaman { list-style: none; margin: 8px 0 0; padding: 0 0 0 18px; border-left: 2px dashed var(--mor); }
ol.zaman li { position: relative; padding: 0 0 16px 14px; }
ol.zaman li::before { content: ""; position: absolute; left: -25px; top: 8px; width: 10px; height: 10px; background: var(--pembe); box-shadow: 0 0 0 3px #000; }
ol.zaman b { font: 700 1.1rem var(--kod); color: var(--pembe); margin-right: 8px; }

.uclu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.ikili { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.kutu { background: #000; border: 1px solid rgba(195,180,255,.35); padding: 12px 14px; }
.kutu b { display: block; font: 700 1.15rem var(--pixel); color: var(--limon); margin-bottom: 2px; }
.kutu .etiket { font: .78rem var(--kod); color: var(--pembe); }
.kutu p { margin: 4px 0 0; font-size: .95rem; }


/* Küçük düğme: ders içi araçlarda (lamba, ipuçları, adım adım) */
.kucuk-dugme { font: 600 .92rem var(--pixel); background: #000; color: var(--limon); border: 2px solid var(--limon); padding: 4px 10px; }
.kucuk-dugme:hover { background: var(--limon); color: #000; }

/* ---------- Kod ve sonuç ---------- */
.deneme { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 14px; margin: 14px 0 18px; align-items: stretch; }
.deneme.alt-alta { grid-template-columns: 1fr; }
.deneme .pencere { box-shadow: 4px 4px 0 var(--mor); display: flex; flex-direction: column; }
.deneme pre { margin: 0; padding: 14px 16px; overflow-x: auto; background: #000; font: 13.6px/1.65 var(--kod); color: var(--yazi); flex: 1; tab-size: 2; }
.deneme pre code { font-size: inherit; }
.deneme pre.metin { white-space: pre-wrap; font-size: 14px; }
.sonuc { border-color: var(--lavanta); }
.sonuc > .cubuk { background: repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 2px, transparent 2px 4px), var(--lavanta); border-color: var(--lavanta); }
.sonuc .cubuk .ikon { box-shadow: inset 0 0 0 3px var(--lavanta), inset 0 0 0 5px #000; }
.deneme .sonuc.yapiskan { position: sticky; top: 16px; align-self: start; }
.sonuc iframe { display: block; width: 100%; flex: 1; min-height: 140px; border: 0; background: #fff; }
.t { color: var(--limon); }
.s { color: var(--seftali); }
.p { color: var(--pembe); }
.sec { color: var(--lavanta); }
.yorum, .yorum * { color: var(--soluk) !important; font-style: italic; }

.sira {
  margin: 16px 0 20px; padding: 14px 18px;
  background: repeating-linear-gradient(135deg, rgba(255,46,166,.16) 0 6px, transparent 6px 12px), #000;
  border: 2px solid var(--pembe);
}
.sira > b:first-child { font: 700 1.4rem var(--pixel); color: var(--pembe); display: block; margin-bottom: 4px; }
.sira ul { margin: 6px 0 0; padding-left: 20px; }
.sira li { margin: 3px 0; }

.bilgi { display: grid; grid-template-columns: 34px 1fr; gap: 12px; margin: 16px 0; padding: 12px 14px; background: var(--panel-2); border-left: 4px solid var(--seftali); }
.bilgi .i { font: 700 1.5rem/1 var(--pixel); color: var(--seftali); }
.bilgi p { margin: 0; }

.kural { font: 700 clamp(1.6rem, 2.6vw, 2.2rem)/1.15 var(--pixel); color: var(--limon); margin: 20px 0; padding: 14px 18px; background: #000; border: 2px solid var(--limon); box-shadow: 5px 5px 0 var(--pembe); max-width: 30ch; }

details { border-bottom: 1px dashed rgba(195,180,255,.3); }
details:last-child { border-bottom: 0; }
summary { padding: 10px 0; font-weight: 600; list-style: none; display: flex; gap: 10px; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; font: 700 1.1rem/1.3 var(--pixel); color: var(--pembe); width: 1ch; }
details[open] summary::before { content: "-"; }
details > p { margin: 0 0 12px 22px; }

table.kisayol { width: 100%; border-collapse: collapse; margin-top: 6px; }
table.kisayol td { padding: 8px 4px; border-bottom: 1px dashed rgba(195,180,255,.25); }
table.kisayol td:last-child { text-align: right; }

.oyun { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.oyun .pencere { display: flex; flex-direction: column; box-shadow: 4px 4px 0 var(--mor); }
.oyun textarea { flex: 1; min-height: 420px; width: 100%; resize: vertical; border: 0; padding: 14px 16px; background: #000; color: var(--yazi); font: 13.5px/1.6 var(--kod); tab-size: 2; }
.oyun iframe { flex: 1; min-height: 420px; width: 100%; border: 0; background: #fff; }

ul.odev { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
ul.odev label { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
ul.odev input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--pembe); }
ul.odev input:checked + span { color: var(--soluk); text-decoration: line-through; text-decoration-color: var(--pembe); }

.halka {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px; background: #000; border: 2px dashed var(--mor);
  font: 600 1.05rem var(--pixel);
}
.halka .sayac { font-family: var(--kod); font-size: .8rem; color: var(--soluk); }
.halka a[aria-disabled="true"] { color: var(--soluk); pointer-events: none; text-decoration: none; }

.kredi { font-size: .86rem; color: var(--soluk); }

/* ---------- Dar ekran ---------- */
@media (max-width: 1180px) {
  .sayfa { grid-template-columns: 70px 260px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .deneme, .oyun { grid-template-columns: 1fr; }
  .haftalar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sayfa { grid-template-columns: 1fr; }
  .serit { position: static; height: auto; flex-direction: row; justify-content: flex-start; gap: 16px; }
  .serit .harfler { flex-direction: row; font-size: 2.4rem; gap: 2px; }
  .serit .no { font-size: 2.4rem; }
  .yan { position: static; height: auto; overflow: visible; }
  .uclu, .ikili { grid-template-columns: 1fr; }
  .haftalar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kahraman { padding: 12px 12px 0; }
}
@media print {
  .kahraman, .bant, .serit, .yan, .oyun, .cubuk .dugme { display: none; }
  .sayfa { grid-template-columns: 1fr; }
}
