#accountGate[hidden],
#accountGate [hidden],
#accountSignOut[hidden],
.commandBar[hidden],
#lobby[hidden],
#footer[hidden],
body:not([data-account-state="ready"]) > :is(.commandBar, #lobby, #footer, #raid, #result) {
 display: none !important;
}

.accountGate {
 --account-gold: #dce9ad;
 --account-ink: #edf0e5;
 --account-muted: #aebdb4;
 --account-line: #405246;
 display: grid;
 grid-template-columns: minmax(0, 1fr);
 width: 100%;
 max-width: none;
 min-height: 100vh;
 min-height: 100dvh;
 margin: 0;
 gap: 0;
 padding: clamp(16px, 5vw, 74px);
 place-items: center;
 color: var(--account-ink);
 font: 500 15px/1.5 var(--ops-body, "Segoe UI", sans-serif);
 background:
  radial-gradient(ellipse at 28% 30%, #263530 0%, transparent 55%),
  radial-gradient(ellipse at 85% 90%, #101f23 0%, transparent 65%),
  #0e1518;
}

.accountCard {
 display: grid;
 grid-template-columns: minmax(205px, .77fr) minmax(330px, 1fr);
 width: min(100%, 760px);
 min-height: 450px;
 overflow: hidden;
 border: 1px solid #506050;
 background: #16211f;
 box-shadow: 0 20px 70px #0008;
}

.accountIdentity {
 display: grid;
 align-content: center;
 justify-items: center;
 gap: 28px;
 padding: 44px 20px;
 border-right: 1px solid var(--account-line);
 background:
  radial-gradient(ellipse at center, #3a4c4066, transparent 65%),
  repeating-linear-gradient(135deg, transparent 0 31px, #9db29e0b 31px 32px),
  #131d1d;
}

.accountEmblem {
 position: relative;
 width: 118px;
 height: 118px;
 color: var(--account-gold);
 transform: rotate(45deg);
 border: 1px solid #9db29e54;
 outline: 1px solid #9db29e28;
 outline-offset: 8px;
}

.accountEmblem > :is(i, b, span) {
 position: absolute;
 display: block;
}

.accountEmblem i {
 inset: 24px;
 border: 6px double currentColor;
 box-shadow: 0 0 20px #d4e99033;
}

.accountEmblem b {
 inset: 42px;
 border: 2px solid currentColor;
 background: #c7df8328;
}

.accountEmblem span {
 inset: 1px;
 border: 5px solid transparent;
 border-top-color: #d9e9a7a0;
 border-bottom-color: #d9e9a7a0;
 clip-path: polygon(0 0, 28% 0, 28% 8%, 72% 8%, 72% 0, 100% 0, 100% 100%, 72% 100%, 72% 92%, 28% 92%, 28% 100%, 0 100%);
}

.accountWordmark {
 z-index: 1;
 margin: 20px 0 0;
 color: #edf3d9;
 font: 800 clamp(25px, 4vw, 34px)/1 var(--ops-title, "Segoe UI", sans-serif);
 letter-spacing: .16em;
}

.accountPanel {
 display: flex;
 flex-direction: column;
 justify-content: center;
 padding: clamp(22px, 4.8vw, 52px);
 min-width: 0;
}

.accountPanel h1 {
 color: var(--account-ink);
 margin: 0;
 padding: 0;
 border: 0;
 font: 700 clamp(28px, 4.8vw, 38px)/1.05 var(--ops-title, "Segoe UI", sans-serif);
 letter-spacing: .01em;
}

.accountPanel h1:focus { outline: none; }

.accountDetails {
 color: var(--account-muted);
 margin: 10px 0 0;
}

.accountMessage {
 margin: 16px 0 0;
 padding: 10px 12px;
 color: #e2edbd;
 border: 1px solid #64754a;
 background: #25352b;
 overflow-wrap: anywhere;
}

.accountMessage[data-tone="error"] {
 color: #ffcfba;
 border-color: #8a594b;
 background: #372622;
}

.accountPanel form,
.accountLegacyActions {
 display: grid;
 gap: 15px;
 margin: 23px 0 0;
}

.accountPanel :is(label, .accountPassword) {
 display: grid;
 gap: 6px;
 min-width: 0;
}

.accountPanel label {
 color: #dce6df;
 font: 600 13px/1.4 var(--ops-body, "Segoe UI", sans-serif);
}

.accountPassword small {
 color: var(--account-muted);
 font-size: 12px;
}

.accountPanel input,
.accountPanel button {
 box-sizing: border-box;
 min-height: 42px;
 padding: 9px 12px;
 border-radius: 0;
 font: inherit;
}

.accountPanel input {
 width: 100%;
 min-width: 0;
 border: 1px solid var(--account-line);
 background: #0d1717;
 color: var(--account-ink);
 user-select: text;
}

.accountPanel :is(input, button):focus-visible {
 outline: 2px solid var(--account-gold);
 outline-offset: 2px;
}

.accountPasswordEntry {
 display: grid;
 grid-template-columns: minmax(0, 1fr) auto;
}

.accountPasswordEntry:has(input:focus-visible) {
 outline: 2px solid var(--account-gold);
 outline-offset: 2px;
}

.accountPasswordEntry input:focus-visible { outline: none; }
.accountPasswordEntry button:focus-visible { outline-offset: -3px; }

.accountLoginOptions {
 display: flex;
 flex-wrap: wrap;
 gap: 6px 18px;
}

.accountLoginOptions label {
 display: flex;
 align-items: center;
 gap: 7px;
 min-height: 24px;
 cursor: pointer;
}

.accountLoginOptions input {
 width: 15px;
 height: 15px;
 min-height: 0;
 flex: none;
 margin: 0;
 padding: 0;
 accent-color: var(--account-gold);
 cursor: inherit;
}

.accountPanel button {
 white-space: normal;
 color: #e1e9e3;
 border: 1px solid var(--account-line);
 background: #253130;
 cursor: pointer;
}

.accountPanel button:hover:not(:disabled) { border-color: #8d9e82; }
.accountPanel button:disabled { cursor: wait; opacity: .65; }
.accountPasswordEntry button {
 margin-left: -1px;
 font-size: 12px;
}

.accountPanel .primary {
 color: #1b2d23;
 background: #dce9ad;
 border: 1px solid #dce9ad;
 font-weight: 750;
}

.accountPanel .primary:hover:not(:disabled) {
 background: #eaf2cb;
 border-color: #eaf2cb;
}

.accountNavigation {
 display: flex;
 flex-wrap: wrap;
 gap: 2px 15px;
 margin: 12px 0 0;
}

.accountNavigation button,
.accountPanel .accountTextButton {
 padding: 5px 0;
 min-height: 34px;
 color: var(--account-gold);
 background: transparent;
 border: 0;
 font-size: 13px;
 text-decoration: underline;
 text-underline-offset: .19em;
}

.accountTextButton { justify-self: start; }

#accountRetry { align-self: start; margin-top: 16px; }

@media (max-width: 680px) {
 .accountCard { grid-template-columns: minmax(0, 1fr); }
 .accountIdentity {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 21px;
  padding: 26px 30px;
  border-right: 0;
  border-bottom: 1px solid var(--account-line);
 }
 .accountEmblem { width: 27px; height: 27px; outline-offset: 3px; flex-shrink: 0; }
 .accountEmblem i { inset: 5px; border-width: 2px; }
 .accountEmblem b { inset: 9px; border-width: 1px; }
 .accountEmblem span { display: none; }
 .accountWordmark { margin: 0; }
}
