/* Additions to ../style.css for the peer-to-peer page. */
.sq.check { box-shadow: inset 0 0 0 3px rgba(200, 40, 40, .85); background-image: radial-gradient(rgba(220, 50, 50, .55), transparent 70%); }
.sq .coord.file { left: auto; right: 3px; }
button.primary, .button.primary { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
#create { width: 100%; margin-top: 6px; }
.button { display: inline-block; font: inherit; border: 1px solid var(--line); background: var(--card); color: var(--fg);
  border-radius: 6px; padding: 7px 14px; text-decoration: none; }
input:not([type]), input[type=text] { font: inherit; padding: 4px 6px; border-radius: 5px; border: 1px solid var(--line);
  background: var(--bg); color: var(--fg); min-width: 0; max-width: 60%; }
.players { list-style: none; margin: 0 0 10px; padding: 0; }
.players li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; border: 1px solid transparent; }
.players li.turn { border-color: var(--accent); }
.players .pc { font-size: 22px; line-height: 1; }
.players .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); margin-left: auto; }
.players .dot.on { background: var(--accent); }
.muted { color: var(--muted); }
.join { border-top: 1px solid var(--line); padding-top: 8px; margin-bottom: 10px; }
.join button { width: 100%; margin-top: 4px; }
.share { display: flex; gap: 8px; margin: 10px 0 4px; }
.share input { flex: 1; max-width: none; font-size: .85rem; }
.moves-h { margin-top: 14px; }
.moves { margin: 0; padding-left: 2.2em; max-height: 240px; overflow-y: auto; font-variant-numeric: tabular-nums;
  columns: 2; column-gap: 20px; }
.moves li { white-space: pre; break-inside: avoid; }
.moves li.result { list-style: none; font-weight: 600; }
#net.ok { color: var(--accent); }
#net.warn { color: var(--warn); }
.foot code { font-size: .8rem; }
dialog { border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--fg); padding: 12px; }
dialog::backdrop { background: rgba(0, 0, 0, .35); }
.promo { display: flex; gap: 8px; }
.promo button { font-size: 44px; line-height: 1; width: 64px; height: 64px; padding: 0; background: var(--light); }

/* Move list: clickable moves once the game is over; review symbols. */
.moves .mv { display: inline-block; min-width: 4.5em; padding: 0 3px; border-radius: 4px; }
.moves .mv.go { cursor: pointer; }
.moves .mv.go:hover { background: var(--line); }
.moves .mv.cur { background: var(--sel); }
.mv.inaccuracy, .cls.inaccuracy { color: #b08900; }
.mv.mistake, .cls.mistake { color: #d2691e; }
.mv.blunder, .cls.blunder { color: #d03030; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mv.inaccuracy, :root:not([data-theme="light"]) .cls.inaccuracy { color: #e6c35c; }
  :root:not([data-theme="light"]) .mv.blunder, :root:not([data-theme="light"]) .cls.blunder { color: #ff6b6b; }
}

/* Post-game analysis */
#analysis h3 { font-size: .95rem; margin: 14px 0 6px; }
.acc-row { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 4px 0; }
.acc-row .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-row strong { font-size: 1.1rem; text-align: right; }
.acc-row .counts { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); }
.graph { width: 100%; height: 90px; display: block; margin: 10px 0 6px; border-radius: 6px; cursor: pointer; }
.g-bg { fill: var(--dark); }
.g-white { fill: var(--light); }
.g-mid { stroke: var(--muted); stroke-width: .6; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.g-line { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.g-cur { stroke: var(--fg); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.g-dot { stroke-width: 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.g-dot.mistake { stroke: #d2691e; } .g-dot.blunder { stroke: #d03030; }
.nav { display: flex; gap: 6px; }
.nav button { flex: 1; padding: 5px 0; }
.detail { margin-top: 10px; min-height: 4.5em; }
.detail > div { margin-top: 3px; }
.d-head { display: flex; align-items: center; gap: 8px; }
.cls { text-transform: capitalize; }
.draft { font-size: .9rem; }
.an-moments { margin: 0; padding-left: 1.4em; }
.an-moments li { margin: 4px 0; }
.an-moments .draft, .an-moments .muted { font-size: .85rem; }
button.link { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }
