:root{
  --bg1:#0b0f1a;
  --bg2:#131a2a;
  --card:rgba(255,255,255,.08);
  --card2:rgba(255,255,255,.12);
  --text:#eaf0ff;
  --muted:rgba(234,240,255,.75);
  --hl:#ffd86b;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --radius: 22px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:"Nunito", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 600px at 20% 10%, #22305a 0%, transparent 55%),
              radial-gradient(900px 500px at 70% 30%, #3b2b62 0%, transparent 60%),
              linear-gradient(180deg, var(--bg1), var(--bg2));
  overflow-x:hidden;
}

.bg{
  position:fixed; inset:0;
  pointer-events:none;
  background:
    radial-gradient(500px 300px at 10% 80%, rgba(255,216,107,.18), transparent 70%),
    radial-gradient(420px 240px at 90% 15%, rgba(130,170,255,.18), transparent 70%);
  filter: blur(0px);
  animation: floatBg 10s ease-in-out infinite;
  opacity:.9;
}

@keyframes floatBg{
  0%,100%{ transform: translateY(0px); }
  50%{ transform: translateY(-12px); }
}

.topbar{
  position:sticky; top:0; z-index:20;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
  backdrop-filter: blur(10px);
  background: rgba(10,14,26,.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand{ display:flex; align-items:center; gap:10px; font-weight:900; letter-spacing:.4px; }
.dot{ width:10px; height:10px; border-radius:999px; background:var(--hl); box-shadow: 0 0 20px rgba(255,216,107,.55); }

.controls{ display:flex; gap:10px; flex-wrap:wrap; }

.wrap{ width:min(1100px, 92vw); margin: 20px auto 80px; display:flex; flex-direction:column; gap:18px; }

.card{
  background: linear-gradient(180deg, var(--card), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 18px;
  overflow:hidden;
}

.hero{ display:grid; grid-template-columns: 1.1fr .9fr; gap:18px; align-items:center; }
@media (max-width: 900px){ .hero{ grid-template-columns:1fr; } }

h1{ font-size: clamp(28px, 3.6vw, 46px); line-height:1.05; margin:0 0 10px; }
h2{ margin:0 0 10px; font-size: clamp(20px, 2.4vw, 28px); }
h3{ margin: 12px 0 6px; }
p{ margin: 0 0 12px; color:var(--text); }
.muted{ color: var(--muted); }
.hl{ color:var(--hl); text-shadow: 0 0 18px rgba(255,216,107,.25); }

.btn{
  border:none;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,216,107,.95);
  color:#1b1a14;
  font-weight:900;
  cursor:pointer;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.02); }
.btn:active{ transform: translateY(1px) scale(.98); }

.btn.ghost{
  background: rgba(255,255,255,.10);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.14);
}

.chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.chip{
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  color: var(--muted);
  font-weight:700;
}

.heroMedia{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.polaroid{
  cursor: pointer;
  background: rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding:12px;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
  transform-origin:center;
}
.polaroid img{
  width:100%;
  height: 220px;
  object-fit:cover;
  border-radius: 14px;
  display:block;
  background: rgba(0,0,0,.2);
}
.caption{ margin-top:10px; font-weight:900; color: rgba(255,255,255,.9); }

.tilt{ animation: tilt 5.5s ease-in-out infinite; }
#polaroid2{ animation-delay: .8s; }
@keyframes tilt{
  0%,100%{ transform: rotate(-1.6deg) translateY(0); }
  50%{ transform: rotate(1.8deg) translateY(-8px); }
}

.timeline{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}
@media (max-width: 860px){ .timeline{ grid-template-columns:1fr 1fr; } }
@media (max-width: 520px){ .timeline{ grid-template-columns:1fr; } }

.tItem{
  text-align:left;
  display:flex; gap:10px; align-items:flex-start;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  cursor:pointer;
}
.tItem:hover{ background: rgba(255,255,255,.09); }
.tDot{
  width:10px; height:10px; border-radius:999px;
  margin-top:6px;
  background: rgba(255,216,107,.95);
  box-shadow: 0 0 18px rgba(255,216,107,.35);
}
.tText strong{ display:block; }
.tText small{ color:var(--muted); }

.collage{
  position:relative;
  height: 420px;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  overflow:hidden;
}
@media (max-width: 560px){ .collage{ height: 520px; } }

.drag{
  position:absolute;
  width: 210px;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
  cursor: grab;
  user-select:none;
  touch-action:none;
  transform: translate3d(0,0,0);
}
.drag.pinned{
  outline: 2px solid rgba(255,216,107,.85);
  cursor: default;
}

.videos{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width: 780px){ .videos{ grid-template-columns:1fr; } }
.vid{
  width:100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
}

.letter{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  padding: 14px;
}
.sign{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  align-items:baseline;
  margin-top: 10px;
}
.sig{ font-weight: 900; color: var(--hl); }

.miniGame{ margin-top: 14px; }
.gameBar{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.score{ color: var(--muted); font-weight:800; }
.arena{
  margin-top:12px;
  height: 220px;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  position:relative;
  overflow:hidden;
}

.bubble{
  position:absolute;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  cursor:pointer;
  user-select:none;
  font-weight: 900;
  animation: bubbleFloat 2.4s ease-in forwards;
}
@keyframes bubbleFloat{
  0%{ transform: translateY(0); opacity:1; }
  100%{ transform: translateY(-140px); opacity:0; }
}

.final{ text-align:center; padding: 26px 18px; }

.modal{
  border:none;
  padding: 0;
  background: transparent;
}
.modal::backdrop{
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
}
.modalInner{
  width:min(900px, 92vw);
  background: rgba(16,20,34,.92);
  border:1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.iconBtn{
  border:none;
  background: rgba(255,255,255,.10);
  color: var(--text);
  border:1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: 8px 10px;
  cursor:pointer;
  float:right;
}
.modalGrid{
  margin-top: 6px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items:start;
}
@media (max-width: 820px){ .modalGrid{ grid-template-columns:1fr; } }
.modalGrid img{
  width:100%;
  height: 340px;
  object-fit:cover;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.2);
}

.reasons{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
@media (max-width: 860px){ .reasons{ grid-template-columns:1fr 1fr; } }
@media (max-width: 520px){ .reasons{ grid-template-columns:1fr; } }

.reason{
  text-align:left;
  padding: 12px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  cursor:pointer;
  min-height: 74px;
}
.reason strong{ display:block; }
.reason .hidden{ color: transparent; }
.reason.revealed .hidden{ color: var(--muted); }

.buddy{
  position:fixed;
  right: 14px;
  bottom: 14px;
  z-index: 30;
  border:none;
  background: transparent;
  cursor:pointer;
  display:flex;
  align-items:flex-end;
  gap:10px;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.35));
}
.buddy img{
  width: 84px;
  height: 84px;
  object-fit: contain;
  transform-origin: center;
  animation: buddyIdle 3s ease-in-out infinite;
}
@keyframes buddyIdle{
  0%,100%{ transform: translateY(0) rotate(-2deg); }
  50%{ transform: translateY(-10px) rotate(2deg); }
}
.buddyBubble{
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  padding: 10px 12px;
  border-radius: 16px;
  color: var(--muted);
  max-width: 220px;
  backdrop-filter: blur(8px);
}

.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible{
  opacity: 1;
  transform: translateY(0);
}

body.reduced *{
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

.modalTextAnim{
  opacity: 0;
  transform: translateY(10px);
  animation: modalTextIn 520ms ease forwards;
}

@keyframes modalTextIn{
  to{
    opacity: 1;
    transform: translateY(0);
  }
}
