/* Native panel A; the small texture contains decoration only. */
.fs-account-overlay[hidden], .fs-account-overlay [hidden] { display: none !important; }
.fs-account-overlay {
  position: fixed; inset: 0; z-index: 14000; display: grid; place-items: center;
  padding: 24px; box-sizing: border-box; overflow: auto; overscroll-behavior: contain;
  background: radial-gradient(ellipse at 50% 70%, #12303855, #030708c9 80%);
  backdrop-filter: blur(4px); color: #d9c09a;
  font: 16px/1.5 "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  isolation: isolate;
}
.fs-account-overlay *, .fs-account-overlay *::before, .fs-account-overlay *::after { box-sizing: border-box; }
.fs-account-panel {
  position: relative; width: min(440px, 100%); min-height: 586px; max-height: calc(100dvh - 48px);
  overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #776148 #111514;
  padding: 38px 38px 28px; text-align: center;
  background: radial-gradient(ellipse at 50% 12%, #2a21172e, transparent 60%), url("../assets/img/ui/account-panel-a.png") repeat, #0b0f0e;
  border: 1px solid #ae8950; outline: 3px double #5e4932; outline-offset: 4px;
  box-shadow: 0 0 0 8px #0b0e0ed9, 0 18px 70px #000d, inset 0 0 0 5px #181b15, inset 0 0 0 6px #80684270, inset 0 0 45px #0008;
}
.fs-account-panel::before, .fs-account-panel::after {
  content: ""; position: absolute; pointer-events: none; width: 21px; height: 21px;
  border: 1px solid #aa8756; transform: rotate(45deg); opacity: .6;
}
.fs-account-panel::before { top: 9px; left: 9px; }
.fs-account-panel::after { bottom: 9px; right: 9px; }
.fs-account-overlay button { font: inherit; cursor: pointer; }
.fs-account-overlay button:focus-visible, .fs-account-dev-input:focus-visible {
  outline: 3px solid #a9e1e5; outline-offset: 3px;
}
.fs-account-overlay button:disabled { cursor: not-allowed; }
.fs-account-brand { font: 15px/1.5 Georgia, "Times New Roman", serif; letter-spacing: 2px; color: #c4a679; margin: 0 14px 22px; }
.fs-account-title { margin: 0 0 9px; color: #e2c08f; font: bold 34px/1.35 "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; text-shadow: 0 2px 9px #000; }
.fs-account-intro { margin: 0 0 25px; font-size: 14px; line-height: 1.7; color: #b5a38b; word-break: keep-all; overflow-wrap: anywhere; }
.fs-account-close {
  position: absolute; right: 10px; top: 9px; width: 40px; height: 40px; border: 0; background: transparent;
  color: #c3ab87; font-size: 28px !important; line-height: 1;
}
.fs-account-close:hover { color: #fff2d8; }
.fs-account-current { display: grid; gap: 4px; margin-bottom: 23px; padding: 12px 8px; border-block: 1px solid #76603a70; }
.fs-account-current-label { font-size: 13px; color: #aa987b; }
.fs-account-name { font-size: 18px; color: #e4cda7; overflow-wrap: anywhere; }
.fs-account-kind { color: #b7a888; font-size: 12px; }
.fs-account-kind:empty { display: none; }
.fs-account-providers { display: grid; gap: 13px; }
.fs-account-provider-row { display: grid; gap: 5px; }
.fs-account-provider {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 48px; padding: 9px 14px; color: #e4caa3; border: 1px solid #836b4a;
  border-radius: 4px; background: linear-gradient(110deg, #393a34, #252824 48%, #343631);
  box-shadow: inset 0 0 0 2px #141b19, inset 0 0 0 3px #7160455c, 0 2px 6px #000a;
  font-size: 18px !important; line-height: 1.45; overflow-wrap: anywhere;
}
.fs-account-provider-steam {
  min-height: 62px; border: 2px solid #a6a999; border-radius: 9px; font-size: 21px !important;
  background: linear-gradient(130deg, #566062 0, #242c2c 8%, #101716 45%, #273534 93%, #6a7270);
  box-shadow: inset 0 0 0 2px #161c1c, inset 0 0 0 3px #9d9e8270, 0 2px 8px #000;
}
.fs-account-provider:not(:disabled):hover { filter: brightness(1.22); border-color: #e1be7f; }
.fs-account-provider:disabled { color: #b8ac96; border-color: #665744; }
.fs-account-provider-mark { display: inline-grid; place-items: center; flex: 0 0 23px; font: bold 20px/1 Georgia, serif; opacity: .9; }
.fs-account-provider-google .fs-account-provider-mark { font-family: Arial, sans-serif; }
.fs-account-provider-label { min-width: 0; }
.fs-account-provider-status { font-size: 12px; line-height: 1.5; color: #aaa38f; }
.fs-account-provider-row.is-linked .fs-account-provider { color: #cbd3a8; border-color: #87936b; }
.fs-account-provider-row.is-linked .fs-account-provider-status { color: #b2be94; }
.fs-account-feedback { margin-top: 14px; }
.fs-account-status, .fs-account-error { margin: 7px 0; font-size: 14px; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
.fs-account-status { color: #c8ddd8; }
.fs-account-status:empty { display: none; }
.fs-account-error { color: #f1b7a9; }
.fs-account-retry, .fs-account-cancel {
  min-height: 42px; padding: 6px 18px; margin-top: 5px; color: #e0c69e; background: #29332f;
  border: 1px solid #8c7756; border-radius: 3px;
}
.fs-account-existing-hint { margin: 25px 0 3px; font-size: 14px; color: #b2a088; }
.fs-account-existing, .fs-account-local { display: block; margin: 3px auto 0; padding: 7px 9px; min-height: 44px; border: 0; background: transparent; color: #d3b994; text-decoration: underline; text-underline-offset: 5px; }
.fs-account-existing:hover, .fs-account-local:hover { color: #fff1d7; }
.fs-account-local { font-size: 14px !important; color: #b4b8aa; }
.fs-account-dev { margin-top: 21px; padding-top: 16px; border-top: 1px solid #6e634e70; text-align: left; }
.fs-account-dev-label { display: block; margin-bottom: 8px; color: #b7c6bf; font-size: 13px; }
.fs-account-dev-input-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fs-account-dev-input {
  flex: 1 1 120px; width: 0; min-width: 120px; min-height: 44px; padding: 8px 10px; font: inherit;
  border: 1px solid #68746a; border-radius: 3px; color: #f0e9da; background: #131c19;
}
.fs-account-dev-input::placeholder { color: #989d90; }
.fs-account-dev-submit { flex: 0 0 auto; min-height: 44px; padding: 8px 10px; font-size: 13px !important; background: #273d35; color: #d4e1d7; border: 1px solid #73897b; border-radius: 3px; }
.fs-account-dev-note { margin: 8px 0 0; font-size: 12px; line-height: 1.7; color: #aeb4a8; word-break: keep-all; }
.fs-account-footnote { margin: 23px 0 0; font-size: 12px; line-height: 1.8; color: #a79980; word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .fs-account-overlay { padding: 15px; }
  .fs-account-panel { max-height: calc(100dvh - 30px); min-height: 0; padding: 34px 22px 25px; }
  .fs-account-title { font-size: 30px; }
  .fs-account-intro { margin-bottom: 20px; }
  .fs-account-providers { gap: 12px; }
}
@media (max-height: 640px) and (min-width: 521px) {
  .fs-account-overlay { padding: 15px; }
  .fs-account-panel { max-height: calc(100dvh - 30px); min-height: 0; padding-top: 25px; }
}
@media (prefers-reduced-motion: no-preference) {
  .fs-account-provider { transition: filter .12s, border-color .12s; }
}
