/* HELLWARD cloud account gate. Does not affect the combat HUD or local test menu. */
.hellward-cloud-gate[hidden],.hellward-cloud-account[hidden],#cloudRecoveryForm[hidden]{display:none!important}
.hellward-cloud-gate {
  position:fixed;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;
  overflow:auto;padding:20px 16px;
  background:linear-gradient(110deg,rgba(8,7,10,.93),rgba(19,9,11,.9)),
    url('assets/ui/menu-eclipse.webp?v=1') center/cover no-repeat;
}
.hellward-cloud-card{
  width:min(460px,100%);margin:auto;padding:32px clamp(20px,4vw,38px);
  border:1px solid #72502d;box-shadow:0 18px 80px #000b,inset 0 0 0 4px #0c090d;
  background:linear-gradient(150deg,#1d181a,#0d0b10 80%);color:#eadcc7;
  text-align:center;font-family:'Cormorant Garamond',Georgia,serif;
}
.hellward-cloud-eyebrow{font:12px 'Optimus Princeps',Georgia,serif;color:#b99b6a;letter-spacing:.17em}
.hellward-cloud-card h2{
  font:normal clamp(23px,3vw,30px) 'Optimus Princeps',Georgia,serif;
  color:#f1d7a4;margin:18px 0 8px;
}
.hellward-cloud-card p{line-height:1.5;color:#c4b49c;margin:8px 0 18px}
.hellward-cloud-card form{text-align:left}
.hellward-cloud-card label{display:block;color:#d9b887;margin:12px 0 5px;font-size:15px;letter-spacing:.04em}
.hellward-cloud-card input{
  display:block;width:100%;min-height:40px;padding:9px 12px;border:1px solid #685036;
  border-radius:0;color:#f5e9d5;background:#100e11;font-size:16px;font-family:Georgia,serif;
}
.hellward-cloud-card input:focus-visible{outline:2px solid #b88b56;outline-offset:2px}
.hellward-cloud-actions{display:flex;justify-content:space-between;gap:8px;margin-top:12px}
.hellward-cloud-card .hw-action{flex:1;min-width:0;margin:4px 0;padding:12px 8px}
.hellward-cloud-google{display:block;width:100%;margin:12px auto 4px!important}
.hellward-cloud-link{
  border:0;background:none;color:#bda27b;padding:9px;cursor:pointer;text-decoration:underline;
  text-underline-offset:3px;font-size:14px;
}
.hellward-cloud-link:hover,.hellward-cloud-link:focus-visible{color:#f1d7a4}
#cloudStatus{font-size:14px;min-height:25px;margin:12px 0 0;overflow-wrap:anywhere}
#cloudStatus[data-error="true"]{color:#eb9c8b}
.hellward-cloud-account{
  display:flex;align-items:center;justify-content:center;gap:12px;margin:0 0 12px;
  font-family:Georgia,serif;color:#cdb58f;font-size:13px;overflow-wrap:anywhere;
}
.hellward-cloud-account button{
  flex-shrink:0;border:1px solid #58432b;background:#120e10;color:#dac49e;padding:6px 9px;
  cursor:pointer;font-size:12px;
}
.hellward-cloud-account button:hover{border-color:#c39358}
@media(max-width:700px){
  .hellward-cloud-gate{padding:12px}
  .hellward-cloud-card{padding:24px 20px}
  .hellward-cloud-account{flex-direction:column;gap:5px}
}
/* Recovery dialogs must appear above the existing full-screen game menu (z-index:1000). */
.modal-backdrop:not([hidden]){z-index:1400}

/* Distinct static login scene: do not render the animated in-game menu until login completes. */
#authScreen.cloud-login-active>.hw-stage,
#authScreen.cloud-login-active>.hw-shell{display:none!important}
.hellward-cloud-gate{
  z-index:50;
  background:#100c0f url('assets/ui/menu-eclipse.webp?v=1') center/cover no-repeat;
}
.hellward-cloud-gate::before{
  content:"";position:fixed;inset:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(8,6,9,.42),rgba(8,6,9,.78));
}
.hellward-cloud-card{position:relative;z-index:1}
.hellward-cloud-logo{width:min(300px,100%);height:auto;display:block;margin:0 auto 8px;object-fit:contain}
@media(prefers-reduced-motion:reduce){.hellward-cloud-gate,.hellward-cloud-card{animation:none}}

/* v1 account HUD: clean username/email forms, keyboard-accessible tabs, no Google OAuth. */
.hellward-cloud-tabs{
  display:grid;grid-template-columns:1fr 1fr;gap:0;margin:14px 0 20px;
  border:1px solid #6b4b2b;background:rgba(13,10,12,.88);
}
.hellward-cloud-tabs button{
  min-height:42px;padding:8px 10px;border:0;background:transparent;
  color:#a69379;font:500 14px 'Optimus Princeps',Georgia,serif;
  letter-spacing:.09em;cursor:pointer;
}
.hellward-cloud-tabs button:hover{color:#f2d9a6}
.hellward-cloud-tabs button.is-selected{
  color:#f5e5c8;background:linear-gradient(180deg,#4b251f,#241316);
  box-shadow:inset 0 -2px 0 #b17e48;
}
.hellward-cloud-tabs button:focus-visible{
  outline:2px solid #d8aa65;outline-offset:2px;
}
.hellward-cloud-submit{
  width:100%;display:block;margin:18px 0 4px!important;min-height:46px;
  font-size:15px!important;letter-spacing:.12em!important;
}
.hellward-cloud-card [hidden]{display:none!important}
#cloudUsernameGroup input,#cloudIdentity,#cloudPassword,#cloudConfirmPassword{
  box-sizing:border-box;
}
.hellward-cloud-card .hw-action:disabled{
  opacity:.55;cursor:progress;
}
@media(max-width:480px) {
  .hellward-cloud-card{padding:20px 18px}
  .hellward-cloud-logo{width:min(250px,90%)}
  .hellward-cloud-tabs{margin:10px 0 12px}
  .hellward-cloud-card label{margin:9px 0 4px}
}
