/* The runner view (runner-view.js), shared by the playground panel and the
   VS Code webview. Colors fall back from the host's own variables. */
.ws-runner {
  --runner-fg: var(--vscode-foreground, #d6d6dc);
  --runner-muted: var(--vscode-descriptionForeground, #8a8a96);
  --runner-bg: var(--vscode-editor-background, #16161c);
  --runner-line: var(--vscode-panel-border, #33333d);
  --runner-accent: var(--vscode-focusBorder, #4f8cff);
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 0;
  color: var(--runner-fg);
  background: var(--runner-bg);
  font: 13px system-ui, sans-serif;
}
.ws-runner-board {
  display: grid;
  grid-template: "top top top" auto "left middle right" 1fr "bottom bottom bottom" auto / auto 1fr auto;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--runner-line);
  border-radius: 6px;
  outline: none;
  overflow: auto;
}
.ws-runner-board:focus { border-color: var(--runner-accent); }
.ws-runner-top { grid-area: top; }
.ws-runner-left { grid-area: left; flex-direction: column; justify-content: center; }
.ws-runner-right { grid-area: right; flex-direction: column; justify-content: center; }
.ws-runner-bottom { grid-area: bottom; }
.ws-runner-middle { grid-area: middle; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ws-runner-side { display: flex; gap: 8px; justify-content: center; }
.ws-runner-displays { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.ws-runner-display { margin: 0; text-align: center; }
.ws-runner-display canvas {
  display: block;
  image-rendering: pixelated;
  border: 3px solid #050507;
}
.ws-runner-display figcaption { color: var(--runner-muted); font-size: 11px; margin-top: 2px; }
.ws-runner-chip {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 9px;
  color: var(--runner-muted);
  border: 1px solid var(--runner-line);
  border-radius: 4px;
}
.ws-runner-seat {
  --seat-color: #6b6b78;
  min-width: 64px;
  padding: 6px 10px;
  color: var(--runner-fg);
  background: color-mix(in srgb, var(--seat-color) 35%, transparent);
  border: 2px solid var(--seat-color);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}
.ws-runner-seat.taken { opacity: 0.6; }
.ws-runner-seat.mine { opacity: 1; outline: 2px solid var(--runner-accent); outline-offset: 2px; }
.ws-runner-status { color: var(--runner-muted); font-size: 12px; }
.ws-runner-chat {
  flex: 1;
  min-height: 60px;
  margin: 0;
  padding: 6px;
  overflow: auto;
  border: 1px solid var(--runner-line);
  border-radius: 6px;
  font: 12px ui-monospace, monospace;
  white-space: pre-wrap;
}
