/* The screen on the wall of the club.
 *
 * Read from across a room by somebody who is not wearing their glasses and
 * is holding a towel. So: two things on it, both enormous, and nothing that
 * needs to be tapped. Everything that is not the occupancy figure or a free
 * machine is small and grey on purpose.
 *
 * The rule that matters here is the stale one. A screen that says a machine
 * is free when nobody has looked for an hour sends somebody across the gym
 * for nothing, and they stop believing the screen after the second time.
 */

* { box-sizing: border-box; }
html { color-scheme: dark; }

body {
  margin: 0;
  min-block-size: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  color: var(--ink);
}

.f-banner { justify-content: center; }

.f-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 3rem);
  min-block-size: 0;
}

/* The figure, its label and its band read as one block. At this size a
   digit's line box is far taller than the digit, so the leading is pulled
   in deliberately - otherwise the label appears to float away from the
   number it belongs to. */
.f-now {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.f-label {
  color: var(--ink-3);
  font-size: clamp(0.95rem, 1.6vw, 1.3rem);
  margin: 0;
}

.f-now .fx-figure {
  font-size: clamp(4.5rem, 15vw, 11rem);
  line-height: 0.85;
  margin: 0;
}

/* "Closed" is a word, not a figure, and set at a figure's size it reads as
   shouting rather than as information. */
.f-now .fx-figure.f-word {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.1;
}

.f-band {
  margin: 0.5rem 0 0;
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--accent);
}

.f-stale, .f-unknown {
  margin: 1rem 0 0;
  color: var(--ink-3);
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  max-inline-size: 40ch;
}

/* A stale reading is not dressed up as a current one. */
.f-stale[data-stale="true"] { color: var(--warn); }

.f-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(9rem, 16vw, 15rem), 1fr));
  gap: clamp(0.5rem, 1.2vw, 1rem);
}

.f-list li {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(0.7rem, 1.4vw, 1.1rem);
  font-size: clamp(1.05rem, 2.2vw, 1.7rem);
  font-weight: 600;
}

.f-list li[data-state="unknown"] {
  background: none;
  border-style: dashed;
  color: var(--ink-3);
  font-weight: 500;
}

.f-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: clamp(0.75rem, 1.5vw, 1.25rem) clamp(1.5rem, 4vw, 4rem);
  border-block-start: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 55rem) {
  .f-main { grid-template-columns: 1fr; }
}

/* The language toggle was never given a style: on the old dark screen the
   browser's default grey button passed for a chip, and on a light one it
   reads as an unstyled control. It wears the same skin as every other
   button in the product now. */
#language {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--rule-strong);
  border-radius: 7px;
  padding: .5rem .9rem;
  min-height: 44px;
  font: inherit;
  cursor: pointer;
}
#language:hover { border-color: var(--accent); background: var(--accent-soft); }
#language:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; }
