:is([data-game-theme="paintchain"], [data-game-theme="blinddraw"], [data-game-theme="faketitle"]) {
  --game-accent: #ffad93;
  --game-accent-hover: #ffc2ae;
  --game-accent-text: #ffb7a3;
  --pc-panel: #172539;
  --pc-card: #101d2f;
  --pc-edge: #405269;
  --pc-text: #f4f5fb;
  --pc-muted: #bac7d7;
  color: var(--pc-text);
}
html[data-theme="light"] :is([data-game-theme="paintchain"], [data-game-theme="blinddraw"], [data-game-theme="faketitle"]) {
  --game-accent-text: #9a3d27;
  --pc-panel: #fff9f4;
  --pc-card: #fff;
  --pc-edge: #d7bcb0;
  --pc-text: #26314a;
  --pc-muted: #54627a;
}
:is([data-game-theme="paintchain"], [data-game-theme="blinddraw"], [data-game-theme="faketitle"]).ds-panel { max-width: 55rem; background: var(--pc-panel); }
.ds-cover { position: relative; overflow: hidden; border-radius: 18px; }
.ds-cover img { width: 100%; max-height: 17rem; object-fit: cover; }
.ds-cover span { display: block; padding: 9px 12px; background: var(--pc-card); }
.ds-rules-link { color: var(--game-accent-text); font-weight: 700; }
.ds-room-menu { display: contents; }
.ds-room-menu summary { display: none; }
.pc-meta, .pc-progress, .pc-toolbar, #pc-tabs, .pc-vote-options, .pc-score {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.pc-meta, .pc-score { justify-content: space-between; }
.pc-meta, .pc-progress, .pc-caption, .pc-note { color: var(--pc-muted); font-size: .83rem; }
.pc-progress span { border: 1px solid var(--pc-edge); padding: 4px 8px; border-radius: 99px; }
#pc-timer { min-width: 6rem; text-align: center; color: #341d19; background: var(--game-accent); border-radius: 99px; padding: 5px 9px; font-weight: 800; }
#pc-timer.urgent { background: #f17474; }
.pc-card, .pc-step { border: 1px solid var(--pc-edge); background: var(--pc-card); border-radius: 15px; padding: 12px; }
.pc-card h2, .pc-step h3 { color: var(--game-accent-text); font-weight: 800; margin-bottom: 4px; }
.pc-card p, .pc-step p { overflow-wrap: anywhere; }
.pc-stack, #pc-history, .pc-controls { display: grid; gap: 10px; }
.pc-button, .pc-toolbar button, #pc-tabs button {
  border: 1px solid var(--pc-edge); padding: 9px 13px; border-radius: 11px; font-size: .88rem; font-weight: 700;
}
.pc-button { min-height: 44px; background: var(--game-accent); color: #341d19; }
.pc-button:hover { background: var(--game-accent-hover); }
.pc-button:disabled { opacity: .48; cursor: default; }
.pc-button.secondary, .pc-toolbar button, #pc-tabs button { background: var(--pc-card); color: var(--pc-text); }
button[aria-pressed="true"] { outline: 2px solid var(--game-accent-text); outline-offset: -2px; }
.pc-paper { overflow: hidden; border: 1px solid var(--pc-edge); border-radius: 13px; background: var(--pc-card); }
.pc-path-title { font-size: .85rem; font-weight: 800; margin-bottom: 6px; }
.pc-path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pc-path-grid > .pc-card { display: grid; gap: 4px; padding: 7px; align-content: start; }
.pc-path-grid .pc-button { width: 100%; padding-inline: 4px; }
.pc-path-grid .pc-caption { overflow-wrap: anywhere; }
.pc-toolbar { padding: 6px 8px; }
.pc-toolbar button { padding: 6px 8px; }
.pc-toolbar button:disabled { opacity: .4; }
.pc-toolbar label { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; }
.pc-toolbar input[type="range"] { width: 62px; }
.pc-toolbar .pc-color-trigger { min-width: 42px; min-height: 40px; display: inline-grid; place-items: center; }
.pc-color-chip { display: block; width: 23px; height: 23px; border: 1px solid #94a3b8; border-radius: 6px; }
.pc-palette { position: fixed; inset: 0; margin: auto; width: min(92vw, 360px); max-height: 85dvh; overflow: auto; padding: 14px; border: 1px solid var(--pc-edge); border-radius: 16px; background: var(--pc-panel); color: var(--pc-text); }
.pc-palette::backdrop { background: #020617ad; }
.pc-palette-title { margin-bottom: 10px; font-weight: 800; }
.pc-color-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.pc-color-swatch { aspect-ratio: 1; border: 1px solid #94a3b8; border-radius: 8px; }
.pc-color-swatch[aria-pressed="true"] { outline: 2px solid var(--pc-text); outline-offset: 1px; }
.pc-color-swatch:focus-visible { outline: 3px solid var(--game-accent-text); outline-offset: 1px; }
.pc-palette > .pc-button { width: 100%; margin-top: 8px; }
.pc-canvas, .pc-picture canvas { width: 100%; aspect-ratio: 4 / 3; display: block; background: #fffdf9; }
.pc-canvas { touch-action: none; }
.pc-picture { border-radius: 8px; overflow: hidden; margin-top: 6px; }
.pc-picture canvas { max-width: 38rem; margin: auto; }
.pc-paper > .pc-button { width: calc(100% - 12px); margin: 6px; }
.pc-input { width: 100%; resize: vertical; min-height: 68px; border-radius: 10px; border: 1px solid var(--pc-edge); padding: 9px; background: var(--pc-card); font-size: 16px; }
#pc-tabs { margin-bottom: 10px; }
.pc-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pc-vote-options { align-items: stretch; }
.pc-vote-options button { flex: 1 1 110px; overflow-wrap: anywhere; }
.pc-score small { color: var(--pc-muted); }
#pc-history > :last-child, #pc-vote, #pc-controls { scroll-margin-top: 65px; }
[hidden] { display: none !important; }
@media (max-width: 750px) {
  body[data-pc-playing="true"] #site-header,
  body[data-pc-playing="true"] > footer { display: none; }
  body[data-pc-playing="true"] .ds-shell { padding: 5px; justify-content: flex-start; }
  body[data-pc-playing="true"] .ds-panel { padding: 9px; gap: 9px; }
  body[data-pc-playing="true"] .ds-game-header h1 { font-size: 1.1rem; }
  body[data-pc-playing="true"] .ds-game-header p { display: none; }
  body[data-pc-playing="true"] .ds-room-menu { display: block; }
  body[data-pc-playing="true"] .ds-room-menu summary { display: block; font-size: .77rem; cursor: pointer; }
  .pc-paper { margin-inline: -4px; }
  .pc-progress span { font-size: .72rem; }
  .pc-picture canvas { max-height: min(29vh, 240px); width: auto; max-width: 100%; }
  .pc-controls .pc-button { width: 100%; }
  #pc-history > :last-child, #pc-vote, #pc-controls { scroll-margin-top: 8px; }
}
.pc-vote-options { margin: 9px 0; }
#pc-vote .pc-card > .pc-button { display: block; margin: 9px 0; width: 100%; }
.pc-wait-clock { display: block; margin-top: 9px; color: var(--game-accent-text); font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pc-meta { position: sticky; top: 72px; z-index: 4; background: var(--pc-panel); padding-block: 4px; }
@media (min-width: 751px) {
  .pc-paper { width: min(100%, 76vh); margin-inline: auto; }
}
@media (max-width: 750px) {
  .pc-meta { top: 0; }
}
