:root {
  color-scheme: light;
  --ink: #272744;
  --muted: #62647c;
  --line: rgba(82, 87, 131, 0.22);
  --glass: rgba(255, 255, 255, 0.46);
  --machine: #4e8ee8;
  --maker: #54c9bc;
  --world: #8c62ea;
  --unity: #7360cf;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #f3f4f8;
}

body {
  color: var(--ink);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overscroll-behavior: none;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

.experience {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-height: 520px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.98) 0 18%, rgba(238, 239, 249, 0.74) 49%, rgba(222, 228, 238, 0.96) 100%),
    linear-gradient(135deg, #edf1f7, #fbf8fb 48%, #e6eef1);
}

.scene,
.scene > canvas,
.scene > div {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene {
  z-index: 1;
  touch-action: none;
  cursor: grab;
}

.visual-scaffold {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.visual-scaffold svg {
  display: block;
  width: 100%;
  height: 100%;
}

.scaffold-field > :not(:first-child) {
  fill: none;
  stroke: #9099bd;
  stroke-width: 0.8;
  opacity: 0.16;
}

.scaffold-orbits path {
  fill: none;
  stroke-width: 1.7;
}

.scaffold-orbits .orbit-blue { stroke: url(#orbit-blue); }
.scaffold-orbits .orbit-teal { stroke: url(#orbit-teal); }
.scaffold-orbits .orbit-violet { stroke: #8b65e1; opacity: 0.24; }
.scaffold-orbits .orbit-dots { stroke: #718ed0; stroke-width: 1; stroke-dasharray: 2 8; opacity: 0.3; }

.scaffold-platform ellipse,
.scaffold-platform path {
  fill: none;
  stroke: #7f88b3;
  stroke-width: 0.9;
  opacity: 0.22;
}

.scaffold-platform .platform-fill {
  fill: rgba(255, 255, 255, 0.38);
  stroke: #8d94b7;
  stroke-width: 1.4;
  opacity: 0.78;
}

.scaffold-core path,
.scaffold-core .core-outline {
  fill: none;
  stroke: #8873cf;
  stroke-width: 1;
  opacity: 0.28;
}

.scaffold-core .core-light { opacity: 0.76; }
.scaffold-core .core-ray { stroke: #a68eea; stroke-width: 1.15; opacity: 0.3; }

.scaffold-portals circle,
.scaffold-portals path {
  fill: none;
  stroke: #8095c4;
  stroke-width: 0.9;
  opacity: 0.24;
}

.scaffold-portals .portal-halo {
  stroke-width: 1.35;
  stroke-dasharray: 2 7;
  opacity: 0.38;
}

.scaffold-portals .machine-halo { stroke: #5294e5; }
.scaffold-portals .maker-halo { stroke: #58beb5; }
.scaffold-portals .world-halo { stroke: #8c65df; }

.scene.is-dragging {
  cursor: grabbing;
}

.scene canvas {
  display: block;
  outline: none;
}

.scene .label-layer {
  overflow: hidden;
  pointer-events: none;
}

.atmosphere {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 39%, transparent 0 42%, rgba(241, 243, 250, 0.03) 59%, rgba(218, 225, 236, 0.22) 100%),
    linear-gradient(90deg, rgba(232, 238, 245, 0.24), transparent 18% 82%, rgba(227, 235, 239, 0.26));
  box-shadow: inset 0 0 90px rgba(94, 106, 148, 0.07);
}

.grain {
  display: none;
}

.topbar {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: max(22px, env(safe-area-inset-top)) clamp(22px, 3vw, 52px) 0;
  pointer-events: none;
}

.brand,
.top-actions,
.top-actions button {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  letter-spacing: 0.24em;
}

.brand-gem {
  position: relative;
  width: 31px;
  height: 39px;
  transform: rotate(45deg) scaleY(0.76);
  border: 1px solid rgba(75, 82, 122, 0.58);
  filter: drop-shadow(0 0 7px rgba(119, 99, 205, 0.25));
}

.brand-gem::before,
.brand-gem::after,
.brand-gem i {
  position: absolute;
  content: "";
  background: rgba(77, 83, 124, 0.46);
}

.brand-gem::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.brand-gem::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.brand-gem i:nth-child(1),
.brand-gem i:nth-child(2) {
  top: 50%;
  left: 50%;
  width: 1px;
  height: 53%;
  transform-origin: top;
  transform: rotate(33deg);
}

.brand-gem i:nth-child(2) {
  transform: rotate(-33deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.brand-copy strong {
  font-size: clamp(11px, 0.95vw, 15px);
  font-weight: 500;
}

.brand-copy > span {
  display: flex;
  gap: 9px;
}

.brand-copy > span i {
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: #6176c6;
  box-shadow: 0 0 8px rgba(93, 116, 203, 0.45);
}

.brand-copy > span i:nth-child(2) { background: #7d67d5; }
.brand-copy > span i:nth-child(3) { background: #6daed8; }
.brand-copy > span i:nth-child(4) { background: #61c2b6; }

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sound-toggle,
.menu-toggle {
  height: 34px;
  color: #66687c;
  border: 1px solid rgba(87, 91, 119, 0.16);
  background: rgba(255, 255, 255, 0.19);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 5px 22px rgba(72, 78, 111, 0.04);
  cursor: pointer;
  transition: border-color 300ms, background 300ms, color 300ms, transform 300ms;
}

.sound-toggle:hover,
.menu-toggle:hover,
.sound-toggle:focus-visible,
.menu-toggle:focus-visible {
  color: #494b69;
  border-color: rgba(103, 89, 171, 0.34);
  background: rgba(255, 255, 255, 0.54);
  outline: none;
}

.sound-toggle:active,
.menu-toggle:active {
  transform: scale(0.96);
}

.sound-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 20px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.sound-toggle strong {
  color: #8a8b9b;
  font-size: 8px;
  font-weight: 500;
}

.sound-toggle[aria-pressed="true"] strong {
  color: #665bc1;
}

.sound-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}

.sound-bars i {
  width: 1px;
  height: 4px;
  background: currentColor;
}

.sound-toggle[aria-pressed="true"] .sound-bars i {
  animation: sound 800ms ease-in-out infinite alternate;
}

.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-delay: -360ms; }
.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-delay: -170ms; }

@keyframes sound {
  to { height: 12px; }
}

.menu-toggle {
  display: grid;
  place-content: center;
  grid-auto-flow: column;
  gap: 3px;
  width: 34px;
  border-radius: 50%;
}

.menu-toggle i {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
}

.intro {
  position: absolute;
  z-index: 14;
  top: clamp(58px, 9vh, 84px);
  left: 50%;
  width: min(290px, 46vw);
  transform: translate(-50%, -50%);
  text-align: center;
  isolation: isolate;
  pointer-events: none;
  transition: opacity 500ms var(--ease), transform 700ms var(--ease);
}

.intro::before {
  position: absolute;
  z-index: -1;
  inset: -20px -48px;
  content: "";
  background: radial-gradient(ellipse at center, rgba(250, 252, 255, 0.96) 0 42%, rgba(250, 252, 255, 0.72) 60%, transparent 79%);
  pointer-events: none;
}

body[data-world-selected="true"] .intro {
  opacity: 0;
  transform: translate(-50%, -40%);
}

.intro .eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 9px;
  color: rgba(69, 70, 102, 0.55);
  font-size: 6px;
  font-weight: 500;
  letter-spacing: 0.25em;
}

.intro .eyebrow span {
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 85, 170, 0.38));
}

.intro .eyebrow span:last-child {
  transform: scaleX(-1);
}

.intro h1 {
  margin: 0;
  color: #373751;
  font-size: clamp(16px, 1.65vw, 26px);
  font-weight: 300;
  line-height: 0.91;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.9);
}

.intro h1 span,
.intro h1 strong {
  display: block;
}

.intro h1 strong {
  margin-top: 5px;
  font-weight: 500;
}

.intro > p:last-child {
  margin: 9px 0 0;
  color: rgba(64, 66, 94, 0.69);
  font-size: clamp(5px, 0.47vw, 7px);
  font-weight: 500;
  letter-spacing: 0.31em;
}

.portal-interface {
  position: absolute;
  z-index: 13;
  inset: 0;
  pointer-events: none;
}

.portal-label {
  position: absolute;
  pointer-events: auto;
  transition: opacity 450ms var(--ease), transform 650ms var(--ease);
}

.portal-label.machine {
  top: 24.5%;
  left: 2.1%;
}

.portal-label.maker {
  top: 24.5%;
  right: 2.1%;
}

.portal-label.world {
  bottom: 7.5%;
  left: 50%;
  transform: translateX(-50%);
}

body.is-orbiting .portal-label {
  opacity: 0.28;
}

body[data-world-selected="true"] .portal-label:not(.is-active) {
  opacity: 0.36;
}

.portal-card {
  position: relative;
  display: flex;
  align-items: center;
  width: clamp(270px, 26vw, 408px);
  height: clamp(68px, 6.8vw, 98px);
  padding: 0 clamp(21px, 2vw, 33px);
  overflow: hidden;
  color: #37394f;
  border: 1px solid rgba(82, 88, 124, 0.24);
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.27), rgba(250, 250, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 12px 40px rgba(69, 75, 113, 0.035);
  cursor: pointer;
  transition: background 350ms, border-color 350ms, box-shadow 350ms, transform 350ms var(--ease);
}

.portal-label.machine .portal-card {
  justify-content: flex-start;
  text-align: left;
  clip-path: polygon(13px 0, 100% 0, 100% 100%, 13px 100%, 0 50%);
}

.portal-label.maker .portal-card {
  justify-content: flex-end;
  text-align: right;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%);
}

.portal-label.world .portal-card {
  justify-content: center;
  width: clamp(205px, 18vw, 286px);
  height: clamp(59px, 5.7vw, 82px);
  text-align: center;
  clip-path: polygon(13px 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 13px 100%, 0 50%);
}

.portal-card::after {
  position: absolute;
  top: 0;
  left: -80%;
  width: 45%;
  height: 100%;
  content: "";
  transform: skewX(-16deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
  transition: left 800ms var(--ease);
}

.portal-card:hover::after,
.portal-card:focus-visible::after {
  left: 135%;
}

.portal-card:hover,
.portal-card:focus-visible,
.portal-label.is-active .portal-card {
  outline: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.7), rgba(250, 250, 255, 0.26));
  transform: translateY(-2px);
}

.portal-label.machine .portal-card:hover,
.portal-label.machine .portal-card:focus-visible,
.portal-label.machine.is-active .portal-card {
  border-color: rgba(74, 141, 230, 0.48);
  box-shadow: 0 0 28px rgba(77, 143, 230, 0.12), inset 0 1px white;
}

.portal-label.maker .portal-card:hover,
.portal-label.maker .portal-card:focus-visible,
.portal-label.maker.is-active .portal-card {
  border-color: rgba(74, 188, 178, 0.52);
  box-shadow: 0 0 28px rgba(74, 188, 178, 0.12), inset 0 1px white;
}

.portal-label.world .portal-card:hover,
.portal-label.world .portal-card:focus-visible,
.portal-label.world.is-active .portal-card {
  border-color: rgba(132, 88, 224, 0.5);
  box-shadow: 0 0 28px rgba(132, 88, 224, 0.13), inset 0 1px white;
}

.portal-card .portal-glyph {
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  transform: translateY(-50%) rotate(45deg);
  border: 1px solid currentColor;
  opacity: 0.7;
}

.portal-card .portal-glyph::before,
.portal-card .portal-glyph::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  transform: translate(-50%, -50%);
  background: currentColor;
}

.portal-card .portal-glyph::before { width: 70%; height: 1px; }
.portal-card .portal-glyph::after { width: 1px; height: 70%; }
.machine .portal-glyph { right: 24px; color: var(--machine); }
.maker .portal-glyph { left: 24px; color: var(--maker); }
.world .portal-glyph { top: 12px; left: 50%; color: var(--world); }

.portal-copy strong {
  display: block;
  font-size: clamp(10px, 0.88vw, 14px);
  font-weight: 500;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.portal-copy small {
  display: block;
  margin-top: 8px;
  color: rgba(50, 52, 76, 0.58);
  font-size: clamp(5px, 0.44vw, 7px);
  font-weight: 500;
  letter-spacing: 0.17em;
  white-space: nowrap;
}

.world .portal-copy {
  margin-top: 9px;
}

.portal-thread {
  position: absolute;
  top: 50%;
  width: clamp(24px, 3vw, 54px);
  height: 1px;
  opacity: 0.55;
}

.machine .portal-thread {
  right: calc(clamp(24px, 3vw, 54px) * -1);
  background: linear-gradient(90deg, rgba(78, 142, 232, 0.8), transparent);
}

.maker .portal-thread {
  left: calc(clamp(24px, 3vw, 54px) * -1);
  background: linear-gradient(90deg, transparent, rgba(84, 201, 188, 0.8));
}

.world .portal-thread {
  top: calc(clamp(18px, 2vw, 34px) * -1);
  left: 50%;
  width: 1px;
  height: clamp(18px, 2vw, 34px);
  background: linear-gradient(0deg, rgba(140, 98, 234, 0.75), transparent);
}

.information {
  position: absolute;
  z-index: 30;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(430px, 100%);
  height: 100%;
  padding: 70px clamp(32px, 4vw, 62px);
  visibility: hidden;
  opacity: 0;
  transform: translateX(32px);
  border-left: 1px solid rgba(85, 88, 119, 0.13);
  background: rgba(247, 248, 252, 0.74);
  box-shadow: -30px 0 80px rgba(61, 65, 94, 0.08);
  backdrop-filter: blur(34px) saturate(122%);
  transition: opacity 450ms var(--ease), transform 600ms var(--ease), visibility 0s 600ms;
}

.information.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0s;
}

.information-close {
  position: absolute;
  top: 28px;
  right: 29px;
  width: 34px;
  height: 34px;
  color: #696a7b;
  border: 1px solid rgba(76, 80, 109, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.44);
  font-size: 21px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.panel-kicker {
  margin: 0 0 19px;
  color: #7367b4;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.26em;
}

.information h2 {
  margin: 0;
  color: #38384e;
  font-family: "Manrope", sans-serif;
  font-size: clamp(25px, 3vw, 39px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.information > p:not(.panel-kicker, .panel-controls) {
  margin: 24px 0 31px;
  color: #65667a;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
}

.panel-map {
  display: grid;
  gap: 18px;
  padding: 25px 0;
  border-top: 1px solid rgba(81, 85, 119, 0.13);
  border-bottom: 1px solid rgba(81, 85, 119, 0.13);
}

.panel-map > span {
  display: grid;
  grid-template-columns: 10px 1fr;
  align-items: center;
  gap: 11px;
  color: #45465e;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.panel-map i {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  box-shadow: 0 0 9px currentColor;
}

.machine-dot { color: var(--machine); background: currentColor; }
.maker-dot { color: var(--maker); background: currentColor; }
.world-dot { color: var(--world); background: currentColor; }

.panel-map small {
  grid-column: 2;
  margin-top: -5px;
  color: #8a8b9a;
  font-size: 6px;
  letter-spacing: 0.17em;
}

.panel-controls {
  margin: 27px 0 0;
  color: #8b8b9a;
  font-size: 6px;
  line-height: 1.8;
  letter-spacing: 0.18em;
}

.world-panel {
  position: absolute;
  z-index: 18;
  bottom: 10.5%;
  left: 50%;
  width: min(420px, calc(100% - 40px));
  padding: 25px 28px 24px;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 22px);
  text-align: center;
  border: 1px solid rgba(87, 88, 123, 0.18);
  background: rgba(251, 251, 255, 0.55);
  box-shadow: 0 20px 70px rgba(57, 60, 92, 0.08), inset 0 1px rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(21px) saturate(125%);
  transition: opacity 400ms var(--ease), transform 600ms var(--ease), visibility 0s 600ms;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}

.world-panel.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.world-panel > p:first-child {
  margin: 0 0 8px;
  color: var(--unity);
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.27em;
}

.world-panel h2 {
  margin: 0;
  color: #3c3c55;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.world-panel > p:nth-of-type(2) {
  margin: 11px auto 15px;
  color: #6a6b7d;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  line-height: 1.55;
}

.world-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 17px;
}

.world-steps span {
  color: #55566e;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.world-steps i {
  width: 3px;
  height: 3px;
  transform: rotate(45deg);
  background: currentColor;
  opacity: 0.45;
}

.world-panel button {
  padding: 9px 17px;
  color: #615c8f;
  border: 1px solid rgba(99, 88, 160, 0.23);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.47);
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.2em;
  cursor: pointer;
}

.status {
  position: absolute;
  z-index: 12;
  bottom: max(25px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(58, 61, 88, 0.64);
  pointer-events: none;
}

.status-left { left: clamp(22px, 3vw, 52px); }
.status-right { right: clamp(22px, 3vw, 52px); text-align: right; }

.status p {
  margin: 0;
  font-size: 6px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.2em;
}

.status strong {
  display: block;
  color: rgba(57, 60, 91, 0.83);
  font-size: 6px;
  font-weight: 500;
}

.status-orb,
.harmony-dial {
  position: relative;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(87, 91, 124, 0.18);
  border-radius: 50%;
}

.status-orb::before,
.status-orb::after,
.harmony-dial::before,
.harmony-dial::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.status-orb::before,
.harmony-dial::before {
  inset: 4px;
  border: 1px dashed rgba(105, 86, 196, 0.25);
  animation: rotate 12s linear infinite;
}

.status-orb i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #866be0;
  box-shadow: 0 0 11px #7453df;
  animation: field-pulse 2.2s ease-in-out infinite;
}

.harmony-dial i {
  width: 1px;
  height: 9px;
  transform-origin: bottom;
  transform: translateY(-4px);
  background: #58729c;
}

.harmony-dial::after {
  inset: -4px;
  border-top: 1px solid rgba(88, 107, 151, 0.48);
  animation: rotate 7s linear infinite reverse;
}

@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes field-pulse { 50% { opacity: 0.55; transform: scale(0.72); } }

.instructions,
.unity-line {
  position: absolute;
  z-index: 10;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.instructions {
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(60, 63, 90, 0.45);
  font-size: 5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  white-space: nowrap;
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.instructions.has-interacted {
  opacity: 0;
  transform: translate(-50%, 6px);
}

.instructions i {
  width: 3px;
  height: 3px;
  transform: rotate(45deg);
  background: #7f73bb;
  opacity: 0.6;
}

.unity-line {
  bottom: 16px;
  margin: 0;
  color: rgba(61, 64, 91, 0.59);
  font-size: 6px;
  font-weight: 500;
  letter-spacing: 0.28em;
  white-space: nowrap;
}

.unity-line span {
  color: #7763c8;
  padding: 0 5px;
}

.boot {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #4f4e6b;
  background:
    radial-gradient(circle at center, #ffffff, #eff1f7 62%, #e7ebf2);
  transition: opacity 900ms var(--ease), visibility 0s 900ms;
}

.boot.is-complete {
  visibility: hidden;
  opacity: 0;
}

.boot-mark {
  position: relative;
  width: 61px;
  height: 61px;
  margin-bottom: 27px;
  transform: rotate(45deg);
  border: 1px solid rgba(91, 77, 164, 0.36);
  animation: boot-turn 7s linear infinite;
}

.boot-mark::before,
.boot-mark::after,
.boot-mark span {
  position: absolute;
  content: "";
  border: 1px solid rgba(91, 77, 164, 0.25);
}

.boot-mark::before { inset: 9px; }
.boot-mark::after { inset: 19px; background: rgba(126, 94, 218, 0.12); box-shadow: 0 0 22px rgba(114, 83, 210, 0.3); }
.boot-mark span:nth-child(1) { top: 50%; left: -9px; width: calc(100% + 18px); height: 1px; border-width: 1px 0 0; }
.boot-mark span:nth-child(2) { top: -9px; left: 50%; width: 1px; height: calc(100% + 18px); border-width: 0 0 0 1px; }
.boot-mark span:nth-child(3) { inset: 3px; border-radius: 50%; }

@keyframes boot-turn {
  to { transform: rotate(405deg); }
}

.boot > p {
  margin: 0 0 22px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
}

.boot-track {
  width: 170px;
  height: 1px;
  overflow: hidden;
  background: rgba(87, 82, 126, 0.13);
}

.boot-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #5d93de, #8c66d7, #56bfb5);
  box-shadow: 0 0 9px rgba(116, 92, 203, 0.6);
  transition: width 400ms var(--ease);
}

.boot small {
  margin-top: 13px;
  color: #8a899a;
  font-size: 5px;
  font-weight: 500;
  letter-spacing: 0.24em;
}

.webgl-fallback {
  position: absolute;
  z-index: 50;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: radial-gradient(circle, #fff, #e9edf4);
}

.webgl-fallback[hidden] { display: none; }
.fallback-gem { width: 68px; height: 68px; transform: rotate(45deg); border: 1px solid #7064b0; }
.webgl-fallback h1 { margin: 34px 0 10px; font-size: 18px; font-weight: 400; letter-spacing: 0.3em; }
.webgl-fallback p { color: #77788a; font-size: 11px; }

.noscript {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  color: #3f4058;
  background: #f3f4f8;
  font-size: 12px;
  letter-spacing: 0.1em;
}

@media (max-width: 900px) {
  .portal-card {
    width: 190px;
    height: 68px;
    padding-inline: 19px;
  }

  .portal-label.world .portal-card {
    width: 190px;
    height: 60px;
  }

  .portal-copy small { margin-top: 6px; }
  .machine .portal-glyph { right: 16px; }
  .maker .portal-glyph { left: 16px; }
  .status { bottom: 20px; }
  .instructions { display: none; }
}

@media (max-width: 650px) {
  .experience { min-height: 450px; }
  .topbar { padding: max(17px, env(safe-area-inset-top)) 17px 0; }
  .brand { gap: 10px; }
  .brand-gem { width: 22px; height: 28px; }
  .brand-copy strong { font-size: 9px; }
  .brand-copy > span { gap: 6px; }
  .brand-copy > span i { width: 3px; height: 3px; }
  .sound-toggle { width: 35px; padding: 0; justify-content: center; }
  .sound-toggle > span:not(.sound-bars), .sound-toggle strong { display: none; }
  .top-actions { gap: 8px; }

  .intro {
    top: clamp(56px, 8.5vh, 72px);
    width: 190px;
  }

  .intro h1 { font-size: 15px; }
  .intro .eyebrow { display: none; }
  .intro > p:last-child { font-size: 4.5px; }

  .portal-card,
  .portal-label.world .portal-card {
    width: 139px;
    height: 49px;
    padding: 0 13px;
  }

  .portal-label.machine .portal-card { padding-right: 16px; }
  .portal-label.maker .portal-card { padding-left: 16px; }
  .portal-label.machine { top: 25%; left: 8px; }
  .portal-label.maker { top: 25%; right: 8px; }
  .portal-label.world { bottom: 8.5%; }
  .portal-copy strong { font-size: 7px; letter-spacing: 0.12em; }
  .portal-copy small { margin-top: 5px; font-size: 3.7px; letter-spacing: 0.11em; }
  .portal-card .portal-glyph { width: 7px; height: 7px; }
  .machine .portal-glyph { right: 10px; }
  .maker .portal-glyph { left: 10px; }
  .world .portal-glyph { top: 8px; }
  .world .portal-copy { margin-top: 5px; }
  .portal-thread { display: none; }

  .status { bottom: max(15px, env(safe-area-inset-bottom)); }
  .status-left { left: 15px; }
  .status-right { right: 15px; }
  .status p { font-size: 4px; letter-spacing: 0.12em; }
  .status strong { font-size: 4px; }
  .status-orb, .harmony-dial { width: 20px; height: 20px; }
  .unity-line { bottom: 7px; font-size: 4px; }

  .world-panel {
    bottom: 8%;
    width: calc(100% - 32px);
    padding: 19px 18px 17px;
  }

  .world-panel h2 { font-size: 12px; }
  .world-panel > p:nth-of-type(2) { font-size: 9px; }
  .information { padding-inline: 30px; }
}

@media (max-height: 650px) and (orientation: landscape) {
  .topbar { padding-top: 14px; }
  .status { bottom: 13px; }
  .unity-line { bottom: 5px; }
  .world-panel { bottom: 7%; padding-block: 16px; }
  .world-panel > p:nth-of-type(2) { margin-block: 7px 10px; }
  .world-steps { margin-bottom: 10px; }
}

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