.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0 0 0 0);
  border: 0;
}

.historyEmpty {
  margin: 10px 0 0;
  padding: 14px 12px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--porcelain);
  font-size: 11px;
}

.historyToggle {
  padding: 6px 12px;
  color: var(--game-ivory);
  border: 1px solid var(--glass-line);
  border-radius: var(--control-radius);
  background: rgba(10, 14, 20, .6);
  font-family: var(--utility);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.historyPanel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 300;
  width: min(300px, calc(100vw - 32px));
  max-height: min(60vh, 420px);
  overflow: auto;
  padding: 12px 14px;
  color: var(--game-ivory);
  border: 1px solid var(--glass-line);
  border-radius: var(--game-radius-md);
  background: var(--glass-bg-solid);
  box-shadow: var(--game-shadow);
}

.historyPanel[hidden] { display: none; }

.historyCloseBtn {
  position: absolute;
  top: 4px;
  right: 8px;
  padding: 2px 8px;
  color: var(--game-muted);
  border: 0;
  background: none;
  font-size: 18px;
  line-height: 1;
}

.historyRows {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
}

.historyRow {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--game-line);
}

.historyRow:last-child { border-bottom: 0; }
.historyRow .historyCls { flex: 0 0 14px; }
.historyRow b {
  flex: 1 1 auto;
  overflow: hidden;
  font-size: 10px;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.historyRow .historyMult {
  color: var(--game-gold-light);
  font-variant-numeric: tabular-nums;
}

.historyRow.tone-win .historyNet { color: var(--emerald); font-weight: 800; }
.historyRow.tone-loss .historyNet { color: var(--ruby); font-weight: 800; }
.historyRow.tone-neutral .historyNet { color: var(--muted); font-weight: 700; }

.historyEmpty {
  margin: 8px 0 0;
  padding: 10px;
  color: var(--muted);
  border: 1px dashed var(--game-line);
  border-radius: 8px;
  font-size: 11px;
}
