* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #000;
  color: #fff;
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  overflow: hidden;
}

a, button, input { color: inherit; }

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

.bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bg .still {
  transform: scale(1.14);
  filter: blur(22px) brightness(0.34) saturate(0.9);
  transition: filter .7s ease, transform .7s ease, opacity .5s ease;
}

.bg .live {
  opacity: 0;
  filter: brightness(0.62) contrast(1.08) saturate(1.05);
  transition: opacity .55s ease;
}

.veil {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  transition: background .7s ease;
  pointer-events: none;
}

.dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: radial-gradient(rgba(255, 255, 255, 0.45) 0.6px, transparent 0.7px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

body.is-in .still { opacity: 0; }
body.is-in .live { opacity: 1; }
body.is-in .veil { background: rgba(0, 0, 0, 0.28); }

.enter {
  position: fixed;
  inset: 0;
  z-index: 30;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: 500 20px/1 Outfit, sans-serif;
  letter-spacing: 0.02em;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.55);
  animation: pulse 1.8s ease-in-out infinite;
}

.enter.is-off {
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}

body.is-wait .page {
  display: none !important;
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: none;
  place-items: center;
  padding: 24px;
}

body.is-in .page {
  display: grid;
}

.card {
  width: min(360px, calc(100vw - 36px));
  padding: 28px 26px 22px;
  border-radius: 22px;
  text-align: center;
  background: rgba(8, 8, 10, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: up .55s cubic-bezier(.2, .8, .2, 1) both;
}

.card h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow:
    0 0 2px #fff,
    0 0 16px rgba(255, 255, 255, 0.7),
    0 0 34px rgba(255, 255, 255, 0.28);
}

.mini {
  width: 52px;
  height: 52px;
  margin: 14px auto 16px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.18);
}

.status {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 52px;
  display: grid;
  place-items: center;
}

.typed {
  margin: 0;
  min-height: 1.3em;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 500;
}

.typed::after {
  content: "|";
  margin-left: 1px;
  color: #fff;
  animation: blink 1s steps(1) infinite;
}

.icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}

.icons a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
  transition: transform .16s ease, filter .16s ease;
}

.icons a svg { width: 22px; height: 22px; }

.icons a:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 12px #fff);
}

@keyframes pulse {
  50% { opacity: 0.55; text-shadow: 0 0 28px rgba(255, 255, 255, 0.9); }
}

@keyframes up {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .enter, .card { animation: none; }
}
