/*
 * CİCO — mobil oyun arayüzü (dikey, tek el).
 * İlkeler: kontroller başparmak bölgesinde (alt üçte bir), dokunma hedefleri ≥ 44pt ve aralarında ≥ 8pt,
 * güvenli alanlar (çentik, ev çubuğu), basınca küçülen düğmeler, sistem fontu (iOS'ta SF), web kalıntısı yok
 * (seçim, uzun basma menüsü, çift dokunma yakınlaştırması kapalı).
 * Sahne görseli ekrana sığdırılır (tamamı görünür); seçenekler görselin üzerindeki noktalardır.
 */
:root {
  --bg: #040506;
  --ink: #f2f5f7;
  --ink-2: rgba(242, 245, 247, 0.72);
  --ink-3: rgba(242, 245, 247, 0.45);
  --glass: rgba(18, 22, 28, 0.55);
  --glass-hi: rgba(28, 34, 42, 0.72);
  --glass-line: rgba(255, 255, 255, 0.12);
  --sep: rgba(255, 255, 255, 0.08);
  --green: #3d8a6c;
  --green-hi: #62d1a4;
  --amber: #ffb547;
  --rose: #ff5d7a;
  --violet: #8f7bff;
  --sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --sys-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --serif: "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --gut: max(18px, env(safe-area-inset-left, 0px));
  --ease-out: cubic-bezier(.2, .9, .3, 1);
  --spring: cubic-bezier(.2, 1.4, .4, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body {
  color: var(--ink); font: 16px/1.4 var(--sys);
  overflow: hidden; overscroll-behavior: none;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
button, input { font: inherit; color: inherit; touch-action: manipulation; }
button { -webkit-appearance: none; appearance: none; border: 0; background: none; padding: 0; cursor: pointer; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .8em; }
[hidden] { display: none !important; }
.muted { color: var(--ink-3); }

/* ── Uygulama: her cihazda düz tam ekran ─────────────────── */
.device { position: fixed; inset: 0; }
.app { position: absolute; inset: 0; overflow: hidden; background: #07090c; touch-action: manipulation; cursor: default; }

/* ── Sahne ──────────────────────────────────────────────── */
/* Çerçeve görselin oranında (--ar) ve ekrana sığar; seçim noktaları bu çerçevenin yüzdesiyle konumlanır. */
.stage { position: absolute; inset: 0; container-type: size; }
.backdrop {
  position: absolute; inset: -40px; background-size: cover; background-position: center;
  filter: blur(28px) brightness(.5) saturate(1.2); opacity: 0; transition: opacity .6s;
}
.app.has-image .backdrop { opacity: 1; }
.frame {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(100cqw, calc(100cqh * var(--ar, .5625))); aspect-ratio: var(--ar, .5625);
  overflow: hidden;
}
.stage-media { position: absolute; inset: 0; }
.stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; animation: fadein .6s ease both; }
.stage-ambient { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .9s ease; }
.stage-ambient.ready { opacity: 1; }
/* Vuruş görseli: hayal (flashback) tüm kareyi yumuşakça kaplar; polaroid ortada eğik bir fotoğraf */
.beat-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; animation: ov-in .7s ease both; }
.beat-overlay.out { animation: ov-out .45s ease both; }
.beat-overlay img { display: block; width: 100%; height: 100%; object-fit: cover; }
.beat-overlay.flashback img { filter: saturate(.85) brightness(1.06) sepia(.18);
  -webkit-mask-image: radial-gradient(85% 70% at 50% 45%, #000 55%, transparent 100%); mask-image: radial-gradient(85% 70% at 50% 45%, #000 55%, transparent 100%); }
.beat-overlay.flashback::after { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 70% at 50% 45%, transparent 50%, rgba(255,240,215,.35) 100%); }
.beat-overlay.polaroid { inset: auto; left: 50%; top: 40%; width: 62%; padding: 3.5% 3.5% 14%; background: #f4f1ea; border-radius: 3px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55); transform: translate(-50%, -50%) rotate(-5deg); animation: pol-in .8s var(--spring) both; }
.beat-overlay.polaroid img { aspect-ratio: 1; height: auto; animation: develop 2.4s ease both; }
.beat-overlay.polaroid.out { animation: ov-out .45s ease both; }
@keyframes ov-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ov-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes pol-in { from { opacity: 0; transform: translate(-50%, -40%) rotate(4deg) scale(.9); } to { opacity: 1; transform: translate(-50%, -50%) rotate(-5deg); } }
@keyframes develop { from { filter: brightness(2.2) saturate(0) blur(2px); } to { filter: none; } }
/* Son sahneler: görsel kararır, metin öne çıkar */
.app.is-ending .stage-img { filter: brightness(.5) saturate(.85); transition: filter .8s ease; }
.app.is-ending .backdrop { filter: blur(28px) brightness(.25); }
/* Gecenin özeti, özet ekranı ve anma: son görsel arkada iyice kararır, yazı öne çıkar */
.app[data-screen="epilogue"] .stage-img, .app[data-screen="summary"] .stage-img, .app[data-screen="memorial"] .stage-img { filter: brightness(.28) saturate(.7); transition: filter 1s ease; }
.app[data-screen="epilogue"] .backdrop, .app[data-screen="summary"] .backdrop, .app[data-screen="memorial"] .backdrop { filter: blur(28px) brightness(.18); }
.app[data-screen="epilogue"] .stage-ambient, .app[data-screen="summary"] .stage-ambient, .app[data-screen="memorial"] .stage-ambient { opacity: .25; }
.stage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
/* Video yokken yalnızca CSS atmosferi (sahte görsel değil) */
.stage::before {
  content: ""; position: absolute; inset: -10%;
  background:
    radial-gradient(42% 26% at 22% 24%, rgba(255,181,71,.22), transparent 70%),
    radial-gradient(36% 22% at 84% 34%, rgba(255,93,122,.18), transparent 70%),
    radial-gradient(70% 36% at 50% 104%, rgba(61,138,108,.32), transparent 70%),
    linear-gradient(180deg, #0b1016, #040506);
  filter: blur(8px);
  animation: drift 22s ease-in-out infinite alternate;
}
.app.video-on .stage::before, .app.has-image .stage::before { display: none; }
.stage[data-mood="c1_a2_school"]::before { filter: blur(8px) grayscale(.75); animation-duration: 48s; }
.stage[data-mood="c1_a3_tower"]::before, .stage[data-mood="c1_a5_chase"]::before, .stage[data-mood="c1_a6_second_offer"]::before,
.stage[data-mood="c1_b3_boulevard"]::before, .stage[data-mood="c1_b5_printhouse"]::before {
  background: radial-gradient(44% 30% at 74% 62%, rgba(255,93,122,.3), transparent 70%), radial-gradient(30% 20% at 20% 28%, rgba(255,181,71,.12), transparent 70%), linear-gradient(180deg, #0b0d14, #040405);
}
.stage[data-mood="c1_b4_hospital"]::before { background: radial-gradient(60% 30% at 50% 10%, rgba(180,220,255,.12), transparent 70%), linear-gradient(180deg, #0c1116, #06080a); }
.stage[data-mood^="c1_end"]::before { background: radial-gradient(70% 34% at 50% 0%, rgba(255,181,71,.16), transparent 70%), linear-gradient(180deg, #0c1117, #05070a); }
.app[data-screen="title"] .backdrop { filter: blur(16px) brightness(.38) saturate(1.2); }
.stage[data-mood="title"]::before { background: radial-gradient(50% 30% at 50% 36%, rgba(98,209,164,.20), transparent 70%), radial-gradient(40% 24% at 20% 80%, rgba(255,181,71,.14), transparent 70%), linear-gradient(180deg, #0a0f13, #040506); }
.stage[data-mood="intro"]::before, .stage[data-mood="epilogue"]::before, .stage[data-mood="summary"]::before, .stage[data-mood="memorial"]::before { background: #030405; animation: none; }
@keyframes drift { from { transform: scale(1) translate(-1.5%, 0); } to { transform: scale(1.08) translate(1.5%, -2%); } }
.grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255,255,255,.9) .5px, transparent .6px); background-size: 3px 3px; }
.shade { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, transparent 18%, transparent 55%, rgba(0,0,0,.78) 100%); }

/* ── Seçim noktaları (görselin üstünde) ───────────────────── */
/* Nokta: yumuşak cam bir numara. Etiket: ince bir çizgiyle bağlı, tek parça cam kart. */
.frame { z-index: 1; }
.frame-ui { z-index: 3; overflow: visible; pointer-events: none; }
.hotspots { position: absolute; inset: 0; }
.hs { pointer-events: auto; }
.hs {
  --dot: 38px;
  position: absolute; display: flex; align-items: center;
  transform: translate(calc(var(--dot) / -2), -50%);
  animation: hs-in .6s var(--spring) both; animation-delay: calc(var(--i) * 120ms + 150ms);
}
.hs.left { flex-direction: row-reverse; transform: translate(calc(-100% + var(--dot) / 2), -50%); }
.hs.below { flex-direction: column; transform: translate(-50%, calc(var(--dot) / -2)); }
.hs.above { flex-direction: column-reverse; transform: translate(-50%, calc(-100% + var(--dot) / 2)); }
.hs.below .hs-line, .hs.above .hs-line { width: 1px; height: 10px; background: linear-gradient(180deg, rgba(160,240,205,.7), rgba(255,255,255,.25)); }
.hs.below .hs-chip, .hs.above .hs-chip { text-align: center; }
@keyframes hs-in { from { opacity: 0; scale: .75; } to { opacity: 1; scale: 1; } }
.hs-dot { position: relative; flex: none; width: var(--dot); height: var(--dot); display: grid; place-items: center; }
.hs-dot::after { content: ""; position: absolute; inset: -4px; } /* dokunma alanı ≥ 44pt */
.hs-core {
  position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center; font: 600 16px/1 var(--sys-display); font-style: normal; color: #fff;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.28), rgba(98,209,164,.22) 45%, rgba(10,30,24,.55) 100%);
  border: 1px solid rgba(160, 240, 205, .55);
  backdrop-filter: blur(10px) saturate(1.5); -webkit-backdrop-filter: blur(10px) saturate(1.5);
  box-shadow: 0 6px 20px rgba(0,0,0,.35), 0 0 22px rgba(98,209,164,.28), inset 0 1px 0 rgba(255,255,255,.35);
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  transition: transform .18s var(--ease-out), background .2s;
}
.hs-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(160,240,205,.7); animation: ping 2.6s cubic-bezier(.2,.6,.3,1) infinite; animation-delay: calc(var(--i) * 400ms); }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
.hs-line { flex: none; width: 14px; height: 1px; background: linear-gradient(90deg, rgba(160,240,205,.7), rgba(255,255,255,.25)); }
.hs.left .hs-line { background: linear-gradient(270deg, rgba(160,240,205,.7), rgba(255,255,255,.25)); }
.hs-chip {
  display: flex; flex-direction: column; gap: 2px; text-align: left;
  width: max-content; max-width: min(210px, 48vw);
  padding: 8px 12px 9px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(22, 28, 34, .62), rgba(10, 14, 18, .62));
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 8px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
}
.hs.left .hs-chip { text-align: right; }
.hs-chip .main { font: 600 13.5px/1.25 var(--sys); letter-spacing: -.005em; color: var(--ink); text-wrap: balance; }
.hs-chip .sub { font: 500 11px/1.3 var(--sys); color: rgba(242,245,247,.62); text-wrap: balance; }
.hs:active .hs-core { transform: scale(.9); }
.hs.picked .hs-core { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.4), rgba(255,181,71,.55) 50%, rgba(60,36,6,.6) 100%); border-color: rgba(255,214,150,.8); }
.hs.picked .hs-chip { border-color: rgba(255,214,150,.5); }
.hs:focus-visible { outline: none; }
.hs:focus-visible .hs-chip { outline: 2px solid var(--amber); outline-offset: 2px; }
.hs.locked .hs-dot { color: rgba(242,245,247,.55); border-radius: 50%; border: 1px dashed rgba(255,255,255,.35); background: rgba(10,14,18,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hs.locked .hs-chip { background: rgba(10,14,18,.42); border-style: dashed; }
.hs.locked .hs-chip .main { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.hotspots.urgent .hs-core {
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.28), rgba(255,93,122,.25) 45%, rgba(40,8,14,.55) 100%);
  border-color: rgba(255,170,185,.6); box-shadow: 0 6px 20px rgba(0,0,0,.35), 0 0 22px rgba(255,93,122,.3), inset 0 1px 0 rgba(255,255,255,.35);
}
.hotspots.urgent .hs-ring { border-color: rgba(255,170,185,.7); }
.hotspots.urgent .hs-line { background: rgba(255,170,185,.6); }
.coord-marker { position: absolute; z-index: 3; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid var(--amber); box-shadow: 0 0 0 2px rgba(0,0,0,.6); pointer-events: none; }
.coord-marker::after { content: attr(data-label); position: absolute; left: 20px; top: -4px; white-space: nowrap; font: 600 11px ui-monospace, monospace; color: var(--amber); text-shadow: 0 1px 3px #000; }

/* ── HUD ────────────────────────────────────────────────── */
.hud {
  position: absolute; z-index: 6; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(var(--safe-t) + 8px) var(--gut) 0; pointer-events: none;
}
.hud > * { pointer-events: auto; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  font: 600 12px/1 var(--sys); letter-spacing: .04em; color: var(--ink-2);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-hi); box-shadow: 0 0 8px var(--green-hi); }
.round-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink);
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transition: transform .15s var(--ease-out);
}
.round-btn:active { transform: scale(.9); }
.round-btn.warn { color: var(--rose); border-color: var(--rose); }
.scene-id { position: absolute; z-index: 6; top: calc(var(--safe-t) + 44px); left: var(--gut); color: var(--amber); font-size: 10px; pointer-events: none; }

/* Mekân etiketi */
.stamp {
  position: absolute; z-index: 4; left: var(--gut); top: calc(var(--safe-t) + 60px);
  display: flex; align-items: center; gap: 10px; opacity: 0; pointer-events: none;
  font: 600 12px/1 var(--sys); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2);
}
.stamp-line { width: 22px; height: 1.5px; background: var(--amber); }
.stamp.show { animation: stamp 3.2s var(--ease-out) both; }
@keyframes stamp { 0% { opacity: 0; transform: translateX(-8px); } 12%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Bildirimler (karar bedeli, ipucu, zaman aşımı) */
.toasts { position: absolute; z-index: 7; left: 0; right: 0; top: calc(var(--safe-t) + 8px); display: flex; justify-content: center; pointer-events: none; padding: 0 70px; }
.toast {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 9px 14px 9px 10px; border-radius: 999px;
  background: rgba(16, 20, 26, .86); border: 1px solid var(--glass-line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  font: 600 13px/1.25 var(--sys); box-shadow: 0 10px 30px rgba(0,0,0,.4);
  animation: toast 2.6s var(--spring) both;
}
.toast-icon { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--amber); color: #1a1205; }
.toast.clue .toast-icon { background: var(--green-hi); color: #04140d; }
.toast.time .toast-icon { background: var(--rose); color: #1a0509; }
@keyframes toast { 0% { opacity: 0; transform: translateY(-18px) scale(.9); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }

/* Telefon bildirimi kartları */
.notif-layer {
  position: absolute; z-index: 4; left: var(--gut); right: var(--gut); top: calc(var(--safe-t) + 92px);
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
/* Seçim anında bildirimler çekilir; seçim noktalarını örtmez */
.app.choosing .notif-layer { opacity: 0; transform: translateY(-12px); }
.notif {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 22px;
  background: rgba(38, 42, 48, .58); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(26px) saturate(1.6); -webkit-backdrop-filter: blur(26px) saturate(1.6);
  box-shadow: 0 12px 34px rgba(0,0,0,.35); opacity: .55; transform: scale(.96); transform-origin: top center;
  transition: opacity .35s, transform .35s;
}
.notif.latest { opacity: 1; transform: none; animation: drop .5s var(--spring) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-24px) scale(.95); } to { opacity: 1; transform: none; } }
.notif-icon { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font: 800 16px var(--sys-display); background: linear-gradient(135deg, #4a5560, #2a3138); }
.notif-icon.kabile, .notif-icon.tayfun { background: linear-gradient(135deg, var(--green), #1c4a39); }
.notif-icon.rota { background: linear-gradient(135deg, #f2f5f7, #9aa6b1); color: #0a0d10; }
.notif-icon.mom, .notif-icon.yusuf { background: linear-gradient(135deg, #e09a3a, #8a4f12); }
.notif-icon.unknown { background: linear-gradient(135deg, var(--rose), #7a1a2b); }
.notif-body { min-width: 0; flex: 1; }
.notif-top { display: flex; justify-content: space-between; }
.notif-from { font: 600 14px var(--sys); }
.notif-time { color: var(--green-hi); font-size: 12px; }
.notif-text { font: 400 15px/1.32 var(--sys); color: rgba(255,255,255,.92); margin-top: 1px; }

/* Karakter tanıtım slaytı */
.slide {
  position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-end;
  padding: 0 var(--gut) calc(var(--safe-b) + 64px);
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.92) 100%);
  animation: fadein .5s ease both;
}
.slide-inner { width: 100%; }
.slide-rule { width: 0; height: 2px; background: var(--amber); animation: line 1s .15s var(--ease-out) forwards; }
.slide-name { font: 800 clamp(34px, 11vw, 46px)/1.02 var(--sys-display); letter-spacing: -.02em; margin-top: 16px; animation: rise .6s .1s var(--ease-out) both; }
.slide-line { margin: 12px 0 0; font: 400 clamp(18px, 5.2vw, 21px)/1.45 var(--serif); color: var(--ink-2); max-width: 30ch; text-wrap: pretty; animation: rise .7s .3s var(--ease-out) both; }
.slide-tap { margin-top: 28px; font: 600 11px/1 var(--sys); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); animation: breathe 2.4s ease-in-out infinite; }

/* ── Alt bölge: altyazı + seçim kartları (başparmak bölgesi) ─ */
.bottom {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gut) calc(var(--safe-b) + 16px);
  display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  pointer-events: none;
}
.bottom > * { width: min(100%, 520px); align-self: center; }
.caption { min-height: 1px; text-align: center; padding: 0 4px; }
.cap { animation: rise .4s var(--ease-out) both; text-shadow: 0 2px 14px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.95); }
.cap-text { font: 500 clamp(19px, 5.4vw, 23px)/1.36 var(--sys-display); letter-spacing: -.01em; text-wrap: balance; }
.cap.say .cap-text { font-weight: 600; }
.cap.say .cap-text::before { content: "“"; } .cap.say .cap-text::after { content: "”"; }
.speaker { display: block; font: 700 11px/1 var(--sys); letter-spacing: .2em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tap-hint { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.22); transition: background .2s, width .2s; }
.dots i.on { background: var(--green-hi); }
.dots i.on:last-of-type, .dots i.on + i:not(.on) { }
.tap-label { font: 600 11px/1 var(--sys); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }
.notice { align-self: center; font-size: 12px; color: var(--amber); background: var(--glass); border: 1px dashed rgba(255,181,71,.45); border-radius: 10px; padding: 6px 10px; }

.choices:empty { display: none; }
.cta:focus-visible, .row-item:focus-visible, .pill:focus-visible, .round-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.timer { display: flex; align-items: center; gap: 10px; margin: 0 4px 10px; }
.timer-track { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; }
.timer-fill { height: 100%; background: linear-gradient(90deg, var(--rose), var(--amber)); transform-origin: left; border-radius: 4px; }
.timer-num { font: 700 13px/1 var(--sys); font-variant-numeric: tabular-nums; color: var(--amber); min-width: 18px; text-align: right; }
/* ── Tam ekran katmanlar ────────────────────────────────── */
.screen {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column;
  padding: calc(var(--safe-t) + 24px) var(--gut) calc(var(--safe-b) + 16px);
}
.screen { align-items: center; }
.screen > * { width: min(100%, 460px); }
.screen-bottom { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.cta {
  height: 56px; border-radius: 18px; width: 100%;
  background: linear-gradient(180deg, #4aa582, var(--green)); color: #fff;
  font: 700 17px/1 var(--sys); letter-spacing: .02em;
  box-shadow: 0 10px 30px rgba(61,138,108,.35), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .14s var(--ease-out), filter .2s;
}
.cta:active { transform: scale(.97); filter: brightness(.92); }
.cta-again { height: auto; min-height: 56px; padding: 12px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.cta-again .cta-sub { font: 500 13px/1.2 var(--sys); opacity: .82; letter-spacing: 0; }
.pill { height: 36px; padding: 0 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); font: 600 13px var(--sys); color: var(--ink-2); }
.pill:active { transform: scale(.95); }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }

/* Başlık */
.screen.title { justify-content: space-between; }
.title-top { display: flex; justify-content: center; padding-top: 12px; }
.title-mid { text-align: center; }
.logo { margin: 0; font: 900 64px/1 var(--sys-display); letter-spacing: .2em; }
.logo-img { display: block; width: min(92vw, 520px); height: auto; margin: 0 auto; filter: drop-shadow(0 10px 40px rgba(255,140,60,.25)); animation: logo-in 1.2s var(--spring) both, float 6s 1.2s ease-in-out infinite; }
/* Not: filter'ı burada canlandırmayın — iOS Safari blur → drop-shadow geçişinde logoyu bulanık bırakıyor. */
@keyframes logo-in { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes float { 50% { transform: translateY(-6px); } }
.subtitle { margin-top: 4px; font: 600 13px/1 var(--sys); letter-spacing: .22em; text-transform: uppercase; color: var(--amber); }
.title-bottom { display: flex; flex-direction: column; gap: 12px; }
.title-row { display: flex; justify-content: center; gap: 8px; }

/* Bölüm kartı */
.screen.intro { justify-content: center; align-items: center; cursor: pointer; }
.intro { text-align: center; }
.intro-num { font: 700 12px/1 var(--sys); letter-spacing: .3em; text-transform: uppercase; color: var(--amber); animation: rise .8s var(--ease-out) both; }
.intro-title { font: 600 clamp(36px, 11vw, 48px)/1.1 var(--serif); margin-top: 14px; animation: rise 1s .2s var(--ease-out) both; }
.intro-line { width: 0; height: 1.5px; background: var(--green-hi); margin: 22px auto 0; animation: line 1.6s .5s var(--ease-out) forwards; }
@keyframes line { to { width: 64px; } }

/* Oyun sonu metni (seslendirme) */
.screen.epilogue { cursor: pointer; }
/* Gecenin özeti, özet ve anma: arkadaki görselin üstüne koyu bir perde — yazı her görselde okunur */
.screen.epilogue, .screen.summary, .screen.memorial {
  background: radial-gradient(120% 80% at 50% 45%, rgba(3,4,6,.72), rgba(3,4,6,.9));
}
.epi { margin: auto 0; text-align: center; padding: 0 6px; }
.epi-kicker { font: 700 11px/1 var(--sys); letter-spacing: .3em; text-transform: uppercase; color: var(--amber); margin-bottom: 28px; }
.epi-line { margin: 0; min-height: 4.2em; font: 500 clamp(22px, 6.4vw, 28px)/1.4 var(--serif); text-wrap: balance; animation: epi 1.2s var(--ease-out) both; }
@keyframes epi { from { opacity: 0; filter: blur(6px); transform: translateY(6px); } to { opacity: 1; filter: none; transform: none; } }
.epi-progress { display: flex; justify-content: center; gap: 4px; margin-top: 30px; }
.epi-progress i { width: 14px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.18); }
.epi-progress i.on { background: var(--green-hi); }
.screen.epilogue .screen-bottom { align-items: center; min-height: 72px; justify-content: flex-end; }

/* Bölüm sonu özeti */
.screen.summary { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.summary { display: flex; flex-direction: column; }
.kicker { font: 700 11px/1 var(--sys); letter-spacing: .26em; text-transform: uppercase; color: var(--amber); }
.summary h2 { font: 700 clamp(30px, 9vw, 38px)/1.1 var(--sys-display); letter-spacing: -.02em; margin: 10px 0 18px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--glass-hi); border: 1px solid var(--sep); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.stat b { font: 700 22px/1 var(--sys-display); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--ink-3); }
h4 { font: 700 11px/1 var(--sys); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin: 22px 0 10px; }
.decisions { list-style: none; margin: 0; padding: 0; border-radius: 18px; overflow: hidden; background: var(--glass-hi); border: 1px solid var(--sep); }
.decisions li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-bottom: 1px solid var(--sep); counter-increment: d; }
.decisions li:last-child { border-bottom: 0; }
.d-scene { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.d-choice { font: 600 15px/1.3 var(--sys); }
.decisions li.timeout .d-choice { color: var(--rose); }
.summary .flow-wrap { margin-top: 16px; }

/* Anma */
.screen.memorial { justify-content: center; }
.memorial { margin: auto 0; text-align: center; animation: fade 2.4s ease both; }
.memorial .dedication { font: 500 clamp(19px, 5.6vw, 23px)/1.5 var(--serif); margin: 18px 0 0; }
.memorial .road { font: italic 500 16px/1.4 var(--serif); color: var(--green-hi); margin: 26px 0; }
.memorial .support { font-size: 13px; line-height: 1.5; color: var(--ink-3); margin: 0; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ── Duraklat menüsü (oyun içi, tam ekran) ──────────────── */
.pause {
  position: absolute; inset: 0; z-index: 8; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: rgba(4,5,6,.72); backdrop-filter: blur(28px) saturate(1.2); -webkit-backdrop-filter: blur(28px) saturate(1.2);
  animation: fadein .2s ease both;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.pause-inner { padding: calc(var(--safe-t) + 14px) var(--gut) calc(var(--safe-b) + 24px); animation: rise .3s var(--ease-out) both; }
.pause-head { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-bottom: 16px; }
.pause-head h3 { margin: 0; font: 700 28px/1.1 var(--sys-display); letter-spacing: -.02em; }
.back { height: 44px; color: var(--green-hi); font: 600 16px var(--sys); padding-right: 4px; }
.pause-body { display: flex; flex-direction: column; gap: 14px; }
.group { border-radius: 16px; overflow: hidden; background: var(--glass-hi); border: 1px solid var(--sep); }
.row-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left;
  min-height: 52px; padding: 0 16px; border-bottom: 1px solid var(--sep); font: 500 16px var(--sys);
}
.group > .row-item:last-child { border-bottom: 0; }
.row-item.nav:active { background: rgba(255,255,255,.06); }
.row-item .chev { color: var(--ink-3); font-size: 22px; }
.row-item.danger { color: var(--rose); }
.row-item.muted { color: var(--ink-3); }
.row-item.warn { color: var(--rose); }
.badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--green); display: grid; place-items: center; font: 700 12px var(--sys); }
.segmented { display: inline-flex; padding: 2px; border-radius: 10px; background: rgba(255,255,255,.08); }
.segmented button { height: 30px; min-width: 44px; padding: 0 10px; border-radius: 8px; font: 600 13px var(--sys); color: var(--ink-2); }
.segmented button.on { background: rgba(255,255,255,.18); color: var(--ink); }
.switch { -webkit-appearance: none; appearance: none; width: 51px; height: 31px; border-radius: 31px; background: rgba(255,255,255,.16); position: relative; transition: background .2s; flex: none; cursor: pointer; margin: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .25s var(--spring); }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(20px); }
.hint { font-size: 12px; color: var(--ink-3); text-align: center; margin: 4px 0 0; }
.clue { border-radius: 16px; padding: 14px; background: var(--glass-hi); border: 1px solid var(--sep); }
.clue-name { font: 700 15px var(--sys); color: var(--amber); }
.clue p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.empty { color: var(--ink-3); text-align: center; margin: 24px 0; }
.earn { font-size: 13px; color: var(--green-hi); }
.dev { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; margin: 0; }
.dev dt { color: var(--ink-3); } .dev dd { margin: 0; }
.vars { border-collapse: collapse; font-size: 13px; }
.vars td { padding: 3px 12px 3px 0; border-bottom: 1px solid var(--sep); }
.log { font-size: 12px; padding-left: 18px; margin: 0; }
.log li { margin: 3px 0; }

/* ── Akış şeması ────────────────────────────────────────── */
.flow-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; background: rgba(0,0,0,.35); border: 1px solid var(--sep); padding: 8px; user-select: none; }
.flow { display: block; }
.flow .edge { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 1.4; }
.flow .edge.unknown { stroke-dasharray: 3 4; }
.flow .edge.timeout { stroke-dasharray: 6 4; }
.flow .edge.past { stroke: rgba(143,123,255,.55); }
.flow .edge.now { stroke: var(--green-hi); stroke-width: 2.4; }
.flow .node rect { fill: #0f151c; stroke: rgba(255,255,255,.14); }
.flow .node text { fill: var(--ink-3); font-size: 12px; font-family: var(--sys); }
.flow .node text.id { font-size: 8.5px; fill: var(--amber); opacity: .7; font-family: ui-monospace, monospace; }
.flow .node.past rect { stroke: var(--violet); } .flow .node.past text { fill: var(--ink); }
.flow .node.now rect { stroke: var(--green-hi); fill: #10241c; } .flow .node.now text { fill: var(--ink); }
.flow .node.ending rect { stroke-width: 2; stroke: rgba(255,181,71,.55); fill: #1a1408; }
.flow .node.ending.unknown rect { stroke-dasharray: 4 3; }
.flow .node.ending.unknown text { fill: rgba(255,181,71,.7); }
.flow .node.ending.now rect { stroke: var(--amber); fill: #2a1d08; }
.flow .node.current rect { stroke: var(--amber); stroke-width: 2.4; }
.legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.lg { width: 14px; height: 3px; display: inline-block; margin-left: 8px; }
.lg.now { background: var(--green-hi); } .lg.past { background: var(--violet); } .lg.unknown { background: rgba(255,255,255,.2); }
.explored { font-size: 12px; color: var(--ink-3); }

/* ── Onay (iOS uyarısı gibi) ────────────────────────────── */
.modal { position: absolute; inset: 0; z-index: 10; background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 24px; animation: fadein .15s ease both; }
.alert { width: min(290px, 100%); border-radius: 16px; overflow: hidden; background: rgba(40,44,50,.92); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); text-align: center; animation: pop .25s var(--spring) both; }
@keyframes pop { from { opacity: 0; transform: scale(1.1); } to { opacity: 1; transform: none; } }
.alert p { margin: 0; padding: 20px 18px; font: 500 15px/1.4 var(--sys); }
.alert-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--sep); }
.alert-actions button { height: 46px; font: 400 16px var(--sys); color: #4da3ff; }
.alert-actions button + button { border-left: 1px solid var(--sep); }
.alert-actions .destructive { color: var(--rose); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
