:root {
  --bg-color:       #fff0f3;
  --text-dark:      #5a3040;
  --primary-pink:   #f0a0b8;
  --secondary-pink: #e07090;
  --paper:          #fff8fa;
  --font-title: 'Dancing Script', cursive;
  --font-body:  'Lora', serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-dark);
  overflow: hidden; /* Hide scrollbars for full screen scenes */
  width: 100vw;
  height: 100vh;
}

.scene {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  z-index: 10;
}

.scene.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 20;
}

/* Backgrounds & Petals */
.scene-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, #fff, var(--bg-color));
  z-index: -1;
}
.petals-container {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: hidden; z-index: 0;
}

/* --- POSTMAN VIDEO SCENE --- */
#scene-postman {
  background: #000;
  padding: 0;
  justify-content: stretch;
  align-items: stretch;
}
.postman-video-wrapper {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
}
#postman-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.postman-fallback {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 30px;
  background: var(--bg-color);
}
.postman-fallback-ring {
  width: 80px; height: 80px; border-radius: 50%;
  border: 4px solid #e8a87c;
  animation: ring-pulse 1.5s infinite;
}
@keyframes ring-pulse { 0%,100%{transform:scale(1);opacity:1;} 50%{transform:scale(1.2);opacity:0.5;} }
.postman-fallback-text {
  font-family: 'Dancing Script', cursive; font-size: 2rem; color: #e8a87c;
}

/* ─── ENVELOPE SCENE ────────────────────────────────────────────────── */
.envelope-scene-center {
  display: flex;
  align-items: center; justify-content: center;
  width: 100%; height: 100%;
  position: relative; z-index: 1;
}

/* Sahne arka planı — yumuşak pembe gradient */
.env-scene-bg {
  background: radial-gradient(ellipse at center, #fff0f5 0%, #fadadd 100%) !important;
}

/* Ana zarf — basit dikdörtgen */
.env {
  position: relative;
  width: min(560px, 85vw);
  height: min(380px, 56vw);
  cursor: pointer;
  filter: drop-shadow(0 20px 50px rgba(180, 80, 100, 0.18));
  transition: transform 0.4s ease, filter 0.4s ease;
}
.env:hover {
  transform: translateY(-14px) rotate(-1deg) scale(1.02);
  filter: drop-shadow(0 32px 64px rgba(180, 80, 100, 0.25));
}

/* Gövde — pembe kağıt */
.env-body {
  position: absolute; inset: 0;
  background: #f9d0d8;
  border-radius: 6px;
  overflow: hidden;
}

/* Katlama çizgileri: 4 köşeden merkeze diyagonal */
.env-crease {
  position: absolute;
  width: 0; height: 0;
  border-style: solid;
}
.env-crease-tl {
  top: 0; left: 0;
  border-width: 46% 0 0 46%;
  border-color: transparent transparent transparent #f0b8c4;
}
.env-crease-tr {
  top: 0; right: 0;
  border-width: 46% 46% 0 0;
  border-color: transparent #f0b8c4 transparent transparent;
}
.env-crease-bl {
  bottom: 0; left: 0;
  border-width: 0 0 42% 46%;
  border-color: transparent transparent #f0b8c4 transparent;
}
.env-crease-br {
  bottom: 0; right: 0;
  border-width: 0 46% 42% 0;
  border-color: transparent transparent transparent #f0b8c4;
}

/* Hafif iç gölge — derinlik hissi */
.env-body::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 0 40px rgba(180, 60, 80, 0.06);
  border-radius: 6px;
  border: 1.5px solid #f0a8b8;
}

/* Flap: üstten dönerek açılan üçgen kapak */
.env-flap {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 48%;
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}
.env-flap svg { width: 100%; height: 100%; display: block; }
.env-flap.open { transform: perspective(1200px) rotateX(-180deg); }

/* Kalp mühür — ortada büyük */
.env-heart {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -30%);
  z-index: 4;
  animation: heart-beat 2.8s ease-in-out infinite;
  filter: drop-shadow(0 6px 12px rgba(200, 40, 60, 0.3));
}
@keyframes heart-beat {
  0%,100% { transform: translate(-50%, -30%) scale(1); }
  14%      { transform: translate(-50%, -30%) scale(1.12); }
  28%      { transform: translate(-50%, -30%) scale(1.04); }
  42%      { transform: translate(-50%, -30%) scale(1.10); }
}

/* Hint */
.env-hint-below {
  position: absolute;
  bottom: -36px; left: 50%;
  transform: translateX(-50%);
  font-family: 'Dancing Script', cursive;
  font-size: 1rem;
  color: #d08098;
  letter-spacing: 2px;
  white-space: nowrap;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:0.3;} 50%{opacity:0.9;} }

/* ── POSTA PULU */
.env-stamp {
  position: absolute;
  top: 52%; right: 5%;
  z-index: 2;
}
.env-stamp-inner {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,0.65);
  border: 2.5px dashed #e890a8;
  padding: 8px 12px 6px;
  border-radius: 5px;
  gap: 4px;
  box-shadow: 2px 3px 10px rgba(200,80,110,0.14);
  min-width: 72px;
}
/* Fotoğraf varsa gösterilir, yoksa kalp emoji */
.env-stamp-photo {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 3px;
  display: none;
}
.env-stamp-heart {
  font-size: 1.9rem;
  color: #e04070;
  line-height: 1;
}
.env-stamp-label {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: #c06080;
}

/* ── GÖNDEREN */
.env-from {
  position: absolute;
  top: 52%; left: 5%;
  z-index: 2;
  display: flex; flex-direction: column;
  gap: 2px;
}
.env-from-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #d090a8;
}
.env-from-name {
  font-family: 'Dancing Script', cursive;
  font-size: 1.3rem;
  color: #8a3050;
  line-height: 1.2;
}
.env-from-city {
  font-size: 0.85rem;
  color: #c07090;
  font-style: italic;
}

/* ── ALICI */
.env-to {
  position: absolute;
  top: 68%; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.env-to-name {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  color: #7a2840;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(180,40,70,0.12);
}
.env-to-city {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 6px;
  color: #c080a0;
  text-transform: uppercase;
}


/* ─── MEKTUP / DEFTER SAYFASI ────────────────────────────────────────── */
#scene-book {
  background: radial-gradient(ellipse at center, #fff0f5 0%, #fadadd 100%);
}

.letter-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  padding: 30px 20px 60px;
}

/* Arka kağıt gölgeleri */
.letter-shadow-3, .letter-shadow-2, .letter-shadow-1 {
  position: absolute;
  background: #fff8fa;
  border: 1px solid #f0c0cc;
  border-radius: 8px;
}
/* Portrait ratio: ~A4 = 1:1.41 */
.letter-shadow-3 { width: min(650px,85vw); height: min(920px,85vh); transform: rotate(2deg);   box-shadow: 0 6px 20px rgba(200,80,100,0.07); }
.letter-shadow-2 { width: min(650px,85vw); height: min(920px,85vh); transform: rotate(-1.5deg); box-shadow: 0 6px 20px rgba(200,80,100,0.05); }
.letter-shadow-1 { width: min(650px,85vw); height: min(920px,85vh); transform: rotate(0.7deg);  box-shadow: 0 6px 20px rgba(200,80,100,0.04); }

/* Kağıt Boyutu: Ekrana göre daha dolgun (Desktop: 650px, Mobile: 85vw) */
.letter-paper {
  position: relative;
  width: min(650px, 85vw);
  height: min(920px, 85vh); /* A4 Oranı ~1.414 */
  background: #fffbfc;
  border: 1px solid #f0c0cc;
  border-radius: 8px;
  box-shadow:
    0 24px 64px rgba(180,60,90,0.14),
    0 2px 8px rgba(180,60,90,0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}

/* Üst renk bandı */
.letter-lines-decoration {
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  display: flex; z-index: 5; flex-shrink: 0;
}
.letter-lines-decoration span { flex: 1; }
.letter-lines-decoration span:nth-child(1) { background: #f0a0b8; }
.letter-lines-decoration span:nth-child(2) { background: #f8c0cc; }
.letter-lines-decoration span:nth-child(3) { background: #fde0e8; }

/* Üst bölüm: fotoğraf alanı (sayfanın üst ~38%) */
.letter-photo-col {
  width: 100%;
  height: 38%;
  position: relative;
  overflow: hidden;
  border-bottom: 1.5px solid #f5d0da;
  background: #fff4f7;
  flex-shrink: 0;
}

/* Ayraç — artık kullanılmıyor (border-bottom ile) */
.letter-divider { display: none; }

/* Alt bölüm: çizgili yazı alanı */
.letter-text-col {
  flex: 1;
  position: relative;
  overflow: hidden;
  padding-top: 5px;
  background:
    repeating-linear-gradient(
      transparent,
      transparent 33px,
      #f8dde6 33px,
      #f8dde6 34px
    );
  background-attachment: local;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* SERBEST TUVAL */
.free-canvas {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Canvas Elementleri */
.canvas-element {
  position: absolute;
  cursor: grab;
  user-select: none;
  pointer-events: auto;
}
.canvas-element:active { cursor: grabbing; }
.canvas-el-controls {
  position: absolute;
  top: -22px; right: 0;
  display: flex; gap: 4px;
  background: rgba(255,255,255,0.95);
  border-radius: 4px;
  padding: 2px 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.canvas-el-controls button {
  background: none; border: none; cursor: pointer;
  font-size: 14px; padding: 2px 4px; color: #888;
  border-radius: 3px; line-height: 1;
}
.canvas-el-controls button:hover { background: #f5f5f5; color: #333; }
.canvas-text-editable {
  outline: 1px dashed #e8c4a0;
  min-width: 60px; min-height: 24px;
  padding: 2px;
  white-space: pre-wrap;
}

/* ─── CANVAS ARAÇ ÇUBUĞU ─── */
.canvas-toolbar {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,250,245,0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(232,168,124,0.3);
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(90,62,43,0.14);
  z-index: 300;
}
.canvas-toolbar-label {
  font-family: 'Dancing Script', cursive;
  font-size: 1rem;
  color: #c47a5a;
  margin-right: 6px;
}
.canvas-tool-btn {
  width: 40px; height: 40px;
  border-radius: 50%; border: none;
  background: #fdf0e8;
  color: #c47a5a;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.canvas-tool-btn:hover { background: #e8a87c; color: white; transform: scale(1.08); }
.canvas-toolbar-divider { width: 1px; height: 28px; background: #e8c4a0; }
.canvas-side-select {
  border: 1px solid #e8c4a0;
  border-radius: 20px;
  padding: 5px 12px;
  background: white;
  color: #c47a5a;
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
}

/* ─── STICKER SECİCİ (Giphy) ─── */
.sticker-picker {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,250,245,0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(232,168,124,0.25);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 12px 40px rgba(90,62,43,0.18);
  z-index: 299;
  width: 480px;
  max-width: 94vw;
}
.sticker-picker-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.sticker-picker-title {
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem;
  color: #c47a5a;
  white-space: nowrap;
}
.sticker-search-input {
  flex: 1;
  border: 1.5px solid #e8c4a0;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.9rem;
  outline: none;
  background: #fff;
  color: #5a3e2b;
  transition: border-color 0.2s;
}
.sticker-search-input:focus { border-color: #e8a87c; }
.sticker-search-input::placeholder { color: #ccc; }
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}
.sticker-grid::-webkit-scrollbar { width: 4px; }
.sticker-grid::-webkit-scrollbar-thumb { background: #e8c4a0; border-radius: 2px; }
.sticker-item {
  border-radius: 10px;
  background: #fdf0e8;
  border: 2px solid transparent;
  cursor: pointer;
  aspect-ratio: 1;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, transform 0.15s;
}
.sticker-item:hover { border-color: #e8a87c; transform: scale(1.06); }
.sticker-item img { width: 100%; height: 100%; object-fit: cover; }
.sticker-loading {
  grid-column: 1/-1;
  text-align: center;
  padding: 20px;
  color: #ccc;
  font-style: italic;
  font-size: 0.9rem;
}
.sticker-powered {
  margin-top: 10px;
  text-align: right;
}

.nav-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.88);
  border: 1px solid #f0c0cc;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(180,60,90,0.12);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #c07090; transition: background 0.25s, transform 0.25s; z-index: 20;
}
.nav-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.nav-arrow-left  { left: calc(50% - min(240px, 35vw) - 52px); }
.nav-arrow-right { right: calc(50% - min(240px, 35vw) - 52px); }
.page-counter {
  position: absolute;
  bottom: 16px;
  left: 50%; transform: translateX(-50%);
  font-family: 'Dancing Script', cursive;
  font-size: 1rem; color: #d090a8;
  letter-spacing: 3px;
}

/* ─── KAPANIS: ADMIN LIGHTBOX vb. KODLARI ─── */

/* ═══════════════════════════════════════════════════
   MOBİL VE TABLET UYUMU (RESPONSIVE TASARIM)
═══════════════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Zarf Yazıları ve Pul */
  .env-to-name { font-size: 1.5rem; }
  .env-to-city { font-size: 0.65rem; }
  .env-from-name { font-size: 1.1rem; }
  .env-from-label, .env-from-city { font-size: 0.6rem; }
  .env-stamp { transform: scale(0.85); top: 50%; right: 2%; }
  .env-from { top: 50%; left: 3%; }
  
  /* Kağıt Boyutu ve Düzeni (Telefonda daha fazla genişlik ver) */
  .letter-paper {
    width: min(480px, 85vw);
    height: min(680px, 80vh);
  }
  .letter-shadow-3, .letter-shadow-2, .letter-shadow-1 {
    width: min(480px, 85vw);
    height: min(680px, 80vh);
  }
  
  /* Nav Okları (Telefonda daha kağıda yakın ve küçük) */
  .nav-arrow {
    width: 38px; height: 38px;
  }
  .nav-arrow-left  { left: calc(50% - min(240px, 42.5vw) - 24px); }
  .nav-arrow-right { right: calc(50% - min(240px, 42.5vw) - 24px); }
  
  /* Müzik Widget (Telefonda biraz küçült) */
  .music-widget {
    top: 15px; left: 15px;
    padding: 6px 12px 6px 6px;
    gap: 8px;
  }
  .music-btn { width: 34px; height: 34px; }
  .music-volume { width: 45px; }
  
  /* Özel Sayfalar (Oyun, Harita vs) İçerik Küçültme */
  .special-page-title { font-size: 1.3rem; }
  .special-page-hint { font-size: 0.8rem; }
}

@media (max-width: 400px) {
  /* Daha dar telefonlar için ekstra küçültme */
  .env-stamp { transform: scale(0.75); right: 1%; }
  .env-to-name { font-size: 1.3rem; }
  .nav-arrow-left  { left: calc(50% - min(240px, 42.5vw) - 18px); }
  .nav-arrow-right { right: calc(50% - min(240px, 42.5vw) - 18px); }
}

/* ─── MEKTUP KAGIDI ICERIK STILLERI ─── */

/* Sol kolon: fotograf cercevesi */
.page-photo-frame {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.page-photo-frame img {
  max-width: 100%; max-height: 300px;
  object-fit: contain;
  border: 8px solid #fff;
  box-shadow: 0 5px 20px rgba(90,62,43,0.1), 2px 2px 0 #f0d5c0, 4px 4px 0 #e8c4a0;
  border-radius: 2px;
  transform: rotate(-1deg);
}
.page-no-photo {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 100%; opacity: 0.3;
}

/* Sağ kolon: tarih + yazı + not */
.page-date {
  font-family: 'Dancing Script', cursive;
  font-size: 1.7rem;
  color: #e07090;
  margin: 14px 16px 12px;
  padding-bottom: 10px;
  border-bottom: 1.5px dashed #f0c0cc;
}
.page-body-text {
  font-family: 'Lora', serif;
  font-size: 1.0rem;
  line-height: 2.19; /* kağıt çizgilerine uyum */
  color: #6a3050;
  flex: 1;
  white-space: pre-wrap;
  padding: 0 16px;
}
.page-response-area {
  margin-top: auto;
  padding: 14px 16px 16px;
  border-top: 1px dashed #f0c0cc;
  background: rgba(255,240,245,0.5);
}
.page-response-label {
  display: block;
  font-style: italic;
  font-size: 0.8rem;
  color: #d090a8;
  margin-bottom: 8px;
  font-family: 'Lora', serif;
}
.page-response-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid #f0c0cc;
  outline: none;
  resize: none;
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem;
  color: #7a3050;
  padding: 4px 0;
  line-height: 1.8;
}
.page-response-textarea::placeholder { color: #e8c0cc; }

.notebook-textarea {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  resize: none;
  font-family: 'Dancing Script', cursive;
  font-size: 22px;
  line-height: 33px; /* Satır çizgileriyle tam uyum */
  color: #5a3e2b;
  padding: 4px 0 0 0;
  margin: 0;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox scrollbar gizle */
}
.notebook-textarea::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Edge scrollbar gizle */
}
.notebook-textarea::placeholder {
  color: #d8a0b0;
  font-style: italic;
  opacity: 0.6;
}

.page-response-btn {
  margin-top: 10px;
  padding: 7px 20px;
  background: linear-gradient(135deg, #f0a0b8, #e07090);
  color: white; border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: 'Lora', serif;
  transition: opacity 0.25s, transform 0.2s;
  box-shadow: 0 3px 10px rgba(200,60,90,0.2);
}
.page-response-btn:hover { opacity: 0.88; transform: scale(1.04); }

/* Oyun/Harita ozel sayfa karti */
.special-page-card {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 100%; height: 100%;
  gap: 20px; text-align: center;
  padding: 30px;
}
.special-page-icon-area svg { opacity: 0.7; }
.special-page-title {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  color: #5a3e2b;
}
.special-page-hint {
  font-family: 'Lora', serif;
  font-style: italic;
  color: #aaa;
  font-size: 0.95rem;
}
.special-page-btn {
  padding: 12px 35px;
  background: linear-gradient(135deg, #e8a87c, #d4956a);
  color: white; border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-family: 'Dancing Script', cursive;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(212,149,106,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.special-page-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212,149,106,0.45);
}

/* --- MAP SCENE --- */
#map { width: 80vw; height: 70vh; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 5px solid #fff;}
.map-header { margin-bottom: 20px; text-align: center; }
.map-title { font-family: var(--font-title); font-size: 3rem; color: var(--text-dark); }
.map-continue-btn { margin-top: 20px; padding: 15px 40px; font-size: 1.2rem; background: var(--primary-pink); border: none; color: #fff; border-radius: 30px; cursor: pointer; box-shadow: 0 5px 15px rgba(232,168,124,0.4); }

/* --- WIDGETS (Counter & Music) --- */
/* Video sahnesi aktifken gizle */
#scene-postman.active ~ .counter-widget {
  opacity: 0;
  pointer-events: none;
}
#scene-postman.active ~ .music-widget,
#scene-envelope.active ~ .music-widget {
  opacity: 0;
  pointer-events: none;
}
.counter-widget {
  position: fixed; top: 20px; left: 20px;
  background: rgba(255,255,255,0.9);
  padding: 14px 18px; border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  z-index: 100; text-align: center;
  transition: opacity 0.5s;
  opacity: 0;
  pointer-events: none;
}
.counter-label { font-family: var(--font-title); font-size: 1.4rem; color: var(--primary-pink); }
.counter-display span { font-size: 1.4rem; font-weight: bold; margin: 0 5px; }
.counter-display small { font-size: 0.75rem; color: #aaa; }

.music-widget {
  position: fixed;
  bottom: 24px; right: 24px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 250, 245, 0.92);
  backdrop-filter: blur(10px);
  padding: 10px 18px 10px 12px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(90,62,43,0.12), 0 0 0 1px rgba(232,168,124,0.2);
  z-index: 200;
  transition: transform 0.3s ease, opacity 0.5s ease;
  opacity: 0;
  pointer-events: none;
}
.music-widget:hover { transform: translateY(-2px); }

.music-btn {
  width: 38px; height: 38px;
  border-radius: 50%; border: none;
  background: linear-gradient(135deg, #e8a87c, #d4956a);
  color: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(212,149,106,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.music-btn:hover { transform: scale(1.08); box-shadow: 0 5px 15px rgba(212,149,106,0.5); }
.music-btn.playing { background: linear-gradient(135deg, #d4956a, #c47a5a); }
.music-btn svg { width: 18px; height: 18px; }

.music-volume {
  width: 70px; height: 3px;
  -webkit-appearance: none; appearance: none;
  background: linear-gradient(to right, #e8a87c 0%, #e8a87c 40%, #f0e0d0 40%);
  border-radius: 3px; cursor: pointer; outline: none;
}
.music-volume::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: #e8a87c; cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  border: 2px solid white;
}
.music-note-label {
  font-family: 'Dancing Script', cursive;
  font-size: 0.85rem; color: #c47a5a;
  white-space: nowrap; pointer-events: none;
}

/* --- CHOICE SCENE --- */
.choice-envelopes { display: flex; gap: 40px; margin-top: 40px; }
.choice-envelope { width: 250px; height: 180px; background: #fff; border: 2px solid var(--primary-pink); border-radius: 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.3s; }
.choice-envelope:hover { transform: scale(1.05); }
.choice-seal { width: 50px; height: 50px; background: var(--primary-pink); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-title); font-size: 2rem; margin-bottom: 20px; }
.choice-label { text-align: center; padding: 0 10px; font-weight: bold; }
.choice-result { display: none; margin-top: 40px; background: white; padding: 40px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); max-width: 600px; text-align: center; }
.choice-result.active { display: block; animation: fadeIn 1s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
