/* The eval graph under a chess game's board (chess-graph.js): White's share after each ply, white
   above the midline and black below, on a grey between the two; lined up with the board, under it */
.cgg { position: relative; height: 80px; margin: 6px 0 0 32px; background: #b9b3a8; border: 1px solid #1A1410; cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.cgg > svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.cgg-top { overflow: visible; }
.cgg-w { fill: #fff; }
.cgg-b { fill: #1A1410; }
.cgg-mid { stroke: rgba(26, 20, 16, .45); stroke-width: 1; }
.cgg-hov { stroke: rgba(179, 58, 48, .5); stroke-width: 1; }
.cgg-at { stroke: #B33A30; stroke-width: 2; }
/* Mistakes, in the move list's glyph colours (chess-game.css) */
.cgg circle { stroke: #fff; stroke-width: 1; }
.cgg-inacc { fill: #2f7fb8; }
.cgg-mistake { fill: #c27c00; }
.cgg-blunder { fill: #c0392b; }
/* The viewer's own line shown: the game's graph steps back */
.cgg-dim .cgg-area, .cgg-dim circle { opacity: .35; }
/* Hovering: the move and its eval, over the graph */
.cgg-tip { position: absolute; bottom: calc(100% + 4px); z-index: 2; padding: 2px 7px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 4px; font: 600 13px/1.3 var(--body); white-space: nowrap; color: var(--ink); pointer-events: none; }
.cgg-tev { margin-left: 8px; font-variant-numeric: tabular-nums; color: var(--muted); }
.cgg-tev:empty { display: none; }

@media (max-width: 760px) {
  .cgg { height: 60px; }
}
