/* The page shell around the canvas. Colours come from tokens.css only. */
html,
body {
  margin: 0;
  height: 100%;
  background: var(--ink-900);
  color: var(--paper-100);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* The canvas fills the viewport minus the device's safe areas (notch, home indicator). */
#byrtus-root {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
    env(safe-area-inset-left);
  background: var(--ink-900);
}

#byrtus-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
}

.panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  width: min(26rem, calc(100vw - 1.5rem));
  padding: 1.5rem 2rem;
  background: var(--ink-800);
  border: 1px solid var(--ink-500);
  border-radius: 2px;
  text-align: center;
}

.panel[hidden] {
  display: none;
}

.wordmark {
  margin: 0 0 0.75rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--paper-000);
}

.panel p {
  margin: 0.5rem 0;
  line-height: 1.4;
}

.panel ul {
  margin: 0.75rem 0 1.25rem;
  padding: 0;
  list-style: none;
  color: var(--graphite-200);
}

.panel li {
  padding: 0.2rem 0;
}

.panel .detail {
  margin-top: 1rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--graphite-300);
}

.progress {
  height: 2px;
  margin-top: 1rem;
  background: var(--ink-500);
}

.progress__bar {
  width: 0;
  height: 100%;
  background: var(--signal-500);
  transition: width 120ms linear;
}

.button {
  display: inline-block;
  min-height: 44px;
  box-sizing: border-box;
  padding: 0 1.25rem;
  line-height: 44px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink-900);
  background: var(--paper-000);
  border-radius: 2px;
}

.button:hover,
.button:focus-visible {
  background: var(--signal-300);
}
