
:root{
  --bg:#2a0208;
  --bg2:#4a0814;
  --bg3:#7b1125;
  --text:#fff7fa;
  --muted:#f3d5df;
  --accent:#ff5c8f;
  --accent2:#ff9dbb;
  --line:rgba(255,255,255,.16);
}
*{box-sizing:border-box}
html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  background:#2a0208;
}
html,body{
  margin:0;
  min-height:100%;
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
body{
  min-height:100vh;
  min-height:100dvh;
  overflow-x:hidden;
  background:
    radial-gradient(circle at 18% 15%, rgba(255,173,197,.16), transparent 24%),
    radial-gradient(circle at 85% 15%, rgba(255,92,143,.22), transparent 28%),
    radial-gradient(circle at 50% 90%, rgba(255,255,255,.06), transparent 35%),
    linear-gradient(160deg,var(--bg),var(--bg2) 52%,var(--bg3));
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overscroll-behavior-y:none;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
  position:relative;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(rgba(255,255,255,.02) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.02) 1px,transparent 1px);
  background-size:34px 34px;
  opacity:.55;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.6),transparent 86%);
}
body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.08), transparent 10%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,.04), transparent 10%),
    radial-gradient(circle at 60% 80%, rgba(255,255,255,.05), transparent 12%);
  animation:glowDrift 14s ease-in-out infinite alternate;
}
@keyframes glowDrift{
  from{transform:translateY(0) scale(1)}
  to{transform:translateY(-12px) scale(1.03)}
}

.love-bg{
  position:fixed;
  inset:0;
  pointer-events:none;
  overflow:hidden;
  z-index:0;
}
.heart{
  position:absolute;
  bottom:-60px;
  color:rgba(255,213,227,.22);
  font-size:16px;
  animation:floatUp linear infinite;
  filter:drop-shadow(0 0 10px rgba(255,128,167,.16));
}
.heart:nth-child(1){left:6%;animation-duration:16s;animation-delay:-2s;font-size:18px}
.heart:nth-child(2){left:15%;animation-duration:20s;animation-delay:-8s;font-size:26px}
.heart:nth-child(3){left:24%;animation-duration:17s;animation-delay:-5s;font-size:14px}
.heart:nth-child(4){left:33%;animation-duration:23s;animation-delay:-10s;font-size:22px}
.heart:nth-child(5){left:44%;animation-duration:18s;animation-delay:-6s;font-size:17px}
.heart:nth-child(6){left:54%;animation-duration:21s;animation-delay:-11s;font-size:28px}
.heart:nth-child(7){left:64%;animation-duration:15s;animation-delay:-3s;font-size:15px}
.heart:nth-child(8){left:73%;animation-duration:24s;animation-delay:-9s;font-size:24px}
.heart:nth-child(9){left:84%;animation-duration:19s;animation-delay:-4s;font-size:16px}
.heart:nth-child(10){left:92%;animation-duration:22s;animation-delay:-12s;font-size:20px}
@keyframes floatUp{
  0%{transform:translateY(0) translateX(0) scale(.9) rotate(0deg);opacity:0}
  10%{opacity:1}
  100%{transform:translateY(-115vh) translateX(24px) scale(1.15) rotate(18deg);opacity:0}
}

.rain{
  position:fixed;
  inset:0;
  overflow:hidden;
  pointer-events:none;
  z-index:0;
}
.drop{
  position:absolute;
  top:-20vh;
  width:1px;
  height:70px;
  background:linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,215,227,.35), rgba(255,255,255,0));
  animation:rainFall linear infinite;
  opacity:.45;
}
.drop:nth-child(1){left:7%;animation-duration:1.6s;animation-delay:-.4s}
.drop:nth-child(2){left:13%;animation-duration:1.9s;animation-delay:-1.2s}
.drop:nth-child(3){left:22%;animation-duration:1.45s;animation-delay:-.9s}
.drop:nth-child(4){left:31%;animation-duration:1.8s;animation-delay:-1.5s}
.drop:nth-child(5){left:40%;animation-duration:1.35s;animation-delay:-.6s}
.drop:nth-child(6){left:50%;animation-duration:1.7s;animation-delay:-1.1s}
.drop:nth-child(7){left:58%;animation-duration:1.55s;animation-delay:-.7s}
.drop:nth-child(8){left:66%;animation-duration:1.95s;animation-delay:-1.3s}
.drop:nth-child(9){left:75%;animation-duration:1.4s;animation-delay:-.5s}
.drop:nth-child(10){left:83%;animation-duration:1.75s;animation-delay:-1.4s}
.drop:nth-child(11){left:90%;animation-duration:1.5s;animation-delay:-.8s}
.drop:nth-child(12){left:96%;animation-duration:1.85s;animation-delay:-1.6s}
@keyframes rainFall{
  0%{transform:translateY(-12vh) translateX(0) rotate(12deg);opacity:0}
  10%{opacity:.42}
  100%{transform:translateY(120vh) translateX(-28px) rotate(12deg);opacity:0}
}

button,a{
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
.page{
  min-height:100vh;
  min-height:100dvh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding-top:max(22px, env(safe-area-inset-top));
  padding-right:max(14px, env(safe-area-inset-right));
  padding-bottom:max(30px, env(safe-area-inset-bottom));
  padding-left:max(14px, env(safe-area-inset-left));
  position:relative;
  z-index:1;
}
.shell{width:min(780px,100%);position:relative}
.card{
  position:relative;
  padding:46px 36px 38px;
  border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.085),rgba(255,255,255,.04));
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
  border-radius:30px;
  box-shadow:0 28px 90px rgba(52,0,13,.38);
  overflow:hidden;
}
.card::before{
  content:"";
  position:absolute;
  width:230px;
  height:230px;
  border-radius:50%;
  background:rgba(255,133,171,.18);
  filter:blur(75px);
  right:-70px;
  top:-90px;
}
.card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(135deg, rgba(255,255,255,.08), transparent 32%, transparent 70%, rgba(255,255,255,.035));
}
.eyebrow{
  text-transform:uppercase;
  letter-spacing:.26em;
  font-size:.72rem;
  color:#ffe6ee;
  margin-bottom:18px;
  opacity:.9;
}
h1,h2{
  margin:0 0 24px;
  font-family:Georgia,"Times New Roman",serif;
  font-weight:500;
  line-height:1.04;
  letter-spacing:-.035em;
}
h1{font-size:clamp(2.7rem,8vw,5.9rem)}
h2{font-size:clamp(2.25rem,7vw,4.9rem)}
.gradient{
  background:linear-gradient(110deg,#fff 5%,#ffd7e6 42%,#ffabc8 80%,#fff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.lead{
  font-size:clamp(1.08rem,2.6vw,1.38rem);
  line-height:1.84;
  color:#fff4f7;
  margin:0;
}
.stack{display:grid;gap:14px}
.line{
  opacity:0;
  transform:translateY(12px);
  animation:reveal .8s ease forwards;
}
.line:nth-child(1){animation-delay:.15s}.line:nth-child(2){animation-delay:.4s}.line:nth-child(3){animation-delay:.65s}
.line:nth-child(4){animation-delay:.9s}.line:nth-child(5){animation-delay:1.15s}.line:nth-child(6){animation-delay:1.4s}
.line:nth-child(7){animation-delay:1.65s}.line:nth-child(8){animation-delay:1.9s}.line:nth-child(9){animation-delay:2.15s}
.line:nth-child(10){animation-delay:2.4s}.line:nth-child(11){animation-delay:2.65s}
@keyframes reveal{to{opacity:1;transform:none}}
.quote{
  margin-top:28px;
  padding:20px 0 2px 20px;
  border-left:2px solid rgba(255,154,185,.8);
  color:#fff7fb;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(1.2rem,3vw,1.68rem);
  line-height:1.62;
}
.actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:34px;
}
.btn{
  border:0;
  text-decoration:none;
  color:#5f001f;
  background:linear-gradient(110deg,#fff,#ffd2e0 48%,#ffb5cc);
  padding:15px 22px;
  border-radius:999px;
  font-weight:800;
  letter-spacing:.01em;
  display:inline-flex;
  align-items:center;
  gap:10px;
  box-shadow:0 12px 35px rgba(255,111,145,.23);
  transition:.25s ease;
  cursor:pointer;
  min-height:54px;
  user-select:none;
  -webkit-user-select:none;
}
.btn:hover{transform:translateY(-2px) scale(1.01)}
.btn:active{transform:translateY(0) scale(.985)}
.pulse{animation:beat 1.5s infinite}
@keyframes beat{0%,100%{transform:scale(1)}50%{transform:scale(1.18)}}
.progress{display:flex;gap:8px}
.dot{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.24)}
.dot.active{width:24px;border-radius:999px;background:linear-gradient(90deg,var(--accent),var(--accent2))}
.kicker{color:var(--muted);font-size:.92rem}
.center{text-align:center}
.opening{
  min-height:58vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center
}
.whisper{
  font-size:clamp(1.1rem,3vw,1.4rem);
  color:#fff2f6;
  line-height:1.78;
  margin:0 auto;
  max-width:590px;
}
.big-heart{
  font-size:2.8rem;
  color:#ffd8e5;
  filter:drop-shadow(0 0 18px rgba(255,111,145,.42));
  animation:beat 1.5s infinite;
}
.fadeout{animation:pageOut .55s ease forwards}
@keyframes pageOut{to{opacity:0;transform:scale(.985);filter:blur(5px)}}
.music-overlay{
  position:fixed;
  inset:0;
  z-index:30;
  display:none;
  align-items:center;
  justify-content:center;
  padding-top:max(18px, env(safe-area-inset-top));
  padding-right:max(14px, env(safe-area-inset-right));
  padding-bottom:max(18px, env(safe-area-inset-bottom));
  padding-left:max(14px, env(safe-area-inset-left));
  background:linear-gradient(160deg, rgba(44,0,11,.86), rgba(89,7,28,.84));
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
  min-height:100dvh;
}
.music-overlay.show{display:flex;animation:overlayIn .55s ease both}
@keyframes overlayIn{from{opacity:0}to{opacity:1}}
.music-box{
  width:min(860px,100%);
  border:1px solid rgba(255,255,255,.16);
  background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border-radius:28px;
  padding:26px 22px;
  box-shadow:0 30px 120px rgba(0,0,0,.32);
  position:relative;
  overflow:hidden;
}
.music-box::before{
  content:"";
  position:absolute;
  inset:-20% auto auto -12%;
  width:220px;
  height:220px;
  border-radius:50%;
  background:rgba(255,163,190,.16);
  filter:blur(60px);
}
.music-stage{
  position:relative;
  z-index:1;
  min-height:300px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:14px 8px 8px;
}
.music-title{
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(2rem,5vw,3rem);
  line-height:1.08;
  letter-spacing:-.03em;
  margin:0 0 12px;
}
.music-text{
  color:#fff4f7;
  font-size:clamp(1rem,2.9vw,1.2rem);
  line-height:1.9;
  max-width:680px;
  margin:0 auto 12px;
}
.music-lines{
  display:grid;
  gap:8px;
  margin-top:14px;
}
.music-line{
  opacity:0;
  transform:translateY(10px);
}
.music-overlay.show .music-line{
  animation:reveal .9s ease forwards;
}
.music-overlay.show .music-line:nth-child(1){animation-delay:.3s}
.music-overlay.show .music-line:nth-child(2){animation-delay:1.1s}
.music-overlay.show .music-line:nth-child(3){animation-delay:1.9s}
.music-overlay.show .music-line:nth-child(4){animation-delay:2.7s}
.music-overlay.show .music-line:nth-child(5){animation-delay:3.5s}
.final-note{
  margin:18px 4px 2px;
  text-align:center;
  color:#fff7fa;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(1.1rem,2.8vw,1.45rem);
  line-height:1.6
}
.small{font-size:.84rem;color:#f5d6e0;margin-top:12px;text-align:center}
.hidden-audio{display:none}

@media (max-width:767px){
  body{
    background:
      radial-gradient(circle at 50% -10%, rgba(255,173,197,.18), transparent 36%),
      radial-gradient(circle at 90% 90%, rgba(255,92,143,.14), transparent 34%),
      linear-gradient(165deg,#2a0208,#560b19 56%,#7b1125);
  }
  body::before{background-size:26px 26px;opacity:.65}
  .page{
    align-items:stretch;
    padding-top:max(18px, env(safe-area-inset-top));
    padding-bottom:max(18px, env(safe-area-inset-bottom));
  }
  .shell{
    width:100%;
    display:flex;
    align-items:center;
  }
  .card{
    width:100%;
    border-radius:26px;
    padding:32px 22px 24px;
    min-height:calc(100dvh - 36px);
    display:flex;
    flex-direction:column;
    justify-content:center;
    box-shadow:0 24px 70px rgba(44,0,11,.38);
  }
  .card::before{
    width:180px;height:180px;right:-70px;top:-70px;filter:blur(60px);
  }
  .eyebrow{font-size:.66rem;line-height:1.5;letter-spacing:.22em;margin-bottom:14px}
  h1{font-size:clamp(2.45rem,12vw,4.3rem);line-height:.98;margin-bottom:20px}
  h2{font-size:clamp(2.2rem,10.5vw,3.85rem);line-height:1.02;margin-bottom:22px}
  .lead{font-size:clamp(1.01rem,4.15vw,1.16rem);line-height:1.72;letter-spacing:-.01em}
  .stack{gap:11px}
  .quote{margin-top:22px;padding:16px 0 0 16px;font-size:clamp(1.08rem,4.4vw,1.35rem);line-height:1.52}
  .opening{min-height:auto;padding:12px 0 2px}
  .opening .whisper{font-size:clamp(1rem,4vw,1.15rem);line-height:1.65}
  .big-heart{font-size:2.25rem;margin-bottom:8px}
  .actions{margin-top:28px;flex-direction:column;align-items:stretch;gap:14px}
  .progress{position:static;justify-content:center;order:2}
  .btn{
    width:100%;
    min-height:56px;
    justify-content:center;
    padding:16px 18px;
    font-size:1rem;
    border-radius:18px;
    order:1;
    box-shadow:0 14px 34px rgba(255,111,145,.16);
  }
  .music-box{
    width:100%;
    max-height:calc(100dvh - 36px);
    overflow:auto;
    -webkit-overflow-scrolling:touch;
    padding:18px 14px 16px;
    border-radius:24px;
  }
  .music-stage{
    min-height:340px;
    padding:10px 2px;
  }
  .final-note{margin:15px 4px 2px;font-size:clamp(1rem,4.1vw,1.18rem)}
  .small{font-size:.76rem}
}
@media (max-width:390px){
  .card{padding:27px 18px 22px;border-radius:22px}
  .lead{line-height:1.62}
  .stack{gap:9px}
  h1{font-size:clamp(2.28rem,11.7vw,3.55rem)}
  h2{font-size:clamp(2rem,10vw,3.25rem)}
  .btn{min-height:54px}
}
@supports (-webkit-touch-callout:none){
  .page,.music-overlay{min-height:-webkit-fill-available}
}


/* ===== Yeni Hikaye Katmani ===== */
.story-tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  background:rgba(255,255,255,.045);
  color:#ffe8f0;
  font-size:.78rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:18px;
}
.big-statement{
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(1.25rem,3.4vw,1.75rem);
  line-height:1.55;
  color:#fff;
  margin:20px 0 0;
  text-align:center;
}
.soft-separator{
  width:68px;
  height:1px;
  margin:24px auto;
  background:linear-gradient(90deg,transparent,#ffc2d6,transparent);
}
.emphasis-box{
  margin-top:24px;
  padding:18px 20px;
  border-radius:20px;
  background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.035));
  border:1px solid rgba(255,255,255,.13);
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(1.12rem,3vw,1.48rem);
  line-height:1.55;
  text-align:center;
}
.new-page-icon{
  width:58px;height:58px;border-radius:18px;
  display:grid;place-items:center;
  margin:0 auto 18px;
  background:linear-gradient(145deg,rgba(255,255,255,.13),rgba(255,255,255,.05));
  border:1px solid rgba(255,255,255,.14);
  font-size:1.55rem;
  box-shadow:0 16px 45px rgba(83,0,25,.25);
}
.music-overlay .music-lines{gap:12px}
.music-overlay .music-line{
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(1.08rem,2.9vw,1.35rem);
  line-height:1.6;
}
@media(max-width:767px){
  .story-tag{font-size:.67rem;letter-spacing:.1em}
  .emphasis-box{padding:16px 14px;border-radius:17px}
  .big-statement{font-size:1.2rem}
}
