/* ============================================================
   PRINCES YAYA — PREMIUM ROMANTIC CINEMATIC WEBSITE
   Design tokens
   Base    : #120E1B (midnight ink)
   Surface : #1C1626 (deep aubergine glass)
   Accent 1: #E7B7A3 (rose gold)
   Accent 2: #D9A6E0 (soft lavender-orchid)
   Accent 3: #F3D9B1 (champagne gold)
   Text    : #F7F1EA (warm ivory)
   Display font : 'Cormorant Garamond' (romantic serif, used large & restrained)
   Body font    : 'Jost' (clean modern sans)
   Signature element: the "aurora + firefly" living sky canvas behind every page,
   and the polaroid/wax-seal motifs used throughout the gallery & letters.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,500&family=Jost:wght@300;400;500;600&display=swap');

:root{
  --ink:#0f0b18;
  --midnight:#120e1b;
  --surface:#1c1626;
  --surface-2:#241b30;
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.14);
  --rose-gold:#e7b7a3;
  --orchid:#d9a6e0;
  --champagne:#f3d9b1;
  --ivory:#f7f1ea;
  --ivory-dim: rgba(247,241,234,0.62);
  --danger:#e88a99;
  --shadow-soft: 0 20px 60px rgba(0,0,0,0.45);
  --radius-l: 28px;
  --radius-m: 18px;
  --radius-s: 10px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body.no-scroll{overflow:hidden;}

body{
  background:var(--ink);
  color:var(--ivory);
  font-family:'Jost', sans-serif;
  font-weight:300;
  min-height:100vh;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

::selection{ background:var(--orchid); color:var(--ink); }

h1,h2,h3,h4, .serif{
  font-family:'Cormorant Garamond', serif;
  font-weight:600;
  letter-spacing:.01em;
}

a{color:inherit; text-decoration:none;}
button{font-family:inherit; cursor:pointer; border:none; background:none; color:inherit;}
img{max-width:100%; display:block;}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important;}
}

/* ============================================================
   LIVING SKY BACKGROUND (signature element)
   ============================================================ */
#sky-canvas{
  position:fixed; inset:0; width:100%; height:100%;
  z-index:0; pointer-events:none;
}
.sky-gradient{
  position:fixed; inset:0; z-index:0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(217,166,224,0.16), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(231,183,163,0.14), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(36,27,48,0.9), transparent 70%),
    linear-gradient(180deg, #0f0b18 0%, #150f22 45%, #120e1b 100%);
  pointer-events:none;
}
.grain{
  position:fixed; inset:0; z-index:1; pointer-events:none; opacity:.035; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   CURSOR TRAIL / RIPPLE
   ============================================================ */
.cursor-glow{
  position:fixed; width:22px; height:22px; border-radius:50%;
  background:radial-gradient(circle, rgba(231,183,163,.55), transparent 70%);
  pointer-events:none; z-index:9999; transform:translate(-50%,-50%);
  transition:opacity .3s ease; mix-blend-mode:screen;
}
.ripple{
  position:fixed; z-index:9998; border-radius:50%; pointer-events:none;
  border:1px solid rgba(247,241,234,0.5);
  transform:translate(-50%,-50%); animation:rippleOut .8s var(--ease) forwards;
}
@keyframes rippleOut{ to{ width:140px; height:140px; opacity:0; } }

/* ============================================================
   SCROLL PROGRESS + BACK TO TOP
   ============================================================ */
#scroll-progress{
  position:fixed; top:0; left:0; height:3px; width:0%;
  background:linear-gradient(90deg, var(--rose-gold), var(--orchid), var(--champagne));
  z-index:5000; transition:width .1s linear;
}
#back-to-top{
  position:fixed; right:22px; bottom:100px; z-index:400;
  width:46px; height:46px; border-radius:50%;
  background:var(--glass); border:1px solid var(--glass-border); backdrop-filter:blur(10px);
  color:var(--ivory); font-size:18px; opacity:0; pointer-events:none; transition:all .35s var(--ease);
}
#back-to-top.show{opacity:1; pointer-events:auto; transform:translateY(0);}

/* ============================================================
   GLASS / CARD PRIMITIVES
   ============================================================ */
.glass{
  background:var(--glass);
  border:1px solid var(--glass-border);
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  border-radius:var(--radius-l);
  box-shadow:var(--shadow-soft);
}
.eyebrow{
  font-family:'Jost'; font-size:11px; letter-spacing:.32em; text-transform:uppercase;
  color:var(--rose-gold); opacity:.85;
}
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 30px; border-radius:999px;
  background:linear-gradient(135deg, var(--rose-gold), var(--orchid));
  color:#1a1220; font-weight:500; letter-spacing:.03em;
  box-shadow:0 10px 30px rgba(217,166,224,0.25);
  transition:transform .35s var(--ease), box-shadow .35s var(--ease);
  position:relative; overflow:hidden;
}
.btn:hover{ transform:translateY(-2px) scale(1.02); box-shadow:0 14px 40px rgba(217,166,224,0.4); }
.btn:active{ transform:translateY(0) scale(.98); }
.btn.ghost{
  background:transparent; border:1px solid var(--glass-border); color:var(--ivory);
  box-shadow:none;
}
.btn.ghost:hover{ background:var(--glass); }

/* magnetic buttons handled via JS transform */
.magnetic{ transition:transform .25s var(--ease); }

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader{
  position:fixed; inset:0; z-index:9000; display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:var(--ink); transition:opacity .9s var(--ease), visibility .9s;
  gap:22px;
}
#preloader.hide{ opacity:0; visibility:hidden; }
.pre-heart{
  width:64px; height:64px; position:relative; animation:heartbeat 1.6s ease-in-out infinite;
  filter:drop-shadow(0 0 18px rgba(231,183,163,.6));
}
.pre-heart svg{ width:100%; height:100%; }
@keyframes heartbeat{ 0%,100%{transform:scale(1);} 25%{transform:scale(1.12);} 40%{transform:scale(.98);} 60%{transform:scale(1.08);} }
.pre-bar{ width:220px; height:3px; border-radius:2px; background:rgba(255,255,255,.12); overflow:hidden; }
.pre-bar-fill{ height:100%; width:0%; background:linear-gradient(90deg,var(--rose-gold),var(--orchid)); transition:width .2s ease; }
.pre-pct{ font-family:'Cormorant Garamond'; font-size:15px; letter-spacing:.1em; color:var(--ivory-dim); }
.pre-label{ font-size:11px; letter-spacing:.3em; text-transform:uppercase; color:var(--rose-gold); }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
#login-page{
  position:fixed; inset:0; z-index:800; display:flex; align-items:center; justify-content:center;
  padding:24px; opacity:0; visibility:hidden; transition:opacity .6s var(--ease);
}
#login-page.active{ opacity:1; visibility:visible; }
.login-card{
  width:100%; max-width:420px; padding:48px 36px; text-align:center; position:relative;
}
.login-card .heart-icon{ font-size:34px; margin-bottom:6px; display:inline-block; animation:floaty 4s ease-in-out infinite; }
.login-card h1{ font-size:32px; margin-bottom:6px; }
.login-card p{ color:var(--ivory-dim); font-size:14px; margin-bottom:28px; }
.pin-dots{ display:flex; justify-content:center; gap:14px; margin-bottom:26px; }
.pin-dot{ width:14px; height:14px; border-radius:50%; border:1px solid var(--glass-border); background:transparent; transition:all .25s var(--ease); }
.pin-dot.filled{ background:var(--rose-gold); box-shadow:0 0 12px var(--rose-gold); transform:scale(1.15); }
.pin-pad{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; max-width:280px; margin:0 auto; }
.pin-key{
  aspect-ratio:1; border-radius:50%; background:var(--glass); border:1px solid var(--glass-border);
  font-size:20px; font-family:'Cormorant Garamond'; color:var(--ivory); transition:all .2s var(--ease);
}
.pin-key:hover{ background:rgba(255,255,255,0.12); transform:translateY(-1px); }
.pin-key:active{ transform:scale(.92); }
.pin-key.wide{ font-size:13px; letter-spacing:.05em; }
.login-error{ color:var(--danger); font-size:13px; margin-top:16px; height:16px; opacity:0; transition:opacity .2s; }
.login-error.show{ opacity:1; }
.shake{ animation:shakeX .45s; }
@keyframes shakeX{ 10%,90%{transform:translateX(-2px);} 20%,80%{transform:translateX(4px);} 30%,50%,70%{transform:translateX(-8px);} 40%,60%{transform:translateX(8px);} }

.door-transition{
  position:fixed; inset:0; z-index:7000; display:flex; pointer-events:none;
}
.door-panel{ flex:1; background:var(--ink); transition:transform 1.1s var(--ease); }
.door-panel.left{ transform-origin:left; }
.door-panel.right{ transform-origin:right; }
.door-transition.open .door-panel.left{ transform:scaleX(0) translateX(-10%); }
.door-transition.open .door-panel.right{ transform:scaleX(0) translateX(10%); }
.door-light{
  position:absolute; inset:0; background:radial-gradient(circle, rgba(247,241,234,.9), rgba(231,183,163,.2) 40%, transparent 70%);
  opacity:0; transition:opacity .5s ease;
}
.door-transition.open .door-light{ opacity:1; animation:lightPulse 1.1s ease forwards; }
@keyframes lightPulse{ 0%{opacity:0;} 40%{opacity:.9;} 100%{opacity:0;} }

/* ============================================================
   APP SHELL / NAV
   ============================================================ */
#app{ position:relative; z-index:2; opacity:0; visibility:hidden; transition:opacity .8s var(--ease); }
#app.active{ opacity:1; visibility:visible; }

.topbar{
  position:fixed; top:0; left:0; right:0; z-index:600;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 26px; backdrop-filter:blur(14px);
  background:linear-gradient(180deg, rgba(15,11,24,.75), transparent);
}
.brand{ display:flex; align-items:center; gap:10px; font-family:'Cormorant Garamond'; font-size:19px; }
.brand .dot{ width:7px; height:7px; border-radius:50%; background:var(--rose-gold); box-shadow:0 0 10px var(--rose-gold); }
.topbar-actions{ display:flex; align-items:center; gap:10px; }
.icon-btn{
  width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--glass); border:1px solid var(--glass-border); font-size:16px; transition:all .25s var(--ease);
}
.icon-btn:hover{ background:rgba(255,255,255,.12); transform:translateY(-1px); }

/* home hero */
.page{ display:none; min-height:100vh; padding:120px 6vw 80px; position:relative; z-index:2; }
.page.active{ display:block; animation:pageIn .7s var(--ease); }
@keyframes pageIn{ from{opacity:0; transform:translateY(18px);} to{opacity:1; transform:translateY(0);} }

.hero-home{ text-align:center; max-width:760px; margin:40px auto 60px; }
.hero-home .eyebrow{ display:block; margin-bottom:18px; }
.hero-home h1{ font-size:clamp(34px,6vw,58px); line-height:1.15; margin-bottom:16px; }
.typing-line{ border-right:2px solid var(--rose-gold); white-space:nowrap; overflow:hidden; display:inline-block; }
.hero-home .sub{ color:var(--ivory-dim); font-size:16px; max-width:520px; margin:0 auto; line-height:1.7; }

.menu-grid{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(150px,1fr)); gap:16px;
  max-width:1100px; margin:0 auto;
}
.menu-card{
  padding:26px 16px; text-align:center; cursor:pointer; position:relative;
  transition:transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.menu-card:hover{ transform:translateY(-6px); border-color:rgba(231,183,163,.5); box-shadow:0 18px 40px rgba(217,166,224,.18); }
.menu-card .mi{ font-size:30px; display:block; margin-bottom:10px; }
.menu-card .mt{ font-family:'Cormorant Garamond'; font-size:16px; font-weight:600; }

/* section shell used by most pages */
.section-head{ text-align:center; max-width:640px; margin:0 auto 44px; }
.section-head h2{ font-size:clamp(28px,4.5vw,42px); margin-top:10px; }
.section-head p{ color:var(--ivory-dim); margin-top:12px; line-height:1.7; font-size:15px; }

/* ============================================================
   MUSIC PLAYER (floating + full)
   ============================================================ */
#mini-player{
  position:fixed; left:50%; bottom:18px; transform:translateX(-50%);
  z-index:900; display:flex; align-items:center; gap:12px; padding:10px 16px 10px 10px;
  width:min(92vw, 420px);
}
#mini-player .cover{ width:40px; height:40px; border-radius:10px; overflow:hidden; flex-shrink:0; position:relative; }
#mini-player .cover img{ width:100%; height:100%; object-fit:cover; }
#mini-player .meta{ flex:1; min-width:0; }
#mini-player .meta .t{ font-size:12.5px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#mini-player .meta .a{ font-size:10.5px; color:var(--ivory-dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#mini-player .ctrls{ display:flex; align-items:center; gap:6px; }
#mini-player button{ width:30px; height:30px; display:flex; align-items:center; justify-content:center; font-size:13px; border-radius:50%; }
#mini-player button:hover{ background:rgba(255,255,255,.1); }
#mini-player .playpause{ width:34px; height:34px; background:linear-gradient(135deg,var(--rose-gold),var(--orchid)); color:#1a1220; }
.mini-progress{ position:absolute; left:14px; right:14px; bottom:3px; height:2px; background:rgba(255,255,255,.15); border-radius:2px; overflow:hidden;}
.mini-progress-fill{ height:100%; width:0%; background:var(--champagne); }
.eq{ display:flex; align-items:flex-end; gap:2px; height:14px; }
.eq span{ width:3px; background:var(--rose-gold); border-radius:2px; animation:eqbar 1s ease-in-out infinite; }
.eq span:nth-child(2){ animation-delay:.2s; } .eq span:nth-child(3){ animation-delay:.4s; }
@keyframes eqbar{ 0%,100%{height:4px;} 50%{height:14px;} }
.eq.paused span{ animation-play-state:paused; height:4px; }

.music-page-grid{ display:grid; grid-template-columns:280px 1fr; gap:40px; max-width:1000px; margin:0 auto; }
@media (max-width:760px){ .music-page-grid{ grid-template-columns:1fr; } }
.player-card{ padding:30px; text-align:center; }
.player-cover{ width:100%; aspect-ratio:1; border-radius:20px; overflow:hidden; margin-bottom:20px; box-shadow:0 20px 50px rgba(0,0,0,.5); position:relative; }
.player-cover img{ width:100%; height:100%; object-fit:cover; }
.player-title{ font-size:20px; margin-bottom:2px; }
.player-artist{ color:var(--ivory-dim); font-size:13px; margin-bottom:20px; }
.seek{ width:100%; height:4px; border-radius:3px; background:rgba(255,255,255,.15); position:relative; cursor:pointer; margin-bottom:8px; }
.seek-fill{ position:absolute; left:0; top:0; height:100%; border-radius:3px; background:linear-gradient(90deg,var(--rose-gold),var(--orchid)); width:0%; }
.seek-time{ display:flex; justify-content:space-between; font-size:11px; color:var(--ivory-dim); margin-bottom:18px; }
.player-controls{ display:flex; align-items:center; justify-content:center; gap:18px; margin-bottom:14px; }
.player-controls .big{ width:56px; height:56px; border-radius:50%; background:linear-gradient(135deg,var(--rose-gold),var(--orchid)); color:#1a1220; font-size:20px; }
.player-controls button{ font-size:16px; width:38px; height:38px; border-radius:50%; }
.player-controls button:hover{ background:rgba(255,255,255,.1); }
.player-controls button.active-toggle{ color:var(--orchid); }
.visualizer{ display:flex; align-items:flex-end; justify-content:center; gap:3px; height:36px; margin-top:16px; }
.visualizer span{ width:4px; background:linear-gradient(180deg,var(--orchid),var(--rose-gold)); border-radius:3px; animation:eqbar 1.2s ease-in-out infinite; }
.playlist{ display:flex; flex-direction:column; gap:10px; }
.playlist-item{ display:flex; align-items:center; gap:14px; padding:12px 14px; border-radius:14px; cursor:pointer; transition:all .25s var(--ease); }
.playlist-item:hover{ background:var(--glass); }
.playlist-item.playing{ background:rgba(217,166,224,.12); border:1px solid rgba(217,166,224,.3); }
.playlist-item .cov{ width:46px; height:46px; border-radius:10px; overflow:hidden; flex-shrink:0; }
.playlist-item .cov img{ width:100%; height:100%; object-fit:cover; }
.playlist-item .info{ flex:1; min-width:0; }
.playlist-item .info .t{ font-size:14px; }
.playlist-item .info .a{ font-size:11px; color:var(--ivory-dim); }
.playlist-item .meaning-link{ font-size:10.5px; color:var(--rose-gold); text-decoration:underline; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-filters{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-bottom:32px; }
.filter-chip{
  padding:9px 18px; border-radius:999px; font-size:12.5px; letter-spacing:.03em;
  background:var(--glass); border:1px solid var(--glass-border); transition:all .25s var(--ease);
}
.filter-chip.active, .filter-chip:hover{ background:linear-gradient(135deg,var(--rose-gold),var(--orchid)); color:#1a1220; border-color:transparent; }
.gallery-search{ max-width:340px; margin:0 auto 30px; display:flex; align-items:center; gap:10px; padding:10px 16px; }
.gallery-search input{ flex:1; background:transparent; border:none; outline:none; color:var(--ivory); font-family:'Jost'; font-size:13px; }
.masonry{ columns:4 220px; column-gap:14px; max-width:1200px; margin:0 auto; }
@media (max-width:600px){ .masonry{ columns:2 150px; } }
.polaroid{
  break-inside:avoid; margin-bottom:14px; padding:10px 10px 34px; background:#f2ece4; border-radius:6px;
  box-shadow:0 12px 30px rgba(0,0,0,.4); transform:rotate(var(--r,0deg)); transition:transform .4s var(--ease), box-shadow .4s var(--ease);
  cursor:pointer; position:relative;
}
.polaroid:hover{ transform:rotate(0deg) scale(1.035) translateY(-4px); box-shadow:0 22px 46px rgba(0,0,0,.55); z-index:5; }
.polaroid img, .polaroid video{ width:100%; border-radius:2px; display:block; }
.polaroid .cap{ position:absolute; bottom:8px; left:12px; right:12px; font-family:'Cormorant Garamond'; font-size:13px; color:#3a2f28; text-align:center; }
.polaroid .fav-btn{ position:absolute; top:16px; right:16px; font-size:16px; filter:drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.polaroid .vid-badge{ position:absolute; top:16px; left:16px; font-size:11px; background:rgba(0,0,0,.55); color:#fff; padding:2px 8px; border-radius:8px; }

.lightbox{ position:fixed; inset:0; background:rgba(6,4,10,.94); z-index:5000; display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition:opacity .35s ease; }
.lightbox.active{ opacity:1; pointer-events:auto; }
.lightbox-media{ max-width:88vw; max-height:78vh; border-radius:12px; box-shadow:0 30px 80px rgba(0,0,0,.6); }
.lightbox-close, .lightbox-prev, .lightbox-next{ position:absolute; width:46px; height:46px; border-radius:50%; background:var(--glass); border:1px solid var(--glass-border); display:flex; align-items:center; justify-content:center; font-size:18px; }
.lightbox-close{ top:24px; right:24px; }
.lightbox-prev{ left:24px; top:50%; transform:translateY(-50%); }
.lightbox-next{ right:24px; top:50%; transform:translateY(-50%); }
.lightbox-cap{ position:absolute; bottom:28px; left:50%; transform:translateX(-50%); font-family:'Cormorant Garamond'; font-size:16px; color:var(--ivory-dim); }

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown-grid{ display:flex; flex-direction:column; gap:26px; max-width:760px; margin:0 auto; }
.countdown-card{ padding:32px; text-align:center; position:relative; overflow:hidden; }
.countdown-card .cc-icon{ font-size:26px; margin-bottom:8px; }
.countdown-card h3{ font-size:24px; margin-bottom:4px; }
.countdown-card .cc-sub{ color:var(--ivory-dim); font-size:13px; margin-bottom:22px; }
.cc-units{ display:grid; grid-template-columns:repeat(6,1fr); gap:8px; max-width:560px; margin:0 auto; }
@media (max-width:560px){ .cc-units{ grid-template-columns:repeat(3,1fr); } }
.cc-unit{ padding:12px 4px; border-radius:14px; background:rgba(255,255,255,.05); border:1px solid var(--glass-border); }
.cc-unit .n{ font-family:'Cormorant Garamond'; font-size:22px; font-weight:600; }
.cc-unit .l{ font-size:9px; letter-spacing:.1em; text-transform:uppercase; color:var(--ivory-dim); }
.cc-elapsed-badge{ display:inline-block; margin-top:14px; font-size:12px; padding:6px 16px; border-radius:999px; background:rgba(217,166,224,.14); color:var(--orchid); }

/* ============================================================
   LETTERS
   ============================================================ */
.letters-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:22px; max-width:900px; margin:0 auto; }
.envelope{ padding:34px 22px; text-align:center; cursor:pointer; transition:transform .4s var(--ease); }
.envelope:hover{ transform:translateY(-6px); }
.envelope .e-icon{ font-size:34px; margin-bottom:12px; display:block; }
.envelope h3{ font-size:19px; margin-bottom:6px; }
.envelope p{ font-size:12.5px; color:var(--ivory-dim); }

.letter-reader{ position:fixed; inset:0; z-index:5000; background:rgba(6,4,10,.92); display:flex; align-items:center; justify-content:center; padding:24px; opacity:0; pointer-events:none; transition:opacity .4s ease; }
.letter-reader.active{ opacity:1; pointer-events:auto; }
.letter-paper{ max-width:680px; width:100%; max-height:84vh; overflow-y:auto; padding:52px 48px; background:linear-gradient(180deg,#221a2d,#1c1626); border-radius:18px; box-shadow:0 30px 90px rgba(0,0,0,.6); position:relative; }
.letter-paper h2{ font-size:26px; margin-bottom:6px; }
.letter-paper .l-meta{ font-size:12px; color:var(--rose-gold); letter-spacing:.05em; margin-bottom:26px; }
.letter-body{ font-family:'Cormorant Garamond'; font-size:19px; line-height:1.85; color:rgba(247,241,234,.92); white-space:pre-line; }
.letter-close{ position:absolute; top:20px; right:20px; width:38px; height:38px; border-radius:50%; background:var(--glass); border:1px solid var(--glass-border); }

/* ============================================================
   TIMELINE / OUR STORY
   ============================================================ */
.timeline{ max-width:720px; margin:0 auto; position:relative; padding-left:32px; }
.timeline::before{ content:''; position:absolute; left:6px; top:0; bottom:0; width:2px; background:linear-gradient(180deg, var(--rose-gold), var(--orchid), transparent); }
.tl-item{ position:relative; padding:0 0 42px 26px; opacity:0; transform:translateY(24px); transition:all .8s var(--ease); }
.tl-item.in{ opacity:1; transform:translateY(0); }
.tl-item::before{ content:''; position:absolute; left:-32px; top:4px; width:12px; height:12px; border-radius:50%; background:var(--champagne); box-shadow:0 0 14px var(--champagne); }
.tl-date{ font-size:11px; letter-spacing:.1em; color:var(--rose-gold); text-transform:uppercase; }
.tl-item h4{ font-size:20px; margin:4px 0 6px; }
.tl-item p{ font-size:14px; color:var(--ivory-dim); line-height:1.7; }
.tl-item img{ margin-top:12px; border-radius:14px; max-height:220px; object-fit:cover; }

/* ============================================================
   MEMORY MAP
   ============================================================ */
.map-wrap{ max-width:900px; margin:0 auto; }
.map-frame{ width:100%; height:380px; border-radius:22px; overflow:hidden; border:1px solid var(--glass-border); position:relative; }
.map-frame iframe{ width:100%; height:100%; border:0; filter:grayscale(.3) invert(.92) contrast(.9); }
.map-pin-note{ padding:26px; margin-top:20px; }
.pin-pulse{ display:inline-block; width:10px; height:10px; border-radius:50%; background:var(--rose-gold); position:relative; margin-right:8px; }
.pin-pulse::after{ content:''; position:absolute; inset:-8px; border-radius:50%; border:2px solid var(--rose-gold); animation:pulseRing 1.8s ease-out infinite; }
@keyframes pulseRing{ 0%{ transform:scale(.4); opacity:1;} 100%{ transform:scale(2.2); opacity:0;} }

/* ============================================================
   PERTEMUAN PERTAMA / CINEMATIC
   ============================================================ */
.cine-hero{ text-align:center; max-width:640px; margin:0 auto 40px; }
.cine-btn{ margin:20px auto 0; display:block; }
.cinematic-overlay{ position:fixed; inset:0; z-index:6000; background:#000; opacity:0; pointer-events:none; transition:opacity 1.2s ease; display:flex; align-items:center; justify-content:center; }
.cinematic-overlay.active{ opacity:1; pointer-events:auto; }
.cine-rain{ position:absolute; inset:0; overflow:hidden; }
.cine-drop{ position:absolute; top:-10%; width:1px; height:60px; background:linear-gradient(180deg, transparent, rgba(231,183,163,.5)); animation:cineFall linear infinite; }
@keyframes cineFall{ to{ transform:translateY(120vh); } }
.cine-text{ max-width:640px; padding:0 30px; font-family:'Cormorant Garamond'; font-size:clamp(18px,3vw,26px); line-height:1.9; color:var(--ivory); text-align:center; position:relative; z-index:2; }
.cine-skip{ position:absolute; top:24px; right:24px; z-index:3; font-size:12px; color:var(--ivory-dim); border:1px solid var(--glass-border); padding:8px 16px; border-radius:999px; }
.cine-photos{ display:none; }
.cine-photos.show{ display:flex; gap:14px; margin-top:30px; flex-wrap:wrap; justify-content:center; }
.cine-photos img{ width:120px; height:120px; object-fit:cover; border-radius:12px; animation:cinePhotoIn .8s var(--ease) backwards; }

/* ============================================================
   QUOTES
   ============================================================ */
.quote-box{ max-width:620px; margin:0 auto; text-align:center; padding:50px 34px; }
.quote-text{ font-size:clamp(20px,3.5vw,28px); line-height:1.6; min-height:120px; }
.quote-author{ margin-top:16px; color:var(--rose-gold); font-size:13px; letter-spacing:.05em; }

/* ============================================================
   DREAM / BUCKET / STORY GRID (generic content cards)
   ============================================================ */
.content-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:20px; max-width:1000px; margin:0 auto; }
.content-card{ padding:26px; }
.content-card .ci{ font-size:24px; margin-bottom:10px; }
.content-card h4{ font-size:18px; margin-bottom:6px; }
.content-card p{ font-size:13.5px; color:var(--ivory-dim); line-height:1.6; }
.checklist{ list-style:none; }
.checklist li{ display:flex; align-items:center; gap:10px; padding:8px 0; font-size:14px; border-bottom:1px dashed var(--glass-border); }
.checklist li input{ accent-color:var(--rose-gold); width:16px; height:16px; }

/* ============================================================
   GAMES
   ============================================================ */
.game-select{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:18px; max-width:820px; margin:0 auto 30px; }
.game-tile{ padding:24px; text-align:center; }
.game-tile .gi{ font-size:28px; margin-bottom:8px; }
.game-tile h4{ font-size:16px; margin-bottom:4px; }
.game-tile p{ font-size:12px; color:var(--ivory-dim); }
.game-stage{ max-width:640px; margin:0 auto; padding:30px; display:none; }
.game-stage.active{ display:block; }
.memory-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.mem-card{ aspect-ratio:1; border-radius:12px; background:var(--surface-2); display:flex; align-items:center; justify-content:center; font-size:24px; cursor:pointer; transition:transform .35s; }
.mem-card.flipped, .mem-card.matched{ background:linear-gradient(135deg,var(--rose-gold),var(--orchid)); }
.blur-photo{ width:100%; max-width:320px; margin:0 auto 20px; border-radius:16px; filter:blur(18px); transition:filter 1.5s ease; }
.blur-photo.revealed{ filter:blur(0); }
.wheel-wrap{ display:flex; flex-direction:column; align-items:center; gap:20px; }
.wheel{ width:240px; height:240px; border-radius:50%; position:relative; border:4px solid var(--rose-gold); transition:transform 3.5s cubic-bezier(.17,.67,.12,1); background:conic-gradient(var(--surface-2) 0deg 60deg, var(--surface) 60deg 120deg, var(--surface-2) 120deg 180deg, var(--surface) 180deg 240deg, var(--surface-2) 240deg 300deg, var(--surface) 300deg 360deg); }
.wheel-pointer{ position:absolute; top:-10px; left:50%; transform:translateX(-50%); font-size:22px; }
.game-result{ text-align:center; margin-top:16px; font-family:'Cormorant Garamond'; font-size:18px; color:var(--champagne); min-height:24px; }
.game-back{ display:block; margin:20px auto 0; }

/* ============================================================
   SURPRISE
   ============================================================ */
.surprise-trigger{ text-align:center; padding:80px 20px; }
.surprise-overlay{ position:fixed; inset:0; z-index:6500; background:#050308; opacity:0; pointer-events:none; transition:opacity 1s ease; display:flex; align-items:center; justify-content:center; flex-direction:column; }
.surprise-overlay.active{ opacity:1; pointer-events:auto; }
.surprise-msg{ font-family:'Cormorant Garamond'; font-size:clamp(26px,5vw,48px); text-align:center; opacity:0; transform:scale(.8); transition:all 1s var(--ease); }
.surprise-overlay.active .surprise-msg{ opacity:1; transform:scale(1); }
.surprise-close{ margin-top:30px; }

/* ============================================================
   ACHIEVEMENTS / SETTINGS
   ============================================================ */
.achv-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:16px; max-width:900px; margin:0 auto; }
.achv{ padding:20px; text-align:center; opacity:.35; filter:grayscale(1); transition:all .4s var(--ease); }
.achv.unlocked{ opacity:1; filter:none; border-color:rgba(243,217,177,.5); }
.achv .ai{ font-size:24px; margin-bottom:8px; }
.achv h5{ font-size:13px; margin-bottom:4px; }
.achv p{ font-size:10.5px; color:var(--ivory-dim); }
.xp-bar{ max-width:400px; margin:0 auto 40px; text-align:center; }
.xp-track{ height:8px; border-radius:6px; background:rgba(255,255,255,.08); overflow:hidden; margin-top:8px; }
.xp-fill{ height:100%; background:linear-gradient(90deg,var(--rose-gold),var(--champagne)); width:0%; transition:width .6s var(--ease); }

.settings-list{ max-width:520px; margin:0 auto; display:flex; flex-direction:column; gap:14px; }
.settings-row{ display:flex; align-items:center; justify-content:space-between; padding:18px 22px; }
.settings-row .sl{ font-size:14px; }
.settings-row .sd{ font-size:11.5px; color:var(--ivory-dim); }
.toggle{ width:46px; height:26px; border-radius:20px; background:rgba(255,255,255,.12); position:relative; transition:background .3s; flex-shrink:0; }
.toggle.on{ background:linear-gradient(135deg,var(--rose-gold),var(--orchid)); }
.toggle::after{ content:''; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; transition:transform .3s var(--ease); }
.toggle.on::after{ transform:translateX(20px); }

/* light mode override */
body.light-mode{ --ink:#f6efe8; --midnight:#f6efe8; --surface:#ffffff; --surface-2:#f1e8de; --glass:rgba(255,255,255,.55); --glass-border:rgba(60,40,50,.12); --ivory:#2c2230; --ivory-dim:rgba(44,34,48,.62); }
body.light-mode .sky-gradient{ background: radial-gradient(ellipse 60% 40% at 20% 0%, rgba(217,166,224,0.18), transparent 60%), radial-gradient(ellipse 50% 40% at 85% 15%, rgba(231,183,163,0.18), transparent 60%), linear-gradient(180deg, #fbf6f0 0%, #f6efe8 100%); }

/* ============================================================
   FOOTER
   ============================================================ */
footer{ text-align:center; padding:70px 20px 130px; color:var(--ivory-dim); font-size:12.5px; position:relative; z-index:2; }
footer .f-heart{ font-size:20px; margin-bottom:10px; }
footer .f-name{ font-family:'Cormorant Garamond'; font-size:22px; color:var(--rose-gold); margin:6px 0; }

/* floating hearts */
.floating-heart{ position:fixed; z-index:3; pointer-events:none; font-size:18px; opacity:.7; animation:floatUp linear forwards; }
@keyframes floatUp{ to{ transform:translateY(-110vh) rotate(30deg); opacity:0; } }
@keyframes floaty{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-8px);} }
@keyframes cinePhotoIn{ from{opacity:0; transform:translateY(20px) scale(.9);} to{opacity:1; transform:translateY(0) scale(1);} }

/* toast */
#toast{ position:fixed; bottom:90px; left:50%; transform:translate(-50%,20px); z-index:9500; padding:14px 24px; border-radius:14px; font-size:13px; opacity:0; transition:all .4s var(--ease); pointer-events:none; }
#toast.show{ opacity:1; transform:translate(-50%,0); }

/* utility */
.center{ text-align:center; }
.mt-40{ margin-top:40px; }
.hidden{ display:none !important; }
::-webkit-scrollbar{ width:8px; }
::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.15); border-radius:4px; }

@media (max-width:640px){
  .page{ padding:110px 5vw 70px; }
  .music-page-grid{ gap:26px; }
}
