/* Goes with kit/menu.js. Replaces the old floating language bar.
   The html body prefix is deliberate: each game sets its own #app padding, and a
   bare #app rule loses on specificity, which left the button sitting on the
   score. */
html body #app{padding-top:58px}
.menubtn{position:absolute;top:calc(10px + env(safe-area-inset-top,0px));right:12px;
  z-index:40;width:44px;height:44px;border-radius:12px;cursor:pointer;
  border:1px solid rgba(255,255,255,.16);background:rgba(0,0,0,.55);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
/* An explicit colour: currentColor inherited the page's dark body text and the
   button was invisible on every one of these dark themes. */
.menubtn span{display:block;width:18px;height:2px;background:#f2f2f2;
  opacity:.9;border-radius:2px}
.menubtn:hover span{opacity:1}
.sheet{position:fixed;inset:0;z-index:50;background:rgba(0,0,0,.66);
  display:flex;align-items:flex-end;justify-content:center;padding:0}
.sheet.hidden{display:none}
.sheetinner{width:100%;max-width:520px;max-height:86dvh;overflow-y:auto;
  background:#15161a;border:1px solid rgba(255,255,255,.14);
  border-radius:16px 16px 0 0;padding:18px 16px calc(20px + env(safe-area-inset-bottom,0px));
  display:flex;flex-direction:column;gap:12px;color:#eee;
  font-family:ui-sans-serif,system-ui,sans-serif}
.sheetinner h3{margin:0 0 2px;font-size:20px;font-weight:600}
.setrow{display:flex;align-items:center;justify-content:space-between;gap:12px}
.setlabel{font-size:15px;color:#c8c8c8}
.seg{display:flex;gap:4px;background:rgba(255,255,255,.07);border-radius:10px;padding:3px}
.segbtn{min-height:40px;min-width:52px;padding:6px 12px;border:0;cursor:pointer;
  border-radius:8px;background:transparent;color:#bbb;font:inherit;font-size:14px}
.segbtn[aria-pressed="true"]{background:rgba(255,255,255,.18);color:#fff}
.nameinput{min-height:44px;width:150px;padding:8px 10px;border-radius:10px;
  border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);
  color:#fff;font:inherit;font-size:15px}
.setnote{margin:2px 0 4px;font-size:12.5px;line-height:1.5;color:#9a9a9a}
.sheetinner .big{width:100%;min-height:50px;border-radius:12px;border:0;cursor:pointer;
  background:#e8e8e8;color:#15161a;font:inherit;font-size:16px;font-weight:600}
html[data-motion="off"] *{animation:none!important;transition:none!important}
