:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  background: #08010e;
}

.boot {
  position: fixed;
  z-index: 100;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(96, 20, 139, .17), transparent 27%),
    #030106;
  transition: opacity .55s steps(5), visibility .55s;
}
.boot.done { opacity: 0; visibility: hidden; pointer-events: none; }

.boot::before {
  position: absolute;
  content: "";
  inset: 0;
  opacity: .34;
  mix-blend-mode: screen;
  background:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(196, 117, 255, .07) 3px),
    linear-gradient(90deg, transparent 0 18%, rgba(153, 51, 220, .05) 18.3%, transparent 19% 73%, rgba(211, 144, 255, .04) 73.4%, transparent 74%);
  animation: bootScan .22s steps(2) infinite;
}

.boot::after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  height: 16vh;
  top: -18vh;
  opacity: .5;
  background: linear-gradient(transparent, rgba(206, 131, 255, .12), rgba(239, 210, 255, .24), transparent);
  filter: blur(5px);
  animation: bootSweep 1.35s linear infinite;
}

.boot-static {
  position: absolute;
  inset: -30%;
  opacity: .28;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='4' seed='8' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  animation: bootNoise .13s steps(2) infinite;
}

.boot-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(220px, 56vw);
  transform: translate(-50%, -50%);
}

.boot-mark {
  position: relative;
  width: 78px;
  height: 78px;
  margin: 0 auto 34px;
  border: 1px solid rgba(198, 99, 255, .28);
  border-radius: 50%;
  box-shadow: 0 0 32px rgba(160, 39, 229, .18);
  animation: bootGlitch 1.1s steps(2) infinite;
}
.boot-mark::before,
.boot-mark::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}
.boot-mark::before { inset: 8px; border: 1px dashed rgba(231, 189, 255, .5); animation: bootRotate 3s linear infinite; }
.boot-mark::after { inset: 28px; background: #d89cff; box-shadow: 0 0 18px #b455ef; animation: bootBlink .35s steps(2) infinite; }
.boot-mark i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 31px;
  background: linear-gradient(#e9bfff, transparent);
  transform-origin: center top;
}
.boot-mark i:nth-child(1) { transform: rotate(0deg); }
.boot-mark i:nth-child(2) { transform: rotate(120deg); }
.boot-mark i:nth-child(3) { transform: rotate(240deg); }
.boot-mark b { position: absolute; left: -18px; right: -18px; top: 37px; height: 2px; background: rgba(227, 174, 255, .7); box-shadow: 0 0 8px #ba5bea; }

.boot-progress {
  height: 1px;
  overflow: hidden;
  background: rgba(195, 130, 227, .12);
}
.boot-progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left;
  background: linear-gradient(90deg, #6c1d9a, #e9bdff, #8b2bc1);
  box-shadow: 0 0 10px #bf62ef;
  animation: bootLoad 1.75s cubic-bezier(.2,.7,.2,1) both;
}

.boot-bits { display: flex; justify-content: space-between; margin-top: 10px; }
.boot-bits i { width: 9px; height: 2px; background: rgba(206, 153, 234, .16); }
.boot-bits i:nth-child(2),
.boot-bits i:nth-child(5),
.boot-bits i:nth-child(7) { background: rgba(222, 171, 250, .58); animation: bootBlink .44s steps(2) infinite; }

@keyframes bootNoise {
  0% { transform: translate3d(-2%, 1%, 0) scale(1.03); }
  50% { transform: translate3d(3%, -2%, 0) scale(1.06); }
  100% { transform: translate3d(-1%, 3%, 0) scale(1.04); }
}
@keyframes bootScan { 50% { opacity: .62; transform: translateX(2px); } }
@keyframes bootSweep { to { transform: translateY(136vh); } }
@keyframes bootRotate { to { transform: rotate(360deg); } }
@keyframes bootBlink { 50% { opacity: .18; } }
@keyframes bootGlitch {
  0%, 82%, 100% { transform: none; filter: none; }
  84% { transform: translateX(-8px) skewX(8deg); filter: brightness(2); }
  88% { transform: translateX(7px); clip-path: inset(35% 0 38%); }
  92% { transform: translateX(-2px); clip-path: none; }
}
@keyframes bootLoad { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.vessel {
  position: fixed;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 51%, #3a0c58 0, #1b062c 26%, #090210 69%),
    #08010e;
}

#cultureCanvas {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.deep-light {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 48%;
  width: min(110vw, 1260px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle,
      rgba(246, 217, 255, .9) 0,
      rgba(209, 124, 255, .74) 3%,
      rgba(154, 54, 231, .48) 13%,
      rgba(100, 20, 161, .21) 31%,
      transparent 65%);
  filter: blur(18px);
  mix-blend-mode: screen;
  animation: breathe 7s ease-in-out infinite alternate;
}

.deep-light::after {
  position: absolute;
  content: "";
  inset: 20%;
  border-radius: 50%;
  border: 1px solid rgba(228, 189, 255, .16);
  box-shadow:
    0 0 70px rgba(198, 90, 255, .48),
    0 0 160px rgba(142, 39, 218, .35),
    inset 0 0 90px rgba(246, 222, 255, .3);
}

.caustics {
  position: absolute;
  z-index: 3;
  inset: -30%;
  pointer-events: none;
  opacity: .82;
  mix-blend-mode: screen;
  filter: blur(9px);
  background:
    linear-gradient(104deg, transparent 13%, rgba(232, 182, 255, .055) 29%, transparent 43%),
    linear-gradient(76deg, transparent 48%, rgba(174, 80, 255, .06) 61%, transparent 75%),
    repeating-linear-gradient(96deg, transparent 0 11%, rgba(226, 188, 255, .025) 14%, transparent 18%);
  animation: swim 14s ease-in-out infinite alternate;
}

.liquid-surface {
  position: absolute;
  z-index: 7;
  left: -12%;
  right: -12%;
  top: -15vh;
  height: 35vh;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(7px);
  background:
    linear-gradient(180deg, rgba(233, 206, 255, .13), rgba(185, 98, 237, .075) 48%, transparent 91%),
    linear-gradient(92deg, transparent 5%, rgba(239, 209, 255, .06) 27%, transparent 46%, rgba(201, 135, 245, .045) 72%, transparent 94%);
  animation: surfaceRoll 9s ease-in-out infinite alternate;
}

.liquid-surface::after {
  position: absolute;
  content: "";
  left: 5%;
  right: 5%;
  bottom: -52vh;
  height: 62vh;
  opacity: .34;
  filter: blur(12px);
  background:
    linear-gradient(77deg, transparent 8%, rgba(228, 190, 255, .17) 23%, transparent 31%),
    linear-gradient(102deg, transparent 46%, rgba(187, 104, 255, .2) 57%, transparent 66%),
    linear-gradient(84deg, transparent 71%, rgba(220, 180, 255, .13) 80%, transparent 88%);
}

.liquid-surface i { display: none; }

.liquid-lens {
  position: absolute;
  z-index: 9;
  inset: 0;
  pointer-events: none;
  opacity: .42;
  mix-blend-mode: screen;
  background: repeating-linear-gradient(93deg, transparent 0 9%, rgba(202, 135, 255, .025) 11%, transparent 15%);
  filter: blur(.7px);
  animation: lensDrift 11s ease-in-out infinite alternate;
}

.haze {
  position: absolute;
  z-index: 9;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(96deg, transparent 15%, rgba(228, 180, 255, .045) 41%, transparent 54%),
    radial-gradient(ellipse at center, transparent 18%, rgba(19, 2, 29, .2) 58%, rgba(5, 0, 9, .78) 100%);
  mix-blend-mode: screen;
}

.grain {
  position: absolute;
  z-index: 10;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.74' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.glass {
  position: absolute;
  z-index: 12;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(226, 184, 255, .16);
  box-shadow:
    inset 0 0 110px rgba(84, 12, 125, .24),
    inset 25px 0 34px rgba(236, 212, 255, .025),
    inset -25px 0 34px rgba(236, 212, 255, .025),
    0 0 0 1px rgba(0, 0, 0, .8);
}

.sigil {
  position: absolute;
  z-index: 14;
  width: 26px;
  height: 26px;
  opacity: .24;
  pointer-events: none;
}
.sigil-a { top: 29px; left: 29px; }
.sigil-b { right: 29px; bottom: 29px; transform: rotate(180deg); }
.sigil::before,
.sigil::after,
.sigil i {
  position: absolute;
  content: "";
  background: #dca5ff;
  box-shadow: 0 0 5px rgba(198, 101, 255, .7);
}
.sigil::before { left: 0; top: 0; width: 26px; height: 1px; }
.sigil::after { left: 0; top: 0; width: 1px; height: 26px; }
.sigil i { width: 2px; height: 2px; border-radius: 50%; }
.sigil i:nth-child(1) { left: 8px; top: 8px; }
.sigil i:nth-child(2) { left: 14px; top: 14px; }
.sigil i:nth-child(3) { left: 20px; top: 20px; }

.motion-permission {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  width: 42px;
  height: 42px;
  transform: translateX(-50%);
  border: 1px solid rgba(224, 167, 255, .36);
  border-radius: 50%;
  background: rgba(20, 3, 31, .5);
  box-shadow: 0 0 24px rgba(167, 51, 239, .25), inset 0 0 14px rgba(194, 98, 255, .16);
  backdrop-filter: blur(10px);
}
.motion-permission[hidden] { display: none; }
.motion-permission i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 15px;
  background: rgba(233, 203, 255, .72);
  transform-origin: center 7px;
}
.motion-permission i:nth-child(1) { transform: translate(-50%, -50%); }
.motion-permission i:nth-child(2) { transform: translate(-50%, -50%) rotate(120deg); }
.motion-permission i:nth-child(3) { transform: translate(-50%, -50%) rotate(240deg); }

@keyframes breathe {
  to { transform: translate(-50%, -50%) scale(1.13); opacity: .78; }
}
@keyframes swim {
  to { transform: translate3d(7%, -5%, 0) rotate(3deg) scale(1.07); }
}
@keyframes surfaceRoll {
  to { transform: translate3d(5%, 3%, 0) rotate(1.5deg) scale(1.04); }
}
@keyframes lensDrift {
  to { transform: translate3d(-3%, 2%, 0) scale(1.035); }
}

@media (max-width: 700px) {
  .deep-light { width: 150vw; top: 44%; }
  .grain { opacity: .13; }
  .liquid-lens { opacity: .3; }
  .glass { inset: 7px; }
  .sigil-a { top: 20px; left: 20px; }
  .sigil-b { right: 20px; bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .deep-light, .caustics, .liquid-surface, .liquid-lens { animation: none; }
}
