:root {
  color-scheme: dark;
  --paper: #080f0d;
  --line: #2b3931;
  --phosphor: #68fb8c;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--paper);
  color: #e6eee7;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--phosphor); }
a:focus-visible { outline: 2px solid #ff65b3; outline-offset: 5px; }
.shell { width: min(1200px, 90%); margin-inline: auto; }
.mast, .brand, nav, .actions a {
  display: flex;
  align-items: center;
}
.mast { justify-content: space-between; min-height: 84px; }
.brand { gap: 9px; font-size: 1.2rem; font-weight: 750; letter-spacing: -.05em; }
.brand svg { color: var(--phosphor); }
nav { gap: clamp(16px, 3vw, 42px); font: .83rem var(--mono); }
.scope {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  height: clamp(280px, 34vw, 420px);
  border: 1px solid #34503e;
  background-color: #08150f;
  background-image: linear-gradient(#23412e 1px, transparent 1px),
    linear-gradient(90deg, #23412e 1px, transparent 1px),
    linear-gradient(#172c20 1px, transparent 1px),
    linear-gradient(90deg, #172c20 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  background-position: center;
}
.scope::before, .scope::after { content: ""; position: absolute; inset: 50% 0 auto; border-top: 1px dashed #53725a; z-index: -1; }
.scope::after { inset: 0 auto 0 50%; border: 0; border-left: 1px dashed #53725a; }
.trace { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; color: #48d677; }
.afterglow { stroke: #308652; stroke-dasharray: 2 4; }
.mark { position: relative; margin-top: -1.6rem; }
.mark span {
  font: 900 clamp(2.9rem, 10.8vw, 9.2rem)/1 "Archivo Black", "Arial Black", system-ui, sans-serif;
  letter-spacing: -.08em;
  color: #112d1c;
  -webkit-text-stroke: 1.5px var(--phosphor);
}
.mark b {
  position: absolute;
  right: 0;
  top: 82%;
  transform: rotate(-9deg) skew(-13deg);
  color: #ff4d9f;
  font: italic 900 clamp(2rem, 5vw, 4.8rem)/1 system-ui, sans-serif;
  letter-spacing: -.09em;
  text-shadow: 2px 3px #08150f;
}
.intro { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center; padding: clamp(32px, 4vw, 58px) 0; }
h1 { font-size: clamp(2rem, 3.5vw, 3.4rem); letter-spacing: -.06em; line-height: 1.05; margin: 0; }
p { max-width: 64ch; margin: 16px 0 0; color: #b6c6bb; line-height: 1.65; }
.actions { display: grid; gap: 8px; }
.actions a { gap: 24px; justify-content: space-between; border: 1px solid var(--line); padding: 12px 16px; font: .82rem var(--mono); }
.actions .primary { background: var(--phosphor); color: #0b1c10; border-color: var(--phosphor); }
.actions .primary:hover { background: #a2ffb8; }
.demo, .patch { border-top: 1px solid var(--line); margin-bottom: 48px; }
.demo header { display: flex; align-items: center; justify-content: space-between; }
.demo a { font: .83rem var(--mono); }
.demo iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
h2 { margin: 18px 0; color: #b6c6bb; font: .75rem var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.channels { display: grid; grid-template-columns: repeat(4,1fr); list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); }
.channels li { padding: 18px; display: grid; gap: 4px; }
.channels li + li { border-left: 1px solid var(--line); }
.channels small { color: var(--phosphor); font: .68rem var(--mono); margin-bottom: 8px; }
.channels strong { font-size: 1.3rem; letter-spacing: -.04em; }
.channels span { font-size: .85rem; color: #b6c6bb; }
@media (max-width: 680px) {
  .mast { min-height: 68px; flex-wrap: wrap; gap: 8px 16px; padding-block: 12px; }
  .intro { grid-template-columns: 1fr; gap: 22px; }
  .actions { justify-self: start; }
  .channels { grid-template-columns: repeat(2,1fr); }
  .channels li:nth-child(3) { border-left: 0; }
  .channels li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
[hidden] { display: none !important; }
button {
  cursor: pointer;
  font: .84rem var(--mono);
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px 16px;
}
button:hover { border-color: var(--phosphor); }
button:focus-visible, canvas:focus-visible { outline: 2px solid #ff65b3; outline-offset: 3px; }
#player { border: 1px solid #34503e; background: #111915; }
.player-bar, .player-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 12px 16px;
}
.player-bar { border-bottom: 1px solid var(--line); }
.player-bar h1 { font: 600 1.1rem var(--mono); letter-spacing: 0; color: var(--phosphor); }
.player-bar a, .player-help { font: .85rem/1.5 var(--mono); }
.player-bar a, .player-help a { text-decoration: underline; text-underline-offset: 3px; }
.player-actions { margin-left: auto; display: flex; gap: 8px; }
#panel { display: block; width: min(100%, 960px); height: auto; margin: auto; touch-action: none; }
@media (min-width: 700px) and (min-height: 540px) {
  #panel { width: auto; max-width: min(100%, 960px); max-height: calc(100svh - 12rem); }
}
.player-help { border-top: 1px solid var(--line); color: #b6c6bb; }
#player-status { margin: 0; padding: 14px 16px; }
