.landing-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.18;
  pointer-events: none;
}

/* Portal title */
.portal-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.portal-title {
  font-size: clamp(40px, 8vw, 80px);
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #f5f3ff 0%, #c4b5fd 50%, #f2568c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: portal-glow 3s ease-in-out infinite alternate, title-enter 1s cubic-bezier(0.22,1,0.36,1) forwards;
  opacity: 0;
}

@keyframes title-enter {
  from { opacity: 0; letter-spacing: 0.3em; filter: blur(12px); }
  to   { opacity: 1; letter-spacing: 0.06em; filter: blur(0); }
}

@keyframes portal-glow {
  from { filter: drop-shadow(0 0 10px rgba(139,92,246,0.7)); }
  to   { filter: drop-shadow(0 0 28px rgba(242,86,140,0.8)); }
}

/* Rest of page hidden until reveal */
.hero-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.hero-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 20px 40px;
  max-width: 980px;
  margin: 0 auto;
}

.hero .eyebrow { margin-bottom: 18px; }

/* Boot sequence */
.boot-sequence {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #06b6d4;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  min-height: 3.5rem;
  opacity: 0;
  animation: fadeIn 0.5s 0.3s forwards;
}
.boot-line { display: block; margin: 3px 0; }
.cursor-blink {
  display: inline-block;
  width: 7px; height: 13px;
  background: #06b6d4;
  animation: blink 1s infinite;
  vertical-align: middle;
  margin-left: 2px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes fadeIn { to { opacity: 1; } }

.portal-wrap {
  position: relative;
  width: min(420px, 78vw);
  height: min(420px, 78vw);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 28px;
}

.portal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.portal-ring svg { width: 100%; height: 100%; }

.portal-ring.spin-slow { animation: spin 40s linear infinite; }
.portal-ring.spin-slow-rev { animation: spin 60s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.portal-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.countdown-grid {
  display: flex;
  gap: 18px;
}

.countdown-unit { display: flex; flex-direction: column; align-items: center; }

.countdown-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 700;
  color: var(--starlight);
  text-shadow: 0 0 22px var(--aurora-dim);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.portal-sub {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}

.event-title {
  font-size: clamp(40px, 8vw, 76px);
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, var(--starlight) 0%, var(--aurora) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.event-acronym {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--dim);
  margin-bottom: 16px;
}
.event-acronym b { color: var(--starlight); font-weight: 600; }

.tagline {
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(245,243,255,0.7);
  margin-bottom: 20px;
  max-width: 500px;
}
.tagline em { color: var(--gold); font-style: normal; }

.event-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--dim);
  letter-spacing: 0.06em;
  margin-bottom: 34px;
}
.event-meta .gold { color: var(--gold); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Crew badge on landing */
.crew-badge-landing {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}
.crew-chip-landing {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 16px;
  border: 1px solid var(--aurora-dim);
  border-radius: 20px;
  color: var(--starlight);
}
.landing-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--aurora-dim);
  display: none;
}

.strip {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 60px auto 0;
  max-width: 900px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.strip-item {
  flex: 1 1 200px;
  padding: 20px 22px;
  border-left: 1px solid var(--line);
}
.strip-item:first-child { border-left: none; }
.strip-item .eyebrow { display: block; margin-bottom: 8px; }
.strip-item p { margin: 0; color: var(--dim); font-size: 14px; line-height: 1.5; }

/* Selfie modal */
.selfie-box { max-width: 480px; }
.selfie-preview-wrap {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 16px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
  background: var(--void-2);
}
.selfie-preview-wrap video,
.selfie-preview-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.selfie-actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 12px;
}

/* Modal (shared with games) */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(6,4,12,0.82); backdrop-filter: blur(4px);
  z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-box {
  width: 100%; max-width: 420px; padding: 32px 28px; text-align: center;
}
.modal-box .eyebrow { display: block; margin-bottom: 10px; }
.modal-box h2 { font-size: 22px; margin-bottom: 8px; }
.modal-box p.sub { color: var(--dim); font-size: 13px; margin: 0 0 22px; }
.modal-select {
  width: 100%; padding: 12px 14px; border-radius: 5px;
  border: 1px solid var(--line); background: var(--void-2);
  color: var(--starlight); font-family: var(--font-body); font-size: 14px; margin-bottom: 16px;
}
.modal-select:focus { outline: none; border-color: var(--aurora); }
.modal-error { color: var(--bad); font-family: var(--font-mono); font-size: 11px; margin-bottom: 12px; min-height: 14px; }

@media (max-width: 640px) {
  .strip-item { border-left: none; border-top: 1px solid var(--line); }
  .strip-item:first-child { border-top: none; }
}
