* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #050505;
  color: #f1f1f1;
  font: 14px/1.35 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none; /* basılı tutunca menü açılmasın */
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none; /* aşağı çekince sayfa yenilenmesin */
}


svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Telefon çerçevesi: masaüstünde ortada dikey ekran */
#phone {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: min(94vh, 900px);
  aspect-ratio: 9 / 19;
  max-width: 100vw;
  background: #000;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #1c1c1c, 0 30px 90px rgba(0, 0, 0, .9);
  display: flex;
  flex-direction: column;
}
#phone.shake { animation: shake .45s linear; }
@keyframes shake {
  0%, 100% { transform: translate(-50%, -50%); }
  20% { transform: translate(calc(-50% - 9px), calc(-50% + 5px)); }
  40% { transform: translate(calc(-50% + 8px), calc(-50% - 6px)); }
  60% { transform: translate(calc(-50% - 6px), calc(-50% - 3px)); }
  80% { transform: translate(calc(-50% + 4px), calc(-50% + 4px)); }
}

/* Durum çubuğu ve üst bar görüntünün üstüne biner (görüntü tam ekran) */
#statusbar {
  position: absolute;
  top: env(safe-area-inset-top, 0);
  left: 0;
  right: 0;
  z-index: 9;
  height: 32px;
  display: flex;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  font-weight: 600;
  font-size: 14px;
}
#battery {
  width: 26px;
  height: 12px;
  border: 1.5px solid #ddd;
  border-radius: 3px;
  padding: 1px;
  position: relative;
}
#battery::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 3px;
  width: 2px;
  height: 4px;
  background: #ddd;
  border-radius: 0 1px 1px 0;
}
#battery-fill { display: block; height: 100%; width: 100%; background: #ddd; border-radius: 1px; }
.status-right { display: flex; align-items: center; gap: 5px; }
.status-icon { width: 15px; height: 15px; }
#battery-text { font-size: 12px; }
.status-left { display: flex; align-items: center; gap: 7px; }
/* Android'deki kamera kullanım göstergesi */
#privacy-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #2fd158; box-shadow: 0 0 6px #2fd158; cursor: pointer; }
#blackout { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: #000; }
#blackout span { opacity: 0; font-size: 30px; letter-spacing: .3em; font-weight: 600; }
#blackout.boot span { animation: message-in .6s ease-out forwards; }
#phone.frozen #screen { filter: grayscale(1) contrast(1.3); }
#phone.frozen #screen::before { content: ''; position: absolute; inset: 0; z-index: 25; }
#battery.low #battery-fill { background: #fe2c55; }

#topbar {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 32px);
  left: 0;
  right: 0;
  z-index: 3;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: linear-gradient(rgba(0, 0, 0, .45), transparent);
}
#topbar::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 40px; background: rgba(0, 0, 0, .45); }
.top-icon { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; color: #fff; padding: 0; cursor: pointer; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.top-icon svg { width: 25px; height: 25px; }
.live-tag { position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); padding: 0 3px; border-radius: 3px; background: #fe2c55; font-size: 7px; font-weight: 800; letter-spacing: .3px; line-height: 10px; }
.feed-tabs { display: flex; gap: 16px; }
.feed-tabs button { position: relative; border: 0; background: none; padding: 6px 0; color: rgba(255, 255, 255, .62); font: inherit; font-size: 16px; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); cursor: pointer; }
.feed-tabs button.active { color: #fff; }
.feed-tabs button.active::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 26px; height: 3px; margin-left: -13px; border-radius: 2px; background: #fff; }

#screen {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #000;
  touch-action: none;
  cursor: grab;
}
#screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%);
}
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#feed { position: absolute; inset: 0; }

/* Alt menü */
#nav {
  height: 52px;
  flex: none;
  display: flex;
  border-top: 1px solid #161616;
  background: #000;
}
#nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  background: none;
  color: #777;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
#nav button.active { color: #f1f1f1; }
#nav button { white-space: nowrap; min-width: 0; }
#nav button > span[data-i18n] { max-width: 100%; overflow: hidden; text-overflow: ellipsis; } /* uzun dillerde yana taşmasın */
.create-button { display: grid; place-items: center; width: 44px; height: 30px; border-radius: 9px; background: #fff; color: #000; font-size: 24px; font-weight: 500; line-height: 1; box-shadow: -3px 0 0 #6b6b6b, 3px 0 0 #3a3a3a; }
#nav svg { width: 22px; height: 22px; }
.icon-wrap { position: relative; display: block; height: 22px; }
.badge {
  position: absolute;
  top: -4px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #fe2c55;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
}

/* Gelen kutusu ve profil ekranı: akışın üstünü kaplar, akış arkada sürer */
.panel {
  position: absolute;
  inset: 0;
  z-index: 5;
  padding-top: 32px; /* durum çubuğu üstte görünür kalsın */
  overflow-y: auto;
  background: #050505;
  cursor: default;
}
.panel-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #050505;
  border-bottom: 1px solid #181818;
  font-size: 15px;
  z-index: 1; /* animasyonlu mesaj balonları başlığın üstüne çıkmasın */
}
.back-button { border: 0; background: none; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.panel-empty { color: #777; text-align: center; margin-top: 40px; }
.thread {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #121212;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.thread:hover { background: #0e0e0e; }
.thread .chat-avatar { width: 42px; height: 42px; }
.thread-text { flex: 1; min-width: 0; }
.thread-text b { display: block; }
.thread-text small { display: block; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread time { color: #666; font-size: 11px; }
.thread.waiting .thread-text small { color: #f1f1f1; font-weight: 600; }
.thread.waiting time::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: #fe2c55; }
.msg.typing { color: #888; font-style: italic; }
.reply-options {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px 14px;
  background: #050505;
  border-top: 1px solid #181818;
  z-index: 1;
}
.reply-options button {
  border: 1px solid #3a3a3a;
  border-radius: 18px;
  padding: 9px 14px;
  background: #161616;
  color: #f1f1f1;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.reply-options button:active { background: #fe2c55; border-color: #fe2c55; }
.profile { display: flex; flex-direction: column; align-items: center; padding: 24px 14px; gap: 4px; }
.profile small { color: #888; }
.profile-avatar {
  width: 84px;
  height: 84px;
  margin-bottom: 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2b2f36;
  font-size: 28px;
  font-weight: 700;
}
.profile-avatar.secret { font: italic 600 22px Georgia, serif; color: #b9c79a; background: radial-gradient(circle at 40% 35%, #3f5a2c, #142012 75%); }
.profile-name { font-size: 17px; }
.profile-stats { display: flex; gap: 26px; margin: 14px 0 6px; font-size: 12px; color: #999; }
.profile-stats span { display: flex; flex-direction: column; align-items: center; }
.profile-stats b { color: #f1f1f1; font-size: 16px; }
.profile-bio { margin: 6px 0 0; }
.profile-note { margin: 4px 0 0; color: #888; font-size: 12px; }
.profile-grid { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 16px; }
.tile { aspect-ratio: 3 / 4; background: #111 center / cover no-repeat; }
.tile.dark { display: grid; place-items: center; color: #444; font-size: 11px; background: #0a0a0a; }

/* Üst bar düğmeleri */
button.avatar { border: 0; padding: 0; cursor: pointer; }
.user-name { border: 0; background: none; padding: 0; color: inherit; font: inherit; font-weight: 700; text-shadow: inherit; cursor: pointer; }
.action.saved svg { fill: #f5c518; }

/* Arama */
.search-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #050505; border-bottom: 1px solid #181818; }
.search-input { flex: 1; min-width: 0; height: 36px; border: 1.5px solid #e6e6e6; border-radius: 10px; background: #111; color: #f1f1f1; padding: 0 10px; font: inherit; font-size: 16px; }
.search-go { border: 0; background: none; color: #fe2c55; font: inherit; font-weight: 700; cursor: pointer; }
.section-title { margin: 14px 14px 6px; color: #888; font-size: 12px; font-weight: 600; }
.recent { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.recent svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #777; stroke-width: 2; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 0 14px 14px; }
.video-tile { position: relative; aspect-ratio: 3 / 4; display: flex; align-items: flex-end; padding: 8px; border: 0; border-radius: 6px; overflow: hidden; background: #111 center / cover no-repeat; color: #fff; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.video-tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0, 0, 0, .85)); }
.video-tile span { position: relative; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Hesap profili düğmeleri */
.profile-buttons { display: flex; gap: 8px; margin: 8px 0 4px; }
.profile-buttons button { border: 0; border-radius: 6px; padding: 9px 22px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.follow { background: #fe2c55; color: #fff; }
.follow.on, .secondary-button { background: #262626; color: #f1f1f1; }

/* Gönderi ayrıntıları: takip +, plak, müzik, etiket */
.avatar-wrap { position: relative; margin-bottom: 6px; }
.follow-plus { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fe2c55; color: #fff; font: 700 15px/20px system-ui, sans-serif; padding: 0; cursor: pointer; transition: background .2s; }
.follow-plus.done { background: #fff; color: #fe2c55; font-size: 12px; }
.disc { width: 42px; height: 42px; border: 8px solid #2a2a2a; border-radius: 50%; padding: 0; cursor: pointer; background: #333 url(assets/stare.jpg) center / cover; box-shadow: 0 0 0 1px #444; animation: spin 5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.music { display: flex; align-items: center; gap: 6px; max-width: 70%; margin-top: 5px; border: 0; background: none; color: inherit; padding: 0; font: inherit; font-size: 13px; font-weight: 600; text-shadow: inherit; cursor: pointer; }
.music-track { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; min-width: 0; text-align: left; }
.tag { border: 0; background: none; padding: 0; color: inherit; font: inherit; font-weight: 700; text-shadow: inherit; cursor: pointer; }
.sound-cover { width: 96px; height: 96px; border-radius: 10px; background: radial-gradient(circle, #555 0 6px, #2a2a2a 7px 46%, #1d1d1d 47%); }

/* Seçenekler, bildir */
.menu-row { width: 100%; padding: 15px 18px; border: 0; border-bottom: 1px solid #1e1e1e; background: none; color: #f1f1f1; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.menu-row.danger { color: #fe2c55; }

/* Pil uyarısı */
.panel.dialog { display: grid; place-items: center; background: rgba(0, 0, 0, .55); }
.dialog-body { width: 78%; padding: 18px 16px 12px; border-radius: 14px; background: #1c1c1e; text-align: center; }
.dialog-body p { margin: 6px 0 14px; color: #bbb; font-size: 14px; }
.dialog-buttons { display: flex; gap: 8px; }
.dialog-buttons button { flex: 1; padding: 10px; border: 0; border-radius: 8px; background: #2c2c2e; color: #f1f1f1; font: inherit; font-size: 14px; cursor: pointer; }
.dialog-buttons button[data-low-power] { color: #f5c518; }
#phone.low-power #battery-fill { background: #f5c518; }

/* Yorum beğenisi */
.comment-text { flex: 1; min-width: 0; }
.comment-like { display: flex; flex-direction: column; align-items: center; gap: 1px; border: 0; background: none; color: #888; font: inherit; font-size: 11px; cursor: pointer; padding: 2px 0 0; }
.comment-like svg { width: 16px; height: 16px; }
.comment-like.on { color: #fe2c55; }
.comment-like.on svg { fill: #fe2c55; }

/* Etkinlik ve konuşma başlığı */
.activity-icon { background: #fe2c55; color: #fff; }
.count-pill { min-width: 20px; padding: 1px 6px; border-radius: 10px; background: #fe2c55; color: #fff; font-size: 11px; font-weight: 700; text-align: center; }
.activity-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #121212; }
.activity-row .chat-avatar { width: 36px; height: 36px; }
.activity-row p { flex: 1; margin: 0; font-size: 14px; }
.activity-row time { color: #666; font-size: 11px; }
.thread-title { display: flex; flex-direction: column; line-height: 1.2; }
.thread-title small { color: #888; font-size: 11px; font-weight: 400; }
.seen { align-self: flex-end; color: #777; font-size: 11px; margin-top: -2px; }

/* Hesap satırları (Takip edilenler, Arkadaşlar) */
.account-row { cursor: default; }
.row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; color: inherit; font: inherit; text-align: left; padding: 0; cursor: pointer; }
.row-button { flex: none; border: 0; border-radius: 6px; padding: 7px 14px; background: #262626; color: #f1f1f1; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.row-button.primary { background: #fe2c55; color: #fff; }

/* CANLI listesi */
.live-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.live-thumb { position: relative; width: 64px; height: 86px; flex: none; border-radius: 8px; background: #111 center / cover; box-shadow: 0 0 0 2px #fe2c55; }
.live-thumb b { position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); padding: 0 5px; border-radius: 3px; background: #fe2c55; font-size: 9px; }

/* Kamera (+) */
.camera { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, #121212, #000 70%); }
.camera-feed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.camera-status { position: absolute; left: 24px; right: 24px; top: 45%; margin: 0; text-align: center; color: #bbb; font-size: 14px; }
.camera-top, .camera-side, .camera-bottom { z-index: 1; }
.camera-top { position: absolute; top: 40px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; }
.camera-sound { padding: 6px 12px; border-radius: 16px; background: rgba(255, 255, 255, .12); font-size: 13px; font-weight: 600; }
.camera-side { position: absolute; top: 90px; right: 12px; display: flex; flex-direction: column; gap: 22px; font-size: 11px; color: #ddd; text-align: center; }
.camera-bottom { position: absolute; left: 0; right: 0; bottom: 30px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.camera-modes { display: flex; gap: 18px; font-size: 13px; color: #aaa; }
.camera-modes b { color: #fff; }
.record-button { width: 74px; height: 74px; border-radius: 50%; border: 5px solid rgba(255, 255, 255, .85); background: #fe2c55; background-clip: content-box; padding: 4px; cursor: pointer; }
.record-button.recording { animation: live-pulse .8s ease-in-out infinite; border-radius: 30%; }

/* Konuşma ekranı: başlıkta avatar ve arama düğmeleri, altta yazma çubuğu */
.dm-head .chat-avatar { width: 32px; height: 32px; }
.head-actions { margin-left: auto; display: flex; gap: 6px; }
.head-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: none; color: #f1f1f1; padding: 0; cursor: pointer; }
.head-icon svg { width: 22px; height: 22px; }
.dm-body { min-height: calc(100% - 160px); justify-content: flex-end; }
.dm-body .msg { border-radius: 20px; padding: 8px 13px; }
.dm-body .msg.me { background: linear-gradient(135deg, #8a3ffc, #3d7bfd); }
.dm-body .msg.them { background: #262626; }
.dm-bottom { position: sticky; bottom: 0; z-index: 1; background: #050505; }
.dm-bottom .reply-options { position: static; border-top: 1px solid #181818; padding-bottom: 6px; }
.dm-composer { display: flex; align-items: center; gap: 8px; margin: 6px 10px 10px; padding: 5px 6px 5px 5px; border-radius: 24px; background: #1c1c1c; }
.composer-camera { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #3d7bfd; color: #fff; }
.composer-camera svg { width: 19px; height: 19px; }
.dm-composer input { flex: 1; min-width: 0; height: 34px; border: 0; background: none; color: #f1f1f1; font: inherit; font-size: 16px; outline: none; }
.dm-composer input:disabled { opacity: .6; }
.dm-composer button { border: 0; background: none; color: #3d7bfd; font: inherit; font-weight: 700; padding: 0 8px; cursor: pointer; }

/* İki seçenekli an: sahnenin üstünde soru kartı; seçince kart kaybolur, alt yazı akar */
.post.moment { overflow: hidden; }
.moment-card { position: absolute; left: 16px; right: 16px; bottom: 28px; z-index: 3; padding: 16px; border-radius: 16px; background: rgba(8, 8, 8, .82); border: 1px solid #2a2a2a; transition: opacity .4s, transform .4s; }
.moment-card.chosen { opacity: 0; transform: translateY(20px); pointer-events: none; }
.moment-card.refuse { animation: refuse .3s; }
.moment-question { margin: 0 0 12px; font-size: 18px; font-weight: 700; }
.moment-options { display: flex; gap: 10px; }
.moment-options button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 10px; border: 1px solid #3a3a3a; border-radius: 12px; background: #1a1a1a; color: #f1f1f1; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.moment-options button:first-child { background: #fe2c55; border-color: #fe2c55; }
.moment-options .key { opacity: .55; font-size: 11px; }
.moment-lines { position: absolute; left: 20px; right: 20px; bottom: 110px; /* kapının altı ve üstündeki aralıklar görünür kalsın */ z-index: 3; display: flex; flex-direction: column; gap: 6px; text-align: center; text-shadow: 0 1px 4px #000; pointer-events: none; }
.moment-lines p { margin: 0; color: rgba(255, 255, 255, .55); font-size: 15px; font-weight: 600; }
.moment-lines p.current { color: #fff; font-size: 18px; animation: message-in .3s ease-out both; }
/* Kapı deliğinden bakış: siyah ekranda yuvarlak, balık gözü bir görüntü */
.peephole-view { position: absolute; inset: 0; z-index: 2; background: #000; display: grid; place-items: center; }
.peephole-face { width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #3a4436 0%, #1a2018 45%, #050605 72%); box-shadow: inset 0 0 40px 30px #000; transform: scale(1); }
.peephole-view.face .peephole-face { background: #000 url(assets/grin.jpg) 72% 62% / 150% no-repeat; box-shadow: inset 0 0 26px 10px #000; animation: peephole-lunge .5s ease-out forwards; filter: brightness(1.45) contrast(1.25) saturate(.55); }
@keyframes peephole-lunge { from { transform: scale(.85); } to { transform: scale(1.18); } }

/* Rüya ve sabah arası */
.post.interlude { display: grid; place-items: center; background: #000; }
.post.interlude.morning { background: linear-gradient(#ffe7b8, #f6c98a 55%, #e9a76b); color: #3a2614; }
.post.interlude.dream { background: radial-gradient(circle, #1a1608, #000 70%); }
.post.interlude.glitch { background: #000; animation: glitch-shift .18s steps(2) infinite; }
@keyframes glitch-shift { 50% { transform: translateX(3px); filter: hue-rotate(40deg); } }
.interlude-lines { display: flex; flex-direction: column; gap: 10px; text-align: center; padding: 0 30px; }
.interlude-lines p { margin: 0; font-size: 20px; font-weight: 700; opacity: 0; animation: message-in .5s ease-out forwards; }
.interlude-lines p:first-child { font-size: 15px; letter-spacing: .1em; opacity: .7; }
.post.game { background: #050403; }
.game-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.game-hint { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; color: #777; font-size: 12px; pointer-events: none; }

/* Dil seçici (başlangıç ekranı) */
#language-select { margin-top: 6px; padding: 7px 10px; border: 1px solid #333; border-radius: 8px; background: #111; color: #ddd; font: inherit; font-size: 14px; }

/* Video gönderileri */
.post-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; z-index: 0; }
.post-video.slow { filter: contrast(1.35) saturate(.6) sepia(.25) hue-rotate(-20deg); }

/* Canlı yayın */
.live-badge { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.live-badge b { padding: 2px 7px; border-radius: 4px; background: #fe2c55; letter-spacing: .5px; animation: live-pulse 1.4s ease-in-out infinite; }
.live-badge span { padding: 2px 7px; border-radius: 4px; background: rgba(0, 0, 0, .5); }
@keyframes live-pulse { 50% { opacity: .55; } }
#flash.inverted { filter: invert(1) contrast(1.4); }

/* Alt sayfa: yorumlar, paylaş */
.panel.sheet { display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: rgba(0, 0, 0, .35); }
.sheet-body { height: 68%; display: flex; flex-direction: column; background: #121212; border-radius: 14px 14px 0 0; animation: sheet-up .22s ease-out; }
.sheet-body.short { height: auto; }
@keyframes sheet-up { from { transform: translateY(100%); } }
.sheet-head { position: relative; display: flex; justify-content: center; align-items: center; padding: 12px; font-size: 14px; border-bottom: 1px solid #1e1e1e; }
.sheet-head .back-button { position: absolute; right: 10px; }
.comment-list { flex: 1; overflow-y: auto; padding: 6px 14px; }
.comment { display: flex; gap: 10px; padding: 8px 0; }
.comment .chat-avatar { width: 32px; height: 32px; flex: none; }
.comment small { color: #888; font-size: 12px; }
.comment p { margin: 2px 0 0; font-size: 14px; }
.comment-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #1e1e1e; }
.comment-form input { flex: 1; min-width: 0; height: 38px; border: 0; border-radius: 19px; background: #232323; color: #f1f1f1; padding: 0 14px; font: inherit; font-size: 16px; }
.comment-form button { border: 0; background: none; color: #fe2c55; font: inherit; font-weight: 700; cursor: pointer; }
.share-row { display: flex; gap: 18px; padding: 16px 16px 22px; overflow-x: auto; }
.share-target { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
.share-target .chat-avatar { width: 52px; height: 52px; font-size: 18px; }

/* io komutu: tam olarak bu jest yapılmalı */
.command {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  z-index: 3;
  min-width: 200px;
  padding: 14px 20px 12px;
  border-radius: 14px;
  background: rgba(8, 2, 3, .88);
  border: 1px solid #5a1020;
  text-align: center;
}
.command small { display: block; color: #fe2c55; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.command b { display: block; margin: 4px 0 10px; font-size: 22px; }
.command .timer { margin-top: 0; }
.command.done { border-color: #f1f1f1; opacity: .6; }

/* Dokununca duraklatma ve geri dönülemeyen akış */
.paused-icon {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  z-index: 2;
  fill: rgba(255, 255, 255, .55);
  stroke: none;
  pointer-events: none;
}
.post.bounce { animation: bounce .35s ease-out; }
@keyframes bounce { 40% { margin-top: 34px; } }
.meta .views { display: block; margin-top: 4px; color: #9a9a9a; font-size: 12px; font-weight: 600; }

/* Gönderi katmanı */
.post { position: absolute; inset: 0; will-change: transform; }
.post .actions {
  position: absolute;
  right: 8px;
  bottom: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 2;
}
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: italic 600 13px Georgia, serif;
  color: #b9c79a;
  background: radial-gradient(circle at 40% 35%, #3f5a2c, #142012 75%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5);
}
.avatar.io { background: #000; color: #fe2c55; font-style: normal; box-shadow: 0 0 0 1px #333; }
.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.action svg { width: 32px; height: 32px; fill: #fff; stroke: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.action.liked svg { fill: #fe2c55; }
.action.liked svg { animation: pop .3s ease-out; }
@keyframes pop { 50% { transform: scale(1.3); } }

.post .meta {
  position: absolute;
  left: 12px;
  right: 70px;
  bottom: 12px;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
}
.meta .user { font-size: 15px; }
.meta .user b { font-weight: 700; }
.meta .date { color: #9a9a9a; font-weight: 600; }
.meta .caption { margin-top: 3px; font-weight: 600; }
.meta .ai-label {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(60, 60, 60, .7);
  border-radius: 4px;
}

.post .bubbles {
  /* Açıklamanın hemen üstünde akar; açıklama uzayınca yukarı kayar */
  margin: 0 0 10px -2px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  z-index: 2;
}
.bubble {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 230px;
  padding: 5px 14px 5px 5px;
  border-radius: 24px;
  background: rgba(50, 50, 50, .6);
  font-weight: 700;
  font-size: 13px;
}
.bubble small { display: block; font-size: 10px; color: #bbb; font-weight: 600; }
.bubble-avatar {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #3a3a3a;
  font-size: 12px;
  text-transform: uppercase;
}

.post .progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, .15);
  z-index: 2;
}
.progress-fill { height: 100%; width: 0; background: rgba(255, 255, 255, .8); }

.post.rules {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 34px;
  background: #050505;
  gap: 14px;
}
.rules h3 { margin: 0 0 6px; font-size: 26px; letter-spacing: .25em; font-weight: 600; }
.rules ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-weight: 600; }
.rules .goal { color: #9a9a9a; }
.rules .next { margin-top: 24px; color: #9a9a9a; font-size: 13px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

/* Sohbet gönderisi: bir mesajlaşmanın ekran görüntüsü */
.post.chat-post { background: radial-gradient(ellipse at 50% 30%, #121416, #050505 70%); }
.chat {
  position: absolute;
  left: 14px;
  right: 70px;
  top: 92px; /* üst barın (CANLI · sekmeler) altından başlar */
  border-radius: 14px;
  background: #0d0d0d;
  border: 1px solid #222;
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #1d1d1d;
}
.chat-head b { display: block; font-size: 14px; }
.chat-head small { color: #777; font-size: 11px; }
.chat-avatar {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2b2f36;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}
.chat-avatar.io { background: #000; color: #fe2c55; box-shadow: 0 0 0 1px #333; }
.chat-body { display: flex; flex-direction: column; gap: 6px; padding: 12px; }
.msg {
  max-width: 80%;
  padding: 7px 11px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.msg time { display: block; margin-top: 2px; font-size: 10px; color: rgba(255, 255, 255, .45); }
.msg.them { align-self: flex-start; background: #262626; border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: #3d5afe; border-bottom-right-radius: 4px; }
.msg.io { align-self: flex-start; background: #1a0508; color: #fe2c55; border: 1px solid #5a1020; border-bottom-left-radius: 4px; }
.msg.system { align-self: center; max-width: 100%; padding: 2px 0; background: none; color: #777; font-size: 11px; text-align: center; }

/* Uzun sohbetlerde en son mesaj hep görünsün; eskiler yukarı kayar */
.chat { max-height: calc(100% - 315px); display: flex; flex-direction: column; }
.chat-post .bubbles .bubble:nth-child(n + 2) { display: none; } /* sohbet gönderisinde tek yorum: sohbet kutusuna yer kalsın */
.chat .chat-body { flex: 1; min-height: 0; overflow: hidden; justify-content: flex-end; }
.msg.appear { animation: message-in .22s ease-out both; }
.bubble.appear { animation: message-in .22s ease-out both; }
@keyframes message-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.msg.deleted { font-style: italic; color: #8a8a8a; background: transparent; border: 1px solid #333; }
.msg.voice { display: flex; align-items: center; gap: 8px; min-width: 170px; }
.msg.voice time { margin-left: auto; }
.voice-play svg { width: 16px; height: 16px; fill: currentColor; stroke: none; display: block; }
.voice-wave { display: flex; align-items: center; gap: 2px; height: 20px; flex: 1; }
.voice-wave span { width: 3px; border-radius: 2px; background: currentColor; opacity: .7; }
.voice-length { font-size: 11px; opacity: .8; }

/* Kısa dizi bölüm kartı */
.post.episode { overflow: hidden; background: #000; }
.episode-photo {
  position: absolute;
  inset: -6%;
  background: center / cover no-repeat;
  filter: grayscale(.6) contrast(1.3) brightness(.38);
  animation: episode-zoom 6s ease-out forwards;
}
.post.episode::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(120, 0, 10, .25), rgba(0, 0, 0, .2) 40%, rgba(0, 0, 0, .85));
}
@keyframes episode-zoom { to { transform: scale(1.12); } }
.episode-card {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 70px;
  z-index: 1;
}
.episode-label { color: #fe2c55; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.episode-card h2 { margin: 6px 0 10px; font-size: 32px; line-height: 1.05; font-weight: 800; animation: title-hit .5s ease-out both; }
@keyframes title-hit { from { transform: scale(1.25); opacity: 0; letter-spacing: .1em; } }
.episode-card p { margin: 0; font-size: 16px; font-weight: 600; color: #e6e6e6; line-height: 1.4; }
.episode-next { display: block; margin-top: 22px; color: #9a9a9a; font-size: 13px; animation: nudge 1.6s ease-in-out infinite; }

/* Kilitli bölüm */
.question-card.locked { border-color: #5a1020; }
.lock-head { display: flex; align-items: center; gap: 8px; color: #fe2c55; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.lock-head svg { width: 18px; height: 18px; }
.lock-sub { margin: 4px 0 14px; color: #c8c8c8; font-size: 14px; }

/* Gelen arama ekranı */
.post.call-post { background: radial-gradient(ellipse at 50% 20%, #1d2530, #050505 70%); }
.call {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 24px 36px;
}
.call.refuse { animation: refuse .3s; }
.call-top { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.call-avatar {
  width: 92px;
  height: 92px;
  margin-bottom: 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2b2f36;
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  animation: ringing 1.5s ease-in-out infinite;
}
@keyframes ringing { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .25); } 50% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); } }
.call.in-call .call-avatar, .call.ended .call-avatar { animation: none; }
.call-top b { font-size: 24px; }
.call-status { color: #9a9a9a; font-size: 14px; }
.call-lines { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: center; gap: 8px; text-align: center; }
.call-lines p { margin: 0; color: #777; font-size: 15px; font-weight: 600; }
.call-lines p.current { color: #f1f1f1; font-size: 19px; animation: message-in .3s ease-out both; }
.call-buttons { display: flex; justify-content: space-between; width: 100%; padding: 0 18px; }
.call.in-call .call-buttons, .call.ended .call-buttons { visibility: hidden; }
.call-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  color: #f1f1f1;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.call-button span { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; }
.call-button svg { width: 28px; height: 28px; fill: #fff; stroke: none; }
.call-button.decline span { background: #e5243b; }
.call-button.decline svg { transform: rotate(135deg); }
.call-button.accept span { background: #23b14d; }
.call-button small { color: #777; font-size: 11px; }


/* Soru gönderisi: kaydırılamaz, cevap gerekir */
.post.question {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  background: #000;
  overflow: hidden;
}
/* Arkada: bulanık, karanlık, yavaşça yaklaşan bir fotoğraf */
.question-bg { position: absolute; inset: -12%; background: var(--question-bg) 55% 40% / cover no-repeat; filter: blur(14px) brightness(.38) saturate(.6); animation: creep 7s linear forwards; }
@keyframes creep { to { transform: scale(1.25); filter: blur(9px) brightness(.5) saturate(.6); } }
/* Hikâye çubuğu (süre) ve paylaşan */
.story-bar { position: absolute; top: 86px; left: 10px; right: 10px; z-index: 1; }
.story-progress { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.story-progress .timer-fill { display: block; height: 100%; width: 100%; background: #fff; }
.story-poster { position: absolute; top: 98px; left: 12px; z-index: 1; display: flex; align-items: center; gap: 8px; font-size: 14px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.story-poster small { color: rgba(255, 255, 255, .7); }
.story-ring { display: inline-grid; padding: 2px; border-radius: 50%; background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf); }
.story-ring .avatar { width: 32px; height: 32px; font-size: 11px; box-shadow: 0 0 0 2px #000; }
/* Soru çıkartması: açık renk kart, üstü renkli */
.question-card {
  position: relative;
  width: 100%;
  max-width: 330px;
  border-radius: 20px;
  overflow: hidden;
  background: #fafafa;
  color: #111;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
  transform: rotate(-1.5deg);
}
.question-card.refuse { animation: refuse .3s; }
@keyframes refuse { 25% { transform: translateX(-8px) rotate(-1.5deg); } 75% { transform: translateX(8px) rotate(-1.5deg); } }
.question-head { padding: 12px 16px; background: linear-gradient(90deg, #fe2c55, #962fbf); color: #fff; font-size: 13px; font-weight: 700; text-align: center; letter-spacing: .02em; }
.question-text { margin: 16px 18px 14px; font-size: 21px; font-weight: 800; line-height: 1.2; text-align: center; }
.options { display: flex; flex-direction: column; gap: 8px; padding: 0 14px; }
.options button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 0;
  background: #ececec;
  color: #111;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.options button:active { transform: scale(.98); }
.option-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #d9d9d9; transition: width .7s cubic-bezier(.2, .8, .3, 1); }
.option-label, .option-percent { position: relative; }
.option-percent { color: #555; font-size: 14px; }
.options button.chosen .option-fill { background: linear-gradient(90deg, #fe2c55, #962fbf); }
.options button.chosen { color: #fff; }
.options button.chosen .option-percent { color: #fff; }
.options button.wrong .option-fill { background: #111; }
.question-note { margin: 12px 0 14px; color: #888; font-size: 11px; text-align: center; }
/* io'nun cevabı kartın altında */
.question-reply { position: relative; z-index: 1; width: 100%; max-width: 330px; margin-top: 18px; display: flex; align-items: flex-end; gap: 8px; }
.question-reply .avatar { width: 28px; height: 28px; font-size: 10px; flex: none; }
.question-reply .msg { max-width: 80%; }
/* Kilitli bölüm kartı koyu kalır */
.question-card .lock-head { padding: 14px 16px 0; }
.question-card .lock-sub { padding: 0 16px; margin-bottom: 4px; }
.question-card.locked { background: #111; color: #f1f1f1; }
.question-card.locked .options button { background: #222; color: #f1f1f1; }
.question-card.locked .option-percent { color: #aaa; }
.timer { margin-top: 16px; height: 3px; background: #222; border-radius: 2px; overflow: hidden; }
.timer-fill { height: 100%; width: 100%; background: #fe2c55; }

/* Bir anlık beliren görüntü (ceza yok, sadece gerilim) */
#flash {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: url("assets/smile.jpg") 55% 45% / cover no-repeat;
  opacity: .6;
}

.heart-burst {
  position: absolute;
  width: 90px;
  height: 90px;
  margin: -45px 0 0 -45px;
  fill: #fe2c55;
  stroke: none;
  pointer-events: none;
  z-index: 3;
  animation: burst .7s ease-out forwards;
}
@keyframes burst {
  0% { transform: scale(.4) rotate(-12deg); opacity: 0; }
  25% { transform: scale(1.1) rotate(-12deg); opacity: 1; }
  100% { transform: scale(1.4) translateY(-40px) rotate(-12deg); opacity: 0; }
}

/* Bildirim: gerçek telefondaki gibi en üstten, durum çubuğunun üstüne iner */
#toast {
  position: absolute;
  left: 8px;
  right: 8px;
  top: calc(env(safe-area-inset-top, 0px) + 6px);
  z-index: 12;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px 13px;
  border-radius: 22px;
  background: #2c2c30;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .55);
  cursor: pointer;
  touch-action: none;
  animation: notification-in .32s cubic-bezier(.2, .9, .3, 1.15);
  transition: transform .15s;
}
@keyframes notification-in { from { transform: translateY(-130%); opacity: .4; } }
.notification-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #000; color: #fff; }
.notification-icon svg { width: 19px; height: 19px; }
.app-mark { color: #fe2c55; font: 800 14px/1 Georgia, serif; letter-spacing: -.5px; }
.app-io .notification-icon { box-shadow: inset 0 0 0 1px #333; }
.app-phone .notification-icon { background: #2fb457; border-radius: 50%; }
.app-phone .notification-icon svg { fill: #fff; stroke: none; }
.app-system .notification-icon { background: #3b5b8c; border-radius: 50%; }
.notification-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.notification-head { color: #a8a8ad; font-size: 12px; }
.notification-main b { font-size: 15px; }
.notification-body { color: #e6e6ea; font-size: 14px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notification-avatar { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #4a4f58; font-weight: 700; align-self: center; }

/* Uygulama içi onay şeridi (altta) */
#snackbar { position: absolute; left: 50%; bottom: 24px; z-index: 12; transform: translateX(-50%); max-width: 86%; padding: 10px 16px; border-radius: 10px; background: rgba(50, 50, 54, .96); font-size: 14px; font-weight: 600; text-align: center; pointer-events: none; animation: message-in .22s ease-out; }

#cracks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
}
#cracks .crack { display: none; }
#cracks .crack.on { display: inline; }
#cracks path {
  stroke: rgba(235, 240, 245, .75);
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, .9));
}

#jumpscare {
  position: absolute;
  inset: 0;
  z-index: 7;
  background: #000 url("assets/smile.jpg") 55% 45% / cover no-repeat;
  transform-origin: 55% 42%; /* yüzün olduğu yer: yakınlaşma yüze doğru */
  animation: scare .9s steps(18) forwards;
}
#jumpscare::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(190, 0, 0, .45);
  mix-blend-mode: multiply;
}
/* filter kullanılmıyor: kırmızı katmanla birlikte görüntüyü karartıyordu */
@keyframes scare {
  0% { transform: scale(1.3); }
  15% { transform: scale(1.7) translate(1%, -1%); }
  50% { transform: scale(1.9) translate(-1%, 1%); }
  85% { transform: scale(2.05); opacity: 1; }
  100% { transform: scale(2.1); opacity: 0; }
}

#grain {
  position: fixed;
  inset: -100px;
  pointer-events: none;
  opacity: .06;
  z-index: 20;
  animation: grain .4s steps(1) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-37px, 21px); }
  50% { transform: translate(18px, -44px); }
  75% { transform: translate(-12px, 33px); }
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(0, 0, 0, .9);
  text-align: center;
}
.overlay h1 { margin: 0 0 6px .3em; font-size: 64px; font-weight: 500; letter-spacing: .3em; }
.overlay h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: .05em; }
.overlay p { margin: 0; }
.overlay button {
  margin-top: 8px;
  padding: 9px 30px;
  border: 1px solid #777;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.overlay button:hover:not(:disabled) { background: #f1f1f1; color: #000; }
.overlay button:disabled { opacity: .5; cursor: default; }
.overlay button.secondary { margin-top: 0; border-color: transparent; color: #8a8a8a; font-weight: 500; }
.overlay button.secondary:hover { background: transparent; color: #f1f1f1; }
#message-text { max-width: 380px; padding: 0 20px; white-space: pre-line; line-height: 1.8; color: #c8c8c8; }
.hint { color: #8a8a8a; font-size: 13px; }
.notice { color: #fe2c55; font-size: 13px; font-weight: 600; }
#screen-over h2 { color: #fe2c55; }

/* Gerçek telefonda: çerçeve yok, ekranın tamamı oyun */
@media (max-width: 600px) {
  #phone {
    left: 0;
    top: 0;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    aspect-ratio: auto;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  #phone.shake { animation: shake-full .45s linear; }
}
@keyframes shake-full {
  0%, 100% { transform: none; }
  20% { transform: translate(-9px, 5px); }
  40% { transform: translate(8px, -6px); }
  60% { transform: translate(-6px, -3px); }
  80% { transform: translate(4px, 4px); }
}
