/* Menus follow the game's palette. Match native controls to their dark surfaces. */
dialog:is([data-famjam-guide], .famjam-pause-dialog, .famjam-menu-dialog,
  .menu-dialog, .famjam-news-dialog, .settings-dialog, #settings, #utility-dialog) {
  color-scheme: dark;
}

dialog[data-famjam-guide] :is(p, li, figcaption, summary),
dialog:is(.settings-dialog, #settings, #utility-dialog) :is(p, label, small) {
  overflow-wrap: anywhere;
}

dialog[data-famjam-guide] :is(p, li) {
  max-inline-size: 68ch;
}

dialog[data-famjam-guide] :is(figcaption, figcaption p) {
  font-size: 14px !important;
  line-height: 1.45 !important;
}

dialog[data-famjam-guide] .famjam-guide-version {
  opacity: 1 !important;
}

/* Notifications share the colors of the game or collection that opened them. */
:root {
  --famjam-news-background: #0e2c58;
  --famjam-news-color: #ecf3ff;
}

body[data-famjam-theme="flashlight"] {
  --famjam-news-background: #1b3035;
  --famjam-news-color: #edf5ec;
}

body[data-famjam-theme="flip"] {
  --famjam-news-background: #302a32;
  --famjam-news-color: #faf7f9;
}

body[data-famjam-theme="monster"] {
  --famjam-news-background: #203f4a;
  --famjam-news-color: #ecfffb;
}

body[data-famjam-theme="bakery"] {
  --famjam-news-background: #24152e;
  --famjam-news-color: #fff3f7;
}

body[data-famjam-theme="tiny-worlds"] {
  --famjam-news-background: #232b22;
  --famjam-news-color: #eee6d2;
}
