/* the fonts are served from this site (no requests to Google); latin only, variable weights */
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("assets/JetBrainsMono.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url("assets/JetBrainsMono.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("assets/Manrope.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("assets/Manrope.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("assets/Manrope.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Pixelify Sans"; font-weight: 500; font-display: block; src: url("assets/PixelifySans.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Pixelify Sans"; font-weight: 700; font-display: block; src: url("assets/PixelifySans.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --void: #07040a;
  --obsidian: #120a12;
  --obsidian-hi: #1d1220;
  --obsidian-edge: #2c1c30;
  --endsky: #1a0c26;
  --red: #ff2a3d;
  --red-hot: #ff5a68;
  --red-deep: #8c0f1c;
  --red-ink: #ff8a95;
  --bone: #f4eef0;
  --ash: #b9a9b1;
  --ash-dim: #a3929c;
  --bedrock: #3b3540;
  /* status page only: the colours everyone reads uptime bars in */
  --ok: #4ade80;
  --warn: #facc15;
  --bad: #f87171;
  --none: #2a2230;
  --px: 4px;
  --wrap: 1180px;
  --display: "Pixelify Sans", "Courier New", monospace;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

/* page changes cross-fade in browsers that support it (nav.js then glides to the section) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; scrollbar-color: var(--red-deep) var(--void); }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: var(--void); }
input, textarea { caret-color: var(--red-hot); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--red-deep); border: 3px solid var(--void); }

img { display: block; }

a { color: var(--red-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:not(.btn) { transition: color 160ms ease; }
a:not(.btn):hover { color: var(--bone); }

:focus-visible { outline: 3px solid var(--red-hot); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; text-wrap: balance; }
h1, h2, h3, summary, .brand { font-variant-ligatures: none; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: 1.45rem; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: var(--void); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* buttons: hard pixel blocks with a lit top edge, like an inventory slot pressed in */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem/1 var(--body); letter-spacing: 0;
  color: var(--void); background: var(--red);
  border: 0; padding: 16px 26px; cursor: pointer; text-decoration: none;
  box-shadow: inset 0 calc(var(--px) * -1) 0 var(--red-deep), inset 0 var(--px) 0 var(--red-hot), 0 10px 22px -14px rgba(0, 0, 0, 0.9);
  transition: transform 200ms ease-in-out, background-color 200ms ease-in-out, box-shadow 200ms ease-in-out;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--red-hot); color: var(--void); transform: translateY(-2px);
    box-shadow: inset 0 calc(var(--px) * -1) 0 var(--red-deep), inset 0 var(--px) 0 var(--red-hot), 0 10px 22px -12px rgba(0, 0, 0, 0.9); }
  .btn-ghost:hover, .btn.danger:hover, .btn[disabled]:hover, .btn[aria-disabled="true"]:hover { transform: none; }
}
.btn:active { transform: translateY(1px); box-shadow: inset 0 var(--px) 0 var(--red-deep); }
.btn[disabled]:hover, .btn[aria-disabled="true"]:hover,
.btn[disabled], .btn[aria-disabled="true"] { background: var(--obsidian-edge); color: var(--ash); box-shadow: none; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 2px var(--obsidian-edge); }
.btn-ghost:hover { background: var(--obsidian-hi); color: var(--bone); box-shadow: inset 0 0 0 2px var(--red-deep); }
.btn-small { padding: 11px 16px; font-size: 0.9rem; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;   /* the links sit in the true middle */
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(7, 4, 10, 0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--obsidian-edge);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.05rem/1 var(--display); color: var(--bone); text-decoration: none; }
.brand img { image-rendering: pixelated; }
.nav nav { display: flex; gap: 26px; justify-self: center; }
.nav > :last-child:not(nav) { grid-column: 3; justify-self: end; }
.nav > .brand { justify-self: start; }
@media (max-width: 1100px) { .home-nav { display: flex; justify-content: space-between; } .home-nav nav { display: none; } }
.nav nav a { color: var(--ash); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav nav a:hover { color: var(--bone); }

/* hero: the End */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - 64px);
  display: grid; justify-items: center; align-content: end;
  padding: 0 16px;
}
.sky {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--void) 0%, #0d0612 55%, var(--endsky) 100%);
}
/* End stone speckles: a pixel starfield */
.sky::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--ash-dim), var(--ash-dim)), linear-gradient(var(--ash-dim), var(--ash-dim)),
    linear-gradient(var(--red-deep), var(--red-deep)), linear-gradient(var(--ash-dim), var(--ash-dim)),
    linear-gradient(var(--ash-dim), var(--ash-dim)), linear-gradient(var(--red-deep), var(--red-deep));
  background-size: 3px 3px;
  background-repeat: no-repeat;
  background-position: 12% 18%, 82% 12%, 70% 44%, 24% 58%, 91% 66%, 8% 80%;
  opacity: 0.7;
}

.crystal-wrap {
  position: relative; width: 220px; height: 260px; margin-top: clamp(40px, 7vh, 80px);
  perspective: 900px;
}
.crystal {
  position: absolute; left: 50%; top: 104px; width: 0; height: 0;
  transform-style: preserve-3d;
  animation: bob 4.6s ease-in-out infinite;
}
/* sizes keep each cube inside the next at any angle: a corner (size x 0.87) never reaches the outer face (outer size / 2) */
.cube { position: absolute; transform-style: preserve-3d; }
.cube i { position: absolute; inset: 0; display: block; }
.cube-outer { --s: 112px; animation: spin-a 8s linear infinite; }
.cube-mid { --s: 62px; animation: spin-b 6s linear infinite; }
.cube-core { --s: 34px; animation: spin-c 4s linear infinite; }
.cube { width: var(--s); height: var(--s); left: calc(var(--s) / -2); top: calc(var(--s) / -2); }
.cube i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
/* glass: a pixel frame with a faint fill, the way the game draws it */
.cube-outer i, .cube-mid i {
  background:
    linear-gradient(var(--red-hot), var(--red-hot)) top / 100% var(--px) no-repeat,
    linear-gradient(var(--red-deep), var(--red-deep)) bottom / 100% var(--px) no-repeat,
    linear-gradient(var(--red-hot), var(--red-hot)) left / var(--px) 100% no-repeat,
    linear-gradient(var(--red-deep), var(--red-deep)) right / var(--px) 100% no-repeat,
    rgba(255, 42, 61, 0.07);
}
.cube-mid i { background-color: rgba(255, 90, 104, 0.1); }
.cube-core i {
  background:
    linear-gradient(90deg, transparent 50%, rgba(140, 15, 28, 0.55) 50%) 0 0 / 13px 13px,
    linear-gradient(transparent 50%, rgba(255, 179, 186, 0.35) 50%) 0 0 / 26px 26px,
    var(--red);
}
/* the glass frames facing the viewer again, drawn after the cubes inside them, so they always sit in front of them:
   some browsers do not depth-sort see-through faces and would draw the inner cube over the outer one's front edges */
.cube-front i { backface-visibility: hidden; background-color: transparent; }
.bedrock {
  position: absolute; left: 50%; bottom: 0; width: 120px; height: 34px; transform: translateX(-50%);
  background:
    linear-gradient(90deg, #24202a 25%, transparent 25% 50%, #24202a 50% 62%, transparent 62%) 0 0 / 30px 8px,
    linear-gradient(#5a5260, #5a5260) top / 100% var(--px) no-repeat,
    var(--bedrock);
}

@keyframes bob { 50% { transform: translateY(-14px); } }
@keyframes spin-a { from { transform: rotateY(0deg) rotateX(54.74deg) rotateZ(45deg); } to { transform: rotateY(360deg) rotateX(54.74deg) rotateZ(45deg); } }
@keyframes spin-b { from { transform: rotateY(0deg) rotateX(54.74deg) rotateZ(45deg); } to { transform: rotateY(-360deg) rotateX(54.74deg) rotateZ(45deg); } }
@keyframes spin-c { from { transform: rotateY(45deg) rotateX(54.74deg) rotateZ(45deg); } to { transform: rotateY(405deg) rotateX(54.74deg) rotateZ(45deg); } }

/* the End's other obsidian pillars on both sides, farther away and dimmer, each with its crystal */
.isle { position: absolute; inset: 0; pointer-events: none; }
.far-pillar { position: absolute; bottom: 0; width: var(--w); height: var(--h); opacity: var(--o); }
.far-pillar::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/obsidian.svg") 0 0 / 48px 48px #120a12;
  box-shadow: inset 0 var(--px) 0 #2c1c30;
  -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent);
}
.far-pillar img { position: absolute; left: 50%; bottom: 100%; width: 32px; height: 32px; margin-left: -16px; image-rendering: pixelated; animation: far-bob 5s ease-in-out infinite; }
.fp1 { left: 3%;  --w: 84px;  --h: 62%; --o: 1; }
.fp2 { left: 11%; --w: 60px;  --h: 44%; --o: 0.75; }
.fp3 { left: 19%; --w: 72px;  --h: 30%; --o: 0.6; }
.fp4 { right: 19%; --w: 66px; --h: 34%; --o: 0.6; }
.fp5 { right: 10%; --w: 76px; --h: 50%; --o: 0.8; }
.fp6 { right: 2%;  --w: 92px; --h: 68%; --o: 1; }
.fp2 img, .fp5 img { animation-delay: -2s; }
.fp3 img, .fp4 img { animation-delay: -3.5s; width: 24px; height: 24px; margin-left: -12px; }
@keyframes far-bob { 50% { transform: translateY(-6px); } }
@media (max-width: 1100px) { .fp3, .fp4 { display: none; } }
@media (max-width: 900px) { .isle { display: none; } }
@media (prefers-reduced-motion: reduce) { .far-pillar img { animation: none; } }

/* feathers drifting down onto the top of the pillar */
.feathers { position: absolute; left: 50%; top: 0; width: min(760px, 100%); height: calc(clamp(40px, 7vh, 80px) + 280px); transform: translateX(-50%); pointer-events: none; overflow: hidden; }
.feathers span { position: absolute; top: -32px; left: var(--x); animation: feather-fall var(--t) linear var(--d) infinite; opacity: 0; }
.feathers i {
  display: block; width: var(--size, 20px); height: var(--size, 20px);
  background: url("assets/feather.svg") center / contain no-repeat; image-rendering: pixelated;
  animation: feather-sway calc(var(--t) / 3) ease-in-out var(--d) infinite alternate;
}
.feathers span:nth-child(1)  { --x: 8%;  --t: 11s; --d: 0s;    --size: 20px; }
.feathers span:nth-child(2)  { --x: 21%; --t: 13s; --d: -4s;   --size: 16px; }
.feathers span:nth-child(3)  { --x: 33%; --t: 10s; --d: -7s;   --size: 22px; }
.feathers span:nth-child(4)  { --x: 44%; --t: 14s; --d: -2s;   --size: 14px; }
.feathers span:nth-child(5)  { --x: 57%; --t: 12s; --d: -9s;   --size: 20px; }
.feathers span:nth-child(6)  { --x: 66%; --t: 10.5s; --d: -5s; --size: 18px; }
.feathers span:nth-child(7)  { --x: 76%; --t: 13.5s; --d: -11s; --size: 22px; }
.feathers span:nth-child(8)  { --x: 87%; --t: 11.5s; --d: -3s; --size: 16px; }
.feathers span:nth-child(9)  { --x: 15%; --t: 15s; --d: -12s;  --size: 14px; }
.feathers span:nth-child(10) { --x: 93%; --t: 12.5s; --d: -8s; --size: 18px; }
/* toned down: half the feathers, fainter and slower */
.feathers span:nth-child(even) { display: none; }
.feathers span { animation-duration: calc(var(--t) * 1.4); }
@keyframes feather-fall {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.45; }
  85% { opacity: 0.45; }
  100% { transform: translateY(calc(clamp(40px, 7vh, 80px) + 300px)); opacity: 0; }
}
@keyframes feather-sway {
  from { transform: translateX(-14px) rotate(-22deg); }
  to { transform: translateX(14px) rotate(18deg); }
}

/* the obsidian pillar the crystal stands on: it carries the name */
.pillar {
  width: min(760px, 100%);
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 52px) clamp(40px, 6vw, 64px);
  text-align: center;
  background: url("assets/obsidian.svg") 0 0 / 64px 64px var(--obsidian);
  image-rendering: pixelated;
  box-shadow: inset 0 var(--px) 0 var(--obsidian-edge), inset var(--px) 0 0 #24152a, inset calc(var(--px) * -1) 0 0 #0b060c;
}
#live-note { color: var(--ash-dim); font-size: 0.9rem; }
.pillar h1 { font-size: clamp(2.8rem, 8vw, 6rem); letter-spacing: -0.02em; }
.tagline {
  margin: 18px auto 0; max-width: 34ch;
  font: 500 clamp(1.05rem, 2.2vw, 1.3rem)/1.45 var(--body);
  color: var(--ash);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
/* live network numbers from the key server, under the buttons */
.live { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--px); margin: 34px 0 0; }
.live > div { background: var(--void); padding: 14px 8px; box-shadow: inset 0 0 0 2px var(--obsidian-edge); }
.live dt { font: 600 0.72rem/1.2 var(--body); color: var(--ash); text-transform: uppercase; letter-spacing: 0.08em; }
.live dd { margin: 6px 0 0; font: 500 clamp(1.4rem, 3vw, 2rem)/1 var(--display); color: var(--bone); font-variant-numeric: tabular-nums; }
.live .dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: var(--red); animation: live-pulse 2s steps(2) infinite; }
@keyframes live-pulse { 50% { opacity: 0.35; } }
@media (max-width: 640px) { .live { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .live .dot { animation: none; } }

/* sections */
section { position: relative; }
.speed, .how, .plans, .faq { padding: clamp(64px, 8vw, 104px) clamp(16px, 4vw, 40px); max-width: var(--wrap); margin: 0 auto; }
.section-head { max-width: 760px; margin-bottom: 52px; }

.text-muted { color: var(--ash-dim); }
.section-head p { margin-top: 18px; color: var(--ash); max-width: 68ch; }

/* performance: tick time bars against the 50 ms line */
.speed { border-top: 1px solid var(--obsidian-edge); }
.runs { list-style: none; margin: 0; padding: 16px 0; display: grid; gap: 24px; }
.run {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 56px); align-items: center;
  padding: 26px 28px; background: var(--obsidian);
}
.run { --row: var(--obsidian); }
.run:nth-child(odd) { background: #0e080f; --row: #0e080f; }
.run-text h3 { font: 700 1.25rem/1.25 var(--body); }
.run-text p { margin-top: 8px; color: var(--ash); font-size: 0.97rem; }
.bars { position: relative; display: grid; gap: 10px; }
.bar { position: relative; height: 30px; display: flex; align-items: center; }
.bar .fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  transition: width 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}
.bar-before .fill { background: repeating-linear-gradient(90deg, #3a2a3c 0 12px, #33243a 12px 24px); }
.bar-after .fill { background: var(--red); box-shadow: inset 0 var(--px) 0 var(--red-hot), inset 0 calc(var(--px) * -1) 0 var(--red-deep); }
.bar b {
  position: relative; z-index: 1; margin-left: calc(var(--w, 0%) + 6px); padding: 4px 6px; background: var(--row);
  font: 700 0.95rem/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: margin-left 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}
.bar-before b { color: var(--ash); }
.bar-after b { color: var(--red-ink); }
.bar-after b .factor { margin-left: 10px; font: 500 0.85rem/1 var(--body); color: var(--ash); }
.run.ok .bar-after b { color: var(--bone); }
.run.ok .bar-after b .factor { color: var(--red-ink); }
.factor-line { display: none; font: 500 0.88rem/1.3 var(--body); color: var(--ash); }
.run.ok .factor-line { color: var(--red-ink); }
.limit {
  position: absolute; top: -8px; bottom: -8px; left: var(--limit, 100%); width: 2px;
  background: repeating-linear-gradient(var(--red) 0 6px, transparent 6px 10px);
}
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 26px; color: var(--ash); font-size: 0.92rem; }
.key { display: inline-block; width: 22px; height: 12px; margin-right: -14px; vertical-align: middle; }
.legend .key + * { margin-left: 0; }
.key-before { background: #3a2a3c; }
.key-after { background: var(--red); }
.key-limit { width: 2px; height: 16px; background: repeating-linear-gradient(var(--red) 0 4px, transparent 4px 7px); }
.fineprint { margin-top: 14px; color: var(--ash-dim); font-size: 0.88rem; max-width: 80ch; }
.fineprint a[href="/benchmarks"]:hover, footer a[href="/benchmarks"]:hover { color: #fda4af; }

.how, .proof, .plans { margin-top: clamp(48px, 7vw, 96px); border-top: 1px solid var(--obsidian-edge); }

/* how it works: three obsidian columns of different heights, like the End's pillars */
.how { border-top-color: var(--obsidian-edge); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; align-items: end; }
.column {
  background: url("assets/obsidian.svg") 0 0 / 64px 64px var(--obsidian);
  padding: 34px 28px 38px;
  box-shadow: inset 0 var(--px) 0 var(--red-deep);
}
.column:nth-child(1) { padding-top: 34px; }
.column:nth-child(2) { padding-top: 70px; }
.column:nth-child(3) { padding-top: 52px; }
.column h3 { font-size: 1.9rem; color: var(--red); margin-bottom: 20px; }
.column ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.column p { line-height: 1.6; margin-bottom: 1rem; }
.column li { color: var(--ash); font-size: 0.98rem; line-height: 1.6; }
.column li strong { display: block; color: var(--bone); font-weight: 700; margin-bottom: 6px; }

.restart { margin-top: 72px; }
.restart h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 40px; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li {
  counter-increment: step; position: relative;
  padding: 38px 22px 0 0; color: var(--ash); font-size: 0.97rem;
  border-top: var(--px) solid var(--obsidian-edge);
}
.steps li::before {
  content: counter(step); position: absolute; top: -18px; left: 0;
  width: 32px; height: 32px; display: grid; place-items: center;
  font: 700 1rem/1 var(--mono); color: var(--void); background: var(--red);
}
.steps li:last-child { border-top-color: var(--red); }
.steps li strong { display: block; color: var(--bone); margin-bottom: 6px; }

/* see it run: a real restart log and the dashboard */
.proof { padding: clamp(64px, 8vw, 104px) clamp(16px, 4vw, 40px); max-width: var(--wrap); margin: clamp(48px, 7vw, 96px) auto 0; border-top: 1px solid var(--obsidian-edge); }
.proof-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px; align-items: start; }
.proof figure { margin: 0; }
.proof figcaption { margin-top: 12px; color: var(--ash-dim); font-size: 0.88rem; max-width: 60ch; }
.console { background: #0b070c; box-shadow: inset 0 0 0 2px var(--obsidian-edge); }
.console-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 2px solid var(--obsidian-edge); color: var(--ash-dim); font: 500 0.78rem/1 var(--mono); }
.console-bar i { width: 10px; height: 10px; background: var(--obsidian-edge); }
.console-bar span { margin-left: 8px; }
.console pre { margin: 0; padding: 16px 16px 18px; font: 500 0.78rem/1.7 var(--mono); color: var(--ash); white-space: pre-wrap; overflow-wrap: anywhere; }
.console b { color: var(--bone); font-weight: 700; }
.console .c-red { color: var(--red-ink); }
.console .c-dim { color: var(--ash-dim); }
.console figcaption { padding: 0 16px 16px; margin-top: 0; }
.shot img { width: 100%; height: auto; box-shadow: 0 0 0 2px var(--obsidian-edge), 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
@media (max-width: 900px) { .proof-grid { grid-template-columns: 1fr; } }

/* plans: three pillars, taller for the bigger plan */
.sales-notice { margin: 0 0 28px; padding: 16px 20px; max-width: 760px; background: var(--obsidian); color: var(--bone); box-shadow: inset 0 var(--px) 0 var(--red-deep); }
.plan-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; gap: 18px;
  padding: 34px 28px 30px; background: var(--obsidian);
  box-shadow: inset 0 var(--px) 0 var(--obsidian-edge);
}
.plan-featured {
  background: linear-gradient(180deg, rgba(255, 42, 61, 0.09) 0%, var(--obsidian-hi) 55%);
  box-shadow: inset 0 var(--px) 0 var(--red), inset 0 0 0 1px rgba(255, 42, 61, 0.3);
}
.plan h3 { font-size: 2rem; }
.price { font: 700 1.5rem/1.2 var(--mono); font-variant-numeric: tabular-nums; color: var(--red-ink); min-height: 1.2em; }
.price small { font: 500 0.95rem var(--body); color: var(--ash); }
.price.soon { font: 500 1rem/1.2 var(--body); color: var(--ash); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan li { position: relative; padding-left: 22px; color: var(--ash); font-size: 0.97rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--red); }
.plan .btn { width: 100%; }
.buy-error { color: var(--red-ink); font-size: 0.92rem; }
.after-buy { margin-top: 26px; color: var(--ash); max-width: 70ch; }

/* faq */
.faq { border-top: 1px solid var(--obsidian-edge); }
.faq details, .faq h2 { max-width: 860px; margin-left: auto; margin-right: auto; }
.faq h2 { margin-bottom: 30px; text-align: center; }
summary { transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { summary:hover { color: var(--red-ink); } }
details { border-top: 1px solid var(--obsidian-edge); }
details:last-of-type { border-bottom: 1px solid var(--obsidian-edge); }
summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font: 700 1.12rem/1.35 var(--body);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--red), var(--red)) center / 100% 4px no-repeat, linear-gradient(var(--red), var(--red)) center / 4px 100% no-repeat;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 24px; color: var(--ash); max-width: 68ch; }

/* footer */
.foot { padding: 56px clamp(16px, 4vw, 40px) 28px; border-top: var(--px) solid var(--red-deep); color: var(--ash-dim); font-size: 0.9rem; }
.foot-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-about p { margin-top: 12px; max-width: 36ch; }
.foot nav { display: grid; align-content: start; gap: 10px; }
.foot-h { font: 700 0.78rem/1 var(--body); color: var(--bone); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.foot nav a { color: var(--ash); text-decoration: none; }
.foot nav a:hover { color: var(--bone); }
.foot-base { max-width: var(--wrap); margin: 44px auto 0; padding-top: 22px; border-top: 1px solid var(--obsidian-edge); display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; font-size: 0.84rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }

/* phones and tablets */
@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav { display: flex; justify-content: space-between; }
  .run { grid-template-columns: 1fr; gap: 18px; padding: 22px 18px; }
  .pillars, .plan-row { grid-template-columns: 1fr; align-items: stretch; }
  .column, .column:nth-child(n), .plan, .plan-featured, .plan[data-plan="network"] { padding-top: 34px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}
@media (max-width: 520px) {
  .brand span, .nav .btn-small { white-space: nowrap; }
  .brand { font-size: 0.9rem; }
  .nav { gap: 12px; }
  .steps { grid-template-columns: 1fr; row-gap: 32px; }
  .actions .btn { width: 100%; }
  .bar-after b .factor { display: none; }
  .factor-line { display: block; }
  .crystal-wrap { transform: scale(0.82); margin-bottom: -20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover, .btn:active { transition: none; transform: none; }
  .crystal, .cube { animation: none !important; }
  .cube-outer { transform: rotateY(20deg) rotateX(54.74deg) rotateZ(45deg); }
  .cube-mid { transform: rotateY(-25deg) rotateX(54.74deg) rotateZ(45deg); }
  .cube-core { transform: rotateY(45deg) rotateX(54.74deg) rotateZ(45deg); }
  .feathers { display: none; }
  .bar .fill, .bar b { transition: none; }
}

/* thank-you page */
.thanks { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 22px; padding: 48px 16px; text-align: center; }
.thanks img { image-rendering: pixelated; }
.thanks h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.thanks p { color: var(--ash); max-width: 52ch; }
.thanks ol { text-align: left; color: var(--ash); max-width: 52ch; padding-left: 1.4em; display: grid; gap: 8px; }
.thanks ol strong { color: var(--bone); }
/* the pixel face draws 5 and 8 alike: numbers in headings use the mono face */
.num { font-family: var(--mono); font-weight: 700; font-size: 0.95em; letter-spacing: -0.02em; }
.run-text .num { font-size: 1em; letter-spacing: 0; }
@media (max-width: 359px) { .nav .btn-small { display: none; } }

/* dashboard */
.dash { max-width: 860px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) clamp(16px, 4vw, 40px) 90px; min-height: calc(100svh - 160px); }
.small { color: var(--ash); font-size: 0.92rem; }
.dash-loading { color: var(--ash); text-align: center; padding: 80px 0; }
.dash-login { display: grid; justify-items: center; gap: 18px; text-align: center; padding: 40px 0; }
.dash-login img { image-rendering: pixelated; }
.dash-login h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.dash-login p { color: var(--ash); max-width: 52ch; }
.btn-discord { padding: 16px 28px; }
.dash-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.dash-head h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.avatar { width: 56px; height: 56px; image-rendering: auto; box-shadow: 0 0 0 var(--px) var(--obsidian-edge); }
.dash-msg { padding: 14px 18px; margin-bottom: 18px; background: var(--obsidian-hi); box-shadow: inset 0 var(--px) 0 var(--red-deep); }
.dash-msg.bad { color: var(--red-ink); box-shadow: inset 0 var(--px) 0 var(--red); }
.dash-panel {
  background: url("assets/obsidian.svg") 0 0 / 64px 64px var(--obsidian); image-rendering: pixelated;
  box-shadow: inset 0 var(--px) 0 var(--obsidian-edge); padding: 28px clamp(18px, 4vw, 32px); margin-bottom: 18px;
}
.dash-panel > * { image-rendering: auto; }
.dash-panel h2 { font-size: 1.7rem; margin-bottom: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
.plan-now { font-size: 1.15rem; }
.plan-now strong { font: 700 1.4rem/1 var(--display); color: var(--red-ink); margin-right: 4px; }
.buy-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 6px; }
.redeem { margin-top: 26px; display: grid; gap: 8px; }
.redeem label { color: var(--ash); font-size: 0.95rem; }
.redeem-row { display: flex; gap: 10px; flex-wrap: wrap; }
.redeem input, .server-name {
  font: 500 1rem var(--mono); color: var(--bone); background: var(--void); border: 2px solid var(--obsidian-edge);
  padding: 12px 14px; min-width: 0;
}
.redeem input { flex: 1 1 240px; text-transform: uppercase; }
.redeem input:focus, .server-name:focus { border-color: var(--red-deep); outline: none; }
.servers { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 4px; }
.server { background: #0e080f; padding: 18px 18px 16px; display: grid; gap: 12px; box-shadow: inset var(--px) 0 0 var(--obsidian-edge); }
.server-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.server-name { font: 700 1.05rem var(--body); flex: 1 1 220px; background: transparent; border-color: transparent; padding: 6px 8px; margin-left: -8px; }
.server-name:hover { border-color: var(--obsidian-edge); }
.server-state { display: inline-flex; align-items: center; gap: 8px; color: var(--ash); font-size: 0.95rem; white-space: nowrap; }
.server-state i { width: 10px; height: 10px; background: var(--ash-dim); }
.server-state.online { color: var(--bone); }
.server-state.online i { background: var(--red); box-shadow: 0 0 0 3px rgba(255, 42, 61, 0.25); }
.server-state.new i { background: transparent; box-shadow: inset 0 0 0 2px var(--ash-dim); }
.server-key { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.server-key code { font: 500 0.9rem var(--mono); color: var(--ash); word-break: break-all; }
.link { background: none; border: 0; padding: 0; font: 600 0.92rem var(--body); color: var(--red-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.link:hover { color: var(--bone); }
.server-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.danger { color: var(--red-ink); }
.btn.danger:hover { background: var(--obsidian-hi); box-shadow: inset 0 0 0 2px var(--red); color: var(--bone); }
.btn-ghost[disabled] { background: transparent; color: var(--ash-dim); box-shadow: inset 0 0 0 2px var(--obsidian-hi); }
.nav #logout:not([hidden]) { display: inline-flex; }   /* the 400px rule hides the main page's shop button, never this */


/* cookie notice: fixed at the bottom until a choice is made */
.consent {
  position: fixed; left: 24px; bottom: 24px; z-index: 60; width: min(360px, calc(100% - 48px));
  display: flex; flex-direction: column; gap: 14px; padding: 20px; color: var(--ash); font-size: 0.88rem; line-height: 1.55;
  background: url("assets/obsidian.svg") 0 0 / 64px 64px var(--obsidian); image-rendering: pixelated;
  box-shadow: inset 0 var(--px) 0 var(--obsidian-edge), 0 20px 44px -16px rgba(0, 0, 0, 0.95);
}
.consent > * { image-rendering: auto; }
.consent p { margin: 0; }
.consent .consent-title { display: flex; align-items: center; gap: 10px; font: 700 1.1rem/1 var(--display); color: var(--bone); }
.consent-title img { image-rendering: pixelated; }
.consent .btn-small { flex: 1; min-height: 44px; padding: 11px 14px; font-size: 0.88rem; }
.consent strong { color: var(--bone); }
.consent-actions { display: flex; gap: 8px; }
@media (max-width: 520px) { .consent { left: 12px; right: 12px; bottom: 12px; width: auto; } }

/* dashboard: agreement before buying */
.agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; color: var(--ash); font-size: 0.9rem; max-width: 68ch; }
.agree input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--red); }

/* legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(110px, 12vw, 150px) clamp(16px, 4vw, 40px) 80px; color: var(--ash); }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); color: var(--bone); }
.legal .updated { margin-top: 10px; color: var(--ash-dim); font-size: 0.9rem; }
.legal h2 { margin-top: 44px; font-size: 1.4rem; color: var(--bone); }
.legal p, .legal li { max-width: 68ch; line-height: 1.65; }
.legal p { margin-top: 14px; }
.legal ul { margin-top: 10px; padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 0.92rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--obsidian-edge); }
.legal th { color: var(--bone); font-weight: 700; }

/* breadcrumbs on the legal pages */
.crumbs { margin-bottom: 18px; color: var(--ash-dim); font-size: 0.9rem; }
.crumbs a { color: var(--ash); }
.crumbs [aria-current] { color: var(--ash); }

/* docs, benchmarks, changelog: the legal page layout with code, steps and wide tables */
.doc ol { margin-top: 10px; padding-left: 1.4em; }
.doc ol li + li { margin-top: 6px; }
.doc code { font: 500 0.88em var(--mono); color: var(--bone); background: var(--obsidian-hi); padding: 1px 5px; }
.doc strong { color: var(--bone); }
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 560px; }
.doc code { overflow-wrap: anywhere; }
#docs-search { margin: 24px 0; }
#docs-search label { display: block; margin-bottom: 8px; }
#docs-query { flex: 1 1 240px; min-width: 0; padding: 12px; background: var(--void); color: var(--bone); border: 1px solid var(--bedrock); font: inherit; }
#docs-results { padding: 12px 16px; border: 1px solid var(--bedrock); }

/* dashboard: the cancel-first steps */
.steps-list { margin: 14px 0; padding-left: 1.3em; color: var(--ash); display: grid; gap: 8px; max-width: 68ch; }
.steps-list strong { color: var(--bone); }
#cancel-first .dash-msg { margin: 16px 0 0; }

/* status page: banner, legend, one block per service with 90 daily bars */
.legal .status-sub { margin-top: 10px; color: var(--ash); }
.status-banner { margin-top: 28px; padding: 18px 22px; background: var(--obsidian); box-shadow: inset 0 0 0 1px var(--obsidian-edge); }
.status-banner.ok { box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.35); }
.status-banner.bad { box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.45); }
.legal .status-banner p { margin: 0; font-weight: 700; color: var(--bone); }
.status-banner.ok p { color: var(--ok); }
.status-banner.bad p { color: var(--bad); }
.status-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 12px 0 0; padding: 14px 22px; background: var(--obsidian); font-size: 0.9rem; color: var(--ash); }
.legal .status-legend li + li { margin-top: 0; }
.status-legend li { display: inline-flex; align-items: center; gap: 8px; }
.status-legend .ub { width: 10px; height: 16px; flex: none; }
.legal .status-note { margin-top: 18px; color: var(--ash-dim); font-size: 0.88rem; }
.status-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--obsidian-edge); }
.legal .status-list li + li { margin-top: 0; }
.svc { padding: 24px 0; border-bottom: 1px solid var(--obsidian-edge); }
.svc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.svc-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.svc-name { color: var(--bone); font-weight: 700; font-size: 1.05rem; }
.svc-about { color: var(--ash); font-size: 0.9rem; }
.svc-state { flex: none; font-weight: 700; font-size: 0.92rem; color: var(--ash); }
.svc-state.up { color: var(--ok); }
.svc-state.down { color: var(--bad); }
.ubars { display: grid; grid-template-columns: repeat(90, minmax(0, 1fr)); gap: 2px; margin-top: 14px; height: 34px; }
.ub { display: block; height: 100%; background: var(--none); transition: opacity 120ms; }
.ub.ok { background: var(--ok); }
.ub.warn { background: var(--warn); }
.ub.bad { background: var(--bad); }
.ubars .ub:hover { opacity: 0.7; }
.svc-foot { display: grid; grid-template-columns: 1fr auto 1fr; margin-top: 8px; color: var(--ash-dim); font-size: 0.82rem; }
.svc-foot > span:last-child { text-align: right; }
.svc-from .d45 { display: none; }
.svc-uptime { color: var(--ash); font-variant-numeric: tabular-nums; }
.legal .svc-files { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0 0; color: var(--ash-dim); font-size: 0.82rem; }
.svc-file code { font: 500 0.82rem var(--mono); color: var(--ash); }
.svc-files .link { font-size: 0.82rem; }
.bar-tip { position: absolute; z-index: 20; display: grid; gap: 2px; padding: 8px 12px; background: var(--obsidian-hi); color: var(--bone);
  box-shadow: inset 0 0 0 1px var(--obsidian-edge), 0 8px 24px -8px rgba(0, 0, 0, 0.8); font-size: 0.85rem; pointer-events: none; white-space: nowrap; }
.bar-tip-dim { color: var(--ash-dim); font-size: 0.8rem; }
@media (max-width: 640px) {
  .ubars { grid-template-columns: repeat(45, minmax(0, 1fr)); height: 28px; }
  .ubars .ub:nth-child(-n+45) { display: none; }
  .svc-from .d90 { display: none; }
  .svc-from .d45 { display: inline; }
}

/* plans: the whole section centred under the three cards (heading, intro, notice, notes) */
.plans .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.plans .section-head p { margin-left: auto; margin-right: auto; }
.plans .sales-notice { margin-left: auto; margin-right: auto; text-align: center; }
.plans .plan-row { max-width: 1100px; margin-left: auto; margin-right: auto; }
.plans .after-buy { margin-left: auto; margin-right: auto; text-align: center; }

/* ---- depth: the crystal is the light. On desktop with a mouse, app.js sets --hx/--hy (hero, -1..1) and per block --rx/--ry
   (tilt) and --lx/--ly (where the light falls). Without them, or with reduced motion, everything rests flat as before. */
.crystal-tilt {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(calc(var(--hy, 0) * -14deg)) rotateY(calc(var(--hx, 0) * 18deg));
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.hero .sky::before { transform: translate3d(calc(var(--hx, 0) * -6px), calc(var(--hy, 0) * -4px), 0); transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1); }
/* far pillars sit at two depths: the near ones drift further than the far ones */
.far-pillar { transform: translate3d(calc(var(--hx, 0) * var(--depth, 10) * -1px), 0, 0); transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1); }
.fp1, .fp6 { --depth: 22; }
.fp2, .fp5 { --depth: 14; }
.fp3, .fp4 { --depth: 7; }
.hero .pillar { transform: translate3d(calc(var(--hx, 0) * 4px), 0, 0); transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1); }

/* blocks that lean toward the light: plan cards and the how-it-works pillars */
.depth-block { position: relative; transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1); }
.depth-block::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 300ms ease-out;
  background: radial-gradient(420px circle at var(--lx, 50%) var(--ly, 0%), rgba(244, 238, 240, 0.07), transparent 60%);
}
.depth-block.lit::after { opacity: 1; }
.depth-block.lit { transition-duration: 120ms; }

/* measurement bars rise as blocks: a lit top face and a shaded end face once they have grown */
.bar .fill::before, .bar .fill::after { content: ""; position: absolute; opacity: 0; transition: opacity 400ms ease-out 700ms; }
.bar .fill::before { left: 0; right: 0; top: -6px; height: 6px; transform: skewX(-45deg); transform-origin: bottom left; }
.bar .fill::after { top: 0; bottom: 0; right: -6px; width: 6px; transform: skewY(-45deg); transform-origin: top left; }
.run.filled .bar .fill::before, .run.filled .bar .fill::after { opacity: 1; }
.bar-before .fill::before { background: #46344a; }
.bar-before .fill::after { background: #261a2a; }
.bar-after .fill::before { background: var(--red-hot); }
.bar-after .fill::after { background: var(--red-deep); }
.bar b { margin-left: calc(var(--w, 0%) + 12px); }
@media (max-width: 520px) { .bar b { margin-left: min(calc(var(--w, 0%) + 12px), calc(100% - 5.6em)); } }   /* phones: the longest bar's label stays on screen */

@media (prefers-reduced-motion: reduce) {
  .crystal-tilt, .hero .sky::before, .far-pillar, .hero .pillar, .depth-block { transform: none !important; transition: none; }
  .depth-block::after { display: none; }
  .bar .fill::before, .bar .fill::after { transition: none; }
}

/* ---- 3D models: every one is built from the crystal's own CSS cube, in obsidian and crystal red only.
   .model sits in the top right of a plan card or pillar and shows what it is; .debris floats in the hero sky. */
.plan, .column { position: relative; }
.model, .chunk { position: absolute; pointer-events: none; perspective: 520px; }
.plan h3, .column h3 { position: relative; }
.model { top: 50%; right: 0; width: 76px; height: 76px; translate: 0 -50%; }
.spin { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(35deg); animation: m-spin 18s linear infinite; }
.bobber { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; animation: m-bob 3.2s ease-in-out infinite; }
@keyframes m-spin { from { transform: rotateX(-24deg) rotateY(0deg); } to { transform: rotateX(-24deg) rotateY(360deg); } }
@keyframes m-bob { 50% { transform: translateY(-5px); } }
.paused .spin, .paused .bobber, .paused .float { animation-play-state: paused; }

/* obsidian block: the tile on every face, lit from above like every block on the page */
.cube.ob i { --shade: rgba(0, 0, 0, 0.1); background: linear-gradient(var(--shade), var(--shade)), url("assets/obsidian.svg") 0 0 / 100% 100% #3a2a3c; image-rendering: pixelated; box-shadow: inset 0 0 0 1px rgba(244, 238, 240, 0.14); }
.cube.ob i:nth-child(3), .cube.ob i:nth-child(4) { --shade: rgba(0, 0, 0, 0.42); }
.cube.ob i:nth-child(5) { --shade: rgba(244, 238, 240, 0.22); }
.cube.ob i:nth-child(6) { --shade: rgba(0, 0, 0, 0.62); }
/* crystal: a red glass frame, the small sibling of the hero crystal */
.cube.cr i { background: rgba(255, 42, 61, 0.2); box-shadow: inset 0 2px 0 var(--red-hot), inset 2px 0 0 var(--red-hot), inset 0 -2px 0 var(--red-deep), inset -2px 0 0 var(--red-deep); }
/* cage: bare edges */
.cube.cg i { box-shadow: inset 0 0 0 2px rgba(163, 146, 156, 0.5); }

/* plans: one block, a block with a crystal, a stack of five */
.b-one { --s: 38px; }
.b-base { --s: 34px; transform: translateY(10px); }
.c-top { --s: 18px; transform: translateY(-26px) rotateY(45deg); }
.m-network .cube { --s: 20px; }
.n1 { transform: translate3d(-21px, 11px, 0); } .n2 { transform: translate3d(0, 11px, 0); } .n3 { transform: translate3d(21px, 11px, 0); }
.n4 { transform: translate3d(-10.5px, -10px, 0); } .n5 { transform: translate3d(10.5px, -10px, 0); }
/* pillars: four threads working side by side, two servers trading places, a crystal kept in a cage */
.th { --s: 19px; }
.t1 { transform: translate3d(-11px, 0, -11px); } .t2 { transform: translate3d(11px, 0, -11px); animation-delay: -0.8s; }
.t3 { transform: translate3d(-11px, 0, 11px); animation-delay: -1.2s; } .t4 { transform: translate3d(11px, 0, 11px); animation-delay: -0.4s; }
.m-speed .bobber { animation-name: m-piston; animation-duration: 1.6s; }
@keyframes m-piston { 0%, 100% { translate: 0 6px; } 50% { translate: 0 -6px; } }
.m-uptime .spin { animation-duration: 7s; }
.u-a { --s: 22px; transform: translateX(-20px); } .u-b { --s: 22px; transform: translateX(20px); }
.g-cage { --s: 46px; } .g-core { --s: 20px; transform: rotateY(45deg); }
.m-protection .spin { animation-duration: 24s; }

/* hero: obsidian chunks adrift at three depths; the near ones move furthest with the cursor (see --hx above) */
.debris { position: absolute; inset: 0; pointer-events: none; }
.chunk { width: 0; height: 0; left: var(--cx); top: var(--cy); transform: translate3d(calc(var(--hx, 0) * var(--depth, 10) * -1px), calc(var(--hy, 0) * var(--depth, 10) * -0.5px), 0); transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1); opacity: var(--co, 1); }
.chunk .cube { --s: var(--cs, 26px); }
.float { position: absolute; width: 0; height: 0; transform-style: preserve-3d; animation: m-bob var(--ft, 6s) ease-in-out var(--fd, 0s) infinite; }
.chunk .spin { animation-duration: var(--st, 30s); }
.k1 { --cx: 16%; --cy: 22%; --cs: 34px; --depth: 34; --st: 26s; }
.k2 { --cx: 84%; --cy: 30%; --cs: 26px; --depth: 26; --st: 34s; --fd: -2s; }
.k3 { --cx: 29%; --cy: 47%; --cs: 14px; --depth: 12; --st: 22s; --fd: -4s; --co: 0.7; }
.k4 { --cx: 72%; --cy: 14%; --cs: 16px; --depth: 14; --st: 40s; --fd: -1s; --co: 0.7; }
.k5 { --cx: 91%; --cy: 55%; --cs: 12px; --depth: 8; --st: 28s; --fd: -3s; --co: 0.5; }
.k2 .spin, .k4 .spin { animation-direction: reverse; }

@media (max-width: 900px) {
  .k3, .k4, .k5 { display: none; }
  .k1 { --cx: 9%; --cy: 12%; --cs: 22px; } .k2 { --cx: 90%; --cy: 16%; --cs: 18px; }
  .model { scale: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .spin, .bobber, .float { animation: none; }
  .chunk { transform: none; transition: none; }
}

/* ---- the beam: a red line under the nav that grows as the page is read (browsers with scroll timelines; nothing elsewhere) */
@supports (animation-timeline: scroll()) {
  .nav::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red);
    transform-origin: left; transform: scaleX(0); animation: beam linear both; animation-timeline: scroll(root);
  }
  @keyframes beam { to { transform: scaleX(1); } }
}

/* ---- the restart, acted out above its four steps: the new server rises, the player holds still, the old server goes,
   the player moves over. One 12 s loop; each step's rule lights up during its quarter. */
.swap { position: relative; height: 120px; margin: 4px 0 30px; perspective: 700px; animation: swap-fade 12s linear infinite; }
.swap .stage { position: absolute; left: 50%; top: 66%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-18deg) rotateY(-26deg); }
.sv { position: absolute; width: 0; height: 0; transform-style: preserve-3d; }
.sv .cube.ob { --s: 44px; }
.sv .cube.cr { --s: 18px; }
.sv-a { translate: -80px 0; animation: swap-a 12s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
.sv-b { translate: 80px 0; animation: swap-b 12s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
.sv-p { animation: swap-p 12s ease-in-out infinite; }
@keyframes swap-fade { 0% { opacity: 0; } 3%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes swap-b { 0%, 3% { transform: translateY(46px); opacity: 0; } 22%, 100% { transform: translateY(0); opacity: 1; } }
@keyframes swap-a { 0%, 50% { transform: translateY(0); opacity: 1; } 68%, 100% { transform: translateY(46px); opacity: 0; } }
@keyframes swap-p {
  0% { transform: translate(-80px, -46px); } 8% { transform: translate(-80px, -54px); } 16% { transform: translate(-80px, -46px); }
  25%, 75% { transform: translate(-80px, -50px); }
  86% { transform: translate(0, -74px); } 95%, 100% { transform: translate(80px, -46px); }
}
.steps li { animation: step-on 12s linear infinite; }
.steps li:nth-child(2) { animation-delay: 3s; } .steps li:nth-child(3) { animation-delay: 6s; } .steps li:nth-child(4) { animation-delay: 9s; }
@keyframes step-on { 0%, 24% { border-top-color: var(--red-hot); } 25%, 100% { border-top-color: var(--obsidian-edge); } }
.steps li:last-child { animation-name: step-on-last; }
@keyframes step-on-last { 0%, 24% { border-top-color: var(--red-hot); } 25%, 100% { border-top-color: var(--red-deep); } }
.restart.paused .swap, .restart.paused .sv, .restart.paused .steps li { animation-play-state: paused; }

/* plan and pillar models a touch brighter than the sky chunks: they sit on obsidian, not on the void */
.model .cube.ob i { --shade: rgba(244, 238, 240, 0.05); }
.model .cube.ob i:nth-child(3), .model .cube.ob i:nth-child(4) { --shade: rgba(0, 0, 0, 0.26); }
.model .cube.ob i:nth-child(5) { --shade: rgba(244, 238, 240, 0.3); }

@media (max-width: 520px) { .swap { height: 96px; } .sv .cube.ob { --s: 34px; } }
@media (prefers-reduced-motion: reduce) {
  .swap, .sv, .steps li { animation: none; }
  .sv-p { transform: translate(-80px, -48px); }
  .nav::after { display: none; }
}

/* ---- comparison with other server software: our bar is the red block, the others spent stone (the Spent and Lit rule) */
.versus { margin-top: 44px; }
.versus h3 { font-size: 1.45rem; }
.versus > p { margin-top: 10px; color: var(--ash); max-width: 68ch; }
.versus-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.versus-list li { display: grid; grid-template-columns: 120px minmax(0, 1fr) 84px; align-items: center; gap: 16px; padding: 12px 18px; background: var(--obsidian); }
.vs-name { color: var(--ash); font-weight: 700; }
.versus-list .us .vs-name { color: var(--bone); }
.vs-bar { position: relative; height: 22px; }
.vs-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); background: repeating-linear-gradient(90deg, #3a2a3c 0 12px, #33243a 12px 24px); transition: width 1100ms cubic-bezier(0.16, 1, 0.3, 1); }
.versus-list .us .vs-bar i { background: var(--red); box-shadow: inset 0 var(--px) 0 var(--red-hot), inset 0 calc(var(--px) * -1) 0 var(--red-deep); }
.versus-list b { font: 700 0.95rem/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--ash); text-align: right; }
.versus-list .us b { color: var(--bone); }
@media (max-width: 520px) { .versus-list li { grid-template-columns: 92px minmax(0, 1fr) 70px; gap: 10px; padding: 12px; } }

/* ---- setup in three steps and the restart video */
.setup, .watch { padding: clamp(64px, 8vw, 104px) clamp(16px, 4vw, 40px); max-width: var(--wrap); margin: clamp(48px, 7vw, 96px) auto 0; border-top: 1px solid var(--obsidian-edge); }
.setup-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.setup-steps code { font: 500 0.88em var(--mono); color: var(--bone); background: var(--obsidian-hi); padding: 1px 5px; overflow-wrap: anywhere; }
.steps.setup-steps li, .steps.setup-steps li:last-child { animation: none; border-top-color: var(--obsidian-edge); }
.watch-frame { position: relative; aspect-ratio: 16 / 9; max-width: 960px; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--obsidian); box-shadow: inset 0 var(--px) 0 var(--red-deep); }
.watch-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#notify-msg { color: var(--ash); }
@media (max-width: 900px) { .setup-steps { grid-template-columns: 1fr; row-gap: 32px; } }
@media (prefers-reduced-motion: reduce) { .vs-bar i { transition: none; } }

/* ---- small interactions */
.nav nav a.here { color: var(--bone); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 8px; }
/* FAQ answers slide open where the browser can animate to auto height; elsewhere they open at once as before */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size 260ms cubic-bezier(0.16, 1, 0.3, 1), content-visibility 260ms allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* ---- 404: the crystal itself, not its icon */
.lost-crystal { margin-top: 0; }

/* ---- docs: a side menu on wide screens; the red square marks the section being read */
.toc { display: none; }
@media (min-width: 1280px) {
  .toc { display: grid; gap: 9px; position: fixed; top: 124px; left: max(24px, calc(50% - 380px - 250px)); width: 200px; max-height: calc(100vh - 170px); overflow: auto; font-size: 0.88rem; }
  .legal .toc-h { margin: 0 0 4px; font: 700 0.78rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ash-dim); }
  .toc a { position: relative; padding-left: 16px; color: var(--ash-dim); text-decoration: none; line-height: 1.35; }
  .toc a:hover { color: var(--bone); }
  .toc a.here { color: var(--bone); }
  .toc a.here::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 6px; height: 6px; background: var(--red); }
}

/* ---- loading: a small spinning crystal */
.loader { position: relative; display: block; width: 44px; height: 44px; margin: 0 auto 18px; perspective: 300px; }
.loader .cube { --s: 20px; }
.loader .spin { animation-duration: 2.6s; }

@media (prefers-reduced-motion: reduce) { .faq details::details-content { transition: none; } }

/* ---- obsidian walls down both sides of every page, in the space beside the content (wide screens only). They belong to the
   page and scroll with it; the inner edge is torn (assets/wall-edge.svg). The hero and the footer cover them. */
body { position: relative; }
body::before, body::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 15; pointer-events: none;
  width: clamp(0px, calc((100vw - 1180px) / 2 - 44px), 76px);
  background: url("assets/obsidian.svg") 0 0 / 64px 64px var(--obsidian); image-rendering: pixelated;
  -webkit-mask: url("assets/wall-edge.svg") 0 0 / 100% 320px repeat-y; mask: url("assets/wall-edge.svg") 0 0 / 100% 320px repeat-y; }
body::before { left: 0; }
body::after { right: 0; scale: -1 1; }
@media (min-width: 1280px) { .toc { left: max(100px, calc(50% - 380px - 250px)); } }
.hero, .foot { position: relative; z-index: 16; background: var(--void); }

/* ---- top bar: on scroll it lifts into a floating pill (nav.js sets .pill past 40px). Its height in the page stays the same
   (less padding, more margin below), so the content never jumps. Pages with a static nav (support) are left alone. */
.nav {
  width: 100%; margin-inline: auto; border: 1px solid transparent; border-bottom-color: var(--obsidian-edge);
  transition: width 520ms cubic-bezier(0.16, 1, 0.3, 1), top 520ms cubic-bezier(0.16, 1, 0.3, 1), padding 520ms cubic-bezier(0.16, 1, 0.3, 1),
    margin 520ms cubic-bezier(0.16, 1, 0.3, 1), border-radius 520ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 400ms ease, box-shadow 400ms ease, border-color 400ms ease;
}
.nav > .btn { transition: transform 200ms ease-in-out, background-color 200ms ease-in-out, box-shadow 200ms ease-in-out, border-radius 520ms cubic-bezier(0.16, 1, 0.3, 1); }
.nav.pill {
  top: 14px; width: min(1060px, calc(100% - 32px)); padding: 10px 12px 10px 22px; margin-bottom: 8px; border-radius: 999px;
  background: rgba(18, 10, 18, 0.78); border-color: #3b2a40 var(--obsidian-edge) var(--obsidian-edge);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 42, 61, 0.06);
}
.nav.pill > .btn { border-radius: 999px; }
.nav .brand span { white-space: nowrap; }
.nav.pill::after { left: 30px; right: 30px; }
@media (max-width: 520px) { .nav.pill { top: 8px; width: calc(100% - 16px); padding: 6px 6px 6px 14px; gap: 8px; margin-bottom: 16px; } }
/* phones: the brand and the button must both fit inside the pill; the button gets a little smaller and the name may shorten
   with an ellipsis instead of pushing the button out past the pill's edge */
@media (max-width: 520px) {
  .nav .brand { min-width: 0; flex: 0 1 auto; }
  .nav .brand span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .nav > .btn-small { flex: 0 0 auto; padding: 10px 14px; font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) { .nav, .nav > .btn { transition: none; } }

/* ---- new home sections share the section frame of setup and watch */
.compare, .shipped, .play { padding: clamp(64px, 8vw, 104px) clamp(16px, 4vw, 40px); max-width: var(--wrap); margin: clamp(48px, 7vw, 96px) auto 0; border-top: 1px solid var(--obsidian-edge); }
.sec-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.sec-top .section-head { margin-bottom: 0; flex: 1 1 420px; }
.paused .cube { animation-play-state: paused; }
/* a model rig: a 3D point that turns with the cursor (app.js sets --hx/--hy on the section) */
.rig, .pos { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.pos { left: 0; top: 0; }

/* ---- compare: the hero's crystal again, smaller, with obsidian chunks around it; the whole rig leans toward the cursor */
.compare { overflow: hidden; }
.cmp-scene { position: relative; flex: 0 0 auto; width: 320px; height: 240px; perspective: 700px; pointer-events: none; }
.cmp-scene > .rig { transform: rotateX(calc(var(--hy, 0) * -22deg)) rotateY(calc(var(--hx, 0) * 34deg)); transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1); }
.cmp-scene .float { animation-duration: 3.2s; }
.cmp-scene .pos > .spin { left: 0; top: 0; }
.cmp-scene .pos .cube { --s: var(--cs); }
.cmp-table { overflow-x: auto; border: 1px solid var(--obsidian-edge); background: var(--obsidian); }
.cmp-table table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.95rem; }
.cmp-table th, .cmp-table td { padding: 16px 20px; text-align: left; vertical-align: top; }
.cmp-table thead th { padding-block: 18px; color: var(--ash-dim); font: 700 0.8rem/1.2 var(--body); text-transform: uppercase; letter-spacing: 0.06em; }
.cmp-table tbody tr { border-top: 1px solid var(--obsidian-edge); }
.cmp-table tbody th { font-weight: 500; color: var(--bone); }
.cmp-table td { font: 500 0.88rem/1.5 var(--mono); color: var(--ash); }
.cmp-table .us { background: var(--obsidian-hi); }
.cmp-table thead .us { color: var(--red-hot); }
.cmp-table td.us { color: var(--bone); font-weight: 700; }
.compare .fineprint { margin-top: 16px; }
@media (max-width: 720px) { .cmp-scene { width: 100%; height: 200px; } }
@media (prefers-reduced-motion: reduce) { .cmp-scene > .rig { transform: none; transition: none; } }

/* ---- shipped lately: the three newest changelog lines; each card leans like the plan cards */
.ship-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.ship-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 24px 104px 24px 24px; background: var(--obsidian); box-shadow: inset 0 0 0 1px var(--obsidian-edge); }
.ship-card .model { top: 18px; right: 18px; translate: none; }
.ship-card .model > .rig { transform: rotateX(calc(var(--rx, 0deg) * 5)) rotateY(calc(var(--ry, 0deg) * 8.75)); transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1); }
.ship-card .model .spin { left: 0; top: 0; }
.ship-meta { display: flex; align-items: center; gap: 10px; font: 500 0.82rem/1 var(--mono); color: var(--ash-dim); }
.ship-tag { padding: 4px 8px; font-weight: 700; font-size: 0.75rem; color: var(--void); background: var(--ok); }
.ship-tag.fix { background: var(--warn); }
.ship-tag.security { background: var(--red-hot); }
.ship-card h3 { font: 700 1.12rem/1.3 var(--body); }
.ship-card p:last-child { color: var(--ash); font-size: 0.95rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sh-base { --s: 34px; transform: translateY(14px); } .sh-top { --s: 18px; transform: translateY(-20px); }
.fx-base { --s: 28px; transform: translateY(16px); } .fx-top { --s: 28px; transform: translateY(-12px); }
.fx-piston { animation-name: m-piston; animation-duration: 1.6s; }
.link-box { padding: 12px 18px; min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; text-decoration: none; box-shadow: inset 0 0 0 1px var(--obsidian-edge); }
@media (max-width: 520px) { .ship-card { padding-right: 24px; padding-top: 104px; } }
@media (prefers-reduced-motion: reduce) { .ship-card .model > .rig { transition: none; transform: none; } }

/* ---- server list: owner banners, or the floating obsidian island; islands turn with the cursor */
.play-search { flex: 0 1 380px; display: grid; gap: 8px; }
.play-search label, .lst-side .side-h { font: 700 0.8rem/1 var(--body); color: var(--ash-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; pointer-events: none; }
.search-box input { width: 100%; min-height: 48px; padding: 12px 14px 12px 42px; background: var(--obsidian); border: 1px solid var(--obsidian-edge); color: var(--bone); font: 500 0.95rem var(--body); border-radius: 0; }
.search-box input:focus-visible { outline: 3px solid var(--red-hot); outline-offset: 2px; }
.play-sum { margin-bottom: 20px; font: 500 0.88rem/1.4 var(--mono); color: var(--ash-dim); }
.play-sum:focus { outline: none; }
.play-empty { display: grid; justify-items: center; gap: 12px; padding: 48px 24px; margin-bottom: 24px; text-align: center; color: var(--ash); border: 1px dashed var(--obsidian-edge); }
.srv-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(440px, 100%), 1fr)); gap: 24px; }
.srv { display: flex; flex-direction: column; overflow: hidden; height: 100%; background: var(--obsidian); box-shadow: inset 0 0 0 1px var(--obsidian-edge); }
.srv-art { position: relative; aspect-ratio: 5 / 1; min-height: 96px; border-bottom: 1px solid var(--obsidian-edge); background: #0d070e; overflow: hidden; }
.srv-art img, .srv-art canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
.srv-art canvas { position: absolute; inset: 0; }
.srv.frozen .srv-art img { visibility: hidden; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .srv.frozen:hover .srv-art img { visibility: visible; } .srv.frozen:hover .srv-art canvas { display: none; } }
.srv-body { display: flex; flex-direction: column; gap: 16px; padding: 24px clamp(18px, 3vw, 28px) 28px; flex: 1; }
.srv-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.srv-top h3, .srv-top h2 { font-size: 1.4rem; letter-spacing: normal; overflow-wrap: anywhere; }
.srv-players { display: inline-flex; align-items: center; gap: 6px; font: 500 0.82rem/1 var(--mono); color: var(--ash-dim); white-space: nowrap; }
.srv-players i { width: 8px; height: 8px; box-shadow: inset 0 0 0 2px var(--ash-dim); }
.srv-players.on { color: var(--ok); }
.srv-players.on i { background: var(--ok); box-shadow: none; }
.srv-body > p { color: var(--ash); font-size: 0.95rem; line-height: 1.55; flex: 1; overflow-wrap: anywhere; }
.srv-ip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; background: var(--void); box-shadow: inset 0 0 0 1px var(--obsidian-edge); }
.srv-ip code { font: 500 0.95rem var(--mono); color: var(--bone); overflow-wrap: anywhere; min-width: 0; }
.srv-ip .btn { flex: none; min-height: 44px; }

/* a listing's own look (listing-style.js sets the variables; only names and colours the key server accepted get here) */
.srv.styled { background: linear-gradient(135deg, var(--s-bg), var(--s-bg2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--s-accent) 45%, transparent); }
.srv.styled .srv-art { border-bottom-color: color-mix(in srgb, var(--s-accent) 45%, transparent); }
.srv.styled .srv-top h3, .srv.styled .srv-top h2 { color: var(--s-text); font-family: var(--s-font, var(--display)); }
.srv.styled .srv-body > p { color: color-mix(in srgb, var(--s-text) 76%, var(--s-bg)); }
.srv.styled .srv-players:not(.on) { color: color-mix(in srgb, var(--s-text) 64%, var(--s-bg)); }
.srv.styled .srv-ip { background: color-mix(in srgb, var(--s-bg) 72%, #000); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--s-accent) 35%, transparent); }
.srv.styled .srv-ip code { color: var(--s-text); }
.srv.styled .srv-ip .btn { background: var(--s-accent); color: var(--s-on-accent); box-shadow: inset 0 calc(-1 * var(--px)) 0 color-mix(in srgb, var(--s-accent) 60%, #000); }
.srv.styled .srv-ip .btn:hover { background: color-mix(in srgb, var(--s-accent) 82%, #fff); }
@font-face { font-family: "Fraunces"; font-weight: 600; font-display: swap; src: url("assets/Fraunces.woff2") format("woff2"); }

@media (prefers-reduced-motion: no-preference) {
  .srv[data-anim="glow"] { animation: s-glow 2.6s ease-in-out infinite; }
  .srv[data-anim="glow"] .srv-top :is(h2, h3) { text-shadow: 0 0 18px color-mix(in srgb, var(--s-accent) 70%, transparent); }
  .srv[data-anim="shimmer"] .srv-top :is(h2, h3) {
    background: linear-gradient(100deg, var(--s-text) 38%, var(--s-accent) 50%, var(--s-text) 62%) 0 0 / 250% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; animation: s-shimmer 3.2s linear infinite;
  }
  .srv[data-anim="wave"] .srv-top :is(h2, h3) span { display: inline-block; white-space: pre; animation: s-wave 1.8s ease-in-out infinite; animation-delay: calc(var(--k) * 70ms); }
  .srv[data-anim="rainbow"] .srv-top :is(h2, h3) {
    background: linear-gradient(90deg, #ff4d5e, #ffb84d, #f4f04d, #57e389, #4dc3ff, #9d6bff, #ff4d5e) 0 0 / 200% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; animation: s-shimmer 4s linear infinite;
  }
  .srv[data-anim="pulse"] .srv-top :is(h2, h3) { animation: s-pulse 2s ease-in-out infinite; }
}
/* with reduced motion the look stays and only the movement goes: glow is a still glow, the rest plain text */
@media (prefers-reduced-motion: reduce) { .srv[data-anim="glow"] { box-shadow: inset 0 0 0 1px var(--s-accent), 0 0 22px color-mix(in srgb, var(--s-accent) 35%, transparent); } }
@keyframes s-glow {
  0%, 100% { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--s-accent) 45%, transparent), 0 0 0 color-mix(in srgb, var(--s-accent) 0%, transparent); }
  50% { box-shadow: inset 0 0 0 1px var(--s-accent), 0 0 30px color-mix(in srgb, var(--s-accent) 45%, transparent); }
}
@keyframes s-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes s-wave { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
@keyframes s-pulse {
  0%, 100% { text-shadow: 0 0 0 transparent; transform: scale(1); }
  50% { text-shadow: 0 0 16px var(--s-accent), 0 0 2px var(--s-accent); transform: scale(1.03); }
}
.srv[data-anim="pulse"] .srv-top :is(h2, h3) { transform-origin: left center; }

/* dashboard: the look editor */
.lst-look { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.lst-look legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.lst-look-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.lst-colours { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.lst-colours label { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--ash); cursor: pointer; }
.lst-colours input[type="color"] { width: 44px; height: 44px; padding: 3px; border: 0; background: var(--void); box-shadow: inset 0 0 0 1px var(--obsidian-edge); cursor: pointer; flex: none; }
.lst-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.lst-presets button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; font: 600 0.85rem var(--body); color: var(--bone); background: var(--void); border: 0; box-shadow: inset 0 0 0 1px var(--obsidian-edge); cursor: pointer; }
.lst-presets button:hover, .lst-presets button:focus-visible { box-shadow: inset 0 0 0 2px var(--red-deep); }
.lst-presets i { width: 18px; height: 18px; flex: none; }
.isle3d { background: radial-gradient(240px 90px at 50% 70%, rgba(255, 42, 61, 0.1), transparent 70%), #0d070e; perspective: 700px; }
.isle3d > .rig { top: 58%; transform: rotateX(calc(-26deg - var(--hy, 0) * 14deg)) rotateY(calc(35deg + var(--i, 0) * 20deg + var(--hx, 0) * 50deg)); transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1); }
.isle3d .float, .promo-isle .float { animation-duration: 6s; }
.isle3d .cube { --s: 18px; }
.isle3d .cube.cr { --s: 14px; }
.isle3d .cr i, .promo-isle .cr i { box-shadow: inset 0 2px 0 var(--red-hot), inset 2px 0 0 var(--red-hot), inset 0 -2px 0 var(--red-deep), inset -2px 0 0 var(--red-deep); }
.isle-bob { position: absolute; width: 0; height: 0; transform-style: preserve-3d; animation: isle-bob 3.6s ease-in-out infinite; }
@keyframes isle-bob { 50% { transform: translateY(-8px) rotateY(180deg); } 100% { transform: translateY(0) rotateY(360deg); } }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 28px; }
.pager button { min-width: 44px; min-height: 44px; padding: 10px 16px; font: 700 0.9rem var(--body); color: var(--bone); background: var(--obsidian); border: 1px solid var(--obsidian-edge); cursor: pointer; }
.pager button.n { padding: 10px; font-family: var(--mono); }
.pager button:hover:not([disabled]) { border-color: var(--red-hot); }
.pager button[aria-current="page"] { background: var(--red); border-color: var(--red); color: var(--void); }
.pager button[disabled] { opacity: 0.4; cursor: default; }
.pager .gap { color: var(--ash-dim); padding: 0 4px; }
.play-foot { margin-top: 28px; text-align: center; color: var(--ash-dim); font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) { .isle3d > .rig { transition: none; transform: rotateX(-26deg) rotateY(calc(35deg + var(--i, 0) * 20deg)); } .isle-bob { animation: none; } }

/* ---- dashboard: the server list strip, the announcement card and the listing page */
.server-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.server-listing { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.listed-mark { display: inline-flex; align-items: center; gap: 8px; color: var(--bone); font-size: 0.9rem; }
.listed-mark i { width: 10px; height: 10px; background: var(--ok); box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2); }
.listing-note { font-size: 0.88rem; color: var(--warn); }
.listing-note.bad { color: var(--red-ink); }
.server-listing .link { min-height: 44px; display: inline-flex; align-items: center; }
.promo { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.promo h2 { font-size: 1.5rem; margin-bottom: 6px; }
.promo-text { flex: 1 1 280px; }
.promo .buy-row { margin: 0; }
.promo-isle { position: relative; flex: none; width: 110px; height: 96px; perspective: 600px; }
.promo-isle .cube { --s: 16px; }
.promo-isle .cube.cr { --s: 12px; }
.promo-isle > .rig { top: 60%; }
.promo-isle .spin { left: 0; top: 0; animation-duration: 12s; }
.dash:has(#listing-view:not([hidden])) { max-width: 1180px; }
.lst-head { display: grid; gap: 8px; margin-bottom: 28px; }
.lst-head .crumbs { margin: 0; font-family: var(--mono); font-size: 0.82rem; }
.lst-head h1 { font-size: clamp(2rem, 5vw, 2.6rem); }
.lst-head > p:last-child { color: var(--ash); max-width: 64ch; }
.lst-cols { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.lst-form { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; margin-bottom: 0; }
.lst-side { flex: 1 1 380px; min-width: 0; display: grid; gap: 12px; }
.fld { display: grid; gap: 8px; }
.fld > label, .fld > .fld-l { font-weight: 700; font-size: 0.92rem; color: var(--bone); }
.fld input[type="text"], .fld select { width: 100%; min-height: 46px; padding: 11px 14px; background: var(--void); border: 1px solid var(--obsidian-edge); color: var(--bone); font: 500 0.95rem var(--body); border-radius: 0; }
.fld input.mono { font-family: var(--mono); }
.fld input:focus-visible, .fld select:focus-visible, .upload:focus-within { outline: 3px solid var(--red-hot); outline-offset: 2px; }
.fld [aria-invalid="true"] { border-color: var(--red); }
.fld-hint { font-size: 0.82rem; color: var(--ash-dim); line-height: 1.5; }
.fld-err { font-size: 0.88rem; color: var(--red-ink); }
.switch-row { display: flex; gap: 12px; align-items: center; min-height: 44px; cursor: pointer; font-weight: 700; color: var(--bone); }
.switch-row input { width: 20px; height: 20px; margin: 0; accent-color: var(--red); flex: none; }
.upload { position: relative; display: grid; place-content: center; justify-items: center; gap: 6px; min-height: 120px; padding: 16px; text-align: center; background: var(--void); border: 1px dashed var(--obsidian-edge); cursor: pointer; }
.upload:hover { border-color: var(--red-hot); }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload strong { color: var(--red-ink); }
.lst-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lst-off { color: var(--warn); font-size: 0.9rem; }
/* save in progress: a turning crystal, the steps and a seconds counter, so a slow banner check never looks frozen */
.lst-busy { display: flex; gap: 18px; align-items: flex-start; padding: 18px 20px; background: var(--void); box-shadow: inset 0 var(--px) 0 var(--obsidian-edge); }
.lst-busy[hidden] { display: none; }
.lst-spin { flex: 0 0 auto; width: 44px; height: 44px; perspective: 200px; }
.lst-spin img { display: block; width: 44px; height: 44px; image-rendering: pixelated; animation: lst-turn 1.6s linear infinite; }
@keyframes lst-turn { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
.lst-busy-text { display: grid; gap: 6px; min-width: 0; }
.lst-busy-title { margin: 0; font: 700 1.05rem/1.3 var(--body); color: var(--bone); }
.lst-busy-line { margin: 0; color: var(--ash); font-size: 0.92rem; }
.lst-steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; font-size: 0.92rem; color: var(--ash-dim); }
.lst-steps li { display: flex; align-items: center; gap: 10px; }
.lst-steps li::before { content: ""; width: 10px; height: 10px; flex: 0 0 auto; box-shadow: inset 0 0 0 2px var(--bedrock); }
.lst-steps li[data-state="now"] { color: var(--bone); }
.lst-steps li[data-state="now"]::before { background: var(--red); box-shadow: 0 0 0 3px rgba(255, 42, 61, 0.25); }
.lst-steps li[data-state="done"] { color: var(--ash); }
.lst-steps li[data-state="done"]::before { background: var(--ok); box-shadow: none; }
.lst-steps li[data-state="skip"] { display: none; }
@media (prefers-reduced-motion: reduce) { .lst-spin img { animation: lst-pulse 2s ease-in-out infinite; } @keyframes lst-pulse { 50% { opacity: 0.45; } } }
.lst-side .srv.off { opacity: 0.45; }
.paused .isle-bob { animation-play-state: paused; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#lst-title:focus { outline: none; }

/* dashboard: /evreport reports and the add info page */
.reports .server { gap: 8px; }
.report-meta { color: var(--ash); font-size: 0.9rem; }
.report-note { color: var(--bone); font-size: 0.92rem; margin: 0; max-width: 68ch; }
.report-status { display: inline-flex; align-items: center; gap: 8px; color: var(--ash); font-size: 0.95rem; white-space: nowrap; }
.report-status i { width: 10px; height: 10px; background: var(--ash-dim); }
.report-status.wait i { background: transparent; box-shadow: inset 0 0 0 2px var(--ash-dim); animation: rep-pulse 1.4s ease-in-out infinite; }
.report-status.act { color: var(--bone); }
.report-status.act i { background: var(--red); box-shadow: 0 0 0 3px rgba(255, 42, 61, 0.25); }
.report-status.done i { background: var(--bone); }
@keyframes rep-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .report-status.wait i { animation: none; } }
.rep-form { max-width: 760px; }
.fld textarea { width: 100%; padding: 11px 14px; background: var(--void); border: 1px solid var(--obsidian-edge); color: var(--bone); font: 500 0.95rem/1.5 var(--body); border-radius: 0; resize: vertical; }
.fld textarea:focus-visible { outline: 3px solid var(--red-hot); outline-offset: 2px; }
#rep-title:focus { outline: none; }
.rep-lead { margin: 0 0 12px; color: var(--bone); font-weight: 600; }
.rep-steps { list-style: none; counter-reset: rep; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; max-width: 72ch; }
.rep-steps li { counter-increment: rep; display: flex; gap: 12px; align-items: baseline; color: var(--ash); font-size: 0.95rem; line-height: 1.6; }
.rep-steps li::before { content: counter(rep); flex: none; width: 24px; height: 24px; display: inline-grid; place-items: center; background: var(--obsidian-hi); color: var(--bone); font: 700 0.8rem var(--mono); box-shadow: inset 0 0 0 2px var(--obsidian-edge); }
.rep-steps strong { color: var(--bone); }
code.cmd { display: inline-block; font: 600 0.95rem var(--mono); color: var(--bone); background: var(--void); padding: 3px 9px; margin: 2px 0; box-shadow: inset 0 0 0 2px var(--red-deep); white-space: nowrap; }

/* home page: custom plan builder */
/* closed: a chain of blocks across the banner's empty space; open: the chain lets go and bigger blocks drift up behind the
   builder (each a moment after the last); closing simply fades them out and the chain back in, nothing flies backwards */
.cp-chain { position: relative; flex: 1 1 0; max-width: 340px; margin: 0 auto; height: 0; display: flex; justify-content: space-between; padding: 0 24px;
  transition: opacity 400ms ease 150ms; }
/* the beam: a thin red line fading out at both ends, with a short pulse of light running along it */
.cp-beam { position: absolute; left: 0; right: 0; top: -1px; height: 2px; overflow: hidden;
  background: linear-gradient(90deg, transparent, var(--red-deep) 18%, var(--red-deep) 82%, transparent); }
.cp-beam::after { content: ""; position: absolute; top: 0; bottom: 0; width: 70px; left: -70px;
  background: linear-gradient(90deg, transparent, var(--red-hot), transparent); animation: cp-pulse 3.6s linear infinite; }
@keyframes cp-pulse { 0% { left: -70px; } 70%, 100% { left: 100%; } }
.cp-link { position: relative; width: 0; height: 0; perspective: 480px; }
.cp-link .cube { --s: 22px; }
/* each block hops once as the beam's pulse reaches it: the pulse moves at a steady pace, so the delays step evenly */
.cp-link .float { animation: cp-hop 3.6s cubic-bezier(.3, .7, .4, 1) calc(0.36s + var(--i) * 0.45s) infinite; }
@keyframes cp-hop { 0%, 22%, 100% { translate: 0 0; } 7% { translate: 0 -10px; } 15% { translate: 0 0; } 18% { translate: 0 -2px; } }
.cp-link .spin { animation-duration: 16s; animation-delay: calc(var(--i) * -3.2s); }   /* each block a little further round */
.cp-link-gem .cube.cp-gem { --s: 28px; }
.cp-link-gem .cube.cp-gem-core { --s: 12px; transform: rotateY(45deg) rotateX(45deg); }
.cp-link-gem .cube.cp-gem-core i { background: var(--red); box-shadow: inset 0 2px 0 var(--red-hot), inset 0 -2px 0 var(--red-deep); }
.cp-link-gem .spin { animation-duration: 9s; }
/* a soft shadow under each block, smaller and lighter while the block floats up */
.cp-shadow { position: absolute; left: -14px; top: 22px; width: 28px; height: 6px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), transparent); animation: cp-hop-shadow 3.6s cubic-bezier(.3, .7, .4, 1) calc(0.36s + var(--i) * 0.45s) infinite; }
@keyframes cp-hop-shadow { 0%, 15%, 100% { scale: 1; opacity: 1; } 7% { scale: 0.6; opacity: 0.5; } }
.cp-link-gem .cp-shadow { left: -18px; width: 36px; top: 26px; }
.custom-plan.cp-open .cp-chain { opacity: 0; transition-delay: 0s; transition-duration: 200ms; }
.custom-plan { position: relative; overflow: clip; margin-top: 4px; background: linear-gradient(135deg, rgba(255, 42, 61, 0.08), var(--obsidian) 45%); box-shadow: inset 0 var(--px) 0 var(--red-deep), inset 0 0 0 1px var(--obsidian-edge); }
/* open: the cage model, big and faint, fades and grows into place behind the controls (and simply fades out on close) */
.cp-backdrop { width: 90px; height: 90px; left: 48%; top: 50%; right: auto; translate: -50% -50%; z-index: 0; opacity: 0; scale: 3;
  transition: opacity 300ms ease, scale 300ms ease; }
.custom-plan.cp-open .cp-backdrop { opacity: 0.35; scale: 5; transition: opacity 900ms ease 100ms, scale 1100ms cubic-bezier(.2, .7, .2, 1) 100ms; }
.cp-backdrop .spin { animation-duration: 40s; }
.cp-cage { --s: 62px; }
.cp-backdrop .cube.ob { --s: 20px; }
.cp-b1 { transform: translate3d(-11px, 12px, -11px); } .cp-b2 { transform: translate3d(11px, 12px, -11px); }
.cp-b3 { transform: translate3d(-11px, 12px, 11px); } .cp-b4 { transform: translate3d(11px, 12px, 11px); }
.cp-core { --s: 16px; transform: translateY(-12px) rotateY(45deg); }
@media (max-width: 900px) { .cp-chain { display: none; } }
@media (prefers-reduced-motion: reduce) { .cp-chain, .cp-backdrop, .custom-plan.cp-open .cp-backdrop { transition: none; } .cp-beam::after, .cp-shadow, .cp-link .float { animation: none; } }
.cp-teaser, .cp-collapse { position: relative; z-index: 1; }
.cp-teaser { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 26px 28px; }
.cp-kicker { margin: 0 0 6px; color: var(--ash); font-size: 0.95rem; }
.cp-teaser h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.cp-toggle { gap: 10px; }
.cp-chev { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 250ms ease; }
.cp-toggle[aria-expanded="true"] .cp-chev { transform: translateY(2px) rotate(-135deg); }
/* the builder slides open and shut (grid rows 0fr <-> 1fr), its contents fade with it */
.cp-collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 550ms cubic-bezier(.2, .7, .2, 1); }
.custom-plan.cp-open .cp-collapse { grid-template-rows: 1fr; }
.cp-clip { min-height: 0; overflow: hidden; }
.cp-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; padding: 6px 28px 30px; opacity: 0; translate: 0 -12px; transition: opacity 250ms ease, translate 350ms ease; }
.custom-plan.cp-open .cp-body { opacity: 1; translate: 0 0; transition: opacity 450ms ease 120ms, translate 550ms cubic-bezier(.2, .7, .2, 1) 80ms; }
.cp-body > .cp-grid, .cp-body > .cp-summary { position: relative; z-index: 1; }
.cp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cp-grid fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cp-sliders { display: grid; gap: 26px; align-content: start; }
.cp-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; color: var(--ash); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
.cp-label output { font: 700 1.15rem var(--mono); color: var(--bone); text-transform: none; letter-spacing: 0; }
.cp-slider { display: block; }
.cp-slider input[type="range"] { --fill: 0%; width: 100%; height: 26px; margin: 0; background: transparent; appearance: none; cursor: pointer; }
.cp-slider input[type="range"]::-webkit-slider-runnable-track { height: 8px; background: linear-gradient(90deg, var(--red) var(--fill), var(--obsidian-hi) var(--fill)); box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.6), inset 0 0 0 1px var(--obsidian-edge); }
.cp-slider input[type="range"]::-moz-range-track { height: 8px; background: linear-gradient(90deg, var(--red) var(--fill), var(--obsidian-hi) var(--fill)); }
.cp-slider input[type="range"]::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; margin-top: -7px; background: linear-gradient(rgba(244, 238, 240, 0.18), rgba(0, 0, 0, 0.25)), url("assets/obsidian.svg") 0 0 / 22px 22px #3a2a3c; image-rendering: pixelated; border: 0; box-shadow: inset 0 3px 0 rgba(244, 238, 240, 0.25), inset 0 -3px 0 rgba(0, 0, 0, 0.55), 0 0 0 2px var(--red); transition: box-shadow 150ms ease; }
.cp-slider input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; background: url("assets/obsidian.svg") 0 0 / 22px 22px #3a2a3c; image-rendering: pixelated; border: 0; border-radius: 0; box-shadow: inset 0 3px 0 rgba(244, 238, 240, 0.25), inset 0 -3px 0 rgba(0, 0, 0, 0.55), 0 0 0 2px var(--red); }
.cp-slider input[type="range"]:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 4px; }
.cp-slider input[type="range"]:hover::-webkit-slider-thumb { box-shadow: inset 0 3px 0 rgba(244, 238, 240, 0.25), inset 0 -3px 0 rgba(0, 0, 0, 0.55), 0 0 0 2px var(--red-hot); }
.cp-ticks { display: flex; justify-content: space-between; margin-top: 4px; color: var(--ash-dim); font: 500 0.8rem var(--mono); }
.cp-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.cp-months legend { width: 100%; }
.cp-months label { position: relative; }
.cp-months input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cp-months span { display: block; padding: 11px 6px; text-align: center; font-size: 0.88rem; color: var(--ash); background: linear-gradient(rgba(7, 4, 10, 0.78), rgba(7, 4, 10, 0.78)), url("assets/obsidian.svg") 0 0 / 48px 48px #3a2a3c; image-rendering: pixelated; box-shadow: inset 0 0 0 1px var(--obsidian-edge); transition: background-color 150ms ease, color 150ms ease; }
.cp-months input:checked + span { color: var(--void); background: linear-gradient(rgba(255, 42, 61, 0.86), rgba(255, 42, 61, 0.86)), url("assets/obsidian.svg") 0 0 / 48px 48px; box-shadow: inset 0 3px 0 var(--red-hot), inset 0 -3px 0 var(--red-deep); font-weight: 700; }
.cp-months input:focus-visible + span { outline: 2px solid var(--red-hot); outline-offset: 2px; }
.cp-switches { display: grid; gap: 10px; align-content: start; }
.cp-switch { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 12px 14px; background: linear-gradient(rgba(7, 4, 10, 0.78), rgba(7, 4, 10, 0.78)), url("assets/obsidian.svg") 0 0 / 48px 48px #3a2a3c; image-rendering: pixelated; box-shadow: inset 0 0 0 1px var(--obsidian-edge); cursor: pointer; transition: box-shadow 150ms ease; }
.cp-switch:hover { box-shadow: inset 0 0 0 1px var(--red-deep); }
/* on: the whole row says so, not only the switch */
.cp-switch:has(input:checked) { background: linear-gradient(rgba(255, 42, 61, 0.1), rgba(255, 42, 61, 0.1)), linear-gradient(rgba(7, 4, 10, 0.78), rgba(7, 4, 10, 0.78)), url("assets/obsidian.svg") 0 0 / 48px 48px #3a2a3c; box-shadow: inset 0 0 0 1px rgba(255, 42, 61, 0.45); }
.cp-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cp-track { position: relative; width: 44px; height: 24px; background: var(--void); box-shadow: inset 0 0 0 1px var(--obsidian-edge), inset 0 3px 0 rgba(0, 0, 0, 0.6); transition: background-color 180ms cubic-bezier(.16, 1, .3, 1), box-shadow 180ms ease; }
.cp-track::after { content: ""; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; background: var(--bedrock); box-shadow: inset 0 2px 0 rgba(244, 238, 240, 0.18), inset 0 -2px 0 rgba(0, 0, 0, 0.45), 0 2px 3px rgba(0, 0, 0, 0.5); transition: transform 180ms cubic-bezier(.16, 1, .3, 1), background-color 180ms ease, width 120ms ease; }
.cp-switch input:checked + .cp-track { background: var(--red); box-shadow: inset 0 2px 0 var(--red-hot), inset 0 -2px 0 var(--red-deep); }
.cp-switch input:checked + .cp-track::after { transform: translateX(20px); background: var(--bone); box-shadow: inset 0 -2px 0 var(--ash-dim), 0 2px 3px rgba(0, 0, 0, 0.45); }
.cp-switch input:focus-visible + .cp-track { outline: 2px solid var(--red-hot); outline-offset: 3px; }
.cp-switch:active .cp-track::after { width: 19px; }   /* the knob squashes a touch while pressed */
.cp-switch:active input:checked + .cp-track::after { transform: translateX(17px); }
.cp-switch strong { display: block; color: var(--bone); font-size: 0.97rem; }
.cp-switch small { display: block; color: var(--ash-dim); font-size: 0.85rem; margin-top: 2px; }
.cp-summary { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--obsidian-hi); box-shadow: inset 0 var(--px) 0 var(--red), inset 0 0 0 1px rgba(255, 42, 61, 0.3); align-self: start; }
.cp-total { margin: 0; font: 700 2.2rem/1.1 var(--mono); color: var(--red-ink); font-variant-numeric: tabular-nums; }
.cp-total small { display: block; margin-top: 6px; font: 500 0.92rem var(--body); color: var(--ash); }
.cp-note { margin: 0; color: var(--ash); font-size: 0.92rem; min-height: 1.4em; }
.cp-summary .btn { width: 100%; }
@media (max-width: 900px) { .cp-body, .cp-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .cp-collapse, .cp-body, .custom-plan.cp-open .cp-body, .cp-chev, .cp-track, .cp-track::after { transition: none; } }

/* restart clip in "See it run": the video and the log of the same restart, the current log line lit */
@media (min-width: 901px) { .proof-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }   /* phones keep the one column above */
.clip-box { position: relative; aspect-ratio: 16 / 9; background: #0b070c; }
.clip-box video { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip-fast { position: absolute; left: 10px; top: 10px; padding: 4px 8px; color: var(--bone); background: rgba(7, 4, 10, 0.75); font: 700 0.72rem/1 var(--mono); }
.clip-pause { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border: 0; color: var(--bone); background: rgba(7, 4, 10, 0.75); font: 700 0.75rem var(--mono); cursor: pointer; }
.clip-pause:hover { background: var(--obsidian-hi); }
.clip figcaption { padding: 12px 16px 16px; }
#clip-log > span { display: inline-block; box-sizing: border-box; width: calc(100% + 10px); margin-left: -10px; padding-left: 10px; transition: background-color 250ms ease, box-shadow 250ms ease; }
#clip-log > span.now { background: rgba(255, 42, 61, 0.12); box-shadow: inset 2px 0 0 var(--red); }
.shot-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin: 48px 0 0; padding-top: 48px; border-top: 1px solid var(--obsidian-edge); }
.shot-wide figcaption { order: -1; margin: 0; font-size: 1rem; line-height: 1.65; color: var(--ash); }
.shot-wide figcaption strong { display: block; margin-bottom: 12px; font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--display); font-variant-ligatures: none; color: var(--bone); }
.shot-wide figcaption span { display: block; margin-top: 12px; font-size: 0.85rem; color: var(--ash-dim); }
@media (max-width: 900px) { .shot-wide { grid-template-columns: 1fr; } }
