/* Simülasyon sunum / akıllı tahta modu: ortak stiller (sunum.js ile birlikte).
   Durumlar: 2D sayfalarda body.fs, 3D laboratuvarlarda #lab.fs; ikisinde de html.sim-fs.
   Yatay ve >= 900 px genişlikte tam ekran: her şey tek ekrana sığar, kaydırma yok. */

/* Normal moddaki geniş "Tam ekran" düğmesi (2D sayfalar) */
.fsb.sim-a{display:block;width:100%;margin-top:8px;background:#fff!important;color:#26304f!important;border:2px solid #26304f!important}

/* Tam ekrandan çık: sağ üstte küçük yuvarlak simge */
html.sim-fs .fsb{position:fixed!important;top:8px!important;right:8px!important;left:auto!important;bottom:auto!important;z-index:80;
 width:max(44px,4.6vmin)!important;height:max(44px,4.6vmin)!important;min-width:0!important;padding:0!important;margin:0!important;border-radius:50%!important;
 display:grid!important;place-items:center;font-size:0!important;line-height:0;background:#fff!important;color:#26304f!important;
 border:2px solid #26304f!important;box-shadow:0 4px 14px #0003;opacity:.8;flex:none!important}
html.sim-fs .fsb::before{content:"\2715";font:800 20px/1 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
html.sim-fs .fsb:hover,html.sim-fs .fsb:focus-visible{opacity:1}

/* Dar ya da dikey ekranda tam ekran (telefon, dikey tablet): eski büyütme */
@media (min-width:700px){
 body.fs .w{max-width:min(1100px,100%);padding:8px}
 body.fs canvas{max-height:78vh;max-width:100%}
 body.fs .pg{font-size:19px}body.fs .lab{font-size:19px}body.fs .msg{font-size:24px}body.fs .res b{font-size:30px}body.fs button{font-size:18px}
}

/* ---------- Akıllı tahta: yatay, >= 900 px ---------- */
@media (min-width:900px) and (orientation:landscape){
 html.sim-fs,html.sim-fs body{overflow:hidden!important;height:100%}
 /* 2D sayfalar: sol sütunda büyük sahne (.sim-main), sağ sütunda başlık + paneller + ipucu */
 body.fs .w{max-width:none!important;width:100%;height:100vh;height:100dvh;margin:0;padding:1vmin!important}
 body.fs .pg{--k:1;height:100%;overflow:hidden;display:grid;grid-template-columns:minmax(0,var(--sim-l,1.55fr)) minmax(0,1fr);
  grid-template-rows:repeat(9,auto) minmax(0,1fr);column-gap:2vmin;row-gap:0;padding:1.4vmin 1.8vmin;border-radius:1.4vmin;font-size:calc(var(--k)*2.1vmin)}
 body.fs .pg>*{grid-column:2;margin:0 0 calc(var(--k)*1.3vmin)!important;min-width:0;min-height:min-content}
 body.fs .pg>.sim-main{grid-column:1;grid-row:1/-1;margin:0!important;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden}
 body.fs .pg>.cta,body.fs .pg>.more,body.fs .pg>footer,body.fs .pg>.share,body.fs .pg>div[style]{display:none!important}
 body.fs .sim-fit{flex:none;max-width:none!important;max-height:none!important;margin:auto}
 body.fs .sim-measure{width:100%!important;height:100%!important;flex:1 1 0!important;min-height:0!important;min-width:0!important;align-self:stretch!important;justify-self:stretch!important;margin:0!important}
 body.fs .pg>header{margin-right:52px!important;gap:1.4vmin}
 body.fs header img{width:auto;height:calc(var(--k)*7vmin)}
 body.fs h1{font-size:calc(var(--k)*3.6vmin)}
 body.fs .sub{font-size:calc(var(--k)*1.9vmin)}
 body.fs .card{border-radius:1.6vmin}
 body.fs .tip{font-size:calc(var(--k)*2.05vmin);line-height:1.4;padding:calc(var(--k)*1.2vmin) calc(var(--k)*1.6vmin)}
 body.fs button{font-size:calc(var(--k)*2.3vmin);padding:calc(var(--k)*1.3vmin) calc(var(--k)*1vmin);border-radius:1.2vmin}
 body.fs input[type=range]{height:calc(var(--k)*4.4vmin)}

 /* 3D laboratuvarlar: panel kaydırılmaz, sığmazsa sunum.js küçültür */
 #lab.fs{height:100vh;height:100dvh}
 #lab.fs .ctl{overflow:hidden!important;min-height:0}
 #lab.fs .ctl>:first-child{margin-right:52px}
}
