/*
 * Arcade cabinet: chunky panels, hard offset shadows, no soft blur, and a
 * scoreboard for numbers. The game is a joke about naked attention-seeking, so
 * the styling commits rather than staying polite.
 */

:root {
  color-scheme: dark;

  --bg: #0d0d12;
  --panel: #171720;
  --panel-lit: #1f1f2b;
  --sunken: #101017;
  --line: #33334a;
  --line-soft: #26263a;

  --text: #eceaf5;
  --muted: #8b8ba5;

  --accent: #ffd23f;
  --accent-deep: #c9971c;
  --accent-dim: #6b5a1a;
  --live: #3fd68c;
  --danger: #ff6b52;

  --gold: #ffd24a;
  --silver: #cfd6e0;
  --bronze: #d9884a;

  /* Hard, offset, un-blurred — the whole shadow language of the cabinet. */
  --drop: 3px 3px 0 #05050a;
  --drop-lg: 5px 5px 0 #05050a;

  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  font: 15px/1.4 ui-sans-serif, system-ui, sans-serif;
  background:
    radial-gradient(ellipse at 50% -10%, #1b1b2a 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* ---------------------------------------------------------------- header - */

header {
  display: flex;
  align-items: center;
  /* Wraps rather than overflowing: every item but the tagline is nowrap. */
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.6rem 1.1rem;
  background: var(--panel);
  border-bottom: 2px solid var(--line);
}

/*
 * The domain is the name. Set as one solid block so it reads like a stamp,
 * with the .com as a small flourish rather than part of the word.
 */
h1 {
  margin: 0;
  display: flex;
  align-items: baseline;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-shadow: 2px 2px 0 #05050a;
  white-space: nowrap;
}

h1 .tld {
  font-size: 0.6em;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  text-shadow: none;
  margin-left: 0.15em;
}

.tagline {
  color: var(--muted);
  font-size: 0.78rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Live room state, so it never looks empty when it is not. */
.badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: var(--sunken);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.badge b {
  font-family: var(--mono);
  color: var(--text);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}

#live.on .pulse {
  background: var(--live);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

header .nav {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  border: 2px solid var(--line);
  border-radius: 4px;
}

header .nav:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}

#countdown {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

#countdown b {
  color: var(--text);
  font-weight: 700;
}

/* ----------------------------------------------------------------- board - */

#board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 680px);
  justify-content: center;
  width: 100%;
  padding: 1rem 1.25rem 0.75rem;
  min-height: 0;
  overflow: hidden;
}

/* --------------------------------------------------------------- caveat - */

/*
 * Out of the grid flow on purpose. As a column it shoved the wall off-centre;
 * absolutely positioned, it sits beside the wall without moving it an inch.
 * The wall is centred and 680px, so its left edge is at 50% - 340px.
 */
#disclaimer {
  position: absolute;
  top: 1.1rem;
  right: calc(50% + 340px + 1.5rem);
  width: 220px;
  max-height: calc(100% - 2rem);
  overflow-y: auto;
}

#disclaimer h2 {
  margin: 0 0 0.5rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--danger);
  opacity: 0.85;
}

#disclaimer p {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  line-height: 1.55;
  color: #75758c;
}

#disclaimer p:last-child {
  margin-bottom: 0;
}

#disclaimer b {
  color: var(--text);
  font-weight: 600;
}

.panel {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--drop-lg);
  min-height: 0;
}

.panel-head {
  display: grid;
  grid-template-columns: 2rem 1fr 2.6rem 4.4rem 1.3rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem 0.45rem 0.6rem;
  border-bottom: 2px solid var(--line);
  background: var(--panel-lit);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.panel-head span:nth-child(1),
.panel-head span:nth-child(4) {
  text-align: right;
}

.panel-head span:nth-child(3) {
  text-align: center;
}

/* --------------------------------------------------------------- control - */

#control {
  /* Flanked, not stacked: the width was going to waste and the button was
     just one item in a queue of six. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  /* The row gap has to clear the button's 10px shadow rim. */
  gap: 1rem 1.75rem;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0.7rem 1.25rem 0.9rem;
}

/* ----------------------------------------------------------------- stats - */

#stats {
  justify-self: end;
  display: grid;
  gap: 0.25rem;
}

.stat {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 0.45rem;
  justify-content: end;
}

.stat b {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

.stat span {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: var(--muted);
  min-width: 8ch;
}

/* The rate is the number that actually moves, so it gets the accent. */
#stat-rate {
  color: var(--accent);
}

/* ---------------------------------------------------------------- button - */

#button-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
}

#button {
  --size: min(200px, 24vw, 24vh);
  width: var(--size);
  height: var(--size);
  /* Never shrink: as a flex item in an auto grid track it would otherwise
     collapse to the min-content width of the word PUSH. */
  flex: 0 0 auto;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #ffe98f 0%, var(--accent) 55%, #e0ac22 100%);
  color: #241a00;
  font: 900 1.15rem/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.18em;
  cursor: pointer;
  touch-action: manipulation;
  /* A thick rim plus a hard base: it reads as a physical thing with travel. */
  box-shadow:
    0 0 0 6px #2a2a40,
    0 0 0 8px #14141f,
    0 10px 0 #8e6d16,
    0 10px 0 8px #14141f;
  transition: transform 60ms ease, box-shadow 60ms ease;
}

#button:active,
#button.down {
  transform: translateY(8px);
  box-shadow:
    0 0 0 6px #2a2a40,
    0 0 0 8px #14141f,
    0 2px 0 #8e6d16,
    0 2px 0 8px #14141f;
}

#button:disabled {
  background: radial-gradient(circle at 38% 30%, #2f2f42 0%, #262636 60%, #1c1c28 100%);
  color: #55556e;
  box-shadow:
    0 0 0 6px #22222f,
    0 0 0 8px #14141f,
    0 10px 0 #101019,
    0 10px 0 8px #14141f;
  cursor: default;
}

#combo {
  position: absolute;
  top: -8%;
  right: -18%;
  padding: 0.2em 0.5em;
  border: 2px solid var(--accent);
  border-radius: 4px;
  background: #14141f;
  box-shadow: var(--drop);
  font: 900 1.15rem/1.1 var(--mono);
  color: var(--accent);
  opacity: 0;
  transform: scale(0.5) rotate(-8deg);
  transition: opacity 140ms ease, transform 140ms cubic-bezier(0.34, 1.7, 0.64, 1);
  pointer-events: none;
  white-space: nowrap;
}

#combo.on {
  opacity: 1;
  transform: scale(1) rotate(-8deg);
}

#combo.max {
  color: #ff8c42;
  border-color: #ff8c42;
}

/* ------------------------------------------------------------------ side - */

#side {
  justify-self: start;
  display: grid;
  gap: 0.4rem;
  justify-items: start;
  min-width: 0;
  max-width: 100%;
}

#standing {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  max-width: 100%;
}

#target-line {
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 1.2em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

#target-line b {
  color: var(--accent);
  font-weight: 700;
}

#gap-line {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  min-height: 1.1em;
}

#gap-line b {
  color: var(--text);
  font-weight: 700;
}

#gap-line .lead {
  color: var(--live);
}

/*
 * Submitting is a once-a-day action. It gets a quiet disclosure rather than a
 * permanent field beside the thing you press five hundred times a minute.
 */
#submit-toggle {
  padding: 0.3rem 0.6rem;
  border: 2px dashed var(--line);
  border-radius: 4px;
  background: none;
  color: var(--muted);
  font: 800 0.64rem/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease;
}

#submit-toggle:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}

#submit-toggle[hidden] {
  display: none;
}

/* -------------------------------------------------------------- messages - */

#messages {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.1rem;
  justify-items: center;
  text-align: center;
}

#challenge {
  grid-column: 1 / -1;
  justify-self: center;
}

/* ------------------------------------------------------------------ wall - */

#wall-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#wall {
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  padding: 0.5rem 0.55rem 0;
}

#stack {
  position: relative;
}

#wall-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  margin: 0;
  padding: 0.4rem;
  border-top: 2px solid var(--line-soft);
}

.entry {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  display: grid;
  grid-template-columns: 2rem 1fr 2.6rem 4.4rem 1.3rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.55rem;
  font-size: 0.86rem;
  border: 2px solid var(--line-soft);
  border-radius: 4px;
  background: var(--panel-lit);
  cursor: pointer;
  overflow: hidden;
  /* Overshoots slightly, so entries visibly bump past each other (§4). */
  transition: transform 420ms cubic-bezier(0.34, 1.42, 0.64, 1),
    border-color 150ms ease, background 150ms ease;
  will-change: transform;
}

.entry:hover {
  border-color: var(--line);
}

.entry.mine {
  border-color: var(--accent);
  box-shadow: var(--drop);
}

/* The top three carry metal; everyone else is plain, so the podium reads. */
.entry.rank-1 {
  border-color: var(--gold);
}
.entry.rank-2 {
  border-color: var(--silver);
}
.entry.rank-3 {
  border-color: var(--bronze);
}

.entry.rank-1 .rank {
  color: var(--gold);
}
.entry.rank-2 .rank {
  color: var(--silver);
}
.entry.rank-3 .rank {
  color: var(--bronze);
}

/*
 * The charge bar (§4 press feedback). Fills as presses land, drains when they
 * stop. Deliberately a continuous value rather than a per-press flash: at ~11
 * presses/sec a flashing background would be a strobe, well past the 3/sec
 * photosensitivity threshold.
 *
 * scaleX on a pseudo-element stays on the compositor, so 50 rows animating at
 * once cost no layout and no paint.
 */
.entry::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 210, 63, 0.28), rgba(255, 210, 63, 0.06));
  transform: scaleX(var(--charge, 0));
  transform-origin: left center;
  pointer-events: none;
  will-change: transform;
}

.entry.mine::before {
  background: linear-gradient(90deg, rgba(255, 210, 63, 0.52), rgba(255, 210, 63, 0.12));
}

/* Keep the text and controls above the fill. */
.entry > * {
  position: relative;
  z-index: 1;
}

.entry .rank {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  text-align: right;
}

.entry .label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry .label a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.entry .label a:hover {
  border-bottom-color: var(--muted);
}

.entry .host {
  color: var(--muted);
  font-size: 0.7rem;
  margin-left: 0.35rem;
}

.entry .pushers {
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: center;
}

.entry .dot {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--live);
}

.entry .pushers .more {
  color: var(--live);
  font-size: 0.65rem;
  font-family: var(--mono);
}

.entry .score {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: right;
}

.entry .score.ticked {
  animation: score-tick 220ms ease-out;
}

@keyframes score-tick {
  0% {
    transform: scale(1.25);
    color: var(--accent);
  }
  100% {
    transform: scale(1);
    color: inherit;
  }
}

/*
 * Always red, never a hover discovery. Reporting is the safety valve on an
 * anonymous link wall — it has to be obvious that it is there.
 */
.entry .report {
  border: none;
  background: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 120ms ease, transform 120ms ease;
}

.entry .report:hover {
  opacity: 1;
  transform: scale(1.2);
}

.entry .report:disabled {
  color: var(--muted);
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
}

/* ----------------------------------------------------------------- coins - */

/*
 * A press throws a coin, not a square. The spin comes from the rotation in the
 * WAAPI keyframes; the gradient and the rim give it an edge to catch the light.
 */
.chip {
  position: fixed;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  margin: -7.5px 0 0 -7.5px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #fff6c9 0%, var(--accent) 45%, #d59f1d 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.45),
    0 0 10px rgba(255, 210, 63, 0.7);
  pointer-events: none;
  z-index: 50;
}

.chip.ghost {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: radial-gradient(circle at 35% 30%, #b9b9d2 0%, #6f6f8c 70%);
  box-shadow: none;
  opacity: 0.6;
}

/* The ring a coin leaves where it lands. */
.pop {
  position: fixed;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 49;
}

/* ---------------------------------------------------------------- toasts - */

/*
 * Activity used to be a line under the button, where the button covered it.
 * Out of the way, and it can stack.
 */
#toasts {
  position: fixed;
  top: 4rem;
  right: 1rem;
  z-index: 80;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  justify-items: end;
  pointer-events: none;
}

.toast {
  max-width: min(320px, 62vw);
  padding: 0.45rem 0.7rem;
  border: 2px solid var(--line);
  border-left-width: 5px;
  border-radius: 5px;
  background: var(--panel);
  box-shadow: var(--drop);
  font-size: 0.75rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  animation: toast-in 260ms cubic-bezier(0.34, 1.5, 0.64, 1);
}

.toast b {
  color: var(--text);
  font-weight: 700;
}

.toast.lead {
  border-left-color: var(--gold);
}
.toast.lead b {
  color: var(--gold);
}

.toast.you {
  border-left-color: var(--accent);
}
.toast.you b {
  color: var(--accent);
}

.toast.new {
  border-left-color: var(--live);
}
.toast.new b {
  color: var(--live);
}

.toast.gone {
  border-left-color: var(--danger);
}
.toast.gone b {
  color: var(--danger);
}

.toast.out {
  animation: toast-out 220ms ease-in forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(24px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateX(24px) scale(0.96);
  }
}

/* ------------------------------------------------------ forms and notices - */

#status:empty,
#submit-note:empty {
  display: none;
}

/* An id rule beats the UA [hidden] style, so say it again louder. */
#challenge[hidden] {
  display: none;
}

#challenge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border: 2px solid var(--accent);
  border-radius: 5px;
  background: var(--panel-lit);
  box-shadow: var(--drop);
  font-size: 0.8rem;
}

#challenge form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

#challenge-question {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
}

#submit-form {
  display: flex;
  gap: 0.4rem;
  width: min(340px, 100%);
}

#submit-form[hidden] {
  display: none;
}

input[type="text"],
input[type="number"],
input[type="password"] {
  min-width: 0;
  padding: 0.45rem 0.6rem;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: var(--sunken);
  color: var(--text);
  font: inherit;
}

input:focus {
  outline: none;
  border-color: var(--accent-dim);
}

#submit-url {
  flex: 1;
  font-size: 0.85rem;
}

#challenge input {
  width: 4rem;
  font-family: var(--mono);
  padding: 0.25rem 0.4rem;
}

#submit-form button,
#challenge button {
  padding: 0.45rem 0.8rem;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: var(--panel-lit);
  color: var(--text);
  font: 800 0.72rem/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: var(--drop);
  transition: transform 60ms ease, box-shadow 60ms ease, color 120ms ease;
}

#submit-form button:hover:not(:disabled),
#challenge button:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}

#submit-form button:active,
#challenge button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #05050a;
}

#submit-form button:disabled {
  color: var(--muted);
  cursor: default;
}

#submit-note,
#status {
  font-size: 0.74rem;
  text-align: center;
  color: var(--muted);
}

#submit-note.bad,
#status.offline {
  color: var(--danger);
}

#submit-note.good {
  color: var(--live);
}

/* ---------------------------------------------------------- hall of fame - */

body.page {
  height: auto;
  min-height: 100vh;
  overflow: auto;
  grid-template-rows: auto 1fr;
}

header h1 a {
  color: inherit;
  text-decoration: none;
}

#history,
#admin {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
  width: 100%;
}

.day {
  margin-bottom: 2.25rem;
}

.day h2 {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 0.7rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--line);
}

.winners {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.winners li {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.7rem;
  border: 2px solid var(--line-soft);
  border-radius: 4px;
  background: var(--panel);
}

.winners li.won {
  background: var(--panel-lit);
  padding: 0.6rem 0.7rem;
  box-shadow: var(--drop);
}

.winners li:nth-child(1) {
  border-color: var(--gold);
}
.winners li:nth-child(2) {
  border-color: var(--silver);
}
.winners li:nth-child(3) {
  border-color: var(--bronze);
}

.winners li.won .label a {
  font-weight: 700;
}

.winners .rank {
  text-align: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.winners li.won .rank {
  font-size: 1.1rem;
}

.winners .label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.winners .label a {
  color: inherit;
  text-decoration: none;
}

.winners .label a:hover {
  color: var(--accent);
}

.winners .host {
  color: var(--muted);
  font-size: 0.74rem;
  margin-left: 0.4rem;
}

.winners .score {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--muted);
}

.winners li.won .score {
  color: var(--text);
}

/* ----------------------------------------------------------------- admin - */

#admin h2 {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2rem 0 0.7rem;
}

#admin form {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

#admin input {
  flex: 1;
  min-width: 12ch;
}

#admin button {
  padding: 0.45rem 0.8rem;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: var(--panel-lit);
  color: var(--text);
  font: 800 0.72rem/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: var(--drop);
}

#admin button.danger {
  border-color: #6b2b22;
  color: var(--danger);
}

#admin button.danger:hover:not(:disabled) {
  background: #2a1512;
}

#admin button.small {
  padding: 0.3rem 0.6rem;
  font-size: 0.66rem;
  box-shadow: none;
}

#admin-note {
  min-height: 1.2em;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
}

#admin-note.bad {
  color: var(--danger);
}

#admin-note.good {
  color: var(--live);
}

#admin .winners li {
  grid-template-columns: 3.2rem 1fr auto auto;
}

/* ------------------------------------------------------------ responsive - */

@media (prefers-reduced-motion: reduce) {
  .entry {
    transition: none;
  }

  #live.on .pulse {
    animation: none;
  }

  .toast {
    animation: none;
  }
}

/* Narrow screens: the control column stacks above the wall. */
/*
 * Below this there is no margin left to sit in, so the caveat rejoins the flow
 * underneath the wall rather than sliding off the side of the screen.
 */
@media (max-width: 1220px) {
  #board {
    grid-template-rows: 1fr auto;
    gap: 0.7rem;
  }

  #disclaimer {
    position: static;
    width: auto;
    max-height: none;
    order: 2;
  }

  #disclaimer p {
    font-size: 0.68rem;
    margin-bottom: 0.35rem;
  }
}

@media (max-width: 900px) {
  #toasts {
    top: auto;
    bottom: 0.6rem;
    right: 0.6rem;
    left: 0.6rem;
    justify-items: stretch;
  }

  .toast {
    max-width: none;
  }

  header {
    gap: 0.45rem 0.7rem;
    padding: 0.5rem 0.7rem;
  }

  /* Decoration goes first when the header runs out of room. */
  .tagline {
    display: none;
  }

  #board {
    padding: 0.7rem 0.7rem 0.5rem;
  }

  /* Too narrow to flank: fall back to a stack, stats first. */
  #control {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0.5rem 0.7rem 0.8rem;
    gap: 0.45rem;
  }

  #stats {
    justify-self: center;
    grid-template-columns: repeat(3, auto);
    gap: 0.9rem;
  }

  .stat {
    grid-template-columns: auto;
    justify-items: center;
    gap: 0;
  }

  .stat span {
    min-width: 0;
  }

  #side {
    justify-self: center;
    justify-items: center;
  }

  #button {
    --size: min(130px, 34vw, 17vh);
  }

  #combo {
    font-size: 1rem;
  }
}
