/* =============================================
   FONT TANIMLARI
   ============================================= */

@font-face {
  font-family: 'Aston Script';
  src: url('./src/fonts/Aston Script.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Milton One';
  src: url('./src/fonts/Milton_One.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #f5f0eb; /* arka plan rengi */
}

/* Kitap tam ekranı kaplar */
#book {
  width: 100%;
  height: 100%;
}

/* Her bir sayfa */
.page {
  width: 100%;
  height: 100%;
  background-image: url('src/images/bg.jpg');
  background-repeat: repeat;
  overflow: hidden;
}

/* Sayfa iç içeriği */
.page-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  position: relative;
  overflow: visible;
  font-family: serif;
  color: var(--first-color);
}

/* Sayfa Numarası (Çim Dokulu Rozet) */
.page-number {
  position: absolute;
  top: clamp(16px, 3.5vw, 24px);
  right: clamp(18px, 4vw, 28px);
  font-family: var(--third-font);
  font-size: clamp(0.8rem, 2.2vw, 1.05rem);
  letter-spacing: 0.12em;
  color: var(--first-color);
  background: url('src/images/Grass_Texture.png') repeat;
  background-size: cover;
  padding: 6px 14px;
  border-radius: 12px;
  border: 1px solid rgba(246, 239, 225, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 20;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}

/* Div'i tamamen kaplayan görsel */
.first-section-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none; /* dokunma olaylarını StPageFlip'e bırak */
}

/* Sayfa 1 Sağ Alt İmza Görseli */
.signature-img {
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: clamp(100px, 20vw, 150px);
  z-index: 10;
  pointer-events: none;
}

/* Tüm Ekran Üzerinde İnteraktif Zarf Açılış Ekranı */
.envelope-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  overflow: hidden; /* Taşmaları gizleyerek kaydırma çubuklarını engelle */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.45);
  
  /* Yüklenene kadar başlangıç blur efekti */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0.8s ease, backdrop-filter 0.8s ease, -webkit-backdrop-filter 0.8s ease, background-color 0.8s ease;
  
  /* 3D Perspektif */
  perspective: 1500px;
}

/* Zarf yüklendiğinde blur kalkar */
.envelope-overlay.loaded {
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  background: rgba(255, 255, 255, 0.1);
}

.envelope-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  
  /* Ekranı tam kaplama (object-fit: cover mantığı) */
  width: 100vw;
  height: calc(100vw * (2876 / 2813));
  min-height: 100vh;
  min-width: calc(100vh * (2813 / 2876));
  
  /* 3D elemanların düzgün render edilmesi için */
  transform-style: preserve-3d;
  
  /* Görseller yüklenene kadar görünmez yap, yüklenince fade-in */
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* Yüklendiğinde zarfı göster */
.envelope-overlay.loaded .envelope-container {
  opacity: 1;
}

.envelope-back {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.envelope-front {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 55.946%;
  z-index: 2;
  
  /* 3D Döndürme Ayarları */
  transform-origin: top center;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: visible;
}

/* Zarf Açılma Efekti */
.envelope-overlay.open .envelope-front {
  transform: rotateX(180deg);
}

.envelope-click-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--third-font), serif;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  background-image: url('./src/images/Grass_Texture.png');
  background-repeat: repeat;
  background-size: cover;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: floatHint 2.4s infinite ease-in-out;
}

@keyframes floatHint {
  0%, 100% {
    transform: translate(-50%, 0);
    opacity: 0.85;
  }
  50% {
    transform: translate(-50%, -8px);
    opacity: 1;
  }
}

/* Ekranın küçük kenarının %67'si kadar, kare (Maksimum 550px) */
.square-box {
  position: relative;          /* çim elemanları için */
  width: min(67vw, 67vh);
  height: min(67vw, 67vh);
  max-width: 650px;
  max-height: 650px;
  background: url('src/images/Grass_Texture.png') repeat;
  background-size: cover;
  overflow: hidden;            /* içerik kutuyu büyütemesin */
}

/* Mobilde %80 genişlik, 2/3 oranında yükseklik (Maksimum 550px) */
@media (max-width: 768px) {
  .square-box {
    width: min(80vw, 80vh);
    height: calc(min(80vw, 80vh) * 1.5);
    max-height: 75vh; /* ekran dışına taşmayı engelle */
    max-width: 550px;
  }
}

/* =============================================
   SAYFA 2 — İÇERİK STİLLERİ
   ============================================= */

/* square-box içeriği dikey ortala */
#page-2 .square-box {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  container-type: inline-size;
}

.header-section-title {
  font-family: 'Aston Script', cursive;
  font-size: clamp(0.9rem, 7.2cqi, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--first-color);
  white-space: nowrap;
  max-width: 100%;
}

.header-section-date {
  font-family: var(--third-font);
  font-size: clamp(1.04rem, 2.6vw, 1.3rem);
  letter-spacing: 0.12em;
  color: var(--first-color);
}

.header-section-subtitle {
  font-family: var(--third-font);
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  letter-spacing: 0.1em;
  line-height: 1.7;
  color: var(--first-color);
  margin-top: 4px;
}

.family-names-section {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 2vw, 24px);
  margin-top: 16px;
  width: 100%;
}

.family-column {
  flex: 1;
  text-align: center;
}

.family-surname {
  font-family: var(--third-font);
  font-size: clamp(0.68rem, 2.4cqi, 1.05rem);
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--first-color);
}

.family-surname span {
  white-space: nowrap;
  display: inline-block;
}

/* Sayfa 2 Çiçek Dekorları */
.sec2-flower-tl,
.sec2-flower-bl {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.sec2-flower-tl {
  width: clamp(110px, 30cqi, 210px);
  top: clamp(-48px, -10cqi, -30px);
  left: clamp(-68px, -14cqi, -42px);
}

.sec2-flower-bl {
  width: clamp(89px, 24.3cqi, 170px); /* %10 daha küçük */
  bottom: clamp(-35px, 2cqi, -12px);
  left: clamp(-88px, -18cqi, -50px); /* Mobilde biraz daha solda */
}

.sec2-character-tr {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  top: clamp(-90px, -18cqi, -55px);
  right: clamp(-35px, -7cqi, -15px);
  width: clamp(110px, 28cqi, 185px);
}


/* =============================================
   SAYFA 3 — PROGRAM STİLLERİ
   ============================================= */

#page-3 .square-box {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: 24px;
  container-type: inline-size;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid rgba(246, 239, 225, 0.3);
}

.schedule-item:last-child {
  border-bottom: none;
}

.event-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(72px, 18cqi, 108px);
  height: clamp(72px, 18cqi, 108px);
  flex-shrink: 0;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.schedule-item .event {
  margin-left: 12px;
  margin-right: auto;
  font-family: var(--third-font);
  font-size: clamp(1.04rem, 2.86vw, 1.43rem);
  letter-spacing: 0.12em;
  color: var(--first-color);
}

.schedule-item .time {
  font-family: var(--third-font);
  font-size: clamp(1.04rem, 2.86vw, 1.43rem);
  letter-spacing: 0.1em;
  color: var(--first-color);
}

/* Köşe Dekorları */
.corner-flower,
.corner-flower-bl {
  position: absolute;
  width: clamp(120px, 32cqi, 230px);
  pointer-events: none;
  z-index: 2;
}

.corner-flower {
  top: clamp(-35px, -7cqi, -20px);
  right: clamp(-55px, -11cqi, -30px);
}

.corner-flower-bl {
  bottom: clamp(-55px, -11cqi, -30px);
  left: clamp(-55px, -11cqi, -30px);
}

/* =============================================
   SAYFA 4 — LCV STİLLERİ
   ============================================= */

/* Sayfa 4 Köşe Dekorları */
.sec4-flower-tl,
.sec4-flower-tr {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.sec4-flower-tl {
  width: clamp(172px, 46cqi, 312px);
  top: clamp(-30px, -7cqi, -15px);
  left: clamp(-45px, -9cqi, -25px);
}

.sec4-flower-tr {
  width: clamp(138px, 37cqi, 265px);
  top: clamp(-35px, -7cqi, -20px);
  right: clamp(-55px, -11cqi, -30px);
}

#page-4 .square-box {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: clamp(16px, 4cqi, 28px);
  text-align: center;
  gap: clamp(8px, 2cqi, 14px);
  container-type: inline-size;
}

#page-4 .schedule-title {
  font-family: 'Aston Script', cursive;
  font-size: clamp(1.8rem, 5cqi, 2.8rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--first-color);
  line-height: 1;
}

#page-4 .info-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

#page-4 .info-desc {
  font-family: var(--third-font);
  font-size: clamp(0.7rem, 1.6vw, 0.92rem);
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--first-color);
  text-align: center;
}

.info-desc-location {
  font-family: var(--third-font);
  font-size: clamp(0.65rem, 1.56vw, 0.87rem);
  letter-spacing: 0.1em;
  line-height: 1.8;
  color: var(--first-color);
  text-align: center;
}

/* =============================================
   LCV FORM STİLLERİ
   ============================================= */

.lcv-form {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.5cqi, 10px);
  width: 100%;
  max-width: 320px;
  margin-top: 4px;
}

.lcv-input {
  width: 100%;
  padding: clamp(6px, 1.5cqi, 10px) clamp(10px, 2.5cqi, 14px);
  background: rgba(246, 239, 225, 0.14);
  border: 1px solid rgba(246, 239, 225, 0.4);
  border-radius: 8px;
  color: var(--first-color);
  font-family: var(--third-font), serif;
  font-size: clamp(0.68rem, 1.8vw, 0.85rem);
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
  box-sizing: border-box;
}

.lcv-input::placeholder {
  color: rgba(246, 239, 225, 0.65);
}

.lcv-input:focus {
  border-color: var(--first-color);
  background: rgba(246, 239, 225, 0.24);
}

/* INTL-TEL-INPUT TEMA STİLLERİ */
.iti {
  width: 100%;
}

.iti__selected-flag {
  background: rgba(246, 239, 225, 0.1);
  border-radius: 8px 0 0 8px;
  padding: 0 8px 0 10px;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.iti__selected-flag:hover {
  background: rgba(246, 239, 225, 0.22);
}

.iti__selected-dial-code {
  color: var(--first-color) !important;
  font-family: var(--third-font), serif;
  font-size: clamp(0.68rem, 1.8vw, 0.85rem);
  margin-left: 4px;
}

.iti__arrow {
  border-top-color: var(--first-color) !important;
}

.iti__arrow--up {
  border-bottom-color: var(--first-color) !important;
}

.iti__country-list {
  background-color: #3d2e24 !important;
  color: #f6efe1 !important;
  border: 1px solid rgba(246, 239, 225, 0.4) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  max-height: 180px !important;
  z-index: 9999 !important;
  font-family: var(--third-font), serif;
  font-size: 0.8rem;
}

.iti__country-list .iti__country {
  padding: 8px 10px !important;
}

.iti__country-list .iti__country:hover,
.iti__country-list .iti__country.iti__highlight {
  background-color: rgba(246, 239, 225, 0.2) !important;
}

.iti__country-name,
.iti__dial-code {
  color: #f6efe1 !important;
}

#lcv-phone {
  width: 100%;
}

/* Katılım Butonları (Yan Yana) */
.lcv-attendance-options {
  display: flex;
  gap: 8px;
  width: 100%;
}

.attendance-btn {
  flex: 1;
  padding: clamp(6px, 1.5cqi, 9px) 6px;
  background: rgba(246, 239, 225, 0.1);
  border: 1px solid rgba(246, 239, 225, 0.4);
  border-radius: 8px;
  color: var(--first-color);
  font-family: var(--third-font), serif;
  font-size: clamp(0.65rem, 1.6vw, 0.82rem);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.attendance-btn:hover {
  background: rgba(246, 239, 225, 0.25);
}

.attendance-btn.active {
  background: var(--first-color);
  color: #3d2e24;
  font-weight: 700;
  border-color: var(--first-color);
}

/* Kişi Seçimi */
.lcv-guest-count {
  display: flex;
  width: 100%;
  transition: all 0.3s ease;
}

.lcv-guest-select {
  width: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23f6efe1' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 28px;
}

.lcv-guest-select option {
  background: #3d2e24;
  color: #f6efe1;
  padding: 8px;
  font-family: var(--third-font), serif;
}

/* Gönder Butonu */
.lcv-submit-btn {
  width: 100%;
  padding: clamp(8px, 2cqi, 11px);
  margin-top: 2px;
  background: var(--first-color);
  color: #3d2e24;
  border: none;
  border-radius: 8px;
  font-family: var(--third-font), serif;
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.lcv-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.lcv-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Bildirim Mesajı Stilleri */
.lcv-response-msg {
  font-family: var(--third-font), serif;
  font-size: clamp(0.65rem, 1.6vw, 0.8rem);
  text-align: center;
  margin-top: 2px;
  min-height: 18px;
  line-height: 1.3;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.lcv-response-msg.success {
  color: #a5d6a7;
  font-weight: 600;
}

.lcv-response-msg.error {
  color: #ef9a9a;
  font-weight: 600;
}

/* KATILIM BİLDİRİLDİ ÖZET KARTI STİLLERİ */
.lcv-submitted-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.5cqi, 12px);
  padding: clamp(14px, 3cqi, 20px) clamp(16px, 4cqi, 24px);
  background: rgba(246, 239, 225, 0.14);
  border: 1px solid rgba(246, 239, 225, 0.4);
  border-radius: 12px;
  width: 100%;
  max-width: 320px;
  margin-top: 6px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  font-family: var(--third-font), serif !important;
}

.lcv-submitted-card * {
  font-family: var(--third-font), serif !important;
}

.lcv-card-icon {
  font-size: clamp(1.4rem, 4cqi, 2rem);
  line-height: 1;
}

.lcv-card-name {
  font-family: var(--third-font), serif !important;
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  color: var(--first-color);
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

.lcv-card-status {
  font-family: var(--third-font), serif !important;
  font-size: clamp(0.78rem, 2vw, 0.95rem);
  color: rgba(246, 239, 225, 0.9);
  letter-spacing: 0.08em;
  margin: 0;
  line-height: 1.4;
}

.lcv-edit-btn {
  width: 100%;
  padding: clamp(7px, 1.8cqi, 10px);
  margin-top: 4px;
  background: transparent;
  border: 1px solid var(--first-color);
  color: var(--first-color);
  border-radius: 8px;
  font-family: var(--third-font), serif !important;
  font-size: clamp(0.7rem, 1.8vw, 0.82rem);
  letter-spacing: 0.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lcv-edit-btn:hover {
  background: var(--first-color);
  color: #3d2e24;
  font-weight: 700;
}

/* =============================================
   SAYFA 5 — GERİ SAYIM STİLLERİ
   ============================================= */

#page-5 .square-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px 24px;
  text-align: center;
  container-type: inline-size;
}

/* Sağ Üst Karakter */
.countdown-character-tr {
  position: absolute;
  top: clamp(-95px, -16cqi, -60px);
  right: 0px;
  width: clamp(110px, 28cqi, 185px);
  pointer-events: none;
  z-index: 5;
}

@media (max-width: 768px) {
  #page-5 .square-box {
    padding: 24px 16px;
  }
}

.countdown-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 6cqi, 32px);
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  align-items: center;
  justify-items: center;
  container-type: inline-size;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.countdown-number {
  font-family: var(--third-font);
  font-size: clamp(2.8rem, 19cqi, 4.8rem);
  font-weight: 400;
  color: var(--first-color);
  line-height: 1;
  min-width: 2ch;
  text-align: center;
  white-space: nowrap;
}

.countdown-label {
  font-family: var(--third-font);
  font-size: clamp(0.85rem, 5cqi, 1.25rem);
  letter-spacing: 0.18em;
  color: var(--first-color);
  opacity: 0.85;
  white-space: nowrap;
}

/* =============================================
   SAYFA 6 — KONUM STİLLERİ
   ============================================= */

#page-6 .square-box {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: 28px;
  text-align: center;
  gap: 16px;
}

/* Yürüyen Çiçek */
.walking-flower {
  position: absolute;
  top: -45px;
  left: 0;
  width: clamp(50px, 12vw, 80px);
  pointer-events: none;
  z-index: 3;
  animation: walkBackAndForth 25s linear infinite;
}

.walking-flower.paused {
  animation-play-state: paused;
}

@keyframes walkBackAndForth {
  0% {
    left: 0;
    transform: scaleX(1);
  }
  48% {
    transform: scaleX(1);
  }
  50% {
    left: calc(100% - clamp(50px, 12vw, 80px));
    transform: scaleX(-1);
  }
  98% {
    transform: scaleX(-1);
  }
  100% {
    left: 0;
    transform: scaleX(1);
  }
}

.info-title {
  font-family: var(--third-font);
  font-size: clamp(1.36rem, 3.5vw, 1.82rem);
  letter-spacing: 0.14em;
  color: var(--first-color);
  margin-top: 15px;
  margin-bottom: 8px;
}

.location-info-half {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.location-map-half {
  width: 100%;
  flex: 1;           /* kalan alanı doldur */
  min-height: 0;     /* flex shrink için gerekli */
  display: flex;
}

.location-map-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;      /* map-half'ın tüm yüksekliğini kapla */
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.location-map-link:hover {
  transform: scale(1.03);
}

.location-map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.map-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: #222;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: sans-serif;
  font-size: clamp(0.65rem, 1.4vw, 0.85rem);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

/* =============================================
   ÇİM ÇERÇEVE
   ============================================= */

:root {
  --grass-thickness: 60px;
  --first-color: #f6efe1;

  /* Fontlar */
  --first-font: "cabrito-didone-normal", sans-serif;
  --second-font: "bickham-script-pro-3", sans-serif;
  --third-font: "trajan-pro-3", serif;
  --fourth-font: "Milton One", serif;
}



.g-corner, .g-edge {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

/* Köşeler */
.g-tl { top: -10px; left: -10px; width: var(--grass-thickness); height: var(--grass-thickness); background: url('./src/images/Grass_Top_L.png') no-repeat; background-size: 100% 100%; }
.g-tr { top: -10px; right: -10px; width: var(--grass-thickness); height: var(--grass-thickness); background: url('./src/images/Grass_Top_R.png') no-repeat; background-size: 100% 100%; }
.g-bl { bottom: -10px; left: -10px; width: var(--grass-thickness); height: var(--grass-thickness); background: url('./src/images/Grass_Bottom_L.png') no-repeat; background-size: 100% 100%; }
.g-br { bottom: -10px; right: -10px; width: var(--grass-thickness); height: var(--grass-thickness); background: url('./src/images/Grass_Bottom_R.png') no-repeat; background-size: 100% 100%; }

/* Kenarlar */
.g-top    { top: -10px;    left: calc(var(--grass-thickness) - 10px); right: calc(var(--grass-thickness) - 10px); height: var(--grass-thickness); background: url('./src/images/Grass_Top.png') repeat-x top left; background-size: auto var(--grass-thickness); }
.g-bottom { bottom: -10px; left: calc(var(--grass-thickness) - 10px); right: calc(var(--grass-thickness) - 10px); height: var(--grass-thickness); background: url('./src/images/Grass_Bottom.png') repeat-x bottom left; background-size: auto var(--grass-thickness); }
.g-left   { top: calc(var(--grass-thickness) - 10px); bottom: calc(var(--grass-thickness) - 10px); left: -10px;  width: var(--grass-thickness); background: url('./src/images/Grass_Left.png') repeat-y top left; background-size: var(--grass-thickness) auto; }
.g-right  { top: calc(var(--grass-thickness) - 10px); bottom: calc(var(--grass-thickness) - 10px); right: -10px; width: var(--grass-thickness); background: url('./src/images/Grass_Right.png') repeat-y top right; background-size: var(--grass-thickness) auto; }

/* =============================================
   EN ÜST KAYDIRMA / DOKUNMA İPUCU (TOP HINT)
   ============================================= */

.top-scroll-hint {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-25px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(94vw, 540px);
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(209, 97, 48, 0.45);
  border-radius: 30px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.6s ease;
  pointer-events: none;
  text-align: center;
}

.top-scroll-hint.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.top-scroll-hint .hint-text {
  font-family: var(--third-font), serif;
  font-size: clamp(0.80rem, 2.4vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #3d2e24;
  line-height: 1.3;
}


