/* One compact shortcut strip; actor HUD and bottom combat controls keep their anchors. */
#game-shortcuts{position:absolute;left:0;right:0;top:calc(100% + 8px);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:4px;background:var(--px-paper,#fff9e8);border:2px solid var(--px-edge,#385346);box-shadow:3px 3px 0 var(--px-edge,#385346);border-radius:2px;pointer-events:auto}
#game-shortcuts button{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:38px;padding:4px 9px;background:transparent;font-size:11px;font-weight:800;letter-spacing:.35px;border:1px solid transparent;border-radius:0;white-space:nowrap}
#game-shortcuts button+button{border-left-color:#38534630}
#game-shortcuts button:hover{background:#e5edd9}
#game-shortcuts button:active{background:#cedfc4;transform:translateY(1px)}
#game-shortcuts button[aria-pressed="true"]{background:#dcebd4}
#game-shortcuts button[aria-pressed="true"] span{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:2px}
#game-shortcuts svg{width:17px;height:17px;flex:none;fill:currentColor;shape-rendering:crispEdges}
#game-shortcuts kbd{font:800 9px var(--px-micro,monospace);border:1px solid #38534650;border-bottom-width:2px;min-width:17px;padding:2px 3px;line-height:1;background:#fffdf2;color:var(--px-muted,#53695a)}
#game-shortcuts button:focus-visible,#mobile-menu summary:focus-visible{outline:3px solid #bb8740;outline-offset:2px;position:relative;z-index:1}
#mobile-menu{max-width:440px;padding:25px 25px 18px}
#mobile-menu h1{font-size:34px;margin-bottom:16px}
#mobile-menu .menu-section{margin:17px 0}
#mobile-menu .menu-section h2{margin:0 0 8px;font:800 10px var(--px-micro,monospace);letter-spacing:1px;text-transform:uppercase;color:var(--px-muted,#53695a)}
#mobile-menu .mobile-menu-grid{gap:8px;margin:0}
#mobile-menu .mobile-menu-grid button{min-height:44px;padding:10px 8px;font-size:12px}
#mobile-menu .mobile-menu-grid button[aria-pressed="true"]{background:#cedfc4}
#mobile-menu .menu-hint{font-size:10px;line-height:1.5;margin:10px 0 0;color:var(--px-muted,#53695a)}
#mobile-menu button:disabled{cursor:not-allowed}
#mobile-menu .menu-camera{border-top:2px solid #38534625;border-bottom:2px solid #38534625;margin:18px 0 0;padding:13px 0}
#mobile-menu .menu-camera summary{cursor:pointer;font-size:12px;font-weight:800;min-height:22px}
#menu-camera-value{float:right;font:700 10px var(--px-micro,monospace);color:var(--px-muted,#53695a);padding-top:2px}
#mobile-menu .camera-settings>.mobile-camera-label{display:none}
#mobile-menu .camera-settings{padding:3px 0 8px}
#mobile-menu .menu-footer{position:sticky;bottom:-18px;padding:14px 0 8px;background:var(--px-paper,#fff9e8);z-index:2}
#mobile-menu .menu-footer .primary{margin:0;min-height:46px;display:flex;justify-content:space-between;align-items:center}
#mobile-menu .menu-footer .secondary{font-size:11px;min-height:38px;padding:9px;background:transparent;box-shadow:none;border-color:#38534630;margin-top:10px}
@media(max-width:900px),(pointer:coarse){#game-shortcuts kbd{display:none}#game-shortcuts button{gap:6px;font-size:10px;min-height:36px;padding:4px}#game-shortcuts{top:calc(100% + 7px)}.mobile-map-open .minimap{top:calc(max(16px,env(safe-area-inset-top)) + 116px)}}
@media(pointer:coarse),(max-width:600px){#game-shortcuts{padding:3px}#game-shortcuts button{min-height:36px;font-size:10px}#game-shortcuts svg{width:15px;height:15px}.mobile-map-open .minimap{top:calc(max(10px,env(safe-area-inset-top)) + 116px)}#mobile-menu{padding:25px 20px 16px;max-height:calc(100dvh - 26px)}#mobile-menu .menu-footer{bottom:-16px}#mobile-menu h1{font-size:32px}}
@media(max-width:360px){#game-shortcuts button{font-size:9px;gap:4px}#game-shortcuts svg{width:14px;height:14px}}
@media(max-height:540px) and (orientation:landscape){#mobile-menu{max-height:calc(100dvh - 20px)}#game-shortcuts{top:calc(100% + 5px)}#game-shortcuts button{min-height:30px}}

/* Connected-room status and invite action live in the primary HUD. */
#share-room[hidden]{display:none!important}
#share-room{align-self:stretch;display:grid;grid-template-columns:auto auto;grid-template-rows:1fr auto;place-content:center;align-items:center;column-gap:5px;min-width:70px;padding:6px 9px;border-left:2px solid #38534636;background:#f4dce7;color:var(--px-ink,#29483b)}
#share-room>span{font-size:20px;line-height:1}
#share-room>b{font:900 12px var(--px-micro,monospace);white-space:nowrap}
#share-room>small{grid-column:1/-1;font:800 7px var(--px-micro,monospace);letter-spacing:.8px;margin-top:2px}
#share-room:hover{background:#edcadb}
#share-room:active{background:#e8bdd1;transform:translate(1px,1px)}
@media(pointer:coarse),(max-width:600px){#share-room{min-width:51px;padding:5px 6px;column-gap:3px}#share-room>span{font-size:17px}#share-room>b{font-size:10px}#share-room>small{display:none}}
