@font-face {
  font-family: "Xiaoman Rounded";
  src: url(xiaoman-rounded.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
body,
button,
input,
select,
textarea {
  font-family:
    "Xiaoman Rounded",
    "YouYuan",
    "幼圆",
    sans-serif;
}
.welcome h1 {
  font-family: inherit;
}
.hud {
  --hud-light:#fffdf5;
  --hud-base:#e9e2f4;
  --hud-stroke:#8b78a5;
  --hud-depth:#695783;
  --hud-accent:#b7b2df;
  --hud-ink:#574566;
  --hud-motif:none;
  position: absolute;
  z-index: 2000;
  left: 0;
  right: 0;
  top: 0;
  --xhs-width:100%;
  width: 100%;
  max-width: none;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  --xhs-row-gap:6px;
  --xhs-column-gap:6px;
  grid-gap: 6px;
  gap: 6px;
  margin: 0;
  padding: calc(8px + var(--safe-area-inset-top,0px)) 8px 0;
  padding: calc(8px + var(--safe-area-inset-top,env(safe-area-inset-top,0px))) 8px 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--hud-ink);
}
.hud[data-hud-theme=sakura-pink] {
  --hud-light:#fffaf8;
  --hud-base:#f9d5df;
  --hud-stroke:#bf7891;
  --hud-depth:#975972;
  --hud-accent:#efb1c3;
  --hud-ink:#784a63;
  --hud-motif:var(--xhs-image-267);
}
.hud[data-hud-theme=marshmallow-yellow] {
  --hud-light:#fffef4;
  --hud-base:#ffebaf;
  --hud-stroke:#c79a51;
  --hud-depth:#9e7242;
  --hud-accent:#f4ce75;
  --hud-ink:#76513d;
  --hud-motif:var(--xhs-image-263);
}
.hud[data-hud-theme=candy-green] {
  --hud-light:#fbfff5;
  --hud-base:#cdebbf;
  --hud-stroke:#79a078;
  --hud-depth:#567b60;
  --hud-accent:#a9d59f;
  --hud-ink:#45634e;
  --hud-motif:var(--xhs-image-268);
}
.hud-nameplate,
.hud-currency {
  position: relative;
  border: 2px solid var(--hud-stroke);
  background:
    radial-gradient(
      circle at 17% 0%,
      #ffffffd9,
      transparent 35%),
    linear-gradient(
      160deg,
      var(--hud-light),
      var(--hud-base));
  color: var(--hud-ink);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .72),
    inset 0 -3px 0 var(--hud-accent),
    0 4px 0 var(--hud-depth),
    0 6px 9px rgba(60, 46, 78, .282);
}
.hud-nameplate {
  flex: 0 1 auto;
  --xhs-width:max-content;
  width: max-content;
  max-width: 225px;
  min-width: 0;
  --xhs-height:60px;
  height: 60px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.hud-nameplate:before {
  content: "";
  position: absolute;
  left: 30px;
  right: 0;
  top: 11px;
  --xhs-height:34px;
  height: 34px;
  border: 2px solid var(--hud-stroke);
  border-radius: 0 18px 18px 0;
  background:
    radial-gradient(
      circle at 17% 0%,
      #ffffffd9,
      transparent 35%),
    linear-gradient(
      160deg,
      var(--hud-light),
      var(--hud-base));
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .84),
    inset 0 -3px 0 var(--hud-accent),
    0 4px 0 var(--hud-depth),
    0 6px 9px rgba(60, 46, 78, .282);
  pointer-events: none;
}
.hud-nameplate:after {
  content: "";
  position: absolute;
  right: 2px;
  top: 3px;
  --xhs-width:27px;
  width: 27px;
  --xhs-height:27px;
  height: 27px;
  background: var(--hud-motif) center/contain no-repeat;
  pointer-events: none;
}
.hud-avatar {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  --xhs-width:60px;
  width: 60px;
  --xhs-height:60px;
  height: 60px;
  overflow: hidden;
  border: 3px solid #f4cf83;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 40% 25%,
      #fff,
      #d3cfeb);
  box-shadow: inset 0 1px 2px #fff, 0 2px 0 var(--hud-depth);
}
.hud img {
  position: static;
  display: block;
  max-width: none;
  pointer-events: none;
}
.hud-avatar img {
  position: absolute;
  left: -9px;
  top: 1px;
  --xhs-width:74px;
  width: 74px;
  --xhs-height:auto;
  height: auto;
}
.hud-identity {
  position: relative;
  top: 11px;
  --xhs-height:34px;
  height: 34px;
  min-width: 0;
  padding: 0 14px 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hud-shop {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hud-shop {
  font-size: 11px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: .01em;
  text-shadow: 0 1px #fff;
}
.hud-level {
  position: absolute;
  left: 39px;
  top: 47px;
  z-index: 3;
  padding: 1px 4px;
  border: 1px solid var(--hud-stroke);
  border-radius: 8px;
  background: linear-gradient(#fffdf7, var(--hud-accent));
  font-size: 8px;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: 0 2px 0 var(--hud-depth);
  text-shadow: 0 1px #fff;
}
.hud-currencies {
  flex: none;
  --xhs-width:88px;
  width: 88px;
  display: flex;
  flex-direction: column;
  --xhs-row-gap:5px;
  --xhs-column-gap:5px;
  grid-gap: 5px;
  gap: 5px;
}
.hud-currency {
  --xhs-height:26px;
  height: 26px;
  min-height: 26px;
  display: flex;
  align-items: center;
  --xhs-row-gap:3px;
  --xhs-column-gap:3px;
  grid-gap: 3px;
  gap: 3px;
  padding: 0 6px 0 3px;
  border-radius: 14px 17px 15px 14px;
}
.hud-currency img {
  --xhs-width:23px;
  width: 23px;
  --xhs-height:23px;
  height: 23px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px #62495755);
}
.hud-currency b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px #fff;
}
@media (max-width: 360px) {
  .hud {
    --xhs-row-gap:4px;
    --xhs-column-gap:4px;
    grid-gap: 4px;
    gap: 4px;
    padding-left: 6px;
    padding-right: 6px;
  }
  .hud-nameplate {
    --xhs-height:54px;
    height: 54px;
  }
  .hud-nameplate:before {
    left: 27px;
    top: 9px;
    --xhs-height:32px;
    height: 32px;
  }
  .hud-avatar {
    --xhs-width:54px;
    width: 54px;
    --xhs-height:54px;
    height: 54px;
  }
  .hud-avatar img {
    --xhs-width:66px;
    width: 66px;
    left: -8px;
    top: 1px;
  }
  .hud-identity {
    padding-left: 58px;
    top: 9px;
    --xhs-height:32px;
    height: 32px;
  }
  .hud-shop {
    font-size: 10px;
  }
  .hud-level {
    font-size: 8px;
    left: 35px;
    top: 43px;
  }
  .hud-currencies {
    --xhs-width:78px;
    width: 78px;
    --xhs-row-gap:4px;
    --xhs-column-gap:4px;
    grid-gap: 4px;
    gap: 4px;
  }
  .hud-currency {
    --xhs-height:25px;
    height: 25px;
    min-height: 25px;
    padding-right: 4px;
  }
  .hud-currency img {
    --xhs-width:21px;
    width: 21px;
    --xhs-height:21px;
    height: 21px;
  }
  .hud-currency b {
    font-size: 11px;
  }
}
