#account {
  box-sizing: border-box;
  width: min(554px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  padding: 0;
  margin: auto;
  overflow: auto;
  color: #fff1dc;
  color-scheme: dark;
  border: 1px solid #a88a5d;
  border-radius: 18px;
  background: linear-gradient(145deg, #203d34, #142c27 62%, #102420);
  box-shadow: 0 24px 82px #010a14a8;
  font-family: var(--sans, Inter, system-ui, sans-serif);
}
#account::backdrop { background: #030c1ac7; backdrop-filter: blur(5px); }
#account [hidden] { display: none; }
.account-card { position: relative; padding: clamp(32px, 6vw, 48px) clamp(23px, 6vw, 52px) clamp(24px, 5vw, 42px); }
.account-kicker { margin: 0 48px 22px 0; color: #efc783; font-size: 11px; font-weight: 750; letter-spacing: .17em; line-height: 1.4; text-transform: uppercase; }
#account-title {
  margin: 0;
  color: #fff0da;
  font: 550 clamp(31px, 6.9vw, 43px)/1.05 var(--serif, Georgia, serif);
  letter-spacing: -.04em;
  text-wrap: balance;
}
#account-title:focus { outline: none; }
#account-note, .account-status { color: #d4ded1; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
#account-note { margin: 15px 0 26px; }
.account-options, .account-form { display: grid; gap: 12px; }
#account button { font-family: inherit; }
.account-close, .account-switch, .account-back {
  appearance: none;
  color: #cbd8bf;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.account-close {
  position: absolute;
  top: 8px;
  right: 14px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffd889;
  background: #232435;
  border: 1px solid #8c714f;
  border-radius: 10px;
}
.account-action {
  width: 100%;
  min-height: 53px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  appearance: none;
  padding: 10px 16px;
  color: #fff2dd;
  background: #653035;
  border: 1px solid #a07a56;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 750;
  cursor: pointer;
}
.account-gold {
  margin-bottom: 4px;
  color: #3b2126;
  background: linear-gradient(#ffe0a0, #f0b867);
  border-color: #f7cb80;
  box-shadow: 0 4px 0 #aa6b34, 0 9px 22px #0d171329;
}
.account-form label { display: grid; gap: 6px; color: #eee9d9; font-size: 14px; font-weight: 600; }
.account-form input {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: #fff4dd;
  background: #122822;
  border: 1px solid #778c78;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
}
.account-form .account-gold { margin-top: 6px; }
.account-status:empty { display: none; }
.account-status { margin: 16px 0 0; color: #ffd7bb; }
.account-switch, .account-back { min-height: 42px; font-size: 14px; font-weight: 600; }
.account-replace-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.account-replace-links[hidden] { display: none; }
.account-replace-links .account-switch { color: #ffe4a2; padding: 0 6px; text-decoration: underline; text-underline-offset: 4px; }
.account-back { display: flex; align-items: center; gap: 10px; margin: clamp(18px, 4vw, 32px) auto 0; }
.account-back span[aria-hidden] { font-size: 23px; line-height: 1; }
#account button:focus-visible, #account input:focus-visible { outline: 2px solid #ffe4a2; outline-offset: 3px; }
#account button:disabled { opacity: .65; cursor: progress; }
@media (hover: hover) {
  .account-action:hover { background: #793c42; }
  .account-gold:hover { background: linear-gradient(#ffe8b6, #f7c77d); }
  .account-close:hover { border-color: #f3c982; }
  .account-switch:hover, .account-back:hover { color: #fff0ce; text-decoration: underline; }
}
@media (max-width: 430px) {
  #account { border-radius: 14px; }
  .account-card { padding-top: 32px; }
  .account-kicker { margin-bottom: 17px; }
  .account-close { top: 8px; right: 8px; width: 42px; height: 42px; }
  #account-note { margin: 13px 0 20px; }
  .account-action { min-height: 48px; }
}
