#gameUI #restMenuButton {
  position: fixed; display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-sizing: border-box; min-width: 0; min-height: 0; padding: 2px; gap: 1px; margin: 0;
  border: 1px solid #bbae7655; border-radius: 5px; background: #152c24ed; color: #efda99;
  pointer-events: auto; touch-action: manipulation; z-index: 9;
}
#restMenuButton > span { font: 22px/24px Georgia, serif; }
#restMenuButton > kbd { position: absolute; top: 3px; left: 4px; font: 8px system-ui, sans-serif; color: #a5b594; }
#restMenuButton > small { font: 7px/10px system-ui, sans-serif; white-space: nowrap; }
#gameUI.mobile-hud #restMenuButton > small { font-size: 8px; }
#restMenuButton.rest-active { border-color: #ecd083; box-shadow: 0 0 10px #e9cd6b55; }
#restMenuButton.rest-cooldown > span { font: 600 18px/24px system-ui, sans-serif; font-variant-numeric: tabular-nums; }
#restMenu{position:fixed;z-index:40;width:min(320px,calc(100vw - 16px));max-height:calc(100vh - 16px);overflow-y:auto;box-sizing:border-box;padding:12px;border:1px solid #bbae76;border-radius:7px;background:#182d25fa;box-shadow:0 5px 22px #0007;color:#efda99;pointer-events:auto;touch-action:pan-y}
#restMenu[hidden]{display:none}#restMenu>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;font-size:14px}#restMenuClose{min-width:32px;min-height:32px;padding:3px}#restMenu>button{display:block;width:100%;min-height:44px;margin-top:9px;white-space:normal;text-align:left;font-size:13px}#restMenu>small{display:block;color:#c2cdb8;font-size:11px;line-height:1.4;margin:5px 0 9px}#restRestriction{color:#ebc284;font-size:12px;line-height:1.4;margin:9px 0 0}

#gameUI.mobile-hud #restMenuButton > span { font-size: calc(22 * var(--mobile-unit, 1px)); line-height: calc(24 * var(--mobile-unit, 1px)); }
#gameUI.mobile-hud #restMenuButton > small { font-size: calc(8 * var(--mobile-unit, 1px)); line-height: calc(10 * var(--mobile-unit, 1px)); }
#gameUI.mobile-hud #restMenuButton.rest-cooldown > span { font-size: calc(18 * var(--mobile-unit, 1px)); }
