/* DSEG by keshikan, SIL Open Font License (fonts/DSEG-LICENSE.txt) */
@font-face {
  font-family: dseg7;
  src: url("../fonts/DSEG7Classic-Italic.woff2") format("woff2");
  font-display: block;
}

@font-face {
  font-family: dseg14;
  src: url("../fonts/DSEG14Classic-Italic.woff2") format("woff2");
  font-display: block;
}

:root {
  --ink: #0d2470;
  --glow: rgba(205, 255, 170, .38);
  --muted: #000;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: transparent;
  font-family: system-ui, sans-serif;
}

.wrap {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 16px;
}

/* Everything on the console is placed in % of the 1495x1433 photo */
.console {
  position: relative;
  aspect-ratio: 1495 / 1433;
  user-select: none;
}

.photo {
  display: block;
  width: 100%;
  height: auto;
}

.lcd {
  position: absolute;
  left: 10.234%;
  top: 16.399%;
  width: 55.518%;
  height: 41.033%;
}

.console.lit .lcd {
  background: var(--glow);
  mix-blend-mode: hard-light;
}

.seg, .lbl {
  fill: var(--ink);
}

.seg {
  font-family: dseg7, monospace;
}

.alpha {
  font-family: dseg14, monospace;
}

.wc {
  font-size: 41px;
  letter-spacing: 1px;
}

.lbl {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
}

.mid { text-anchor: middle; }

.ink { fill: var(--ink); }

.line, .rule, .ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.rule.thin { stroke-width: 3; stroke-linecap: butt; }

.dot { fill: var(--ink); }

.cursor {
  stroke: var(--ink);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}

.arrow-avg {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
}

#ant.pulse { animation: pulse 1s steps(2) 2; }

@keyframes pulse { 50% { opacity: 0; } }

.key {
  position: absolute;
  padding: 0;
  border: 0;
  border-radius: 22%;
  background: transparent;
  color: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.key.round { border-radius: 50%; }

.key:hover { background: rgba(255, 255, 255, .1); }

.key:active { background: rgba(0, 0, 0, .28); }

.key:focus-visible {
  outline: 3px solid #ffd21f;
  outline-offset: 1px;
}

.key.armed { box-shadow: 0 0 0 3px #ffd21f; }

.status {
  min-height: 1.4em;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.foot {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.legend {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
}

.legend caption {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.legend th, .legend td {
  padding: 4px 8px;
  border-top: 1px solid color-mix(in srgb, var(--muted) 35%, transparent);
  text-align: left;
  vertical-align: top;
}

.legend tbody th { white-space: nowrap; }

.credit {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.credit a { color: inherit; }

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