:root {
  --gece: #17070e;
  --sarap: #3a0f1f;
  --gul: #e8456b;
  --gul-koyu: #b82e55;
  --pembe: #f7a1b5;
  --altin: #f6d186;
  --krem: #fbf1e4;
  --murekkep: #3b2230;
  --el: "Caveat", "Segoe Script", cursive;
  --suslu: "Great Vibes", "Segoe Script", cursive;
  --serif: "Playfair Display", Georgia, serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  color: var(--krem);
  background: var(--gece);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
body.kilitli { overflow: hidden; }

/* Sabit arka plan: bordo gece, yavaşça kayan iki ışık */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(45% 40% at 25% 20%, rgba(232, 69, 107, 0.3), transparent 70%),
    radial-gradient(40% 38% at 80% 75%, rgba(246, 209, 134, 0.13), transparent 70%),
    linear-gradient(180deg, #17070e, #2a0b18 50%, #17070e);
  animation: isik-kay 22s ease-in-out infinite alternate;
}
@keyframes isik-kay {
  to { transform: translate(4%, -3%) scale(1.08); }
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

.ilerleme {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 56;
}
.ilerleme span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gul), var(--altin));
  transform: scaleX(0);
  transform-origin: left;
}

.muzik {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 56;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(251, 241, 228, 0.3);
  background: rgba(23, 7, 14, 0.6);
  backdrop-filter: blur(8px);
  font-size: 20px;
  cursor: pointer;
  animation: nabiz 1.6s ease-in-out infinite;
}
.muzik.kapali { animation: none; opacity: 0.5; text-decoration: line-through; }

.bolum {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(70px, 11vh, 120px) 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bolum-baslik {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 6vw, 56px);
  text-align: center;
}
.bolum-baslik::after {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--pembe), transparent);
}
.bolum-alt {
  margin-top: 10px;
  font-family: var(--el);
  font-size: clamp(20px, 3.2vw, 26px);
  color: var(--pembe);
  text-align: center;
}
.koyu { color: var(--murekkep); }
.bolum-alt.koyu { color: var(--gul-koyu); }

/* Bölüm ekrana girince içindekiler sırayla belirir */
[data-gir] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.9s ease;
  transition-delay: calc(var(--i, 0) * 110ms);
}
.gorunur [data-gir] { opacity: 1; transform: none; filter: none; }

.dugme {
  margin-top: 28px;
  padding: 8px 34px 10px;
  border-radius: 999px;
  border: 1px solid rgba(247, 161, 181, 0.6);
  background: linear-gradient(135deg, var(--gul), var(--gul-koyu));
  color: #fff;
  font-family: var(--el);
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 12px 30px -12px rgba(232, 69, 107, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dugme:hover { transform: translateY(-2px) scale(1.04); }
.dugme:active { transform: scale(0.96); }
.dugme.hayalet { background: transparent; box-shadow: none; }

.ipucu {
  margin-top: 18px;
  font-family: var(--el);
  font-size: 20px;
  color: rgba(251, 241, 228, 0.55);
  transition: opacity 0.6s ease;
}

@keyframes nabiz {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
@keyframes nefes {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}
@keyframes belir {
  to { opacity: 1; }
}
