:root {
  --bg: #0b1020;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --text: #eef1f8;
  --muted: #9aa4bf;
  --accent: #ff5d5d;
  --accent2: #ffb86b;
  --teal: #3dd9c4;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: 'Inter', system-ui, sans-serif; line-height: 1.5;
}
h1, h2, h3 { font-family: 'Outfit', sans-serif; margin: 0; }
.bg-orbs span {
  position: fixed; border-radius: 50%; filter: blur(90px); opacity: .35; z-index: -1;
  animation: float 18s ease-in-out infinite alternate;
}
.bg-orbs span:nth-child(1) { width: 420px; height: 420px; background: var(--accent); top: -120px; left: -100px; }
.bg-orbs span:nth-child(2) { width: 380px; height: 380px; background: var(--teal); bottom: -120px; right: -80px; animation-delay: -6s; }
.bg-orbs span:nth-child(3) { width: 300px; height: 300px; background: var(--accent2); top: 40%; left: 55%; animation-delay: -12s; }
@keyframes float { to { transform: translate(60px, 40px) scale(1.15); } }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 18px 20px; transition: transform .2s, border-color .2s;
}
.card:hover { border-color: rgba(255,255,255,.28); }
[hidden] { display: none !important; }

main { max-width: 760px; margin: 0 auto; padding: 40px 18px 60px; }
.hero { text-align: center; margin-bottom: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .25em; color: var(--accent2); font-size: .8rem; margin: 0 0 8px; }
.hero h1 {
  font-size: clamp(2.4rem, 8vw, 3.8rem); font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dates { color: var(--muted); margin: 6px 0 18px; }
.countdown { display: inline-block; font-family: 'Outfit'; font-size: 1.15rem; }
.countdown b { color: var(--teal); font-size: 1.6rem; }

.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.tab, #gate-btn {
  font: 500 .95rem 'Inter'; color: var(--muted); background: var(--card);
  border: 1px solid var(--border); padding: 9px 18px; border-radius: 999px; cursor: pointer;
  transition: all .2s;
}
.tab:hover { color: var(--text); transform: translateY(-2px); }
.tab.active { color: #fff; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-color: transparent; }

.panel { display: none; animation: fade .35s ease; }
.panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

.day { margin-bottom: 14px; }
.day h3 { font-size: 1.05rem; display: flex; justify-content: space-between; align-items: baseline; }
.day h3 small { color: var(--muted); font-family: 'Inter'; font-weight: 400; }
.day.today { border-color: var(--teal); box-shadow: 0 0 24px rgba(61,217,196,.25); }
.day.empty { opacity: .55; }
.event { margin-top: 10px; padding-left: 12px; border-left: 3px solid var(--accent); }
.event .t { color: var(--accent2); font-size: .85rem; }
.event .p { color: var(--teal); font-size: .85rem; }
.event .n { color: var(--muted); font-size: .9rem; }

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list li.card { display: flex; gap: 12px; align-items: center; }
.list li.done span { text-decoration: line-through; color: var(--muted); }
.note .d { color: var(--accent2); font-size: .8rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.grid figure { margin: 0; overflow: hidden; border-radius: 14px; border: 1px solid var(--border); }
.grid img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform .4s; }
.grid figure:hover img { transform: scale(1.06); }
.grid figcaption { padding: 8px 10px; font-size: .85rem; color: var(--muted); background: var(--card); }
.empty-msg { text-align: center; color: var(--muted); }
footer { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 40px; }

.gate { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.gate-card { text-align: center; width: min(340px, 100%); display: grid; gap: 12px; }
.gate-card input {
  padding: 12px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(0,0,0,.3); color: var(--text); font-size: 1rem; text-align: center;
}
#gate-btn { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; border: 0; }
.error { color: var(--accent); margin: 0; }
