:root {
  --blue: #01affe;
  --ink: #102028;
  --muted: #5d7382;
  --line: #d7ebf6;
  --wash: #f4fbff;
  --pale: #e7f6ff;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--blue); color: #fff; height: auto; overflow-x: hidden; overflow-y: auto; }
body { font-family: Manrope, Inter, system-ui, sans-serif; font-size: 15px; line-height: 1.5; min-height: 100dvh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.wrap { width: min(1100px, 100%); margin: 0 auto; padding: 0 22px; }
#boot {
  position: fixed; inset: 0; z-index: 200; background: #01affe;
  display: grid; place-items: center; pointer-events: none;
  animation: boot 2s linear forwards;
}
#boot p { margin: 0; font-family: "Great Vibes", cursive; font-size: clamp(72px, 12vw, 128px); line-height: 1; }
@keyframes boot { 0%, 72% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
.engrave {
  display: block; width: min(100%, 300px); height: auto; margin: 22px 0 0 -8px;
  opacity: .92; pointer-events: none; user-select: none;
}
.nav, #view, footer { position: relative; z-index: 1; }
.nav {
  position: sticky; top: 0; z-index: 30; height: 64px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 0 18px; background: rgba(1,175,254,.92); border-bottom: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .08em; font-size: 15px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.links { display: flex; justify-content: center; gap: 2px; position: relative; }
.links a { padding: 8px 12px; font-size: 14px; color: rgba(255,255,255,.84); }
.links a.on { color: #fff; }
.bar { position: absolute; left: 0; bottom: -12px; height: 2px; width: 0; background: #fff; transition: transform .28s ease, width .28s ease; pointer-events: none; }
.nav-r, .cta, .tools, .filters, .tabs, .steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.menu { display: none; }
.ghost, .solid {
  border: 1px solid rgba(255,255,255,.55); background: transparent; color: #fff; border-radius: 2px;
  padding: 8px 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  position: relative; overflow: hidden;
}
.solid { background: #fff; color: var(--blue); border-color: #fff; }
.solid .wipe, .ghost .wipe { position: absolute; inset: 0; transform: translateX(-102%); transition: transform .35s ease; z-index: 0; }
.solid .wipe { background: #d9f3ff; }
.ghost .wipe { background: #fff; }
.solid:hover .wipe, .ghost:hover .wipe { transform: none; }
.ghost:hover { color: var(--blue); border-color: #fff; }
.solid span, .ghost span, #subs-open em { position: relative; z-index: 1; }
#subs-open em { margin-left: 8px; font-style: normal; font-size: 11px; letter-spacing: 0; border: 1px solid currentColor; padding: 0 5px; border-radius: 99px; }
.wallet { display: none; align-items: center; gap: 8px; font-size: 13px; }
.wallet.on { display: flex; }
.lamp { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255,255,255,0); } }
#view { min-height: 0; flex: 1; display: flex; flex-direction: column; opacity: 0; transform: translateY(8px); }
#view.in { opacity: 1; transform: none; transition: opacity .35s ease, transform .35s ease; }
.hero { padding: 34px 0 6px; }
.stage {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .82fr);
  gap: 36px; align-items: center; padding: 22px 0 28px;
}
.stage-copy { min-width: 0; }
.eyebrow { margin: 0 0 8px; font-size: 11px; letter-spacing: .16em; color: #fff; }
h1 { margin: 0; max-width: 14ch; font-weight: 650; letter-spacing: -.04em; font-size: clamp(36px, 4.4vw, 58px); line-height: .96; }
.lede { margin: 14px 0 0; max-width: 42ch; color: rgba(255,255,255,.92); font-size: 16px; }
.cta { margin-top: 18px; }
.ticks { display: flex; gap: 18px; margin: 22px 0 0; padding: 0; list-style: none; }
.ticks li { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border-top: 2px solid #fff; padding-top: 8px; }
.shaft {
  background: #fff; color: var(--ink); border-radius: 2px; overflow: hidden;
  box-shadow: 0 22px 50px rgba(4, 40, 72, .22);
}
.plate, .dock { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; }
.plate span, .dock span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plate b, .dock b { font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.plate.lit { background: var(--pale); }
.plate.lit span, .plate.lit b { color: var(--blue); }
.well { position: relative; height: 196px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.track { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #d5edf8; transform: translateX(-50%); }
.track::before, .track::after {
  content: ""; position: absolute; left: 50%; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--blue); background: #fff; transform: translate(-50%, -50%);
}
.track::before { top: 0; }
.track::after { top: auto; bottom: 0; transform: translate(-50%, 50%); }
.car {
  position: absolute; left: 50%; top: 100%; width: 16px; height: 16px; margin: 0;
  border-radius: 50%; background: var(--blue); transform: translate(-50%, -50%);
  box-shadow: 0 0 0 7px rgba(1, 175, 254, .16);
}
.dock { border-top: 0; align-items: center; }
.slot { width: 112px; height: 34px; border: 1px dashed #b7dff2; background: var(--wash); position: relative; overflow: hidden; flex: none; }
.pass {
  position: absolute; inset: 3px; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-style: normal; font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  transform: translateX(-130%);
}
.why { margin: 0; min-height: 52px; padding: 0 16px 14px; color: var(--muted); font-size: 13px; }
.floor { background: #fff; color: var(--ink); }
.floor-head { display: flex; justify-content: space-between; gap: 28px; align-items: flex-end; padding: 28px 0 16px; border-bottom: 1px solid var(--line); }
.floor-head h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; font-weight: 650; max-width: 16ch; }
.floor-head p { margin: 0; max-width: 38ch; color: var(--muted); }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); }
.meter div { padding: 18px 16px 26px 0; border-right: 1px solid var(--line); }
.meter div:last-child { border-right: 0; }
.meter span { display: block; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.meter b { display: block; margin-top: 8px; font-size: 28px; font-weight: 650; letter-spacing: -.03em; }
.below { background: #fff; color: var(--ink); padding: 8px 0 48px; }
.beat { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 28px 0; border-top: 1px solid var(--line); }
.beat em { font-style: normal; color: var(--blue); font-size: 13px; letter-spacing: .14em; }
.beat h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.03em; font-weight: 650; }
.beat p { margin: 0; max-width: 62ch; color: var(--muted); }
.go { display: inline-block; margin-top: 14px; background: var(--blue); color: #fff; padding: 10px 14px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
h2.page { margin: 0; font-weight: 650; letter-spacing: -.03em; font-size: clamp(28px, 3vw, 36px); }
.page-top { padding: 22px 0 8px; }
.page-top p, .sub { color: rgba(255,255,255,.88); margin: 8px 0 0; font-size: 14px; }
.lift { position: relative; height: 320px; margin: 8px auto 16px; color: #fff; }
.ring { fill: none; stroke: currentColor; stroke-width: 1.6; }
.core { fill: currentColor; }
.cap { margin: 8px 0 0; color: var(--ink); font-size: 13px; }
.lift svg { width: 100%; height: 100%; display: block; overflow: visible; }
.lift .lab {
  position: absolute; transform: translateX(-50%); font-family: "IBM Plex Mono", monospace;
  font-size: 11px; letter-spacing: .08em; color: rgba(255,255,255,.86); white-space: nowrap;
}
.sheet { background: #fff; color: var(--ink); border-radius: 2px; padding: 16px 18px; margin: 0 auto 12px; }
.sheet h3 { margin: 0 0 6px; font-size: 18px; }
.sheet p, .sheet .sub { color: var(--muted); }
.rules, .facts, .statgrid { display: grid; margin-top: 12px; border: 1px solid var(--line); }
.rules { grid-template-columns: 1fr auto 1fr; }
.facts, .statgrid { grid-template-columns: repeat(5, 1fr); }
.rules > div, .facts > div, .statgrid > div { padding: 14px; border-right: 1px solid var(--line); min-height: 78px; }
.rules > div:last-child, .facts > div:last-child, .statgrid > div:last-child { border-right: 0; }
.kicker { display: block; color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.rules strong, .facts strong, .statgrid strong { display: block; margin-top: 8px; font-size: 18px; font-weight: 650; }
.pair-link { width: 88px; align-self: center; }
.tools { justify-content: space-between; margin: 12px 0; }
input[type="text"], input[type="search"], textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 2px; padding: 16px 12px 8px; font-size: 14px;
}
textarea { min-height: 88px; resize: vertical; }
input:focus, textarea:focus { outline: 1px solid var(--blue); border-color: var(--blue); }
.field { position: relative; margin: 0 0 12px; }
.field label { position: absolute; left: 12px; top: 14px; font-size: 13px; color: var(--muted); pointer-events: none; transition: .15s ease; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: 4px; font-size: 10px; letter-spacing: .08em; color: var(--blue);
}
.filters button, .tabs button, .steps button {
  border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 2px; padding: 6px 10px; font-size: 11px; letter-spacing: .08em;
}
.filters button.on, .tabs button.on, .steps button.on { color: var(--blue); border-color: var(--blue); background: var(--pale); }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; background: #fff; color: var(--ink); border: 1px solid var(--line); }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11px; letter-spacing: .06em; padding: 8px 12px; background: var(--wash); border-bottom: 1px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: transform .15s ease, background .15s ease; }
tbody tr:hover { transform: translateX(2px); background: var(--wash); }
.arrow { color: var(--blue); opacity: 0; }
tbody tr:hover .arrow { opacity: 1; }
.empty { border: 1px dashed #b9dff3; padding: 28px 16px; text-align: center; color: var(--muted); background: var(--wash); }
.empty b { display: block; color: var(--ink); margin-bottom: 4px; }
.stream { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.stream button { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 2px; padding: 12px 8px; font-size: 11px; letter-spacing: .06em; }
.stream button.on { border-color: var(--blue); background: var(--pale); color: var(--blue); }
.layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 12px; align-items: start; }
.inspector, .card, .doc, .side { background: #fff; color: var(--ink); border: 1px solid var(--line); padding: 14px; }
.inspector { position: sticky; top: 76px; }
.inspector h3, .doc h3 { margin: 0 0 8px; }
.rowline { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 8px 0; font-size: 13px; }
.launch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 28px; }
.drop { border: 1px dashed #b9dff3; min-height: 84px; display: grid; place-items: center; color: var(--muted); background: var(--wash); font-size: 12px; }
.drop img { width: 56px; height: 56px; object-fit: cover; }
.docs { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 12px; padding: 12px 0 28px; }
.side { position: sticky; top: 76px; align-self: start; }
.side a { display: block; padding: 7px 8px; font-size: 13px; color: #4c5964; border-left: 2px solid transparent; }
.side a.on { color: var(--blue); border-left-color: var(--blue); }
.doc h3 { margin: 22px 0 6px; font-size: 18px; }
.doc p { max-width: 68ch; color: #314049; }
.scrim { position: fixed; inset: 0; background: rgba(6,40,62,.28); z-index: 40; opacity: 0; pointer-events: none; transition: .25s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; z-index: 50; left: 18px; right: 18px; bottom: 0; height: min(78dvh, 640px);
  background: #fff; color: var(--ink); border: 1px solid #d7ebf6; border-bottom: 0; border-radius: 16px 16px 0 0;
  transform: translateY(110%); transition: transform .55s cubic-bezier(.16,1,.3,1); padding: 18px 18px 28px; overflow: auto;
}
.drawer.on { transform: none; }
.ent { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 12px; margin-top: 10px; }
.ent header { display: flex; gap: 10px; align-items: center; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--pale); color: var(--blue); display: grid; place-items: center; }
.pill { font-size: 10px; letter-spacing: .1em; color: var(--blue); background: var(--wash); padding: 3px 6px; }
.ent .more { display: none; margin-top: 8px; }
.ent.open .more { display: block; }
.palette {
  position: fixed; z-index: 70; left: 50%; top: 16vh; width: min(480px, calc(100% - 24px));
  transform: translateX(-50%); background: #fff; color: var(--ink); display: none;
}
.palette.on { display: block; }
.palette input { border: 0; border-bottom: 1px solid var(--line); padding: 14px; font-size: 15px; color: var(--ink); }
.palette button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: var(--ink); padding: 10px 14px; }
.palette button.on, .palette button:hover { background: var(--wash); }
footer { border-top: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.88); font-size: 12px; padding: 16px 0 22px; }
.toast {
  position: fixed; z-index: 80; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: #102028; color: #fff; padding: 10px 14px; font-size: 13px; opacity: 0; pointer-events: none;
}
.toast.on { opacity: 1; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.28); display: none; place-items: center; z-index: 80; padding: 20px; }
.modal.on { display: grid; }
.modal .box { background: #fff; color: var(--ink); padding: 18px; width: min(420px, 100%); }
.modal .box p { color: #314049; }
.route { fill: none; stroke: currentColor; stroke-width: 1.6; }
.card .shaft { border: 1px solid var(--line); box-shadow: none; }
.launch .steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; margin: 0 0 14px; gap: 6px; }
.launch .steps button { white-space: nowrap; font-size: 10px; letter-spacing: .04em; padding: 7px 2px; text-align: center; }
.route.hot { stroke: #fff; stroke-width: 2.4; }
.card .route { stroke: var(--blue); }
.node circle, .ring { fill: none; stroke: #fff; }
.core { fill: #fff; }
@media (max-width: 900px) {
  .nav { grid-template-columns: auto auto 1fr; }
  .menu { display: inline-flex; }
  .links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #01affe; flex-direction: column; padding: 8px; }
  body.navopen .links { display: flex; }
  .bar { display: none; }
  .layout, .launch, .docs, .facts, .statgrid, .stream, .rules, .stage, .meter, .floor-head, .beat { grid-template-columns: 1fr; }
  .rules > div, .facts > div, .statgrid > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .meter div { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .stage { min-height: 0; padding-top: 18px; }
  .engrave { width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  #boot { animation: none; opacity: 0; visibility: hidden; }
  #view, .drawer { transition: none; }
}
