@font-face {
  font-family: 'JetBrains Mono PL';
  src: url('fonts/JetBrainsMono-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

.planeloading {
  --pl-bg: #0B1020;
  --pl-surface: #161D33;
  --pl-surface-edge: #262F4A;
  --pl-text: #E8ECF5;
  --pl-text-dim: #8A94AD;
  --pl-text-muted: #5A6480;
  --pl-accent: #3F8F86;
  min-width: 0;
}

/* The animation block is wider than the 800px text column. */
.pl-block {
  box-sizing: border-box;
  max-width: 1440px;
  margin: 10px auto 30px;
  padding: 0 16px;
  width: 100%;
}
.pl-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1440 / 600;
  background: var(--pl-bg);
  border-radius: 14px 14px 0 0;
}
.pl-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 12px 16px 16px;
  background: var(--pl-bg);
  border-radius: 0 0 14px 14px;
  font: 400 14px/1.2 'Ubuntu', sans-serif;
  color: var(--pl-text-dim);
}
.pl-scenarios, .pl-playback, .pl-speed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pl-controls button {
  font: inherit;
  color: var(--pl-text-dim);
  background: var(--pl-surface);
  border: 1px solid var(--pl-surface-edge);
  border-radius: 13px;
  padding: 0 12px;
  min-height: 32px;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.pl-controls button b {
  color: var(--pl-text);
  margin-right: 4px;
}
.pl-controls button:hover {
  color: var(--pl-text);
  border-color: var(--pl-text-muted);
}
.pl-controls button:focus-visible {
  outline: 2px solid #4FA3FF;
  outline-offset: 2px;
}
.pl-controls button[aria-pressed="true"] {
  color: var(--pl-text);
  background: #1F3A44;
  border-color: var(--pl-accent);
}
.pl-speed button {
  width: 32px;
  padding: 0;
  font-size: 18px;
}
.pl-speed output {
  min-width: 34px;
  text-align: center;
  color: var(--pl-text);
  font-variant-numeric: tabular-nums;
}
.pl-pause {
  min-width: 76px;
}
.pl-seed {
  color: var(--pl-text-muted);
}
.pl-seed output {
  color: var(--pl-text-dim);
  font-variant-numeric: tabular-nums;
}

/* Explanation below the animation. */
.planeloading .pl-text h2 {
  margin-top: 40px;
}
.planeloading .pl-text h3 {
  margin: 20px 0 5px;
  font-size: 1.1rem;
}
.pl-legend {
  list-style: none;
  margin-left: 0;
}
.pl-legend li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.pl-dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translateY(1px);
}
.pl-walking { background: #4FA3FF; }
.pl-waiting { background: #FFB547; }
.pl-stowing { background: #A78BFA; }
.pl-interference { background: #FF6B6B; }
.pl-seated { background: #2F6F68; }

/* The site menu opens as a large circle top left from 1150px; keep the canvas below it. */
@media screen and (min-width: 1150px) {
  .pl-intro { min-height: 255px; }
}

@media screen and (max-width: 600px) {
  .pl-block { padding: 0 8px; }
  .pl-canvas { border-radius: 8px 8px 0 0; }
  .pl-controls { padding: 10px; border-radius: 0 0 8px 8px; }
  .pl-controls { font-size: 13px; }
  .pl-scenarios button { flex: 1 1 calc(50% - 8px); padding: 0 8px; white-space: nowrap; }
}
