/**
 * Link quality — plain footer text next to "world map".
 * NEVER fixed / floating / inside moves rail.
 *
 * DOM: footer#chess-page-footer > p.chess-mini-foot__line > #chess-net-rtt
 */

/* Kill any legacy floating chip rules */
.chess-net-rtt,
#chess-net-rtt,
body.chess-page .chess-net-rtt,
body.chess-page #chess-net-rtt,
body.chess-page .chess-mini-foot__linkq,
body.chess-page #chess-page-footer #chess-net-rtt {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  inset: auto !important;
  z-index: auto !important;
  float: none !important;
  transform: none !important;
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font: inherit !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  color: #6a9a7a;
  pointer-events: none;
  white-space: nowrap;
  max-width: none !important;
}

body.chess-page #chess-net-rtt[hidden],
body.chess-page .chess-mini-foot__linkq[hidden] {
  display: none !important;
}

/* Quality tiers — text color only (still in footer flow) */
body.chess-page #chess-net-rtt.is-fast,
body.chess-page .chess-mini-foot__linkq.is-fast {
  color: #69f0ae !important;
}
body.chess-page #chess-net-rtt.is-ok,
body.chess-page .chess-mini-foot__linkq.is-ok {
  color: #d4e07a !important;
}
body.chess-page #chess-net-rtt.is-slow,
body.chess-page .chess-mini-foot__linkq.is-slow {
  color: #ff8a80 !important;
}
body.chess-page #chess-net-rtt.is-idle,
body.chess-page .chess-mini-foot__linkq.is-idle {
  color: #5a7a62 !important;
}

/* Footer line layout */
body.chess-page .chess-mini-foot__line {
  margin: 0;
  padding: 0;
  text-align: center;
  line-height: 1.45;
}
body.chess-page .chess-mini-foot__sep {
  margin: 0 0.35em;
  opacity: 0.55;
}

/* If an old status node is left in the moves rail, force-hide it */
body.chess-page #controls-panel-module #chess-net-status,
body.chess-page .match-actions #chess-net-status,
body.chess-page #chess-net-status.match-actions__status {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: none !important;
}
