
.hboard {
  --lt-ink: var(--fp-ink, var(--text));
  --lt-muted: var(--fp-muted, var(--muted));
  --lt-faint: var(--fp-faint, var(--muted));
  --lt-gold: var(--fp-gold, var(--gold));
  --lt-gold-lit: var(--fp-gold-lit, var(--gold-bright));
  --lt-gold-8: var(--fp-gold-8, rgba(201, 169, 97, 0.08));
  --lt-line: var(--fp-line, var(--line));
  --lt-line-soft: var(--fp-line-soft, var(--line-soft));
  --lt-panel: var(--fp-panel, var(--panel));
  --lt-glow: var(--fp-glow, var(--glow-gold-soft));
  --lt-hit: var(--fp-hit, #79d45c);
  --lt-mono: var(--font-mono, var(--mono));
  --lt-ui: var(--font-ui, var(--ui));
}
.hboard {
  position: relative; display: grid; align-content: start;
  padding: 18px 20px 14px; border-radius: 18px;
  border: 1px solid var(--lt-line);
  background: radial-gradient(120% 60% at 50% 0%, var(--lt-gold-8), transparent 70%), var(--lt-panel);
  box-shadow: var(--lt-glow);
}
.hboard__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hboard__h { display: inline-flex; align-items: center; gap: 9px; font: 600 12px/1.3 var(--lt-ui); letter-spacing: 0.22em; text-transform: uppercase; color: var(--lt-gold); }
.hboard__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lt-hit); box-shadow: 0 0 10px var(--lt-hit); }
.hboard__asof { font: 500 11.5px/1.3 var(--lt-mono); color: var(--lt-faint); }
.hboard__cols,
.hboard__row { display: grid; grid-template-columns: minmax(0, 1fr) 92px 72px 66px; align-items: center; gap: 10px; }
.hboard__cols { margin-top: 14px; padding: 0 2px 8px; white-space: nowrap; border-bottom: 1px solid var(--lt-line-soft); font: 600 10.5px/1 var(--lt-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--lt-faint); }
.hboard__cols span:nth-child(n+2) { text-align: right; }
.hboard__rows { margin: 0; padding: 0; list-style: none; }
.hboard__row { height: 52px; padding: 0 2px; border-bottom: 1px solid var(--lt-line-soft); }
.hboard__row--empty::before { content: ""; grid-column: 1 / -1; height: 12px; border-radius: 6px; background: var(--lt-line-soft); opacity: 0.6; }
.hboard__none { display: grid; align-content: center; min-height: 52px; padding: 12px 2px; font: 500 13.5px/1.45 var(--lt-ui); color: var(--lt-muted); }

.hboard__row--hist { height: 68px; }
.hboard__hist { display: flex; align-items: flex-end; gap: 8px; min-height: 16px; }
.hboard__bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.hboard__bar { display: block; width: 7px; border-radius: 2px; background: var(--lt-line); }
.hboard__bar--over { background: var(--lt-hit); }
.hboard__bar--push { background: transparent; box-shadow: inset 0 0 0 1px var(--lt-faint); }
.hboard__histtext { font: 600 11.5px/1 var(--lt-mono); font-variant-numeric: tabular-nums; color: var(--lt-muted); white-space: nowrap; }
.hboard__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hboard__face { flex: none; display: grid; place-items: center; width: 34px; height: 34px; overflow: hidden; border-radius: 50%; background: var(--lt-line-soft); box-shadow: 0 0 0 1px var(--lt-line); }
.hboard__face > * { width: 100%; height: 100%; }
.hboard__id { display: grid; gap: 3px; min-width: 0; }
.hboard__name,
.hboard__mkt { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hboard__name { font: 600 14.5px/1.15 var(--lt-ui); color: var(--lt-ink); }
.hboard__mkt { font: 500 12px/1.2 var(--lt-ui); color: var(--lt-muted); }
.hboard__sport { margin-right: 6px; font: 700 10px/1 var(--lt-ui); letter-spacing: 0.08em; color: var(--lt-gold); }
.hboard__pick,
.hboard__price,
.hboard__edge { text-align: right; font: 600 13.5px/1.2 var(--lt-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hboard__pick { color: var(--lt-ink); }
.hboard__price { display: grid; gap: 3px; color: var(--lt-ink); }
.hboard__book { overflow: hidden; text-overflow: ellipsis; font: 500 11px/1 var(--lt-ui); color: var(--lt-faint); }
.hboard__edge { color: var(--lt-hit); }
.hboard__edgek { display: none; }
.hboard__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; }
.hboard__go { display: inline-flex; align-items: center; gap: 6px; font: 600 13.5px/1.3 var(--lt-ui); color: var(--lt-gold-lit); text-decoration: none; }
.hboard__go:hover { text-decoration: underline; text-underline-offset: 3px; }
.hboard__go--quiet { color: var(--lt-muted); }
.hboard__go:focus-visible { outline: 2px solid var(--lt-gold); outline-offset: 3px; border-radius: 4px; }



@media (max-width: 520px) {
  .hboard { padding: 14px 12px 12px; }
  .hboard__cols { grid-template-columns: minmax(0, 1fr) auto 54px; gap: 8px; font-size: 9.5px; letter-spacing: 0.06em; }
  .hboard__cols span:nth-child(3) { display: none; }
  .hboard__row { grid-template-columns: minmax(0, 1fr) auto 54px; grid-template-areas: "who pick edge" "who price edge"; gap: 2px 8px; height: 56px; align-content: center; }
  .hboard__who { grid-area: who; gap: 8px; }
  .hboard__pick { grid-area: pick; font-size: 12.5px; }
  .hboard__price { grid-area: price; display: flex; justify-content: flex-end; gap: 5px; font-size: 11.5px; color: var(--lt-muted); }
  .hboard__price .hboard__book { font-size: 11px; line-height: 1.2; }
  .hboard__edge { grid-area: edge; font-size: 12.5px; }
  .hboard__face { width: 30px; height: 30px; }
  
  .hboard__row { height: auto; min-height: 56px; padding-top: 6px; padding-bottom: 6px; }
  .hboard__row--hist { min-height: 78px; }
  .hboard__name,
  .hboard__mkt { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; }
  .hboard__name { font-size: 14px; }
}

@media (max-width: 400px) {
  .hboard__face { display: none; }
  .hboard__cols { grid-template-columns: minmax(0, 1fr) auto; }
  .hboard__cols span:nth-child(n+3) { display: none; }
  .hboard__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who pick" "who price" "who edge"; }
  .hboard__edge { font-size: 11.5px; }
  .hboard__edgek { display: inline; font: 500 11px/1 var(--lt-ui); color: var(--lt-muted); }
}
