/* Menu surfaces only. Classic loses the home marker when its controls are destroyed. */
body[data-odd-background="ocean"] #menu-view,
body[data-odd-background="ocean"][data-odd-background-home="classic"] {
  background-color: #dfeefa;
  background-image: linear-gradient(140deg, #f1faff 0%, #dfeefa 48%, #c7ddec 100%);
}
body[data-odd-background="mint"] #menu-view,
body[data-odd-background="mint"][data-odd-background-home="classic"] {
  background-color: #dff3e8;
  background-image: linear-gradient(140deg, #f3fff5 0%, #dff3e8 48%, #c4e8de 100%);
}
body[data-odd-background="sunset"] #menu-view,
body[data-odd-background="sunset"][data-odd-background-home="classic"] {
  background-color: #fce6df;
  background-image: linear-gradient(140deg, #fff5df 0%, #fce6df 48%, #efcedd 100%);
}
body[data-odd-background="violet"] #menu-view,
body[data-odd-background="violet"][data-odd-background-home="classic"] {
  background-color: #eee4f9;
  background-image: linear-gradient(140deg, #fbf5ff 0%, #eee4f9 48%, #d6d3ef 100%);
}
body[data-odd-background="midnight"] #menu-view,
body[data-odd-background="midnight"][data-odd-background-home="classic"] {
  background-color: #202e49;
  background-image: linear-gradient(140deg, #344867 0%, #202e49 48%, #182138 100%);
}
body[data-odd-background="corn"] #menu-view,
body[data-odd-background="corn"][data-odd-background-home="classic"] {
  background-color: #faf0c6;
  background-image: linear-gradient(140deg, #fffbea 0%, #faf0c6 48%, #e4eabd 100%);
}

/* Keep existing tile and game colors. Only exposed menu text needs a dark-theme backing. */
body[data-odd-background="midnight"] #menu-view .menu-topbar {
  background: #f5f7fc;
  background: rgba(245, 247, 252, 0.96);
}
body[data-odd-background="midnight"] #menu-view .page-indicators {
  padding: 5px 9px;
  border-radius: 24px;
  background: #f5f7fc;
}
body[data-odd-background="midnight"] #menu-view .page-arrow svg { stroke: #d6e7ff; }
body[data-odd-background="midnight"][data-odd-background-home="classic"] .legacy-brand,
body[data-odd-background="midnight"][data-odd-background-home="classic"] .legacy-brand span,
body[data-odd-background="midnight"][data-odd-background-home="classic"] .legacy-footer,
body[data-odd-background="midnight"][data-odd-background-home="classic"] .legacy-footer a,
body[data-odd-background="midnight"][data-odd-background-home="classic"] #legacy-menu-hint { color: #edf3ff; }

.ombg-controls {
  box-sizing: border-box;
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid #d3dce8;
  border-radius: 16px;
  background: #ffffff;
  color: #293751;
  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
}
.ombg-heading { margin: 0; font-size: 18px; line-height: 1.4; color: #293751; }
.ombg-caption { margin: 6px 0 13px; color: #506077; font-size: 13px; line-height: 1.5; }
.ombg-choices { margin: 0 -1.3% 2px 0; font-size: 0; }
.ombg-theme {
  box-sizing: border-box;
  display: inline-block;
  width: 32%;
  margin: 0 1.3% 10px 0;
  padding: 8px;
  vertical-align: top;
  border: 2px solid #d3dce8;
  border-radius: 11px;
  background: #ffffff;
  color: #293751;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.ombg-theme[aria-pressed="true"] { border-color: #3159a1; background: #edf3ff; }
.ombg-theme:hover { border-color: #7393bd; }
.ombg-theme[aria-pressed="true"]:hover { border-color: #3159a1; }
.ombg-theme:focus, .ombg-reset:focus { outline: 3px solid #315dc4; outline-offset: 2px; }
.ombg-swatch { display: block; height: 30px; border: 1px solid rgba(35, 52, 80, 0.18); border-radius: 6px; }
.ombg-name { display: block; margin-top: 6px; }
.ombg-swatch-ocean { background: #c7ddec; background: linear-gradient(140deg, #f1faff, #c7ddec); }
.ombg-swatch-mint { background: #c4e8de; background: linear-gradient(140deg, #f3fff5, #c4e8de); }
.ombg-swatch-sunset { background: #efcedd; background: linear-gradient(140deg, #fff5df, #efcedd); }
.ombg-swatch-violet { background: #d6d3ef; background: linear-gradient(140deg, #fbf5ff, #d6d3ef); }
.ombg-swatch-midnight { background: #202e49; background: linear-gradient(140deg, #344867, #182138); }
.ombg-swatch-corn { background: #e4eabd; background: linear-gradient(140deg, #fffbea, #e4eabd); }
.ombg-reset {
  display: inline-block;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid #becce0;
  border-radius: 9px;
  background: #f5f8fc;
  color: #294574;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.4;
  cursor: pointer;
}
.ombg-status { min-height: 18px; margin: 10px 0 0; color: #506077; font-size: 12px; line-height: 1.5; }
#legacy-screen .ombg-theme { width: 15.3%; }
@media (max-width: 720px) {
  #legacy-screen .ombg-theme { width: 32%; }
}
@media (max-width: 420px) {
  .ombg-controls { padding: 12px; }
  .ombg-theme { padding: 6px; font-size: 12px; }
}
