:root {
  color-scheme: dark;
  --wall: #101513;
  --wall-high: #1a221e;
  --neon: #3dff8e;
  --neon-core: #eafff2;
  --neon-deep: #12a855;
  --text: #d3e2da;
  --muted: #93ab9e;
  --plate: #0b0f0d;
  --edge: rgba(61, 255, 142, 0.2);
  --tube: "Tilt Neon", "Segoe UI", sans-serif;
  --display: "Big Shoulders", "Arial Narrow", sans-serif;
  --text-face: "Barlow", "Segoe UI", sans-serif;
  --glow:
    0 0 2px #fff,
    0 0 6px var(--neon),
    0 0 14px var(--neon),
    0 0 34px var(--neon-deep),
    0 0 70px var(--neon-deep);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 400 1.0625rem/1.55 var(--text-face);
  background-color: var(--wall);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(16, 21, 19, 0.88) 0%, rgba(16, 21, 19, 0.45) 35%, rgba(16, 21, 19, 0.55) 70%, var(--wall) 100%),
    url("img/alley.jpg");
  background-size: auto, 100% 56.25vw, 100% auto;
  background-position: center, center top, center top;
  background-repeat: repeat, no-repeat, no-repeat;
}

code {
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.92em;
}

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.top {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 16px 8px;
  text-align: center;
}

.wordmark {
  margin: 0;
  font: 400 clamp(3.2rem, 14vw, 8.5rem)/1 var(--tube);
  letter-spacing: 0.02em;
  color: var(--neon-core);
  text-shadow: var(--glow), 0 18px 22px rgba(0, 0, 0, 0.55);
  animation: ignite 1.3s linear both;
}

@keyframes ignite {
  0% { opacity: 0.18; filter: brightness(0.5); }
  9% { opacity: 1; filter: none; }
  13% { opacity: 0.25; filter: brightness(0.5); }
  22% { opacity: 1; filter: none; }
  27% { opacity: 0.4; filter: brightness(0.6); }
  36%, 100% { opacity: 1; filter: none; }
}

.pitch {
  max-width: 46ch;
  margin: 22px auto 0;
  font-size: 1.1875rem;
  line-height: 1.45;
  color: var(--text);
}

.lang {
  position: absolute;
  top: 20px;
  right: 16px;
  display: flex;
  border: 1px solid var(--edge);
  border-radius: 6px;
  overflow: hidden;
}

.lang button {
  min-width: 44px;
  min-height: 36px;
  padding: 4px 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 800 1rem/1 var(--display);
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: rgba(61, 255, 142, 0.14);
  color: var(--neon-core);
}

.desk {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 16px 24px;
}

.open-sign {
  display: inline-block;
  margin: 0 0 22px;
  padding: 8px 18px 10px;
  border: 2px solid #2c4436;
  border-radius: 14px;
  color: #2c4436;
  font: 400 1.5rem/1 var(--tube);
}

.open-sign.lit {
  border-color: var(--neon-core);
  color: var(--neon-core);
  text-shadow: 0 0 2px #fff, 0 0 8px var(--neon), 0 0 20px var(--neon-deep);
  box-shadow: 0 0 6px var(--neon), 0 0 22px rgba(61, 255, 142, 0.35), inset 0 0 8px rgba(61, 255, 142, 0.4);
}

.label {
  position: relative;
  background: linear-gradient(180deg, #0f1513, var(--plate));
  border: 1px solid var(--edge);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(61, 255, 142, 0.28), 0 30px 60px rgba(0, 0, 0, 0.55);
}

.tape, .stamp { display: none; }

.row { border-top: 1px solid rgba(61, 255, 142, 0.12); }
.row:first-of-type { border-top: 0; }
.label .row[hidden] { display: none; }

.row.three { display: grid; grid-template-columns: repeat(3, 1fr); }
.row.three .cell + .cell { border-left: 1px solid rgba(61, 255, 142, 0.12); }

.cell { padding: 16px 22px 18px; min-width: 0; }

.field {
  display: block;
  font: 600 0.875rem/1.2 var(--text-face);
  color: var(--muted);
}

.value {
  display: block;
  margin-top: 2px;
  font: 600 1.5rem/1.2 var(--display);
  color: #f1f7f3;
  overflow-wrap: anywhere;
}

.contents {
  margin: 4px 0 0;
  font: 800 clamp(2.1rem, 5.5vw, 3.25rem)/0.95 var(--display);
  color: #f6fbf8;
  text-transform: uppercase;
}

.sub { margin: 8px 0 0; color: var(--muted); font-weight: 600; }
.sub:empty { display: none; }

.barcode {
  display: block;
  width: 100%;
  height: 56px;
  filter: drop-shadow(0 0 3px rgba(61, 255, 142, 0.7));
}

.barcode rect { fill: var(--neon); }

.hash {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 10px;
}

.hash .field { display: inline; }

.hash code {
  order: 3;
  flex: 1 1 100%;
  min-width: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.copy {
  margin-left: auto;
  min-height: 32px;
  padding: 2px 12px;
  border: 1px solid var(--edge);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: 600 0.875rem/1 var(--text-face);
  cursor: pointer;
}

.copy:hover { border-color: var(--neon); color: var(--neon-core); }

.notes { margin: 4px 0 0; max-width: 60ch; white-space: pre-line; }

.action .cell { padding-top: 26px; padding-bottom: 24px; }

.download {
  display: inline-block;
  padding: 14px 30px 16px;
  border: 2px solid var(--neon-core);
  border-radius: 999px;
  color: var(--neon-core);
  font: 400 1.5rem/1 var(--tube);
  text-decoration: none;
  text-shadow: 0 0 5px rgba(61, 255, 142, 0.55);
  box-shadow: 0 0 4px rgba(61, 255, 142, 0.5), 0 0 12px rgba(61, 255, 142, 0.16), inset 0 0 6px rgba(61, 255, 142, 0.18);
}

.download:hover {
  background: rgba(61, 255, 142, 0.1);
  box-shadow: 0 0 6px rgba(61, 255, 142, 0.6), 0 0 18px rgba(61, 255, 142, 0.28), inset 0 0 8px rgba(61, 255, 142, 0.28);
}

.download[hidden] { display: none; }

.hint { margin: 16px 0 0; max-width: 48ch; font-size: 0.9375rem; color: var(--muted); }

.steps { padding-top: 70px; }

.steps h2, .older h2 {
  margin: 0 0 14px;
  font: 800 1.875rem/1 var(--display);
  color: #eef5f1;
  text-transform: uppercase;
}

.steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  max-width: 52ch;
  padding: 0 0 14px 44px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--edge);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--neon);
  font: 800 1.0625rem/1 var(--display);
}

.steps code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.req { margin: 4px 0 36px; font-weight: 600; }

.steps p { max-width: 52ch; }

.older {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px;
}

.older table {
  width: 100%;
  max-width: 620px;
  border-collapse: collapse;
}

.older th, .older td {
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid rgba(61, 255, 142, 0.15);
  text-align: left;
}

.older th { font: 600 0.875rem/1.2 var(--text-face); color: var(--muted); }

.older a { color: var(--neon); font-weight: 600; }

.foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  font-size: 0.9375rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .desk { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps { padding-top: 0; }
}

@media (max-width: 560px) {
  .top { padding-top: 76px; }
  .row.three { grid-template-columns: 1fr 1fr; }
  .row.three .cell:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid rgba(61, 255, 142, 0.12); }
  .cell { padding: 14px 16px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark { animation: none; }
}

.build-notice {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: rgba(11, 15, 13, 0.85);
  color: var(--muted);
  font-weight: 600;
}

.build-notice[hidden] { display: none; }

.build-notice a { color: var(--neon); }

.older tbody tr { cursor: pointer; }

.older tbody tr:hover { background: rgba(61, 255, 142, 0.05); }

.older tbody tr.current { background: rgba(61, 255, 142, 0.1); box-shadow: inset 3px 0 0 var(--neon); }

.older a.view { color: var(--text); text-decoration: none; font-weight: 600; }

.older tbody tr.current a.view, .older a.view:hover { color: var(--neon-core); }

.older td:first-child { padding-left: 10px; }

@media (max-width: 560px) {
  .older th:nth-child(3), .older td:nth-child(3) { display: none; }
}
