/* Sound is an occasional action in the same menu as the other options. */
:root body #app-menu {
    position: fixed; top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right)); z-index: 75;
}
:root body.screen-game-active:not([data-depth-reward='true']) #app-menu { display: none; }
:root body #app-menu summary {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 10px;
    color: #f5ebcc; background: #174b3ded; border: 1px solid #cab276;
    border-radius: 50%; cursor: pointer; list-style: none;
    box-shadow: inset 0 1px 0 #f3dd9c55, 0 2px 6px #071b1640;
}
:root body #app-menu summary::-webkit-details-marker { display: none; }
:root body #app-menu summary:hover { background: #265d4e; }
:root body #app-menu summary .ui-icon { width: 24px; height: 24px; }
:root body #app-menu .app-options {
    position: absolute; top: 52px; right: 0; width: 180px; padding: 6px;
    border: 1px solid #b59a65; border-radius: 9px;
    color: #30291d; background: #f3e5c7; box-shadow: 0 8px 24px #071b1644;
}
:root body #app-menu:not([open]) .app-options { display: none; }
:root body #app-menu [data-sound-toggle] {
    position: static; display: flex; align-items: center; justify-content: flex-start;
    width: 100%; height: auto; min-height: 44px; gap: 12px; margin: 0; padding: 10px;
    color: inherit; background: transparent; border: 0; border-radius: 5px;
    box-shadow: none; font: 600 .9rem/1.3 var(--font-ui); text-shadow: none;
}
:root body #app-menu [data-sound-toggle]:hover { background: #e4d4b1; }
:root body #app-menu [data-sound-toggle] .ui-icon { width: 22px; height: 22px; }
:root body #app-menu :is(summary, button):focus-visible { outline: 3px solid #9b722f; outline-offset: 2px; }
