/* ---------- TEMEL ---------- */
:root {
  --bg: #0a0408;
  --bg-2: #14060f;
  --ink: #fff5f8;
  --ink-soft: #f0c8d6;
  --ink-mute: #b08a98;
  --red: #ff2d55;
  --pink: #ff5f9e;
  --pink-soft: #ffa3c7;
  --purple: #9d4edd;
  --purple-deep: #5a189a;
  --grad-1: linear-gradient(135deg, #ff2d55 0%, #ff5f9e 50%, #9d4edd 100%);
  --grad-2: radial-gradient(ellipse at top, rgba(157, 78, 221, 0.25), transparent 60%),
            radial-gradient(ellipse at bottom right, rgba(255, 45, 85, 0.20), transparent 60%),
            radial-gradient(ellipse at bottom left, rgba(255, 95, 158, 0.18), transparent 60%);
  --shadow-glow: 0 10px 40px rgba(255, 45, 85, 0.25), 0 0 80px rgba(157, 78, 221, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

img { max-width: 100%; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--grad-2);
  pointer-events: none;
  z-index: 0;
}

#hearts-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

section, header, footer { position: relative; z-index: 2; }

h2.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  text-align: center;
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.02em;
}

.section-sub {
  text-align: center;
  color: var(--ink-mute);
  font-size: 0.95rem;
  margin-top: 0.3rem;
  margin-bottom: 2.5rem;
  font-style: italic;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.5rem 2rem;
}

.hero-inner {
  max-width: 900px;
  width: 100%;
  animation: fadeUp 1.4s ease;
}

.title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(3.5rem, 11vw, 8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 2.8rem;
}

.title .name-a, .title .name-b {
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.title .amp {
  color: var(--red);
  display: inline-block;
  font-size: 0.7em;
  margin: 0 0.18em;
  vertical-align: 0.15em;
  text-shadow: 0 0 30px rgba(255, 45, 85, 0.75), 0 0 60px rgba(255, 95, 158, 0.45);
  animation: heartBeat 1.6s ease-in-out infinite;
  -webkit-text-fill-color: var(--red);
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  20% { transform: scale(1.18); }
  40% { transform: scale(0.94); }
  60% { transform: scale(1.12); }
}

/* ---------- SAYAÇ ---------- */
.counter {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  max-width: 720px;
  margin: 0 auto 2rem;
}

@media (max-width: 640px) {
  .counter { grid-template-columns: repeat(3, 1fr); }
}

.cell {
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.12), rgba(157, 78, 221, 0.12));
  border: 1px solid rgba(255, 95, 158, 0.25);
  border-radius: 16px;
  padding: 1rem 0.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cell:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.cell .num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cell .lbl {
  display: block;
  font-size: 0.7rem;
  text-transform: lowercase;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  margin-top: 0.5rem;
}

.scroll-cue {
  display: inline-block;
  margin-top: 3rem;
  width: 24px;
  height: 40px;
  border: 2px solid var(--pink-soft);
  border-radius: 14px;
  position: relative;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.scroll-cue:hover { opacity: 1; }

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--pink);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease infinite;
}

@keyframes scrollDot {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 14px); opacity: 0; }
}

/* ---------- MEKTUPLAR (zarf + modal) ---------- */
.letters {
  padding: 6rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.envelopes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.envelope {
  cursor: pointer;
  perspective: 1200px;
  outline: none;
}

.envelope:focus-visible .envelope-card {
  box-shadow:
    0 18px 50px rgba(255, 45, 85, 0.4),
    0 0 0 3px rgba(255, 95, 158, 0.5);
}

.envelope-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #ff6aa3 0%, #e91e63 60%, #ad1457 100%);
  border-radius: 6px;
  box-shadow:
    0 18px 45px rgba(255, 45, 85, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.4),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.45s ease;
}

.envelope:hover .envelope-card {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow:
    0 28px 60px rgba(255, 45, 85, 0.5),
    0 6px 18px rgba(0, 0, 0, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* zarf gövdesi (alt taraf) */
.envelope-body {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 49%, rgba(0,0,0,0.08) 50%, transparent 51%, transparent 100%),
    linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.06) 50%);
  z-index: 1;
}

.envelope-body::before {
  /* alt sol köşegen */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

/* zarf üst flap (üçgen) */
.envelope-flap {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ff85b3 0%, #ff5990 100%);
  clip-path: polygon(0 0, 100% 0, 50% 60%);
  transform-origin: top center;
  transition: transform 0.7s cubic-bezier(0.6, 0, 0.4, 1);
  z-index: 4;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

/* meta bilgi - zarf üzerinde */
.envelope-meta {
  position: absolute;
  bottom: 14%;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff5f8;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  pointer-events: none;
  z-index: 2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.env-heart {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.7);
}

.env-to {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.env-date {
  font-size: 0.85rem;
  opacity: 0.9;
  letter-spacing: 0.04em;
}

/* wax seal — kalpli mühür */
.envelope-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  background: radial-gradient(circle at 30% 30%, #ff5990, #c2185b 60%, #880e4f);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3),
    inset 0 2px 3px rgba(255, 255, 255, 0.25);
  z-index: 5;
  transition: transform 0.5s ease, opacity 0.4s ease;
}

.envelope-hint {
  text-align: center;
  margin-top: 0.8rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--ink-mute);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  opacity: 0.7;
  transition: opacity 0.3s, color 0.3s;
}

.envelope:hover .envelope-hint {
  opacity: 1;
  color: var(--pink-soft);
}

/* açık durum: flap yukarı dönsün, mühür dağılsın */
.envelope.open .envelope-flap {
  transform: rotateX(-180deg);
}

.envelope.open .envelope-seal {
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}

/* mektup modalı */
.letter-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 4, 8, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 250;
  padding: 2rem 1rem;
  overflow-y: auto;
  display: grid;
  place-items: start center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.letter-modal:not([hidden]) {
  animation: modalIn 0.4s ease forwards;
}

@keyframes modalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.letter-modal[hidden] { display: none; }

.letter-modal .paper {
  background:
    linear-gradient(180deg, #fff5f8 0%, #ffe4ee 100%);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 1.85em, rgba(194, 24, 91, 0.06) 1.85em 1.86em),
    linear-gradient(180deg, #fff5f8 0%, #ffe4ee 100%);
  color: #3a1a25;
  max-width: 640px;
  width: 100%;
  padding: clamp(2.2rem, 5vw, 4rem);
  border-radius: 4px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(255, 95, 158, 0.25),
    0 0 0 1px rgba(194, 24, 91, 0.18);
  font-family: 'Cormorant Garamond', serif;
  position: relative;
  margin: 1.5rem 0;
  animation: paperOpen 0.7s cubic-bezier(0.34, 1.32, 0.64, 1);
  transform-origin: top center;
}

@keyframes paperOpen {
  0% { opacity: 0; transform: translateY(-30px) scaleY(0.6); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scaleY(1); }
}

.paper-meta {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: #a8456b;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.paper h4 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: #c2185b;
  margin-bottom: 1.5rem;
}

.paper-body p {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.85;
  color: #3a1a25;
  margin-bottom: 1.2rem;
  font-weight: 400;
}

.paper-body em {
  color: #c2185b;
  font-weight: 500;
}

.paper-sign {
  font-family: 'Dancing Script', cursive;
  font-size: 1.7rem;
  color: #c2185b;
  text-align: right;
  margin-top: 2rem;
  font-weight: 600;
}

.paper-locked {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.paper-lock {
  width: 52px;
  height: 52px;
  color: #c2185b;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 14px rgba(255, 95, 158, 0.45));
  animation: lockGlow 3s ease-in-out infinite;
}

.paper-locked-tag {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: #a8456b;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.paper-pin-form {
  display: flex;
  gap: 0.5rem;
  max-width: 280px;
  margin: 0 auto;
}

.paper-pin-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(194, 24, 91, 0.3);
  border-radius: 24px;
  padding: 0.75rem 1.1rem;
  color: #3a1a25;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  min-width: 0;
}

.paper-pin-input:focus {
  border-color: #c2185b;
  box-shadow: 0 0 0 3px rgba(194, 24, 91, 0.15);
}

.paper-pin-input::placeholder {
  color: #a8456b;
  opacity: 0.5;
  letter-spacing: 0.3em;
  text-transform: lowercase;
}

.paper-pin-submit {
  background: linear-gradient(135deg, #ff5990, #c2185b);
  border: none;
  color: white;
  padding: 0.75rem 1.4rem;
  border-radius: 24px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s, opacity 0.3s;
  white-space: nowrap;
}

.paper-pin-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(194, 24, 91, 0.35);
}

.paper-pin-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.paper-pin-msg {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-style: italic;
  font-family: 'Inter', sans-serif;
  min-height: 1.2em;
  color: #a8456b;
}

.paper-pin-msg.error { color: #d32f2f; }
.paper-pin-msg.success { color: #2e7d32; }
.paper-pin-msg.info { color: #c2185b; }

.paper-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(194, 24, 91, 0.08);
  border: 1px solid rgba(194, 24, 91, 0.25);
  color: #c2185b;
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s, transform 0.2s;
  font-family: inherit;
}

.paper-close:hover {
  background: rgba(194, 24, 91, 0.18);
  transform: rotate(90deg);
}

/* ---------- GALERİ ---------- */
.gallery {
  padding: 6rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.grid figure {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 1;
  cursor: pointer;
  border: 1px solid rgba(255, 95, 158, 0.18);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.grid figure:nth-child(7n+1) { aspect-ratio: 1 / 1.3; }
.grid figure:nth-child(11n+5) { aspect-ratio: 1.3 / 1; }

.grid figure:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-glow);
}

.grid figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: saturate(0.95);
}

.grid figure:hover img {
  transform: scale(1.08);
  filter: saturate(1.1);
}

/* ---------- PİN GATE ---------- */
.gate {
  max-width: 480px;
  margin: 3rem auto 0;
  padding: 0 1rem;
}

.gate-card {
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.06), rgba(157, 78, 221, 0.06));
  border: 1px solid rgba(255, 95, 158, 0.25);
  border-radius: 22px;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.4rem, 3vw, 2.4rem);
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 60px rgba(255, 95, 158, 0.1);
}

.lock-icon {
  width: 56px;
  height: 56px;
  color: var(--pink);
  filter: drop-shadow(0 0 16px rgba(255, 95, 158, 0.55));
  margin-bottom: 1.2rem;
  animation: lockGlow 3s ease-in-out infinite;
}

@keyframes lockGlow {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(255, 95, 158, 0.4)); }
  50% { filter: drop-shadow(0 0 24px rgba(255, 95, 158, 0.75)); }
}

.gate-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.7rem;
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.4rem;
}

.gate-tag {
  color: var(--ink-mute);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  margin-bottom: 1.6rem;
  line-height: 1.5;
}

#pin-form {
  display: flex;
  gap: 0.5rem;
  max-width: 320px;
  margin: 0 auto;
}

#pin-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 95, 158, 0.3);
  border-radius: 30px;
  padding: 0.85rem 1.2rem;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  min-width: 0;
}

#pin-input::placeholder {
  color: var(--ink-mute);
  letter-spacing: 0.3em;
  text-transform: lowercase;
}

#pin-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 95, 158, 0.15), 0 0 24px rgba(255, 95, 158, 0.25);
}

#pin-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#pin-submit {
  background: var(--grad-1);
  border: none;
  color: white;
  padding: 0.85rem 1.6rem;
  border-radius: 30px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease, opacity 0.3s;
  white-space: nowrap;
}

#pin-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 45, 85, 0.45);
}

#pin-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.gate-msg {
  margin-top: 1.2rem;
  font-size: 0.92rem;
  min-height: 1.4em;
  font-family: 'Inter', sans-serif;
  font-style: italic;
  color: var(--ink-mute);
  transition: color 0.3s;
}

.gate-msg.error { color: #ff7c95; }
.gate-msg.success { color: #9affb6; }
.gate-msg.info { color: var(--pink-soft); }

.gate.shake .gate-card { animation: gateShake 0.45s ease; }
@keyframes gateShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.logout-btn {
  display: block;
  margin: 0 auto 2.2rem;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 95, 158, 0.08);
  border: 1px solid rgba(255, 95, 158, 0.3);
  border-radius: 22px;
  color: var(--ink-mute);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.logout-btn:hover {
  color: var(--ink);
  border-color: var(--pink);
  background: rgba(255, 95, 158, 0.15);
}

.more-btn {
  display: block;
  margin: 2.5rem auto 0;
  padding: 0.9rem 2.2rem;
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.18), rgba(157, 78, 221, 0.18));
  border: 1px solid rgba(255, 95, 158, 0.4);
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  border-radius: 30px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.more-btn:hover {
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.32), rgba(157, 78, 221, 0.32));
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.gallery-empty {
  text-align: center;
  color: var(--ink-mute);
  font-style: italic;
  padding: 4rem 1rem;
  border: 1px dashed rgba(255, 95, 158, 0.3);
  border-radius: 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 4, 8, 0.95);
  display: grid;
  place-items: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(20px);
  padding: 2rem;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: var(--shadow-glow);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 95, 158, 0.15);
  border: 1px solid rgba(255, 95, 158, 0.4);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 3rem 1rem 4rem;
  color: var(--ink-mute);
  font-family: 'Dancing Script', cursive;
  font-size: 1.3rem;
}

/* ---------- ANIMASYONLAR ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- YAN POLAROID SÜSLER ---------- */
.deco {
  position: absolute;
  width: clamp(120px, 11vw, 170px);
  aspect-ratio: 3 / 4;
  background: linear-gradient(180deg, #fff5f8 0%, #ffe4ee 100%);
  padding: 10px 10px 32px;
  border-radius: 4px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 6px 14px rgba(0, 0, 0, 0.35),
    0 0 36px rgba(255, 95, 158, 0.18);
  border: 1px solid rgba(255, 95, 158, 0.18);
  opacity: 0;
  transform: translateY(40px) rotate(var(--rot, 0deg)) scale(0.92);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 1;
}

.deco.visible {
  opacity: 0.92;
  transform: translateY(0) rotate(var(--rot, 0deg)) scale(1);
}

.deco img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  filter: saturate(0.95) contrast(1.04);
}

.deco::after {
  content: '';
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
  opacity: 0.55;
  border-radius: 4px;
}

.deco-left { left: 1.5vw; }
.deco-right { right: 1.5vw; }

@media (max-width: 1100px) {
  .deco { width: clamp(95px, 12vw, 135px); }
  .deco-left { left: 0.5vw; }
  .deco-right { right: 0.5vw; }
}

@media (max-width: 768px) {
  .deco { display: none; }
}

/* ---------- KEDİLER ---------- */
.cat {
  position: fixed;
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 0 14px rgba(255, 95, 158, 0.35))
          drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
}

.cat-right {
  right: clamp(0.5rem, 2vw, 1.5rem);
  width: clamp(58px, 9vw, 90px);
  color: var(--pink-soft);
  animation: catBounceIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
}

.cat-left {
  left: clamp(0.5rem, 2vw, 1.5rem);
  width: clamp(82px, 13vw, 130px);
  color: var(--purple);
  animation: catBounceIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s both;
}

.cat-right .cat-tail {
  transform-box: fill-box;
  transform-origin: 0% 90%;
  animation: tailWag 2.4s ease-in-out infinite;
}

.cat-right .eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 5.5s ease-in-out infinite;
}

.cat-left .zzz text {
  transform-box: fill-box;
  transform-origin: center;
  animation: zzzFloat 3s ease-in-out infinite;
}

.cat-left .zzz text:nth-child(2) { animation-delay: 0.5s; }
.cat-left .zzz text:nth-child(3) { animation-delay: 1s; }

.cat:hover { filter: drop-shadow(0 0 22px rgba(255, 95, 158, 0.6)); }

@keyframes tailWag {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-14deg); }
}

@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(0.1); }
  96% { transform: scaleY(1); }
}

@keyframes zzzFloat {
  0% { opacity: 0; transform: translate(0, 0) scale(0.7); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(8px, -14px) scale(1.1); }
}

@keyframes catBounceIn {
  0% { opacity: 0; transform: translateY(60px) scale(0.8); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- MOBİL ---------- */
@media (max-width: 768px) {
  .hero {
    padding: 2.5rem 1rem 1.5rem;
  }

  .kicker {
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    margin-bottom: 1rem;
  }

  .title { margin-bottom: 1.2rem; }
  .title .amp { vertical-align: 0.1em; }

  .subtitle {
    margin-bottom: 2rem;
    padding: 0 0.5rem;
    line-height: 1.5;
  }

  .counter { gap: 0.5rem; }

  .cell {
    padding: 0.75rem 0.3rem;
    border-radius: 12px;
  }

  .cell .lbl {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    margin-top: 0.35rem;
  }

  .scroll-cue { margin-top: 2rem; }

  .letters, .gallery {
    padding: 4rem 1rem;
  }

  .envelopes {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    margin-top: 2rem;
  }

  .envelope-card { aspect-ratio: 16 / 11; }
  .env-to { font-size: 1.1rem; }
  .env-date { font-size: 0.78rem; }

  .letter-modal { padding: 1rem 0.75rem; }
  .letter-modal .paper { padding: 1.8rem 1.4rem; margin: 1rem 0; }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .grid figure {
    border-radius: 10px;
  }

  /* mobilde figürler eşit kare — variant aspect ratio'ları kapat */
  .grid figure:nth-child(7n+1),
  .grid figure:nth-child(11n+5) {
    aspect-ratio: 1;
  }

  .lightbox { padding: 1rem; }
  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
  }

  footer {
    padding: 2rem 1rem 6rem;
  }
}

@media (max-width: 380px) {
  .hero { padding: 2rem 0.75rem 1.5rem; }
  .grid { gap: 0.5rem; }
  .cell { padding: 0.6rem 0.2rem; }
  .cell .lbl { font-size: 0.55rem; }
}

/* erişilebilirlik: hareketten rahatsız olanlar için */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cat { animation: none !important; }
  #hearts-bg { display: none; }
}
