*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
:root {
  --bg: #1A1C19;
  --fg: #E8F0E6;
  --beige: #E3DCCB;
  --ink: #1B2A4A;
  --W: min(108vh, 94vw, 1400px);
  --W: min(108svh, 94vw, 1400px);
  --d: clamp(60px, min(12vw, 13vh), 124px);
  --tu: min(calc(var(--W) * .07), calc((100vw - var(--W)) * .085));
}
html, body { margin: 0; height: 100%; }
body {
  background: #cdbb93;
  font-family: 'VT323', monospace;
  -webkit-font-smoothing: none;
  font-smooth: never;
  overflow-x: hidden;
}

/* sahne: duvar + masa + lamba ışığı */
.scene {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 14px, transparent 14px 28px),
    radial-gradient(circle at 12% -5%, rgba(255,214,140,.55), transparent 55%),
    linear-gradient(#d8c69f, #c4b086);
  overflow: hidden;
}
.scene::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background: radial-gradient(ellipse at 10% 0%, rgba(255,200,120,.18), transparent 60%),
              radial-gradient(ellipse at 100% 100%, rgba(0,0,0,.25), transparent 60%);
}

.mac { position: relative; z-index: 2; width: var(--W); margin-top: 2vh; flex: none; }
.chassis {
  position: relative;
  padding: calc(var(--W) * .035) calc(var(--W) * .035) 0;
  border-radius: calc(var(--W) * .035) calc(var(--W) * .035) calc(var(--W) * .015) calc(var(--W) * .015);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(100deg, #efe9da, var(--beige) 40%, #cfc6b1);
  box-shadow: 0 25px 50px rgba(0,0,0,.65), inset 4px 4px 8px rgba(255,255,255,.55), inset -6px -6px 12px rgba(0,0,0,.15);
}
.bezel {
  position: relative;
  aspect-ratio: 512 / 342;
  border-radius: calc(var(--W) * .035);
  background: linear-gradient(#c9c0aa, #dcd4c1);
  box-shadow: inset 0 4px 10px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.7);
}
.chin { position: relative; height: calc(var(--W) * .075); }
.mac:has(.crt.zoomed) { z-index: 100; }
.badge {
  position: absolute; left: calc(var(--W) * .01); bottom: calc(var(--W) * .015);
  display: flex; align-items: center; gap: calc(var(--W) * .02);
  font: calc(var(--W) * .03) 'VT323', monospace; color: #9c937e; letter-spacing: .08em;
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
}
.badge i {
  width: calc(var(--W) * .04); height: calc(var(--W) * .045); border-radius: 22%;
  background: linear-gradient(#61BB46 0 16.6%, #FDB827 0 33.3%, #F5821F 0 50%, #E03A3E 0 66.6%, #963D97 0 83.3%, #009DDC 0);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
.drive {
  position: absolute; right: calc(var(--W) * .04); top: calc(var(--W) * .025);
  display: flex; align-items: center; gap: calc(var(--W) * .02);
}
.slot {
  width: calc(var(--W) * .27); height: calc(var(--W) * .024);
  border-radius: 3px; background: #2a2620;
  box-shadow: inset 0 2px 3px #000, 0 1px 0 rgba(255,255,255,.7), 0 -1px 0 rgba(0,0,0,.15);
}
.led {
  width: calc(var(--W) * .012); height: calc(var(--W) * .012); border-radius: 50%;
  background: #3A1D1D; box-shadow: inset 0 1px 1px rgba(0,0,0,.6);
}
.led.on { background: #FF3300; box-shadow: 0 0 6px 2px rgba(255,60,0,.7); }
.pinhole {
  width: 16px; height: 16px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.pinhole::after {
  content: ''; width: calc(var(--W) * .011); height: calc(var(--W) * .011); min-width: 5px; min-height: 5px;
  border-radius: 50%; background: #3b362d; box-shadow: inset 0 1px 2px #000, 0 1px 0 rgba(255,255,255,.7);
}
.pinhole:focus-visible { outline: 2px solid var(--ink); border-radius: 50%; }
.foot {
  width: 90%; margin: 0 auto; height: calc(var(--W) * .02);
  border-radius: 0 0 8px 8px;
  background: linear-gradient(#b9b09b, #d6cebb);
  box-shadow: 0 10px 18px rgba(0,0,0,.45);
}

/* CRT */
.crt {
  position: absolute; inset: calc(var(--W) * .02);
  border-radius: 7% / 10%;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 0 35px rgba(210,235,255,.25), inset 0 0 0 2px #000;
}
.crt::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 20;
  background:
    repeating-linear-gradient(rgba(0,0,0,.12) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.5) 100%);
  animation: flicker .12s steps(2) infinite;
}
@keyframes flicker { 50% { opacity: .9; } }
.crt.zoomed {
  position: fixed; inset: 12px; z-index: 100;
  border: 12px solid var(--beige); border-radius: 22px;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.55), 0 0 35px rgba(210,235,255,.25);
}
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  font-size: clamp(16px, calc(var(--W) * .02), 26px); line-height: 1.2; color: var(--bg);
  animation: power .6s ease-out;
}
.crt.zoomed .screen { font-size: 21px; }
@keyframes power {
  0% { transform: scale(1, .004); filter: brightness(4); }
  40% { transform: scale(1, .004); filter: brightness(4); }
  70% { transform: scale(1, 1); filter: brightness(1.6); }
}
.menubar {
  flex: none; display: flex; align-items: center; gap: .2em;
  height: 1.35em; padding: 0 calc(var(--W) * .035);
  background: var(--fg); border-bottom: 2px solid var(--bg);
  white-space: nowrap; overflow: hidden;
}
.menubar .logo {
  width: .7em; height: .8em; margin-right: .4em; border-radius: 22%;
  background: linear-gradient(#61BB46 0 16.6%, #FDB827 0 33.3%, #F5821F 0 50%, #E03A3E 0 66.6%, #963D97 0 83.3%, #009DDC 0);
  filter: grayscale(1) contrast(1.3);
}
.menubar .name { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.menubar button { font: inherit; color: inherit; background: none; border: 0; padding: 0 .35em; cursor: pointer; }
.menubar button:hover, .menubar button:focus-visible { background: var(--bg); color: var(--fg); outline: 0; }
.desktop {
  position: relative; flex: 1; overflow: hidden;
  background: repeating-conic-gradient(var(--fg) 0 25%, var(--bg) 0 50%) 0 0 / 4px 4px;
}
.dicon {
  position: absolute; right: .5em; width: 4.4em;
  display: flex; flex-direction: column; align-items: center; gap: .1em;
  font: inherit; color: var(--bg); background: none; border: 0; padding: 0; cursor: pointer;
}
.dicon svg { width: 2em; height: 2em; }
.dicon span { background: var(--fg); padding: 0 .25em; font-size: .85em; }
.dicon:focus-visible span, .dicon:hover span { background: var(--bg); color: var(--fg); }
#disk-icon { top: .4em; }
.trash { bottom: .4em; cursor: default; }
.nodisk {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6em;
}
.nodisk svg { width: 3em; height: 3em; animation: blinkq 1s steps(1) infinite; }
@keyframes blinkq { 50% { opacity: 0; } }
.nodisk p { margin: 0; max-width: 80%; padding: .3em .6em; background: var(--fg); border: 2px solid var(--bg); box-shadow: 3px 3px 0 var(--bg); text-align: center; }
.watch { position: absolute; left: 50%; top: 50%; width: 2.4em; height: 2.4em; margin: -1.2em; z-index: 5; }

.window {
  position: absolute; inset: .35em;
  display: flex; flex-direction: column;
  background: var(--fg); border: 2px solid var(--bg); box-shadow: 3px 3px 0 var(--bg);
}
.window.opening { animation: zoomopen .28s steps(6); transform-origin: calc(100% - 2em) 1em; }
@keyframes zoomopen { from { transform: scale(.05); } }
.titlebar {
  flex: none; display: flex; align-items: center; gap: .4em;
  height: 1.3em; padding: .22em .35em;
  border-bottom: 2px solid var(--bg);
  background: repeating-linear-gradient(var(--bg) 0 1px, var(--fg) 1px 3px) content-box;
}
.titlebar h2 {
  font: inherit; margin: 0 auto; padding: 0 .5em; background: var(--fg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 78%;
}
.titlebar button {
  flex: none; width: .85em; height: .85em; padding: 0; cursor: pointer;
  border: 2px solid var(--bg); background: var(--fg); position: relative;
  outline: .2em solid var(--fg);
}
.titlebar .zoom::after { content: ''; position: absolute; left: 0; top: 0; width: 55%; height: 55%; border-right: 2px solid var(--bg); border-bottom: 2px solid var(--bg); }
.titlebar button:active { background: var(--bg); }
.win-body {
  flex: 1; overflow: auto; padding: .5em .8em 1em;
  scrollbar-color: var(--bg) var(--fg);
}
.win-body::-webkit-scrollbar { width: 16px; }
.win-body::-webkit-scrollbar-track { border-left: 2px solid var(--bg); background: repeating-conic-gradient(var(--fg) 0 25%, var(--bg) 0 50%) 0 0 / 4px 4px; }
.win-body::-webkit-scrollbar-thumb { background: var(--fg); border: 2px solid var(--bg); }

/* pencere içeriği */
.win-body h1 { font-size: 1.7em; font-weight: normal; line-height: 1; margin: .25em 0; }
.win-body h2 { font-size: 1.25em; font-weight: normal; margin: 1em 0 .2em; border-bottom: 2px solid var(--bg); }
.win-body h3 { font-size: 1.1em; font-weight: normal; margin: .8em 0 .2em; }
.win-body p { margin: .45em 0; }
.win-body a { color: inherit; }
.win-body a:hover, .win-body a:focus-visible { background: var(--bg); color: var(--fg); outline: 0; }
.win-body img, .win-body video, .win-body iframe {
  display: block; max-width: 100%; border: 2px solid var(--bg);
  filter: grayscale(1) contrast(1.1);
}
.win-body iframe { width: 100%; border-radius: 0; }
.win-body figure { margin: .6em 0; }
.win-body figcaption { font-size: .85em; opacity: .75; }
.muted { opacity: .7; }
.live { font-size: .5em; vertical-align: middle; padding: 0 .3em; background: var(--bg); color: var(--fg); }
.about { display: flex; gap: .8em; align-items: center; }
.about img { width: 34%; max-width: 9em; flex: none; }
.disk-list { list-style: none; padding: 0; margin: .5em 0; }
.disk-list li { margin: .15em 0; }
.disk-list a { text-decoration: none; }
.spec { display: grid; grid-template-columns: max-content 1fr; gap: .1em .8em; margin: .6em 0; }
.spec dt { opacity: .7; }
.spec dd { margin: 0; }
.rows { list-style: none; padding: 0; margin: .3em 0; }
.rows li { display: grid; grid-template-columns: 6.5em 1fr; gap: .5em; padding: .15em 0; border-bottom: 1px dotted var(--bg); }
.rows em { display: block; font-style: normal; opacity: .7; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9em, 1fr)); gap: .6em; }
.grid figure { margin: 0; }
.grid img, .grid video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.reels video { aspect-ratio: 9 / 16; }
.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.6em, 1fr)); gap: .9em .4em; margin: .4em 0; }
.ficon { display: flex; flex-direction: column; align-items: center; gap: .25em; text-align: center; text-decoration: none; }
.win-body .ficon:hover, .win-body .ficon:focus-visible { background: none; color: inherit; }
.ithumb { width: 3.4em; height: 3.4em; display: grid; place-items: center; overflow: hidden; border: 2px solid var(--bg); background: var(--fg); box-shadow: 2px 2px 0 var(--bg); }
.win-body .ithumb img { width: 100%; height: 100%; object-fit: cover; border: 0; }
.win-body .ithumb img.contain, .win-body .hero img.contain { object-fit: contain; padding: 8%; }
.dark { background: #111; }
.iname { line-height: 1; padding: 0 .2em; }
.ficon:hover .iname, .ficon:focus-visible .iname { background: var(--bg); color: var(--fg); }
.hero { margin: .6em 0; }
.hero img, .hero video { width: 100%; max-height: 22em; object-fit: cover; }
.back { text-decoration: none; }
.pn { display: flex; justify-content: space-between; gap: 1em; margin-top: 1.2em; padding-top: .4em; border-top: 2px solid var(--bg); }
.notes { list-style: none; padding: 0; margin: .3em 0; }
.notes li { border-bottom: 1px dotted var(--bg); }
.notes a { display: block; padding: .3em 0; text-decoration: none; }
.notes small { display: block; font-size: .85em; opacity: .75; }
.prose pre, .prose code { font-family: inherit; }
.prose pre { white-space: pre-wrap; border: 2px solid var(--bg); padding: .4em; }
.prose blockquote { margin: .5em 0; padding-left: .7em; border-left: 3px solid var(--bg); }

/* IKEA SKÅDIS tarzı pegboard + aletler */
.pegboard {
  position: absolute; z-index: 1; left: 50%; top: 2.5vh;
  width: min(96vw, 1900px); height: calc(var(--W) * .66);
  transform: translateX(-50%);
  border-radius: 6px;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(255,215,150,.35), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect x='6' y='4' width='6' height='16' rx='3' fill='%23fff' opacity='.8' transform='translate(.6 .8)'/%3E%3Crect x='6' y='4' width='6' height='16' rx='3' fill='%234a4741'/%3E%3Crect x='26' y='24' width='6' height='16' rx='3' fill='%23fff' opacity='.8' transform='translate(.6 .8)'/%3E%3Crect x='26' y='24' width='6' height='16' rx='3' fill='%234a4741'/%3E%3C/svg%3E") center top / 34px 34px,
    linear-gradient(100deg, #f4f2ec, #e6e3da);
  box-shadow: 0 18px 40px rgba(60,40,10,.35), inset 0 0 0 1px rgba(0,0,0,.08), inset 0 -3px 0 rgba(0,0,0,.06);
}
.tools {
  position: absolute; z-index: 1; top: calc(2.5vh + var(--W) * .07);
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: calc(var(--tu) * .9) calc(var(--tu) * .45);
  max-width: calc((100vw - var(--W)) / 2 - 3vw);
}
.tools.left { justify-content: flex-end; }
.tools.left { right: calc(50% + var(--W) / 2 + 1.5vw); }
.tools.right { left: calc(50% + var(--W) / 2 + 1.5vw); }
.tool { display: block; width: auto; filter: drop-shadow(5px 8px 4px rgba(40,25,5,.38)); }
@media (max-width: 900px) { .tools { display: none; } }
@media (max-height: 960px) and (min-width: 561px) { .hint { display: none; } }

/* masa ve disketler */
.desk {
  position: relative; width: 100%; flex: 1;
  min-height: 20vh;
  margin-top: calc(var(--W) * -0.03);
  padding: calc(var(--W) * .035) 16px 2vh;
  background:
    repeating-linear-gradient(178deg, rgba(60,30,10,.0) 0 9px, rgba(60,30,10,.12) 9px 11px, rgba(60,30,10,0) 11px 23px),
    repeating-linear-gradient(181deg, rgba(255,220,170,.0) 0 31px, rgba(255,220,170,.09) 31px 34px),
    repeating-linear-gradient(176deg, rgba(80,40,10,0) 0 57px, rgba(80,40,10,.1) 57px 61px),
    radial-gradient(ellipse at 15% 0%, rgba(255,210,140,.35), transparent 60%),
    linear-gradient(#b07c45, #8f5f30);
  box-shadow: inset 0 14px 22px rgba(0,0,0,.28), inset 0 2px 0 rgba(255,230,190,.35);
}
.disks {
  display: grid; grid-template-columns: repeat(6, var(--d));
  gap: 0 calc(var(--d) * .3); justify-content: center;
  margin-top: calc(var(--d) * -.15);
}
.disk {
  position: relative; z-index: 3;
  width: var(--d); aspect-ratio: 1 / 1.03;
  padding: 0; border: 0; background: none; cursor: pointer;
  transform: translateY(var(--y)) perspective(600px) rotateX(50deg) rotate(var(--r)) scale(1);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), filter .25s;
  filter: drop-shadow(1px 3px 1px rgba(0,0,0,.55)) drop-shadow(4px 10px 8px rgba(0,0,0,.3));
}
.disk:hover, .disk:focus-visible {
  transform: translateY(-25px) perspective(600px) rotateX(18deg) rotate(0deg) scale(1.08);
  z-index: 50; outline: 0;
  filter: drop-shadow(6px 40px 14px rgba(0,0,0,.3));
}
.disk:focus-visible .label { outline: 3px solid var(--ink); }
.disk.in { visibility: hidden; }
.disk-body {
  position: absolute; inset: 0;
  border-radius: 4%;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 40%), var(--body);
  clip-path: polygon(0 0, 93% 0, 100% 7%, 100% 100%, 0 100%);
}
.shutter {
  position: absolute; left: 22%; width: 54%; top: 0; height: 40%;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #9aa0a6, #e6e9ec 45%, #a9afb4);
}
.shutter::after { content: ''; position: absolute; left: 58%; width: 20%; top: 14%; height: 66%; background: #2a2a2a; border-radius: 1px; }
.label {
  position: absolute; left: 9%; right: 9%; bottom: 0; height: 52%;
  display: flex; align-items: center; justify-content: center;
  padding: 6% 5% 3%;
  border-top: calc(var(--d) * .07) solid var(--stripe);
  border-radius: 2px 2px 0 0;
  background: repeating-linear-gradient(transparent 0 calc(var(--d) * .115), rgba(70,130,180,.22) calc(var(--d) * .115) calc(var(--d) * .125)), #f4f1e8;
  font: 700 calc(var(--d) * .135) / 1.05 'Caveat', cursive;
  color: var(--ink); text-align: center;
}
.label span { transform: rotate(-1.5deg); }
.hint { margin: calc(var(--d) * .1) 0 0; text-align: center; font: 700 calc(var(--d) * .2) 'Caveat', cursive; color: rgba(40,20,5,.65); }

@media (max-width: 560px) {
  :root { --d: min(26vw, 96px); }
  .disks { grid-template-columns: repeat(3, var(--d)); row-gap: 0; }
  .screen { font-size: 16px; }
  .crt.zoomed { inset: 6px; border-width: 8px; }
  .crt.zoomed .screen { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .crt::after, .nodisk svg, .screen, .window.opening { animation: none; }
  .disk { transition: none; }
}
