/* TarkovTracker - field instrument panel
   Gunmetal plates, stencilled condensed type, hairline rules, tabular readouts.
   Violet is the brand signal and is spent sparingly; amber carries heat. */

:root {
  --void: #0a0b0f;
  --plate: #13151c;
  --plate-hi: #191c25;
  --etch: #232733;
  --etch-hi: #333949;

  --signal: #8b5cf6;
  --signal-dim: rgba(139, 92, 246, 0.14);
  --ember: #f59e0b;
  --ember-dim: rgba(245, 158, 11, 0.14);
  --danger: #ef4444;
  --live: #22c55e;

  --bone: #e8e6e3;
  --ash: #868c9b;
  --ash-dim: #5b6070;

  --display: 'Barlow Condensed', 'Oswald', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --data: ui-monospace, 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --rule: 1px solid var(--etch);
  --pad: clamp(1rem, 2.5vw, 1.75rem);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  background: var(--void);
  color: var(--bone);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.55;
  /* Faint grid, like backlit instrument glass. Fixed so it reads as a surface
     the content sits on rather than something scrolling with it. */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 64px 64px;
  background-attachment: fixed;
}

/* Legacy hook kept so readme.html keeps its ambient wash. */
.glow-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 40% at 50% 0%, rgba(139, 92, 246, 0.07), transparent 70%);
  z-index: 0;
}

/* ---------------------------------------------------------------- masthead */

.masthead {
  position: relative;
  z-index: 1;
  border-bottom: var(--rule);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.05), transparent);
}

.masthead__bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.wordmark__badge {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--signal);
  border-radius: 3px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--signal);
  background: var(--signal-dim);
  flex-shrink: 0;
}

.wordmark__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.wordmark__name {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.wordmark__sub {
  font-family: var(--data);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash-dim);
}

/* Live status strip - the instrument-panel tell. */
.status-strip {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--data);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
}

.status-strip__item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.status-strip__item b {
  color: var(--bone);
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ash-dim);
  flex-shrink: 0;
}

.status-dot.is-live {
  background: var(--live);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
  animation: pulse 2.6s ease-in-out infinite;
}

.status-dot.is-down {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

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

/* --------------------------------------------------------------- hero copy */

.intro {
  position: relative;
  z-index: 1;
  overflow: hidden;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.25rem) var(--pad) clamp(1.5rem, 3vw, 2rem);
  border-bottom: var(--rule);
}

/* Hero art. Sits behind the copy in the space right of the headline. The source
   PNG is already cut out with a dusty edge, so the work here is dissolving the
   remaining boundary into the page rather than letting it read as a pasted
   rectangle: a mask fades the bottom and right, and a violet wash behind it ties
   the artwork to the palette instead of leaving it a grey island. */
.intro__art {
  position: absolute;
  right: clamp(0px, 2vw, 2.5rem);
  /* Lifted off the bottom rule so the figure sits within the block rather than
     resting on the divider above the stat rail. */
  bottom: 2.25rem;
  width: clamp(320px, 34vw, 520px);
  height: auto;
  z-index: 0;
  /* This artwork's smoke is genuinely dark (mean luminance 71/255), unlike the
     earlier near-white spray that needed heavy dimming to stop it reading as a
     halo. Only a light touch is wanted here; dimming it further would bury it
     against the background. */
  opacity: 0.92;
  filter: contrast(1.04) saturate(0.95);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  /* Light edge feather only. The smoke already dissolves on its own, so an
     aggressive mask would crop the figure rather than blend it. */
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%),
    linear-gradient(270deg, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 80%, transparent 100%),
    linear-gradient(270deg, #000 86%, transparent 100%);
  mask-composite: intersect;
}

/* Wash behind the figure, so it emerges from the page rather than floating. */
.intro::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(620px, 46%);
  height: 100%;
  background: radial-gradient(60% 55% at 62% 62%, rgba(139, 92, 246, 0.13), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Keep the copy above both. */
.intro > *:not(.intro__art) {
  position: relative;
  z-index: 1;
}

.intro__eyebrow {
  font-family: var(--data);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 0.85rem;
}

.intro h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  max-width: 20ch;
}

.intro p {
  margin: 0;
  max-width: 56ch;
  color: var(--ash);
  font-size: 1.02rem;
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.65rem;
}

/* ----------------------------------------------------------------- buttons */

.pill {
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  padding: 0.6rem 1.05rem;
  border-radius: 3px;
  border: 1px solid var(--etch-hi);
  background: var(--plate);
  color: var(--bone);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pill:hover {
  border-color: var(--ash-dim);
  background: var(--plate-hi);
}

.pill.primary {
  background: var(--signal);
  border-color: var(--signal);
  color: #0c0716;
  font-weight: 650;
}

.pill.primary:hover {
  background: #9d75f8;
  border-color: #9d75f8;
}

.pill.secondary {
  border-color: var(--signal);
  color: #c4a9fb;
  background: var(--signal-dim);
}

.pill.secondary:hover {
  background: rgba(139, 92, 246, 0.22);
}

.pill.support {
  border-color: rgba(245, 158, 11, 0.45);
  color: #f7c667;
  background: var(--ember-dim);
}

.pill.support:hover {
  background: rgba(245, 158, 11, 0.2);
}

.pill.tiny {
  font-size: 0.7rem;
  padding: 0.32rem 0.62rem;
  font-family: var(--data);
  letter-spacing: 0.05em;
}

.pill.ghost {
  background: transparent;
  border-color: var(--etch);
  color: var(--ash);
}

.pill:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

/* --------------------------------------------------------------- stat rail */

.rail {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: var(--rule);
}

.readout {
  padding: 1.35rem 0.5rem 1.4rem;
  border-right: var(--rule);
}

.readout:first-child { padding-left: 0; }
.readout:last-child { border-right: none; }

.readout__label {
  font-family: var(--data);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash-dim);
  margin: 0 0 0.5rem;
}

.readout__value {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.readout__note {
  font-family: var(--data);
  font-size: 0.68rem;
  color: var(--ash);
  margin-top: 0.35rem;
  display: block;
}

/* ------------------------------------------------------------------ layout */

main {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: var(--pad);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--pad);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: var(--pad);
}

/* ------------------------------------------------------------------ panels */

.panel {
  background: var(--plate);
  border: var(--rule);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.panel__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  border-bottom: var(--rule);
}

.panel__header h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.tag {
  font-family: var(--data);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ash-dim);
  white-space: nowrap;
}

.panel__body {
  padding: 0.35rem 0;
  flex: 1;
}

/* ------------------------------------------------------------ ranked lists */

.panel ol,
.panel ul.plain {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  counter-reset: rank;
}

.panel ol li,
.panel ul.plain li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
  border-left: 2px solid transparent;
}

.panel ol li:nth-child(odd),
.panel ul.plain li:nth-child(odd) {
  background: rgba(255, 255, 255, 0.015);
}

.panel ol li:nth-child(1) { border-left-color: var(--ember); }
.panel ol li:nth-child(2) { border-left-color: rgba(245, 158, 11, 0.45); }
.panel ol li:nth-child(3) { border-left-color: rgba(245, 158, 11, 0.2); }

.panel ol li span:first-child {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  min-width: 0;
  /* Discord names run long ("71BKK'S audios and bypassed audios"); clip rather
     than letting a single entry widen the whole column. */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.panel ol li strong {
  font-family: var(--data);
  font-size: 0.72rem;
  color: var(--ash-dim);
  font-weight: 500;
  flex-shrink: 0;
}

.panel ol li span:last-child {
  font-family: var(--data);
  font-variant-numeric: tabular-nums;
  color: var(--ember);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.list-empty {
  padding: 2rem 1.1rem;
  text-align: center;
  color: var(--ash-dim);
  font-family: var(--data);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------- threat gauge (24h TK) */

.gauge {
  padding: 1.5rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  flex: 1;
  justify-content: center;
}

.gauge__value {
  font-family: var(--display);
  font-size: clamp(3.4rem, 9vw, 4.75rem);
  font-weight: 700;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.gauge__unit {
  font-family: var(--data);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash-dim);
  margin: 0;
}

/* Segmented bar reads as instrumentation and centres cleanly, unlike the
   off-centre ring it replaces. */
.gauge__segments {
  display: flex;
  gap: 3px;
  width: 100%;
  max-width: 320px;
}

.gauge__seg {
  flex: 1;
  height: 9px;
  border-radius: 1px;
  background: var(--etch);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.gauge__seg.on {
  background: var(--level, var(--live));
  box-shadow: 0 0 8px -1px var(--level, var(--live));
}

.gauge__level {
  font-family: var(--data);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--level, var(--live));
  margin: 0;
}

.gauge__quote {
  font-size: 0.86rem;
  color: var(--ash);
  margin: 0;
  max-width: 34ch;
  font-style: italic;
}

.gauge__avg {
  font-family: var(--data);
  font-size: 0.68rem;
  color: var(--ash-dim);
  margin: 0;
}

/* ------------------------------------------------- latest team kills table */

.tk-list {
  display: flex;
  flex-direction: column;
}

.tk-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 4.5rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 1.1rem;
  border-bottom: 1px solid rgba(35, 39, 51, 0.55);
}

.tk-row:last-child { border-bottom: none; }
.tk-row:nth-child(odd) { background: rgba(255, 255, 255, 0.015); }

.tk-row__killer,
.tk-row__victim {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
}

.tk-row__killer {
  text-align: right;
  color: var(--bone);
  font-weight: 550;
}

.tk-row__victim {
  text-align: left;
  color: var(--ash);
}

.tk-row__arrow {
  font-family: var(--data);
  color: var(--danger);
  font-size: 0.9rem;
  text-align: center;
}

.tk-row.is-self .tk-row__arrow { color: var(--ember); }
.tk-row.is-self .tk-row__victim { font-style: italic; }

.tk-row__time {
  font-family: var(--data);
  font-size: 0.68rem;
  color: var(--ash-dim);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tk-row__server {
  grid-column: 1 / -1;
  font-family: var(--data);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash-dim);
  margin-bottom: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- grudges */

.grudge-list {
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0;
}

.grudge {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 1.1rem;
  border-bottom: 1px solid rgba(35, 39, 51, 0.45);
}

.grudge:last-child { border-bottom: none; }
.grudge:nth-child(odd) { background: rgba(255, 255, 255, 0.015); }

.grudge__rank {
  font-family: var(--data);
  font-size: 0.7rem;
  color: var(--ash-dim);
}

.grudge__pair {
  min-width: 0;
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grudge__pair b { font-weight: 600; }
.grudge__pair span { color: var(--danger); margin: 0 0.35rem; }
.grudge__pair i { color: var(--ash); font-style: normal; }

.grudge__count {
  font-family: var(--data);
  font-size: 0.78rem;
  color: var(--ember);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ----------------------------------------------------------- net offenders */

/* Positive net is the interesting end, so it gets the accent; negative net
   means someone dies more than they offend, which deserves sympathy not blame. */
.net-list li span:last-child { color: var(--ember); }
.net-list li.is-negative span:last-child { color: var(--live); }
.net-list li.is-zero span:last-child { color: var(--ash); }

.net-detail {
  font-family: var(--data);
  font-size: 0.66rem;
  color: var(--ash-dim);
  margin-left: 0.45rem;
}

/* -------------------------------------------------- hour-of-day heat strip
 * Replaces a world map that plotted servers by Discord locale. en-US is the
 * platform default, so that map put almost every server on one dot and said
 * nothing. When a squad turns on itself is a real question with real data.
 * ------------------------------------------------------------------------- */

.heat {
  padding: 1.35rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.heat__grid {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 3px;
}

.heat__cell {
  aspect-ratio: 1 / 2.2;
  border-radius: 2px;
  background: var(--etch);
  position: relative;
}

.heat__cell[data-level='0'] { background: #191c25; }
.heat__cell[data-level='1'] { background: rgba(139, 92, 246, 0.35); }
.heat__cell[data-level='2'] { background: rgba(139, 92, 246, 0.6); }
.heat__cell[data-level='3'] { background: var(--signal); }
.heat__cell[data-level='4'] {
  background: var(--ember);
  box-shadow: 0 0 10px -2px var(--ember);
}

.heat__axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--data);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--ash-dim);
}

.facts {
  margin: 0.6rem 0 0;
  padding-top: 0.85rem;
  border-top: var(--rule);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
}

.facts dt {
  font-family: var(--data);
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ash-dim);
}

.facts dd {
  margin: 0;
  text-align: right;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.facts dd b {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------- server roster */

.roster {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  max-height: 340px;
  overflow-y: auto;
}

.roster li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.62rem 1.1rem;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(35, 39, 51, 0.45);
}

.roster li:last-child { border-bottom: none; }

.roster__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.roster__meta {
  font-family: var(--data);
  font-size: 0.7rem;
  color: var(--ash-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

.roster__meta b {
  color: var(--ember);
  font-weight: 600;
}

/* ------------------------------------------------------- incidents banner */

.incidents-banner {
  border: var(--rule);
  border-radius: 4px;
  background: var(--plate);
  overflow: hidden;
}

.banner__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.8rem 1.1rem;
  border-bottom: var(--rule);
}

.banner__header h3 {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.banner__scroll {
  overflow: hidden;
  position: relative;
  /* Fade the marquee at both edges so items enter and leave rather than
     appearing to be clipped mid-word. */
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.banner__track {
  display: flex;
  gap: 2.25rem;
  padding: 0.75rem 1.1rem;
  white-space: nowrap;
  width: max-content;
}

.banner-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.banner-server {
  font-family: var(--data);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash-dim);
}

.banner-separator { color: var(--etch-hi); }
.banner-killer { color: var(--bone); font-weight: 550; }
.banner-arrow { color: var(--danger); }
.banner-victim { color: var(--ash); }
.banner-time { font-family: var(--data); font-size: 0.66rem; color: var(--ash-dim); }
.banner-empty {
  padding: 0.85rem 1.1rem;
  color: var(--ash-dim);
  font-family: var(--data);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ------------------------------------------------------------------ footer */

footer {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem var(--pad) 3rem;
  border-top: var(--rule);
  color: var(--ash-dim);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

footer a { color: var(--ash); }

.footer__meta {
  font-family: var(--data);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ------------------------------------------------------- loading / errors */

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 15, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.loading-spinner {
  text-align: center;
  font-family: var(--data);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
}

.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 1rem;
  border: 2px solid var(--etch);
  border-top-color: var(--signal);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error-banner {
  position: relative;
  z-index: 2;
  background: rgba(239, 68, 68, 0.1);
  border-bottom: 1px solid rgba(239, 68, 68, 0.35);
  padding: 0.85rem var(--pad);
}

.error-content {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.error-content strong {
  font-family: var(--data);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fca5a5;
}

.error-content p { margin: 0; color: var(--ash); }

/* -------------------------------------------------------------- readme page */

.readme-page {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--pad);
}

.readme-card {
  background: var(--plate);
  border: var(--rule);
  border-radius: 4px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.readme-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: var(--rule);
}

.readme-header h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0.3rem 0;
}

.readme-actions {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.readme-card h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: var(--rule);
}

.readme-card code {
  font-family: var(--data);
  font-size: 0.85em;
  background: var(--void);
  border: 1px solid var(--etch);
  border-radius: 3px;
  padding: 0.1em 0.4em;
  color: #c4a9fb;
}

.readme-card a { color: #c4a9fb; }
.readme-card li { margin-bottom: 0.4rem; }

.uptime {
  font-family: var(--data);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0;
}

.subtitle {
  color: var(--ash);
  margin: 0.5rem 0 0;
  max-width: 56ch;
}

.gradient-red { color: var(--danger); }
.gradient-green { color: var(--live); }

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

@media (max-width: 1100px) {
  /* Below this the text column reflows to full width and the art would sit
     underneath the headline. It is decorative, so drop it. */
  .intro__art,
  .intro::before { display: none; }
}

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .rail { grid-template-columns: repeat(2, 1fr); }
  .readout { border-right: none; padding-left: 0; }
  .readout:nth-child(odd) { border-right: var(--rule); }
  .rail .readout { padding-left: 0.75rem; }
  .rail .readout:nth-child(odd) { padding-left: 0; }
}

@media (max-width: 620px) {
  .masthead__bar { gap: 0.85rem; }
  .status-strip { gap: 0.9rem; font-size: 0.64rem; }
  .tk-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .tk-row__time { grid-column: 1 / -1; text-align: left; margin-top: 0.2rem; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .banner__track { animation: none !important; }
}
