@font-face {
  font-family: 'Source Code Pro';
  src: url('./assets/fonts/SourceCodePro-Regular.woff2') format('woff2');
  font-style:normal;
  font-weight: 100;
  font-display: swap;
}
.nt-root {
  --nt-background: #f5f5f3;
  --nt-ink: #222422;
  --nt-muted: #696d68;
  --nt-line: #828a80;
  --nt-accent: #44633d;
  --nt-label-size: 1rem;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 620px;
  height: var(--nt-height, 100svh);
  overflow: hidden;
  color: var(--nt-ink);
  background: var(--nt-background);
  font-family: source code pro;
  font-size: 9px;
  line-height: 1;
}
.nt-root *, .nt-root *::before, .nt-root *::after { box-sizing: border-box; }
.nt-root .nt-header {
  position: absolute; inset: 30px 36px auto; z-index: 3;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; pointer-events: none;
}
.nt-root .nt-title { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 100; letter-spacing: -.05em; line-height: 1; margin: 0; }
.nt-root .nt-kicker { font-family: monospace; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; margin: 13px 0 0; color: var(--nt-muted); }
.nt-root .nt-edition { margin: 4px 0; font-family: monospace; font-size: .75rem; letter-spacing: .07em; color: var(--nt-muted); }
.nt-root .nt-stage { position: absolute; inset: 125px 20px 95px; }
.nt-root .nt-stage:focus-visible { outline: 1px solid var(--nt-accent); outline-offset: 4px; }
.nt-root .nt-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; }
.nt-root .nt-labels { position: absolute; inset: 0; pointer-events: none; }
.nt-root .nt-labels { z-index: 2; }
.nt-root .nt-label-wrap { pointer-events: none; white-space: nowrap; background: transparent; }
.nt-root .nt-label {
  display: inline-block; pointer-events: auto;
  color: #000; background: transparent;
  font: inherit;
  padding: 0; border: 0; margin: 0; text-decoration: none;
  transition: color 140ms ease;
}
.nt-root .nt-label:focus-visible, .nt-root .nt-label[aria-current="location"] {
  color: #000; background: transparent; text-decoration: underline; text-underline-offset: .22em;
}
.nt-root .nt-label:focus-visible { outline: 1px solid var(--nt-accent); outline-offset: 4px; }
.nt-root .nt-label[data-role="junction"] { color: #000; }
.nt-root .nt-label[data-unnamed="true"] { color: #000; }
.nt-root .nt-label:hover { color: #fff; background: transparent; text-decoration: none; }
.nt-root .nt-footer {
  position: absolute; inset: auto 36px 28px; z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  border-top: 1px solid #d5d8d1; padding-top: 17px; pointer-events: none;
}
.nt-root .nt-instruction, .nt-root .nt-status { margin: 0; color: var(--nt-muted); font-size: .875rem; }
.nt-root .nt-status { min-height: 21px; color: var(--nt-accent); }
.nt-root .nt-actions { display: flex; gap: 24px; white-space: nowrap; flex-wrap: wrap; }
.nt-root .nt-text-button {
  pointer-events: auto; padding: 0; border: 0; border-radius: 0; background: transparent;
  color: var(--nt-ink); font: inherit;
  text-decoration: underline; text-underline-offset: 4px;
}
.nt-root .nt-text-button:focus-visible { outline: 1px solid var(--nt-accent); outline-offset: 5px; }
.nt-root .nt-message { position: absolute; inset: 45% 20px auto; text-align: center; font-size: .875rem; color: var(--nt-muted); pointer-events: none; }
.nt-root .nt-list { position: absolute; inset: 125px 36px 110px; z-index: 4; overflow: auto; background: var(--nt-background); }
.nt-root .nt-list ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px 30px; }
.nt-root .nt-list a { display: inline; color: var(--nt-ink); text-decoration: underline; text-underline-offset: 4px; }
.nt-root .nt-label, .nt-root .nt-text-button, .nt-root .nt-list a {
  font-family: 'Source Code Pro', monospace;
  font-size: var(--nt-label-size);
  font-weight: 100;
}
.nt-root [hidden] { display: none !important; }
@media (max-width: 640px) {
  .nt-root { min-height: 660px; }
  .nt-root .nt-header { inset: 24px 20px auto; }
  .nt-root .nt-stage { inset: 115px 8px 120px; }
  .nt-root .nt-footer { inset: auto 20px 22px; flex-direction: column; align-items: stretch; gap: 10px; }
  .nt-root .nt-actions { justify-content: space-between; }
  .nt-root .nt-list { inset: 115px 20px 140px; }
  .nt-root .nt-list ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) { .nt-root .nt-label { transition: none; } }

/* Mobile controls remain accessible when the desktop footer is hidden. */
.nt-root .nt-stage { touch-action: none; }
.nt-root .nt-mobile-tools {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  font-family: 'Source Code Pro', monospace; font-size: 12px; line-height: 1.35;
}
.nt-root .nt-mobile-actions { display: flex; justify-content: space-between; gap: 8px; }
.nt-root .nt-mobile-button {
  min-height: 44px; padding: 4px 2px; border: 0; border-radius: 0;
  color: var(--nt-ink); background: transparent; font: inherit;
  text-decoration: underline; text-underline-offset: 4px;
}
.nt-root .nt-mobile-button:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
.nt-root .nt-mobile-button:disabled { opacity: .5; }
.nt-root .nt-mobile-hint { margin: 0 0 6px; color: var(--nt-muted); }
