/* Goldbach: the fold, its tape of ways, and the comet of every even number to 100,000. */

/* The fold: the number line from 0 to n, folded in half. */

.fold {
  display: block;
  width: 100%;
  height: 168px;
  margin: 22px 0 16px;
  border-radius: 8px;
  background: var(--paper);
  touch-action: manipulation;
}

.tape .tape-more {
  color: var(--ink-soft);
}

/* The comet */

.comet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  max-width: 560px;
  margin-bottom: 14px;
}

/* Room for three lines, so the comet doesn't jump as the status changes. */
.comet-status {
  display: flex;
  flex: 1 1 16rem;
  align-items: center;
  min-height: 4.65em;
  font-weight: 600;
}

.comet-frame {
  max-width: 560px;
}

.comet-frame canvas {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: var(--paper);
  touch-action: manipulation;
  cursor: crosshair;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.swatch--three {
  background: var(--r6);
}

.swatch--rest {
  background: var(--r2);
}

.comet-readout {
  max-width: 560px;
  min-height: 3.1em;
  margin-top: 10px;
  font-weight: 600;
}
