body{--wash-settings-header-h:clamp(104px, 14.4dvh, 151px)}
body #settings.wash-settings{position:fixed; inset:0; box-sizing:border-box; width:100%; height:100dvh;
  max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;
  overflow:auto;overscroll-behavior:contain;box-shadow:none;background:#154781;}
body #settings.wash-settings::backdrop{background:#154781;backdrop-filter:none}
.settings-page{--settings-art-scale:1.22;
  --settings-page-h:clamp(575px,100dvh,1050px);
  
  --settings-body-shift:calc(var(--wash-settings-header-h) - var(--settings-page-h) * .0808 * var(--settings-art-scale));
  position:relative;width:min(100%,500px);height:var(--settings-page-h);margin-inline:auto;
  background:linear-gradient(#154682,#2c82c9 40%,#164886);
  background-image:url("./assets/ui-skin/settings-page.webp");
  background-size:100% calc(100% * var(--settings-art-scale));background-repeat:no-repeat;background-position:0 var(--settings-body-shift);container-type:inline-size;}
body #settings.wash-settings .settings-page header{position:absolute;inset:0 0 auto;height:var(--wash-settings-header-h);min-height:0;
  padding:0 max(14px,4.7%);margin:0;display:grid;place-items:center;justify-content:stretch;
  border:0;border-radius:0;
  background:url("./assets/ui-skin/settings-page.webp") top / 100% 1237.6% no-repeat;
  box-shadow:none;}
body #settings.wash-settings .settings-page h2{margin:0;color:#fff0d0;font-size:clamp(23px,7.5cqw,37px);
  font-weight:950;line-height:1.05;letter-spacing:.04em;text-shadow:0 2px #7e6141,0 3px 3px #092c5c;}
body #settings.wash-settings .settings-page #settingsClose{position:absolute;top:50%;right:max(13px,4.4%);transform:translateY(-50%);
  width:clamp(44px,10cqw,55px);height:clamp(44px,10cqw,55px);padding:0;
  border:0;border-radius:0;clip-path:polygon(21% 0,79% 0,100% 21%,100% 79%,79% 100%,21% 100%,0 79%,0 21%);
  color:#ffedcc;text-shadow:0 2px #173e74;font-size:31px;line-height:1;
  background:linear-gradient(#60a6df 0%,#368bcf 15%,#2168b3 75%,#0c3e85 88%);box-shadow:inset 0 2px #8cc9ee,inset 0 -5px #174a87;}
body #settings.wash-settings .settings-page .lobby-sound-row{position:absolute;inset:calc(15.8% * var(--settings-art-scale) + var(--settings-body-shift)) 8.4% auto;margin:0;display:grid;grid-template-columns:1fr;grid-template-rows:1fr 1fr;gap:0;height:calc(14.4% * var(--settings-art-scale));}
body #settings.wash-settings .settings-page :is(.soundSetting,.brightnessSetting,.settingsRow){box-sizing:border-box;background:none;border:0;border-radius:0;box-shadow:none;padding:0;
  min-width:0;min-height:0;color:#234877;font-weight:900;font-size:clamp(17px,5.6cqw,26px);}
body #settings.wash-settings .settings-page .soundSetting{display:grid;grid-template-columns:21px 1fr auto;gap:clamp(10px,3cqw,15px);align-items:center;margin:0;}
body #settings.wash-settings .settings-page .sound-symbol{display:block;width:19px;fill:#486b94;stroke:#486b94;stroke-width:.9;}
body #settings.wash-settings .settings-page .soundSetting input{margin:0;justify-self:end;align-self:center;width:clamp(58px,18cqw,82px);height:clamp(27px,7cqw,36px);
  border:1px solid #798197;background:linear-gradient(#7a869e,#9ba9c1);border-radius:100px;
  box-shadow:inset 0 2px 3px #2d3e6677,0 1px #fff9e9;appearance:none;}
body #settings.wash-settings .settings-page .soundSetting input:checked{background:linear-gradient(#286fb3,#589fdd);border-color:#28659d;box-shadow:inset 0 2px 3px #12447899,0 1px #fff9e9;}
body #settings.wash-settings .settings-page .soundSetting input::after{inset:2px auto 2px 3px!important;height:auto;width:calc(50% - 4px);border-radius:10px;
  background:linear-gradient(#fff6de,#efd7a7);box-shadow:0 2px 2px #38404699,inset 0 1px #fffdf6;}
body #settings.wash-settings .settings-page .soundSetting input:checked::after{left:calc(50% + 1px)!important}
body #settings.wash-settings .settings-page .brightnessSetting{position:absolute;inset:calc(30.2% * var(--settings-art-scale) + var(--settings-body-shift)) 8.4% auto;height:calc(7.1% * var(--settings-art-scale));margin:0;display:grid;grid-template-columns:auto minmax(0,1fr) 3.3ch;gap:10px;}
body #settings.wash-settings .settings-page .brightnessSetting label{gap:clamp(10px,3cqw,15px)}
body #settings.wash-settings .settings-page .brightnessSetting output{font-weight:900;color:#304d76;font-size:clamp(13px,4.5cqw,21px)}
body #settings.wash-settings .settings-page .brightnessSetting input{height:14px;background:linear-gradient(90deg,#6884b0 var(--lobby-range,62.5%),#d9cdb9 var(--lobby-range,62.5%));border:0;box-shadow:inset 0 2px 3px #3c475b66,0 1px #fff7ec}
body #settings.wash-settings .settings-page input[type=range]::-webkit-slider-thumb{width:24px;height:24px;border-radius:8px;background:linear-gradient(#fff8df,#efd9ab);border:1px solid #d6b885;box-shadow:0 2px 3px #70583d99}
body #settings.wash-settings .settings-page input[type=range]::-moz-range-thumb{background:#f8e7c2;border:1px solid #d6b885;border-radius:8px}
body #settings.wash-settings .settings-page .setting-icon{width:19px;height:19px;stroke:#486b94}
body #settings.wash-settings .settings-page :is(#testMenuButton,#clearSave){position:absolute;left:3.7%;width:92.6%;height:calc(6.8% * var(--settings-art-scale));margin:0;
  display:grid;grid-template-columns:21px 1fr auto;align-items:center;gap:clamp(10px,3cqw,15px);padding:0 6%;}
body #settings.wash-settings .settings-page #testMenuButton{top:calc(43.5% * var(--settings-art-scale) + var(--settings-body-shift));color:#fff0d2;text-shadow:0 2px #315384}
body #settings.wash-settings .settings-page #testMenuButton .setting-icon{stroke:#fff0d2}
body #settings.wash-settings .settings-page #testMenuButton span{color:#fff0d2}
body #settings.wash-settings .settings-page #clearSave{top:calc(52.6% * var(--settings-art-scale) + var(--settings-body-shift));color:#234877;background:none}
body #settings.wash-settings .settings-page #clearSave .setting-icon{stroke:#b66451}
body #settings.wash-settings .settings-page .settingsRow:active{transform:translateY(1px)}
body #settings.wash-settings .settings-page .settingsRow:focus-visible{outline:2px solid #f2c469;outline-offset:-6px}
body #settings.wash-settings .settings-page input:focus-visible{outline-color:#2762b0}
@media (min-aspect-ratio:3/4){
body #settings.wash-settings{background:linear-gradient(#164c8a,#2d80c3 45%,#174987)}
}
body #settings.wash-settings #washReturnHome{position:absolute;left:14%;right:14%;bottom:max(8.5%,calc(env(safe-area-inset-bottom,0px) + 18px));
  width:72%;min-height:52px;margin:0;border:0;border-radius:0;padding:4px 16px 8px;
  clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px);
  background:linear-gradient(#fff8e5 0%,#fceaca 14%,#f5dca8 73%,#d3a56d 80%,#ad784c 100%);
  color:#594067;text-shadow:0 1px #fff8e6;font-weight:900;font-size:clamp(16px,5.6cqw,22px);
  box-shadow:inset 0 2px #fffbef,inset 0 -4px #a57550;}
body #settings.wash-settings #washReturnHome[hidden]{display:none!important}
body #settings.wash-settings #washReturnHome:active{transform:translateY(2px)}
body #testMenu.wash-settings{position:fixed;inset:0;margin:0;padding:0 min(5%,20px) 24px;width:100%;height:100dvh;max-width:none;max-height:none;
  border:0;border-radius:0;box-shadow:none;overflow:auto;background:linear-gradient(#174983,#318ad2 38%,#194f92);}
body #testMenu.wash-settings::backdrop{background:#174983;backdrop-filter:none}
body #testMenu.wash-settings #testMenuTitle{width:calc(100% + min(10vw,40px));box-sizing:border-box;margin:0 0 20px max(-5vw,-20px);height:var(--wash-settings-header-h);min-height:0;
  border-radius:0;border-bottom:3px solid #eace83;background:linear-gradient(#2568a8,#164988);
  font-size:clamp(23px,7.5vw,33px);text-shadow:0 2px #7e6141,0 3px 3px #092c5c;}
body #testMenu.wash-settings p{max-width:440px;margin:0 auto 22px;color:#f1f6ff}
body #testMenu.wash-settings :is(#testDeliver,#testExit,#testStages){max-width:440px;margin:10px auto}
body #testMenu.wash-settings :is(#testDeliver,#testExit){width:100%}
body #testMenu.wash-settings #testDeliver{background:linear-gradient(#fff3d8,#e9cd98);border-color:#edd4ae}
body #testMenu.wash-settings #testStages [aria-pressed=true]{background:#bad8f3;border-color:#2f5a99}
body #testMenu.wash-settings #testBack{position:absolute;top:calc((var(--wash-settings-header-h) - 88px) / 2);right:4.4%;width:44px;height:44px;margin:0;padding:0;
  border:0;border-radius:0;clip-path:polygon(21% 0,79% 0,100% 21%,100% 79%,79% 100%,21% 100%,0 79%,0 21%);
  color:#ffedcc;text-shadow:0 2px #173e74;font-size:30px;line-height:1;
  background:linear-gradient(#60a6df,#368bcf 15%,#2168b3 75%,#0c3e85 88%);box-shadow:inset 0 2px #8cc9ee,inset 0 -5px #174a87;}
body #settings.wash-settings .settings-page #settingsClose,
body #testMenu.wash-settings #testBack{width:88px;height:88px;clip-path:none;border-radius:50%;box-shadow:none;
  background:transparent url("../receipt/assets/receipt-close-cap.svg") center / 88px 88px no-repeat;
  color:transparent;text-shadow:none;touch-action:manipulation;}
body #settings.wash-settings .settings-page #settingsClose:active,
body #testMenu.wash-settings #testBack:active{background-size:83px 83px;filter:brightness(.94)}
body #settings.wash-settings .settings-page #settingsClose:focus-visible,
body #testMenu.wash-settings #testBack:focus-visible{outline:2px solid #ffe29e;outline-offset:0}

body #settings.wash-playtest .settings-page #testMenuButton{grid-template-columns:1fr auto;padding-inline:8%;border-radius:9px;background:linear-gradient(#448bcb,#2265a9);}
#testMenu #testMenuTitle{display:grid;place-items:center;color:#fff0d2;}
#testMenu .test-content{margin:0 auto;width:min(100%,440px);}
#testMenu #testDeliver{color:#4d3150;min-height:54px;border-radius:14px;font-size:18px;font-weight:800;}
#testMenu #testDeliver:disabled{opacity:.45;}
#testMenu #testError[hidden]{display:none;}
