/* Scoped layout additions; existing map, chat, attribution and commands stay available. */
#wc30FirstPlay {display:grid;gap:8px;padding:0 0 14px;border-bottom:1px solid #354438}
#wc30FirstPlay button {min-height:48px;background:#214c31;color:#effff1;font-weight:650}
#wc30FirstPlay small,.wc30-hub-hint {line-height:1.65;color:#b9d0be;font-size:12px}
.wc30-command-sheet {display:none}
@media(max-width:759px) {
  #game {padding-bottom:12px}
  #game .map-shell {min-height:340px}
  #mapHud {line-height:1.65;gap:4px 10px}
  #mapControls button,#mapRankToggle16 {min-height:40px;padding:6px 10px}
  #gameMenu button {min-height:44px}
  #wc30CommandSheet:not([hidden]) {display:flex;flex-direction:column;position:absolute;left:8px;right:8px;bottom:calc(var(--wc20-footer-bottom,90px) + 64px);z-index:3200;max-height:min(44dvh,380px);overflow:hidden;border:1px solid #83ff60;border-radius:14px;background:#101a14f5;box-shadow:0 8px 26px #0008}
  .wc30-sheet-head {display:flex;justify-content:space-between;align-items:center;gap:10px;padding:5px 10px;border-bottom:1px solid #3e5c45;font-size:13px;flex-shrink:0}
  .wc30-sheet-head button {min-height:40px;padding:5px 10px}
  .wc30-sheet-content {padding:10px 12px;overflow:auto;overscroll-behavior:contain;min-height:0}
  #wc30CommandSheet .map-popup {min-width:0;max-width:none;width:100%;background:transparent;font-size:13px;line-height:1.55}
  #wc30CommandSheet .map-popup strong {font-size:15px}
  #wc30CommandSheet .popup-actions {display:grid;grid-template-columns:1fr 1fr;gap:7px;align-items:stretch}
  #wc30CommandSheet .popup-actions > b,#wc30CommandSheet .popup-actions > small,#wc30CommandSheet .popup-actions > .edit-panel,#wc30CommandSheet .popup-actions > .rename-button {grid-column:1/-1}
  #wc30CommandSheet button {min-height:44px!important;font-size:13px;justify-content:center}
  #wc30CommandSheet input {font-size:16px;min-height:40px}
  #wc30CommandSheet .wc16-invest-buttons {display:grid;grid-template-columns:1fr 1fr;gap:7px}
  #wc30CommandSheet .wc16-invest-buttons button {width:100%}
  #wc30CommandSheet .wc17-division-editor {margin-top:10px}
  #wc20Hub,#nationLobby {padding:14px}
  #wc20Hub .entry-card,#nationLobby .entry-card {gap:10px}
}
@media(max-height:600px) and (max-width:759px) {
  #wc30CommandSheet:not([hidden]) {max-height:38dvh;bottom:calc(var(--wc20-footer-bottom,90px) + 54px)}
}
