/* 2158.com.tr — oyunun dünyası: saf siyah gece, saat kırmızısı, kasa LCD yeşili, görev kağıdı, market fişi.
   Yazı: oyunun kendi piksel fontu (11 px ızgara; boyutlar 11'in katları = keskin) ve el yazısı fontu. */

@font-face { font-family: "2158 Pixel"; src: url("/fonts/2158-pixel.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "2158 Hand"; src: url("/fonts/2158-hand.woff2") format("woff2"); font-display: swap; }

:root {
  --night: #000000;
  --clock: #dc1c16;
  --clock-glow: rgba(220, 28, 22, 0.45);
  --lcd: #73ff8c;
  --paper: #e9e3cf;
  --ink: #221d18;
  --sodium: #d9a441;
  --fog: #9a968e;
  --text: #e4ded2;
  --px: "2158 Pixel", ui-monospace, "Consolas", monospace;
  --hand: "2158 Hand", "2158 Pixel", ui-monospace, monospace;
  --s1: 11px; --s2: 22px; --s3: 33px; --s4: 44px; --s6: 66px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--px);
  font-size: var(--s2);
  line-height: 1.5;
  -webkit-font-smoothing: none;
  font-smooth: never;
  text-rendering: optimizeSpeed;
}
img { max-width: 100%; height: auto; display: block; image-rendering: pixelated; }
a { color: var(--sodium); }
a:hover { color: #f2c46a; }
:focus-visible { outline: 3px solid var(--lcd); outline-offset: 3px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 50; background: var(--paper); color: var(--ink); padding: 8px 12px; }
h1, h2, h3 { font-weight: normal; margin: 0; }
h2 { font-size: var(--s4); line-height: 1.25; }
p { margin: 0 0 var(--s2); max-width: 62ch; }
.hand { font-family: var(--hand); }

/* ---- Üst çubuk ---- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: var(--s3);
  padding: 10px clamp(16px, 4vw, 44px);
  background: linear-gradient(#000 60%, rgba(0,0,0,0));
}
.bar-logo { text-decoration: none; }
.seg { color: var(--clock); text-shadow: 0 0 8px var(--clock-glow); letter-spacing: 2px; font-size: var(--s3); }
.seg.small { font-size: var(--s2); margin-right: 8px; }
.bar nav { display: flex; gap: var(--s2); margin-left: auto; }
.bar nav a { color: var(--fog); text-decoration: none; font-size: var(--s2); }
.bar nav a:hover { color: var(--text); }

/* ---- Düğmeler ---- */
.btn {
  display: inline-block; padding: 12px 22px;
  font: inherit; font-size: var(--s2); line-height: 1.2;
  color: var(--text); background: transparent;
  border: 2px solid var(--fog); text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--text); color: #fff; }
.btn-main { background: var(--clock); border-color: var(--clock); color: #fff; box-shadow: 0 0 22px var(--clock-glow); }
.btn-main:hover { background: #f02a22; border-color: #f02a22; }
.btn-small { padding: 6px 14px; }

/* ---- Açılış: sisli otopark döngüsü üstünde takılı saat ---- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.hero-bg { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); object-fit: cover; filter: brightness(0.26) saturate(0.6) blur(2px); }
.crt {
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.28) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 60% 55% at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.9) 100%);
}
.hero-in { position: relative; padding: 110px 16px 60px; }
.clock { margin: 0 auto; width: min(960px, 92vw); animation: flicker 6.5s infinite steps(1); }
.clock img { width: 100%; filter: drop-shadow(0 0 18px var(--clock-glow)); }
.lede { margin: var(--s3) auto var(--s3); color: #f1ece2; font-size: var(--s2); text-shadow: 0 2px 0 #000, 0 0 12px #000; }
.cta { display: flex; gap: var(--s2); justify-content: center; flex-wrap: wrap; }
.meta { margin: var(--s2) auto 0; color: #b9b4ab; font-size: var(--s2); text-shadow: 0 2px 0 #000; }
.rec { position: absolute; left: clamp(16px, 4vw, 44px); bottom: 22px; margin: 0; color: var(--lcd); font-size: var(--s2); opacity: 0.8; }
.rec .dot { display: inline-block; width: 11px; height: 11px; background: var(--clock); animation: blink 1.2s infinite steps(2); }
@keyframes flicker { 0%, 100% { opacity: 1; } 71% { opacity: 1; } 72% { opacity: 0.35; } 73% { opacity: 1; } 74% { opacity: 0.6; } 75% { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }

/* ---- Bölüm iskeleti ---- */
.block { padding: clamp(66px, 11vw, 132px) clamp(16px, 5vw, 66px); max-width: 1320px; margin: 0 auto; }

/* ---- Fragman: tüplü televizyon ---- */
.trailer h2 { margin-bottom: var(--s3); }
.tv { background: #151515; border: 11px solid #262320; border-radius: 22px; padding: 22px; box-shadow: inset 0 0 0 2px #000, 0 0 60px rgba(0,0,0,.8); max-width: 1100px; }
.tv-screen { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; }
.tv-screen img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7); }
.tv-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: var(--s6); text-shadow: 0 0 20px #000; }
.tv-screen:hover .play { color: var(--clock); }
.tv-note { margin: var(--s1) 0 0; color: var(--fog); font-size: var(--s2); }

/* ---- Hikâye ---- */
.story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(33px, 5vw, 66px); align-items: center; }
.story h2 { margin-bottom: var(--s3); }
.story-end { color: var(--clock); font-size: var(--s3); text-shadow: 0 0 10px var(--clock-glow); }
.story-img { margin: 0; }
.story-img img { border: 2px solid #2a2724; }
.story-img figcaption { color: var(--fog); font-size: var(--s2); margin-top: 8px; }

/* ---- Vardiya: görev kağıdı ---- */
.shift { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); gap: clamp(33px, 5vw, 66px); align-items: start; }
.sheet {
  background: var(--paper); color: var(--ink);
  padding: clamp(22px, 4vw, 44px);
  transform: rotate(-0.8deg);
  box-shadow: 0 18px 40px rgba(0,0,0,.7);
  background-image: repeating-linear-gradient(transparent 0 32px, rgba(60, 90, 160, 0.18) 32px 33px);
  background-position: 0 58px;
}
.sheet h2 { font-size: var(--s3); color: #7a1410; margin-bottom: var(--s2); }
.tasks { list-style: none; margin: 0; padding: 0; }
.tasks li { position: relative; padding-left: 44px; margin-bottom: var(--s2); line-height: 1.5; }
.tasks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border: 2px solid var(--ink); }
.tasks li.late { color: #7a1410; }
.tasks strong { font-weight: normal; text-decoration: underline; text-decoration-thickness: 2px; }
.sheet-sign { text-align: right; margin: 0; font-size: var(--s3); }
.shift-imgs { display: grid; gap: var(--s2); }
.shift-imgs img { border: 2px solid #2a2724; }

/* ---- Kameralar ---- */
.cams h2 { margin-bottom: 8px; }
.cams-note { color: var(--fog); }
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; background: #111; padding: 6px; border: 2px solid #262320; }
.cam { position: relative; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
.cam img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: grayscale(0.55) contrast(1.1) brightness(0.85) sepia(0.25) hue-rotate(60deg); }
.cam::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.3) 0 1px, transparent 1px 3px); pointer-events: none; }
.cam span { position: absolute; left: 6px; top: 4px; z-index: 1; font: inherit; font-size: var(--s1); color: #dfffe4; text-shadow: 0 0 4px #000; }
.cam:hover img, .cam:focus-visible img { filter: none; }

/* Büyütme */
.lightbox { border: 0; padding: 0; background: #000; max-width: min(1280px, 96vw); color: var(--text); }
.lightbox::backdrop { background: rgba(0,0,0,.88); }
.lightbox img { width: 100%; }
.lb-label { margin: 0; padding: 8px 12px; color: var(--lcd); font-size: var(--s2); }
.lb-close { position: absolute; top: 6px; right: 10px; background: #000; color: #fff; border: 2px solid #fff; font: inherit; font-size: var(--s3); width: 44px; height: 44px; cursor: pointer; }

/* ---- İndir: market fişi ---- */
.get { display: grid; place-items: center; }
.receipt {
  width: min(560px, 100%); background: #f3f0e6; color: #1b1917; padding: 33px 33px 44px;
  box-shadow: 0 18px 50px rgba(0,0,0,.8);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 11px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 22px 11px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 11px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 22px 11px repeat-x;
}
.r-head { text-align: center; font-size: var(--s3); line-height: 1.2; margin: 0 auto 8px; }
.r-small { text-align: center; color: #5b5750; margin: 0 auto var(--s2); }
.r-title { text-align: center; font-size: var(--s3); border-top: 2px dashed #1b1917; border-bottom: 2px dashed #1b1917; padding: 8px 0; margin-bottom: var(--s2); }
.r-items { width: 100%; border-collapse: collapse; margin-bottom: var(--s2); }
.r-items td { padding: 4px 0; vertical-align: top; }
.r-items td:last-child { text-align: right; }
.r-total { display: flex; justify-content: space-between; border-top: 2px dashed #1b1917; padding-top: 8px; font-size: var(--s3); max-width: none; }
.r-btn { display: block; text-align: center; margin: var(--s2) 0; }
.r-steps { padding-left: 33px; margin: 0 0 var(--s2); }
.r-steps li { margin-bottom: 8px; }
.r-foot { color: #5b5750; margin: 0; }
.r-news { border-top: 2px dashed #1b1917; padding-top: var(--s2); margin-bottom: var(--s2); }
.r-news-title { font-size: var(--s3); text-align: center; margin-bottom: var(--s2); }
.r-rel { margin-bottom: var(--s2); }
.r-rel-head { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dotted #6b6255; margin: 0 0 6px; max-width: none; }
.r-rel-head span:last-child { color: #5b5750; }
.r-rel ul { margin: 0; padding-left: 22px; }
.r-rel li { margin-bottom: 4px; }
.r-rel li::marker { content: "- "; }
.r-more { display: block; width: 100%; background: none; border: 2px dashed #1b1917; color: #1b1917; padding: 8px; cursor: pointer; }
.r-more:hover { background: #e5e1d4; }

/* ---- Pano notu ---- */
.board { display: grid; place-items: center; }
.note {
  position: relative; width: min(640px, 100%); background: #efe0a0; color: var(--ink);
  padding: 44px 33px 33px; transform: rotate(1.2deg); box-shadow: 0 16px 36px rgba(0,0,0,.7);
}
.note::before { content: ""; position: absolute; top: 12px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--clock); box-shadow: 0 2px 0 #7a1410; }
.note h2 { font-size: var(--s3); margin-bottom: var(--s2); }
.contact { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; gap: var(--s1); }
.contact a, .copy { color: var(--ink); font: inherit; font-size: var(--s2); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.copy-state { color: #6b6255; }

/* ---- Alt bilgi ---- */
.foot { text-align: center; padding: 66px 16px 44px; color: var(--fog); border-top: 2px solid #1a1816; }
.foot p { margin: 0 auto 8px; }
.foot-small { font-size: var(--s1); }

/* ---- Duyarlı ---- */
@media (max-width: 900px) {
  .bar nav { display: none; }
  .bar .btn-small { margin-left: auto; }
  .story, .shift { grid-template-columns: 1fr; }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h2 { font-size: var(--s3); }
}
@media (max-width: 480px) {
  body { font-size: var(--s2); }
  .cta .btn { width: 100%; }
  .sheet, .note { transform: none; }
}

/* ---- Hareket azaltma ---- */
@media (prefers-reduced-motion: reduce) {
  .clock, .rec .dot { animation: none; }
  html { scroll-behavior: auto; }
  .hero-bg { display: none; }
  .hero { background: #000 url("/img/hero_poster.webp") center / cover no-repeat; }
}

/* ---- Geri bildirim defteri ---- */
.board { gap: var(--s4, 44px); }
.fb { display: grid; gap: var(--s1); transform: rotate(-.8deg); background: #f3ecd8; }
.fb label { display: grid; gap: 4px; font-size: var(--s2); }
.fb input, .fb textarea { color: var(--ink); background: #fffaf0; border: 2px solid #8a7d64; padding: 8px 10px; font-size: var(--s2); }
.fb textarea { resize: vertical; line-height: 1.5; }
.fb input:focus, .fb textarea:focus { outline: 3px solid var(--clock); outline-offset: 1px; }
.fb .btn { justify-self: start; }
.fb .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-msg { min-height: 1.4em; margin: 0; color: #a3140f; }
.fb-msg.ok { color: #1c6b2c; }
.fb-small { margin: 0; color: #6b6255; font-size: var(--s2); }
