/* The standalone Hwatu page reuses Party.js and the home room layout.
   This shell supplies the modal styles normally owned by the home bundle. */
body.dice-standalone[data-local-game="hwatu"] #partyModal {
  position:fixed;inset:0;z-index:2100;display:none;
  padding:max(12px,env(safe-area-inset-top,0px)) 12px max(12px,env(safe-area-inset-bottom,0px));
  align-items:center;justify-content:center;overflow:auto;
  background:rgba(5,16,20,.77);backdrop-filter:blur(5px);
}
body.dice-standalone[data-local-game="hwatu"] #partyModal[aria-hidden="true"] {display:none!important;}
body.dice-standalone[data-local-game="hwatu"] #partyModal .party-panel {
  box-sizing:border-box;margin:auto;background:#182f38;color:#eef3e7;
  border:1px solid #56737a;border-radius:18px;box-shadow:0 18px 55px #061a1c80;
  font-size:14px;line-height:1.55;
}
body.dice-standalone[data-local-game="hwatu"] #partyModal .modal-header {
  display:flex;align-items:center;justify-content:space-between;
  background:#203b43;border-bottom:1px solid #4a656b;
}
body.dice-standalone[data-local-game="hwatu"] #partyModal .modal-header h2 {
  margin:0;color:#eef3e7;font-size:20px;font-weight:800;line-height:1.4;
}
body.dice-standalone[data-local-game="hwatu"] #partyModal #party-close {
  display:grid;place-items:center;flex-shrink:0;
  border:1px solid #587680;border-radius:10px;color:#e1ece7;
}
body.dice-standalone[data-local-game="hwatu"] #partyModal :is(.btn-primary,.btn-secondary) {
  display:inline-flex;justify-content:center;align-items:center;
  min-height:44px;border-radius:10px;font-weight:750;line-height:1.4;
  box-shadow:none;cursor:pointer;
}
body.dice-standalone[data-local-game="hwatu"] #partyModal .btn-primary {
  background:#d5ef96;border:1px solid #d5ef96;color:#203629;
}
body.dice-standalone[data-local-game="hwatu"] #partyModal .btn-secondary {
  background:#2b4b54;border:1px solid #718e91;color:#e6efe3;
}
body.dice-standalone[data-local-game="hwatu"] #partyModal .btn-secondary:hover {background:#365b65;}
body.dice-standalone[data-local-game="hwatu"] #partyModal .party-content {color:inherit;}
body.dice-standalone[data-local-game="hwatu"] #partyModal button:focus-visible {
  outline:3px solid #98ba89;outline-offset:2px;
}
html.dialog-open body.dice-standalone[data-local-game="hwatu"] {overflow:hidden;}
