:host { display: block; width: 100%; height: 100%; position: relative; pointer-events: none; font-family: 'Segoe UI', system-ui, sans-serif; }
* { box-sizing: border-box; }
button { font-family: inherit; }

/* ===== Animasyonlar ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.05); } }
@keyframes dalgaPulse { 0%, 100% { box-shadow: 0 0 8px rgba(255,68,68,0.4); } 50% { box-shadow: 0 0 24px rgba(255,68,68,0.9); } }
@keyframes glitch {
  0%, 100% { text-shadow: 0 0 10px rgba(0,255,136,0.5); }
  25% { text-shadow: 2px 0 10px rgba(136,68,255,0.8), -2px 0 10px rgba(0,255,136,0.5); }
  50% { text-shadow: -1px 0 10px rgba(0,255,136,0.8), 1px 0 10px rgba(136,68,255,0.5); }
  75% { text-shadow: 1px 0 10px rgba(136,68,255,0.6), -1px 0 10px rgba(0,255,136,0.6); }
}
.fadeIn { animation: fadeIn 0.5s ease; }
.slideUp { animation: slideUp 0.4s ease; }
.pulse { animation: pulse 2s ease infinite; }

/* ===== OVERLAY ===== */
.overlay {
  position: absolute; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4,8,16,0.92);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}
.overlay-icerik { text-align: center; max-width: 520px; padding: 40px; }

/* Baslangic */
.baslangic-ust { margin-bottom: 20px; }
.baslangic-keld {
  font-size: 14px; letter-spacing: 12px; color: #8844ff;
  text-shadow: 0 0 20px rgba(136,68,255,0.4);
  margin-bottom: 4px;
}
.baslangic-alt-baslik { font-size: 9px; letter-spacing: 3px; color: #666; text-transform: uppercase; }
.baslangic-baslik {
  font-size: 64px; font-weight: 900; color: #00ff88;
  text-shadow: 0 0 40px rgba(0,255,136,0.3);
  letter-spacing: 16px; margin: 0;
  animation: glitch 4s ease infinite;
}
.baslangic-alt {
  font-size: 18px; color: #aaa; letter-spacing: 8px;
  margin: 4px 0 24px; font-weight: 300;
}
.baslangic-hikaye {
  font-size: 13px; color: #777; line-height: 1.7; margin-bottom: 32px;
}
.baslangic-ipucu { font-size: 10px; color: #555; margin-top: 20px; letter-spacing: 1px; }

/* Aksiyon butonlar */
.aksiyon-btn {
  padding: 14px 36px; border-radius: 12px;
  border: 1px solid rgba(0,255,136,0.5); cursor: pointer;
  font-size: 15px; font-weight: 700; letter-spacing: 2px;
  transition: all 0.3s; pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px;
}
.basla-btn {
  background: linear-gradient(135deg, rgba(0,255,136,0.15), rgba(0,200,100,0.08));
  color: #00ff88; box-shadow: 0 0 30px rgba(0,255,136,0.15);
  &:hover { background: linear-gradient(135deg, rgba(0,255,136,0.3), rgba(0,200,100,0.15)); transform: scale(1.05); box-shadow: 0 0 40px rgba(0,255,136,0.3); }
}
.dalga-basla-btn {
  padding: 10px 24px; font-size: 12px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(0,255,136,0.15), rgba(0,200,100,0.08));
  color: #00ff88; border-color: rgba(0,255,136,0.4);
  &:hover { background: rgba(0,255,136,0.2); transform: scale(1.03); }
}
.sonraki-btn {
  padding: 10px 24px; font-size: 12px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(136,68,255,0.15), rgba(100,40,200,0.08));
  color: #bb88ff; border-color: rgba(136,68,255,0.4);
  &:hover { background: rgba(136,68,255,0.2); }
}
.tekrar-btn {
  background: linear-gradient(135deg, rgba(136,68,255,0.15), rgba(100,40,200,0.08));
  color: #bb88ff; border-color: rgba(136,68,255,0.5);
  &:hover { background: rgba(136,68,255,0.25); transform: scale(1.05); }
}
.btn-simge { font-size: 18px; }

/* Oyun Sonu */
.son-simge { font-size: 72px; margin-bottom: 16px; }
.son-baslik { font-size: 48px; font-weight: 900; letter-spacing: 10px; margin: 0 0 8px; }
.kazandik-renk { color: #00ff88; text-shadow: 0 0 30px rgba(0,255,136,0.4); }
.kaybettik-renk { color: #ff4444; text-shadow: 0 0 30px rgba(255,68,68,0.4); }
.son-aciklama { color: #888; font-size: 14px; margin-bottom: 24px; }
.son-istatistikler {
  display: flex; gap: 24px; justify-content: center; margin-bottom: 32px;
}
.istat-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.istat-etiket { font-size: 10px; color: #666; text-transform: uppercase; letter-spacing: 2px; }
.istat-deger { font-size: 24px; font-weight: 700; color: #fff; }

/* Hikaye Overlay */
.hikaye-overlay {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: center; padding-top: 80px;
  z-index: 50; pointer-events: none;
}
.hikaye-icerik {
  background: rgba(4,8,16,0.85); border: 1px solid rgba(136,68,255,0.3);
  border-radius: 16px; padding: 20px 40px; max-width: 600px;
  backdrop-filter: blur(16px); text-align: center;
}
.hikaye-gece {
  font-size: 11px; letter-spacing: 6px; color: #8844ff; margin-bottom: 8px;
}
.hikaye-metin { font-size: 14px; color: #ccc; line-height: 1.6; margin: 0; }

/* ===== UST BAR ===== */
.ust-bar {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(4,8,16,0.92) 0%, rgba(4,8,16,0.5) 85%, transparent 100%);
  pointer-events: auto; z-index: 20;
}
.ust-sol { display: flex; align-items: center; gap: 12px; }
.gece-bilgi {
  display: flex; align-items: baseline; gap: 6px;
  background: rgba(0,255,136,0.06); border: 1px solid rgba(0,255,136,0.2);
  border-radius: 8px; padding: 6px 14px;
}
.gece-etiket { font-size: 9px; color: #888; letter-spacing: 2px; text-transform: uppercase; }
.gece-no { font-size: 22px; font-weight: 800; color: #00ff88; }
.dalga-ayirici { color: #333; font-size: 16px; }
.dalga-etiket { font-size: 9px; color: #666; letter-spacing: 2px; }
.dalga-no { font-size: 16px; font-weight: 700; color: #bb88ff; }

.ust-orta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.kaynak-item {
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.03); border-radius: 6px; padding: 4px 10px;
}
.kaynak-simge { font-size: 14px; }
.kaynak-deger {
  color: #e0e0e0; font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  &.dusuk { color: #ff6b6b; }
}

.ust-sag { display: flex; align-items: center; gap: 16px; }
.komuta-saglik { display: flex; align-items: center; gap: 8px; }
.komuta-etiket { font-size: 11px; color: #aaa; white-space: nowrap; }
.saglik-bar-mini {
  width: 100px; height: 8px; border-radius: 4px;
  background: rgba(255,255,255,0.06); overflow: hidden;
}
.saglik-dolgu {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #ff4444, #ffaa00, #00ff88);
  transition: width 0.5s ease;
  &.kritik { background: #ff4444; animation: dalgaPulse 1s ease infinite; }
}
.saglik-text-mini { font-size: 11px; color: #ccc; font-weight: 600; font-variant-numeric: tabular-nums; }
.skor-kutusu {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(136,68,255,0.08); border: 1px solid rgba(136,68,255,0.2);
  border-radius: 8px; padding: 4px 14px;
}
.skor-etiket { font-size: 8px; color: #8844ff; letter-spacing: 2px; }
.skor-deger { font-size: 16px; font-weight: 800; color: #bb88ff; }

/* ===== SOL PANEL: Kule Secici ===== */
.sol-panel {
  position: absolute; top: 60px; left: 12px;
  width: 200px; padding: 10px;
  background: rgba(4,8,16,0.88); border: 1px solid rgba(0,255,136,0.12);
  border-radius: 14px; backdrop-filter: blur(16px);
  pointer-events: auto; z-index: 20;
}
.panel-baslik {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: #00ff88;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 8px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(0,255,136,0.1);
}
.panel-simge { font-size: 14px; }
.kule-kart {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 10px; border-radius: 10px; margin-bottom: 4px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  color: #ccc; cursor: pointer; text-align: left; transition: all 0.2s;
  &:hover { background: rgba(0,255,136,0.06); border-color: rgba(0,255,136,0.25); transform: translateX(3px); }
  &.secili { background: rgba(0,255,136,0.12); border-color: #00ff88; color: #fff; box-shadow: 0 0 16px rgba(0,255,136,0.15); }
  &.yetersiz { opacity: 0.3; cursor: not-allowed; &:hover { transform: none; background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.06); } }
  &:disabled { cursor: not-allowed; }
}
.kule-simge { font-size: 24px; flex-shrink: 0; }
.kule-bilgi { flex: 1; min-width: 0; }
.kule-isim { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kule-detay { display: flex; gap: 8px; font-size: 9px; color: #888; margin-top: 2px; }
.kule-menzil, .kule-atis { white-space: nowrap; }
.kule-maliyet { font-size: 9px; color: #666; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== SAG PANEL: Bilgi ===== */
.sag-panel {
  position: absolute; top: 60px; right: 12px;
  width: 220px; padding: 12px;
  background: rgba(4,8,16,0.88); border: 1px solid rgba(136,68,255,0.15);
  border-radius: 14px; backdrop-filter: blur(16px);
  pointer-events: auto; z-index: 20;
}
.kapat-btn {
  margin-left: auto; background: none; border: none;
  color: #555; cursor: pointer; font-size: 14px;
  &:hover { color: #ff5050; }
}
.saglik-bar {
  position: relative; height: 16px; border-radius: 8px;
  background: rgba(255,255,255,0.06); overflow: hidden; margin: 8px 0;
}
.saglik-text {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 9px; color: #fff; font-weight: 600;
}
.bilgi-satirlar { margin-top: 8px; }
.bilgi-satir {
  display: flex; justify-content: space-between; padding: 3px 0;
  font-size: 11px; color: #aaa;
}
.bilgi-deger { font-weight: 600; color: #e0e0e0; }
.sat-btn {
  width: 100%; margin-top: 10px; padding: 8px;
  border-radius: 8px; border: 1px solid rgba(255,170,0,0.3);
  background: rgba(255,170,0,0.08); color: #ffaa00;
  cursor: pointer; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.2s;
  &:hover { background: rgba(255,170,0,0.15); border-color: rgba(255,170,0,0.5); }
}

/* ===== YERLESTIRME BILGI ===== */
.yerlestirme-bilgi {
  position: absolute; top: 60px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  padding: 10px 22px; border-radius: 10px;
  background: rgba(0,255,136,0.08); border: 1px solid rgba(0,255,136,0.4);
  color: #00ff88; font-size: 12px; font-weight: 500;
  pointer-events: auto; z-index: 30; backdrop-filter: blur(12px);
  white-space: nowrap;
}
.yerlestirme-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #00ff88; animation: pulse 1.5s ease infinite;
}
.iptal-btn {
  padding: 4px 12px; border-radius: 6px;
  background: rgba(255,80,80,0.12); border: 1px solid rgba(255,80,80,0.4);
  color: #ff6b6b; cursor: pointer; font-size: 11px; transition: all 0.2s;
  &:hover { background: rgba(255,80,80,0.2); }
}

/* ===== ALT BAR ===== */
.alt-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px 14px;
  background: linear-gradient(0deg, rgba(4,8,16,0.92) 0%, rgba(4,8,16,0.5) 85%, transparent 100%);
  pointer-events: auto; z-index: 20;
}
.alt-sol { display: flex; align-items: center; gap: 12px; }
.dalga-durum {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
}
.durum-dot { width: 8px; height: 8px; border-radius: 50%; }
.hazirlik { color: #ffaa00; }
.hazirlik-dot { background: #ffaa00; animation: pulse 1.5s ease infinite; }
.savas { color: #ff4444; }
.savas-dot { background: #ff4444; animation: dalgaPulse 1s ease infinite; }
.bitti { color: #00ff88; }
.bitti-dot { background: #00ff88; }

.alt-orta { }
.kontrol-ipucu { font-size: 10px; color: #444; }

.alt-sag { text-align: right; }
.fikorita-logo { display: flex; flex-direction: column; align-items: flex-end; }
.logo-text {
  font-size: 16px; font-weight: 900; letter-spacing: 4px;
  color: #00ff88; text-shadow: 0 0 20px rgba(0,255,136,0.2);
}
.logo-alt { font-size: 8px; color: #555; letter-spacing: 2px; text-transform: uppercase; }
