:root {
  --bg: #ffffff;
  --paper: #fafafa;
  --surface: #ffffff;
  --line: #e2e2e2;
  --line2: #d0d0d0;
  --ink: #121212;
  --muted: #5c5c5c;
  --tile: #f0f0f0;
  --band: #f5f5f5;
  --grey: #e4e4e4;
  --hover: #eaffe3;
  --accent: #148000;
  --warn: #a86f00;
  --edge: #121212;
  --bar: #121212;
  --kick-bg: #121212;
  --kick-fg: #39ff14;
  --dot: #000;
  --lime: #39ff14;
  --lime-ink: #031a00;
  --green: #39ff14;
  --amber: #f2b84b;
  --radius: 16px;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans:
    Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #070b07;
  --paper: #0d140d;
  --surface: #0d140d;
  --line: #1c2b1c;
  --line2: #2a402a;
  --ink: #e9ffe6;
  --muted: #8fa58f;
  --tile: #131f13;
  --band: #0a110a;
  --grey: #223022;
  --hover: #163016;
  --accent: #39ff14;
  --warn: #f2b84b;
  --edge: #386038;
  --bar: #040704;
  --kick-bg: #39ff14;
  --kick-fg: #031a00;
  --dot: #39ff14;
  color-scheme: dark;
}
[data-theme="dark"] body:before {
  opacity: 0.12;
}
.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--edge);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--edge);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.theme-toggle:hover {
  background: var(--lime);
  color: var(--lime-ink);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--edge);
}
.theme-toggle:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--edge);
}
.theme-toggle svg {
  position: absolute;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.theme-toggle .ic-sun {
  opacity: 0;
  transform: rotate(-60deg) scale(0.6);
}
[data-theme="dark"] .theme-toggle .ic-sun {
  opacity: 1;
  transform: none;
}
[data-theme="dark"] .theme-toggle .ic-moon {
  opacity: 0;
  transform: rotate(60deg) scale(0.6);
}
html.theme-anim * {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease !important;
}
.mode-row:hover .mode-symbol, .digit-btn:hover:not(:disabled), .close:hover, .mode-choice:hover {
  color: var(--lime-ink);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.05;
  background-image: radial-gradient(var(--dot) 0.65px, transparent 0.65px);
  background-size: 18px 18px;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.wrap {
  width: min(1160px, calc(100% - 44px));
  margin: auto;
}
.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 850;
  letter-spacing: -0.06em;
  font-size: 1.32rem;
}
.brand em {
  font-style: normal;
  color: var(--accent);
}
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 0.9rem;
}
.nav a:hover {
  color: var(--ink);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 12px 17px;
  font-weight: 750;
  font-size: 0.92rem;
  transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s;
}
.button.primary {
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: 0 0 18px #39ff1477;
}
.button:hover {
  transform: translateY(-2px);
}
.button.secondary {
  border-color: var(--line2);
  background: var(--paper);
  color: var(--ink);
}
.button.secondary:hover {
  border-color: #39ff14;
  background: var(--tile);
}
.arrow {
  transition: transform 0.2s;
}
.button:hover .arrow {
  transform: translateX(3px);
}
.hero {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  gap: 54px;
  padding: 82px 0 78px;
  min-height: 610px;
}
.eyebrow, .section-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  font-weight: 800;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
h1 {
  font-size: clamp(3.5rem, 6.5vw, 6.1rem);
  letter-spacing: -0.085em;
  line-height: 0.94;
  margin: 0 0 26px;
  font-weight: 850;
  max-width: 620px;
}
h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
}
.hero-copy {
  font-size: 1.07rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 0 28px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.microcopy {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 22px;
}
.dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px #39ff1433;
}
.hero-art {
  position: relative;
  min-width: 0;
  animation: arrive 0.8s both;
}
.game-window {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 17px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.12);
  transform: rotate(1.2deg);
}
.window-top {
  height: 49px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  color: var(--muted);
  font: 0.72rem var(--mono);
}
.window-lights {
  display: flex;
  gap: 5px;
}
.window-lights i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line2);
}
.live-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}
.live-tag:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #39ff14;
  box-shadow: 0 0 8px #39ff14;
}
.round-chip {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 8px;
  font: 0.66rem var(--mono);
  color: var(--muted);
}
.player {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  min-width: 0;
}
.float-stamp {
  position: absolute;
  top: -23px;
  left: -24px;
  width: 78px;
  height: 78px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
  color: var(--ink);
  font: 0.65rem var(--mono);
  text-align: center;
  line-height: 1.5;
  transform: rotate(-12deg);
}
.demo-note {
  position: absolute;
  bottom: -21px;
  right: -12px;
  background: var(--lime);
  color: #031a00;
  padding: 11px 15px;
  border-radius: 8px;
  font-weight: 850;
  font-size: 0.76rem;
  transform: rotate(-3deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--band);
}
.ticker-inner {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  min-height: 76px;
  color: var(--muted);
  font: 0.73rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ticker strong {
  color: var(--ink);
}
.sep {
  color: var(--accent);
  font-size: 1rem;
}
section.content-section {
  padding: 100px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  align-items: flex-end;
  margin-bottom: 42px;
}
.section-kicker {
  font: 0.72rem var(--mono);
  letter-spacing: 0.14em;
  margin-bottom: 13px;
}
h2 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  letter-spacing: -0.07em;
  line-height: 1.02;
  margin: 0;
  font-weight: 820;
}
.section-desc {
  color: var(--muted);
  max-width: 370px;
  margin: 0;
  line-height: 1.75;
  font-size: 0.95rem;
}
.step-icon {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 24px;
}
.mini-tile {
  width: 30px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--tile);
  display: grid;
  place-items: center;
  font: 0.9rem var(--mono);
}
.mini-tile.green {
  background: var(--green);
  border-color: var(--green);
}
.mini-tile.amber {
  background: var(--amber);
  border-color: var(--amber);
}
.modes {
  background: var(--band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mode-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: start;
}
.mode-intro {
  position: sticky;
  top: 35px;
}
.mode-intro p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 350px;
  margin: 20px 0 25px;
}
.mode-list {
  border-top: 1px solid var(--line);
}
.mode-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.mode-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--accent);
  font: 1rem var(--mono);
}
.mode-row h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}
.mode-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
}
.mode-tag {
  font: 0.65rem var(--mono);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 7px;
  white-space: nowrap;
}
.challenge {
  padding: 95px 0;
}
.challenge-box {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  overflow: hidden;
}
.challenge-copy {
  padding: 47px 45px;
}
.challenge-copy p {
  color: var(--muted);
  max-width: 420px;
  line-height: 1.8;
  margin: 17px 0 25px;
}
.challenge-visual {
  background: var(--tile);
  border-left: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  min-height: 270px;
}
.challenge-visual:before, .challenge-visual:after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border: 1px solid var(--line2);
  border-radius: 50%;
}
.challenge-visual:after {
  width: 170px;
  height: 170px;
}
.big-code {
  display: flex;
  gap: 8px;
  z-index: 1;
  transform: rotate(-5deg);
}
.big-code span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 62px;
  background: var(--lime);
  border-radius: 8px;
  font: 800 1.5rem var(--mono);
  animation: bob 3s ease-in-out infinite;
}
.big-code span:nth-child(2) {
  animation-delay: 0.12s;
}
.big-code span:nth-child(3) {
  animation-delay: 0.24s;
}
.big-code span:nth-child(4) {
  animation-delay: 0.36s;
}
.big-code span:nth-child(5) {
  animation-delay: 0.48s;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 27px 0 34px;
  color: var(--muted);
  font-size: 0.8rem;
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #000000c0;
  display: none;
  place-items: center;
  padding: 20px;
  z-index: 20;
  backdrop-filter: blur(5px);
}
.modal-backdrop.open {
  display: grid;
  animation: fade-in 0.18s ease;
}
.modal {
  width: min(490px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
  animation: modal-in 0.22s ease;
}
.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.modal-top h2 {
  font-size: 1.65rem;
  letter-spacing: -0.05em;
}
.close {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 7px;
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
}
.modal p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}
.mode-choice {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  background: var(--tile);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 15px;
  border-radius: 9px;
  margin-top: 10px;
}
.mode-choice:hover {
  border-color: #39ff14;
}
.mode-choice small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.choice-arrow {
  color: var(--accent);
  font-size: 1.2rem;
}
.play-game .secret-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 16px;
}
.guess-inputs {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}
.play-game input {
  width: 52px;
  height: 58px;
  min-width: 0;
  flex: 1;
  text-align: center;
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font: 1.35rem var(--mono);
}
.digits {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin: 15px 0;
}
.digit-btn {
  background: var(--tile);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 11px;
  border-radius: 7px;
  font: 1rem var(--mono);
}
.digit-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.game-status {
  min-height: 44px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
}
.game-status strong {
  color: var(--accent);
}
.modal-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.small-button {
  padding: 10px 13px;
  font-size: 0.82rem;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes tile-in {
  from {
    opacity: 0;
    transform: translateY(8px) rotateX(-15deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 55px;
    padding: 66px 0 75px;
  }
  .hero-copy {
    max-width: 570px;
  }
  .hero-art {
    width: min(590px, 94%);
    margin: 0 auto;
  }
  .mode-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .mode-intro {
    position: static;
  }
  .challenge-box {
    grid-template-columns: 1fr 0.8fr;
  }
  .challenge-copy {
    padding: 35px;
  }
  .ticker-inner {
    justify-content: center;
    flex-wrap: wrap;
    padding: 18px 0;
    gap: 13px 22px;
  }
}
@media (max-width: 600px) {
  .wrap {
    width: min(100% - 32px, 1160px);
  }
  .topbar {
    height: 68px;
  }
  .nav {
    gap: 0;
  }
  .topbar .nav a {
    display: none;
  }
  .hero {
    padding: 58px 0 64px;
    gap: 43px;
    min-height: 0;
  }
  h1 {
    font-size: clamp(3.45rem, 15vw, 5rem);
  }
  .hero-copy {
    font-size: 0.98rem;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .button {
    padding: 12px 10px;
    font-size: 0.85rem;
  }
  .float-stamp {
    width: 63px;
    height: 63px;
    left: -10px;
    top: -24px;
    font-size: 0.56rem;
  }
  .player {
    padding: 7px;
    gap: 5px;
  }
  .demo-note {
    right: -8px;
    font-size: 0.68rem;
    padding: 9px 11px;
  }
  .ticker-inner {
    font-size: 0.65rem;
  }
  .ticker-inner span:nth-of-type(2), .ticker-inner span:nth-of-type(4) {
    display: none;
  }
  section.content-section {
    padding: 72px 0;
  }
  .section-head {
    display: block;
    margin-bottom: 30px;
  }
  .section-desc {
    margin-top: 18px;
  }
  .step-icon {
    margin-bottom: 15px;
  }
  .mode-row {
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }
  .mode-tag {
    grid-column: 2;
    justify-self: start;
  }
  .challenge {
    padding: 65px 0;
  }
  .challenge-box {
    grid-template-columns: 1fr;
  }
  .challenge-copy {
    padding: 30px 24px;
  }
  .challenge-visual {
    min-height: 190px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .play-game input {
    height: 52px;
  }
}
.mini-tile.green {
  color: #031a00;
}
.mini-tile.amber {
  color: #2c2009;
}
.big-code span {
  color: #031a00;
  box-shadow:
    0 8px 0 #22c400,
    0 0 26px #39ff1477;
}
h1 {
  font-size: clamp(2.9rem, 5.2vw, 4.9rem);
}
@media (max-width: 600px) {
  h1 {
    font-size: clamp(2.6rem, 12vw, 3.6rem);
  }
}
.mode-meta {
  display: block;
  margin-top: 8px;
  font: 0.68rem var(--mono);
  color: var(--muted);
  letter-spacing: 0.04em;
}
.mini-tile.grey {
  background: var(--grey);
  border-color: var(--grey);
  color: var(--ink);
}
.cards2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 16px;
  padding: 28px;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
.card .card-tag {
  display: inline-block;
  font: 0.68rem var(--mono);
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 7px;
  margin-bottom: 16px;
}
.card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}
.card .step-icon {
  margin: 0 0 4px;
}
.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.data-table th {
  font: 0.68rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table td:first-child {
  color: var(--accent);
}
.fine {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 14px;
}
.sub-head {
  margin: 56px 0 20px;
}
.sub-head h3 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}
.sub-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.badge {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 14px;
  padding: 20px;
}
.badge i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #39ff14;
  color: #031a00;
  font: 800 0.95rem var(--mono);
  font-style: normal;
  margin-bottom: 14px;
}
.badge strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.badge span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 750;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  color: var(--accent);
  font: 1.3rem var(--mono);
  line-height: 1;
}
.faq-list summary::after {
  transition: transform 0.2s;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list details p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.92rem;
  max-width: 760px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-cols {
  display: flex;
  gap: 46px;
  flex-wrap: wrap;
}
.footer-cols h4 {
  margin: 0 0 12px;
  font: 0.68rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.footer-cols a {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
}
.footer-cols a:hover {
  color: var(--ink);
}
.footer-copy {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 850px) {
  .cards2 {
    grid-template-columns: 1fr;
  }
  .badges {
    grid-template-columns: repeat(2, 1fr);
  }
}

.game-window.demo {
  transform: rotate(1.2deg);
}
.demo-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px 0;
  font-size: 0.72rem;
  font-weight: 600;
}
.demo-count {
  color: var(--muted);
  font-family: var(--mono);
}
.demo-count b {
  font-weight: 600;
  color: var(--ink);
}
.demo-stage {
  position: relative;
  height: 292px;
}
.demo-rows {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 12px 18px 0;
  overflow: hidden;
  transition: opacity 0.3s;
}
.demo-rows.fade {
  opacity: 0;
}
.demo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  animation: rise 0.3s both;
}
.demo-n {
  width: 24px;
  text-align: center;
  font: 0.7rem var(--mono);
  color: var(--muted);
}
.demo-tiles {
  display: flex;
  gap: 6px;
}
.dtile, .wtile {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--tile);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 800;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.dtile {
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
}
.wtile {
  width: 52px;
  height: 52px;
  font-size: 1.4rem;
}
.dtile.good, .wtile.good {
  background: var(--green);
  border-color: var(--green);
  color: #031a00;
  box-shadow: 0 0 12px #39ff1488;
}
.dtile.close, .wtile.close {
  background: var(--amber);
  border-color: var(--amber);
  color: #000000;
}
.dtile.nope, .wtile.nope {
  background: var(--grey);
  border-color: var(--grey);
  color: var(--ink);
}
.flip {
  animation: flip 0.3s ease both;
}
.demo-caret {
  color: var(--accent);
  animation: blink 1s steps(2) infinite;
}
.demo-phrase {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.demo-phrase.on {
  opacity: 1;
}
.dphrase {
  position: absolute;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 1.65rem;
  color: var(--ink);
}
.dphrase.wm {
  font-size: 2.6rem;
  letter-spacing: -0.06em;
  font-weight: 850;
}
.dphrase.wm em {
  font-style: normal;
  color: var(--accent);
}
.dphrase.in {
  animation: swipe-in 0.4s ease both;
}
.dphrase.out {
  animation: swipe-out 0.4s ease both;
}
.demo-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}
@keyframes flip {
  0% {
    transform: rotateX(90deg);
  }
  100% {
    transform: rotateX(0);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes blink {
  50% {
    opacity: 0.2;
  }
}
@keyframes swipe-in {
  from {
    opacity: 0;
    transform: translateX(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes swipe-out {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateX(-26px);
  }
}
.walk-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.walk {
  padding: 30px;
}
.walk-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
}
.walk-top span {
  font: 0.72rem var(--mono);
  color: var(--muted);
}
.walk-dots {
  display: flex;
  gap: 6px;
  margin: 16px 0 18px;
}
.walk-dots i {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  transition: background 0.25s;
}
.walk-dots i.on {
  background: #39ff14;
  box-shadow: 0 0 8px #39ff1488;
}
.walk-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
  min-height: 112px;
}
.walk-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 176px;
  margin-top: 6px;
}
.walk-visual .lbl {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 6px;
  align-self: center;
}
.walk-row {
  display: flex;
  gap: 8px;
}
.walk-next {
  width: 100%;
  margin-top: 22px;
  height: 50px;
}
@media (max-width: 850px) {
  .walk-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}
@media (max-width: 600px) {
  .walk {
    padding: 22px 18px;
  }
  .wtile {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
  }
  .walk-text {
    min-height: 150px;
  }
}
.demo-head strong {
  font-size: 1rem;
}
.demo-head {
  padding: 20px 22px 0;
}
.round-chip b {
  color: var(--accent);
  font-weight: 600;
}
.demo-rows {
  padding-left: 22px;
  padding-right: 22px;
}
.hero-art .game-window {
  position: relative;
  z-index: 1;
}
.float-stamp {
  z-index: 0;
}
.demo-note {
  z-index: 2;
}
.brand.logo {
  gap: 0;
}
.logo-img {
  height: 36px;
  width: auto;
  display: block;
}
.footer .logo-img {
  height: 30px;
}
@media (max-width: 600px) {
  .logo-img {
    height: 30px;
  }
  .footer .logo-img {
    height: 26px;
  }
}
.footer-top {
  display: block;
}
.footer-top > div:first-child {
  margin-bottom: 36px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer-cols > div:nth-child(1) {
  justify-self: start;
}
.footer-cols > div:nth-child(2) {
  justify-self: center;
}
.footer-cols > div:nth-child(3) {
  justify-self: end;
}
@media (max-width: 600px) {
  .footer-cols {
    grid-template-columns: 1fr;
  }
  .footer-cols > div {
    justify-self: start !important;
  }
}
/* ---- Arcade pass: hard edges, keycap tiles, pressable buttons, HUD strip ---- */
::selection {
  background: var(--lime);
  color: #031a00;
}
body:before {
  opacity: 0.08;
}
.button {
  min-height: 44px;
  border: 2px solid var(--edge);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.button, .button.primary, .button.secondary {
  box-shadow: 3px 3px 0 var(--edge);
}
.button.secondary {
  background: var(--surface);
}
.button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--edge);
}
.button.secondary:hover {
  border-color: var(--edge);
  background: var(--hover);
}
.button:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--edge);
}
.button:disabled, .button:disabled:hover, .button:disabled:active {
  opacity: 0.45;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}
.eyebrow {
  display: inline-flex;
  max-width: 100%;
  border: 2px solid var(--edge);
  background: var(--surface);
  border-radius: 6px;
  padding: 6px 12px;
  color: var(--ink);
}
.eyebrow:before {
  content: "";
  flex: 0 0 9px;
  height: 9px;
  background: var(--lime);
  border: 2px solid var(--edge);
  border-radius: 2px;
}
h1 .outline {
  -webkit-text-stroke: 1.5px var(--ink);
}
.game-window, .game-window.demo {
  border: 2px solid var(--edge);
  box-shadow: 8px 8px 0 var(--edge);
}
.window-top {
  background: var(--bar);
  border-bottom: 2px solid var(--edge);
  color: #d6d6d6;
}
.window-lights i {
  background: var(--surface);
}
.window-lights i:nth-child(1) {
  background: var(--lime);
}
.window-lights i:nth-child(2) {
  background: var(--amber);
}
.live-tag {
  color: var(--lime);
}
.live-tag:before {
  box-shadow: none;
}
.float-stamp {
  border: 2px solid var(--edge);
  background: var(--amber);
  color: #2c2009;
  font-weight: 700;
}
.demo-note {
  border: 2px solid var(--edge);
  box-shadow: 3px 3px 0 var(--edge);
}
.demo-caret {
  animation: none;
}
.dtile, .wtile, .mini-tile {
  border: 2px solid var(--edge);
  box-shadow: 0 3px 0 var(--edge);
}
.dtile.good, .wtile.good, .mini-tile.green {
  box-shadow: 0 3px 0 var(--edge);
  border-color: var(--edge);
}
.dtile.close, .wtile.close, .mini-tile.amber {
  border-color: var(--edge);
  border-style: dashed;
}
.dtile.nope, .wtile.nope, .mini-tile.grey {
  border-color: var(--edge);
  background: var(--grey);
  color: var(--muted);
}
.ticker {
  background: var(--bar);
  border-color: var(--edge);
}
.ticker-inner {
  color: #cfcfcf;
}
.ticker strong {
  color: var(--lime);
}
.sep {
  color: var(--amber);
}
.section-kicker {
  display: inline-block;
  background: var(--kick-bg);
  color: var(--kick-fg);
  border-radius: 4px;
  padding: 5px 9px;
}
.modes {
  border-top: 2px solid var(--edge);
  border-bottom: 2px solid var(--edge);
}
.card, .challenge-box {
  border: 2px solid var(--edge);
  box-shadow: 5px 5px 0 var(--edge);
  background: var(--surface);
}
.challenge-box {
  box-shadow: 8px 8px 0 var(--edge);
}
.card .card-tag {
  border: 2px solid var(--edge);
  color: var(--lime-ink);
  background: var(--lime);
  font-weight: 700;
}
.walk-dots i {
  height: 6px;
  border: 1px solid var(--edge);
  background: var(--surface);
}
.walk-dots i.on {
  background: var(--lime);
  box-shadow: none;
}
.data-table td:first-child {
  color: var(--ink);
  font-weight: 700;
}
.mode-symbol {
  border: 2px solid var(--edge);
  color: var(--ink);
  background: var(--surface);
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}
.mode-row:hover .mode-symbol {
  background: var(--lime);
  transform: rotate(-6deg);
}
.mode-tag {
  border: 2px solid var(--edge);
  color: var(--ink);
}
.badge {
  border: 2px solid var(--edge);
  background: var(--surface);
  box-shadow: 4px 4px 0 var(--edge);
}
.badge i {
  border: 2px solid var(--edge);
  box-shadow: 0 3px 0 var(--edge);
  transition: transform 0.2s ease;
}
.badge:hover i {
  transform: rotate(-8deg) scale(1.06);
}
.faq-list {
  border-top: 2px solid var(--edge);
}
.faq-list summary {
  align-items: center;
  min-height: 44px;
}
.faq-list summary::after {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 2px solid var(--edge);
  border-radius: 7px;
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: 0 2px 0 var(--edge);
}
.faq-list details:not([open]) summary:hover::after {
  transform: rotate(90deg);
}
.big-code span {
  animation: none;
  border: 2px solid var(--edge);
  box-shadow: 0 6px 0 var(--edge);
}
.challenge-box.visible .big-code span {
  animation: tile-in 0.5s both;
}
.challenge-box.visible .big-code span:nth-child(2) {
  animation-delay: 0.12s;
}
.challenge-box.visible .big-code span:nth-child(3) {
  animation-delay: 0.24s;
}
.challenge-box.visible .big-code span:nth-child(4) {
  animation-delay: 0.36s;
}
.badges .reveal:nth-child(2), .cards2 .reveal:nth-child(2), .mode-list .reveal:nth-child(2) {
  transition-delay: 0.07s;
}
.badges .reveal:nth-child(3), .mode-list .reveal:nth-child(3) {
  transition-delay: 0.14s;
}
.badges .reveal:nth-child(4), .mode-list .reveal:nth-child(4) {
  transition-delay: 0.21s;
}
.modal-backdrop {
  background: rgba(18, 18, 18, 0.74);
  backdrop-filter: none;
}
.modal {
  border: 2px solid var(--edge);
  box-shadow: 8px 8px 0 var(--lime);
  background: var(--surface);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}
.close {
  width: 44px;
  height: 44px;
  border: 2px solid var(--edge);
  background: var(--surface);
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}
.close:hover {
  background: var(--lime);
}
.close:active {
  transform: translateY(2px);
}
.mode-choice {
  border: 2px solid var(--edge);
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--edge);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.mode-choice:hover {
  border-color: var(--edge);
  background: var(--lime);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--edge);
}
.mode-choice:hover small, .mode-choice:hover .choice-arrow {
  color: #1a1a1a;
}
.mode-choice:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--edge);
}
.small-button {
  min-height: 44px;
}
.play-game input {
  border: 2px solid var(--edge);
  background: var(--surface);
}
.digit-btn {
  min-height: 48px;
  border: 2px solid var(--edge);
  background: var(--surface);
  box-shadow: 0 3px 0 var(--edge);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.digit-btn:hover:not(:disabled) {
  background: var(--lime);
}
.digit-btn:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--edge);
}
.history {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 236px;
  overflow-y: auto;
  padding: 2px 2px 6px;
  margin-bottom: 6px;
}
.history:empty {
  display: none;
}
.hrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hrow .dtile {
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
}
@media (max-width: 600px) {
  .game-window, .game-window.demo {
    box-shadow: 5px 5px 0 var(--edge);
  }
  .card, .badge {
    box-shadow: 3px 3px 0 var(--edge);
  }
  .challenge-box {
    box-shadow: 5px 5px 0 var(--edge);
  }
}

/* ---- Footer: light, black text, Game | Community | Resources, 2 link columns each ---- */
.footer {
  background: var(--surface);
  border-top: 0;
  color: var(--ink);
  padding: 56px 0 34px;
  font: 400 0.9rem/1.5 var(--sans);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}
.footer-cols > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(12px, 2vw, 28px);
  align-content: start;
}
.footer-cols h4 {
  grid-column: 1/-1;
  margin: 0 0 8px;
  padding: 0;
  background: none;
  color: var(--ink);
  font: 700 0.72rem var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-cols a {
  display: block;
  margin: 0;
  padding: 10px 0;
  min-height: 44px;
  color: var(--ink);
  font-size: clamp(0.78rem, 1.5vw, 0.92rem);
  overflow-wrap: break-word;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition:
    text-decoration-color 0.15s ease,
    transform 0.15s ease;
}
.footer-cols a:hover {
  text-decoration-color: var(--ink);
  transform: translateX(2px);
}
.footer-copy {
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.8rem;
}
@media (max-width: 640px) {
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .footer-cols > div {
    column-gap: 20px;
  }
  .footer-cols a {
    font-size: 0.92rem;
  }
}
.dlogo {
  display: block;
  height: 64px;
  width: auto;
  max-width: 80vw;
}
@media (max-width: 600px) {
  .dlogo {
    height: 52px;
  }
}
::view-transition-old(root), ::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) {
  z-index: 1;
}
::view-transition-new(root) {
  z-index: 2;
}

[hidden] {
  display: none !important;
}
.view {
  padding: 40px 0 72px;
}
.view-enter {
  animation: rise 0.35s ease both;
}
.view h1 {
  margin: 14px 0 12px;
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  outline: none;
}
.view h2 {
  margin: 0 0 18px;
  font-size: 1.2rem;
}
.view .lead {
  max-width: 56ch;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}
.dl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: start;
}
.dl-card {
  padding: 28px;
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--edge);
}
.dl-card > img {
  display: block;
  width: min(240px, 70%);
  height: auto;
  margin: 0 0 22px;
}
.spec {
  margin: 0 0 24px;
}
.spec > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.spec dt {
  color: var(--muted);
  font: 0.72rem var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  align-self: center;
}
.spec dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}
.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.dl-actions .button {
  flex: 1 1 200px;
  justify-content: center;
  text-align: center;
}
.notice {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 2px solid var(--edge);
  border-radius: 10px;
  background: var(--hover);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.6;
}
.notice-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.js-copy-msg {
  font-size: 0.85rem;
  color: var(--muted);
}
.status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 2px solid var(--edge);
  border-radius: 12px;
  background: var(--paper);
  font-weight: 600;
  line-height: 1.5;
}
.status i {
  flex: 0 0 14px;
  height: 14px;
  border: 2px solid var(--edge);
  border-radius: 3px;
  background: var(--grey);
  transition: background 0.25s ease;
}
.status[data-state="ok"] i {
  background: var(--lime);
}
.status[data-state="error"] i {
  background: var(--amber);
}
.points {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.points li {
  position: relative;
  padding-left: 26px;
}
.points li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--edge);
  border-radius: 3px;
  background: var(--lime);
}
.points strong, .steps strong {
  display: block;
  margin-bottom: 2px;
}
.points span, .steps span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}
.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  counter-increment: s;
}
.steps li:before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--edge);
  border-radius: 9px;
  background: var(--lime);
  color: var(--lime-ink);
  font: 700 1.1rem var(--mono);
  box-shadow: 0 3px 0 var(--edge);
}
.sha {
  display: grid;
  gap: 6px;
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--muted);
}
.sha strong {
  color: var(--ink);
}
.sha code {
  overflow-wrap: anywhere;
  padding: 8px 10px;
  border: 2px solid var(--edge);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: 0.78rem var(--mono);
}
@media (max-width: 820px) {
  .dl-grid {
    grid-template-columns: 1fr;
  }
  .dl-card {
    padding: 22px;
    box-shadow: 5px 5px 0 var(--edge);
  }
}

html {
  scroll-behavior: auto;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
.legal {
  padding: 40px 0 72px;
  animation: rise 0.4s ease both;
}
.legal-head {
  margin-bottom: 28px;
}
.legal .doc-title {
  margin: 14px 0 14px;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.doc-updated {
  display: inline-block;
  margin: 0;
  padding: 6px 10px;
  border: 2px solid var(--edge);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font: 0.78rem var(--mono);
  letter-spacing: 0.04em;
}
.intro-card {
  margin: 0 0 36px;
  padding: 24px 26px;
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--edge);
  line-height: 1.75;
}
.legal-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 20px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 18px;
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 5px 5px 0 var(--edge);
}
.toc-title {
  margin: 0 0 10px;
  font: 700 0.72rem var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 4px 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
  text-decoration: none;
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}
.toc a:hover {
  color: var(--ink);
  transform: translateX(2px);
}
.toc .num {
  flex: 0 0 auto;
  min-width: 30px;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--kick-bg);
  color: var(--kick-fg);
  font: 700 0.7rem var(--mono);
  text-align: center;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.toc a[aria-current="true"] {
  color: var(--ink);
  font-weight: 700;
}
.toc a[aria-current="true"] .num {
  background: var(--lime);
  color: var(--lime-ink);
}
.doc-section {
  margin: 0 0 36px;
  padding: 0 0 36px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.doc-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 12px;
  padding-bottom: 0;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  line-height: 1.25;
}
.idx {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  height: 44px;
  border: 2px solid var(--edge);
  border-radius: 9px;
  background: var(--lime);
  color: var(--lime-ink);
  font: 700 1rem var(--mono);
  box-shadow: 0 3px 0 var(--edge);
}
.legal-body p, .legal-body li {
  max-width: 72ch;
  line-height: 1.8;
}
.legal-body p {
  margin: 0 0 14px;
}
.legal-body ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.legal-body li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 24px;
}
.legal-body li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 11px;
  height: 11px;
  border: 2px solid var(--edge);
  border-radius: 3px;
  background: var(--lime);
}
.legal-body li > ul {
  margin: 12px 0 0;
}
.sub-heading {
  margin: 24px 0 12px;
  padding-left: 10px;
  border-left: 4px solid var(--lime);
  font: 700 0.98rem var(--mono);
  line-height: 1.4;
}
.legal-body a {
  color: var(--accent);
  text-underline-offset: 3px;
}
@media (max-width: 960px) {
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .toc {
    position: static;
    max-height: none;
  }
  .toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }
  .toc a {
    min-height: 44px;
  }
}
@media (max-width: 560px) {
  .toc ol {
    grid-template-columns: 1fr;
  }
  .intro-card {
    padding: 18px;
    box-shadow: 4px 4px 0 var(--edge);
  }
  .toc {
    box-shadow: 3px 3px 0 var(--edge);
  }
}
.brand.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.contact-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* changelog: one dropdown per version, only one open at a time */
.version {
  margin: 0 0 24px;
}
.version-heading {
  margin: 0;
  font-size: inherit;
}
.version-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 72px;
  padding: 16px 20px;
  border: 2px solid var(--edge);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  box-shadow: 5px 5px 0 var(--edge);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}
.version-toggle:hover {
  background: var(--hover);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--edge);
}
.version-toggle:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--edge);
}
.version-tag {
  flex: 0 0 auto;
}
.version-meta {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.version-summary {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
}
.version-label {
  font-weight: 400;
}
.version-chevron {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--edge);
  border-radius: 8px;
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: 0 2px 0 var(--edge);
}
.version-chevron::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.version.is-open .version-chevron::before {
  margin-top: 3px;
  transform: rotate(-135deg);
}
.version-panel {
  display: grid;
  grid-template-rows: 1fr;
}
.version-panel-inner {
  min-height: 0;
}
.version-panel-inner > .legal-grid {
  margin-top: 32px;
}
.js .version-panel {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition:
    grid-template-rows 0.34s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.34s;
}
.js .version-panel-inner {
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.js .version.is-open .version-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition:
    grid-template-rows 0.34s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s;
}
.js .version.is-open .version-panel-inner {
  opacity: 1;
  transition: opacity 0.3s ease 0.08s;
}
/* sticky category list needs overflow to be visible once the panel has opened */
.js .version.is-settled .version-panel-inner {
  overflow: visible;
}
.js .version.no-anim .version-panel,
.js .version.no-anim .version-panel-inner,
.js .version.no-anim .version-chevron::before {
  transition: none;
}
.version-panel .doc-section {
  scroll-margin-top: 24px;
}
.version-tag {
  padding: 6px 12px;
  border: 2px solid var(--edge);
  border-radius: 8px;
  background: var(--lime);
  color: var(--lime-ink);
  font: 700 1.1rem var(--mono);
  box-shadow: 0 3px 0 var(--edge);
}
.version-label {
  color: var(--muted);
  font: 0.85rem var(--mono);
  line-height: 1.5;
}
.dot {
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  height: 36px;
  border: 2px solid var(--edge);
  border-radius: 9px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 0.7rem;
  box-shadow: 0 3px 0 var(--edge);
}
@media (max-width: 560px) {
  .version-toggle {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
    box-shadow: 3px 3px 0 var(--edge);
  }
  .version-toggle:hover {
    box-shadow: 4px 4px 0 var(--edge);
  }
  .version-toggle:active {
    box-shadow: 1px 1px 0 var(--edge);
  }
  .version-tag {
    order: 1;
  }
  .version-chevron {
    order: 2;
    margin-left: auto;
  }
  .version-meta {
    order: 3;
    flex: 1 1 100%;
  }
  .version-panel-inner > .legal-grid {
    margin-top: 26px;
  }
}

/* guide page: hidden helper text, numbered steps, inline code, tables */
.doc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.legal-body code {
  padding: 2px 6px;
  border: 1px solid var(--line2);
  border-radius: 5px;
  background: var(--paper);
  font: 0.88em var(--mono);
}
.doc-steps {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: ds;
}
.legal-body .doc-steps li {
  min-height: 44px;
  margin: 0;
  padding: 8px 0 0 58px;
  counter-increment: ds;
}
.legal-body .doc-steps li:before {
  content: counter(ds);
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--edge);
  border-radius: 9px;
  background: var(--lime);
  color: var(--lime-ink);
  font: 700 1rem var(--mono);
  box-shadow: 0 3px 0 var(--edge);
}
.legal-body .data-table tbody th {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font: 700 0.9rem var(--sans);
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  vertical-align: top;
}
.legal-body .data-table td {
  font-family: var(--sans);
  line-height: 1.6;
  vertical-align: top;
}
.legal-body .data-table tr:last-child th {
  border-bottom: 0;
}
.legal-grid > * {
  min-width: 0;
}
.legal-body .code-block {
  margin: 0 0 18px;
  padding: 16px 18px;
  overflow-x: auto;
  border: 2px solid var(--edge);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--edge);
  color: var(--ink);
  font: 0.84rem/1.7 var(--mono);
}
.legal-body .code-block code {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
}
.legal-body .code-block:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
/* guide page: phone screenshots */
.phone {
  position: relative;
  padding: 8px;
  border: 2px solid var(--edge);
  border-radius: 30px;
  background: var(--bar);
  box-shadow: 5px 5px 0 var(--edge);
}
.phone:before {
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  z-index: 1;
  width: 34px;
  height: 5px;
  margin-left: -17px;
  border-radius: 3px;
  background: #2a302a;
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1/2;
  object-fit: cover;
  border-radius: 22px;
  background: var(--grey);
}
/* 404 page */
.notfound {
  display: flex;
  min-height: min(56vh, 520px);
  align-items: center;
}
.notfound-text {
  max-width: 52ch;
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.7;
}
.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
@media (min-width: 641px) {
  .footer-cols.footer-cols--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-cols--two > div:nth-child(1) {
    justify-self: start;
  }
  .footer-cols--two > div:nth-child(2) {
    justify-self: end;
  }
}

/* marks items added or changed in a release */
.new-tag {
  display: inline-block;
  margin-left: 0.25em;
  color: var(--accent);
  font: 700 0.78em var(--mono);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.toc .new-tag {
  font-size: 0.8em;
}

/* download page: install guide */
.guide {
  margin-top: 56px;
}
.view .guide-title {
  margin: 12px 0 28px;
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}
.guide-grid .dl-card h3 {
  margin: 14px 0 14px;
  font-size: 1.2rem;
  line-height: 1.25;
}
.guide-tag {
  display: inline-block;
  padding: 5px 9px;
  border: 2px solid var(--edge);
  border-radius: 6px;
  background: var(--lime);
  color: var(--lime-ink);
  font: 700 0.72rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.guide-intro {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.guide-sub {
  margin: 20px 0 10px;
  color: var(--muted);
  font: 0.72rem var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.guide-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.5em;
  font-size: 0.95rem;
  line-height: 1.65;
}
.guide-list li::marker {
  color: var(--accent);
  font: 700 0.9rem var(--mono);
}
.guide-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 2px solid var(--edge);
  border-radius: 10px;
  background: var(--hover);
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.6;
}
.guide-help {
  grid-column: 1 / -1;
}
.guide-help .faq-list {
  margin-top: 4px;
}
.guide-help summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}
@media (max-width: 820px) {
  .guide {
    margin-top: 44px;
  }
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}
