:root {
  --bg-top: #5c2558;
  --bg-mid: #32122d;
  --bg-base: #1a0915;
  --bg-bottom: #090307;
  --text: #fff5fc;
  --text-dim: rgba(255, 230, 244, 0.58);
  --line: rgba(255, 231, 244, 0.16);
  --line-strong: rgba(255, 194, 232, 0.3);
  --rose: #ff8fbe;
  --pink: #ffa8d7;
  --hot-pink: #ff43a2;
  --lilac: rgba(223, 182, 255, 0.22);
  --white-glow: rgba(255, 249, 252, 0.95);
  --shadow: 0 42px 120px rgba(22, 5, 18, 0.44);
  --radius-shell: 1.7rem;
  --radius-inner: 1.15rem;
  --radius-pill: 999px;
  --font-terminal: "Cascadia Mono", "IBM Plex Mono", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 50% 6%, rgba(255, 219, 239, 0.48), transparent 26rem),
    radial-gradient(circle at 50% 34%, rgba(255, 128, 191, 0.18), transparent 28rem),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 42%, var(--bg-base) 70%, var(--bg-bottom) 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-terminal);
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 196, 228, 0.28), transparent 16rem),
    radial-gradient(circle at 50% 48%, rgba(255, 111, 179, 0.18), transparent 23rem),
    linear-gradient(180deg, rgba(98, 38, 88, 0.28) 0%, rgba(34, 11, 29, 0.9) 58%, rgba(9, 3, 7, 0.98) 100%);
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

button,
a,
input {
  font: inherit;
}

.page-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: 1.4rem clamp(1rem, 3vw, 2.5rem) 0.8rem;
  overflow: hidden;
}

.page-shell__grain,
.page-shell__scanlines,
.page-shell__blush,
.matrix-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-shell__grain {
  z-index: 0;
  opacity: 0.13;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.12) 0 0.04rem, transparent 0.05rem),
    radial-gradient(circle at 68% 48%, rgba(255, 255, 255, 0.08) 0 0.03rem, transparent 0.04rem),
    radial-gradient(circle at 80% 65%, rgba(255, 255, 255, 0.06) 0 0.03rem, transparent 0.05rem);
  background-size: 10rem 10rem, 8rem 8rem, 12rem 12rem;
}

.page-shell__scanlines {
  z-index: 0;
  opacity: 0.07;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 4px
    );
}

.page-shell__blush {
  z-index: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 170, 217, 0.2), transparent 18rem),
    radial-gradient(circle at 50% 50%, rgba(255, 67, 162, 0.1), transparent 20rem),
    radial-gradient(circle at 50% 64%, rgba(223, 182, 255, 0.06), transparent 18rem);
  filter: blur(1.1rem);
}

.matrix-field {
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
}

.matrix-video-shell {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.matrix-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.96;
  mix-blend-mode: screen;
  image-rendering: pixelated;
}

.matrix-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 49%, rgba(26, 9, 21, 0) 0 5.5rem, rgba(26, 9, 21, 0.08) 7rem, rgba(26, 9, 21, 0.34) 11.2rem, rgba(26, 9, 21, 0) 17.4rem),
    linear-gradient(180deg, rgba(255, 210, 234, 0.02) 0%, transparent 16%, rgba(9, 3, 7, 0.08) 100%);
}

.top-label,
.footer-signal {
  position: relative;
  z-index: 5;
}

.top-label {
  display: grid;
  justify-items: center;
  gap: 0.28rem;
  margin-top: 0.7rem;
}

.wordmark,
.system-status,
.hero-copy__signal,
.footer-signal p {
  margin: 0;
  text-transform: uppercase;
}

.wordmark {
  font-size: clamp(1.12rem, 2.7vw, 1.55rem);
  letter-spacing: 0.38em;
  color: rgba(255, 248, 252, 0.99);
  text-shadow: 0 0 1rem rgba(255, 167, 215, 0.08);
}

.system-status {
  font-size: 0.48rem;
  letter-spacing: 0.42em;
  color: rgba(255, 233, 246, 0.18);
}

.wall-ready .wordmark,
.wall-ready .system-status,
.wall-ready .hero-copy__signal {
  opacity: 0;
  color: transparent;
  text-shadow: none;
}

.stage {
  position: relative;
  z-index: 4;
  min-height: calc(100vh - 6.5rem);
  display: grid;
  place-items: center;
}

.hero {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 0.56rem;
  width: min(100%, 46rem);
}

.portal-object {
  position: relative;
  z-index: 2;
  width: min(100%, 35rem);
  aspect-ratio: 1.12;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 2rem 4rem rgba(33, 5, 21, 0.34));
}

.portal-object__bloom
.portal-object__geometry,
.portal-object__gate,
.portal-object__spark {
  position: absolute;
}

.portal-object__bloom {
  inset: 12% 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 226, 242, 0.74), rgba(255, 156, 202, 0.34) 18%, rgba(255, 143, 190, 0.16) 33%, rgba(255, 67, 162, 0.08) 48%, transparent 68%);
  filter: blur(1.65rem);
  animation: bloomPulse 9s ease-in-out infinite;
}


.portal-object__geometry {
  inset: 14.5% 3.5% 11.5%;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
  opacity: 0.78;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 1rem rgba(255, 126, 192, 0.1));
}

.portal-object__trace {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.portal-object__trace--one {
  stroke: rgba(255, 242, 249, 0.46);
  stroke-width: 1.18;
  stroke-dasharray: 24 12 34 16;
}

.portal-object__trace--two {
  stroke: rgba(255, 170, 212, 0.3);
  stroke-width: 1;
  stroke-dasharray: 12 14 22 18 42 16;
}

.portal-object__trace--three {
  stroke: rgba(237, 213, 255, 0.19);
  stroke-width: 0.84;
  stroke-dasharray: 8 14 16 18;
}

.portal-object__gate {
  inset: 28.7% 21.5%;
  border-radius: 50%;
  overflow: hidden;
}

.portal-object__gate::after {
  content: "";
  position: absolute;
  inset: 1.9%;
  border-radius: 50%;
  background:
    conic-gradient(from 94deg, transparent 0 14%, rgba(255, 238, 246, 0.16) 14% 14.8%, transparent 14.8% 46%, rgba(255, 149, 203, 0.13) 46% 46.8%, transparent 46.8% 73%, rgba(255, 238, 246, 0.12) 73% 73.7%, transparent 73.7% 100%);
  mask: radial-gradient(circle at 50% 50%, transparent 0 66.2%, #000 68.4% 69.9%, transparent 72.2%);
  opacity: 0.78;
  pointer-events: none;
}

.portal-object__gate-glow,
.portal-object__gate-core,
.portal-object__gate-sheen {
  position: absolute;
}

.portal-object__gate-glow {
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 250, 252, 0.94) 0 4.1%, rgba(255, 218, 236, 0.14) 7.2%, rgba(10, 2, 9, 0.92) 28%, rgba(2, 0, 2, 0.995) 54.6%, rgba(255, 244, 249, 0.98) 57.4%, rgba(255, 178, 216, 0.62) 58.7%, rgba(255, 93, 171, 0.24) 60.2%, rgba(255, 67, 162, 0.06) 63%, rgba(0, 0, 0, 0) 66.4%);
  box-shadow: 0 0 1.75rem rgba(255, 108, 182, 0.16);
}

.portal-object__gate-core {
  inset: 16.4%;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.016) 0,
      rgba(255, 255, 255, 0.016) 1px,
      transparent 1px,
      transparent 4px
    ),
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 50% 38%, rgba(30, 7, 21, 0.22), rgba(8, 1, 7, 0.9) 24%, rgba(2, 0, 2, 0.985) 58%, rgba(0, 0, 0, 1) 82%);
  box-shadow: inset 0 -0.45rem 1.4rem rgba(0, 0, 0, 0.44), inset 0 0 1.6rem rgba(255, 111, 179, 0.05);
  animation: coreShimmer 16s ease-in-out infinite;
}

.portal-object__gate-core::before,
.portal-object__gate-core::after,
.portal-object__gate-sheen::before,
.portal-object__gate-sheen::after {
  content: "";
  position: absolute;
}

.portal-object__gate-core::before {
  inset: 3.8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 68.8%, rgba(255, 240, 247, 0.16) 70.9%, rgba(255, 153, 206, 0.08) 72.3%, transparent 74.4%),
    conic-gradient(from 92deg, transparent 0 12%, rgba(255, 240, 247, 0.12) 12% 12.7%, transparent 12.7% 45%, rgba(255, 152, 205, 0.08) 45% 45.8%, transparent 45.8% 100%);
  opacity: 0.74;
  mix-blend-mode: screen;
}

.portal-object__gate-core::after {
  left: 15%;
  right: 15%;
  top: 6%;
  height: 24%;
  border-radius: 50% 50% 62% 62% / 85% 85% 18% 18%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 252, 253, 0.22), rgba(255, 252, 253, 0.06) 34%, transparent 72%);
  opacity: 0.72;
  filter: blur(0.12rem);
}

.portal-object__gate-sheen {
  left: 11%;
  right: 11%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 252, 0.98) 22%, rgba(255, 188, 220, 0.72) 36%, rgba(255, 92, 170, 0.86) 50%, rgba(255, 188, 220, 0.72) 64%, rgba(255, 248, 252, 0.98) 78%, transparent);
  box-shadow: 0 0 0.38rem rgba(255, 67, 162, 0.36);
}

.portal-object__gate-sheen::before {
  left: 50%;
  top: 50%;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98), rgba(255, 178, 219, 0.48) 58%, transparent 78%);
}

.portal-object__gate-sheen::after {
  left: 50%;
  top: -1.45rem;
  width: 1px;
  height: 2.9rem;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(255, 245, 250, 0.74) 36%, rgba(255, 118, 184, 0.52) 52%, transparent);
  box-shadow: 0 0 0.32rem rgba(255, 118, 184, 0.2);
}

.portal-object__spark {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: rgba(255, 249, 252, 0.86);
  box-shadow: 0 0 0.95rem rgba(255, 191, 227, 0.48);
}

.portal-object__spark--left {
  left: 21.8%;
  top: 48.8%;
}

.portal-object__spark--right {
  right: 21.8%;
  top: 48.8%;
}

.portal-object--active .portal-object__bloom {
  filter: blur(1.15rem);
  opacity: 0.96;
}

.portal-object--active .portal-object__gate-glow {
  box-shadow: 0 0 3rem rgba(255, 120, 186, 0.3);
}

.hero-copy__signal {
  position: relative;
  z-index: 5;
  margin-top: -0.42rem;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: rgba(255, 214, 232, 0.34);
  text-shadow: none;
}

.footer-signal {
  display: grid;
  justify-items: center;
  padding-bottom: 0.28rem;
}

.footer-signal p {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: rgba(255, 239, 247, 0.26);
}

:focus-visible {
  outline: 2px solid rgba(255, 215, 236, 0.92);
  outline-offset: 3px;
}

@keyframes bloomPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.972);
  }

  50% {
    opacity: 0.96;
    transform: scale(1.02);
  }
}

@keyframes portalPulse {
  0%,
  100% {
    transform: scale(0.988);
    opacity: 0.92;
  }

  50% {
    transform: scale(1.012);
    opacity: 1;
  }
}

@keyframes coreShimmer {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(0.98);
  }

  50% {
    transform: scale(1.008);
    filter: brightness(1.04);
  }
}

@keyframes sheenShift {
  0%,
  100% {
    opacity: 0.74;
    transform: scaleX(0.97);
  }

  50% {
    opacity: 1;
    transform: scaleX(1.03);
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding-inline: 0.8rem;
    padding-top: 1.1rem;
  }

  .top-label {
    margin-top: 0.45rem;
  }

  .stage {
    min-height: calc(100vh - 6rem);
  }

  .portal-object {
    width: min(100%, 21.5rem);
  }

  .portal-object__geometry {
    inset: 16% 2.8% 12.5%;
  }

  .portal-object__gate {
    inset: 30.8% 18.8%;
  }

  .matrix-video {
    opacity: 0.92;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

















