:root {
  --bg: #141820;
  --ink: #eceae4;
  --muted: #8e8a82;
  --line: #2e3440;
  --paper: #1c212b;
  --lilac: #9b8cf0;
  --warn: #e6b04a;
  --ui: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--ui); }
body {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 20px;
  gap: 16px;
  overflow: hidden;
  color-scheme: dark;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
}
.trail {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.mast, .stage, .foot { position: relative; z-index: 1; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }

.mast { flex: none; }
.slot { min-height: 52px; }
.lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  position: relative;
  user-select: none;
  opacity: 0;
}
body.boot.settle .lockup {
  opacity: 1;
  transition: opacity 0.7s ease 0.1s;
}
body.ready .lockup { opacity: 1; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.65em;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gate-yz,
.flood-flow {
  font-size: clamp(52px, 12vw, 110px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.85;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.gate-hint {
  font-size: clamp(11px, 1.8vw, 14px);
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0.5;
  margin-top: 0.35em;
  transition: opacity 0.2s ease;
}
body.entered .gate-hint {
  opacity: 0;
}
body.entered .gate {
  pointer-events: none;
}
body.entered.go .gate {
  display: none;
}
.flood {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
  color: #fff;
  opacity: 0;
  visibility: hidden;
}
body.boot.entered .flood {
  visibility: visible;
  animation: floodIn 0.25s ease forwards;
}
@keyframes floodIn { to { opacity: 1; } }
.flood-flow {
  width: 100%;
  box-sizing: border-box;
  padding: 42vh 10px 70vh;
  white-space: nowrap;
  word-break: break-all;
  overflow-wrap: anywhere;
  text-align: center;
}
.flood .seed, .flood .tail {
  font: inherit;
  letter-spacing: inherit;
}
body.boot.spam .flood {
  animation: none;
  opacity: 0.92;
}
body.boot.spam .flood-flow {
  white-space: normal;
}
.debris {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  display: none;
}
body.boot.draw .debris,
body.boot.settle .debris { display: block; }
body.ready .flood,
body.ready .debris { display: none; }
body.boot .stage,
body.boot .foot {
  opacity: 0;
}
body.boot.draw .stage {
  opacity: 1;
  z-index: 8;
  transition: opacity 0.9s ease;
}
body.boot.settle .mast {
  z-index: 9;
}
body.ready .stage,
body.ready .foot { opacity: 1; }

.yzzz, .world {
  flex: none;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 560;
  letter-spacing: -0.06em;
  line-height: 0.85;
}
.yzzz { color: #fff; }
.yzzz span {
  display: inline-block;
}
.yzzz sup {
  display: inline-block;
  font-size: 0.42em;
  line-height: 1;
  margin-left: 0.06em;
  top: -0.85em;
  position: relative;
  opacity: 0;
  transform: translateY(0.3em);
}
@keyframes rise { to { opacity: 1; transform: none; } }
.world { opacity: 0; }
body.settle .yzzz sup {
  animation: rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}
body.settle .world {
  opacity: 1;
  transition: opacity 0.5s ease 0.28s;
}
body.ready .yzzz span,
body.ready .yzzz sup,
body.ready .world { opacity: 1; transform: none; }

.stage {
  flex: 1;
  min-height: 0;
  display: flex;
  position: relative;
  overflow: hidden;
}
.globe {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  touch-action: none;
  overflow: hidden;
}
#c { position: absolute; inset: 0; width: 100%; height: 100%; }

.list { display: none; }
.facet {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 2;
  width: min(440px, 40%);
  display: flex;
  align-items: center;
  padding: 8px 4px 8px 28px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.facet.on, .facet.glitch {
  opacity: 1;
  transform: none;
}
.facet.on { pointer-events: auto; }
.facet.glitch { pointer-events: none; }
.facet.glitch .sheet { opacity: 1; filter: none; }
.facet.glitch .bit { will-change: transform, clip-path, opacity; }
.facet.on .sheet { animation: settle 0.28s ease; }
@keyframes settle { from { opacity: 0; } to { opacity: 1; } }
.facet .pcard {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  transform: none;
}
.facet .pcard:hover { transform: none; }
.facet .prow { align-items: center; }
.sheet { position: relative; width: 100%; padding-top: 18px; }
.x {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  display: grid;
  place-items: center;
}
.x svg { width: 11px; height: 11px; display: block; }
.x:hover { color: var(--lilac); }
.pcard {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 12px 12px 14px;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease;
}
.pcard:hover { transform: translateY(-2px); }
.pcard.on { border-color: var(--lilac); }
.prow { display: flex; align-items: flex-start; gap: 10px; }
.pcard-hit {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.kicker {
  display: block;
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.wip .kicker { color: var(--warn); }
.lead { color: var(--ink); font-weight: 500; }
.wip .lead {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--warn);
}
.cone {
  width: 15px;
  height: 15px;
  display: block;
  flex: none;
}
.pname {
  display: block;
  font-size: 20px;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.acts { display: flex; flex: none; align-items: center; }
.gh, .web {
  width: 28px;
  height: 28px;
  color: #fff;
  display: grid;
  place-items: center;
  position: relative;
  text-decoration: none;
}
.ico { width: 20px; height: 20px; display: block; overflow: visible; }
.gh .line { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.gh .solid, .web .solid {
  clip-path: inset(100% 100% 0% 0%);
  transition: clip-path 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.gh .solid { fill: var(--lilac); }
.gh:hover .solid, .gh:focus-visible .solid,
.web:hover .solid, .web:focus-visible .solid { clip-path: inset(0% 0% 0% 0%); }
.glyph { position: relative; width: 32px; height: 32px; display: block; }
.glyph .edge, .glyph .art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.glyph .art {
  clip-path: inset(100% 100% 0% 0%);
  transition: clip-path 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.web .line, .web .solid { grid-area: 1 / 1; }
.web .line path { fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.web .solid path { fill: var(--lilac); }

.more { padding-top: 12px; }
.more[hidden] { display: none; }
.more p {
  margin: 0 0 10px;
  color: #c9c5bd;
  font-size: 14.5px;
  line-height: 1.6;
}
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.lang {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lang .name {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  padding: 4px 7px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.lang:hover .name, .lang:focus-visible .name { opacity: 1; }
.lang:hover .art, .lang:focus-visible .art { clip-path: inset(0% 0% 0% 0%); }

.foot {
  flex: none;
  display: flex;
  justify-content: flex-end;
}
.foot-yz {
  color: #fff;
  font-size: 18px;
  font-weight: 560;
  letter-spacing: -0.05em;
  text-decoration: none;
  transition: color 0.15s ease;
}
.foot-yz:hover { color: var(--lilac); }
.cur {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0;
}
.cur.on { opacity: 1; }
.cur span {
  position: absolute;
  left: -16px;
  top: -6px;
  display: block;
  width: 16px;
  height: 12px;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform-origin: 100% 50%;
}
@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
}
@media (hover: none) { .cur { display: none; } }

@media (max-width: 760px) {
  body { padding: 18px 14px 12px; gap: 12px; }
  .yzzz, .world { font-size: 32px; }
  .facet {
    top: auto;
    left: 0;
    width: auto;
    max-height: 48%;
    align-items: flex-start;
    padding: 0 2px 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yzzz span, .yzzz sup, .flood { animation: none; opacity: 1; transform: none; }
  .world, .list, .lockup, .foot-yz, .line, .solid, .art, .pcard, .facet, .sheet, .flood, .stage, .foot { transition: none; }
  .world, .lockup, .stage, .foot { opacity: 1; }
  .flood, .gate { display: none; }
  .facet.on .sheet { animation: none; }
}
