:root {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color-scheme: dark;
  color: #f2f5ee;
  background: #102124;
  font-synthesis: none;
  --gold: #efd195;
  --muted: #afc0bd;
  --field: #0e2123;
  --border: #364d4e;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: max(26px, env(safe-area-inset-top)) max(clamp(28px, 5vw, 94px), env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom)) max(clamp(28px, 5vw, 94px), env(safe-area-inset-left));
  background:
    linear-gradient(90deg, #0816190a 28%, #0b1e2266 67%, #0b1d227d),
    url("/account-bg-desktop.webp") 38% center / cover no-repeat;
}

.identity { display: flex; align-items: center; gap: 13px; max-width: fit-content; }
.identity-mark {
  width: 47px;
  height: 47px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid #f0d29a;
  border-radius: 10px;
  background: #142a2adc url("/account-logo.webp") center / 83% auto no-repeat;
}
.identity-name { display: block; color: #fff9e9; font-size: 24px; line-height: 1.2; font-weight: 750; letter-spacing: .13em; text-shadow: 0 2px 10px #041719d4; }
.identity-detail { display: block; margin-top: 4px; color: #e2e9e1; font-size: 13px; text-shadow: 0 2px 8px #041719; }

.account-panel {
  align-self: center;
  justify-self: end;
  width: min(100%, 414px);
  margin-block: 24px;
  padding: clamp(22px, 3.25vw, 41px);
  border: 1px solid #557173;
  border-radius: 16px;
  background: #172d30f7;
  box-shadow: 0 18px 56px #020f1670;
}

h1 { margin: 0; font-size: clamp(27px, 3vw, 34px); line-height: 1.2; font-weight: 750; letter-spacing: -.035em; }
.intro { margin: 10px 0 25px; color: var(--muted); font-size: 14px; line-height: 1.65; }
#status { margin: 0 0 14px; padding: 9px 11px; color: #d6e4de; background: #233e3f; border-radius: 7px; font-size: 14px; line-height: 1.5; }
#status:empty { display: none; }
#status[data-error="yes"] { color: #ffd1c6; background: #512f2e; }
label { display: grid; gap: 7px; margin-bottom: 16px; font-size: 14px; font-weight: 650; }
input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--field);
  color: inherit;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}
.actions { display: grid; gap: 9px; margin-top: 22px; }
button, .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 47px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--gold);
  color: #1f2924;
  font: inherit;
  font-size: 15px;
  font-weight: 730;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button.secondary { color: #ecefe9; background: transparent; border-color: #506767; font-weight: 600; }
button:disabled { opacity: .60; cursor: wait; }
@media (hover: hover) {
  button:hover:not(:disabled), .button:hover { background: #f8dfa9; }
  button.secondary:hover:not(:disabled) { background: #203b3c; }
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
dl { margin: 0 0 16px; border-block: 1px solid var(--border); padding-block: 2px; }
dl div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 10px 0; font-size: 14px; }
dl div + div { border-top: 1px solid var(--border); }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
#enter { margin-bottom: 21px; }

@media (max-width: 720px) {
  body {
    grid-template-rows: auto auto;
    align-content: start;
    padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
      max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background:
      linear-gradient(180deg, #0d202561, #10212408 19%, #10212445 34%, #102124 82%),
      url("/account-bg-mobile.webp") center top / 100% auto no-repeat;
  }
  .identity { gap: 10px; }
  .identity-mark { width: 39px; height: 39px; }
  .identity-name { font-size: 20px; }
  .identity-detail { font-size: 12px; }
  .account-panel {
    justify-self: center;
    margin-block: clamp(84px, 22svh, 218px) 0;
    padding: 22px 19px 20px;
    background: #152b2ef7;
  }
  .intro { margin-bottom: 19px; }
}
