/* site chrome: "signal" (nov 1). dark instrument panel, one monospace face, hairline grid of numbered cells, amber accent.
   no wordmark, no logo, no title (coordinator). fonts are self-hosted ofl subsets in /fonts (no cdn, no third parties).
   motion: almost none on purpose (see .cursor/rules/site-ui.mdc). transform/opacity only, under 300 ms. */
@font-face { font-family: "Plex Mono"; src: url(/fonts/IBMPlexMono-Regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/fonts/IBMPlexMono-Medium.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/fonts/IBMPlexMono-Italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root { --bg: #0b0b0c; --panel: #111113; --line: #232326; --fg: #e4e3df; --text: #c9c8c2; --dim: #77766f; --accent: #ffb340; --on-accent: #1a1200;
        --mono: "Plex Mono", ui-monospace, Menlo, Consolas, monospace;
        --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --dur-press: 120ms; --dur-enter: 220ms; }
* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 13px/1.6 var(--mono); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; touch-action: manipulation; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 .8em; max-width: 64ch; color: var(--text); }
p:last-child { margin-bottom: 0; }
img { border: 0; display: block; max-width: 100%; }
b { font-weight: 500; }
.dim { color: var(--dim); }
.num { font-variant-numeric: tabular-nums; }

/* focus: one on-palette ring, keyboard only */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* frame + bar */
.frame { max-width: 1120px; margin: 0 auto; padding: 0 20px 60px; }
header.bar { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); }
nav.top { display: flex; gap: 4px; }
nav.top a { color: var(--dim); padding: 6px 10px; border: 1px solid transparent; border-radius: 2px; user-select: none; -webkit-user-select: none; }
nav.top a[aria-current] { color: var(--fg); border-color: var(--line); background: var(--panel); }
nav.top a:active { background: var(--line); }
.status { display: flex; justify-content: flex-end; gap: 18px; color: var(--dim); font-size: 12px; white-space: nowrap; min-width: 0; }
.status span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.status b { color: var(--fg); }

/* grid of cells */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 24px; }
.cell { background: var(--bg); padding: 18px 20px; grid-column: span 12; min-width: 0; }
.cell.c8 { grid-column: span 8; } .cell.c4 { grid-column: span 4; } .cell.c6 { grid-column: span 6; }
.lbl { display: flex; justify-content: space-between; gap: 12px; color: var(--dim); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
h1 { font: 400 28px/1.2 var(--mono); letter-spacing: -.01em; margin: 0 0 10px; overflow-wrap: anywhere; }
h1 i { color: var(--accent); font-style: normal; }

/* login */
form.login { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.prompt { display: flex; align-items: center; gap: 10px; flex: 1 1 280px; border: 1px solid var(--line); background: var(--panel); padding: 0 12px; border-radius: 2px; }
.prompt span { color: var(--accent); user-select: none; -webkit-user-select: none; }
.prompt input { flex: 1; background: transparent; border: 0; color: var(--fg); font: 16px var(--mono); letter-spacing: .1em; padding: 12px 0; min-width: 0; }
.prompt input::placeholder { color: #4a4a47; }
.prompt input:focus { outline: none; }
.prompt:focus-within { border-color: #4a4a47; }
.prompt:has([aria-invalid="true"]) { border-color: var(--accent); }
button.go { font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--accent); color: var(--on-accent); border: 0; padding: 0 18px;
            border-radius: 2px; cursor: pointer; min-height: 44px; touch-action: manipulation; user-select: none; -webkit-user-select: none;
            transition: transform var(--dur-press) var(--ease-out); }
button.go:active { transform: scale(.97); }
/* login error: enters with a short fade, never shifts layout (hidden keeps display:block + opacity 0) */
.err { color: var(--accent); font-size: 12px; margin-top: 10px; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s; }
.err[hidden] { display: block; visibility: hidden; opacity: 0; transform: translateY(-3px); pointer-events: none; }

/* key/value lists, news, standings */
ul.kv { list-style: none; margin: 0; padding: 0; }
ul.kv li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px dashed var(--line); }
ul.kv li:first-child { border-top: 0; padding-top: 0; }
ul.kv li span:first-child { color: var(--dim); flex-shrink: 0; }
ul.kv li span:last-child { text-align: right; min-width: 0; overflow-wrap: anywhere; }
ul.kv .on { color: var(--accent); }
ul.news { list-style: none; margin: 0; padding: 0; }
ul.news li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 10px 0; border-top: 1px dashed var(--line); }
ul.news li:first-child { border-top: 0; padding-top: 0; }
ul.news time { color: var(--dim); }
ul.news p { margin: 0; max-width: none; overflow-wrap: anywhere; }
.new { display: inline-block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 1px 6px; border-radius: 2px; margin-left: 8px; vertical-align: 1px; }
table.board { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.board td { padding: 9px 0; border-top: 1px dashed var(--line); vertical-align: top; overflow-wrap: anywhere; }
table.board tr:first-child td { border-top: 0; }
table.board td.rank { width: 4ch; color: var(--dim); position: relative; }
table.board td.status { color: var(--dim); width: 14%; }
table.board td.at { text-align: right; white-space: nowrap; color: var(--dim); width: 13ch; }
table.board tr.me td { color: var(--accent); }
table.board tr.me td.rank::before { content: "\25B8"; position: absolute; left: -16px; }
/* a row that appeared since the last poll: one fade, once. rows that were already there never move. */
table.board tr.enter td { opacity: 1; transform: translateY(0); transition: opacity var(--dur-enter) var(--ease-out), transform var(--dur-enter) var(--ease-out);
                          animation: rowmark 1200ms ease forwards; }
@starting-style { table.board tr.enter td { opacity: 0; transform: translateY(-4px); } }
@keyframes rowmark { from { background-color: rgba(255,179,64,.12); } to { background-color: transparent; } }
.cell table.board { margin-left: 16px; width: calc(100% - 16px); }   /* room for the ▸ marker */

footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: 11px; letter-spacing: .06em; padding: 18px 0; border-top: 1px solid var(--line); margin-top: 1px; }
footer a { color: var(--dim); }

/* hover: mouse only. on a phone a tapped item would otherwise stay lit. */
@media (hover: hover) and (pointer: fine) {
  nav.top a, a, button.go { transition: color 100ms ease, background-color 100ms ease, transform var(--dur-press) var(--ease-out); }
  nav.top a:hover { color: var(--fg); }
  a:hover { text-decoration: underline; }
  footer a:hover, .status a:hover { color: var(--fg); }
  button.go:hover { background: #ffc766; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --dur-enter: 150ms; }
  .err[hidden], table.board tr.enter td { transform: none; }
  @starting-style { table.board tr.enter td { transform: none; } }
}

/* phones: one column, same skin */
@media (max-width: 760px) {
  header.bar { grid-template-columns: 1fr; min-height: 0; padding: 10px 0; row-gap: 8px; }
  .status { justify-content: flex-start; flex-wrap: wrap; }
  .cell.c8, .cell.c4, .cell.c6 { grid-column: span 12; }
  ul.news li { grid-template-columns: 1fr; gap: 2px; }
  button.go { flex: 1 1 100%; }
  h1 { font-size: 22px; }
  .lbl { flex-wrap: wrap; } .lbl .note { flex-basis: 100%; }
}
@media (pointer: coarse) { .prompt input, button.go { font-size: 16px; } .prompt input { padding: 14px 0; } }
