/*
 * Engine.Chess design system.
 *
 * The palette is taken from real tournament equipment rather than from other chess
 * websites: buff and slate-blue vinyl for the board, the blue-grey of an analysis
 * room for the chrome, and the warm amber of a mechanical clock face as the single
 * accent. Notation, clocks and engine data are all set in a monospace face, which
 * is not decoration: it aligns the move list into columns and makes the engine
 * readout legible as instrumentation.
 */

:root {
  /* Chrome */
  --ink: #10151c;
  --surface: #171e27;
  --surface-raised: #1f2833;
  --surface-hover: #273240;
  --line: #2c3948;
  --line-bright: #3c4c5e;

  /* Type */
  --text: #e6e9ee;
  --text-muted: #93a1b2;
  --text-dim: #64748b;

  /* Accent: the amber of a chess clock face */
  --amber: #e0a73c;
  --amber-dim: #8a6a29;

  /* Board: buff and slate-blue tournament vinyl */
  --board-light: #d7d0c0;
  --board-dark: #5d7591;

  /* Board state */
  --square-move: rgba(224, 167, 60, 0.42);
  --square-select: rgba(224, 167, 60, 0.55);
  --square-hint: rgba(33, 194, 164, 0.5);
  --square-premove: rgba(79, 163, 227, 0.45);
  --square-check: rgba(214, 88, 75, 0.85);
  --hint: rgba(16, 21, 28, 0.32);
  --hint-capture: rgba(16, 21, 28, 0.28);

  /* Move quality, ordered from best to worst and kept distinguishable */
  --quality-brilliant: #21c2a4;
  --quality-great: #4fa3e3;
  --quality-best: #7fb069;
  --quality-excellent: #9dbf7a;
  --quality-good: #a8b0a0;
  --quality-book: #9c8f7a;
  --quality-inaccuracy: #e0a73c;
  --quality-mistake: #e8823c;
  --quality-miss: #d6584b;
  --quality-blunder: #d6584b;

  --white-piece: #f4f1ea;
  --black-piece: #1b222c;

  --radius: 6px;
  --radius-lg: 10px;

  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- primitives */

/* Small uppercase labels, borrowed from the headings on a printed scoresheet. */
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--radius);
  background: var(--surface-raised);
  border: 1px solid var(--line-bright);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.12s ease, border-color 0.12s ease;
  white-space: nowrap;
}

.btn:hover:not(:disabled) {
  background: var(--surface-hover);
  border-color: var(--amber-dim);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #14181d;
  font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
  background: #eab654;
  border-color: #eab654;
}

.btn-icon {
  padding: 8px;
  min-width: 34px;
}

.btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* ---------------------------------------------------------------- app frame */

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.brand-mark {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-mark span {
  color: var(--amber);
}

.brand-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.header-actions {
  display: flex;
  gap: 8px;
}

/*
 * The board column is sized as a fraction rather than by its content, because the
 * board's own width is a percentage of it. An auto-sized column would have to
 * measure the board to size itself and size itself to measure the board.
 */
.app-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 18px;
  padding: 18px 20px 24px;
  align-items: start;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
}

/*
 * The evaluation bar sits beside the board only, never beside the player bars,
 * so those are inset by its width. That keeps every edge in the column on one of
 * two vertical lines instead of three.
 */
.board-column {
  --eval-inset: 34px;
  /* Header, both player bars, the control row, the gaps and the page padding.
     Subtracting them is what keeps the whole board on screen without scrolling. */
  --board-chrome: 288px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(max(300px, calc(100dvh - var(--board-chrome) + var(--eval-inset))), 100%);
  min-width: 0;
  margin: 0 auto;
}

.board-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.board-column .player-bar,
.board-controls {
  margin-left: var(--eval-inset);
}

.board-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.side-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 18px;
}

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

.board-frame {
  position: relative;
  flex: 1;
  min-width: 0;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--board-light);
  touch-action: none;
  user-select: none;
}

.board-squares {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
}

.square {
  position: relative;
}

.square.light {
  background: var(--board-light);
}

.square.dark {
  background: var(--board-dark);
}

/*
 * Square states all tint the same overlay, so they are written in order of
 * increasing urgency: whichever applies last wins. A king in check must outrank a
 * selection, which must outrank a queued move, which must outrank the last move.
 */
.square.last-move::after,
.square.hinted::after,
.square.premove::after,
.square.selected::after {
  content: "";
  position: absolute;
  inset: 0;
}

.square.last-move::after {
  background: var(--square-move);
}

.square.hinted::after {
  background: var(--square-hint);
}

.square.premove::after {
  background: var(--square-premove);
}

.square.selected::after {
  background: var(--square-select);
}

/* A checked king gets a radial wash rather than a flat fill, so the piece stays readable. */
.square.in-check::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, var(--square-check) 12%, rgba(214, 88, 75, 0) 72%);
}

/* Coordinates sit in the corners of the edge squares, as they do on a real board. */
.square .coord {
  position: absolute;
  font-family: var(--mono);
  font-size: clamp(8px, 1.15vh, 11px);
  font-weight: 600;
  opacity: 0.7;
  pointer-events: none;
  z-index: 2;
}

.square .coord-rank {
  top: 3px;
  left: 4px;
}

.square .coord-file {
  bottom: 2px;
  right: 4px;
}

.square.light .coord {
  color: var(--board-dark);
}

.square.dark .coord {
  color: var(--board-light);
}

.board-pieces {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.piece {
  position: absolute;
  width: 12.5%;
  height: 12.5%;
  pointer-events: auto;
  cursor: grab;
  z-index: 3;
  will-change: transform;
}

.piece svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4));
}

/*
 * The dragged piece is offset by two custom properties that the pointer handler
 * writes straight onto the board element. Because the offset is a transform and
 * nothing else about the piece changes, the browser can move it without a layout
 * pass and without the renderer being involved at all.
 */
.piece.dragging {
  z-index: 20;
  cursor: grabbing;
  transform: translate(var(--drag-dx, 0), var(--drag-dy, 0)) scale(1.08);
}

.piece.not-yours {
  cursor: default;
}

/* The moved piece slides in from where it came from, which makes the bot's reply readable. */
.piece.sliding {
  animation: slide-in 0.14s cubic-bezier(0.3, 0.9, 0.4, 1);
}

@keyframes slide-in {
  from {
    transform: translate(var(--slide-x), var(--slide-y));
  }
  to {
    transform: translate(0, 0);
  }
}

/* Move hints: a dot for a quiet move, a ring for a capture. */
.hints {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.hint {
  position: absolute;
  width: 12.5%;
  height: 12.5%;
  display: grid;
  place-items: center;
}

.hint::before {
  content: "";
  width: 30%;
  height: 30%;
  border-radius: 50%;
  background: var(--hint);
}

.hint.capture::before {
  width: 88%;
  height: 88%;
  background: none;
  border: 5px solid var(--hint-capture);
}

/* ---------------------------------------------------------------- player bar */

.player-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #10151c;
  flex-shrink: 0;
}

.player-identity {
  min-width: 0;
  flex: 1;
}

.player-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.player-rating {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
}

/* Captured material, shown as a compact strip under the name like a scoresheet tally. */
.captured {
  display: flex;
  align-items: center;
  gap: 1px;
  height: 15px;
  margin-top: 1px;
}

.captured svg {
  width: 15px;
  height: 15px;
  opacity: 0.62;
  margin-right: -5px;
}

.captured .lead {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 8px;
}

.clock {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 5px 11px;
  border-radius: var(--radius);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.clock.running {
  background: var(--amber);
  border-color: var(--amber);
  color: #14181d;
}

.clock.low {
  background: var(--quality-blunder);
  border-color: var(--quality-blunder);
  color: #fff;
}

.thinking {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.thinking i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
  animation: blink 1.1s infinite;
}

.thinking i:nth-child(2) {
  animation-delay: 0.18s;
}

.thinking i:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes blink {
  0%, 60%, 100% { opacity: 0.25; }
  30% { opacity: 1; }
}

/* ---------------------------------------------------------------- evaluation bar */

.eval-bar {
  position: relative;
  width: 26px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black-piece);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.eval-white {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white-piece);
  transition: height 0.35s cubic-bezier(0.3, 0.9, 0.4, 1);
}

.eval-midline {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--amber);
  opacity: 0.5;
}

.eval-readout {
  position: absolute;
  left: 0;
  right: 0;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  padding: 3px 0;
  letter-spacing: -0.02em;
}

.eval-readout.top {
  top: 0;
  color: var(--white-piece);
}

.eval-readout.bottom {
  bottom: 0;
  color: var(--black-piece);
}

/* ---------------------------------------------------------------- move list */

.moves-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
}

.moves-scroll {
  overflow-y: auto;
  max-height: 44vh;
  min-height: 128px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-bright) transparent;
}

.moves-empty {
  padding: 22px 14px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

/* Three columns: move number, white's move, black's move. A grid keeps the
   notation aligned no matter how long any single move is. */
.move-row {
  display: grid;
  grid-template-columns: 40px 1fr 1fr;
  align-items: stretch;
  border-bottom: 1px solid rgba(44, 57, 72, 0.4);
}

.move-number {
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(16, 21, 28, 0.3);
}

.move-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  transition: background 0.1s ease;
  min-width: 0;
}

.move-cell:hover:not(:disabled) {
  background: var(--surface-hover);
}

.move-cell.current {
  background: var(--surface-raised);
  box-shadow: inset 2px 0 0 var(--amber);
}

.move-cell.empty {
  cursor: default;
}

.quality-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 3px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------- engine readout */

/*
 * The signature element. Most chess interfaces hide the engine behind a spinner;
 * this one shows what it is doing, because a hand-written engine is the point of
 * the project. Everything here is live search output, not a progress animation.
 */
.telemetry {
  padding: 11px 13px;
  font-family: var(--mono);
  font-size: 11.5px;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 9px 0;
}

.telemetry-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.telemetry-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.telemetry-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.telemetry-line {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  line-height: 1.55;
  word-break: break-word;
}

.telemetry-line .eyebrow {
  display: block;
  margin-bottom: 3px;
}

.telemetry-idle {
  color: var(--text-dim);
}

/* ---------------------------------------------------------------- overlays */

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(9, 13, 18, 0.72);
  backdrop-filter: blur(3px);
  z-index: 30;
  padding: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
  max-width: 100%;
  text-align: center;
}

.card h2 {
  font-size: 20px;
  font-weight: 650;
  margin-bottom: 4px;
}

.card p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 16px;
}

.card-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Promotion picker: the four choices stacked over the promotion square. */
.promotion {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.promotion button {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  transition: background 0.1s ease;
}

.promotion button:hover {
  background: var(--amber);
}

.promotion svg {
  width: 46px;
  height: 46px;
}

/* ---------------------------------------------------------------- opponent picker */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 18, 0.8);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 20px;
  overflow-y: auto;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: min(560px, 100%);
  overflow: hidden;
}

.modal-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  font-size: 17px;
  font-weight: 650;
}

.modal-head p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-body {
  padding: 14px 18px 18px;
}

.bot-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bot-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.bot-option:hover {
  background: var(--surface-hover);
}

.bot-option.selected {
  border-color: var(--amber);
  background: var(--surface-hover);
}

.bot-meta {
  min-width: 0;
  flex: 1;
}

.bot-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.bot-elo {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  font-weight: 600;
}

.bot-style {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 1px;
}

.field {
  margin-top: 16px;
}

.field .eyebrow {
  display: block;
  margin-bottom: 6px;
}

.segmented {
  display: flex;
  gap: 6px;
}

.segmented button {
  flex: 1;
  padding: 9px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-raised);
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.segmented button:hover {
  background: var(--surface-hover);
}

.segmented button.active {
  border-color: var(--amber);
  background: var(--amber);
  color: #14181d;
  font-weight: 600;
}

/* ---------------------------------------------------------------- game review */

.review-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px 13px;
  border-bottom: 1px solid var(--line);
}

.accuracy {
  text-align: center;
}

.accuracy-value {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.accuracy-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 2px;
}

.accuracy-divider {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.quality-table {
  padding: 6px 13px 12px;
}

.quality-row {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: 12.5px;
}

.quality-row .count {
  font-family: var(--mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.quality-row .name {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
}

.quality-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.progress {
  height: 3px;
  background: var(--surface-raised);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-fill {
  height: 100%;
  background: var(--amber);
  transition: width 0.2s ease;
}

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

@media (max-width: 1180px) {
  .app-body {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .side-column {
    position: static;
    max-width: 640px;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .app-body {
    padding: 12px;
    gap: 12px;
  }

  /* On a narrow screen the bar reads better lying under the board than beside it. */
  .board-column {
    --eval-inset: 0px;
    width: 100%;
  }

  .board-row {
    flex-direction: column-reverse;
  }

  .eval-bar {
    height: 22px;
    width: 100%;
  }

  .eval-white {
    top: 0;
    bottom: 0;
    right: auto;
    height: 100% !important;
    transition: width 0.35s cubic-bezier(0.3, 0.9, 0.4, 1);
  }

  .eval-midline {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 1px;
    height: auto;
  }

  .eval-readout {
    display: none;
  }

  .app-header {
    padding: 10px 12px;
  }

  .moves-scroll {
    max-height: 30vh;
  }
}

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

/* ---------------------------------------------------------------- boot + errors */

.loading {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background: var(--ink);
}

.loading-mark {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--text);
}

.loading-mark span {
  color: var(--amber);
}

.loading-track {
  width: 180px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.loading-track::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--blazor-load-percentage, 0%);
  background: var(--amber);
  transition: width 0.2s ease;
}

.loading-pct {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.loading-pct::after {
  content: var(--blazor-load-percentage-text, "Loading");
}

#blazor-error-ui {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--quality-blunder);
  color: #fff;
  font-size: 13px;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  float: right;
  padding: 0 6px;
}

#blazor-error-ui .reload {
  color: #fff;
  text-decoration: underline;
}
