.system-menu {
  width: min(19rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  color: #eee9dc;
  color-scheme: dark;
  background: #121922;
  border: 1px solid #75684c;
  box-shadow: 0 16px 64px #0009;
}
.system-menu::backdrop { background: #05090e90; }
.system-menu--options { width: min(35rem, calc(100vw - 2rem)); }
.system-menu__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid #76664677; }
.system-menu__header h2 { margin: 0; font-family: Georgia, serif; font-size: 1.35rem; }
.system-menu button, .system-menu select { border: 1px solid #52606a; background: #202c37; padding: .55rem .65rem; color: inherit; font: inherit; }
.system-menu button:hover, .system-menu button:focus-visible { border-color: #d8bd7e; }
.system-menu__header button { padding: .2rem .55rem; font-size: 1.1rem; }
.system-menu__content { display: grid; gap: .55rem; padding: 1rem; }
.system-menu__content button { text-align: left; }
.system-menu__tabs { display: flex; flex-wrap: wrap; gap: .25rem; padding: .75rem .75rem 0; }
.system-menu__tabs button { flex: 1 1 auto; white-space: nowrap; }
.system-menu__tabs button[aria-selected="true"] { color: #f4d898; border-color: #a28e60; background: #302b21; }
.system-menu__section { min-height: 12rem; margin: .75rem; padding: 1rem; border: 1px solid #53606a; background: #10161d; }
.system-menu__field, .system-menu__toggle { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem; }
.system-menu__field { flex-wrap: wrap; justify-content: space-between; }
.system-menu__toggle input { flex: none; width: 1rem; height: 1rem; accent-color: #d8bd7e; }
.system-menu__keys { display: grid; gap: .5rem; margin: 0; }
.system-menu__keys div { display: flex; justify-content: space-between; gap: .5rem; }
.system-menu__keys dd { margin: 0; }
.system-menu__footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; padding: 0 .75rem .75rem; }
.system-menu__footer button:first-child { margin-right: auto; }
.system-menu .system-menu__apply { background: #c8a869; border-color: #e3c68b; color: #171c21; }
#game[data-show-minimap="false"] .minimap-panel,
#game[data-show-npc-names="false"] .npc-view__name,
#game[data-show-mob-names="false"] .mob-view__name,
#game[data-show-mob-health="false"] .original-hud__target-track { display: none; }
#game[data-chat-normal="false"] .game-chat__entry[data-chat-channel="normal"],
#game[data-chat-shout="false"] .game-chat__entry[data-chat-channel="shout"],
#game[data-chat-whisper="false"] .game-chat__entry[data-chat-channel="whisper"] { display: none; }
