@font-face {
  font-family: "Archivo Black";
  src: url("/fonts/archivo-black.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --night: #0e1430; /* the hall with the lights off */
  --desk: #182046; /* a desk in the seat map */
  --line: #26305e;
  --paper: #eef1ff;
  --muted: #8f99c4;
  --violet: #7c5cff; /* PlayBunch brand */
  --sky: #4fb3ff;
  --led: #ffb547; /* power LED amber */
  --ok: #3ddc97;
  --display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 34rem;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--led);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--paper);
  color: var(--night);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  left: 8px;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}
h1 {
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  margin-bottom: 2.2rem;
  max-width: 18ch;
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  letter-spacing: -0.005em;
}
p {
  margin: 0;
}

main > section {
  padding: clamp(4rem, 9vw, 7.5rem) clamp(1.25rem, 5vw, 4.5rem);
  max-width: 84rem;
  margin: 0 auto;
}

/* ---------- nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.25rem, 5vw, 4.5rem);
  max-width: 84rem;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.nav nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2.4vw, 2rem);
}
.nav nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}
.nav nav a:hover {
  color: var(--paper);
}
.nav nav .nav-cta {
  color: var(--paper);
}
.lang {
  font: 600 0.85rem var(--body);
  color: var(--paper);
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}
.lang:hover {
  border-color: var(--muted);
}
@media (max-width: 640px) {
  .nav nav a:not(.nav-cta) {
    display: none;
  }
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-top: clamp(2.5rem, 6vw, 5rem) !important;
}
.hero-copy {
  max-width: 36rem;
}
.lede {
  margin-top: 1.6rem;
  font-size: 1.2rem;
  color: #c9d0f2;
  max-width: var(--measure);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 3.1rem;
  padding: 0 1.4rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease;
}
.btn.primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(124, 92, 255, 0.9);
}
.btn.primary:hover {
  background: #8d70ff;
  transform: translateY(-1px);
}
.btn.ghost {
  border: 1px solid var(--line);
}
.btn.ghost:hover {
  border-color: var(--muted);
}
.meta {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: var(--measure);
}
#version:not(:empty) {
  color: var(--paper);
}

/* The LAN hall – seat map */
.hall {
  margin: 0;
  background: linear-gradient(180deg, #121a3c, #0c1229);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.3rem 1.3rem 0;
  overflow: hidden;
}
.hall-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.hall-name {
  color: var(--paper);
  font-weight: 700;
}
.hall-count b {
  color: var(--ok);
  font-variant-numeric: tabular-nums;
}
.rows {
  display: grid;
  gap: 0.55rem;
}
.row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}
.row:nth-child(3) {
  margin-top: 0.9rem;
}
.seat {
  position: relative;
  background: var(--desk);
  border-radius: 10px;
  padding: 0.55rem 0.6rem 0.5rem;
  min-height: 3.6rem;
  border: 1px solid transparent;
  transition:
    background-color 0.5s ease,
    border-color 0.5s ease;
}
.seat::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #39406b;
  transition:
    background-color 0.4s ease,
    box-shadow 0.4s ease;
}
.seat .who {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: #59618f;
  transition: color 0.4s ease;
}
.seat .doing {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.5s ease 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seat.on {
  background: #1d2752;
  border-color: #2e3a74;
}
.seat.on::before {
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}
.seat.on .who {
  color: var(--paper);
}
.seat.on .doing {
  opacity: 1;
}
.seat.dl::before {
  background: var(--led);
  box-shadow: 0 0 10px var(--led);
}
.seat.you {
  border: 1px dashed var(--violet);
  background: transparent;
}
.seat.you .who {
  color: #b6a6ff;
}
.seat.you::before {
  display: none;
}
.screen-bar {
  margin: 1.2rem -1.3rem 0;
  padding: 0.8rem 1.3rem;
  border-top: 1px solid var(--line);
  background: #0a0f24;
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  gap: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
}
.screen-bar b {
  color: var(--paper);
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .row .seat:nth-child(4) {
    display: none;
  }
}

/* ---------- what ---------- */
.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.three > div {
  border-top: 2px solid var(--violet);
  padding-top: 1.2rem;
}
.three > div:nth-child(2) {
  border-color: var(--sky);
}
.three > div:nth-child(3) {
  border-color: var(--led);
}
.three p {
  color: #c3cbef;
}
@media (max-width: 820px) {
  .three {
    grid-template-columns: 1fr;
  }
}

/* ---------- screenshots ---------- */
.shots {
  padding-top: 0 !important;
}
.shot {
  margin: 0;
}
.shot img {
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.shot figcaption {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 46ch;
}
.shot.big img {
  border-radius: 18px;
}
.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
@media (max-width: 760px) {
  .shot-pair {
    grid-template-columns: 1fr;
  }
}

/* ---------- features ---------- */
.feat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 6vw, 6rem);
  margin: 0;
}
.feat-list > div {
  padding: 1.3rem 0;
  border-top: 1px solid var(--line);
}
.feat-list dt {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.feat-list dd {
  margin: 0;
  color: #c3cbef;
  max-width: var(--measure);
}
@media (max-width: 760px) {
  .feat-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- how (a real sequence) ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 4.2rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--display);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--violet);
}
.steps p {
  color: #c3cbef;
}
pre {
  margin: 1rem 0 0;
  background: #0a0f24;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.55;
}
code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}
@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- download ---------- */
.download {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.download > div > p {
  color: #c3cbef;
  max-width: var(--measure);
}
.dl-options {
  display: grid;
  gap: 0.8rem;
}
.dl {
  display: grid;
  gap: 0.15rem;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  background: var(--desk);
  border: 1px solid var(--line);
  text-decoration: none;
}
a.dl:hover {
  border-color: var(--violet);
}
.dl b {
  font-size: 1.1rem;
}
.dl span {
  color: #c3cbef;
}
.dl small {
  color: var(--muted);
  font-size: 0.85rem;
}
.dl.docker {
  background: transparent;
}
.dl.docker code {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--sky);
  overflow-wrap: anywhere;
}
@media (max-width: 820px) {
  .download {
    grid-template-columns: 1fr;
  }
}

/* ---------- footer ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1.25rem, 5vw, 4.5rem) 3rem;
  max-width: 84rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before {
    transition: none !important;
  }
}

/* setup files in "how it works" */
.files { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; margin-top: .8rem; }
.files details { border: 1px solid var(--line); border-radius: 10px; background: #0a0f24; }
.files summary { cursor: pointer; padding: .6rem .9rem; font-weight: 600; font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .9rem; list-style: none; display: flex; justify-content: space-between; }
.files summary::-webkit-details-marker { display: none; }
.files summary::after { content: '+'; color: var(--muted); }
.files details[open] summary::after { content: '–'; }
.files pre { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; max-height: 22rem; font-size: .8rem; }
.file-actions { display: flex; gap: .6rem; padding: .6rem .9rem; border-top: 1px solid var(--line); }
.file-actions a, .file-actions button { font: 600 .85rem var(--body); color: var(--sky); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.file-actions a:hover, .file-actions button:hover { text-decoration: underline; }
pre { scrollbar-width: thin; scrollbar-color: #2e3a74 transparent; }
