/* ── boot.css — Polaris Warp Entry Page ── */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%; height: 100%;
  background: #000;
  overflow: hidden;
  font-family: 'Share Tech Mono', monospace;
}

canvas { position: fixed; inset: 0; display: block; }

/* ── HUD — centred column, everything stacked under POLARIS ── */
.hud {
  position: fixed; inset: 0; z-index: 10;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0;
  pointer-events: none;
}

/* POLARIS title */
.hud-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 9vw, 5.5rem);
  letter-spacing: 0.38em;
  color: rgba(255,255,255,0.78);
  animation: logoIn 1s 0.2s cubic-bezier(0.16,1,0.3,1) both;
  transition: opacity 0.9s ease, filter 0.9s ease, letter-spacing 1.1s ease;
}
.hud-logo.gone {
  opacity: 0;
  filter: blur(14px);
  letter-spacing: 1.4em;
}
@keyframes logoIn {
  from { opacity: 0; letter-spacing: 0.7em; filter: blur(10px); }
  to   { opacity: 1; letter-spacing: 0.38em; filter: blur(0); }
}

/* sub-label */
.hud-sub {
  font-size: 0.54rem; letter-spacing: 0.52em; text-transform: uppercase;
  color: rgba(170,145,255,0.45);
  margin-top: 6px;
  animation: fadeUp 0.8s 0.8s ease both;
  transition: opacity 0.6s ease;
}
.hud-sub.gone { opacity: 0; }

/* separator line between sub and button */
.hud-line {
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120,80,220,0.35), transparent);
  margin: 22px 0 20px;
  animation: fadeUp 0.6s 1.1s ease both;
  transition: opacity 0.5s ease;
}
.hud-line.gone { opacity: 0; }

/* jump button */
.hud-btn {
  pointer-events: all;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: rgba(175,145,255,0.7);
  background: rgba(90,50,190,0.08);
  border: 1px solid rgba(110,70,210,0.3);
  border-radius: 3px;
  padding: 11px 30px;
  animation: fadeUp 0.7s 1.3s ease both, btnGlow 3s 2.5s ease-in-out infinite;
  transition: background 0.25s, border-color 0.25s, color 0.25s,
              box-shadow 0.25s, opacity 0.5s ease;
}
.hud-btn:hover {
  background: rgba(100,60,210,0.18);
  border-color: rgba(167,139,250,0.62);
  color: rgba(225,210,255,0.95);
  box-shadow: 0 0 26px rgba(110,70,210,0.3), 0 0 6px rgba(167,139,250,0.2);
  animation: none;
}
.hud-btn.gone {
  opacity: 0;
  pointer-events: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes btnGlow {
  0%,100% { box-shadow: 0 0 0   rgba(110,70,210,0);    border-color: rgba(110,70,210,0.3); }
  50%     { box-shadow: 0 0 22px rgba(110,70,210,0.32); border-color: rgba(155,120,250,0.52); }
}

/* ── CORNERS ── */
.corner {
  position: fixed; width: 28px; height: 28px;
  border-color: rgba(130,95,255,0.25); border-style: solid;
  pointer-events: none; z-index: 20;
}
.corner::after {
  content: ''; position: absolute; width: 3px; height: 3px;
  border-radius: 50%; background: rgba(130,95,255,0.4);
}
.corner.tl { top:18px; left:18px;   border-width:1px 0 0 1px; } .corner.tl::after { top:-1px; left:-1px; }
.corner.tr { top:18px; right:18px;  border-width:1px 1px 0 0; } .corner.tr::after { top:-1px; right:-1px; }
.corner.bl { bottom:18px; left:18px;  border-width:0 0 1px 1px; } .corner.bl::after { bottom:-1px; left:-1px; }
.corner.br { bottom:18px; right:18px; border-width:0 1px 1px 0; } .corner.br::after { bottom:-1px; right:-1px; }

/* ── FOOTER ── */
.footer {
  position: fixed; bottom: 22px; left: 24px; z-index: 20;
  font-size: 0.48rem; letter-spacing: 0.24em;
  color: rgba(70,50,120,0.28); text-transform: uppercase;
  animation: fadeUp 0.8s 1.5s ease both;
  transition: opacity 0.6s ease;
}
.footer.gone { opacity: 0; }

/* ── FLASH ── */
.flash {
  position: fixed; inset: 0; z-index: 60;
  background: #fff; opacity: 0; pointer-events: none;
  transition: opacity 0.06s ease;
}
.flash.bright  { opacity: 1; }
.flash.fadeout { opacity: 0; transition: opacity 1.1s cubic-bezier(0.4,0,0.2,1); }

/* ── MAIN IFRAME — crossfades in after flash peak ── */
#mainFrame {
  position: fixed; inset: 0; z-index: 55;
  width: 100%; height: 100%;
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.0s cubic-bezier(0.4,0,0.2,1);
}
#mainFrame.visible {
  opacity: 1;
  pointer-events: all;
}