/* qrsay Hediye — görüntüleyici (/h/<kod>, /hediye/ornek/<tur>).
   Telefon önce. Sayfalar tek tek, yatay geçişle. Tema: body[data-tema]. */

:root, body[data-tema="keten"] {
  --z: #f4eee4; --z2: #ebe3d6; --kart: #fffdf8; --m: #262833; --m2: #4d5060; --s: #8b8577;
  --v: #a4532f; --v2: #86401f; --vs: #f1ded1; --c: rgba(38,40,51,.12); --foil1: #d8c6a4; --foil2: #b89d6c;
  --golge: 0 1px 2px rgba(38,40,51,.06), 0 14px 40px rgba(38,40,51,.14);
}
body[data-tema="gece"] {
  --z: #10131f; --z2: #171b2b; --kart: #1b2032; --m: #f1ece2; --m2: #c9c4ba; --s: #8e93a7;
  --v: #d6b77e; --v2: #e8cd98; --vs: rgba(214,183,126,.14); --c: rgba(241,236,226,.14); --foil1: #cdb07a; --foil2: #8e7442;
  --golge: 0 1px 2px rgba(0,0,0,.3), 0 18px 50px rgba(0,0,0,.45);
}
body[data-tema="bahar"] {
  --z: #edf0e6; --z2: #e2e7d8; --kart: #fbfcf7; --m: #243027; --m2: #4a574c; --s: #7d8778;
  --v: #5f7a55; --v2: #4a6242; --vs: #dfe8d8; --c: rgba(36,48,39,.12); --foil1: #c9d1bb; --foil2: #93a283;
  --golge: 0 1px 2px rgba(36,48,39,.06), 0 14px 40px rgba(36,48,39,.13);
}
body[data-tema="gul"] {
  --z: #f6ebe8; --z2: #efdfdb; --kart: #fffaf8; --m: #3a2328; --m2: #5e454a; --s: #97807f;
  --v: #9b3d4f; --v2: #7f2f3f; --vs: #f3dbe0; --c: rgba(58,35,40,.12); --foil1: #e2c2bf; --foil2: #b98886;
  --golge: 0 1px 2px rgba(58,35,40,.06), 0 14px 40px rgba(58,35,40,.14);
}

body[data-tema="lavanta"] {
  --z: #f1eef6; --z2: #e6e0ef; --kart: #fdfcff; --m: #2a2438; --m2: #514866; --s: #8a8298;
  --v: #6b5b95; --v2: #54467a; --vs: #e7e1f2; --c: rgba(42,36,56,.12); --foil1: #d4cbe3; --foil2: #9d8fbd;
  --golge: 0 1px 2px rgba(42,36,56,.06), 0 14px 40px rgba(42,36,56,.14);
}
body[data-tema="murekkep"] {
  --z: #fbfaf7; --z2: #efede8; --kart: #ffffff; --m: #141414; --m2: #3d3d3d; --s: #8a8a8a;
  --v: #1a1a1a; --v2: #000; --vs: #ececec; --c: rgba(0,0,0,.12); --foil1: #cfcfcf; --foil2: #8c8c8c;
  --golge: 0 1px 2px rgba(0,0,0,.05), 0 14px 40px rgba(0,0,0,.12);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--z); color: var(--m); overflow: hidden;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior: none;
}
/* kâğıt dokusu */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body[data-tema="gece"]::before { mix-blend-mode: screen; opacity: .35; }
body[data-tema="gece"]::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .55;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff8, transparent), radial-gradient(1px 1px at 72% 12%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 38% 62%, #fff5, transparent), radial-gradient(1px 1px at 86% 48%, #fff7, transparent),
    radial-gradient(1px 1px at 22% 84%, #fff5, transparent), radial-gradient(1.2px 1.2px at 58% 88%, #fff6, transparent),
    radial-gradient(1px 1px at 91% 78%, #fff4, transparent), radial-gradient(1px 1px at 48% 30%, #fff4, transparent);
}
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: var(--v); }
:focus-visible { outline: 2px solid var(--v); outline-offset: 3px; border-radius: 6px; }

.serif { font-family: 'Fraunces', Georgia, serif; font-variation-settings: "SOFT" 50, "opsz" 72; }
.el { font-family: 'Caveat', cursive; }

#uygulama { position: fixed; inset: 0; z-index: 1; }

/* ---------- Sahne ---------- */
.sahne { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; }
.sayfa {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(env(safe-area-inset-top) + 58px) 24px calc(env(safe-area-inset-bottom) + 108px);
  opacity: 0; visibility: hidden; transform: translateX(10%);
  transition: opacity .55s ease, transform .65s cubic-bezier(.2,.7,.2,1), visibility 0s linear .65s;
}
.sayfa.aktif { opacity: 1; visibility: visible; transform: none; transition: opacity .55s ease, transform .65s cubic-bezier(.2,.7,.2,1), visibility 0s; }
.sayfa.gecti { transform: translateX(-10%); }
.ic { width: 100%; max-width: 520px; margin: auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.ic > * { max-width: 100%; }
@media (prefers-reduced-motion: reduce) { .sayfa, .sayfa.aktif, .sayfa.gecti { transform: none; transition: opacity .2s; } }

/* sayfa içi belirme */
.sayfa .b { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.sayfa.aktif .b { opacity: 1; transform: none; }
.sayfa.aktif .b1 { transition-delay: .15s; } .sayfa.aktif .b2 { transition-delay: .35s; }
.sayfa.aktif .b3 { transition-delay: .55s; } .sayfa.aktif .b4 { transition-delay: .75s; } .sayfa.aktif .b5 { transition-delay: .95s; }

.ust-yazi { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--v); margin: 0; }
.baslik { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: clamp(30px, 8.4vw, 44px); line-height: 1.12; letter-spacing: -.02em; margin: 0; font-variation-settings: "SOFT" 50, "opsz" 72; }
.baslik-k { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: clamp(24px, 6.6vw, 32px); line-height: 1.18; letter-spacing: -.015em; margin: 0; }
.metin { font-family: 'Fraunces', Georgia, serif; font-size: 19px; line-height: 1.62; color: var(--m2); margin: 0; white-space: pre-line; font-variation-settings: "SOFT" 80, "opsz" 18; }
.metin-k { font-size: 15px; color: var(--m2); margin: 0; white-space: pre-line; }
.imza { font-family: 'Caveat', cursive; font-size: 30px; color: var(--v); line-height: 1; margin-top: 4px; }

/* ---------- Üst: ilerleme ---------- */
.ilerleme { position: fixed; z-index: 20; left: 12px; right: 12px; top: calc(env(safe-area-inset-top) + 12px); display: flex; gap: 4px; }
.ilerleme i { flex: 1; height: 3px; border-radius: 3px; background: var(--c); overflow: hidden; position: relative; }
.ilerleme i::after { content: ""; position: absolute; inset: 0; background: var(--m); opacity: .75; transform: scaleX(0); transform-origin: left; transition: transform .5s ease; }
.ilerleme i.dolu::after { transform: scaleX(1); }
.ilerleme.tek i::after { transition: transform .5s ease; }
.ust-cubuk { position: fixed; z-index: 20; top: calc(env(safe-area-inset-top) + 22px); left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.ust-cubuk > * { pointer-events: auto; }
.rozet { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--kart); color: var(--m2); box-shadow: 0 2px 10px rgba(0,0,0,.08); text-decoration: none; }
.rozet b { color: var(--v); }
.ses { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--c); background: var(--kart); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.ses[hidden] { display: none; }
.ses.caliyor svg { animation: ses 1.2s ease-in-out infinite; }
@keyframes ses { 50% { transform: scale(1.12); } }

/* ---------- Alt: kontroller ---------- */
.alt-kontrol {
  position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; padding: 14px 18px calc(env(safe-area-inset-bottom) + 16px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(0deg, var(--z) 55%, transparent);
}
.geri { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--c); background: var(--kart); display: grid; place-items: center; cursor: pointer; }
.geri:disabled { opacity: 0; pointer-events: none; }
.sayac { font-size: 13px; color: var(--s); font-variant-numeric: tabular-nums; }
.ileri {
  min-width: 136px; height: 52px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--m); color: var(--z);
  font-weight: 600; font-size: 15.5px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 8px 22px rgba(0,0,0,.18); transition: transform .15s, opacity .3s, background .3s;
}
.ileri:active { transform: scale(.97); }
.ileri:disabled { opacity: .38; cursor: default; box-shadow: none; }
.ileri.vurgu { background: var(--v); color: #fff; }
body[data-tema="gece"] .ileri.vurgu { color: #1b1f2e; }
.kilit-ipucu { position: fixed; z-index: 21; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 78px); text-align: center; font-size: 13px; color: var(--s); pointer-events: none; opacity: 0; transition: opacity .3s; }
.kilit-ipucu.gor { opacity: 1; }

/* ---------- Düğmeler, form ---------- */
.dugme { min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--m); color: var(--z); font-weight: 600; font-size: 15.5px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.dugme.vurgu { background: var(--v); color: #fff; }
body[data-tema="gece"] .dugme.vurgu { color: #1b1f2e; }
.dugme.cizgi { background: transparent; color: var(--m); border: 1px solid var(--c); }
.dugme:disabled { opacity: .5; }
.dugmeler { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.alan { width: 100%; text-align: left; display: grid; gap: 6px; }
.alan label, .alan .etiket { font-size: 13px; font-weight: 600; color: var(--m2); }
.girdi { width: 100%; min-height: 50px; border-radius: 14px; border: 1px solid var(--c); background: var(--kart); color: var(--m); padding: 12px 15px; font: inherit; font-size: 16px; }
textarea.girdi { min-height: 110px; resize: vertical; line-height: 1.5; }
.girdi:focus { outline: none; border-color: var(--v); box-shadow: 0 0 0 3px var(--vs); }
.form { width: 100%; display: grid; gap: 14px; background: var(--kart); border-radius: 20px; padding: 20px; box-shadow: var(--golge); text-align: left; }
.hata { color: #b3261e; font-size: 14px; margin: 0; min-height: 1em; }
body[data-tema="gece"] .hata { color: #ff9c8f; }
.tamam { color: var(--v); font-weight: 600; }
.sallan { animation: sallan .45s; }
@keyframes sallan { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------- Kapak: kemer çerçeve ---------- */
.kemer { width: min(78vw, 330px); aspect-ratio: 3/4; border-radius: 999px 999px 18px 18px; overflow: hidden; box-shadow: var(--golge); background: var(--z2); position: relative; }
.kemer img { width: 100%; height: 100%; object-fit: cover; }
.kemer::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.susleme { width: 64px; height: 1px; background: var(--v); opacity: .6; position: relative; }
.susleme::before { content: ""; position: absolute; left: 50%; top: -3px; width: 7px; height: 7px; margin-left: -3.5px; transform: rotate(45deg); background: var(--v); }

/* ---------- An: polaroid ---------- */
.polaroid { background: #fffdf8; padding: 12px 12px 14px; border-radius: 3px; box-shadow: var(--golge); width: min(84vw, 380px); transform: rotate(-1.6deg); }
.sayfa:nth-child(even) .polaroid { transform: rotate(1.4deg); }
.polaroid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: #eee; }
.polaroid.yatay img { aspect-ratio: 4/3; }
.polaroid .tarih { font-family: 'Caveat', cursive; font-size: 26px; color: #4b4b52; text-align: center; margin-top: 10px; line-height: 1; }

/* ---------- Mektup ---------- */
.kagit { width: 100%; background: var(--kart); border-radius: 6px; padding: 30px 26px 26px; box-shadow: var(--golge); text-align: left; position: relative; }
.kagit .metin { color: var(--m); line-height: 32px; font-size: 18.5px; background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--c) 31px 32px); }
.kagit h2 { margin-bottom: 18px; }

/* ---------- Soru ---------- */
.secenekler { width: 100%; display: grid; gap: 10px; }
.secenek { width: 100%; min-height: 56px; padding: 12px 18px; border-radius: 16px; border: 1px solid var(--c); background: var(--kart); text-align: left; font-size: 16px; cursor: pointer; display: flex; align-items: center; gap: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: background .2s, border-color .2s, transform .15s; }
.secenek:active { transform: scale(.99); }
.secenek .harf { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--c); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--s); }
.secenek.yanlis { border-color: #d9a39b; background: rgba(217,163,155,.12); }
.secenek.dogru { border-color: var(--v); background: var(--vs); }
.secenek.dogru .harf { background: var(--v); color: #fff; border-color: var(--v); }

/* ---------- Zarf ---------- */
.zarf-sahne { width: min(86vw, 360px); aspect-ratio: 1.45; position: relative; perspective: 900px; cursor: pointer; margin-top: 30px; }
.zarf-arka { position: absolute; inset: 0; background: #e9dccb; border-radius: 8px; box-shadow: var(--golge); }
body[data-tema="gece"] .zarf-arka { background: #2a2f45; }
.zarf-mektup { position: absolute; left: 7%; right: 7%; top: 8%; bottom: 8%; background: #fffdf8; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: transform 1s cubic-bezier(.3,.7,.2,1) .45s; z-index: 1; display: grid; place-items: center; }
.zarf-mektup::before { content: ""; width: 60%; height: 3px; background: repeating-linear-gradient(90deg, #d9cfbf 0 30px, transparent 30px 36px); box-shadow: 0 10px 0 #e6ddd0, 0 20px 0 #e6ddd0; }
.zarf-on { position: absolute; inset: 0; z-index: 2; border-radius: 8px; pointer-events: none;
  background: linear-gradient(160deg, #e8dbc8, #d9c7ad); clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); }
body[data-tema="gece"] .zarf-on { background: linear-gradient(160deg, #282d43, #1f2438); }
.zarf-kapak { position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 3; transform-origin: top; transition: transform .8s cubic-bezier(.4,.1,.2,1), z-index 0s .4s;
  background: linear-gradient(to bottom, #d8c7ae, #cfbb9f); clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 8px 8px 0 0; }
body[data-tema="gece"] .zarf-kapak { background: linear-gradient(to bottom, #2f3550, #262b42); }
.zarf-muhur { position: absolute; z-index: 4; left: 50%; top: 58%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--v) 70%, #fff), var(--v2) 72%); box-shadow: 0 6px 14px rgba(0,0,0,.25), inset 0 -3px 6px rgba(0,0,0,.2);
  display: grid; place-items: center; color: #fbe9dc; font-family: 'Fraunces', serif; font-style: italic; font-size: 26px; transition: opacity .35s, transform .35s; }
.zarf-sahne.acik .zarf-kapak { transform: rotateX(180deg); z-index: 0; }
.zarf-sahne.acik .zarf-muhur { opacity: 0; transform: scale(.6); }
.zarf-sahne.acik .zarf-mektup { transform: translateY(-62%); }
.zarf-dokun { font-size: 14px; color: var(--s); animation: nabiz 2s ease-in-out infinite; }
@keyframes nabiz { 50% { opacity: .45; } }
.zarf-icerik { width: 100%; display: none; flex-direction: column; align-items: center; gap: 16px; }
.zarf-icerik.gor { display: flex; animation: yuksel .8s ease both; }
@keyframes yuksel { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Kazı-kazan ---------- */
.kazi-kart { width: min(86vw, 360px); aspect-ratio: 1.5; position: relative; border-radius: 18px; overflow: hidden; background: var(--kart); box-shadow: var(--golge); touch-action: none; user-select: none; -webkit-user-select: none; }
.kazi-sonuc { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; }
.kazi-sonuc .baslik { font-size: clamp(28px, 7.6vw, 38px); color: var(--v); }
.kazi-kart canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .8s ease; cursor: grab; }
.kazi-kart.bitti canvas { opacity: 0; pointer-events: none; }

/* ---------- Geri sayım ---------- */
.sayim { display: flex; gap: 10px; justify-content: center; }
.sayim div { min-width: 72px; background: var(--kart); border-radius: 16px; padding: 14px 8px 10px; box-shadow: var(--golge); }
.sayim b { display: block; font-family: 'Fraunces', serif; font-weight: 500; font-size: 36px; line-height: 1; font-variant-numeric: tabular-nums; }
.sayim span { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--s); margin-top: 8px; }
@media (max-width: 360px) { .sayim div { min-width: 62px; } .sayim b { font-size: 30px; } }

/* ---------- Sayılar ---------- */
.sayilar { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sayilar div { background: var(--kart); border-radius: 18px; padding: 20px 14px; box-shadow: var(--golge); }
.sayilar b { display: block; font-family: 'Fraunces', serif; font-weight: 500; font-size: 40px; line-height: 1; color: var(--v); font-variant-numeric: tabular-nums; }
.sayilar span { display: block; font-size: 14px; color: var(--m2); margin-top: 8px; line-height: 1.35; }
.sayilar div:only-child, .sayilar div:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- Liste ---------- */
.liste { width: 100%; list-style: none; margin: 0; padding: 0; counter-reset: l; display: grid; gap: 10px; text-align: left; }
.liste li { counter-increment: l; background: var(--kart); border-radius: 16px; padding: 14px 16px 14px 58px; position: relative; box-shadow: 0 1px 2px rgba(0,0,0,.05); font-size: 16px; }
.liste li::before { content: counter(l); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-family: 'Fraunces', serif; font-style: italic; font-size: 26px; color: var(--v); width: 30px; text-align: center; }

/* ---------- Notlar ---------- */
.notlar { width: 100%; display: grid; gap: 12px; text-align: left; }
.not { background: var(--kart); border-radius: 18px; padding: 18px 18px 14px; box-shadow: var(--golge); }
.not p { margin: 0; font-family: 'Fraunces', serif; font-size: 17px; line-height: 1.55; white-space: pre-line; }
.not .kim { font-family: 'Caveat', cursive; font-size: 24px; color: var(--v); margin-top: 6px; }
.not:nth-child(odd) { transform: rotate(-.6deg); } .not:nth-child(even) { transform: rotate(.5deg); }

/* ---------- Galeri ---------- */
.galeri { width: 100%; columns: 2; column-gap: 10px; }
.galeri button { display: block; width: 100%; padding: 0; border: 0; background: none; margin: 0 0 10px; break-inside: avoid; cursor: zoom-in; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.galeri img { width: 100%; height: auto; background: var(--z2); }
.isik { position: fixed; inset: 0; z-index: 60; background: rgba(10,10,14,.92); display: grid; place-items: center; padding: 20px; animation: bel .25s ease; }
.isik img { max-width: 100%; max-height: 86vh; border-radius: 6px; object-fit: contain; }
.isik button { position: absolute; top: calc(env(safe-area-inset-top) + 14px); right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; cursor: pointer; }
.isik .ad { position: absolute; bottom: calc(env(safe-area-inset-bottom) + 20px); left: 0; right: 0; text-align: center; color: #ddd; font-size: 14px; }
@keyframes bel { from { opacity: 0; } }

/* ---------- Gömülü medya ---------- */
.medya { width: 100%; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: var(--golge); }
.medya.dikey { aspect-ratio: 9/16; max-width: 320px; }
.medya iframe { width: 100%; height: 100%; border: 0; display: block; }
.medya.spotify { aspect-ratio: auto; height: 152px; background: transparent; }

/* ---------- Teklif / vurgu ---------- */
.teklif-dugmeler { position: relative; width: 100%; min-height: 150px; display: flex; gap: 14px; justify-content: center; align-items: center; }
.teklif-dugmeler .dugme { min-width: 124px; }
.kacan { transition: transform .25s cubic-bezier(.3,.8,.3,1.2), opacity .3s; }
.sayfa.vurgu-sayfa { background: #0d0f16; color: #f4efe6; }
.vurgu-metin { font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(34px, 9.6vw, 56px); line-height: 1.12; letter-spacing: -.02em; opacity: 0; transition: opacity 2.4s ease .6s; }
.sayfa.aktif .vurgu-metin { opacity: 1; }
.vurgu-alt { color: #aaa49a; opacity: 0; transition: opacity 1.6s ease 2.4s; }
.sayfa.aktif .vurgu-alt { opacity: 1; }

/* ---------- Davet ---------- */
.davet { width: 100%; background: var(--kart); border-radius: 22px; padding: 30px 22px 24px; box-shadow: var(--golge); display: grid; gap: 16px; position: relative; }
.davet::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--c); border-radius: 16px; pointer-events: none; }
.davet .isimler { font-family: 'Fraunces', serif; font-weight: 400; font-style: italic; font-size: clamp(34px, 9vw, 46px); line-height: 1.08; color: var(--m); margin: 0; }
.davet .tarih { font-family: 'Fraunces', serif; font-size: 21px; margin: 0; }
.davet .bilgi { display: grid; gap: 4px; font-size: 15px; color: var(--m2); }
.davet .bilgi b { color: var(--m); font-weight: 600; }
.program { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; text-align: left; border-top: 1px solid var(--c); padding-top: 14px; }
.program li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; font-size: 15px; }
.program b { font-variant-numeric: tabular-nums; color: var(--v); }

/* ---------- LCV ---------- */
.secimler { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.secimler label { display: grid; place-items: center; min-height: 48px; border-radius: 12px; border: 1px solid var(--c); background: var(--z); cursor: pointer; font-size: 14px; font-weight: 600; text-align: center; padding: 6px; }
.secimler input { position: absolute; opacity: 0; pointer-events: none; }
.secimler input:checked + span { color: var(--v); }
.secimler label:has(input:checked) { border-color: var(--v); background: var(--vs); }
.adim-sec { display: flex; align-items: center; gap: 12px; }
.adim-sec button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c); background: var(--z); font-size: 20px; cursor: pointer; }
.adim-sec output { min-width: 30px; text-align: center; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Albüm ---------- */
.album-yukle { width: 100%; display: grid; gap: 10px; background: var(--kart); border-radius: 18px; padding: 16px; box-shadow: var(--golge); }
.yukleniyor { font-size: 14px; color: var(--s); margin: 0; }
.yukleniyor:empty { display: none; }

/* ---------- Kapı / durum ekranları ---------- */
.kapi { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 32px 26px calc(env(safe-area-inset-bottom) + 32px); text-align: center; z-index: 30; background: var(--z); transition: opacity .7s ease, transform .7s ease; }
.kapi.git { opacity: 0; transform: scale(1.03); pointer-events: none; }
.kapi .ic { gap: 20px; }
.kapi .kime { font-family: 'Caveat', cursive; font-size: 34px; color: var(--v); line-height: 1; margin: 0; }
.kapi .ipucu { font-size: 13.5px; color: var(--s); display: inline-flex; align-items: center; gap: 7px; }
.muhur-buyuk { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--v) 70%, #fff), var(--v2) 72%); color: #fbe9dc; font-family: 'Fraunces', serif; font-style: italic; font-size: 40px; box-shadow: 0 12px 28px rgba(0,0,0,.25), inset 0 -4px 8px rgba(0,0,0,.2); animation: sal 5s ease-in-out infinite; }
body[data-tema="gece"] .muhur-buyuk, body[data-tema="gece"] .zarf-muhur { color: #2b2416; }
@keyframes sal { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.durum-ikon { width: 76px; height: 76px; border-radius: 50%; background: var(--kart); box-shadow: var(--golge); display: grid; place-items: center; color: var(--v); }
.murekkep { width: 120px; height: 3px; border-radius: 3px; background: var(--c); overflow: hidden; position: relative; }
.murekkep::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--v); border-radius: 3px; animation: akis 1.8s ease-in-out infinite; }
@keyframes akis { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
.marka { font-size: 12.5px; color: var(--s); text-decoration: none; }
.marka b { font-family: 'Fraunces', serif; font-weight: 600; color: var(--m2); }
.marka b i { font-style: normal; color: var(--v); }

/* ---------- Kapanış ---------- */
.son-alt { display: grid; gap: 14px; justify-items: center; margin-top: 10px; }

/* ---------- Müzik kartı (YouTube autoplay engellenirse) ---------- */
.muzik-kart { position: fixed; z-index: 40; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 84px); width: 220px; background: var(--kart); border-radius: 14px; box-shadow: var(--golge); padding: 8px; display: none; }
.muzik-kart.gor { display: block; }
.muzik-kart .yt { width: 100%; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #000; }
.muzik-kart .yt iframe, .muzik-kart .yt > div { width: 100% !important; height: 100% !important; border: 0; }
.muzik-kart.spotify .yt { aspect-ratio: auto; height: 80px; background: transparent; }
.muzik-kart p { margin: 6px 4px 2px; font-size: 12px; color: var(--s); }
.muzik-kart .kapat { position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--m); color: var(--z); cursor: pointer; font-size: 15px; line-height: 1; }
#yt-gizli { position: fixed; width: 2px; height: 2px; left: -10px; bottom: -10px; opacity: .01; pointer-events: none; }

/* ---------- Konfeti ---------- */
#konfeti { position: fixed; inset: 0; z-index: 50; pointer-events: none; width: 100%; height: 100%; }

/* ---------- Gömülü (pazarlama telefonu) ---------- */
body.gomulu { pointer-events: none; }
body.gomulu .alt-kontrol, body.gomulu .ust-cubuk { display: none; }
body.gomulu .sayfa { padding-top: 46px; padding-bottom: 36px; }
body.gomulu .baslik { font-size: 30px; }
body.gomulu .kemer { width: 66%; }
body.gomulu .polaroid { width: 80%; }
body.gomulu .metin { font-size: 16px; }

/* ---------- Başlık yazı stili + geçiş efekti ---------- */
body[data-yazi="el"] .baslik, body[data-yazi="el"] .baslik-k, body[data-yazi="el"] .kapi .baslik { font-family: 'Caveat', cursive; font-weight: 700; letter-spacing: 0; font-size: clamp(38px, 11vw, 56px); line-height: 1.05; }
body[data-yazi="el"] .baslik-k { font-size: clamp(32px, 9vw, 42px); }
body[data-yazi="modern"] .baslik, body[data-yazi="modern"] .baslik-k, body[data-yazi="modern"] .kapi .baslik { font-family: 'Inter', sans-serif; font-weight: 700; letter-spacing: -.035em; }
body[data-gecis="solma"] .sayfa, body[data-gecis="solma"] .sayfa.gecti { transform: none; }
body[data-gecis="yakin"] .sayfa { transform: scale(.94); }
body[data-gecis="yakin"] .sayfa.gecti { transform: scale(1.06); }
body[data-gecis="yakin"] .sayfa.aktif { transform: none; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(10,10,16,.55); display: grid; place-items: center; padding: 20px; animation: bel .25s ease; }
.modal-kart { position: relative; width: 100%; max-width: 440px; max-height: 86vh; overflow-y: auto; background: var(--z); border-radius: 22px; padding: 30px 22px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: yuksel .35s ease both; }
.modal-kapat { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--kart); color: var(--m); font-size: 20px; cursor: pointer; }
.yuksel-gir { animation: yuksel .7s ease both; }

/* ---------- Şifreli sayfa ---------- */
.kilit-simge, .kilit-acik { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--kart); color: var(--v); box-shadow: var(--golge); }
.kilit-acik { background: var(--v); color: var(--z); }

/* ---------- Sürpriz takvimi ---------- */
.takvim { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kapi-k { position: relative; aspect-ratio: 1; border-radius: 16px; border: 0; cursor: pointer; background: var(--kart); box-shadow: var(--golge); display: grid; place-items: center; font-family: 'Fraunces', serif; font-size: 28px; color: var(--m); transition: transform .2s; }
.kapi-k:active { transform: scale(.96); }
.kapi-k::after { content: ""; position: absolute; inset: 6px; border: 1px dashed var(--c); border-radius: 12px; pointer-events: none; }
.kapi-k.kilitli { background: var(--z2); color: var(--s); box-shadow: none; }
.kapi-k.acildi { background: var(--vs); color: var(--v); }
.kapi-k.bugun { background: var(--v); color: var(--z); animation: parla 2.2s ease-in-out infinite; }
body[data-tema="gece"] .kapi-k.bugun { color: #1b1f2e; }
@keyframes parla { 50% { box-shadow: 0 0 0 6px var(--vs), var(--golge); } }
.kapi-kilit { position: absolute; right: 8px; bottom: 6px; opacity: .6; }
@media (max-width: 360px) { .takvim { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Sesli mesaj ---------- */
.ses-oynatici { width: 100%; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px; background: var(--kart); border-radius: 22px; padding: 14px 18px 14px 14px; box-shadow: var(--golge); }
.ses-dugme { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--v); color: var(--z); display: grid; place-items: center; cursor: pointer; }
body[data-tema="gece"] .ses-dugme { color: #1b1f2e; }
.ses-orta { display: grid; gap: 8px; }
.ses-dalga { display: flex; align-items: center; gap: 3px; height: 34px; }
.ses-dalga i { flex: 1; background: var(--v); opacity: .35; border-radius: 2px; }
.ses-oynatici.caliyor .ses-dalga i { opacity: .8; animation: dalga 1s ease-in-out infinite alternate; }
@keyframes dalga { to { transform: scaleY(.35); } }
.ses-cubuk { height: 4px; border-radius: 4px; background: var(--c); cursor: pointer; overflow: hidden; }
.ses-cubuk i { display: block; height: 100%; width: 0; background: var(--v); }
.ses-sure { font-size: 13px; color: var(--s); font-variant-numeric: tabular-nums; }

/* ---------- Çarkıfelek ---------- */
.cark { position: relative; width: min(82vw, 330px); aspect-ratio: 1; }
.cark-teker { width: 100%; height: 100%; border-radius: 50%; box-shadow: var(--golge), 0 0 0 8px var(--kart); transition: transform 4.6s cubic-bezier(.12,.72,.08,1); }
.cark-teker svg { width: 100%; height: 100%; display: block; }
.cark-isaret { position: absolute; z-index: 2; top: -14px; left: 50%; margin-left: -14px; width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid var(--m); filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }

/* ---------- Kupon defteri ---------- */
.kuponlar { width: 100%; display: grid; gap: 12px; }
.kupon { display: grid; grid-template-columns: 1fr auto; background: var(--kart); border-radius: 16px; box-shadow: var(--golge); overflow: hidden; position: relative; text-align: left; }
.kupon-sol { padding: 18px 18px 16px; display: grid; gap: 4px; border-right: 2px dashed var(--c); }
.kupon-sol b { font-family: 'Fraunces', serif; font-weight: 500; font-size: 20px; }
.kupon-sol span { font-size: 14px; color: var(--m2); }
.kupon-sag { display: grid; place-items: center; padding: 0 14px; background: var(--vs); }
.kupon-btn { border: 0; background: var(--v); color: #fff; font-weight: 600; font-size: 13.5px; padding: 10px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
body[data-tema="gece"] .kupon-btn { color: #1b1f2e; }
.kupon-sag { position: relative; }
.kupon-sag::before, .kupon-sag::after { content: ""; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--z); }
.kupon-sag::before { top: -10px; } .kupon-sag::after { bottom: -10px; }
.kupon.kullanildi { opacity: .6; }
.kupon.kullanildi .kupon-btn { background: transparent; color: var(--m2); }

/* ---------- Zaman çizelgesi ---------- */
.zaman { list-style: none; margin: 0; padding: 0 0 0 26px; width: 100%; text-align: left; position: relative; display: grid; gap: 22px; }
.zaman::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--c); }
.zaman li { position: relative; display: grid; gap: 4px; }
.zaman li::before { content: ""; position: absolute; left: -25px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--v); box-shadow: 0 0 0 4px var(--z); }
.zaman-tarih { font-family: 'Caveat', cursive; font-size: 24px; color: var(--v); line-height: 1; }
.zaman b { font-family: 'Fraunces', serif; font-weight: 500; font-size: 20px; }
.zaman p { margin: 0; color: var(--m2); font-size: 15.5px; }
.zaman-foto { border-radius: 12px; overflow: hidden; margin-top: 6px; box-shadow: var(--golge); }
.zaman-foto img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

/* ---------- Önce / şimdi ---------- */
.os { position: relative; width: min(86vw, 380px); aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; box-shadow: var(--golge); user-select: none; }
.os > img, .os-ust img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.os-ust { position: absolute; inset: 0; }
.os-tutamak { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.os-tutamak span { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: #fff; color: #222; display: grid; place-items: center; font-size: 14px; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.os input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.os-etiket { position: absolute; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 12.5px; font-weight: 600; pointer-events: none; }
.os-etiket.sol { left: 12px; } .os-etiket.sag { right: 12px; }

/* ---------- Test ---------- */
.test { width: 100%; display: grid; gap: 14px; }
.test-puan { font-family: 'Fraunces', serif; font-size: 64px; line-height: 1; margin: 0; color: var(--v); }

/* ---------- Yer ---------- */
.harita-pin { width: 84px; height: 84px; border-radius: 50%; background: var(--kart); color: var(--v); display: grid; place-items: center; box-shadow: var(--golge); }

/* ---------- Alıntı ---------- */
.alinti-isaret { font-family: 'Fraunces', serif; font-size: 120px; line-height: .6; color: var(--v); opacity: .5; }
.alinti { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; font-size: clamp(28px, 8vw, 40px); line-height: 1.25; margin: 0; letter-spacing: -.01em; }
