/* Ana sayfa: yaşayan tabloların içinde yolculuk */

.ana { background: #0b1020; }
html:has(.ana) { scroll-padding-top: 0; }

/* WebGL yoksa tuvalin yerine manzara görseli kalır */
.ana::before { content: ""; position: fixed; inset: 0; z-index: -3; background: url("/assets/img/kopru.jpg") center / cover; }
.uc-boyut .ana::before { display: none; }
#dunya { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -2; display: block; }
.perde { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(rgba(3, 5, 11, .35), transparent 18% 74%, rgba(3, 5, 11, .6)); }

/* Üstte yalnızca marka ve hesap düğmeleri; gezinme sağdaki menüde */
.ana .ust, .ana .ust.dolu { background: linear-gradient(rgba(5, 7, 14, .75), transparent); border: 0; backdrop-filter: none; justify-content: space-between; }
.ana .menu, .ana .menu-ac { display: none; }

/* ---------- Sağ menü: büyük baklava taşlar, her zaman okunan adlar ---------- */
.harita { --yol: 0; position: fixed; right: 20px; top: 52%; z-index: 40; translate: 0 -50%; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.harita::before, .harita::after { content: ""; position: absolute; right: 25px; top: 26px; width: 4px; border-radius: 4px; }
.harita::before { bottom: 26px; background: rgba(246, 223, 166, .35); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); }
.harita::after { height: calc((100% - 52px) * var(--yol)); background: linear-gradient(#ffe08a, #ff3b30); box-shadow: 0 0 14px #ffb13b; }
.harita a { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; text-decoration: none; }
.harita .ad { padding: 5px 14px; border: 1px solid #e7bd74; border-radius: 20px; background: rgba(8, 10, 18, .86); font: 600 1rem var(--baslik); color: #ffe7b0; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, .55); transition: transform .2s, background .2s; }
.harita .tas { display: grid; place-items: center; width: 40px; height: 40px; margin: 7px; rotate: 45deg; border: 2px solid #ffd77a; border-radius: 5px; background: linear-gradient(135deg, #3a2b12, #151009); box-shadow: 0 0 0 3px rgba(0, 0, 0, .55), 0 0 14px rgba(255, 196, 80, .45); color: #ffe7a8; transition: scale .2s, box-shadow .2s, background .2s; }
.harita .tas span { rotate: -45deg; font: 700 1.3rem/1 "Microsoft YaHei", "SimSun", serif; }
.harita a:hover .ad { transform: translateX(-5px); background: #7c0b13; }
.harita a:hover .tas { scale: 1.12; box-shadow: 0 0 0 3px rgba(0, 0, 0, .55), 0 0 24px #ffc453; }
.harita a.etkin .ad { background: linear-gradient(90deg, #e0242f, #8d0b14); border-color: #fff0c4; color: #fff; font-size: 1.1rem; box-shadow: 0 0 22px rgba(255, 60, 50, .75); }
.harita a.etkin .tas { scale: 1.3; border-color: #fff0c4; background: linear-gradient(135deg, #ff3b45, #8d0b14); color: #fff; box-shadow: 0 0 0 3px rgba(0, 0, 0, .55), 0 0 30px #ff4b3e; }
/* ---------- Duraklar ---------- */
/* overflow-x: yana taşan 3B kartlar telefonda sayfayı genişletmesin */
.durak { overflow-x: clip; min-height: 100vh; min-height: 100svh; margin-bottom: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 84px 16px 40px; }
.durak.son { margin-bottom: 0; justify-content: space-between; padding-bottom: 0; }
.icerik { --t: 0; --u: 0; width: min(1060px, 100%); transform: perspective(1100px) translate3d(0, calc(var(--t) * 40px), calc(var(--u) * -420px)) rotateX(calc(var(--t) * -26deg)); opacity: calc(1 - var(--u) * 1.15); }
.icerik.uzakta { pointer-events: none; }
.icerik.dar { width: min(760px, 100%); }
@media (min-width: 861px) { .durak:not(.giris):not(.son) { padding-inline: 112px; } }
@media (min-width: 1200px) { .durak:not(.giris):not(.son) { padding-inline: 236px; } }
/* Orta genişlik: adlar yalnızca bulunulan ve üzerine gelinen taşta; kitabeler menünün altına taşmasın */
@media (min-width: 861px) and (max-width: 1199px) {
  .harita { right: 10px; }
  .harita .ad { position: absolute; right: 66px; opacity: 0; pointer-events: none; }
  .harita a:hover .ad, .harita a:focus-visible .ad, .harita a.etkin .ad { opacity: 1; }
}

.baslik { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 26px; padding: 8px 0; text-shadow: 0 2px 4px #000, 0 0 18px #000; background: radial-gradient(closest-side, rgba(4, 7, 15, .72), transparent); }
.baslik small { display: block; color: var(--altin); letter-spacing: .3em; text-transform: uppercase; font-size: .74rem; }
.baslik h2 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); }
.muhur { flex: none; display: grid; place-items: center; width: 58px; height: 58px; rotate: -5deg; font: 1.9rem "Microsoft YaHei", "SimSun", serif; color: #ffe9c4; background: linear-gradient(150deg, #bd1a25, #6c0710); border: 2px solid #e2b66e; border-radius: 6px; box-shadow: inset 0 0 0 3px #7c0b13, 0 8px 22px rgba(0, 0, 0, .6); text-shadow: none; }
.ornek-notu { width: fit-content; margin: -12px auto 20px; padding: 3px 14px; border: 1px dashed var(--altin); border-radius: 20px; background: rgba(8, 10, 18, .65); color: var(--altin); font-size: .8rem; text-align: center; }

/* ---------- Giriş ---------- */
.giris { position: relative; text-align: center; }
.giris .icerik { margin-top: 20px; }
.logo-3d { perspective: 900px; width: min(660px, 90vw, 112vh); margin: 0 auto; }
.logo-katman { display: block; position: relative; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; animation: suzul 7s ease-in-out infinite; }
.logo-katman img { width: 100%; height: auto; filter: drop-shadow(0 1px 0 #3a2208) drop-shadow(0 2px 0 #1a0d03) drop-shadow(0 22px 30px rgba(0, 0, 0, .85)); }
.logo-parilti { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 42%, rgba(255, 246, 214, .75) 50%, transparent 58%) 150% 0 / 300% 100% no-repeat; -webkit-mask: url("/assets/img/logo.webp") center / contain no-repeat; mask: url("/assets/img/logo.webp") center / contain no-repeat; animation: parilti 6s ease-in-out infinite; }
@keyframes suzul { 50% { translate: 0 -10px; } }
@keyframes parilti { 0%, 55% { background-position: 150% 0; } 85%, 100% { background-position: -50% 0; } }
.slogan { font-family: var(--baslik); font-size: clamp(1.25rem, 3vw, 1.9rem); color: var(--altin-acik); text-shadow: 0 2px 14px #000, 0 0 30px #000; }
.alt-slogan { max-width: 560px; margin: 4px auto 22px; text-shadow: 0 1px 8px #000, 0 0 20px #000; }
.sayac { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; }
.sayac div { min-width: 74px; padding: 8px; background: var(--panel); border: 1px solid var(--cizgi); }
.sayac strong { display: block; font: 600 1.8rem var(--baslik); font-variant-numeric: tabular-nums; color: var(--altin-acik); }
.sayac span { font-size: .75rem; color: var(--soluk); }

/* ---------- Sunucu bilgisi: tek parça kitabe paneli ---------- */
/* Bu bölümde 3B yatma ve eğilme yok: yazılar net kalsın, çerçeve yamulmasın. */
#sunucu .icerik { transform: translateY(calc(var(--t) * 40px)); }
.pano { position: relative; padding: 8px 22px; border: 1px solid var(--altin); border-radius: 4px; background: linear-gradient(180deg, rgba(20, 24, 39, .94), rgba(9, 11, 19, .96)); box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .5), inset 0 0 0 5px rgba(214, 176, 106, .3), 0 28px 50px rgba(0, 0, 0, .6); }
/* Köşeler yan menüdeki baklava taşlarıyla aynı dilde */
.pano::before, .pano::after { content: ""; position: absolute; top: -7px; width: 12px; height: 12px; rotate: 45deg; background: linear-gradient(135deg, #ff3b45, #8d0b14); border: 2px solid #ffd77a; }
.pano::before { left: -7px; }
.pano::after { right: -7px; }
.oranlar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 14px 0 16px; border-bottom: 1px solid; border-image: linear-gradient(90deg, transparent, var(--altin), transparent) 1; text-align: center; }
.oran { padding: 0 4px; }
.oran + .oran { border-left: 1px solid var(--cizgi); }
.oran strong { display: block; font: 700 clamp(1.5rem, 3.6vw, 2.6rem)/1.15 var(--baslik); color: var(--altin-acik); text-shadow: 0 2px 0 #3d2a0e; }
.oran span { display: block; color: #aeb5c8; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.ozellikler { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; padding: 6px 0; }
.ozellik { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-content: center; column-gap: 14px; min-height: 62px; padding: 8px 2px; border-bottom: 1px solid rgba(255, 255, 255, .07); text-align: left; }
.ozellik:nth-last-child(-n+2) { border-bottom: 0; }
.ozellik svg { grid-row: span 2; align-self: center; width: 38px; height: 38px; padding: 8px; fill: none; stroke: var(--altin-acik); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; border: 1px solid rgba(214, 176, 106, .5); border-radius: 50%; background: rgba(169, 18, 29, .35); }
.ozellik dt { color: var(--soluk); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; }
.ozellik dd { font: 600 1.08rem/1.35 var(--baslik); color: var(--yazi); }
.ozellik.krallik dd { display: flex; flex-wrap: wrap; column-gap: 12px; }
.krallik-adi { white-space: nowrap; }
.krallik-adi::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #888; }
.krallik-adi.shinsoo::before { background: #e0454d; }
.krallik-adi.chunjo::before { background: #e6b93a; }
.krallik-adi.jinno::before { background: #4a8ae6; }
.ozellik.koruma svg { stroke: #8ff0b5; background: rgba(35, 150, 90, .3); border-color: rgba(100, 220, 150, .6); }
.ozellik.koruma dd { color: #8ff0b5; }
/* Kısa ekranlarda (dizüstü) her şey tek ekrana sığsın */
@media (max-height: 700px) {
  #sunucu .baslik { margin-bottom: 14px; padding: 0; }
  #sunucu .ornek-notu { margin: -6px auto 12px; }
  .oranlar { padding: 8px 0 10px; }
  .ozellik { min-height: 52px; padding: 5px 2px; }
}

/* ---------- Sınıflar: tablo tam ekran, panel karakterin karşısında ---------- */
.sinif-duragi { touch-action: pan-y; user-select: none; }
.sinif-panel { flex: none; width: min(360px, 100%); padding: 28px; background: linear-gradient(120deg, rgba(8, 11, 21, .9), rgba(8, 11, 21, .62)); border-left: 3px solid var(--kizil); backdrop-filter: blur(8px); }
.sinif-panel .baslik { justify-content: flex-start; margin-bottom: 20px; }
.sinif-panel .baslik h2 { font-size: 1.9rem; }
.sinif-muhurleri { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 18px; }
.sinif-muhurleri button { padding: 8px 2px; background: rgba(0, 0, 0, .4); border: 1px solid var(--cizgi); font-family: var(--baslik); font-size: .9rem; cursor: pointer; transition: .2s; }
.sinif-muhurleri button:hover { border-color: var(--altin); }
.sinif-muhurleri button[aria-pressed="true"] { background: linear-gradient(#c81d28, #6d0810); border-color: #e7bd74; color: #fff3d6; }
.sinif-adi { font-size: clamp(2.2rem, 5vw, 3.4rem); background: linear-gradient(#fff1c8, #b5853a); -webkit-background-clip: text; background-clip: text; color: transparent; }
#sinif-bilgi { min-height: 190px; }
.yollar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ---------- Sistemler: dönen tılsım çemberi ---------- */
.cember-alani { height: 360px; display: grid; place-items: center; perspective: 1300px; touch-action: pan-y; cursor: grab; user-select: none; }
.cember { position: relative; width: 230px; height: 320px; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.cember.suruklu { transition: none; cursor: grabbing; }
.tilsim { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 18px; text-align: center; cursor: pointer; background: linear-gradient(175deg, rgba(52, 20, 28, .96), rgba(13, 15, 28, .97) 52%); border: 1px solid rgba(214, 176, 106, .5); border-radius: 14px; box-shadow: inset 0 0 0 5px rgba(7, 9, 18, .75), inset 0 0 0 6px rgba(214, 176, 106, .22); transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .3s, border-color .3s; }
.suruklu .tilsim { transition: none; }
.tilsim.onde { border-color: var(--altin-acik); box-shadow: inset 0 0 0 5px rgba(7, 9, 18, .75), inset 0 0 0 6px rgba(214, 176, 106, .5), 0 0 44px rgba(214, 150, 60, .4); }
.tilsim-ad { font: 600 1.3rem var(--baslik); color: var(--altin-acik); }
.tilsim-metin { color: #bcc2d3; font-size: .9rem; line-height: 1.5; }
.kontrol { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 20px; }
.ok { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--altin); background: rgba(9, 12, 22, .85); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.ok:hover { background: #7c0b13; }
.ipucu { min-width: 0; text-align: center; font-size: .86rem; text-shadow: 0 1px 8px #000, 0 0 16px #000; }

/* ---------- Yenilikler: ferman ---------- */
.ferman { position: relative; padding: 14px 0; }
.ferman::before, .ferman::after { content: ""; position: absolute; left: -16px; right: -16px; height: 22px; z-index: 1; border-radius: 12px; background: linear-gradient(#7a4a22, #e7bd74 35%, #4a270f); box-shadow: 0 6px 14px rgba(0, 0, 0, .55); }
.ferman::before { top: 4px; }
.ferman::after { bottom: 4px; }
.ferman-kagit { min-height: min(340px, calc(100svh - 380px)); max-height: 56vh; overflow-y: auto; padding: 30px clamp(18px, 5vw, 46px); color: #2b1a10; background: url("/assets/img/logo-filigran.png") center / min(82%, 560px) auto no-repeat, radial-gradient(ellipse at 50% 40%, #f2e3bf, #d8bd88 90%); scrollbar-width: thin; }
.ferman article { padding: 16px 0; border-bottom: 1px solid rgba(94, 52, 20, .35); }
.ferman article:last-child { border: 0; }
.ferman h3 { color: #6d0d13; font-size: 1.3rem; }
.haber-ust { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: .84rem; color: #6b4a2c; }
.damga { padding: 0 10px; border: 2px solid #9c1620; border-radius: 4px; rotate: -3deg; color: #9c1620; font-weight: 700; text-transform: uppercase; font-size: .72rem; letter-spacing: .1em; }

/* ---------- Galeri: ayna salonu ---------- */
.galeri-notu { text-align: center; margin: -12px 0 14px; font-size: .9rem; text-shadow: 0 1px 8px #000; }
.aynalar { --g: min(580px, 74vw); position: relative; height: calc(var(--g) * .5625 + 20px); perspective: 1200px; touch-action: pan-y; user-select: none; }
.ayna { position: absolute; left: 50%; top: 0; width: var(--g); aspect-ratio: 16 / 9; margin-left: calc(var(--g) / -2); padding: 5px; cursor: pointer; background: linear-gradient(135deg, #f3d596, #6c4518 40%, #d8ac62 70%, #4a2d0d); border: 0; transform: translateX(calc(var(--fark) * 56%)) translateZ(calc(var(--uzaklik) * -260px)) rotateY(calc(var(--fark) * -34deg)); filter: brightness(.4); transition: transform .65s cubic-bezier(.2, .8, .2, 1), filter .5s, opacity .4s; -webkit-box-reflect: below 6px linear-gradient(transparent 72%, rgba(0, 0, 0, .28)); }
.ayna.secili { filter: none; box-shadow: 0 0 50px rgba(214, 160, 80, .35); }
.ayna.gizli { opacity: 0; pointer-events: none; }
.ayna img, .ayna video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

/* ---------- Son durak ---------- */
.son .icerik { margin: auto; text-align: center; padding: 40px 0; background: radial-gradient(closest-side, rgba(4, 6, 14, .68), transparent); }
.son h2 { font-size: clamp(2.4rem, 7vw, 4.6rem); color: var(--altin-acik); text-shadow: 0 0 36px #000, 0 3px 10px #000; }
.son p { margin: 4px 0 26px; font-size: 1.15rem; text-shadow: 0 1px 10px #000; }
.son footer { width: 100vw; background: linear-gradient(transparent, rgba(4, 5, 10, .95) 40%); border: 0; }

/* ---------- Dar ekran ---------- */
@media (max-width: 860px) {
  .harita { left: 4px; right: 4px; top: auto; bottom: 4px; translate: none; flex-direction: row; align-items: flex-start; gap: 0; padding: 6px 2px 4px; border: 1px solid rgba(231, 189, 116, .6); border-radius: 14px; background: rgba(8, 10, 18, .9); }
  .harita::before, .harita::after { display: none; }
  .harita a { flex: 1 1 0; min-width: 0; flex-direction: column-reverse; gap: 4px; }
  .harita .tas { width: 28px; height: 28px; margin: 5px 0 3px; }
  .harita .tas span { font-size: .95rem; }
  .harita a.etkin .tas { scale: 1.18; }
  .harita .ad, .harita a.etkin .ad { padding: 0; border: 0; background: none; box-shadow: none; font-size: .58rem; line-height: 1.1; white-space: normal; text-align: center; }
  .harita a:hover .ad { transform: none; background: none; }
  .harita a.etkin .ad { color: #ff8a80; }
  .durak { padding-bottom: 96px; padding-top: 132px; }
  .durak.son { padding-bottom: 0; }
  .son footer { padding-bottom: 96px; }
  .sinif-duragi { justify-content: flex-end; }
  .sinif-panel { width: min(410px, 100%); }  .sinif-panel { padding: 16px 18px; }
  .sinif-panel .baslik { display: none; }
  .sinif-muhurleri { margin-bottom: 8px; }
  .sinif-adi { font-size: 1.8rem; }
  #sinif-bilgi { min-height: 150px; font-size: .9rem; }
  .yollar { margin-top: 8px; }
}
@media (max-width: 600px) {
  .pano { padding: 6px 12px; }
  .oran strong { font-size: 1.4rem; }
  .oran span { font-size: .6rem; letter-spacing: .04em; }
  .ozellikler { column-gap: 12px; }
  .ozellik { grid-template-columns: 28px minmax(0, 1fr); column-gap: 8px; min-height: 52px; padding: 6px 0; }
  .ozellik svg { width: 28px; height: 28px; padding: 5px; }
  .ozellik dt { font-size: .6rem; letter-spacing: .03em; }
  .ozellik dd { font-size: .86rem; }
  .ozellik.krallik dd { column-gap: 8px; font-size: .76rem; }
  .muhur { width: 46px; height: 46px; font-size: 1.4rem; }
  .cember { width: 200px; height: 300px; }
  .ipucu { font-size: .78rem; }
}
/* Küçük telefon: karakter ve seçim düğmeleri tek ekrana sığsın */
@media (max-width: 600px) and (max-height: 700px) {
  .sinif-panel { padding: 10px 14px; }
  #sinif-bilgi { min-height: 0; }
  #sinif-bilgi p { display: none; }
}

/* ---------- Sınıflar: oyun görüntüsü kırpılmadan, bütün olarak ---------- */
#siniflar .icerik { width: 100%; display: flex; justify-content: center; transform: translateY(calc(var(--t) * 40px)); }
.sinif-vitrin { position: relative; width: min(100%, 1600px, calc((100svh - 130px) * 16 / 9)); aspect-ratio: 16 / 9; border: 1px solid rgba(214, 176, 106, .75); border-radius: 6px; background: #07090f; box-shadow: 0 0 0 4px rgba(0, 0, 0, .55), 0 0 0 5px rgba(214, 176, 106, .3), 0 28px 60px rgba(0, 0, 0, .7); }
.sinif-vitrin video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.sinif-vitrin::before, .sinif-vitrin::after { content: ""; position: absolute; top: -8px; width: 13px; height: 13px; rotate: 45deg; background: linear-gradient(135deg, #ff3b45, #8d0b14); border: 2px solid #ffd77a; }
.sinif-vitrin::before { left: -8px; }
.sinif-vitrin::after { right: -8px; }
/* Panel, oyunda özellik kutusunun durduğu boş sağ tarafta */
#siniflar .sinif-panel { position: absolute; right: 1.5%; top: 50%; translate: 0 -50%; width: clamp(236px, 23%, 330px); padding: 16px; border: 1px solid rgba(214, 176, 106, .6); border-radius: 4px; background: rgba(8, 11, 20, .74); backdrop-filter: blur(6px); }
#siniflar .sinif-panel .baslik { margin-bottom: 12px; gap: 12px; }
#siniflar .sinif-panel .baslik h2 { font-size: 1.4rem; }
#siniflar .muhur { width: 44px; height: 44px; font-size: 1.4rem; }
#siniflar .sinif-muhurleri { grid-template-columns: repeat(2, 1fr); margin-bottom: 12px; }
#siniflar .sinif-adi { font-size: clamp(1.6rem, 2.4vw, 2.4rem); }
#siniflar #sinif-bilgi { min-height: 150px; font-size: .9rem; }
@media (max-height: 620px) and (min-width: 861px) { #siniflar .sinif-panel .baslik { display: none; } #siniflar #sinif-bilgi { min-height: 0; } }
@media (min-width: 861px) { #siniflar { padding-inline: 24px 100px; } }
@media (min-width: 1200px) { #siniflar { padding-inline: 32px 232px; } }
/* Tablet ve telefon: görüntü üstte, panel altında */
@media (max-width: 860px) {
  #siniflar { justify-content: center; padding: 124px 12px 92px; }
  #siniflar .icerik { flex-direction: column; align-items: center; }
  .sinif-vitrin { width: min(100%, 640px); aspect-ratio: auto; display: flex; flex-direction: column; gap: 10px; border: 0; background: none; box-shadow: none; }
  .sinif-vitrin::before, .sinif-vitrin::after { display: none; }
  .sinif-vitrin video { width: 100%; height: auto; aspect-ratio: 4 / 3; border: 1px solid rgba(214, 176, 106, .75); }
  #siniflar .sinif-panel { position: static; translate: none; width: 100%; padding: 10px 12px; }
  #siniflar .sinif-panel .baslik { display: none; }
  #siniflar .sinif-muhurleri { grid-template-columns: repeat(4, 1fr); margin-bottom: 8px; }
  #siniflar .sinif-adi { font-size: 1.5rem; }
  #siniflar #sinif-bilgi { min-height: 128px; font-size: .86rem; }
}
@media (max-width: 600px) and (max-height: 700px) {
  .sinif-vitrin video { aspect-ratio: 16 / 10; }
  #siniflar #sinif-bilgi { min-height: 0; }
  #siniflar #sinif-bilgi p { display: none; }
}
/* ---------- Oyun çerçevesi: sunucu panosu ve sınıf paneli ---------- */
.pano, #siniflar .sinif-panel { border: 26px solid transparent; border-image: url("/assets/img/oyun-cerceve.svg") 36 fill / 26px / 0 stretch; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .5)); }
.pano { padding: 0 4px; }
#siniflar .sinif-panel { padding: 0; }
.pano::before, .pano::after, .sinif-vitrin::before, .sinif-vitrin::after { display: none; }
/* Oyundaki gibi başlığın altında ince altın çizgi */
#siniflar .sinif-panel .baslik { padding-bottom: 10px; border-bottom: 1px solid; border-image: linear-gradient(90deg, var(--altin), transparent) 1; background: none; }
.oran + .oran { border-left-color: rgba(214, 176, 106, .35); }
.ozellik { border-bottom-color: rgba(214, 176, 106, .16); }
@media (max-height: 700px) { .pano, #siniflar .sinif-panel { border-width: 18px; border-image-width: 18px; } }
@media (max-width: 860px) {
  .pano, #siniflar .sinif-panel { border-width: 16px; border-image-width: 16px; }
  .pano { padding: 0 2px; }
  #siniflar .sinif-panel { padding: 0; }
}
/* ---------- Sistem penceresi: ortada görsel, altında bilgiler (oyun çerçevesi) ---------- */
.sahne { width: min(820px, calc(100vw - 20px), calc((100svh - 330px) * 1.7768 + 80px)); min-width: min(600px, calc(100vw - 20px)); max-width: none; max-height: calc(100svh - 16px); margin: auto; padding: 0; border: 0; background: transparent; color: var(--yazi); overflow-y: auto; }
.sahne::backdrop { background: rgba(3, 4, 9, .78); backdrop-filter: blur(7px); }
.sahne[open] { animation: acil .4s ease-out; }
.sahne-kutu { position: relative; padding: 0 6px 4px; border: 24px solid transparent; border-image: url("/assets/img/oyun-cerceve.svg") 36 fill / 24px / 0 stretch; text-align: center; }
.sahne-ust { margin-bottom: 12px; padding: 0 34px 10px; border-bottom: 1px solid; border-image: linear-gradient(90deg, transparent, var(--altin), transparent) 1; }
.sahne-ust h3 { color: var(--altin-acik); font-size: clamp(1.3rem, 3vw, 1.75rem); }
.sahne-ust p { color: #c8cede; font-size: .94rem; line-height: 1.45; }
.sahne-gorsel { display: block; width: 100%; height: auto; border: 1px solid rgba(214, 176, 106, .65); border-radius: 4px; box-shadow: 0 10px 26px rgba(0, 0, 0, .55); }
.sahne-bolumler { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.sahne-bolumler article { --renk: var(--altin); padding: 10px 10px 12px; border: 1px solid rgba(214, 176, 106, .28); border-top: 3px solid var(--renk); border-radius: 4px; background: rgba(6, 9, 18, .62); }
.sahne-bolumler article:nth-child(1) { --renk: #7fd36a; }
.sahne-bolumler article:nth-child(2) { --renk: #ff6a4d; }
.sahne-bolumler article:nth-child(3) { --renk: #62b4ff; }
.sahne-bolumler h4 { margin-bottom: 4px; color: var(--renk); font-size: 1rem; line-height: 1.25; }
.sahne-bolumler p { color: #d9dde8; font-size: .83rem; line-height: 1.45; }
.sahne-kapat { position: absolute; right: -10px; top: -10px; width: 36px; height: 36px; border: 2px solid #ffe3a0; border-radius: 50%; background: linear-gradient(#e0242f, #8d0b14); color: #fff; font-size: 1.45rem; line-height: 1; cursor: pointer; box-shadow: 0 5px 14px rgba(0, 0, 0, .6); }
.sahne-kapat:hover { filter: brightness(1.2); }
@media (max-width: 600px) {
  .sahne-kutu { padding: 0; border-width: 16px; border-image-width: 16px; }
  .sahne-ust { padding: 0 30px 8px; }
  .sahne-ust p { font-size: .84rem; }
  .sahne-bolumler { grid-template-columns: 1fr; gap: 8px; }
  .sahne-kapat { right: -6px; top: -6px; }
}
.sahne-bolumler:empty { display: none; }
/* Uzun görsel (tablo): başlık ve kapatma sabit kalır, görsel kendi alanında kaydırılır */
.sahne.dik { width: min(660px, calc(100vw - 20px)); min-width: 0; overflow: visible; }
.sahne.dik .sahne-ust p { font-size: .88rem; }
.sahne.dik .sahne-kaydir { max-height: calc(100svh - 230px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--altin) rgba(0, 0, 0, .35); border-radius: 4px; }
@media (max-width: 600px) {
  .sahne.dik .sahne-ust p { font-size: .78rem; }
  .sahne.dik .sahne-kaydir { max-height: calc(100svh - 220px); }
}
.sahne.dik.genis { width: min(960px, calc(100vw - 20px), max(620px, calc((100svh - 230px) * 1.41 + 80px))); }
@media (max-width: 600px) { .sahne.dik.genis { width: calc(100vw - 8px); } .sahne.genis .sahne-kutu { border-width: 12px; border-image-width: 12px; } }
/* Uzun kart yazısı simgeyi ezmesin */
/* Çember kartı biraz uzun; uzun açıklamalı kartlarda yazı ve boşluklar sıkılaşır */
.cember { height: 340px; }
.tilsim.uzun { gap: 8px; padding: 18px 14px; }
.tilsim.uzun .tilsim-metin { font-size: .82rem; line-height: 1.42; }
@media (max-width: 600px) { .cember { height: 300px; } .tilsim.uzun { padding: 14px 10px; } .tilsim.uzun .tilsim-ad { font-size: 1.05rem; } .tilsim.uzun .tilsim-metin { font-size: .74rem; } }
@media (max-width: 600px) and (max-height: 700px) { #sistemler { padding-top: 112px; } .cember-alani { height: 282px; } #sistemler .baslik { margin-bottom: 10px; } .cember { height: 266px; } .tilsim { padding-block: 12px; gap: 8px; } .tilsim.uzun .tilsim-metin { font-size: .7rem; line-height: 1.35; } #sistemler .kontrol { margin-top: 8px; } }
/* Sayfalı görsel: alttaki 1 / 2 düğmeleri */
.sahne-sayfalar { display: flex; justify-content: center; gap: 12px; margin-top: 10px; }
.sahne-sayfalar:empty { display: none; }
.sahne-sayfalar button { width: 46px; height: 38px; border: 1px solid var(--altin); border-radius: 4px; background: rgba(6, 9, 18, .75); color: var(--altin-acik); font: 700 1.05rem var(--baslik); cursor: pointer; }
.sahne-sayfalar button[aria-pressed="true"] { background: linear-gradient(#c81d28, #6d0810); border-color: #ffe3a0; color: #fff3d6; }
.sahne.dik:has(.sahne-sayfalar button) .sahne-kaydir { max-height: calc(100svh - 275px); }
@media (max-width: 600px) { .sahne.dik:has(.sahne-sayfalar button) { width: calc(100vw - 8px); } .sahne.dik:has(.sahne-sayfalar button) .sahne-kutu { border-width: 10px; border-image-width: 10px; padding: 0; } .sahne.dik:has(.sahne-sayfalar button) .sahne-kaydir { max-height: calc(100svh - 215px); } }

/* ---------- Telefon: her kaydirma bir bolume oturur, yarida kalmaz ---------- */
@media (max-width: 860px) {
  html.ana-sayfa { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
  .durak { scroll-snap-align: start; margin-bottom: 30vh; }
  .durak.son { margin-bottom: 0; }
  #yenilikler #haberler { max-height: calc(100svh - 374px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
/* Kisa telefon ekrani (adres cubugu acik): her bolum ust ve alt menu arasina sigar */
@media (max-width: 600px) and (max-height: 700px) {
  #sunucu, #siniflar, #kesfet, #sistemler, #yenilikler, #galeri { padding-top: 98px; padding-bottom: 74px; }
  #sunucu .baslik, #kesfet .baslik, #sistemler .baslik, #yenilikler .baslik, #galeri .baslik { gap: 10px; margin-bottom: 6px; padding: 0; }
  #sunucu .muhur, #kesfet .muhur, #sistemler .muhur, #yenilikler .muhur, #galeri .muhur { width: 38px; height: 38px; font-size: 1.15rem; }
  #sunucu .baslik h2, #kesfet .baslik h2, #sistemler .baslik h2, #yenilikler .baslik h2, #galeri .baslik h2 { font-size: 1.4rem; }
  #sunucu .ornek-notu { margin: 0 auto 6px; font-size: .68rem; }
  #sunucu .oranlar { padding: 4px 0 6px; }
  #sunucu .ozellik { min-height: 44px; padding: 3px 0; }
  #kesfet .kesfet-pencere { height: calc(100svh - 228px); min-height: 0; }
  #sistemler .cember-alani { height: min(282px, calc(100svh - 290px)); }
  #sistemler .cember { height: min(266px, calc(100svh - 302px)); }
  #sistemler .kontrol { margin-top: 4px; gap: 10px; }
  #sistemler .kontrol button { width: 38px; height: 38px; }
  #sistemler .ipucu { font-size: .7rem; line-height: 1.2; }
  #sistemler .tilsim { padding-block: 8px; gap: 5px; }
  #sistemler .tilsim-ad { font-size: 1.05rem; line-height: 1.2; }
  #sistemler .tilsim-metin, #sistemler .tilsim.uzun .tilsim-metin { font-size: .76rem; line-height: 1.35; }
  #yenilikler #haberler { max-height: calc(100svh - 308px); }
  #yenilikler .ornek-notu { margin: 0 auto 4px; font-size: .68rem; }
}

/* Kart icerigi (sembol, ad, yazi) kartin ortasinda durur */
.tilsim { justify-content: center; }
/* Telefonda yatay tablo gorseli: pencere asagi dogru buyur, gorsel yana kaydirilarak gezilir */
@media (max-width: 600px) {
  .sahne.dik.genis .sahne-kaydir { overflow: auto; max-height: calc(100svh - 215px); }
  .sahne.dik.genis .sahne-gorsel { width: 158%; max-width: none; }
  .sahne.dik.genis .sahne-kaydir::-webkit-scrollbar { height: 5px; }
  .sahne.genis .sahne-kutu::after { content: "↔ Tamamını görmek için görseli yana kaydır"; display: block; margin-top: 8px; color: var(--altin-acik); font-size: .76rem; }
}
/* Kartların üstünde MET3 logosu */
.tilsim-logo { flex: none; width: 84%; height: auto; padding-bottom: 10px; border-bottom: 1px solid; border-image: linear-gradient(90deg, transparent, var(--altin), transparent) 1; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .8)); }
.tilsim.uzun .tilsim-logo { width: 76%; padding-bottom: 6px; }
.tilsim.onde .tilsim-logo { filter: drop-shadow(0 0 10px rgba(255, 196, 90, .45)) drop-shadow(0 4px 8px rgba(0, 0, 0, .8)); }
@media (max-width: 600px) and (max-height: 700px) { .tilsim-logo, .tilsim.uzun .tilsim-logo { width: 66%; padding-bottom: 4px; } }

/* Telefonda uzun kart yazıları üç noktayla kesilir; tamamı pencerenin içinde okunur */
@media (max-width: 600px) {
  .tilsim-metin { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; text-overflow: ellipsis; }
}

/* Öndeki ana kart: daha belirgin altın parıltı */
.tilsim.onde { border-color: #ffe9a8; background: linear-gradient(175deg, rgba(86, 34, 44, .98), rgba(22, 20, 40, .98) 55%); box-shadow: inset 0 0 0 5px rgba(7, 9, 18, .72), inset 0 0 0 6px rgba(255, 224, 150, .85), inset 0 0 26px rgba(255, 190, 90, .22), 0 0 26px 4px rgba(255, 196, 90, .6), 0 0 70px 14px rgba(255, 170, 60, .38); animation: ana-kart-parla 2.8s ease-in-out infinite; }
@keyframes ana-kart-parla { 50% { box-shadow: inset 0 0 0 5px rgba(7, 9, 18, .72), inset 0 0 0 6px rgba(255, 236, 180, 1), inset 0 0 34px rgba(255, 200, 100, .32), 0 0 38px 8px rgba(255, 210, 110, .8), 0 0 96px 24px rgba(255, 176, 64, .5); } }
.tilsim.onde .tilsim-ad { text-shadow: 0 0 14px rgba(255, 210, 120, .75); }
@media (prefers-reduced-motion: reduce) { .tilsim.onde { animation: none; } }
@media (max-width: 600px) { .oran strong { font-size: 1.1rem; line-height: 1.5; } }

.ferman-kagit .bos-ferman { padding-block: 28px; text-align: center; font-size: 1.15rem; }

/* ---------- Ana sayfa: tekerlek/parmakla kaydırma kapalı, bölümler arası düğmelerle geçilir ---------- */
html.ana-sayfa.kilitli { overflow: hidden; overscroll-behavior: none; scroll-snap-type: none; }
/* Kısa telefonda son bölüm ve alt bilgi tek ekrana sığar */
@media (max-width: 860px) and (max-height: 700px) { .son .icerik { padding: 8px 0; } .son p { margin-bottom: 14px; } .son footer.alt { gap: 4px; padding: 8px 16px 112px; font-size: .74rem; } .son footer img { display: none; } }
