/* Music-game surfaces behave as one game, rather than selectable document text.
   Preserve editing, native form controls, scrolling, browser zoom and keyboard focus. */
html, body, body * {
 -webkit-user-select: none !important;
 user-select: none !important;
 -webkit-touch-callout: none !important;
}
input, textarea, select, [contenteditable]:not([contenteditable="false"]),
[contenteditable]:not([contenteditable="false"]) * {
 -webkit-user-select: text !important;
 user-select: text !important;
 -webkit-touch-callout: default !important;
}
img, svg, canvas, a { -webkit-user-drag: none; }
/* Never let the generic light button:hover paint erase cream labels on cook pads.
   These opaque pairs stay readable even with hover + pressed + active together. */
.cook-pad,
.cook-pad:is(:hover, :active, :focus, :focus-visible, .pressed, [aria-pressed="true"]) {
 background: #286457 !important;
 color: #fffbe8 !important;
 filter: none !important;
}
.cook-pad.berry,
.cook-pad.berry:is(:hover, :active, :focus, :focus-visible, .pressed, [aria-pressed="true"]) {
 background: #874453 !important;
 color: #fffbe8 !important;
}
.cook-pad:is(.pressed, :active, [aria-pressed="true"]) { border-color: #fff3bc; box-shadow: inset 0 3px 0 #0002 !important; }
.cook-pad :is(strong, small, .station-name) { color: inherit !important; -webkit-text-fill-color: currentColor; opacity: 1; }
@media (forced-colors: active) {
 .cook-pad, .cook-pad.berry,
 .cook-pad:is(:hover, :active, :focus, :focus-visible, .pressed, [aria-pressed="true"]),
 .cook-pad.berry:is(:hover, :active, :focus, :focus-visible, .pressed, [aria-pressed="true"]) {
  background: ButtonFace !important; color: ButtonText !important;
 }
}
/* State audit: keep the character/pad palettes while correcting small-label contrast. */
body[data-music-game="beat-workshop"] #stage-3d #drum {
 background: #285e6d !important;
 color: #fff6df !important;
 filter: none !important;
}
body[data-music-game="beat-workshop"] #stage-3d #drum :is(strong, small) { color: inherit !important; opacity: 1; }
body[data-music-game="meter-navigator"] #strong {
 background: #984837 !important; color: #fff7de !important; filter: none !important;
}
body[data-music-game="meter-navigator"] #light {
 background: #236b78 !important; color: #fff7de !important; filter: none !important;
}
body[data-music-game="meter-navigator"] :is(#strong, #light) * { color: inherit !important; opacity: 1; }
body[data-music-game="morse-station"] :is(#sample-short, #sample-long):is(:hover, :active) {
 background: #345855 !important; color: #fff8e5 !important;
}
body[data-music-game="music-tug"] :is(#help-open, #music-toggle) { color: #123b31; }

/* 2026-11-02: the telegraph listen button kept pale child labels when its
   generic hover rule switched to a pale background. Keep the complete label. */
body[data-music-game="morse-station"] #listen,
body[data-music-game="morse-station"] #listen:is(:hover,:active,:focus,.pressed,.selected,[aria-pressed="true"]) {
 background:#254a53!important;color:#fff8e5!important;filter:none!important;
}
body[data-music-game="morse-station"] #listen :is(span,strong,small) {
 color:inherit!important;-webkit-text-fill-color:currentColor;opacity:1!important;
}
body[data-music-game="morse-station"] :is(#transfer-start,#repair-start,#tempo-start) span {
 color:#34564b!important;opacity:1!important;
}
body[data-music-game="composer-race"] #credits-button:is(:hover,:active) {
 color:#fff8e5!important;
}

@media (forced-colors: active) { body[data-music-game="beat-workshop"] #stage-3d #drum, body[data-music-game="meter-navigator"] :is(#strong, #light), body[data-music-game="morse-station"] :is(#sample-short, #sample-long):is(:hover, :active) { background: ButtonFace !important; color: ButtonText !important; } }
