/* Semantic paper/ink switch. The brand logo and actual football keep their
 * own fixed colors. Stadium paint lives separately in stadium_config.js. */
:root[data-theme=dark] {
  color-scheme:dark;
  --paper:#191c1a; --ink:#f6f3eb;
  --surface-raised:#292e2a; --muted:#b9bcb2;
  --brand-coral:#ff867c; --brand-pink:#ff867c;
  --accent-hover:#e3dfd5; --selection:#343a35; --error-surface:#482927;
}
.shootout-kick.pending { background:#fff; border-color:#111; }
[data-theme-toggle] { display:grid; place-items:center; flex:none; width:44px; height:44px; padding:0; }
[data-theme-toggle] img { width:20px; height:20px; display:block; }
html[data-theme=dark] img[src*="/icons/"]:not([src*="football.svg"]) { filter:invert(1); }
html[data-theme=dark] .shell-dialog,html[data-theme=dark] .result-dialog { box-shadow:6px 6px 0 #0008; }
/* The extra theme control stays in the existing fixed mobile toolbar. */
@media(max-width:380px) {
  #stadium-controls strong { font-size:16px; }
  #stadium-controls .stadium-actions { gap:4px; }
  #stadium-controls .icon-button { width:40px; height:40px; padding:0; min-width:40px; }
}
