/* arena.css — lsd.is/atdt-arena/neo.cycle.crash observer page. Dark,
   monospace, one column; the 160x36 sub-cell data is displayed at
   terminal proportions: cells are about twice as tall as wide. */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
html { background: #0a0a0e; }
body {
  margin: 0 auto;
  max-width: 1100px;
  padding: 12px 16px 24px;
  background: #0a0a0e;
  color: #d8d8e0;
  font: 14px/1.4 ui-monospace, Menlo, Consolas, "DejaVu Sans Mono", monospace;
  overflow-x: hidden;
}
[hidden] { display: none !important; }

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
h1 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.muted { color: #7a7a90; font-weight: 400; }
.live { color: #ff3b3b; font-weight: 700; letter-spacing: .1em; white-space: nowrap; }
.live::before { content: "●"; margin-right: 6px; }
.live.off { color: #666; }

.hud {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 8px;
  align-items: start;
  margin-bottom: 8px;
}
.hud > * { min-width: 0; overflow-wrap: anywhere; }
.side .name { font-weight: 700; font-size: 15px; }
.side .meta { font-size: 12px; opacity: .9; }
.side.a { color: rgb(255, 80, 40); }
.side.b { color: rgb(60, 200, 255); text-align: right; }
.center { text-align: center; color: #fff; font-weight: 700; padding-top: 2px; }

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 80 / 36;
  background: #000;
  border: 1px solid #222;
  overflow: hidden;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.banner {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  color: #ffdc50;
  overflow: hidden;
}
.banner pre {
  margin: 0;
  font: inherit;
  /* figlet banner lines are 80 columns wide: keep 80 × 0.6em inside the stage */
  font-size: clamp(6px, 1.8vw, 16px);
  line-height: 1.1;
  white-space: pre;
}
.banner .sub {
  margin-top: .5em;
  font-size: clamp(9px, 1.4vw, 13px);
  color: #b0b0c0;
  letter-spacing: .1em;
}

.chat {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  min-height: 4.2em;
  font-size: 13px;
}
.chat li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat li.a { color: rgb(255, 80, 40); }
.chat li.b { color: rgb(60, 200, 255); }

#intermission { margin-top: 20px; }
#intermission-title { text-align: center; color: #ffdc50; font-size: 20px; }
.match-details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.match-details .role { font-size: 18px; }
.match-details .role.winner { color: #ffdc50; }
.match-details .stats { font: inherit; line-height: 1.5; white-space: pre-wrap; }
#intermission-countdown { text-align: center; color: #b0b0c0; }

.rotate { display: none; color: #ffdc50; text-align: center; }
@media (orientation: portrait) and (max-width: 600px) {
  .rotate { display: block; }
}
