/* WEB isolation: optional sound controls. Does not reflow the existing palace or auth UI. */
.fortuna-web-sound-launch{position:fixed;right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));z-index:2500;width:45px;height:45px;border-radius:50%;border:1px solid #dab675;background:#172333;color:#f2d8a7;box-shadow:0 3px 18px #0009;font-size:24px;line-height:1;display:grid;place-items:center}
.fortuna-web-sound-launch:focus-visible,.fortuna-web-sound-panel button:focus-visible,.fortuna-web-sound-panel input:focus-visible{outline:3px solid #f9d399;outline-offset:3px}
.fortuna-web-sound-panel{position:fixed;right:14px;bottom:70px;z-index:2501;width:min(345px,calc(100vw - 28px));max-height:calc(100dvh - 94px);overflow:auto;border:1px solid #ba9963;border-radius:12px;padding:18px;background:#101b2a;color:#f0e0c2;box-shadow:0 12px 38px #000d;font-size:14px;line-height:1.6}
.fortuna-web-sound-panel[hidden]{display:none!important}
.fortuna-web-sound-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.fortuna-web-sound-head h2{font-size:17px;text-align:left;margin:0}
.fortuna-web-sound-head button{border:1px solid #a88d63;border-radius:6px;padding:6px 12px;background:transparent;color:inherit}
.fortuna-web-sound-on{display:flex;align-items:center;gap:12px;padding:10px 0;font-weight:bold}
.fortuna-web-sound-on input{width:22px;height:22px;accent-color:#d8b779}
.fortuna-web-sound-hint{font-size:12px;color:#b9b6ad;margin:5px 0 16px;line-height:1.7}
.fortuna-web-sound-level{display:grid;grid-template-columns:52px 1fr;align-items:center;gap:10px;margin:12px 0}
.fortuna-web-sound-level input{width:100%;accent-color:#d4b576}
.fortuna-web-sound-status{color:#e7cf9f;margin:14px 0 0;font-size:12px}

/* Android-approved fixed upper-left settings gear. The former bottom-right
   launcher covered the reception's 「開く」 button on phone screens. */
#fortunaWebSoundOpen.fortuna-web-sound-launch{
 position:fixed!important;
 top:max(72px,calc(env(safe-area-inset-top) + 62px))!important;
 left:max(12px,env(safe-area-inset-left))!important;
 right:auto!important;bottom:auto!important;
 z-index:2500!important;
}
#fortunaWebSoundPanel.fortuna-web-sound-panel{
 position:fixed!important;
 top:max(122px,calc(env(safe-area-inset-top) + 112px))!important;
 left:max(12px,env(safe-area-inset-left))!important;
 right:auto!important;bottom:auto!important;
 max-height:calc(100dvh - 136px - env(safe-area-inset-top))!important;
 z-index:2501!important;
}
