/* =========================================================
   1. AŞK TELSİZİ (ANLIK DÜRTME / SARILMA)
   ========================================================= */
.nudge-card {
  background: var(--card-bg, rgba(16, 28, 56, 0.65));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  max-width: 440px;
  margin: 0 auto 20px auto;
  border: 2px solid var(--accent-color, var(--card-border, #ff4d6d));
  box-shadow: 0 0 15px var(--accent-color, rgba(255, 77, 109, 0.4));
}

.nudge-btn {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--gradient-start, #0099ff), var(--gradient-end, #e040fb));
  color: #ffffff;
  font-size: 2.5rem;
  cursor: pointer;
  margin: 15px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px var(--glow-color, rgba(0, 153, 255, 0.4));
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
}

.nudge-btn:active {
  transform: scale(0.88);
}

.nudge-btn.pulsing {
  animation: heartPulse 0.8s infinite ease-in-out;
}

@keyframes heartPulse {
  0% { transform: scale(1); box-shadow: 0 0 20px var(--accent-color, #0099ff); }
  50% { transform: scale(1.12); box-shadow: 0 0 40px var(--accent-color, #e040fb); }
  100% { transform: scale(1); box-shadow: 0 0 20px var(--accent-color, #0099ff); }
}

/* =========================================================
   4. RETRO SESLİ NOT KASETİ (MINI WALKIE-TALKIE)
   ========================================================= */
.cassette-card {
  background: var(--card-bg, rgba(16, 28, 56, 0.65));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.12));
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  max-width: 440px;
  margin: 0 auto;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.cassette-body {
  width: 100%;
  max-width: 280px;
  height: 140px;
  background: #1e293b;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  margin: 15px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px;
  box-sizing: border-box;
}

.cassette-wheel {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 4px dashed rgba(255, 255, 255, 0.4);
  background: #0f172a;
}

.cassette-body.spinning .cassette-wheel {
  animation: spinWheel 2s linear infinite;
}

@keyframes spinWheel {
  100% { transform: rotate(360deg); }
}

.rec-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rec-btn.recording {
  background: #ef4444;
  color: #ffffff;
  animation: blinkRec 1s infinite alternate;
}

@keyframes blinkRec {
  from { opacity: 1; }
  to { opacity: 0.6; }
}


/* =========================================================
   LUXURY PRO 4x4 ANI YAPBOZU & İLK 3 LİDERLİK TABLOSU
   ========================================================= */

.puzzle-card-box {
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 22px;
  background: var(--card-bg, #101c38);
  border: 1px solid var(--accent-color, #0099ff);
  border-radius: 24px;
  box-shadow: 0 10px 30px var(--glow-color, rgba(0, 153, 255, 0.25));
  text-align: center;
  position: relative;
}

/* Üst Başlık & Rozet */
.puzzle-header {
  margin-bottom: 12px;
}

.puzzle-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-color, #0099ff);
  background: rgba(0, 153, 255, 0.1);
  border: 1px solid var(--accent-color, #0099ff);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.puzzle-header h3 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

/* İstatistik Paneli (Süre & Hamle) */
.puzzle-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 16px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
}

.puzzle-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.puzzle-stat-item strong {
  color: #ffffff;
  font-weight: 700;
}

/* Yapboz Sahnesi */
.puzzle-stage-container {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 14px auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
  background: #080e1a;
}

.puzzle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  width: 100%;
  height: 100%;
}

.puzzle-piece {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  background-repeat: no-repeat;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
              border-color 0.2s ease, 
              box-shadow 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

/* Parça Seçim Efekti */
.puzzle-piece.selected {
  border: 2px solid var(--accent-color, #0099ff) !important;
  box-shadow: inset 0 0 10px var(--accent-color, #0099ff), 0 0 15px var(--accent-color, #0099ff);
  z-index: 5;
  transform: scale(0.9);
  border-radius: 6px;
}

/* Önizleme Resmi */
.puzzle-preview-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 10;
}

.puzzle-preview-img.visible {
  opacity: 1;
}

/* Tamamlandığında Çıkan Anı Notu Bandı */
.puzzle-success-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  padding: 10px 14px;
  background: rgba(10, 16, 30, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--accent-color, #0099ff);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  z-index: 12;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  pointer-events: none;
}

.puzzle-success-tag.show {
  opacity: 1;
  transform: translateY(0);
}

/* Loader (Resim Hazırlanırken) */
.puzzle-loader {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 26, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.85rem;
  z-index: 15;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.puzzle-loader.active {
  opacity: 1;
  pointer-events: auto;
}

/* Buton Grubu */
.puzzle-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.puzzle-btn {
  flex: 1;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.puzzle-btn.primary {
  background: var(--accent-color, #0099ff);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--glow-color, rgba(0, 153, 255, 0.35));
}

.puzzle-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.puzzle-btn:active {
  transform: scale(0.97);
}

/* --- ORTAK REKORLAR / İLK 3 LİDERLİK TABLOSU --- */
.puzzle-score-board {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin-top: 16px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.score-box {
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  text-align: left !important;
}

.score-box-title {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  margin-bottom: 8px !important;
  text-align: center !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.score-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.score-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 0.8rem !important;
  padding: 3px 0 !important;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.score-row:last-child {
  border-bottom: none !important;
}

.score-row span {
  color: #cbd5e1 !important;
  font-size: 0.75rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.score-row strong {
  color: var(--accent-color, #0099ff) !important;
  font-weight: 700 !important;
}

/* BİZİM HARİTAMIZ STİLLERİ */
#map-container {
  width: 100%;
  height: 350px;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--accent-color);
  box-shadow: 0 8px 25px var(--glow-color);
  z-index: 1;
}

/* Harita Açılır Pencere (Popup) Teması */
.leaflet-popup-content-wrapper {
  background: var(--card-bg, #101c38) !important;
  color: #fff !important;
  border: 1px solid var(--accent-color, #0099ff) !important;
  border-radius: 12px !important;
  padding: 5px !important;
}

.leaflet-popup-tip {
  background: var(--card-bg, #101c38) !important;
}

.map-popup-card {
  text-align: center;
  max-width: 190px;
}

.map-popup-card h4 {
  color: var(--accent-color, #0099ff);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.map-popup-card span {
  font-size: 0.75rem;
  color: #cbd5e1;
  display: block;
}

.map-popup-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  margin: 8px 0;
}

.map-popup-card p {
  font-size: 0.8rem;
  color: #e2e8f0;
  margin: 0;
  font-style: italic;
}

    * { margin: 0; padding: 0; box-sizing: border-box; }
    
    :root {
      --accent-color: #0099ff;
      --gradient-start: #0044cc;
      --gradient-end: #0099ff;
      --glow-color: rgba(0, 150, 255, 0.3);
      --card-bg: #101c38;
      --body-bg: #0b1325;
    }

    body {
      background-color: var(--body-bg);
      color: #fff;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      padding: 30px 15px 80px 15px;
      min-height: 100vh;
      text-align: center;
      overflow-x: hidden;
      transition: background-color 0.8s ease;
      position: relative;
    }


/* DİNAMİK TEMA UYUMLU KAZI-KAZAN STİLLERİ */
.scratch-card-box {
  width: 100%; /* Diğer kartlarla aynı genişliğe ulaşmasını sağlar */
  box-sizing: border-box;
  margin: 0 auto;
  padding: 22px;
  background: var(--card-bg, #101c38);
  border: 1px solid var(--accent-color, #0099ff);
  border-radius: 24px;
  box-shadow: 0 10px 30px var(--glow-color, rgba(0, 153, 255, 0.25));
  text-align: center;

}

.scratch-card-box:hover {
  transform: none !important;
}

.scratch-header {
  margin-bottom: 16px;
}

.scratch-badge {
  display: inline-block;
  font-size: 0.99rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-color, #0099ff);
  background: rgba(0, 153, 255, 0.1);
  border: 1px solid var(--accent-color, #0099ff);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.scratch-header h3 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

/* Sahne & Fotoğraf Alanı */
.scratch-stage {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: 18px;
  overflow: hidden;
  background: #050b14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  touch-action: none;
}

.scratch-bg-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fotoğraf Açıldığında Beliren Alt Bilgi Bandı */
.scratch-caption-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  padding: 10px 12px;
  background: var(--card-bg, #101c38);
  border: 1px solid var(--accent-color, #0099ff);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

#scratch-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  transition: opacity 0.5s ease;
}

/* Dinamik Buton */
.scratch-btn-modern {
  margin-top: 18px;
  width: 100%;
  padding: 12px 20px;
  background: var(--accent-color, #0099ff);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px var(--glow-color, rgba(0, 153, 255, 0.35));
  transition: all 0.2s ease;
}

.scratch-btn-modern:active {
  transform: scale(0.98);
}

/* HAFIZA OYUNU STİLLERİ (GÜNCELLENMİŞ) */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 sütun mobilde mükemmel durur */
  gap: 8px; /* Kart sayısı arttığı için aralığı 8px yaptık */
  max-width: 360px; /* Ekrana tam oturması için */
  margin: 0 auto;
  perspective: 1000px;
}
    .memory-card {
      aspect-ratio: 1 / 1;
      position: relative;
      transform-style: preserve-3d;
      transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      cursor: pointer;
      border-radius: 12px;
    }

    .memory-card.flipped, .memory-card.matched {
      transform: rotateY(180deg);
    }

    .memory-card-face {
      position: absolute;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--accent-color);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .memory-card-front {
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(5px);
      box-shadow: inset 0 0 10px var(--glow-color);
      font-size: 1.5rem;
    }

    .memory-card-back {
      transform: rotateY(180deg);
      overflow: hidden;
      background: #000;
    }

    .memory-card-back img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* UÇUŞAN GÖZ EMOJİLERİ İÇİN ARKA PLAN CANVAS */
    #eye-canvas {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 0;
    }

/* Bucket List Kartı */
    #bucket-container {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
        border: 1px solid var(--accent-color);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
        backdrop-filter: blur(8px);
        border-radius: 20px;
        padding: 25px;
        max-width: 450px;
        width: 100%;
        margin-bottom: 25px;
        z-index: 2;
        text-align: left;
    }

    #bucket-container h3 {
        font-size: 1.2rem;
        color: var(--accent-color);
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Giriş Formu */
    .bucket-form {
        display: flex;
        gap: 10px;
        margin: 15px 0 15px 0;
    }

    .bucket-form input {
        flex: 1;
        padding: 12px 16px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        background: rgba(0, 0, 0, 0.2);
        color: white;
        font-size: 0.95rem;
        outline: none;
        transition: all 0.3s ease;
    }

    .bucket-form input:focus {
        border-color: var(--accent-color);
        box-shadow: 0 0 10px var(--glow-color);
    }

    .bucket-form button {
        background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
        color: white;
        border: none;
        padding: 0 20px;
        border-radius: 12px;
        font-weight: bold;
        cursor: pointer;
        transition: transform 0.2s, box-shadow 0.2s;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .bucket-form button:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 20px var(--glow-color);
    }

    /* Tam 4-5 tane gösterip aşağı kaydıran liste alanı */
    #bucket-list {
        list-style: none;
        padding: 0;
        margin: 0;
        max-height: 230px; /* Yaklaşık 4-5 öğe sığacak yükseklik */
        overflow-y: auto;
        padding-right: 5px;
    }

    /* Özel Scrollbar */
    #bucket-list::-webkit-scrollbar {
        width: 5px;
    }
    #bucket-list::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 10px;
    }

    #bucket-list li {
        display: flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
        padding: 12px 16px;
        border-radius: 14px;
        margin-bottom: 10px;
        font-size: 0.95rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        animation: fadeIn 0.4s ease-out;
        cursor: pointer;
    }

    #bucket-list li:hover {
        background: rgba(255, 255, 255, 0.07);
        border-color: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
    }

    /* Tamamlanmış (Tik Atılmış) Durum */
    #bucket-list li.completed {
        background: rgba(16, 185, 129, 0.05);
        border-color: rgba(16, 185, 129, 0.2);
    }

    #bucket-list li.completed span.text-content {
        text-decoration: line-through;
        opacity: 0.4;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    /* TIKLAMA / DOKUNMA EFEKTİ İÇİN ANİMASYONLU EMOJİLER */
    .click-particle {
      position: fixed;
      pointer-events: none;
      z-index: 99999;
      font-size: 1.5rem;
      user-select: none;
      animation: floatUpAndFade 1s ease-out forwards;
    }

    @keyframes floatUpAndFade {
      0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.6) translateY(0) rotate(0deg);
      }
      100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.3) translateY(-60px) rotate(20deg);
      }
    }

    /* SÜRPRİZ POP-UP / GİRİŞ EKRANI */
    .popup-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--body-bg);
      opacity: 0.98;
      backdrop-filter: blur(10px);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      transition: opacity 0.8s ease, visibility 0.8s ease;
    }

    .popup-card {
      background: var(--card-bg);
      border: 1px solid var(--accent-color);
      padding: 35px 25px;
      border-radius: 20px;
      max-width: 380px;
      width: 90%;
      box-shadow: 0 15px 35px var(--glow-color);
      animation: pulseGlow 3s infinite alternate;
      z-index: 10000;
    }

    @keyframes pulseGlow {
      0% { transform: scale(0.98); }
      100% { transform: scale(1.02); }
    }

    .popup-card .icon {
      font-size: 3.5rem;
      margin-bottom: 15px;
      display: inline-block;
      animation: heartBeat 1.5s infinite;
    }

    @keyframes heartBeat {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.15); }
    }

    .popup-card h2 {
      font-size: 1.4rem;
      color: var(--accent-color);
      margin-bottom: 10px;
      font-weight: 500;
    }

    .popup-card p {
      font-size: 0.95rem;
      color: #cbd5e1;
      margin-bottom: 25px;
      line-height: 1.4;
    }

    .surprise-btn {
      background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
      border: none;
      color: white;
      padding: 14px 28px;
      font-size: 1rem;
      font-weight: bold;
      border-radius: 30px;
      cursor: pointer;
      box-shadow: 0 5px 15px var(--glow-color);
      transition: transform 0.2s;
    }

    .surprise-btn:active { transform: scale(0.95); }

    .popup-overlay.hidden {
      opacity: 0;
      visibility: hidden;
    }

    /* ANA SİTE ÖĞELERİ */
    h1 { 
      margin-bottom: 10px; 
      font-weight: 400; 
      letter-spacing: 1px;
      color: var(--accent-color);
      text-shadow: 0 0 10px var(--glow-color);
      position: relative;
      z-index: 2;
    }
    
    .message-box {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--accent-color);
      border-radius: 12px;
      padding: 15px 20px;
      max-width: 450px;
      width: 100%;
      margin: 15px 0 25px 0;
      font-style: italic;
      color: #e2e8f0;
      line-height: 1.5;
      min-height: 70px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: inset 0 0 15px var(--glow-color);
      transition: opacity 0.5s ease;
      opacity: 1;
      position: relative;
      z-index: 2;
    }

    .message-box.fade-out { opacity: 0; }

    /* SLIDER & DİNAMİK ARKA PLAN */
    .slider-container {
      width: 100%;
      max-width: 450px;
      height: 380px;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 10px 25px var(--glow-color);
      border: 1px solid var(--accent-color);
      position: relative;
      margin-bottom: 25px;
      background-color: #000;
      z-index: 2;
    }

    .blur-bg {
      position: absolute;
      top: -10%;
      left: -10%;
      width: 120%;
      height: 120%;
      background-size: cover;
      background-position: center;
      filter: blur(25px) brightness(0.6);
      z-index: 1;
      transition: background-image 1s ease-in-out;
    }

    .slider-container img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
      position: absolute;
      top: 0;
      left: 0;
      opacity: 0;
      z-index: 2;
    }

    .slider-container img.active { opacity: 1; }

    /* FOTOĞRAF GEÇİŞ ANİMASYONLARI */
    .fx-zoom { animation: animZoom 1.2s forwards; }
    .fx-slide { animation: animSlide 1.2s forwards; }
    .fx-rotate { animation: animRotate 1.2s forwards; }
    .fx-drop { animation: animDrop 1.2s forwards; }
    .fx-fade { animation: animFade 1.2s forwards; }

    @keyframes animZoom { 0% { opacity: 0; transform: scale(1.4); } 100% { opacity: 1; transform: scale(1); } }
    @keyframes animSlide { 0% { opacity: 0; transform: translateX(-100%); } 100% { opacity: 1; transform: translateX(0); } }
    @keyframes animRotate { 0% { opacity: 0; transform: rotate(-15deg) scale(0.7); } 100% { opacity: 1; transform: rotate(0deg) scale(1); } }
    @keyframes animDrop { 0% { opacity: 0; transform: translateY(-100%); } 100% { opacity: 1; transform: translateY(0); } }
    @keyframes animFade { 0% { opacity: 0; } 100% { opacity: 1; } }

/* --- LÂL AVATAR KATMANLARI --- */
/* Avatar Ana Taşıyıcısı */
.avatar-container {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 140px;
    margin: 0 auto;
}

/* Tüm katmanların ortak ve kusursuz üst üste bindiği nokta */
.avatar-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Katmanların Sıralama Katmanları (Z-Index) ve Konum Ayarları */
.ana-avatar {
    font-size: 4rem; /* Lâl'in ana yüz emojisi */
    z-index: 2;
}

.sapka-layer {
    font-size: 2.2rem;
    top: 15%; /* Kafanın tam üzerine oturması için */
    z-index: 3;
}

.gozluk-layer {
    font-size: 1.5rem;
    top: 48%; /* Göz hizası */
    z-index: 4;
}

.kiyafet-layer {
    font-size: 3rem;
    top: 75%; /* Gövde hizası */
    z-index: 1;
}

.el-layer {
    font-size: 1.8rem;
    top: 75%;
    left: 70%; /* El eşyasının yana denk gelmesi için */
    z-index: 5;
}
.wardrobe-open-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 5px;
  transition: all 0.2s ease;
}
.wardrobe-open-btn:hover { background: rgba(255, 255, 255, 0.18); }

/* --- GARDIROP MODAL PENCERESİ --- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.modal-content {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 20px;
  color: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.modal-header h3 { margin: 0; font-size: 1.1rem; }
.close-btn { font-size: 1.5rem; cursor: pointer; color: #94a3b8; }
.close-btn:hover { color: #fff; }

.gardirop-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 15px;
}
.tab-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #94a3b8;
  padding: 6px 0;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.tab-btn.active {
  background: #3b82f6;
  color: #fff;
}

.gardirop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}

.esya-karti {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}
.esya-karti:hover { transform: translateY(-2px); }
.esya-karti.giyildi { border-color: #10b981 !important; background: rgba(16, 185, 129, 0.15); }

/* Nadirlik Stilleri */
.esya-karti.epic { border-color: #a855f7; }
.esya-karti.rare { border-color: #3b82f6; }
.esya-karti.common { border-color: rgba(255, 255, 255, 0.1); }

.esya-emoji { font-size: 2rem; display: block; margin-bottom: 4px; }
.esya-adi { font-size: 0.8rem; display: block; font-weight: 600; }
.esya-rozet { font-size: 0.65rem; color: #94a3b8; margin-top: 4px; display: block; }

/* --- SANAL BEBEK SORUMLU SEÇİMİ --- */
.caretaker-selector-box { margin: 14px 0; text-align: center; }
.selector-label { display: block; font-size: 0.8rem; color: #cbd5e1; margin-bottom: 8px; font-weight: 600; }
.caretaker-buttons { display: flex; gap: 10px; justify-content: center; }
.caretaker-btn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 14px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 12px;
  color: #cbd5e1; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.25s ease;
}
.caretaker-btn.active {
  background: var(--accent-color, #0099ff) !important;
  border-color: var(--accent-color, #0099ff) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px var(--glow-color, rgba(0, 153, 255, 0.35)) !important;
}

/* --- GARDIROP İNFO ROZETLERİ --- */
.esya-info {
  font-size: 0.68rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px dashed rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 4px 6px;
  margin: 6px 0;
  display: block;
  line-height: 1.2;
  font-weight: 500;
}

.esya-karti.giyildi .esya-info {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
}

/* 🌙 LÂL ÇERÇEVESİ HAREKETLİ YILDIZLAR VE GECE MODU */

.extra-card.gece-modu {
  background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%) !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.8), 0 0 20px rgba(99, 102, 241, 0.2) !important;
  position: relative;
  overflow: hidden;
}

/* 1. KATMAN: Yavaşça Süzülen ve Dönen Yıldızlar */
.extra-card.gece-modu::before {
  content: "✨  🌙   ⭐   ✨   ⭐";
  position: absolute;
  top: 8px;
  left: 0;
  width: 100%;
  font-size: 0.8rem;
  opacity: 0.7;
  letter-spacing: 14px;
  pointer-events: none;
  animation: yildizSuzulme 8s ease-in-out infinite alternate;
}

/* 2. KATMAN: Arka Planda Hafif Yıldız Kayması Efekti */
.extra-card.gece-modu::after {
  content: "💫       ✨     ⭐";
  position: absolute;
  top: 15px;
  right: -50px;
  font-size: 0.7rem;
  opacity: 0.4;
  pointer-events: none;
  animation: yildizKaymasi 6s linear infinite;
}

/* Yavaşça yukarı-aşağı süzülme ve parıldama */
@keyframes yildizSuzulme {
  0% {
    transform: translateY(0px) rotate(0deg) scale(0.95);
    opacity: 0.4;
  }
  50% {
    transform: translateY(6px) rotate(2deg) scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: translateY(-3px) rotate(-2deg) scale(1);
    opacity: 0.5;
  }
}

/* Çerçevenin içinden çapraz geçen hafif kayan yıldız */
@keyframes yildizKaymasi {
  0% {
    transform: translateX(0) translateY(0) scale(0.5);
    opacity: 0;
  }
  30% {
    opacity: 0.7;
  }
  60% {
    transform: translateX(-220px) translateY(120px) scale(1);
    opacity: 0;
  }
  100% {
    transform: translateX(-220px) translateY(120px) scale(0);
    opacity: 0;
  }
}
/* --- ESTETİK YIL DÖNÜMÜ SAYAÇ STİLİ --- */
.counter-container {
  background: var(--card-bg, #101c38);
  border: 1px solid var(--accent-color, #0099ff);
  border-radius: 20px;
  padding: 20px;
  max-width: 450px;
  width: 100%;
  margin: 0 auto 25px auto;
  box-shadow: 0 10px 25px var(--glow-color, rgba(0, 150, 255, 0.3));
  text-align: center;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.counter-container h2 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Yan yana yatay dizilim */
.timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* İç Rakam Kutuları */
.time-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.time-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
}

/* Sayılar */
.time-card span:first-child {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-color, #38bdf8);
  line-height: 1.2;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Etiketler (GÜN, SAAT...) */
.time-card span:last-child {
  font-size: 0.6rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* Saniyenin hafif atış animasyonu */
#countdown-seconds {
  display: inline-block;
  animation: saniyeAtis 1s infinite ease-in-out;
}

@keyframes saniyeAtis {
  0% { transform: scale(1); }
  15% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
/* 🌙 LÂL ÇERÇEVESİ GECE MODUNDA SAYAÇ UYUMU */
.extra-card.gece-modu .counter-container {
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.9);
}

.extra-card.gece-modu .time-card {
  background: rgba(30, 27, 75, 0.4);
  border-color: rgba(129, 140, 248, 0.2);
}

.bakici-liderlik-karti {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--accent-color, #0099ff);
  border-radius: 16px;
  padding: 12px;
  margin: 15px 0;
  text-align: center;
  backdrop-filter: blur(8px);
}

.bakici-liderlik-karti h3 {
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 8px;
}

.skor-tablosu {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 6px;
}

.skor-item span {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
}

.skor-item strong {
  font-size: 1rem;
  color: var(--accent-color, #38bdf8);
}

.skor-vs {
  font-weight: 800;
  font-size: 0.85rem;
  color: #f43f5e;
}

.lider-msg {
  font-size: 0.7rem;
  color: #cbd5e1;
  font-style: italic;
}


    /* GENEL KARTLAR VE QUIZ */
    .extras-wrapper { 
      display: flex; 
      flex-direction: column; 
      gap: 20px; 
      width: 100%; 
      max-width: 450px; 
      margin-bottom: 25px; 
      z-index: 2; 
    }
    
    .extra-card { 
      background: var(--card-bg); 
      border: 1px solid var(--accent-color); 
      padding: 25px; 
      border-radius: 20px; 
      box-shadow: 0 10px 25px var(--glow-color); 
      text-align: center;
    }
    
    .extra-card h3 { 
      color: var(--accent-color); 
      margin-bottom: 15px; 
      font-size: 1.2rem; 
      text-shadow: 0 0 8px var(--glow-color);
    }

    #quiz-input {
      width: 100%;
      padding: 12px;
      margin: 15px 0;
      border-radius: 15px;
      border: 1px solid var(--accent-color);
      background: rgba(255, 255, 255, 0.05);
      color: white;
      text-align: center;
      font-size: 1rem;
    }
    #quiz-input::placeholder { color: #8899aa; }

    .btn-quiz {
      background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
      border: none;
      color: white;
      padding: 10px 20px;
      margin: 5px;
      border-radius: 20px;
      cursor: pointer;
      font-weight: bold;
      transition: transform 0.2s;
    }
    .btn-quiz:hover { transform: scale(1.05); }

    .feel-box {
      background: var(--card-bg);
      border: 1px solid var(--accent-color);
      border-radius: 18px;
      padding: 20px;
      max-width: 450px;
      width: 100%;
      margin-bottom: 25px;
      box-shadow: 0 8px 20px var(--glow-color);
      position: relative;
      z-index: 2;
    }
    .feel-box p { margin: 15px 0; min-height: 50px; }

    /* TEKLİF KUTUSU */
    .proposal-container {
      background: var(--card-bg);
      border: 1px solid var(--accent-color);
      border-radius: 20px;
      padding: 25px 20px;
      max-width: 450px;
      width: 100%;
      box-shadow: 0 10px 25px var(--glow-color);
      position: relative;
      z-index: 2;
    }

    .proposal-container h3 {
      font-size: 1.3rem;
      color: var(--accent-color);
      margin-bottom: 20px;
      font-weight: 500;
    }

    .btn-group {
      display: flex;
      justify-content: center;
      gap: 20px;
      align-items: center;
      margin-top: 15px;
      position: relative;
      height: 60px; /* Butonların hareket alanı için sabit yükseklik */
    }

    .btn-evet {
      background: #10b981;
      color: white;
      border: none;
      padding: 12px 30px;
      font-size: 1.1rem;
      font-weight: bold;
      border-radius: 25px;
      cursor: pointer;
      box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
      transition: transform 0.2s;
    }
    .btn-evet:hover { transform: scale(1.1); }

    .btn-hayir {
      background: #ef4444;
      color: white;
      border: none;
      padding: 12px 30px;
      font-size: 1.1rem;
      font-weight: bold;
      border-radius: 25px;
      cursor: pointer;
      box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
      position: relative; /* Başlangıçta yan yana düzgün durması için relative yaptık */
      transition: all 0.2s ease-out;
    }

/* =========================================================
   ANLIK FOTOĞRAF PAYLAŞIM - DİNAMİK TEMA UYUMLU
   ========================================================= */

.live-photo-card {
  background: var(--card-bg, rgba(16, 28, 56, 0.65));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.12));
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 1px rgba(255, 255, 255, 0.15);
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 440px;
  margin: 0 auto;
}

/* Tema Rengine Göre Otomatik Parıldayan Arka Plan */
.live-photo-card::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle at 50% 30%, var(--glow-color, rgba(0, 153, 255, 0.15)), transparent 60%);
  pointer-events: none;
}

/* Dinamik Tema Rozeti */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-color, #0099ff);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--accent-color, #0099ff);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.live-badge-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-color, #0099ff);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--accent-color, rgba(255, 77, 109, 0.4));
  animation: pulseDot 1.8s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.25); }
  100% { opacity: 0.3; transform: scale(0.8); }
}

.live-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--text-color, #ffffff);
}

.live-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.45;
  margin: 0 0 18px 0;
  font-style: italic;
  font-weight: 400;
}

/* Fotoğraf Çerçevesi */
.live-photo-frame {
  position: relative;
  width: 100%;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 18px;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fotoğraf Yüklendiğinde Tema Vurgusu */
.live-photo-frame.has-photo {
  border: 1px solid var(--accent-color, #0099ff);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--glow-color, rgba(0, 153, 255, 0.25));
  background: #000000;
  min-height: auto;
}

.live-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 30px 20px;
  color: var(--text-muted, #94a3b8);
}

.live-empty-icon {
  font-size: 2.2rem;
  opacity: 0.8;
  filter: drop-shadow(0 0 10px var(--glow-color, rgba(0, 153, 255, 0.3)));
}

.live-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  animation: photoEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes photoEntrance {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Tema Degrade Butonu */
.live-upload-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--gradient-start, var(--accent-color, #0099ff)), var(--gradient-end, var(--accent-color, #0099ff)));
  color: #ffffff;
  border: none;
  padding: 13px 20px;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px var(--glow-color, rgba(0, 153, 255, 0.35));
  transition: all 0.25s ease;
}

.live-upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--glow-color, rgba(0, 153, 255, 0.5));
}

.live-upload-btn:active {
  transform: translateY(1px) scale(0.98);
}