:root{
  --bg:#07070a;
  --card:#101018;
  --card2:#0d0d14;
  --text:#f5f6ff;
  --muted:#b8bbd6;
  --gold:#e8c37a;
  --rose:#ff6b9c;
  --line:rgba(255,255,255,.10);
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius: 22px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  background: radial-gradient(1200px 800px at 20% 10%, rgba(255,107,156,.18), transparent 55%),
              radial-gradient(900px 700px at 80% 30%, rgba(232,195,122,.14), transparent 55%),
              var(--bg);
  color:var(--text);
  overflow-x:hidden;
}

/* Keep the password screen fully black */
body:not(.unlocked){
  background:#000;
}

/* Hide the rotating background until the password is successfully entered */
.bg-slideshow{display:none;}
body.unlocked .bg-slideshow{display:block;}

h1,h2{font-family:"Playfair Display",serif; margin:0}
a{color:inherit}

.btn{
  border:1px solid var(--line);
  background: transparent;
  color:var(--text);
  padding:12px 16px;
  border-radius:999px;
  cursor:pointer;
  font-weight:600;
  letter-spacing:.2px;
  transition: transform .08s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
  user-select:none;
}
.btn:active{transform:scale(.98)}
.btn--primary{
  border-color: rgba(232,195,122,.55);
  background: linear-gradient(135deg, rgba(232,195,122,.22), rgba(255,107,156,.18));
  box-shadow: 0 10px 30px rgba(232,195,122,.08);
}
.btn--ghost{
  background: rgba(255,255,255,.04);
}
.btn--big{padding:14px 22px; font-size:16px}

.pill{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background: rgba(255,255,255,.04);
  color:var(--muted);
  font-weight:600;
  font-size:13px;
}

.gate{
  position:fixed;
  inset:0;
  display:grid;
  place-items:center;
  padding:28px;
  background: radial-gradient(1000px 700px at 50% 20%, rgba(255,107,156,.20), transparent 55%),
              radial-gradient(900px 700px at 50% 70%, rgba(232,195,122,.18), transparent 55%),
              rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  z-index:50;
}
.gate__card{
  width:min(560px, 100%);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16,16,24,.92), rgba(10,10,16,.92));
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  padding:26px;
  position:relative;
}
.gate__badge{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(232,195,122,.35);
  color:var(--gold);
  font-weight:700;
  font-size:12px;
  letter-spacing:.6px;
  text-transform:uppercase;
}
.gate__title{font-size:34px; margin-top:12px}
.gate__sub{margin:10px 0 18px; color:var(--muted); line-height:1.5}
.gate__label{display:block; font-weight:700; font-size:12px; color:var(--muted); margin:0 0 8px}
.gate__row{display:flex; gap:10px}
.gate__input{
  flex:1;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  font-size:16px;
  outline:none;
}
.gate__input:focus{border-color: rgba(232,195,122,.55)}
.gate__error{min-height:20px; margin:12px 0 0; color:#ff9fbf; font-weight:600}
.gate__footer{margin-top:16px; color:rgba(255,255,255,.5); text-align:center}

.hint{
  margin-top:16px;
  border:1px dashed rgba(255,255,255,.18);
  border-radius:16px;
  padding:14px;
  background: rgba(255,255,255,.03);
}
.hint__title{font-weight:800; font-size:12px; letter-spacing:.5px; text-transform:uppercase; color:var(--muted)}
.hint__text{margin-top:8px; line-height:1.5}
.hint__format{margin-top:8px; color:var(--muted)}
.hint__format span{color:var(--gold); font-weight:700}

.app{min-height:100%}

.hero{
  position:relative;
  padding: 52px 18px 34px;
  overflow:hidden;
}
.hero__bg{
  position:absolute;
  inset:-40px -40px auto -40px;
  height:420px;
  background:
    radial-gradient(600px 320px at 20% 20%, rgba(255,107,156,.22), transparent 60%),
    radial-gradient(520px 340px at 70% 40%, rgba(232,195,122,.20), transparent 60%),
    radial-gradient(700px 380px at 50% 110%, rgba(255,255,255,.06), transparent 60%);
  filter: blur(6px);
}
.hero__inner{
  position:relative;
  max-width: 920px;
  margin: 0 auto;
  text-align:center;
  border:1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(180deg, rgba(16,16,24,.75), rgba(10,10,16,.75));
  box-shadow: var(--shadow);
  padding: 42px 18px;
}
.hero__title{
  font-size: 64px;
  letter-spacing:.3px;
  margin-top:14px;
}
.hero__lead{
  margin:12px auto 0;
  font-size:18px;
  color:var(--muted);
  max-width:520px;
  line-height:1.6;
}
.hero__actions{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-top:22px;
  flex-wrap:wrap;
}
.hero__note{
  margin-top:16px;
  color:rgba(255,255,255,.55);
  font-weight:600;
  font-size:13px;
}

.section{padding: 22px 18px 46px}
.container{max-width: 1000px; margin: 0 auto}
.grid{
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  gap:16px;
}
@media (max-width: 900px){
  .hero__title{font-size:48px}
  .grid{grid-template-columns:1fr}
}

.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16,16,24,.70), rgba(10,10,16,.70));
  box-shadow: var(--shadow);
  padding:20px;
}
.card__title{font-size:28px; margin-bottom:12px}
.quote{
  margin: 0;
  font-size:17px;
  line-height:1.75;
  color: rgba(245,246,255,.92);
}
.signature{margin-top:10px; color:var(--muted); font-weight:700}

.detail{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:12px 0;
  border-top:1px solid var(--line);
}
.detail:first-of-type{border-top:none}
.detail__label{color:var(--muted); font-weight:700}
.detail__value{font-weight:700}

.mini{
  margin-top:16px;
  border-radius:18px;
  border:1px solid rgba(232,195,122,.35);
  background: rgba(232,195,122,.08);
  padding:14px;
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.mini__heart{
  width:34px; height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background: rgba(255,107,156,.16);
  border:1px solid rgba(255,107,156,.35);
  color: var(--rose);
  font-weight:900;
}
.mini__text{color: rgba(245,246,255,.90); font-weight:600; line-height:1.5}

.audio{
  margin-top:16px;
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.audio__meta{color:var(--muted); font-weight:600; font-size:13px}

.section--gallery{padding-top: 0}
.section__head{text-align:center; margin-bottom:14px}
.section__title{font-size:34px}
.section__sub{color:var(--muted); margin:8px 0 0}

.gallery{
  display:grid;
  grid-template-columns: 44px 1fr 44px;
  gap:10px;
  align-items:center;
}
.gallery__nav{
  height:44px;
  width:44px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  font-size:26px;
  cursor:pointer;
}
.gallery__frame{
  position:relative;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  overflow:hidden;
  min-height: 340px;
  display:grid;
  place-items:center;
}
.gallery__frame img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.gallery__count{
  position:absolute;
  right:12px;
  bottom:12px;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.18);
  color:rgba(255,255,255,.85);
  font-weight:700;
  font-size:12px;
  backdrop-filter: blur(8px);
}

.thumbs{
  margin-top:12px;
  display:flex;
  gap:8px;
  overflow:auto;
  padding-bottom:6px;
  scrollbar-width: thin;
}
.thumb{
  flex:0 0 auto;
  width:64px;
  height:64px;
  border-radius:16px;
  border:1px solid var(--line);
  overflow:hidden;
  cursor:pointer;
  opacity:.8;
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
}
.thumb img{width:100%; height:100%; object-fit:cover; display:block}
.thumb:hover{opacity:1; transform: translateY(-1px)}
.thumb--active{opacity:1; border-color: rgba(232,195,122,.55)}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.85);
  z-index:50;
  padding:24px;
}
.lightbox.is-open{display:flex;}
.lightbox__img{
  max-width:min(1100px, 96vw);
  max-height:88vh;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.25);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
}
.lightbox__close{
  position:absolute;
  top:16px;
  right:16px;
  border:1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.35);
  color:#fff;
  font-size:20px;
  line-height:1;
  width:44px;
  height:44px;
  border-radius:999px;
  cursor:pointer;
}

.footer{padding: 0 18px 38px}
.footer__inner{
  max-width:1000px;
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  color:rgba(255,255,255,.55);
}
.footer__line{font-weight:700}

.confetti{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:40;
}


/* Fullscreen rotating background */
.bg-slideshow{
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.bg-slideshow img{
  position: absolute;
  inset: 0;
  width:100%;
  height:100%;
  object-fit: cover;
  opacity:0;
  transition: opacity 1.5s ease-in-out;
}
.bg-slideshow img.active{
  opacity:1;
}


/* Full-screen background slideshow */
.bgslideshow{
  position:fixed;
  inset:0;
  z-index:0;
  background:#000;
}
.bgslideshow img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition: opacity 1.2s ease;
  transform: scale(1.03);
}
.bgslideshow img.active{ opacity:1; }
.bgslideshow::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(255,107,156,.20), transparent 55%),
    radial-gradient(1000px 800px at 80% 30%, rgba(232,195,122,.18), transparent 55%),
    linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.65));
  pointer-events:none;
}

/* Ensure UI sits above slideshow */
.gate{ z-index:50; }
.app{ position:relative; z-index:10; }
.hero__bg{ display:none; } /* replaced by slideshow */

.gate__sub--volume{
  margin-top:-10px;
  color: rgba(245,246,255,.88);
  font-weight:700;
}

.hero__leadName{
  color: var(--gold);
  font-weight:800;
}


/* --- Hidden Easter Egg Overlay --- */
.easter-egg{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.92);
  padding: 24px;
}
.easter-egg.is-visible{ display: flex; }
.easter-egg__content{
  width: min(960px, 92vw);
  text-align: center;
  color: #fff;
}
.easter-egg__text{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}
.easter-egg__text.is-visible{
  opacity: 1;
  transform: translateY(0);
}
.easter-egg__image{
  width: min(880px, 92vw);
  max-height: 72vh;
  object-fit: contain;
  margin: 18px auto 0;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity .8s ease, transform .8s ease;
}
.easter-egg__image.is-visible{
  opacity: 1;
  transform: scale(1);
}
