/* The booth's on-air panels (panels.js builds their HTML): the pull-up cards and the move-orders map, the "On screen"
   stat graphic, the insight chips and the viewers' vote bars. Shared by index.html and harness.html; colours come from
   the page's tokens (--panel, --ink, --muted, --line, --chip, --accent; --shadow has a fallback).
   The pull-up is position:absolute and sized from its positioned parent (in the booth, .stage over the live board). */

/* broadcast pull-up cards — fully invisible when away (no peeking border) */
.pullup { position: absolute; left: 3%; right: 3%; bottom: 3%; z-index: 20; visibility: hidden; opacity: 0;
          transform: translateY(40px); transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .3s, visibility 0s .4s;
          background: var(--panel); border: 1px solid var(--accent); border-radius: 10px;
          padding: 14px 16px 10px; box-shadow: 0 -10px 30px var(--shadow, rgba(0,0,0,.55)); }
.pullup.on { visibility: visible; opacity: .97; transform: translateY(0); transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.pullup .pt { font-weight: 750; font-size: 16px; color: var(--accent); margin-bottom: 8px; }
.pullup .teams { display: grid; grid-template-columns: 1fr 120px 1fr; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.pullup .teams span:last-child { text-align: right; }
.pullup .cmp { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; gap: 8px; margin: 5px 0; }
.pullup .cmp .lab { text-align: center; font-size: 13px; }
.pullup .bw, .pullup .bb { height: 16px; background: var(--chip); border-radius: 3px; position: relative; overflow: hidden; }
.pullup .bw .f { position: absolute; right: 0; top: 0; bottom: 0; background: #e9e9e9; border: 1px solid #8a8f96; border-radius: 3px; }
.pullup .bb .f { position: absolute; left: 0; top: 0; bottom: 0; background: #59636f; }
.pullup .v { position: absolute; top: 0; line-height: 16px; font-size: 11.5px; font-weight: 700; }
.pullup .bw .v { right: 5px; color: #111; } .pullup .bb .v { left: 5px; color: #fff; }
.pullup ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.45; }
.pullup .ps { color: var(--muted); font-size: 11.5px; margin-top: 8px; }
/* move orders (transpositions): positions are nodes, so orders that meet are drawn meeting */
.pullup.routes { max-height: 94%; overflow-y: auto; }
.rgraph { width: 100%; height: auto; display: block; }
.rgraph .lbl { font: 600 12px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; fill: var(--ink);
               paint-order: stroke; stroke: var(--panel); stroke-width: 4px; stroke-linejoin: round; }
.rgraph .sub { font-size: 11px; font-weight: 500; fill: var(--muted); }
.rlist { margin-top: 6px; display: grid; gap: 4px; font-size: 13px; }
.rlist .r { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.rlist .r b { font-variant-numeric: tabular-nums; text-align: right; }
/* a page's own .mv (harness.html: a playable move) must not restyle these: the list's moves are plain text */
.rlist .mv { color: inherit; cursor: auto; font-weight: inherit; white-space: normal; }
.rlist .mv:hover { text-decoration: none; }
.rlist .r.me b, .rlist .r.me .mv { color: var(--accent); }
.rlist .ex { color: var(--muted); font-size: 12px; }
.srctabs { display: flex; gap: 6px; margin: 0 0 6px; }
.srctabs button { padding: 2px 10px; font-size: 12.5px; color: var(--muted); }
.srctabs button.on { color: #1a1205; background: var(--accent); border-color: var(--accent); }

/* insight chips */
.chip { background: var(--chip); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; text-align: left; }
.chip:hover { border-color: var(--accent); }
.chip b { display: block; font-size: 13.5px; } .chip span { font-size: 12px; color: var(--muted); font-weight: 500; }
.chip i { font-style: normal; font-size: 11px; color: var(--accent); margin-left: 6px; }

/* the "On screen" stat graphic: bars or a games list */
.graphic { height: 230px; flex: 0 0 auto; overflow: hidden; }
.graphic .gt { font-weight: 650; font-size: 15px; margin-bottom: 8px; }
.graphic .row { display: grid; grid-template-columns: minmax(0, 40%) 1fr; gap: 10px; align-items: center; margin: 6px 0; }
.graphic .lab { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.graphic .bar { position: relative; height: 22px; background: var(--chip); border-radius: 4px; overflow: hidden; }
.graphic .fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--accent), #ff8a3d); transition: width .6s ease; }
.graphic .txt { position: absolute; left: 8px; top: 0; line-height: 22px; font-size: 12px; color: #fff; text-shadow: 0 1px 2px #000; white-space: nowrap; }
.graphic .foot { color: var(--muted); font-size: 12px; margin-top: 6px; }
.graphic .gl { display: flex; flex-direction: column; gap: 4px; }
.graphic .gi { display: flex; justify-content: space-between; gap: 10px; padding: 5px 8px; border-radius: 6px; background: var(--chip); font-size: 13.5px; }
.graphic .gi.click { cursor: pointer; } .graphic .gi.click:hover { outline: 1px solid var(--accent); }
.graphic .gi span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.graphic .gi.c960 { outline: 1px solid #a855f7; }
.b960 { font-style: normal; font-size: 10.5px; font-weight: 800; color: #fff; background: #a855f7; border-radius: 4px; padding: 1px 5px; margin-left: 6px; }

/* the viewers' vote bars (the challenge verdict pull-up) */
.pullup .vr { display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: center; margin: 6px 0; font-size: 13.5px; }
.pullup .vr .bar { position: relative; height: 18px; background: var(--chip); border-radius: 4px; overflow: hidden; }
.pullup .vr .fill { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.pullup .vr .t { position: absolute; left: 7px; top: 0; line-height: 18px; font-size: 12px; color: var(--ink); white-space: nowrap; }
