/* HelloGhost oyun denemeleri – görünüm (selfie sürümünün renkleri ve yazı tipiyle) */
:root {
  --bg: #0b0a09;
  --fg: #ece4d4;
  --dim: #8f877a;
  --accent: #d8452f;
  --line: #2c2925;
  --mono: "Courier New", Courier, ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: var(--bg); color: var(--fg); }
body {
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
.ekran {
  display: none;
  min-height: 100vh; min-height: 100dvh;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  max-width: 520px; margin: 0 auto; text-align: center;
  padding: calc(28px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom));
}
.ekran.aktif { display: flex; }

.logo { font-family: var(--mono); font-weight: 700; font-size: 34px; letter-spacing: 3px; animation: flicker 4s infinite; }
.kucuk-logo { font-size: 22px; opacity: .8; }
@keyframes flicker { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .35; } 94% { opacity: 1; } 96% { opacity: .5; } 97% { opacity: 1; } }
.oyun-ad { font-family: var(--mono); font-size: 22px; letter-spacing: 8px; color: #f3d9a4; text-shadow: 0 0 18px rgba(255, 200, 120, .45); margin-top: -6px; }
.alt { color: var(--dim); font-size: 14px; margin-top: -12px; letter-spacing: 1px; }
.nasil { list-style: none; text-align: left; width: 100%; font-size: 15px; line-height: 1.45; color: var(--fg); opacity: .9;
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 7px; }
.nasil li { padding-left: 18px; position: relative; }
.nasil li::before { content: ''; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: #f3d9a4; box-shadow: 0 0 8px rgba(255, 200, 120, .8); }
.menu-alt { display: flex; align-items: center; justify-content: space-between; width: 100%; font-family: var(--mono); font-size: 13px; color: var(--dim); }
.enerji-yazi { letter-spacing: 1px; }
.surum { font-size: 11px; color: var(--dim); opacity: .5; }

.dil-sec { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 14px; font-family: var(--mono); font-size: 13px; letter-spacing: 1px; color: var(--dim); opacity: .7; display: flex; align-items: center; gap: 2px; }
.dil-sec span { opacity: .5; }
.dil-sec button { background: none; border: 0; color: inherit; font: inherit; padding: 8px 6px; cursor: pointer; }
.dil-sec button.on { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
#menu { position: relative; }

.btn { display: block; width: 100%; padding: 16px; font-size: 17px; font-weight: 600; text-align: center; color: var(--bg); background: var(--fg);
  border: none; border-radius: 14px; cursor: pointer; user-select: none; text-decoration: none; font-family: inherit; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.reklam-btn { background: #f3d9a4; color: #1a1408; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn-col { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.linkish { background: none; border: none; color: var(--dim); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; padding: 8px 4px; cursor: pointer; font-family: inherit; }
.linkish.kucuk { font-size: 12px; opacity: .6; }
.not { font-size: 13px; color: var(--dim); line-height: 1.4; }

/* Sinyal / konuşma ekranı (3.0'daki gibi: satırlar alt alta, soluk beyaz, daktilo) */
#sinyal { justify-content: flex-start; align-items: stretch; text-align: left; height: 100vh; height: 100dvh; cursor: pointer; }
.sig { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: 3px; color: var(--dim); }
.sig .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; margin-left: 4px; }
.bars i { display: block; width: 5px; background: var(--fg); animation: bar 1.3s infinite; }
.bars i:nth-child(1) { height: 6px; } .bars i:nth-child(2) { height: 10px; animation-delay: .2s; } .bars i:nth-child(3) { height: 14px; animation-delay: .4s; }
@keyframes bar { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
#sinyalText { flex: 1 1 auto; overflow-y: auto; font-family: var(--mono); font-size: 17px; line-height: 1.6; padding: 18px 2px 24px; }
#sinyalText .satir { opacity: .85; margin-bottom: 14px; text-shadow: 0 0 8px rgba(236, 228, 212, .18); min-height: 1.6em; }
#sinyalText .satir.yaz::after { content: ''; display: inline-block; width: .55em; height: 1em; margin-left: .12em; vertical-align: -.12em; background: var(--fg); opacity: .75; animation: blink 1.05s steps(2, start) infinite; }
.dokun { text-align: center; opacity: 0; transition: opacity .4s; }
.dokun.on { opacity: 1; animation: flicker 3s infinite; }

/* Oyun ekranı */
#oyun { max-width: none; padding: 0; position: fixed; inset: 0; background: #000; touch-action: none; }
#oyun.aktif { display: block; }
#sahne { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hud { position: absolute; left: 0; right: 0; top: 0; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--dim); pointer-events: none;
  background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,0)); }
.pil { display: flex; align-items: center; gap: 6px; }
.pil-kap { width: 46px; height: 14px; border: 1.5px solid var(--dim); border-radius: 3px; padding: 1.5px; position: relative; }
.pil-kap::after { content: ''; position: absolute; right: -5px; top: 3px; width: 3px; height: 6px; background: var(--dim); border-radius: 0 2px 2px 0; }
.pil-kap i { display: block; height: 100%; width: 100%; background: #f3d9a4; border-radius: 1px; transition: width .2s; }
.pil-kap i.az { background: var(--accent); animation: blink .7s steps(2, start) infinite; }
.hud-say { min-width: 3.2em; color: var(--fg); }
.slotlar { display: flex; gap: 6px; }
.slotlar canvas { width: 34px; height: 34px; border: 1px solid rgba(143, 135, 122, .35); border-radius: 9px; background: rgba(0,0,0,.35); }
.slotlar canvas.dolu { border-color: rgba(243, 217, 164, .7); box-shadow: 0 0 10px rgba(243, 217, 164, .35); }
.hud-sag { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.ipucu { position: absolute; left: 50%; bottom: calc(18% + env(safe-area-inset-bottom)); transform: translateX(-50%); font-family: var(--mono); font-size: 15px; letter-spacing: 1px;
  color: var(--fg); opacity: 0; transition: opacity .5s; pointer-events: none; text-align: center; width: 90%; text-shadow: 0 0 10px #000; }
.ipucu.on { opacity: .85; animation: flicker 2.5s infinite; }
.mesaj { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) scale(.96); width: 86%; max-width: 420px; font-size: 18px; font-weight: 600; line-height: 1.4;
  text-align: center; color: #ffd9cf; text-shadow: 0 0 14px rgba(216, 69, 47, .9), 0 0 3px #000; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.mesaj.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.mesaj.iyi { color: #f6ecd8; text-shadow: 0 0 14px rgba(243, 217, 164, .7), 0 0 3px #000; font-size: 16px; font-weight: 500; }

/* Sahte bildirim (oyunun kendi bildirimi; telefonun gerçek bildirimlerine dokunulmaz) */
.bildirim { position: absolute; left: 10px; right: 10px; top: calc(8px + env(safe-area-inset-top)); max-width: 480px; margin: 0 auto; display: flex; gap: 11px; align-items: center;
  padding: 11px 13px; border-radius: 18px; background: rgba(38, 36, 34, .94); box-shadow: 0 8px 30px rgba(0,0,0,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transform: translateY(-140%); transition: transform .45s cubic-bezier(.2, .9, .3, 1.2); pointer-events: none; z-index: 5; text-align: left; }
.bildirim.on { transform: translateY(0); }
.b-ikon { flex: 0 0 38px; height: 38px; border-radius: 10px; background: #4a4642; color: #d8d0c2; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; }
.b-govde { flex: 1; min-width: 0; }
.b-ust { display: flex; justify-content: space-between; font-size: 13px; color: #f2ede4; }
.b-ust span { color: #a39c90; font-size: 12px; }
.b-metin { font-size: 15px; color: #f2ede4; margin-top: 2px; }

/* Kurtarıldı kartı */
.kart { width: 100%; border: 1px solid var(--line); border-radius: 18px; padding: 30px 20px 24px; position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: radial-gradient(ellipse at 50% 0%, rgba(243, 217, 164, .10), rgba(0,0,0,0) 70%); }
.damga { font-family: var(--mono); font-size: 13px; letter-spacing: 5px; color: #f3d9a4; border: 1.5px solid rgba(243, 217, 164, .6); padding: 5px 12px; border-radius: 6px; transform: rotate(-3deg); }
.nadir { display: none; font-family: var(--mono); font-size: 12px; letter-spacing: 3px; color: #1a1408; background: linear-gradient(90deg, #f3d9a4, #fff3d6, #f3d9a4); padding: 4px 10px; border-radius: 999px; box-shadow: 0 0 16px rgba(243, 217, 164, .6); }
.nadir.on { display: inline-block; }
.kart h2 { font-size: 30px; font-weight: 700; letter-spacing: .5px; margin-top: 6px; }
.meta { color: var(--dim); font-size: 15px; }
.odul { font-family: var(--mono); font-size: 15px; color: var(--fg); line-height: 1.8; margin-top: 8px; }
.odul .vurgu { color: #f3d9a4; }

/* Ruh kaçtı */
.kacti-baslik { font-family: var(--mono); font-size: 26px; letter-spacing: 4px; color: var(--accent); animation: kayip 1.8s infinite; }
@keyframes kayip { 0%, 100% { opacity: .95; } 20% { opacity: .3; } 24% { opacity: .9; } 50% { opacity: .45; } 54% { opacity: 1; } 80% { opacity: .25; } }
.neden { font-size: 16px; line-height: 1.5; color: var(--fg); opacity: .9; }
.unlu { font-family: var(--mono); font-size: 17px; line-height: 1.5; color: #f3d9a4; font-style: italic; text-shadow: 0 0 14px rgba(243, 217, 164, .45); padding: 6px 4px 8px; }

/* Sahte reklam */
#reklam { position: relative; }
.reklam-etiket { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: #1a1408; background: #f3d9a4; padding: 3px 8px; border-radius: 4px; }
.reklam-kutu { width: 100%; aspect-ratio: 9 / 12; max-height: 58vh; border: 1px dashed #5a544b; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 22px; color: var(--dim); font-size: 15px; line-height: 1.5; }
.reklam-sayac { font-family: var(--mono); font-size: 54px; color: var(--fg); }

/* Deneme bitti */
.puanlar { display: flex; gap: 10px; }
.puanlar button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fg); font-size: 18px; font-family: var(--mono); cursor: pointer; }
.puanlar button.on { background: #f3d9a4; color: #1a1408; border-color: #f3d9a4; }

/* Defter */
.overlay { display: none; position: fixed; inset: 0; z-index: 10; overflow-y: auto; background: #050506; padding: calc(28px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom)); }
.overlay.on { display: block; }
.overlay-ic { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; text-align: center; }
.overlay h2 { font-size: 20px; font-family: var(--mono); letter-spacing: 2px; }
.defter-liste { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.defter-liste li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.defter-liste li b { display: block; font-size: 17px; }
.defter-liste li span { color: var(--dim); font-size: 13px; }
.defter-liste li.nadir-li { border-color: rgba(243, 217, 164, .6); box-shadow: 0 0 12px rgba(243, 217, 164, .15); }
.defter-liste li.bos { color: var(--dim); text-align: center; border-style: dashed; }
