/* src/views/Grants.css */
.grants-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 0 28px;
}
.grants-pagination p {
  margin: 0;
  color: #d7a18b;
}
.grants-pagination button {
  min-height: 42px;
  min-width: 140px;
  padding: 9px 24px;
  border: 1px solid #b38b43;
  color: #ead29a;
  background: #261d10;
  cursor: pointer;
}
.grants-pagination button:disabled {
  opacity: .6;
  cursor: wait;
}

/* src/styles.css */
:root {
  color-scheme: dark;
  font-family:
    "Microsoft YaHei",
    "Noto Sans SC",
    sans-serif;
  font-synthesis: none;
  --ink: #090a06;
  --panel: #15140d;
  --gold: #9c7d38;
  --gold-bright: #eee1b0;
  --gold-dim: #65532d;
  --gold-soft: #d8bc74;
  --paper: #e9e4d7;
  --muted: #aaa086;
  --jade: #7fd4b6;
  --azure: #8acaf1;
  --red: #ef4739;
  --serif:
    "Noto Serif SC",
    "STSong",
    "SimSun",
    serif;
}
* {
  box-sizing: border-box;
}
html {
  min-width: 320px;
  min-height: 100%;
  background: var(--ink);
}
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--ink);
}
html,
body {
  scrollbar-width: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}
button,
input {
  font: inherit;
}
button {
  -webkit-tap-highlight-color: transparent;
}
.user-app {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}
.page-scenery {
  position: fixed;
  z-index: 0;
  inset: 0;
  background-color: #090a06;
  background-image:
    linear-gradient(
      90deg,
      rgba(3, 3, 1, .18),
      transparent 25%,
      transparent 75%,
      rgba(3, 3, 1, .18)),
    url(/assets/design/main-background.png);
  background-position: center, center top;
  background-size: cover, cover;
  background-repeat: no-repeat;
  filter: saturate(1.22) contrast(1.08) brightness(1.08);
}
.page-scenery::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}
.page-header,
.page-content {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  margin: 0 auto;
}
.page-header {
  padding: 24px 16px 0;
}
.brand {
  text-align: center;
  filter: drop-shadow(0 4px 9px #000);
}
.brand h1 {
  margin: 0;
  color: var(--gold-bright);
  font-family:
    "STKaiti",
    "KaiTi",
    "FangSong",
    serif;
  font-size: clamp(34px, 8vw, 57px);
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 1px 0 #5a4829, 0 0 18px rgba(183, 149, 76, .16);
}
.brand h1 span {
  margin: 0 .08em;
  color: #ad914f;
}
.brand p {
  margin: 10px 0 17px;
  color: #d2c49e;
  font: 15px "FangSong", serif;
  letter-spacing: .28em;
}
.user-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  width: 100%;
  min-height: 50px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid rgba(179, 148, 79, .24);
  border-bottom: 1px solid rgba(179, 148, 79, .44);
  background: rgba(13, 13, 8, .9);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
  backdrop-filter: blur(9px);
}
.user-nav::-webkit-scrollbar {
  display: none;
}
.user-nav button {
  position: relative;
  flex: 1 0 auto;
  min-width: 104px;
  height: 50px;
  padding: 0 17px;
  border: 0;
  color: #bbb09a;
  background: transparent;
  cursor: pointer;
  font-family:
    "STKaiti",
    "KaiTi",
    serif;
  font-size: 17px;
  white-space: nowrap;
}
.user-nav button::after {
  content: "";
  position: absolute;
  right: 25%;
  bottom: -1px;
  left: 25%;
  height: 2px;
  opacity: 0;
  background: #d5b96f;
  box-shadow: 0 0 9px rgba(199, 155, 65, .72);
  transform: scaleX(.35);
  transition: opacity .2s ease, transform .2s ease;
}
.user-nav button.is-active {
  color: #eddbab;
}
.user-nav button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}
.user-nav button:focus-visible {
  outline: 1px solid #eccf87;
  outline-offset: -4px;
}
.page-content {
  padding: 18px 16px 44px;
}
.profile-card {
  display: grid;
  grid-template-columns: minmax(128px, 29%) minmax(0, 1fr) minmax(190px, 29%);
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background:
    linear-gradient(
      90deg,
      rgba(10, 10, 5, .7) 0,
      rgba(10, 9, 5, .76) 48%,
      rgba(8, 8, 4, .82) 100%),
    url(/assets/design/account-profile-background.png) center / cover no-repeat;
  box-shadow: inset 0 0 0 3px rgba(205, 171, 99, .035), 0 16px 38px rgba(0, 0, 0, .3);
}
.profile-portrait {
  position: relative;
  min-height: 190px;
  overflow: hidden;
}
.profile-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent 60%,
      rgba(11, 10, 7, .96));
}
.profile-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(.72) sepia(.05) contrast(1.04);
}
.profile-copy {
  min-width: 0;
  align-self: center;
  padding: 22px 22px 22px 6px;
  border-right: 1px solid rgba(178, 142, 73, .26);
}
.profile-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.profile-name-row h2 {
  margin: 0;
  color: #f0ead8;
  font:
    700 clamp(30px, 5vw, 43px) "STKaiti",
    "KaiTi",
    serif;
}
.logout-button {
  padding: 5px 8px;
  border: 1px solid rgba(193, 156, 82, .45);
  border-radius: 2px;
  color: #aa9a7c;
  background: rgba(12, 10, 7, .72);
  cursor: pointer;
  font-size: 11px;
}
.logout-button:hover {
  color: #f1d99f;
  border-color: #c79c4c;
}
.profile-rank {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  color: #dbc27b;
  font:
    19px "STKaiti",
    "KaiTi",
    serif;
}
.profile-rank span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid #9e7539;
  border-radius: 50%;
  color: #f1cb68;
  background: #572817;
  font-size: 15px;
}
.profile-rank b {
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 500;
}
.profile-motto {
  margin: 14px 0 0;
  color: #c9c0aa;
  font: 15px "FangSong", serif;
  line-height: 1.65;
}
.profile-assets {
  align-self: center;
  padding: 18px 24px;
}
.profile-assets h3 {
  margin: 0 0 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(167, 139, 77, .25);
  color: #dfd1ad;
  font:
    21px "STKaiti",
    "KaiTi",
    serif;
}
.profile-assets p {
  display: grid;
  grid-template-columns: 31px 1fr auto;
  align-items: center;
  gap: 9px;
  margin: 10px 0;
}
.currency-icon {
  display: inline-block;
  width: 28px;
  height: 30px;
  flex: none;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 0 5px rgba(105, 220, 232, .32));
}
.currency-icon.is-small {
  width: 18px;
  height: 19px;
}
.currency-icon.is-large {
  width: 46px;
  height: 49px;
}
.currency-icon.is-button {
  width: 23px;
  height: 24px;
  margin: 0 2px;
}
.profile-assets span {
  color: #c9bd9f;
  font-size: 15px;
}
.profile-assets b {
  color: #eee9db;
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 500;
}
.modes-section,
.reservation-section,
.live-section {
  margin-top: 23px;
}
.section-title {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin: 0 8px 12px;
}
.section-title h2 {
  margin: 0;
  color: var(--gold-bright);
  font:
    700 clamp(29px, 6vw, 39px) "STKaiti",
    "KaiTi",
    serif;
}
.section-title p {
  margin: 0;
  color: #b9ae94;
  font: 15px "FangSong", serif;
  letter-spacing: .14em;
}
.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mode-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.95 / 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid #9d8044;
  border-radius: 5px;
  background: #100f0c;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px rgba(244, 210, 136, .04);
}
.mode-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.68) sepia(.07) brightness(.88) contrast(1.03);
  transition: transform .25s ease, filter .25s ease;
}
.mode-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(11, 11, 7, .02) 20%,
      rgba(7, 7, 4, .15) 48%,
      rgba(5, 5, 3, .88) 100%);
}
.mode-copy {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: grid;
  text-align: center;
  filter: drop-shadow(0 2px 3px #000);
}
.mode-copy strong {
  color: #eee2b7;
  font:
    700 clamp(24px, 5vw, 36px) "STKaiti",
    "KaiTi",
    serif;
  line-height: 1.1;
}
.mode-copy small {
  margin-top: 6px;
  color: #e5e0d4;
  font: clamp(12px, 2.6vw, 17px) "FangSong", serif;
}
.mode-card:hover img {
  transform: scale(1.035);
  filter: saturate(.76) sepia(.05) brightness(.94) contrast(1.03);
}
.mode-card:focus-visible {
  outline: 2px solid #f0d28d;
  outline-offset: 2px;
}
.mode-card.is-locked {
  border-color: #62656b;
  cursor: default;
}
.mode-card.is-locked img {
  filter: grayscale(1) brightness(.37);
}
.mode-card.is-locked .mode-shade {
  background: rgba(3, 5, 8, .48);
}
.mode-card.is-locked:hover img {
  transform: none;
  filter: grayscale(1) brightness(.37);
}
.lock-seal {
  position: absolute;
  top: 24%;
  left: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 2px solid #aab0b6;
  border-radius: 50%;
  color: #d4d7db;
  background: rgba(22, 25, 29, .72);
  font: 25px "STKaiti", serif;
  transform: translateX(-50%);
}
.reservation-section,
.live-section {
  padding: 12px;
  border-radius: 6px;
  background: rgba(24, 23, 15, .7);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}
.reservation-card {
  display: grid;
  grid-template-columns: minmax(138px, 31%) minmax(0, 1fr) auto;
  align-items: center;
  min-height: 102px;
  overflow: hidden;
  border: 1px solid #846d3d;
  border-radius: 5px;
  background: rgba(17, 17, 11, .78);
}
.reservation-card img {
  width: 100%;
  height: 102px;
  object-fit: cover;
  border-right: 1px solid #8e6e34;
}
.reservation-card div {
  min-width: 0;
  padding: 12px 18px;
}
.reservation-card h3 {
  margin: 0;
  color: #eee5cf;
  font: 24px "STKaiti", serif;
}
.reservation-card p {
  margin: 7px 0 0;
  color: #cfc4ae;
  font-size: 14px;
}
.reservation-card button {
  min-width: 112px;
  min-height: 52px;
  margin-right: 18px;
  border: 1px solid #6cb2a6;
  border-radius: 5px;
  color: #d9eee9;
  background: rgba(38, 83, 75, .42);
  cursor: pointer;
  font: 19px "STKaiti", serif;
}
.live-list {
  border-top: 1px solid rgba(172, 137, 70, .26);
}
.live-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(172, 137, 70, .18);
  color: #e3dece;
  background: transparent;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}
.live-list a:hover,
.live-list a:focus-visible {
  background: rgba(180, 132, 52, .08);
  outline: none;
}
.live-list span {
  font: 20px "STKaiti", serif;
}
.live-list em {
  justify-self: end;
  color: var(--red);
  font-style: normal;
  font-size: 17px;
}
.live-list-state {
  display: grid;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0 20px;
  place-items: center;
  border: 0;
  border-bottom: 1px solid rgba(172, 137, 70, .18);
  color: #8f846e;
  background: transparent;
  font-size: 14px;
}
.live-list-state.is-error {
  color: #c58b7d;
  cursor: pointer;
}
.pending-page {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid #8d713d;
  border-radius: 6px;
  background: #12100b;
}
.pending-page > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.62) brightness(.46);
}
.pending-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(8, 7, 5, .96),
      rgba(8, 7, 5, .48));
}
.pending-page > div {
  position: relative;
  z-index: 1;
  width: min(420px, 82%);
  padding: 100px 52px;
}
.pending-page small {
  color: #a98a54;
  font-family: Georgia, serif;
  letter-spacing: .22em;
}
.pending-page h2 {
  margin: 18px 0 12px;
  color: #f4dfaa;
  font: 48px "STKaiti", serif;
}
.pending-page p {
  color: #cbbda0;
  font-size: 15px;
}
.pending-page button {
  min-width: 150px;
  min-height: 44px;
  margin-top: 26px;
  border: 1px solid #ac8442;
  border-radius: 3px;
  color: #f1d69c;
  background: #332310;
  cursor: pointer;
}
.pending-page .pending-logout {
  margin-left: 10px;
  border-color: #684a34;
  color: #c8b49c;
  background: #211711;
}
.toast {
  position: fixed;
  z-index: 100;
  right: 16px;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100vw - 32px);
  min-height: 48px;
  margin: auto;
  padding: 8px 18px;
  border: 1px solid #b48a44;
  border-radius: 4px;
  color: #eee0bd;
  background: rgba(18, 14, 9, .96);
  box-shadow: 0 15px 40px #000b;
  font-size: 13px;
}
.toast span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #9b692f;
  border-radius: 50%;
  color: #f1cf7c;
  background: #5e2116;
  font: 16px "STKaiti", serif;
}
.login-loading {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  margin: 0;
  color: #bca36e;
  background: #090907;
}
.login-loading span {
  display: grid;
  width: 56px;
  height: 62px;
  place-items: center;
  border: 1px solid #9f7b3f;
  font: 30px "STKaiti", serif;
}
.login-loading p {
  font: 13px "FangSong", serif;
}
.login-intro {
  position: fixed;
  z-index: 10000;
  inset: 0;
  overflow: hidden;
  background: #000;
  opacity: 1;
  transition: opacity .45s ease;
}
.login-intro.is-leaving {
  opacity: 0;
  pointer-events: none;
}
.login-intro video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.login-intro-audio,
.login-intro-skip {
  position: absolute;
  top: max(22px, env(safe-area-inset-top));
  height: 42px;
  border: 1px solid #d5b37199;
  border-radius: 2px;
  color: #f1d79d;
  background: #0b0907a8;
  box-shadow: 0 8px 28px #0008;
  backdrop-filter: blur(5px);
  cursor: pointer;
}
.login-intro-audio {
  left: max(24px, env(safe-area-inset-left));
  width: 42px;
  padding: 0;
}
.login-intro-skip {
  right: max(24px, env(safe-area-inset-right));
  display: flex;
  min-width: 92px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
}
.login-intro-skip i {
  font: normal 22px/1 Arial, sans-serif;
}
.page-content.is-sub {
  padding-top: 12px;
}
.sub-header {
  margin: 2px 2px 12px;
}
.sub-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sub-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  border: 0;
  color: #cfc2a2;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
}
.sub-back i {
  font: 30px/0.6 Arial, sans-serif;
}
.sub-back:hover {
  color: #f0dfa8;
}
.sub-brand {
  color: #d8bc74;
  font:
    17px "STKaiti",
    "KaiTi",
    serif;
  letter-spacing: .08em;
}
.sub-title {
  margin: 8px 0 0;
  text-align: center;
  color: var(--gold-bright);
  font:
    700 clamp(34px, 8vw, 52px)/1.15 "STKaiti",
    "KaiTi",
    serif;
  text-shadow: 0 1px 0 #5a4829, 0 0 20px rgba(183, 149, 76, .2);
}
.sub-subtitle {
  margin: 8px 0 0;
  text-align: center;
  color: #d2c49e;
  font: 14px "FangSong", serif;
  letter-spacing: .34em;
}
.panel {
  margin-top: 12px;
  padding: 14px 16px 16px;
  border: 1px solid rgba(156, 125, 56, .75);
  border-radius: 6px;
  background:
    linear-gradient(
      180deg,
      rgba(21, 20, 13, .92),
      rgba(15, 14, 9, .94));
  box-shadow: inset 0 0 0 3px rgba(205, 171, 99, .035), 0 12px 30px rgba(0, 0, 0, .24);
}
.panel-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.panel-title h2 {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
  color: var(--gold-bright);
  font:
    700 clamp(22px, 4.6vw, 30px)/1.1 "STKaiti",
    "KaiTi",
    serif;
}
.panel-title h2::before {
  content: "\2014";
  margin-right: 8px;
  color: rgba(156, 125, 56, .7);
}
.panel-title p {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
}
.panel-heading {
  margin: 0 0 12px;
  color: var(--gold-bright);
  font:
    700 clamp(20px, 4.4vw, 27px)/1.1 "STKaiti",
    "KaiTi",
    serif;
}
.panel-empty {
  margin: 6px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.gold-button {
  width: 100%;
  min-height: 52px;
  border: 1px solid #a67c36;
  border-radius: 4px;
  color: #241503;
  cursor: pointer;
  background:
    linear-gradient(
      180deg,
      #e8cd8b,
      #cfa75a);
  font:
    700 19px "STKaiti",
    "KaiTi",
    serif;
  box-shadow: inset 0 0 0 1px rgba(255, 244, 214, .35), 0 10px 26px rgba(0, 0, 0, .35);
}
.gold-button:disabled {
  opacity: .48;
  cursor: not-allowed;
}
.ghost-button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(156, 125, 56, .7);
  border-radius: 4px;
  color: #d8c491;
  background: rgba(20, 18, 11, .6);
  cursor: pointer;
  font-size: 13px;
}
.ghost-button:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.bottom-cta {
  margin-top: 16px;
}
.asset-strip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 13px 16px;
  border: 1px solid rgba(156, 125, 56, .75);
  border-radius: 6px;
  background:
    linear-gradient(
      180deg,
      rgba(21, 20, 13, .92),
      rgba(14, 13, 9, .95));
}
.asset-strip h3 {
  margin: 0;
  color: #dfd1ad;
  font:
    21px "STKaiti",
    "KaiTi",
    serif;
  white-space: nowrap;
}
.asset-strip-items {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px 26px;
}
.asset-strip-items p {
  display: grid;
  grid-template-columns: 28px auto auto;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.asset-strip-items .currency-icon {
  width: 26px;
  height: 28px;
}
.asset-strip-items span {
  color: #c9bd9f;
  font-size: 13px;
}
.asset-strip-items b {
  color: #eee9db;
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 500;
}
.asset-recharge {
  min-width: 86px;
  min-height: 40px;
  border: 1px solid #b28c4b;
  border-radius: 4px;
  color: #f1d69c;
  background:
    linear-gradient(
      180deg,
      rgba(64, 48, 20, .85),
      rgba(42, 31, 13, .9));
  cursor: pointer;
  font:
    16px "STKaiti",
    "KaiTi",
    serif;
}
.identity-card {
  display: grid;
  grid-template-columns: minmax(120px, 30%) minmax(0, 1fr);
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(156, 125, 56, .8);
  border-radius: 6px;
  background:
    linear-gradient(
      90deg,
      rgba(10, 9, 5, .52),
      rgba(8, 8, 4, .86)),
    url(/assets/design/account-profile-background.png) center / cover no-repeat;
}
.identity-portrait {
  position: relative;
  min-height: 168px;
}
.identity-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent 55%,
      rgba(11, 10, 7, .95));
}
.identity-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  filter: saturate(.74) contrast(1.04);
}
.identity-copy {
  min-width: 0;
  align-self: center;
  padding: 18px 16px;
}
.identity-copy h2 {
  margin: 0;
  color: #f0ead8;
  font:
    700 clamp(28px, 5vw, 40px)/1.1 "STKaiti",
    "KaiTi",
    serif;
}
.identity-tags {
  display: flex;
  gap: 8px;
  margin: 9px 0 0;
}
.identity-tag {
  padding: 3px 9px;
  border: 1px solid rgba(216, 188, 116, .65);
  border-radius: 3px;
  color: #e8d49c;
  background: rgba(58, 42, 15, .55);
  font-size: 11px;
}
.identity-tag.is-on {
  border-color: rgba(127, 212, 182, .6);
  color: #b9e8d4;
  background: rgba(24, 66, 52, .5);
}
.identity-rank {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  color: #dbc27b;
  font:
    17px "STKaiti",
    "KaiTi",
    serif;
}
.identity-rank span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid #9e7539;
  border-radius: 50%;
  color: #f1cb68;
  background: #572817;
  font-size: 13px;
}
.identity-rank b {
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 500;
}
.identity-motto {
  margin: 10px 0 0;
  color: #c9c0aa;
  font: 14px "FangSong", serif;
  line-height: 1.6;
}
.stat-columns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.stat-columns div {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 6px 2px;
}
.stat-columns div + div {
  border-left: 1px solid rgba(178, 142, 73, .22);
}
.stat-columns span {
  color: var(--muted);
  font-size: 12px;
}
.stat-columns b {
  color: #eee9db;
  font-family: Georgia, serif;
  font-size: clamp(19px, 4.4vw, 26px);
  font-weight: 500;
}
.stat-columns small {
  min-height: 14px;
  color: #8fd0a8;
  font-size: 10px;
  white-space: nowrap;
}
.growth-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.growth-label,
.growth-next {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.growth-label b,
.growth-next b {
  color: #ddd3b8;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 500;
}
.growth-track {
  height: 7px;
  overflow: hidden;
  border: 1px solid rgba(156, 125, 56, .5);
  border-radius: 4px;
  background: rgba(9, 9, 6, .85);
}
.growth-track i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background:
    linear-gradient(
      90deg,
      #8a6a2f,
      #dfc27c);
  box-shadow: 0 0 8px rgba(216, 188, 116, .5);
}
.quality-tag {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-style: normal;
  font-size: 11px;
  line-height: 1.5;
}
.quality-\666e\901a  {
  color: #b9b3a4;
}
.quality-\7cbe\826f  {
  color: #8fd0a8;
}
.quality-\7a00\6709  {
  color: #7fb7e8;
}
.quality-\53f2\8bd7  {
  color: #c39af0;
}
.quality-\4f20\8bf4  {
  color: #e8c56c;
}
.quality-\4ed9\54c1  {
  color: #f3e2b0;
  text-shadow: 0 0 8px rgba(243, 226, 176, .35);
}
.quality-text {
  font-style: normal;
}
.equipment-hint {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.equipment-cell {
  position: relative;
  display: grid;
  grid-template-rows: minmax(64px, 1fr) auto;
  gap: 6px;
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(156, 125, 56, .6);
  border-radius: 5px;
  background: rgba(11, 11, 7, .72);
  text-align: center;
}
button.equipment-cell {
  cursor: pointer;
}
button.equipment-cell:hover {
  border-color: rgba(216, 188, 116, .8);
}
.equipment-cell.is-empty .equipment-art {
  opacity: .5;
}
.equipment-art {
  position: relative;
  display: grid;
  min-height: 64px;
  place-items: center;
  overflow: hidden;
  border-radius: 3px;
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(92, 70, 32, .35),
      rgba(8, 8, 5, .9));
}
.item-thumb {
  width: 100%;
  height: 100%;
  max-height: 130px;
  object-fit: cover;
  border-radius: 3px;
  filter: saturate(.85) contrast(1.02);
}
.equipment-grid:not(.is-edit) .equipment-art {
  min-height: 0;
  aspect-ratio: 1 / 1;
}
.equipment-art img.item-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
.equipment-art .item-thumb.is-empty {
  height: 100%;
  min-height: 0;
}
.item-thumb.is-empty {
  display: grid;
  width: 100%;
  min-height: 64px;
  place-items: center;
  color: rgba(216, 188, 116, .4);
  font: 24px "STKaiti", serif;
  background: transparent;
}
.equipment-info {
  display: grid;
  justify-items: center;
  gap: 2px;
}
.equipment-slot {
  color: var(--muted);
  font-size: 11px;
}
.equipment-name {
  overflow: hidden;
  max-width: 100%;
  color: #e8dfc8;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.equipment-level {
  color: #b9a879;
  font-size: 10px;
}
.equipment-action {
  margin-top: 3px;
  padding: 2px 10px;
  border: 1px solid rgba(156, 125, 56, .7);
  border-radius: 3px;
  color: #e3c98f;
  font-size: 11px;
}
.equipment-grid.is-edit .equipment-cell {
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: none;
  align-items: center;
  text-align: left;
}
.equipment-grid.is-edit .equipment-art {
  width: 56px;
  min-height: 56px;
  aspect-ratio: 1 / 1;
}
.equipment-grid.is-edit .equipment-info {
  justify-items: start;
}
.sub-tabs,
.switch-tabs,
.filter-tabs,
.season-tabs {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.sub-tabs button,
.switch-tabs button,
.filter-tabs button,
.season-tabs button {
  flex: 1;
  min-height: 42px;
  padding: 0 6px;
  border: 1px solid rgba(156, 125, 56, .55);
  border-radius: 4px;
  color: #c5b795;
  background: rgba(13, 13, 8, .78);
  cursor: pointer;
  font-size: 14px;
}
.sub-tabs button {
  font:
    17px "STKaiti",
    "KaiTi",
    serif;
}
.sub-tabs button.is-active,
.switch-tabs button.is-active,
.filter-tabs button.is-active,
.season-tabs button.is-active {
  border-color: #d8bc74;
  color: #f3e3b2;
  background:
    linear-gradient(
      180deg,
      rgba(74, 56, 22, .85),
      rgba(46, 35, 14, .9));
  box-shadow: inset 0 0 0 1px rgba(243, 227, 178, .15), 0 0 12px rgba(216, 188, 116, .12);
}
.switch-tabs {
  position: relative;
}
.filter-tabs button {
  min-height: 36px;
}
.season-tabs button {
  min-height: 38px;
}
.board-tabs button {
  font:
    17px "STKaiti",
    "KaiTi",
    serif;
}
.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.entry-cell {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 8px 12px;
  border: 1px solid rgba(156, 125, 56, .6);
  border-radius: 5px;
  color: #e6dcc2;
  background:
    linear-gradient(
      180deg,
      rgba(24, 22, 14, .85),
      rgba(14, 13, 9, .9));
  cursor: pointer;
  text-align: left;
}
.entry-cell:hover {
  border-color: rgba(216, 188, 116, .85);
}
.entry-cell.is-wide {
  grid-column: 1 / -1;
}
.entry-icon {
  display: grid;
  width: 40px;
  height: 42px;
  place-items: center;
}
.entry-icon img {
  max-width: 40px;
  max-height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6));
}
.entry-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.entry-copy b {
  font:
    18px "STKaiti",
    "KaiTi",
    serif;
}
.entry-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.entry-arrow {
  color: #c9ab67;
  font: 24px/1 Arial, sans-serif;
}
.logout-link {
  display: block;
  width: 100%;
  margin: 18px 0 4px;
  padding: 10px 0;
  border: 0;
  color: #8d8271;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  text-align: center;
}
.logout-link:hover {
  color: #c8bda3;
}
.modal-mask {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 4, 2, .72);
  backdrop-filter: blur(3px);
}
.modal-panel {
  width: min(440px, 100%);
  max-height: 82dvh;
  overflow: auto;
  border: 1px solid rgba(178, 142, 73, .8);
  border-radius: 6px;
  background:
    linear-gradient(
      180deg,
      #17160e,
      #100f0a);
  box-shadow: 0 30px 80px #000d, inset 0 0 0 3px rgba(205, 171, 99, .04);
}
.modal-panel.is-wide {
  width: min(640px, 100%);
}
.modal-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(156, 125, 56, .4);
  background: rgba(18, 17, 10, .97);
}
.modal-head h3 {
  margin: 0;
  color: var(--gold-bright);
  font:
    700 21px "STKaiti",
    "KaiTi",
    serif;
}
.modal-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(156, 125, 56, .6);
  border-radius: 4px;
  color: #d8c491;
  background: transparent;
  cursor: pointer;
  font-size: 17px;
}
.modal-body {
  padding: 14px 16px 18px;
}
.load-state {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 180px;
  margin-top: 12px;
  border: 1px dashed rgba(156, 125, 56, .4);
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.load-seal {
  display: grid;
  width: 40px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(156, 125, 56, .6);
  color: #d8bc74;
  font: 20px "STKaiti", serif;
  animation: seal-pulse 1.2s ease-in-out infinite;
}
@keyframes seal-pulse {
  50% {
    opacity: .45;
  }
}
.load-state.is-error p {
  max-width: 82%;
  color: #dfa99b;
  line-height: 1.7;
}
.load-state button {
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid #ac8442;
  border-radius: 3px;
  color: #f1d69c;
  background: #332310;
  cursor: pointer;
}
.artifact-detail {
  display: grid;
  gap: 12px;
}
.artifact-hero {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.artifact-hero .item-thumb {
  max-height: 108px;
}
.artifact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 4px 0;
  color: var(--muted);
  font-size: 12px;
}
.artifact-attrs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 0;
}
.artifact-attrs div {
  display: flex;
  justify-content: space-between;
  padding: 7px 10px;
  border: 1px solid rgba(156, 125, 56, .35);
  border-radius: 4px;
  background: rgba(10, 10, 6, .6);
}
.artifact-attrs dt {
  color: var(--muted);
  font-size: 12px;
}
.artifact-attrs dd {
  margin: 0;
  color: #ecdfc0;
  font-family: Georgia, serif;
  font-size: 13px;
}
.artifact-level-note {
  margin: 0 0 -6px;
  color: #e2c675;
  font-size: 12px;
}
.artifact-level-rule {
  margin: -5px 0 0;
  color: #8f856e;
  font-size: 10px;
  line-height: 1.6;
}
.artifact-level-rule sup {
  color: #cbb474;
}
.artifact-effect {
  padding: 10px 12px;
  border-left: 2px solid #b69452;
  background: rgba(182, 148, 82, .08);
}
.artifact-effect h4 {
  margin: 0 0 5px;
  color: #e8d096;
  font: 16px "STKaiti", serif;
}
.artifact-effect p {
  margin: 3px 0;
  color: #cfc4aa;
  font-size: 12px;
  line-height: 1.7;
}
.artifact-summary,
.artifact-history {
  margin: 0;
  color: #b6ac93;
  font-size: 12px;
  line-height: 1.8;
}
.affinity-list {
  display: grid;
  gap: 8px;
}
.affinity-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(156, 125, 56, .35);
  border-radius: 4px;
  background: rgba(11, 11, 7, .6);
}
.affinity-name {
  color: #ddd2b4;
  font-size: 14px;
}
.affinity-track {
  display: flex;
  gap: 5px;
}
.affinity-node {
  display: grid;
  flex: 1;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(156, 125, 56, .4);
  border-radius: 3px;
  color: #6f6854;
  font-style: normal;
  font-size: 11px;
  background: rgba(9, 9, 6, .7);
}
.affinity-node.is-on {
  border-color: #d8bc74;
  color: #2a1c07;
  background:
    linear-gradient(
      180deg,
      #e0c684,
      #c3a054);
}
.affinity-grade {
  color: #e8d096;
  font-family: Georgia, serif;
  font-size: 15px;
  text-align: center;
}
.tag-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tag-list li {
  display: grid;
  gap: 3px;
  padding: 9px 12px;
  border: 1px solid rgba(156, 125, 56, .35);
  border-radius: 4px;
  background: rgba(11, 11, 7, .6);
}
.tag-list b {
  color: #e8dfc4;
  font-size: 14px;
}
.tag-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.edit-profile {
  display: grid;
  grid-template-columns: minmax(110px, 32%) minmax(0, 1fr);
  gap: 14px;
}
.edit-avatar {
  display: grid;
  gap: 8px;
  justify-items: center;
  align-content: start;
}
.edit-avatar img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 1px solid rgba(156, 125, 56, .7);
  border-radius: 5px;
}
.edit-fields {
  display: grid;
  gap: 12px;
  align-content: start;
}
.edit-field {
  display: grid;
  gap: 6px;
}
.edit-field span {
  color: var(--muted);
  font-size: 12px;
}
.edit-field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(156, 125, 56, .55);
  border-radius: 4px;
  outline: 0;
  color: #f0e7cd;
  background: rgba(9, 9, 6, .8);
  font-size: 14px;
}
.edit-field input:focus {
  border-color: #d8bc74;
  box-shadow: 0 0 0 2px rgba(216, 188, 116, .12);
}
.edit-note {
  margin: 2px 0 0;
  color: #8d8271;
  font-size: 11px;
  line-height: 1.7;
}
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.avatar-cell {
  aspect-ratio: 1/1;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(156, 125, 56, .5);
  border-radius: 4px;
  background: #0b0a07;
  cursor: pointer;
}
.avatar-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-cell.is-active {
  border-color: #ecd48c;
  box-shadow: 0 0 0 2px rgba(236, 212, 140, .35);
}
.picker-list {
  display: grid;
  gap: 8px;
}
.picker-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(156, 125, 56, .4);
  border-radius: 4px;
  color: #e6dcc2;
  background: rgba(13, 13, 8, .75);
  cursor: pointer;
  text-align: left;
}
.picker-row:hover {
  border-color: rgba(216, 188, 116, .8);
}
.picker-row.is-static {
  cursor: default;
}
.picker-thumb {
  display: grid;
  width: 46px;
  height: 46px;
  overflow: hidden;
  place-items: center;
  border-radius: 3px;
  background: rgba(8, 8, 5, .85);
}
.picker-thumb.is-empty {
  border: 1px dashed rgba(156, 125, 56, .5);
  color: #8d8271;
  font-size: 13px;
}
.picker-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.picker-copy b {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.picker-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.equipment-compare-subtitle {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}
.equipment-compare-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.equipment-compare-card {
  min-height: 150px;
  padding: 12px;
  border: 1px solid rgba(156, 125, 56, .55);
  border-radius: 4px;
  background: rgba(10, 9, 6, .68);
}
.equipment-compare-card > span {
  color: #cbb474;
  font-size: 11px;
}
.equipment-compare-card h4 {
  margin: 9px 0 8px;
  color: #f0dda4;
  font:
    20px "STKaiti",
    "KaiTi",
    serif;
}
.equipment-compare-card p {
  margin: 7px 0 0;
  color: #cfc4aa;
  font-size: 12px;
  line-height: 1.7;
}
.equipment-compare-card p b {
  color: #e8d096;
  font-weight: 500;
}
.equipment-compare-card .equipment-compare-attrs {
  color: #dfc987;
}
.equipment-compare-card .equipment-compare-empty {
  color: #756d5b;
}
.equipment-compare-caption {
  margin: 14px 0 8px;
  color: #d8c491;
  font-size: 12px;
}
.equipment-compare-table {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  border: 1px solid rgba(156, 125, 56, .4);
  border-bottom: 0;
}
.equipment-compare-table > span {
  padding: 8px 9px;
  border-bottom: 1px solid rgba(156, 125, 56, .4);
  color: #a99b7c;
  background: rgba(72, 51, 20, .42);
  font-size: 11px;
}
.equipment-compare-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1.1fr repeat(3, 1fr);
}
.equipment-compare-row > * {
  margin: 0;
  padding: 8px 9px;
  border-bottom: 1px solid rgba(156, 125, 56, .4);
  color: #d8cfb7;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
}
.equipment-compare-row b {
  color: #cbb474;
}
.equipment-compare-row em.is-up {
  color: #8fd0a8;
}
.equipment-compare-row em.is-down {
  color: #df8e7a;
}
.equipment-compare-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 2px solid #a98645;
  color: #9f947b;
  background: rgba(109, 78, 27, .09);
  font-size: 11px;
  line-height: 1.7;
}
@media (max-width: 520px) {
  .modal-mask {
    padding: 10px;
  }
  .equipment-compare-cards {
    grid-template-columns: 1fr;
  }
  .equipment-compare-card {
    min-height: 0;
  }
  .equipment-compare-table,
  .equipment-compare-row {
    grid-template-columns: .9fr repeat(3, 1fr);
  }
  .equipment-compare-table > span,
  .equipment-compare-row > * {
    padding: 7px 5px;
    font-size: 10px;
    text-align: center;
  }
  .equipment-compare-table > span:first-child,
  .equipment-compare-row > *:first-child {
    text-align: left;
  }
}
.draw-history-list {
  display: grid;
  gap: 9px;
}
.draw-history-row {
  padding: 11px 12px;
  border: 1px solid rgba(156, 125, 56, .48);
  border-radius: 4px;
  background: rgba(10, 10, 6, .82);
}
.draw-history-head,
.draw-history-row footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.draw-history-head b {
  color: #eee3c4;
  font-size: 15px;
}
.draw-history-title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.draw-history-title span {
  flex: none;
  padding: 2px 6px;
  border: 1px solid rgba(202, 157, 67, .72);
  border-radius: 3px;
  color: #e6c46f;
  background: rgba(92, 62, 16, .38);
  font-size: 10px;
  line-height: 1.25;
}
.draw-history-head time {
  flex: none;
  color: #93866b;
  font-size: 10px;
}
.draw-history-row p {
  margin: 8px 0;
  color: #cbbf9f;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.draw-history-row footer {
  color: #9f9274;
  font-size: 11px;
}
.draw-history-row .grant-status {
  flex: none;
}
.draw-history-more {
  display: block;
  min-width: 120px;
  min-height: 36px;
  margin: 13px auto 0;
  border: 1px solid rgba(180, 141, 62, .72);
  border-radius: 3px;
  color: #e5cf91;
  background: rgba(45, 34, 14, .72);
  cursor: pointer;
}
.draw-history-more:disabled {
  cursor: wait;
  opacity: .62;
}
.draw-history-error {
  margin: 10px 0 0;
  color: #d88b78;
  font-size: 11px;
  text-align: center;
}
.inventory-toolbar {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) minmax(170px, auto);
  align-items: end;
  gap: 8px;
  margin: 0 0 10px;
}
.inventory-filter {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
}
.inventory-filter select {
  width: 100%;
  min-height: 36px;
  padding: 0 30px 0 10px;
  border: 1px solid rgba(156, 125, 56, .55);
  border-radius: 4px;
  outline: 0;
  color: #ead9aa;
  background: #111008;
  font-size: 12px;
  cursor: pointer;
}
.inventory-filter select:focus {
  border-color: #d8bc74;
  box-shadow: 0 0 0 2px rgba(216, 188, 116, .1);
}
.inventory-bulk-sell {
  display: grid;
  align-content: center;
  min-height: 56px;
  padding: 7px 12px;
  border: 1px solid rgba(177, 133, 56, .68);
  border-radius: 4px;
  color: #f0d796;
  background:
    linear-gradient(
      180deg,
      rgba(70, 48, 17, .9),
      rgba(39, 27, 10, .94));
  cursor: pointer;
}
.inventory-bulk-sell span {
  font:
    14px "STKaiti",
    "KaiTi",
    serif;
}
.inventory-bulk-sell small {
  margin-top: 3px;
  color: #bca878;
  font-size: 10px;
}
.inventory-bulk-sell:disabled {
  cursor: default;
  filter: grayscale(.65);
  opacity: .48;
}
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.inventory-cell {
  display: grid;
  gap: 5px;
  padding: 9px;
  border: 1px solid rgba(156, 125, 56, .45);
  border-radius: 5px;
  background: rgba(12, 12, 8, .75);
}
.inventory-cell.is-locked {
  border-style: dashed;
  opacity: .82;
}
.inventory-art {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 84px;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  outline: 0;
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(92, 70, 32, .32),
      rgba(8, 8, 5, .92));
  cursor: pointer;
}
.inventory-art::after {
  position: absolute;
  right: 5px;
  top: 5px;
  color: rgba(235, 215, 159, .72);
  content: "\67e5\770b";
  font-size: 9px;
  opacity: 0;
  transition: opacity .15s ease;
}
.inventory-art:hover::after,
.inventory-art:focus-visible::after {
  opacity: 1;
}
.inventory-art:focus-visible {
  box-shadow: inset 0 0 0 1px #d8bc74;
}
.inventory-count {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 1px 6px;
  border-radius: 3px;
  color: #f0e6c8;
  background: rgba(6, 6, 4, .85);
  font-size: 11px;
}
.inventory-level {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 1px 6px;
  border-radius: 3px;
  color: #101d16;
  background: #9fd8bd;
  font-size: 10px;
}
.inventory-name {
  overflow: hidden;
  color: #e8dfc8;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inventory-meta {
  color: var(--muted);
  font-size: 11px;
}
.inventory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}
.inventory-actions button {
  flex: 1;
  min-height: 28px;
  padding: 0 4px;
  border: 1px solid rgba(156, 125, 56, .55);
  border-radius: 3px;
  color: #d8c491;
  background: rgba(22, 19, 11, .7);
  cursor: pointer;
  font-size: 11px;
}
.inventory-actions button:hover {
  border-color: rgba(216, 188, 116, .85);
  color: #f0dfa8;
}
.confirm-text {
  margin: 4px 0 14px;
  color: #d9cfae;
  font-size: 14px;
  line-height: 1.8;
}
.inventory-bulk-summary {
  margin: -5px 0 10px;
  padding: 9px 10px;
  border: 1px solid rgba(156, 125, 56, .35);
  color: #e4d4a8;
  background: rgba(9, 9, 5, .6);
  font-size: 12px;
  line-height: 1.7;
}
.inventory-bulk-protected {
  margin: 0;
  color: #a99d80;
  font-size: 11px;
  line-height: 1.7;
}
.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  margin-top: 14px;
}
.cultivate-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.cultivate-meta p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 9px 8px;
  border: 1px solid rgba(156, 125, 56, .35);
  border-radius: 4px;
  background: rgba(11, 11, 7, .6);
  text-align: center;
}
.cultivate-meta span {
  color: var(--muted);
  font-size: 11px;
}
.cultivate-meta b {
  color: #ecdfc0;
  font-size: 15px;
}
.pill-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pill-modes button {
  min-height: 44px;
  border: 1px solid rgba(156, 125, 56, .55);
  border-radius: 4px;
  color: #c5b795;
  background: rgba(13, 13, 8, .78);
  cursor: pointer;
  font-size: 14px;
}
.pill-modes button.is-active {
  border-color: #d8bc74;
  color: #f3e3b2;
  background:
    linear-gradient(
      180deg,
      rgba(74, 56, 22, .85),
      rgba(46, 35, 14, .9));
}
.pill-rule {
  margin: 12px 0;
  color: #c9bea2;
  font-size: 13px;
  line-height: 1.7;
}
.pill-use-count {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) 34px 58px 34px auto auto;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid rgba(156, 125, 56, .42);
  border-radius: 4px;
  background: rgba(9, 9, 5, .55);
  color: #d9cba8;
}
.pill-use-count button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(178, 142, 73, .62);
  border-radius: 3px;
  color: #ead89f;
  background: rgba(35, 27, 12, .82);
  cursor: pointer;
  font-size: 18px;
}
.pill-use-count button:disabled {
  opacity: .35;
  cursor: default;
}
.pill-use-count input {
  width: 58px;
  height: 34px;
  padding: 0 4px;
  border: 1px solid rgba(178, 142, 73, .5);
  border-radius: 3px;
  color: #f1e4bf;
  background: #0c0c08;
  text-align: center;
}
.pill-use-count b {
  color: #f0dfa9;
  font-size: 13px;
}
.pill-use-count small {
  justify-self: end;
  color: var(--muted);
  font-size: 11px;
}
.pill-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.pill-stat-grid > div {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  padding: 9px 3px;
  border: 1px solid rgba(156, 125, 56, .35);
  border-radius: 4px;
  background: rgba(11, 11, 7, .64);
}
.pill-stat-grid > div.is-selected {
  border-color: rgba(216, 188, 116, .85);
  background: rgba(61, 45, 17, .62);
}
.pill-stat-grid span {
  color: #e8d9ad;
  font-size: 13px;
}
.pill-stat-grid small,
.pill-stat-grid em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}
.pill-stat-grid div div {
  display: grid;
  grid-template-columns: 27px minmax(20px, 1fr) 27px;
  align-items: center;
  width: 100%;
}
.pill-stat-grid div div button {
  width: 27px;
  height: 27px;
  padding: 0;
  border: 1px solid rgba(178, 142, 73, .55);
  color: #ead89f;
  background: rgba(27, 22, 11, .9);
  cursor: pointer;
  font-size: 16px;
}
.pill-stat-grid div div button:disabled {
  opacity: .28;
  cursor: default;
}
.pill-stat-grid div div b {
  color: #f5e6b7;
  text-align: center;
  font-size: 16px;
}
.pill-allocation-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(156, 125, 56, .35);
  color: #bdb092;
  background: rgba(9, 9, 5, .55);
  font-size: 12px;
}
.pill-allocation-result.is-complete {
  border-color: rgba(104, 175, 145, .58);
  color: #9cd6bd;
}
.pill-allocation-result button {
  border: 0;
  color: #e2c979;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}
.pill-affinities {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.pill-affinities button {
  display: grid;
  gap: 4px;
  min-height: 52px;
  place-items: center;
  border: 1px solid rgba(156, 125, 56, .45);
  border-radius: 4px;
  color: #c5b795;
  background: rgba(13, 13, 8, .78);
  cursor: pointer;
}
.pill-affinities button.is-active {
  border-color: #d8bc74;
  color: #f3e3b2;
  background: rgba(74, 56, 22, .85);
}
.pill-affinities span {
  font-size: 12px;
}
.pill-affinities b {
  font-family: Georgia, serif;
  font-size: 15px;
}
.pill-affinity-cost {
  margin: 10px 0 0;
  color: #c9bea2;
  font-size: 12px;
  text-align: right;
}
.pill-affinity-cost b {
  color: #f0d98e;
  font-size: 15px;
}
.fate-fragment-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3px 12px;
  padding: 11px 13px;
  border: 1px solid rgba(216, 188, 116, .58);
  border-radius: 4px;
  color: #d8c79d;
  background: rgba(69, 49, 17, .38);
}
.fate-fragment-summary span {
  font-size: 12px;
}
.fate-fragment-summary b {
  color: #f2dda1;
  font: 22px Georgia, serif;
}
.fate-fragment-summary em {
  grid-column: 1 / -1;
  color: #9cd6bd;
  font-size: 11px;
  font-style: normal;
}
.fate-fragment-heading {
  margin: 14px 0 8px;
  color: #e6d29b;
  font:
    16px "STKaiti",
    "KaiTi",
    serif;
  font-weight: 500;
}
.fate-fragment-affinities {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.fate-fragment-affinities > div {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  padding: 9px 3px;
  border: 1px solid rgba(156, 125, 56, .35);
  border-radius: 4px;
  background: rgba(11, 11, 7, .64);
}
.fate-fragment-affinities > div.is-selected {
  border-color: rgba(216, 188, 116, .85);
  background: rgba(61, 45, 17, .62);
}
.fate-fragment-affinities span {
  color: #e8d9ad;
  font-size: 13px;
}
.fate-fragment-affinities small {
  color: var(--muted);
  font-size: 10px;
}
.fate-fragment-affinities > div > b {
  color: #f0d98e;
  font: 14px Georgia, serif;
  white-space: nowrap;
}
.fate-fragment-affinities > div > div {
  display: grid;
  grid-template-columns: 31px minmax(20px, 1fr) 31px;
  align-items: center;
  width: 100%;
}
.fate-fragment-affinities button {
  width: 31px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(178, 142, 73, .55);
  color: #ead89f;
  background: rgba(27, 22, 11, .9);
  cursor: pointer;
  font-size: 11px;
}
.fate-fragment-affinities button:disabled {
  opacity: .28;
  cursor: default;
}
.fate-fragment-affinities em {
  color: #f5e6b7;
  text-align: center;
  font-size: 13px;
  font-style: normal;
}
.affinity-fragment-note {
  margin: 10px 0 0;
  color: #cbb474;
  font-size: 11px;
}
.recharge-balance {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.recharge-balance-copy {
  display: grid;
  gap: 2px;
}
.recharge-balance-copy span {
  color: #cfc2a2;
  font-size: 13px;
}
.recharge-balance-copy p {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}
.recharge-balance-copy b {
  color: #f0e7cd;
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 500;
}
.recharge-balance-copy small {
  color: var(--muted);
  font-size: 12px;
}
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.amount-cell {
  display: grid;
  gap: 6px;
  min-height: 86px;
  place-items: center;
  padding: 10px 4px;
  border: 1px solid rgba(156, 125, 56, .55);
  border-radius: 5px;
  color: #ddd2b4;
  background:
    linear-gradient(
      180deg,
      rgba(22, 20, 13, .9),
      rgba(13, 12, 8, .94));
  cursor: pointer;
}
.amount-cell b {
  font-family: Georgia, serif;
  font-size: clamp(18px, 4.6vw, 24px);
  font-weight: 500;
}
.amount-cell span {
  color: var(--muted);
  font-size: 11px;
}
.amount-cell.is-active {
  border-color: #ecd48c;
  color: #f3e7c4;
  background:
    linear-gradient(
      180deg,
      rgba(74, 56, 22, .9),
      rgba(40, 30, 12, .94));
  box-shadow: inset 0 0 0 1px rgba(236, 212, 140, .2), 0 0 14px rgba(216, 188, 116, .14);
}
.custom-amount {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  border: 1px solid rgba(156, 125, 56, .55);
  border-radius: 5px;
  background: rgba(9, 9, 6, .85);
}
.custom-amount.is-active {
  border-color: #ecd48c;
}
.custom-currency {
  display: grid;
  height: 100%;
  min-height: 48px;
  place-items: center;
  border-right: 1px solid rgba(156, 125, 56, .4);
  color: #d8bc74;
  font-family: Georgia, serif;
  font-size: 20px;
}
.custom-amount input {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: #f0e7cd;
  background: transparent;
  font-family: Georgia, serif;
  font-size: 17px;
}
.custom-amount input::placeholder {
  color: #6f685a;
}
.recharge-note {
  margin: 7px 2px 0;
  color: #8d8271;
  font-size: 11px;
}
.recharge-summary {
  display: grid;
  gap: 0;
  padding: 6px 16px;
}
.recharge-summary p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid rgba(156, 125, 56, .28);
}
.recharge-summary p:last-child {
  border-bottom: 0;
}
.recharge-summary span {
  color: var(--muted);
  font-size: 13px;
}
.recharge-summary b {
  color: #ecdfc0;
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 500;
}
.recharge-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 6px;
  color: #cfc2a2;
  font-size: 13px;
  justify-content: center;
}
.recharge-hint i {
  flex: 1;
  max-width: 90px;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(216, 188, 116, .55),
      transparent);
}
.recharge-foot {
  margin: 14px 0 6px;
  color: #8d8271;
  font-size: 11px;
  text-align: center;
}
.flow-panel,
.grant-panel {
  padding: 6px 16px 10px;
}
.flow-date {
  margin: 8px 0 2px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(156, 125, 56, .4);
  color: var(--gold-bright);
  font:
    700 19px "STKaiti",
    "KaiTi",
    serif;
}
.flow-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(156, 125, 56, .22);
}
.flow-row:last-child {
  border-bottom: 0;
}
.flow-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.flow-main b {
  color: #e8dfc8;
  font-size: 15px;
  font-weight: 500;
}
.flow-main span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.flow-side {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 3px;
}
.flow-side b {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 500;
}
.flow-side .is-income {
  color: var(--jade);
}
.flow-side .is-expense {
  color: var(--gold-soft);
}
.flow-side span {
  color: var(--muted);
  font-size: 11px;
}
.grant-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(156, 125, 56, .22);
}
.grant-row:last-child {
  border-bottom: 0;
}
.grant-row.is-revoked {
  opacity: .62;
}
.grant-time {
  padding-top: 2px;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 12px;
}
.grant-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.grant-main b {
  color: #e8dfc8;
  font-size: 15px;
  font-weight: 500;
}
.grant-draw {
  color: #b9a879;
  font-size: 11px;
}
.grant-items {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.grant-side {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 6px;
}
.grant-thumb {
  display: grid;
  width: 46px;
  height: 46px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(156, 125, 56, .45);
  border-radius: 4px;
  background: rgba(8, 8, 5, .85);
}
.grant-thumb .item-thumb {
  max-height: 46px;
}
.grant-link {
  padding: 2px 0;
  border: 0;
  color: #d8bc74;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}
.grant-status {
  color: var(--jade);
  font-style: normal;
  font-size: 12px;
  white-space: nowrap;
}
.grant-status.is-off {
  color: #8d8474;
}
.grant-detail-meta {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}
.grant-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.grant-detail-cell {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 9px 6px;
  border: 1px solid rgba(156, 125, 56, .4);
  border-radius: 4px;
  background: rgba(11, 11, 7, .7);
  text-align: center;
}
.grant-detail-cell .item-thumb {
  max-height: 72px;
}
.grant-detail-cell b {
  overflow: hidden;
  max-width: 100%;
  color: #e8dfc8;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.grant-detail-cell small {
  color: var(--muted);
  font-size: 10px;
}
.board-heading {
  margin: 14px 4px 10px;
  color: #f0e7cd;
  font:
    700 clamp(19px, 4.6vw, 25px) "STKaiti",
    "KaiTi",
    serif;
}
.dungeon-period-controls {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 12px;
}
.dungeon-scope-tabs {
  flex: 1;
  margin-top: 0;
}
.dungeon-month-picker {
  display: grid;
  gap: 4px;
  min-width: 150px;
  color: var(--muted);
  font-size: 10px;
}
.dungeon-month-picker select {
  width: 100%;
  min-height: 38px;
  padding: 0 28px 0 10px;
  border: 1px solid rgba(156, 125, 56, .55);
  border-radius: 4px;
  color: #f0dfad;
  background: #111008;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.dungeon-month-picker select:disabled {
  cursor: default;
  opacity: .55;
}
.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 8px;
  margin-top: 4px;
}
.podium-cell {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 26px 8px 12px;
  border: 1px solid rgba(156, 125, 56, .55);
  border-radius: 6px;
  background:
    linear-gradient(
      180deg,
      rgba(22, 20, 13, .9),
      rgba(12, 12, 8, .94));
}
.podium-cell.is-rank-1 {
  padding-top: 34px;
  padding-bottom: 18px;
  border-color: rgba(236, 212, 140, .75);
  background:
    linear-gradient(
      180deg,
      rgba(64, 48, 20, .92),
      rgba(30, 22, 10, .95));
  box-shadow: 0 0 22px rgba(216, 188, 116, .12);
}
.podium-medal {
  position: absolute;
  top: 7px;
  left: 8px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #9e7539;
  border-radius: 50%;
  color: #f1cb68;
  background: #572817;
  font: 13px "STKaiti", serif;
}
.podium-cell.is-rank-1 .podium-medal {
  background: #6b4a12;
}
.rank-avatar {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border: 1px solid rgba(156, 125, 56, .6);
  border-radius: 50%;
  background: #0b0a07;
}
.podium-cell.is-rank-1 .rank-avatar {
  width: 58px;
  height: 58px;
}
.podium-cell b {
  color: #eee5cf;
  font-size: 14px;
}
.podium-score {
  color: #d8bc74;
  font-family: Georgia, serif;
  font-size: 12px;
}
.rank-table {
  margin-top: 10px;
  border: 1px solid rgba(156, 125, 56, .5);
  border-radius: 6px;
  overflow: hidden;
}
.rank-head,
.rank-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 84px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
.rank-table.is-level-board .rank-head,
.rank-table.is-level-board .rank-row {
  grid-template-columns: 54px minmax(0, 1fr) 72px 88px;
}
.rank-table.is-tier-board .rank-head,
.rank-table.is-tier-board .rank-row {
  grid-template-columns: 54px minmax(0, 1fr) 92px 60px;
}
.rank-head {
  min-height: 36px;
  color: var(--muted);
  background: rgba(20, 19, 12, .9);
  font-size: 12px;
}
.rank-head span:last-child,
.rank-score {
  text-align: right;
}
.rank-row {
  min-height: 46px;
  border-top: 1px solid rgba(156, 125, 56, .22);
  background: rgba(13, 13, 8, .72);
}
.rank-no {
  color: #d8bc74;
  font-family: Georgia, serif;
  font-size: 15px;
}
.rank-player {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  color: #e8dfc8;
  font-size: 14px;
}
.rank-player .rank-avatar {
  width: 30px;
  height: 30px;
  flex: none;
}
.rank-score {
  color: #ecdfc0;
  font-family: Georgia, serif;
  font-size: 15px;
}
.rank-tier {
  color: #d8bc74;
  text-align: center;
  white-space: nowrap;
}
.rank-table.is-tier-board .rank-player > span {
  min-width: 0;
}
.rank-table.is-tier-board .rank-player b,
.rank-table.is-tier-board .rank-player small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-table.is-tier-board .rank-player b {
  color: #ecdfc0;
  font-weight: 500;
}
.rank-table.is-tier-board .rank-player small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}
.own-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 14px;
  border: 1px solid rgba(156, 125, 56, .65);
  border-radius: 6px;
  background:
    linear-gradient(
      180deg,
      rgba(26, 24, 15, .92),
      rgba(15, 14, 9, .95));
}
.own-strip > span:first-child {
  color: #cfc2a2;
  font-size: 13px;
}
.own-strip > span:first-child b {
  color: #f0dfa8;
  font-weight: 500;
}
.own-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e8dfc8;
  font-size: 13px;
}
.own-user .rank-avatar {
  width: 28px;
  height: 28px;
}
.own-rank {
  color: #d8bc74;
  font-size: 12px;
  white-space: nowrap;
}
.ranking-scroll-status {
  min-height: 42px;
  padding: 13px 0 4px;
  color: #8f836a;
  font-size: 11px;
  text-align: center;
}
.ranking-scroll-status button {
  min-height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(156, 125, 56, .65);
  border-radius: 3px;
  color: #e3c98f;
  background: rgba(30, 24, 12, .86);
  cursor: pointer;
}
.rank-foot {
  margin: 14px 4px;
  color: #7d7462;
  font-size: 11px;
  text-align: center;
}
.archive-search {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  margin-top: 12px;
  border: 1px solid rgba(156, 125, 56, .6);
  border-radius: 5px;
  background: rgba(10, 10, 6, .85);
}
.archive-search i {
  display: grid;
  place-items: center;
  color: #8d8271;
  font-size: 16px;
  font-style: normal;
}
.archive-search input {
  width: 100%;
  height: 44px;
  border: 0;
  outline: 0;
  color: #f0e7cd;
  background: transparent;
  font-size: 14px;
}
.archive-search input::placeholder {
  color: #6f685a;
}
.archive-search button {
  height: 34px;
  margin-right: 5px;
  padding: 0 14px;
  border: 1px solid rgba(156, 125, 56, .65);
  border-radius: 4px;
  color: #e3c98f;
  background: rgba(30, 24, 12, .8);
  cursor: pointer;
  font-size: 12px;
}
.archive-filters {
  margin-top: 10px;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  justify-content: space-between;
}
.filter-row + .filter-row {
  margin-top: 6px;
}
.filter-row button {
  position: relative;
  padding: 5px 8px;
  border: 0;
  color: #b3a88d;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}
.filter-row button.is-active {
  color: #f0dfa8;
}
.filter-row button.is-active::after {
  content: "";
  position: absolute;
  right: 18%;
  bottom: 0;
  left: 18%;
  height: 2px;
  background: #d5b96f;
  box-shadow: 0 0 8px rgba(199, 155, 65, .72);
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.archive-card {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(156, 125, 56, .6);
  border-radius: 6px;
  background:
    linear-gradient(
      180deg,
      rgba(20, 19, 12, .92),
      rgba(12, 12, 8, .95));
  cursor: pointer;
  text-align: left;
}
.archive-card:hover {
  border-color: rgba(216, 188, 116, .85);
}
.archive-art {
  display: grid;
  min-height: 108px;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(92, 70, 32, .3),
      rgba(8, 8, 5, .92));
}
.archive-info {
  display: grid;
  gap: 3px;
}
.archive-info b {
  color: #eee5cf;
  font-size: 15px;
}
.archive-info small {
  font-size: 11px;
}
.archive-link {
  position: absolute;
  right: 10px;
  bottom: 9px;
  color: #b9a06a;
  font-size: 11px;
}
.workshop-hero {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(156, 125, 56, .55);
  border-radius: 6px;
  background: #070705;
}
.workshop-hero img {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  filter: saturate(.9) brightness(.92);
}
.featured-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.featured-cell {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 7px;
  border: 1px solid rgba(156, 125, 56, .5);
  border-radius: 5px;
  background: rgba(12, 12, 8, .8);
  cursor: pointer;
}
.featured-cell:hover {
  border-color: rgba(216, 188, 116, .8);
}
.featured-cell .item-thumb {
  max-height: 84px;
}
.featured-cell b {
  overflow: hidden;
  max-width: 100%;
  color: #ddd2b4;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.count-tabs button {
  font:
    16px "STKaiti",
    "KaiTi",
    serif;
}
.pity-bar {
  margin-top: 12px;
}
.pity-bar p {
  margin: 0 0 7px;
  color: #cfc2a2;
  font-size: 12px;
  text-align: center;
}
.pity-bar.is-warn {
  margin: 8px 0 0;
  color: #dfa99b;
}
.workshop-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 14px;
}
.workshop-links button {
  padding: 3px 2px;
  border: 0;
  border-bottom: 1px solid rgba(216, 188, 116, .5);
  color: #d8bc74;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}
.pool-group + .pool-group {
  margin-top: 12px;
}
.pool-group h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #ddd2b4;
  font-size: 13px;
  font-weight: 500;
}
.pool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 6px;
}
.pool-cell {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 6px;
  border: 1px solid rgba(156, 125, 56, .35);
  border-radius: 4px;
  background: rgba(11, 11, 7, .7);
}
.pool-cell .item-thumb {
  max-height: 64px;
}
.pool-cell b {
  overflow: hidden;
  max-width: 100%;
  color: #ddd2b4;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workshop-mode-tabs {
  margin-top: 10px;
  border-color: rgba(184, 139, 62, .58);
  background: rgba(7, 6, 3, .88);
}
.workshop-mode-tabs button {
  min-height: 42px;
  font:
    16px "STKaiti",
    "KaiTi",
    serif;
}
.workshop-pack-market {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid rgba(190, 144, 64, .58);
  background:
    linear-gradient(
      180deg,
      rgba(28, 17, 7, .92),
      rgba(7, 6, 3, .97));
  box-shadow: inset 0 0 45px #000, 0 12px 28px rgba(0, 0, 0, .38);
}
.workshop-pack-market > header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(173, 129, 56, .42);
}
.workshop-pack-market > header > span {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  border: 1px solid #b98a3b;
  border-radius: 50%;
  color: #efd18a;
  background:
    radial-gradient(
      circle,
      #5b3814,
      #0a0703 70%);
  font: 27px "STKaiti", serif;
  box-shadow: inset 0 0 14px #000, 0 0 22px rgba(204, 139, 37, .2);
}
.workshop-pack-market > header div {
  min-width: 0;
}
.workshop-pack-market > header small {
  color: #75664c;
  font: 7px Georgia, serif;
  letter-spacing: .18em;
}
.workshop-pack-market > header h3 {
  margin: 1px 0 2px;
  color: #eed397;
  font: 22px "STKaiti", serif;
}
.workshop-pack-market > header p {
  margin: 0;
  color: #9f8d68;
  font-size: 10px;
  line-height: 1.5;
}
.workshop-pack-tier {
  margin-top: 10px;
}
.workshop-pack-tier button {
  min-height: 37px;
}
.workshop-pack-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0;
  padding: 7px 9px;
  border: 1px solid rgba(158, 116, 47, .35);
  color: #a99770;
  background: rgba(4, 4, 2, .56);
  font-size: 9px;
}
.workshop-pack-note b {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid #ad8036;
  border-radius: 50%;
  color: #e0bf73;
  font: 14px "STKaiti", serif;
}
.workshop-pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.workshop-pack-grid.is-immortal {
  grid-template-columns: 1fr;
}
.workshop-pack-grid:not(.is-immortal) .workshop-pack-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.workshop-pack-card {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(190, 143, 61, .62);
  color: #cab078;
  cursor: pointer;
  background:
    linear-gradient(
      160deg,
      rgba(43, 25, 9, .97),
      rgba(7, 6, 3, .98) 58%);
  text-align: left;
  box-shadow: inset 0 0 0 3px rgba(3, 2, 1, .58);
}
.workshop-pack-card:hover {
  border-color: #d8ad57;
}
.workshop-pack-art {
  position: relative;
  display: block;
  height: 118px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 46%,
      rgba(176, 104, 27, .32),
      transparent 43%),
    #070503;
}
.workshop-pack-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      transparent 48%,
      rgba(5, 3, 1, .88));
}
.workshop-pack-art > i {
  position: absolute;
  z-index: 3;
  top: 9px;
  left: 9px;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid #d1a64d;
  border-radius: 50%;
  color: #f2d58f;
  background: rgba(13, 8, 3, .84);
  font: 16px "STKaiti", serif;
  font-style: normal;
}
.workshop-pack-art img {
  --offset: calc((var(--pack-index) - 1) * 23%);
  position: absolute;
  top: 5px;
  left: calc(50% + var(--offset));
  width: 76%;
  height: 104px;
  object-fit: contain;
  filter: saturate(1.18) contrast(1.05) drop-shadow(0 7px 10px #000);
  transform: translateX(-50%) rotate(calc((var(--pack-index) - 1) * 5deg));
}
.workshop-pack-card > small,
.workshop-pack-card > strong,
.workshop-pack-card > p,
.workshop-pack-card > .workshop-pack-odds,
.workshop-pack-card > footer {
  margin-right: 9px;
  margin-left: 9px;
}
.workshop-pack-card > small {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: #806d4e;
  font: 6px Georgia, serif;
  letter-spacing: .11em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workshop-pack-card > strong {
  display: block;
  margin-top: 3px;
  color: #ead092;
  font: 17px "STKaiti", serif;
}
.workshop-pack-card > p {
  min-height: 29px;
  margin-top: 2px;
  margin-bottom: 5px;
  color: #9d8b68;
  font-size: 9px;
  line-height: 1.5;
}
.workshop-pack-odds {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: 5px 0;
  border-top: 1px solid rgba(167, 122, 50, .28);
  color: #8b7959;
  font-size: 8px;
}
.workshop-pack-odds em {
  font-style: normal;
}
.workshop-pack-odds b {
  color: #c6a45f;
  font-weight: 500;
}
.workshop-pack-card footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 0 9px;
  border-top: 1px solid rgba(167, 122, 50, .28);
}
.workshop-pack-card footer > b {
  color: #e2bd6a;
  font-size: 15px;
}
.workshop-pack-card footer i {
  display: block;
  color: #806f50;
  font-size: 7px;
  font-style: normal;
  font-weight: 400;
}
.workshop-pack-card footer > span {
  color: #b99c5b;
  font-size: 9px;
}
.workshop-pack-detail > header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(173, 129, 56, .42);
}
.workshop-pack-detail > header > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #bd8c3b;
  border-radius: 50%;
  color: #f0cf82;
  background:
    radial-gradient(
      circle,
      #593613,
      #080502 72%);
  font: 26px "STKaiti", serif;
}
.workshop-pack-detail header small {
  color: #796848;
  font: 7px Georgia, serif;
  letter-spacing: .12em;
}
.workshop-pack-detail header b {
  display: block;
  color: #e5c77e;
  font: 17px "STKaiti", serif;
}
.workshop-pack-detail header p {
  margin: 2px 0 0;
  color: #95825f;
  font-size: 9px;
}
.workshop-pack-detail header strong {
  color: #e9c570;
  font-size: 18px;
  text-align: right;
}
.workshop-pack-detail header strong em {
  display: block;
  color: #806e4f;
  font-size: 8px;
  font-style: normal;
  font-weight: 400;
}
.workshop-pack-rule {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0;
  padding: 8px 9px;
  border: 1px solid rgba(165, 121, 50, .38);
  color: #b19b6b;
  background: rgba(7, 6, 3, .62);
  font-size: 9px;
}
.workshop-pack-rule b {
  color: #d3b66e;
}
.workshop-pack-pool {
  display: grid;
  gap: 6px;
  max-height: 46dvh;
  overflow: auto;
}
.workshop-pack-pool article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(161, 119, 50, .35);
  background: rgba(8, 7, 4, .72);
}
.workshop-pack-pool .item-thumb {
  height: 58px;
}
.workshop-pack-pool article > div {
  display: grid;
  justify-items: start;
  gap: 2px;
  min-width: 0;
}
.workshop-pack-pool article div b {
  overflow: hidden;
  max-width: 100%;
  color: #e0cfaa;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workshop-pack-pool article div small {
  color: #82765e;
  font-size: 8px;
}
.workshop-pack-pool article > em {
  color: #d2ad5e;
  font-size: 10px;
  font-style: normal;
}
.workshop-pack-buy {
  width: 100%;
  margin-top: 12px;
}
.workshop-pack-buy:disabled {
  opacity: .46;
  cursor: not-allowed;
}
.workshop-supply-market {
  margin-top: 10px;
}
.workshop-supply-market > header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(170, 126, 52, .42);
  background: rgba(5, 4, 2, .62);
}
.workshop-supply-market > header > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #a97d35;
  border-radius: 50%;
  color: #e7c778;
  font: 23px "STKaiti", serif;
}
.workshop-supply-market > header small {
  color: #75654a;
  font: 6px Georgia, serif;
  letter-spacing: .12em;
}
.workshop-supply-market > header h4 {
  margin: 1px 0;
  color: #e4c77e;
  font: 17px "STKaiti", serif;
}
.workshop-supply-market > header p {
  margin: 0;
  color: #8f7d5b;
  font-size: 8px;
}
.workshop-supply-market > header strong {
  color: #e4bd68;
  font-size: 16px;
  text-align: right;
}
.workshop-supply-market > header strong em {
  display: block;
  color: #796849;
  font-size: 7px;
  font-style: normal;
  font-weight: 400;
}
.workshop-supply-filters {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 7px;
  margin: 8px 0;
}
.workshop-supply-filters select,
.workshop-supply-filters label {
  min-width: 0;
  height: 37px;
  border: 1px solid rgba(163, 120, 49, .48);
  color: #c6b083;
  background: rgba(8, 7, 4, .88);
}
.workshop-supply-filters select {
  padding: 0 8px;
  outline: 0;
}
.workshop-supply-filters label {
  display: flex;
  align-items: center;
}
.workshop-supply-filters label span {
  display: grid;
  width: 34px;
  height: 100%;
  place-items: center;
  color: #b7934e;
  font: 15px "STKaiti", serif;
}
.workshop-supply-filters input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  color: #ded0af;
  background: transparent;
  font-size: 11px;
}
.workshop-supply-receipt {
  display: grid;
  gap: 2px;
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px solid rgba(84, 145, 116, .56);
  color: #8fd2b3;
  background: rgba(18, 59, 43, .34);
  font-size: 9px;
}
.workshop-supply-receipt b {
  color: #b8e1cb;
  font-size: 11px;
}
.workshop-supply-receipt span {
  overflow-wrap: anywhere;
}
.workshop-supply-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.workshop-supply-grid article:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.workshop-supply-grid article {
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(164, 121, 51, .48);
  background:
    linear-gradient(
      160deg,
      rgba(36, 22, 9, .85),
      rgba(7, 6, 3, .96) 62%);
}
.workshop-supply-grid article > small {
  display: block;
  margin-top: 5px;
  color: #806f51;
  font-size: 8px;
}
.workshop-supply-grid h5 {
  margin: 2px 0;
  overflow: hidden;
  color: #e1c98e;
  font: 15px "STKaiti", serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workshop-supply-grid article > p {
  min-height: 28px;
  margin: 0;
  color: #95825e;
  font-size: 8px;
  line-height: 1.5;
}
.workshop-supply-image {
  position: relative;
  display: grid;
  width: 100%;
  height: 105px;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border: 0;
  cursor: pointer;
  background:
    radial-gradient(
      circle,
      rgba(126, 80, 24, .27),
      rgba(5, 4, 2, .92));
}
.workshop-supply-image .item-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.12) contrast(1.04);
}
.workshop-supply-image .quality-tag {
  position: absolute;
  top: 5px;
  right: 5px;
}
.workshop-supply-grid footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 5px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(158, 116, 47, .3);
}
.workshop-supply-grid footer > b {
  color: #e2bd68;
  font-size: 14px;
}
.workshop-supply-grid footer i {
  display: block;
  color: #776849;
  font-size: 7px;
  font-style: normal;
  font-weight: 400;
}
.workshop-supply-grid footer button {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid #ad8037;
  color: #d6ba77;
  cursor: pointer;
  background: rgba(26, 16, 6, .86);
  font-size: 9px;
}
.workshop-supply-grid footer button:disabled {
  opacity: .42;
  cursor: default;
}
.workshop-supply-confirm {
  display: grid;
  gap: 10px;
}
.workshop-supply-hero {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.workshop-supply-hero > .item-thumb {
  width: 112px;
  height: 112px;
  object-fit: contain;
  border: 1px solid rgba(171, 128, 56, .45);
  background:
    radial-gradient(
      circle,
      rgba(122, 77, 23, .28),
      #070604 72%);
}
.workshop-supply-hero h4 {
  margin: 5px 0 2px;
  color: #ead39a;
  font: 21px "STKaiti", serif;
}
.workshop-supply-hero p {
  margin: 0;
  color: #8d7c5d;
  font-size: 10px;
}
.workshop-supply-attributes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.workshop-supply-attributes span {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  border: 1px solid rgba(158, 116, 47, .32);
  color: #94815d;
  font-size: 9px;
}
.workshop-supply-attributes b {
  color: #d6b66d;
}
.workshop-supply-effect {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 8px 9px;
  border-left: 2px solid #b7893e;
  color: #97845f;
  background: rgba(8, 7, 4, .62);
  font-size: 9px;
}
.workshop-supply-effect b {
  color: #d8ba73;
  font-size: 11px;
}
.workshop-supply-confirm dl {
  display: grid;
  gap: 5px;
  margin: 0;
}
.workshop-supply-confirm dl div {
  display: flex;
  justify-content: space-between;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(151, 111, 48, .24);
  font-size: 10px;
}
.workshop-supply-confirm dt {
  color: #857658;
}
.workshop-supply-confirm dd {
  margin: 0;
  color: #dac07f;
}
.workshop-supply-footnote {
  color: #796d56;
  font-size: 8px;
  text-align: center;
}
.workshop-draw-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 268px;
  margin-top: 8px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(196, 151, 71, .58);
  background:
    radial-gradient(
      circle at 50% 46%,
      rgba(148, 89, 25, .24),
      transparent 39%),
    linear-gradient(
      135deg,
      rgba(47, 28, 11, .92),
      rgba(4, 4, 2, .98) 31% 69%,
      rgba(47, 28, 11, .92));
  box-shadow:
    inset 0 0 0 4px rgba(5, 3, 2, .58),
    inset 0 0 58px #000,
    0 12px 30px rgba(0, 0, 0, .44);
}
.workshop-draw-stage.is-tenfold.is-cards {
  min-height: 1110px;
  padding: 14px 8px;
}
.workshop-stage-corners {
  position: absolute;
  z-index: 8;
  inset: 6px;
  pointer-events: none;
}
.workshop-stage-corners i {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: #b48745;
  border-style: solid;
  opacity: .62;
}
.workshop-stage-corners i:nth-child(1) {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}
.workshop-stage-corners i:nth-child(2) {
  top: 0;
  right: 0;
  border-width: 1px 1px 0 0;
}
.workshop-stage-corners i:nth-child(3) {
  right: 0;
  bottom: 0;
  border-width: 0 1px 1px 0;
}
.workshop-stage-corners i:nth-child(4) {
  bottom: 0;
  left: 0;
  border-width: 0 0 1px 1px;
}
.workshop-draw-aura {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.workshop-draw-aura i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #e3bb68;
  box-shadow: 0 0 9px #d58b2f;
  animation: workshopStarDrift 7s ease-in-out infinite alternate;
}
.workshop-draw-aura i:nth-child(1) {
  top: 18%;
  left: 21%;
}
.workshop-draw-aura i:nth-child(2) {
  top: 58%;
  right: 18%;
  animation-delay: -2.5s;
}
.workshop-draw-aura i:nth-child(3) {
  right: 44%;
  bottom: 12%;
  animation-delay: -5s;
}
.workshop-draw-aura i:nth-child(4) {
  top: 28%;
  left: 7%;
  animation-delay: -1s;
}
.workshop-draw-aura i:nth-child(5) {
  top: 42%;
  right: 7%;
  animation-delay: -3.7s;
}
.workshop-draw-aura i:nth-child(6) {
  bottom: 24%;
  left: 14%;
  animation-delay: -5.6s;
}
.workshop-draw-aura i:nth-child(7) {
  top: 13%;
  left: 47%;
  animation-delay: -4.4s;
}
.workshop-draw-aura i:nth-child(8) {
  right: 29%;
  bottom: 8%;
  animation-delay: -6.2s;
}
.workshop-draw-aura i:nth-child(9) {
  top: 66%;
  left: 38%;
  animation-delay: -2.2s;
}
.workshop-draw-aura i:nth-child(10) {
  top: 31%;
  right: 35%;
  animation-delay: -.4s;
}
.workshop-draw-aura i:nth-child(11) {
  bottom: 35%;
  left: 4%;
  animation-delay: -4.9s;
}
.workshop-draw-aura i:nth-child(12) {
  top: 9%;
  right: 12%;
  animation-delay: -2.9s;
}
.workshop-idle-seal {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: #dfc27e;
  cursor: pointer;
  background: #070604;
}
.workshop-idle-seal > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) brightness(.67) contrast(1.08);
  transition: filter .25s ease, transform .35s ease;
}
.workshop-idle-seal::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(2, 2, 1, .05),
      rgba(3, 3, 1, .45) 48%,
      rgba(3, 3, 1, .9));
}
.workshop-idle-seal > span {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 18px;
  left: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  text-shadow: 0 3px 10px #000;
}
.workshop-idle-seal i {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 3px;
  place-items: center;
  border: 1px solid #d8ad59;
  border-radius: 50%;
  color: #f1cf82;
  background:
    radial-gradient(
      circle,
      #4b2f14,
      #090604 70%);
  font: 29px "STKaiti", serif;
  box-shadow: inset 0 0 18px #000, 0 0 28px rgba(221, 153, 48, .32);
  animation: workshopSummonCore 1.2s ease-in-out infinite alternate;
}
.workshop-idle-seal small {
  color: #8d7a58;
  font: 7px Georgia, serif;
  letter-spacing: .26em;
}
.workshop-idle-seal b {
  color: #ecd292;
  font: 18px "STKaiti", serif;
  font-weight: 500;
  letter-spacing: .12em;
}
.workshop-idle-seal em {
  color: #aa966e;
  font: 10px "FangSong", serif;
  font-style: normal;
}
.workshop-idle-seal:hover > img {
  filter: saturate(1.18) brightness(.78) contrast(1.08);
  transform: scale(1.025);
}
.workshop-primed {
  position: relative;
  z-index: 2;
  display: grid;
  width: 250px;
  height: 250px;
  place-items: center;
  color: #d4ad61;
  background:
    radial-gradient(
      circle,
      rgba(142, 88, 28, .3),
      transparent 64%);
}
.workshop-primed::before {
  content: "";
  position: absolute;
  inset: -8px;
  opacity: .76;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      transparent 0 11deg,
      rgba(221, 176, 89, .3) 12deg,
      transparent 13deg 29deg);
  animation: workshopOrbit 7s linear infinite;
  mask-image:
    radial-gradient(
      circle,
      transparent 0 37%,
      #000 38% 65%,
      transparent 76%);
}
.workshop-primed::after {
  content: "";
  position: absolute;
  inset: 66px;
  border: 1px solid rgba(244, 207, 128, .52);
  border-radius: 50%;
  box-shadow: 0 0 52px rgba(221, 153, 48, .38), inset 0 0 28px rgba(222, 151, 43, .25);
  animation: workshopSummonHalo 1.1s ease-in-out infinite alternate;
  pointer-events: none;
}
.workshop-fate-seal {
  position: relative;
  z-index: 9;
  display: grid;
  width: 78px;
  height: 78px;
  padding: 0;
  place-items: center;
  border: 1px solid #f0ca76;
  border-radius: 50%;
  color: #f4d78f;
  cursor: pointer;
  background:
    radial-gradient(
      circle at 44% 36%,
      #68401e,
      #190e06 58%,
      #050302 78%);
  font: 40px "STKaiti", serif;
  box-shadow:
    inset 0 0 0 4px #080503,
    inset 0 0 0 5px rgba(245, 207, 124, .34),
    inset 0 0 24px #000,
    0 0 42px rgba(224, 153, 46, .52);
  animation: workshopFateGlow .8s ease-in-out infinite alternate;
}
.workshop-fate-seal:hover {
  color: #fff0bd;
  filter: brightness(1.16);
}
.workshop-fate-seal:active {
  transform: scale(.94);
}
.workshop-primed > i {
  position: absolute;
  border: 1px solid rgba(225, 178, 86, .5);
  border-radius: 50%;
  animation: workshopOrbit 4s linear infinite;
}
.workshop-primed > i:nth-of-type(1) {
  inset: 24px;
  border-style: solid dashed;
}
.workshop-primed > i:nth-of-type(2) {
  inset: 48px;
  border-style: dashed;
  animation-duration: 2.8s;
  animation-direction: reverse;
}
.workshop-primed > i:nth-of-type(3) {
  inset: 5px;
  opacity: .56;
  animation-duration: 7s;
}
.workshop-primed > b,
.workshop-primed > small {
  position: absolute;
  z-index: 7;
  right: -42px;
  left: -42px;
  text-align: center;
  pointer-events: none;
}
.workshop-primed > b {
  bottom: -4px;
  color: #e0c180;
  font: 13px "FangSong", serif;
  font-weight: 400;
  letter-spacing: .14em;
}
.workshop-primed > small {
  bottom: -24px;
  color: #8f7a59;
  font: 8px "FangSong", serif;
  letter-spacing: .08em;
}
.workshop-prime-cancel {
  position: absolute;
  z-index: 10;
  right: 50%;
  bottom: -52px;
  min-width: 88px;
  min-height: 28px;
  border: 1px solid rgba(173, 128, 55, .48);
  color: #9d8963;
  cursor: pointer;
  background: rgba(11, 8, 4, .86);
  font: 10px "FangSong", serif;
  transform: translateX(50%);
}
.workshop-prime-cancel:hover {
  border-color: rgba(216, 177, 96, .72);
  color: #d4ba7b;
}
.workshop-draw-stage.is-primed {
  min-height: 380px;
}
.workshop-summoning {
  position: relative;
  z-index: 2;
  display: grid;
  width: 250px;
  height: 250px;
  place-items: center;
  color: #d4ad61;
  background:
    radial-gradient(
      circle,
      rgba(142, 88, 28, .23),
      transparent 62%);
}
.workshop-summoning::before {
  content: "";
  position: absolute;
  inset: -8px;
  opacity: .63;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      transparent 0 11deg,
      rgba(221, 176, 89, .2) 12deg,
      transparent 13deg 29deg);
  animation: workshopOrbit 8s linear infinite;
  mask-image:
    radial-gradient(
      circle,
      transparent 0 37%,
      #000 38% 65%,
      transparent 76%);
}
.workshop-summoning::after {
  content: "";
  position: absolute;
  inset: 66px;
  border: 1px solid rgba(244, 207, 128, .39);
  border-radius: 50%;
  box-shadow: 0 0 42px rgba(221, 153, 48, .28), inset 0 0 28px rgba(222, 151, 43, .2);
  animation: workshopSummonHalo 1.1s ease-in-out infinite alternate;
}
.workshop-summoning > span:first-child {
  position: relative;
  z-index: 8;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid #f0ca76;
  border-radius: 50%;
  color: #f4d78f;
  background:
    radial-gradient(
      circle at 44% 36%,
      #56351a,
      #150c06 58%,
      #050302 78%);
  font: 38px "STKaiti", serif;
  box-shadow:
    inset 0 0 0 4px #080503,
    inset 0 0 0 5px rgba(245, 207, 124, .28),
    inset 0 0 24px #000,
    0 0 36px rgba(224, 153, 46, .4);
  animation: workshopSummonCore .8s ease-in-out infinite alternate;
}
.workshop-summoning > i {
  position: absolute;
  border: 1px solid rgba(225, 178, 86, .42);
  border-radius: 50%;
  animation: workshopOrbit 4s linear infinite;
}
.workshop-summoning > i:nth-of-type(1) {
  inset: 24px;
  border-style: solid dashed;
}
.workshop-summoning > i:nth-of-type(2) {
  inset: 48px;
  border-style: dashed;
  animation-duration: 2.8s;
  animation-direction: reverse;
}
.workshop-summoning > i:nth-of-type(3) {
  inset: 5px;
  opacity: .45;
  animation-duration: 7s;
}
.workshop-armillary {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 160px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  animation: workshopArmillary 4s ease-in-out infinite alternate;
}
.workshop-armillary i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(225, 178, 86, .34);
  border-radius: 50%;
}
.workshop-armillary i:nth-child(1) {
  transform: rotateX(64deg) rotateZ(11deg);
  animation: workshopBandA 5s linear infinite;
}
.workshop-armillary i:nth-child(2) {
  transform: rotateY(67deg) rotateZ(35deg);
  animation: workshopBandB 6s linear infinite reverse;
}
.workshop-armillary i:nth-child(3) {
  transform: rotateX(38deg) rotateY(56deg);
  animation: workshopBandC 7s linear infinite;
}
.workshop-armillary i:nth-child(4) {
  inset: 18px;
  border-style: dashed;
  opacity: .62;
  animation: workshopOrbit 8s linear infinite reverse;
}
.workshop-shards {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  animation: workshopOrbit 12s linear infinite;
}
.workshop-shards i {
  --shard-angle: calc(var(--shard-index) * 20deg);
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 8px;
  margin: -4px -1px;
  background: #d6a453;
  box-shadow: 0 0 7px rgba(235, 182, 87, .75);
  transform: rotate(var(--shard-angle)) translateY(-112px);
  animation: workshopShardBlink 1.8s ease-in-out calc(var(--shard-index) * -90ms) infinite alternate;
}
.workshop-trigrams {
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: 50%;
  animation: workshopOrbit 16s linear infinite reverse;
}
.workshop-trigrams em {
  --angle: calc(var(--trigram-index) * 45deg);
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 26px;
  height: 26px;
  margin: -13px;
  place-items: center;
  color: rgba(217, 176, 91, .78);
  font: 12px "STKaiti", serif;
  font-style: normal;
  transform: rotate(var(--angle)) translateY(-94px) rotate(calc(var(--angle) * -1));
  text-shadow: 0 0 8px rgba(230, 173, 72, .42);
}
.workshop-summoning > b,
.workshop-summoning > small {
  position: absolute;
  z-index: 7;
  right: -30px;
  left: -30px;
  text-align: center;
}
.workshop-summoning > b {
  bottom: -4px;
  color: #cfb176;
  font: 12px "FangSong", serif;
  font-weight: 400;
  letter-spacing: .14em;
}
.workshop-summoning > small {
  bottom: -23px;
  color: #75654d;
  font: 7px Georgia, serif;
  letter-spacing: .22em;
}
.workshop-manifesting {
  position: relative;
  z-index: 3;
  display: grid;
  width: 100%;
  height: 330px;
  place-items: center;
  overflow: hidden;
  color: #e4bd6d;
}
.workshop-manifesting::after {
  content: "";
  position: absolute;
  z-index: 9;
  inset: -18%;
  opacity: 0;
  pointer-events: none;
  background: #f5d78d;
  mix-blend-mode: screen;
  animation: workshopWhiteout 2.6s ease-in-out both;
}
.workshop-manifest-vortex {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
}
.workshop-manifest-vortex::before {
  content: "";
  position: absolute;
  inset: -42px;
  opacity: .48;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      transparent 0 7deg,
      rgba(226, 175, 83, .3) 8deg,
      transparent 9deg 18deg);
  mask-image:
    radial-gradient(
      circle,
      transparent 0 39%,
      #000 40% 66%,
      transparent 73%);
  animation: workshopOrbit 1.2s linear infinite;
}
.workshop-manifest-vortex > i {
  position: absolute;
  border: 1px solid rgba(217, 167, 79, .42);
  border-radius: 50%;
}
.workshop-manifest-vortex > i:nth-child(1) {
  inset: 0;
  border-style: dashed;
  animation: workshopOrbit 4s linear infinite;
}
.workshop-manifest-vortex > i:nth-child(2) {
  inset: 24px;
  border-style: double;
  animation: workshopOrbit 3s linear infinite reverse;
}
.workshop-manifest-vortex > i:nth-child(3) {
  inset: 60px;
  animation: workshopRingCollapse 1.2s ease-in-out infinite;
}
.workshop-manifest-vortex > i:nth-child(4) {
  inset: 82px;
  background:
    radial-gradient(
      circle,
      #6e431d,
      #130b05 58%,
      #030201 72%);
  box-shadow: 0 0 32px rgba(228, 155, 45, .38);
}
.workshop-manifest-trails {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}
.workshop-manifest-trails i {
  --trail-angle: calc(var(--trail-index) * 36deg);
  position: absolute;
  top: 42%;
  left: 50%;
  width: 3px;
  height: 92px;
  margin: -92px -1px 0;
  opacity: 0;
  background: linear-gradient(transparent, rgba(244, 209, 137, .98));
  box-shadow: 0 0 8px #e5a744;
  transform-origin: 50% 100%;
  animation: workshopTrailConverge 1.48s cubic-bezier(.45, .05, .14, 1) calc(var(--trail-index) * 38ms) both;
}
.workshop-draw-stage.is-single .workshop-manifest-trails i {
  --trail-angle: 0deg;
}
.workshop-manifest-impact {
  position: absolute;
  z-index: 4;
  top: 42%;
  left: 50%;
  width: 135px;
  height: 135px;
  transform: translate(-50%, -50%);
}
.workshop-manifest-impact::before {
  content: "\547d";
  position: absolute;
  inset: 35px;
  display: grid;
  opacity: 0;
  place-items: center;
  border: 1px solid #edc675;
  border-radius: 50%;
  color: #f7daa0;
  background:
    radial-gradient(
      circle,
      #4d2f14,
      #090604 68%);
  font: 29px "STKaiti", serif;
  box-shadow: 0 0 36px rgba(242, 186, 82, .5);
  animation: workshopSealStrike .78s cubic-bezier(.16, .82, .18, 1) 1.05s both;
}
.workshop-manifest-impact > i {
  --impact-angle: 18deg;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 76px;
  opacity: 0;
  background: linear-gradient(#f6d999, transparent);
  transform: rotate(var(--impact-angle));
  transform-origin: 50% 0;
  animation: workshopImpactRay .7s ease-out 1.08s both;
}
.workshop-manifest-impact > i:nth-child(2) {
  --impact-angle: 138deg;
}
.workshop-manifest-impact > i:nth-child(3) {
  --impact-angle: 258deg;
}
.workshop-manifest-copy {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 72px;
  left: 0;
  display: grid;
  gap: 4px;
  opacity: 0;
  text-align: center;
  animation: workshopWordsRise .56s ease 1.35s both;
}
.workshop-manifest-copy small {
  color: #806f52;
  font: 7px Georgia, serif;
  letter-spacing: .24em;
}
.workshop-manifest-copy b {
  color: #edcf8a;
  font: 17px "STKaiti", serif;
  font-weight: 500;
  letter-spacing: .16em;
}
.workshop-manifest-copy em {
  color: #8a7756;
  font: 9px "FangSong", serif;
  font-style: normal;
}
.workshop-card-shadows {
  position: absolute;
  z-index: 5;
  right: 7%;
  bottom: 8px;
  left: 7%;
  display: grid;
  height: 54px;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 5px;
}
.workshop-card-shadows i {
  position: relative;
  opacity: 0;
  border: 1px solid rgba(212, 165, 81, .38);
  background:
    linear-gradient(
      145deg,
      #21150a,
      #050403 65%);
  box-shadow: inset 0 0 0 3px #030201, 0 9px 18px #000;
  transform: translateY(65px) scale(.72);
  animation: workshopShadowRise .58s cubic-bezier(.16, .78, .18, 1) calc(1.55s + var(--shadow-index) * 42ms) both;
}
.workshop-card-shadows i::before {
  content: "\547d";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(221, 178, 91, .34);
  font: 16px "STKaiti", serif;
}
.workshop-draw-stage.is-single .workshop-card-shadows {
  right: calc(50% - 35px);
  left: calc(50% - 35px);
  grid-template-columns: 1fr;
}
.workshop-draw-grid {
  position: relative;
  z-index: 3;
  display: grid;
  width: 100%;
  gap: 12px 8px;
  perspective: 1000px;
}
.workshop-draw-grid.is-single {
  width: min(218px, 76%);
  grid-template-columns: 1fr;
}
.workshop-draw-grid.is-tenfold {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.workshop-draw-card {
  --rarity-rgb:
    185,179,164;
  position: relative;
  min-width: 0;
  min-height: 205px;
  padding: 0;
  border: 0;
  color: #b9b3a4;
  cursor: pointer;
  background: transparent;
  perspective: 900px;
  animation: workshopCardDeal 600ms cubic-bezier(.16, .78, .18, 1) var(--draw-delay) both;
}
.workshop-draw-card.quality-\7cbe\826f  {
  --rarity-rgb:
    108,193,139;
  color: #8fd0a8;
}
.workshop-draw-card.quality-\7a00\6709  {
  --rarity-rgb:
    91,158,215;
  color: #7fb7e8;
}
.workshop-draw-card.quality-\53f2\8bd7  {
  --rarity-rgb:
    157,107,211;
  color: #c39af0;
}
.workshop-draw-card.quality-\4f20\8bf4  {
  --rarity-rgb:
    225,176,69;
  color: #e8c56c;
}
.workshop-draw-card.quality-\4ed9\54c1  {
  --rarity-rgb:
    243,226,176;
  color: #f3e2b0;
}
.workshop-card-inner {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  transition: transform 720ms cubic-bezier(.16, .78, .18, 1);
}
.workshop-draw-card.is-revealed .workshop-card-inner {
  transform: rotateY(180deg);
}
.workshop-card-back,
.workshop-card-front {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  backface-visibility: hidden;
  box-shadow:
    inset 0 0 0 4px #050302,
    inset 0 0 0 5px rgba(var(--rarity-rgb), .26),
    inset 0 0 34px #000,
    0 12px 24px rgba(0, 0, 0, .62);
  clip-path: polygon(6% 0, 94% 0, 100% 6%, 100% 94%, 94% 100%, 6% 100%, 0 94%, 0 6%);
}
.workshop-card-back {
  background:
    radial-gradient(
      circle at 50% 39%,
      rgba(var(--rarity-rgb), .16),
      transparent 25%),
    repeating-conic-gradient(
      from 22deg at 50% 42%,
      rgba(178, 133, 63, .07) 0 7deg,
      transparent 8deg 22deg),
    linear-gradient(
      145deg,
      #28170b,
      #070504 62%,
      #1b1008);
}
.workshop-card-back::after {
  content: "";
  position: absolute;
  top: 17px;
  right: 50%;
  bottom: 17px;
  width: 1px;
  opacity: .25;
  background: currentColor;
  box-shadow: 34px 0 currentColor, -34px 0 currentColor;
}
.workshop-card-corners {
  position: absolute;
  z-index: 5;
  inset: 10px;
  pointer-events: none;
}
.workshop-card-corners i {
  position: absolute;
  width: 15px;
  height: 15px;
  border-color: currentColor;
  border-style: solid;
  opacity: .7;
}
.workshop-card-corners i:nth-child(1) {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}
.workshop-card-corners i:nth-child(2) {
  top: 0;
  right: 0;
  border-width: 1px 1px 0 0;
}
.workshop-card-corners i:nth-child(3) {
  right: 0;
  bottom: 0;
  border-width: 0 1px 1px 0;
}
.workshop-card-corners i:nth-child(4) {
  bottom: 0;
  left: 0;
  border-width: 0 0 1px 1px;
}
.workshop-card-orbit {
  position: absolute;
  z-index: 1;
  top: 46%;
  left: 50%;
  width: 108px;
  height: 108px;
  transform: translate(-50%, -58%);
}
.workshop-card-orbit i {
  position: absolute;
  inset: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .22;
}
.workshop-card-orbit i:nth-child(1) {
  border-style: dashed;
  animation: workshopOrbit 13s linear infinite;
}
.workshop-card-orbit i:nth-child(2) {
  inset: 16px;
  animation: workshopOrbit 8s linear infinite reverse;
}
.workshop-card-orbit i:nth-child(3) {
  inset: 31px;
  opacity: .35;
}
.workshop-card-seal {
  z-index: 3;
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 13px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 38% 34%,
      rgba(var(--rarity-rgb), .16),
      #100b06 62%);
  font: 28px "STKaiti", serif;
  font-style: normal;
  box-shadow: inset 0 0 0 3px #090604, 0 0 28px rgba(var(--rarity-rgb), .25);
}
.workshop-card-back small,
.workshop-card-back strong,
.workshop-card-back em {
  position: relative;
  z-index: 3;
}
.workshop-card-back small {
  color: #6f6452;
  font: 6px Georgia, serif;
  letter-spacing: .19em;
}
.workshop-card-back strong {
  margin-top: 6px;
  color: currentColor;
  font: 15px "STKaiti", serif;
  font-weight: 500;
}
.workshop-card-back em {
  position: absolute;
  right: 0;
  bottom: 13px;
  left: 0;
  color: #7c6e57;
  font: 8px "FangSong", serif;
  font-style: normal;
  letter-spacing: .12em;
}
.workshop-card-front {
  justify-content: flex-end;
  padding: 11px;
  background:
    linear-gradient(
      155deg,
      rgba(var(--rarity-rgb), .16),
      #090604 43%);
  transform: rotateY(180deg);
}
.workshop-card-front::before {
  content: "";
  position: absolute;
  inset: 0 0 58px;
  opacity: .34;
  background: linear-gradient(rgba(4, 3, 2, .2), rgba(4, 3, 2, .72)), var(--item-image) center/cover no-repeat;
  filter: blur(6px) saturate(1.25);
  transform: scale(1.08);
}
.workshop-card-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      transparent 42%,
      rgba(5, 3, 2, .96) 76%);
}
.workshop-card-quality {
  position: absolute;
  z-index: 6;
  top: 10px;
  right: 10px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid currentColor;
  background: rgba(5, 3, 2, .82);
  font: 13px "STKaiti", serif;
  box-shadow: 0 0 13px rgba(var(--rarity-rgb), .28);
}
.workshop-card-image {
  position: absolute;
  z-index: 2;
  inset: 6px 6px 59px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.workshop-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.08) contrast(1.05) brightness(1.04);
  animation: workshopImageAwaken .9s ease both;
}
.workshop-card-front small,
.workshop-card-front strong,
.workshop-card-front em {
  position: relative;
  z-index: 4;
  display: block;
  width: 100%;
  text-align: left;
}
.workshop-card-front small {
  color: currentColor;
  font-size: 7px;
}
.workshop-card-front strong {
  margin-top: 3px;
  overflow: hidden;
  color: #f0dda8;
  font: 15px "STKaiti", serif;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workshop-card-front em {
  margin-top: 1px;
  overflow: hidden;
  color: #887a61;
  font: 8px "FangSong", serif;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workshop-draw-card.is-revealed::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -22px;
  opacity: 0;
  pointer-events: none;
  background:
    repeating-conic-gradient(
      from 0deg,
      transparent 0 8deg,
      rgba(var(--rarity-rgb), .5) 9deg,
      transparent 11deg 22deg);
  mask-image:
    radial-gradient(
      circle,
      transparent 0 28%,
      #000 35% 60%,
      transparent 75%);
  animation: workshopRevealRays 1s ease-out both;
}
.workshop-result-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 8px;
  margin-top: 10px;
}
.workshop-result-actions button {
  min-height: 42px;
  border: 1px solid rgba(174, 132, 63, .62);
  color: #d8c08a;
  cursor: pointer;
  background: rgba(20, 14, 7, .92);
  font: 14px "STKaiti", serif;
}
.workshop-result-actions button.is-primary {
  border-color: #c69747;
  color: #241502;
  background:
    linear-gradient(
      180deg,
      #efd590,
      #c69a4b 55%,
      #e4c173);
}
.workshop-result-actions button:disabled {
  opacity: .45;
  cursor: default;
}
.workshop-draw-receipt {
  margin: 8px 0 0;
  padding: 8px 10px;
  border: 1px solid rgba(199, 149, 68, .42);
  color: #dfc382;
  background:
    linear-gradient(
      90deg,
      rgba(111, 65, 20, .4),
      rgba(15, 9, 5, .82));
  font-size: 10px;
  text-align: center;
  animation: workshopReceipt .5s ease both;
}
@keyframes workshopOrbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes workshopStarDrift {
  from {
    opacity: .22;
    transform: translateY(12px) scale(.7);
  }
  to {
    opacity: 1;
    transform: translateY(-18px) scale(1.25);
  }
}
@keyframes workshopSummonCore {
  from {
    transform: scale(.92);
  }
  to {
    transform: scale(1.05);
  }
}
@keyframes workshopFateGlow {
  from {
    filter: brightness(.92);
    box-shadow:
      inset 0 0 0 4px #080503,
      inset 0 0 0 5px rgba(245, 207, 124, .25),
      inset 0 0 20px #000,
      0 0 24px rgba(224, 153, 46, .34);
  }
  to {
    filter: brightness(1.08);
    box-shadow:
      inset 0 0 0 4px #080503,
      inset 0 0 0 5px rgba(245, 207, 124, .42),
      inset 0 0 27px #000,
      0 0 50px rgba(224, 153, 46, .62);
  }
}
@keyframes workshopSummonHalo {
  from {
    opacity: .34;
    transform: scale(.9);
  }
  to {
    opacity: 1;
    transform: scale(1.12);
  }
}
@keyframes workshopArmillary {
  from {
    transform: translate(-50%, -50%) rotateZ(-4deg);
  }
  to {
    transform: translate(-50%, -50%) rotateZ(5deg);
  }
}
@keyframes workshopBandA {
  to {
    transform: rotateX(64deg) rotateZ(371deg);
  }
}
@keyframes workshopBandB {
  to {
    transform: rotateY(67deg) rotateZ(395deg);
  }
}
@keyframes workshopBandC {
  to {
    transform: rotateX(38deg) rotateY(56deg) rotateZ(360deg);
  }
}
@keyframes workshopShardBlink {
  from {
    opacity: .12;
    transform: rotate(var(--shard-angle)) translateY(-112px) scaleY(.5);
  }
  to {
    opacity: .88;
    transform: rotate(var(--shard-angle)) translateY(-112px) scaleY(1.5);
  }
}
@keyframes workshopRingCollapse {
  0% {
    opacity: 0;
    transform: scale(1.55);
  }
  55% {
    opacity: 1;
  }
  100% {
    opacity: .2;
    transform: scale(.72);
  }
}
@keyframes workshopTrailConverge {
  0% {
    opacity: 0;
    transform: rotate(var(--trail-angle)) translateY(-160px) scaleY(.24);
  }
  24%, 78% {
    opacity: 1;
  }
  78% {
    transform: rotate(var(--trail-angle)) translateY(-45px) scaleY(1.2);
  }
  100% {
    opacity: 0;
    transform: rotate(var(--trail-angle)) translateY(0) scaleY(.1);
  }
}
@keyframes workshopSealStrike {
  0% {
    opacity: 0;
    transform: scale(2.8) rotate(-24deg);
    filter: blur(9px);
  }
  58% {
    opacity: 1;
    transform: scale(.88) rotate(3deg);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes workshopImpactRay {
  0% {
    opacity: 0;
    transform: rotate(var(--impact-angle)) scaleY(.1);
  }
  35% {
    opacity: .9;
  }
  100% {
    opacity: 0;
    height: 145px;
    transform: rotate(var(--impact-angle)) scaleY(1);
  }
}
@keyframes workshopWordsRise {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
@keyframes workshopShadowRise {
  from {
    opacity: 0;
    transform: translateY(65px) scale(.72);
  }
  to {
    opacity: .62;
    transform: translateY(0) scale(1);
  }
}
@keyframes workshopWhiteout {
  0%, 58% {
    opacity: 0;
  }
  68% {
    opacity: .3;
  }
  74%, 92% {
    opacity: 0;
  }
  97% {
    opacity: .22;
  }
  100% {
    opacity: 0;
  }
}
@keyframes workshopCardDeal {
  from {
    opacity: 0;
    transform: translateY(-45px) rotateY(22deg) scale(.82);
    filter: blur(4px) brightness(.35);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateY(0) scale(1);
    filter: blur(0) brightness(1);
  }
}
@keyframes workshopImageAwaken {
  from {
    transform: scale(1.12);
    filter: saturate(.2) brightness(.3) blur(3px);
  }
  to {
    transform: scale(1);
    filter: saturate(1.08) brightness(1.04) blur(0);
  }
}
@keyframes workshopRevealRays {
  0% {
    opacity: 0;
    transform: scale(.45) rotate(-18deg);
  }
  28% {
    opacity: .92;
  }
  100% {
    opacity: 0;
    transform: scale(1.32) rotate(18deg);
  }
}
@keyframes workshopReceipt {
  from {
    opacity: 0;
    transform: scaleX(.7);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}
.login-page {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  color: #ead8af;
  background: #090907;
}
.login-scenery {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(6, 6, 4, .42) 0,
      rgba(7, 7, 5, .6) 46%,
      rgba(5, 5, 4, .9) 100%),
    url(/assets/generated/home-bg.png) center/cover no-repeat;
  filter: saturate(.72) contrast(1.05) brightness(.8);
}
.login-stage {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  align-items: center;
  padding: 9vh 22px 20px;
}
.login-brand {
  text-align: center;
  filter: drop-shadow(0 4px 12px #000);
}
.login-brand h1 {
  margin: 0;
  color: var(--gold-bright);
  font:
    800 clamp(42px, 11vw, 68px)/1.12 "STKaiti",
    "KaiTi",
    serif;
  letter-spacing: .04em;
  text-shadow: 0 1px 0 #5a4829, 0 0 24px rgba(183, 149, 76, .22);
}
.login-brand p {
  margin: 12px 0 0;
  color: #d2c49e;
  font: 13px "FangSong", serif;
  letter-spacing: .4em;
}
.login-form {
  display: flex;
  width: min(430px, 100%);
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding-top: 4vh;
}
.login-form h2 {
  margin: 0;
  text-align: center;
  color: #f0e2b6;
  font:
    700 clamp(25px, 6.4vw, 33px) "STKaiti",
    "KaiTi",
    serif;
}
.login-slogan {
  margin: 10px 0 24px;
  text-align: center;
  color: #b7ab8e;
  font-size: 13px;
  letter-spacing: .12em;
}
.login-form form {
  display: grid;
  gap: 16px;
}
.login-field {
  display: grid;
  gap: 8px;
  color: #c3b693;
  font-size: 13px;
}
.login-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(156, 125, 56, .6);
  border-radius: 4px;
  outline: 0;
  color: #f2e4bc;
  background: rgba(9, 9, 6, .82);
  font-size: 15px;
}
.login-field input:focus {
  border-color: #d8bc74;
  box-shadow: 0 0 0 2px rgba(216, 188, 116, .14);
}
.login-field input::placeholder {
  color: #6f685a;
}
.login-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 8px;
}
.login-code-button {
  border: 1px solid rgba(156, 125, 56, .7);
  border-radius: 4px;
  color: #e3c98f;
  background: rgba(26, 21, 12, .85);
  cursor: pointer;
  font-size: 13px;
}
.login-code-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.login-agree {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #a89a7d;
  font-size: 12px;
  line-height: 1.6;
}
.login-agree input {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: #c9a75c;
}
.login-link {
  padding: 0;
  border: 0;
  color: #d8bc74;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}
.login-message {
  margin: 0;
  padding: 10px 12px;
  border-left: 2px solid #b69452;
  color: #cbb98f;
  background: #b6945210;
  font-size: 12px;
  line-height: 1.6;
}
.login-message.is-error {
  border-color: #bf6656;
  color: #e0a495;
  background: #9d443d16;
}
.login-submit {
  min-height: 52px;
  border: 1px solid #a67c36;
  border-radius: 4px;
  color: #241503;
  cursor: pointer;
  background:
    linear-gradient(
      180deg,
      #e8cd8b,
      #cfa75a);
  font:
    700 20px "STKaiti",
    "KaiTi",
    serif;
  box-shadow: inset 0 0 0 1px rgba(255, 244, 214, .35), 0 12px 30px rgba(0, 0, 0, .4);
}
.login-submit:disabled {
  opacity: .46;
  cursor: not-allowed;
}
.login-foot {
  margin: 3vh 0 0;
  color: #9c917c;
  font-size: 12px;
  letter-spacing: .1em;
}
.profile-recharge {
  min-width: 64px;
  min-height: 30px;
  margin-top: 8px;
  border: 1px solid #b28c4b;
  border-radius: 3px;
  color: #f1d69c;
  background:
    linear-gradient(
      180deg,
      rgba(64, 48, 20, .85),
      rgba(42, 31, 13, .9));
  cursor: pointer;
  font:
    13px "STKaiti",
    "KaiTi",
    serif;
}
.bottom-nav {
  display: none;
}
@media (max-width: 720px) {
  .page-scenery {
    background-image:
      linear-gradient(
        90deg,
        rgba(3, 3, 1, .08),
        transparent 22%,
        transparent 78%,
        rgba(3, 3, 1, .08)),
      url(/assets/design/main-background.png);
    background-position: top center;
    background-size: cover;
    filter: saturate(1.22) contrast(1.08) brightness(1.08);
  }
  .page-header {
    padding: 6px 9px 0;
  }
  .page-content {
    padding: 0 9px 8px;
  }
  .brand h1 {
    font-size: 31px;
    line-height: 1.04;
    text-shadow: 0 1px 0 #4c3d22, 0 0 12px #000;
  }
  .brand p {
    margin: 5px 0 17px;
    font-size: 10px;
    line-height: 1.3;
    letter-spacing: .25em;
  }
  .user-nav {
    display: none;
  }
  .profile-card {
    grid-template-columns: 25.5% 38% 36.5%;
    min-height: 96px;
    border-radius: 3px;
    background:
      linear-gradient(
        90deg,
        rgba(11, 10, 5, .64),
        rgba(8, 8, 4, .78)),
      url(/assets/design/account-profile-background.png) center / cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(225, 190, 111, .04), 0 8px 18px rgba(0, 0, 0, .28);
  }
  .profile-portrait {
    min-height: 96px;
  }
  .profile-portrait::after {
    background:
      linear-gradient(
        90deg,
        transparent 68%,
        rgba(11, 11, 7, .9));
  }
  .profile-portrait img {
    position: absolute;
    inset: 0;
    object-position: center 16%;
    filter: saturate(.76) sepia(.03) contrast(1.03) brightness(1.25);
  }
  .profile-copy {
    align-self: stretch;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 7px 8px 7px 1px;
    border-right: 1px solid rgba(177, 143, 73, .24);
  }
  .profile-name-row h2 {
    overflow: hidden;
    font-size: 26px;
    line-height: 1;
    white-space: nowrap;
  }
  .profile-rank {
    gap: 5px;
    margin-top: 7px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }
  .profile-rank span {
    width: 21px;
    height: 21px;
    flex: none;
    font-size: 10px;
  }
  .profile-rank b {
    font-size: 12px;
  }
  .profile-motto {
    overflow: hidden;
    margin-top: 7px;
    font-size: 9px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .profile-assets {
    position: relative;
    align-self: stretch;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 7px 25px 7px 12px;
  }
  .profile-assets h3 {
    margin: 0 0 5px;
    padding-bottom: 4px;
    font-size: 14px;
    line-height: 1;
  }
  .profile-assets p {
    display: grid;
    grid-template-columns: 20px minmax(27px, 1fr) auto;
    gap: 5px;
    margin: 3px 0;
  }
  .profile-assets .currency-icon {
    width: 19px;
    height: 21px;
  }
  .profile-assets i {
    width: 19px;
    height: 19px;
    font-size: 8px;
  }
  .profile-assets span {
    font-size: 10px;
    white-space: nowrap;
  }
  .profile-assets b {
    font-size: 16px;
    line-height: 1;
  }
  .profile-chevron {
    position: absolute;
    top: 0;
    right: 2px;
    bottom: 0;
    width: 22px;
    padding: 0;
    border: 0;
    color: #ead79a;
    background: transparent;
    cursor: pointer;
    font: 35px/1 Arial, sans-serif;
  }
  .modes-section {
    margin-top: 8px;
  }
  .reservation-section {
    margin-top: 8px;
  }
  .live-section {
    margin-top: 7px;
  }
  .section-title {
    min-height: 27px;
    gap: 14px;
    margin: 0 5px 4px;
  }
  .section-title h2 {
    font-size: 25px;
    line-height: 1;
  }
  .section-title p {
    font-size: 10px;
    line-height: 1;
    letter-spacing: .1em;
  }
  .mode-grid {
    gap: 4px 5px;
  }
  .mode-card {
    aspect-ratio: 2.24 / 1;
    border-radius: 3px;
  }
  .mode-card img {
    filter: saturate(.48) brightness(1.32) contrast(1.01);
  }
  .mode-shade {
    background:
      linear-gradient(
        180deg,
        rgba(8, 8, 5, .02) 12%,
        rgba(6, 6, 4, .12) 43%,
        rgba(5, 5, 3, .91) 100%);
  }
  .mode-copy {
    right: 5px;
    bottom: 5px;
    left: 5px;
  }
  .mode-copy strong {
    font-size: 21px;
    line-height: 1;
  }
  .mode-copy small {
    margin-top: 4px;
    font-size: 10px;
    line-height: 1;
  }
  .lock-seal {
    top: 18%;
    width: 31px;
    height: 31px;
    border-width: 1px;
    font-size: 15px;
  }
  .reservation-section,
  .live-section {
    padding: 5px;
    border-radius: 3px;
    background: rgba(24, 23, 15, .66);
    box-shadow: none;
  }
  .reservation-card {
    grid-template-columns: 31% minmax(0, 1fr) auto;
    min-height: 55px;
    border-radius: 3px;
  }
  .reservation-card img {
    height: 55px;
  }
  .reservation-card div {
    padding: 5px 8px;
  }
  .reservation-card h3 {
    font-size: 16px;
    line-height: 1;
  }
  .reservation-card p {
    margin-top: 5px;
    font-size: 9px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .reservation-card button {
    min-width: 75px;
    min-height: 35px;
    margin-right: 7px;
    font-size: 14px;
  }
  .live-list a {
    grid-template-columns: minmax(0, 1fr) 64px;
    min-height: 40px;
    padding: 0 14px;
  }
  .live-list span {
    font-size: 17px;
  }
  .live-list em {
    font-size: 14px;
  }
  .live-list-state {
    min-height: 40px;
    padding: 0 14px;
    font-size: 12px;
  }
  .pending-page {
    min-height: 460px;
  }
  .pending-page > div {
    width: 90%;
    padding: 75px 25px;
  }
  .pending-page h2 {
    font-size: 39px;
  }
  .page-content {
    padding-bottom: 78px;
  }
  .page-content.is-sub {
    padding-top: 4px;
  }
  .bottom-nav {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid rgba(179, 148, 79, .44);
    background: rgba(11, 11, 7, .94);
    box-shadow: 0 -10px 26px rgba(0, 0, 0, .4);
    backdrop-filter: blur(9px);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom-nav button {
    display: grid;
    gap: 3px;
    justify-items: center;
    min-height: 58px;
    padding: 7px 0 5px;
    border: 0;
    color: #8f856a;
    background: transparent;
    cursor: pointer;
  }
  .bottom-nav button i {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid rgba(156, 125, 56, .55);
    border-radius: 4px;
    color: #b3a37f;
    font-style: normal;
    font-size: 12px;
  }
  .bottom-nav button span {
    font-size: 10px;
    white-space: nowrap;
  }
  .bottom-nav button.is-active {
    color: #f0dfa8;
  }
  .bottom-nav button.is-active i {
    border-color: #d8bc74;
    color: #f3e3b2;
    background: rgba(74, 56, 22, .8);
  }
  .sub-header {
    margin: 2px 1px 8px;
  }
  .sub-title {
    margin-top: 4px;
    font-size: clamp(30px, 9vw, 38px);
  }
  .sub-subtitle {
    font-size: 11px;
    letter-spacing: .3em;
  }
  .panel {
    margin-top: 8px;
    padding: 11px 11px 13px;
    border-radius: 4px;
  }
  .panel-title {
    margin-bottom: 9px;
  }
  .identity-card {
    margin-top: 8px;
    grid-template-columns: 32% minmax(0, 1fr);
  }
  .identity-portrait {
    min-height: 128px;
  }
  .identity-copy {
    padding: 12px 10px;
  }
  .asset-strip {
    margin-top: 8px;
    padding: 10px 12px;
    gap: 10px;
  }
  .asset-strip h3 {
    font-size: 16px;
  }
  .asset-strip-items {
    gap: 4px 14px;
  }
  .asset-recharge {
    min-width: 68px;
    min-height: 34px;
    font-size: 13px;
  }
  .equipment-grid {
    gap: 5px;
  }
  .equipment-cell {
    padding: 5px;
  }
  .equipment-art {
    min-height: 56px;
  }
  .equipment-name {
    font-size: 11px;
  }
  .archive-grid {
    gap: 7px;
    margin-top: 9px;
  }
  .archive-art {
    min-height: 96px;
  }
  .featured-strip {
    gap: 5px;
  }
  .workshop-hero img {
    max-height: 220px;
  }
  .podium {
    gap: 5px;
  }
  .podium-cell {
    padding: 22px 5px 9px;
  }
  .podium-cell.is-rank-1 {
    padding-top: 28px;
  }
  .avatar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .login-stage {
    padding: 7vh 16px 14px;
  }
  .login-code-row {
    grid-template-columns: minmax(0, 1fr) 106px;
  }
  .login-foot {
    margin-top: 2vh;
  }
  .inventory-grid {
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  }
  .inventory-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .inventory-bulk-sell {
    grid-column: 1 / -1;
    min-height: 46px;
  }
  .cultivate-meta {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .grant-detail-grid {
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  }
  .amount-cell {
    min-height: 74px;
  }
  .rank-head,
  .rank-row {
    grid-template-columns: 44px minmax(0, 1fr) 66px;
    padding: 0 9px;
  }
  .rank-table.is-level-board .rank-head,
  .rank-table.is-level-board .rank-row {
    grid-template-columns: 38px minmax(0, 1fr) 56px 64px;
    gap: 5px;
    padding: 0 7px;
  }
  .rank-table.is-tier-board .rank-head,
  .rank-table.is-tier-board .rank-row {
    grid-template-columns: 38px minmax(0, 1fr) 70px 48px;
    gap: 5px;
    padding: 0 7px;
  }
}
@media (max-width: 420px) {
  .brand h1 {
    font-size: 28px;
  }
  .profile-card {
    grid-template-columns: 26% 38% 36%;
  }
  .profile-name-row h2 {
    font-size: 23px;
  }
  .profile-rank {
    font-size: 10px;
  }
  .profile-rank b {
    font-size: 10px;
  }
  .profile-assets {
    padding-left: 8px;
  }
  .profile-assets h3 {
    font-size: 13px;
  }
  .profile-assets b {
    font-size: 14px;
  }
  .profile-recharge {
    min-width: 52px;
    min-height: 24px;
    font-size: 11px;
  }
  .mode-copy strong {
    font-size: 18px;
  }
  .mode-copy small {
    font-size: 9px;
  }
  .section-title {
    gap: 10px;
  }
  .reservation-card {
    grid-template-columns: 30% minmax(0, 1fr) 68px;
  }
  .reservation-card button {
    min-width: 58px;
    margin-right: 6px;
    padding: 0 5px;
  }
  .login-stage {
    padding: 5vh 12px 12px;
  }
  .login-brand p {
    letter-spacing: .28em;
  }
  .login-code-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .login-code-row button {
    min-height: 40px;
  }
  .sub-tabs button,
  .switch-tabs button,
  .season-tabs button {
    font-size: 13px;
    min-height: 38px;
  }
  .pill-affinities {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }
  .pill-stat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
  }
  .pill-stat-grid > div {
    padding: 8px 1px;
  }
  .pill-stat-grid span {
    font-size: 12px;
  }
  .pill-stat-grid div div {
    grid-template-columns: 24px minmax(17px, 1fr) 24px;
  }
  .pill-stat-grid div div button {
    width: 24px;
    height: 26px;
  }
  .pill-use-count {
    grid-template-columns: 1fr 32px 52px 32px auto;
  }
  .pill-use-count small {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .fate-fragment-affinities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inventory-toolbar {
    grid-template-columns: 1fr;
  }
  .inventory-bulk-sell {
    grid-column: auto;
  }
  .cultivate-meta {
    grid-template-columns: 1fr;
  }
}
.user-app.is-secondary {
  --gold-line: rgba(190, 151, 66, .78);
  --gold-light: #f0dda2;
  --panel-black: rgba(10, 9, 5, .94);
  --secondary-page-scale: 1;
  background: #080804;
}
.user-app.is-secondary .page-scenery {
  background-color: #080804;
  background-image:
    linear-gradient(
      90deg,
      rgba(3, 3, 1, .16),
      transparent 24%,
      transparent 76%,
      rgba(3, 3, 1, .16)),
    url(/assets/design/main-background.png);
  background-position: top center;
  background-size: cover;
  filter: saturate(1.25) contrast(1.08) brightness(1.08);
}
.user-app.is-secondary .page-content.is-sub {
  width: min(476px, 100%);
  min-height: 100dvh;
  padding: 0 10px 30px;
  background:
    linear-gradient(
      180deg,
      rgba(7, 7, 3, .03) 0,
      rgba(7, 7, 3, .5) 270px,
      rgba(7, 7, 3, .72) 620px,
      rgba(7, 7, 3, .66) 100%),
    radial-gradient(
      circle at 50% 14%,
      rgba(181, 125, 34, .14),
      transparent 35%);
}
.user-app.is-secondary .sub-header {
  position: relative;
  min-height: 122px;
  margin: 0 -10px 8px;
  padding: 7px 13px 10px;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(4, 4, 2, .22),
      rgba(5, 5, 2, .28) 55%,
      rgba(7, 7, 3, .92) 100%),
    url(/assets/design/mountain-header.png) center top / auto 112px no-repeat;
}
.user-app.is-secondary .sub-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(205, 170, 89, .5),
      transparent);
}
.user-app.is-secondary .sub-topbar {
  position: relative;
  z-index: 1;
  min-height: 25px;
}
.user-app.is-secondary .sub-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.user-app.is-secondary .sub-back,
.user-app.is-secondary .sub-brand {
  color: #e4d19a;
  text-shadow: 0 2px 4px #000;
}
.user-app.is-secondary .sub-back {
  padding: 0;
  font-size: 11px;
}
.user-app.is-secondary .sub-back i {
  color: #f4d36f;
  font-size: 22px;
}
.user-app.is-secondary .sub-brand {
  font:
    700 13px "STKaiti",
    "KaiTi",
    serif;
}
.user-app.is-secondary .sub-action {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(197, 155, 66, .68);
  border-radius: 1px;
  color: #ead49a;
  background: rgba(25, 18, 7, .72);
  cursor: pointer;
  font-size: 10px;
  text-shadow: 0 1px 3px #000;
}
.user-app.is-secondary .sub-action:hover {
  border-color: #e3c46e;
  background: rgba(67, 45, 13, .84);
}
.user-app.is-secondary .sub-title {
  position: relative;
  z-index: 1;
  margin: 7px 0 0;
  color: #f2dfa2;
  font-size: clamp(39px, 10vw, 49px);
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 #3c2a0e,
    0 3px 8px #000,
    0 0 16px rgba(219, 175, 72, .28);
}
.user-app.is-secondary .sub-subtitle {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  color: #d8c79b;
  font-size: 10px;
  letter-spacing: .18em;
  text-shadow: 0 2px 4px #000;
}
.user-app.is-secondary:has(.archive-search) .page-scenery {
  filter: saturate(1.32) contrast(1.08) brightness(1.1);
}
.user-app.is-secondary .page-content.is-sub:has(.archive-search) {
  background:
    linear-gradient(
      180deg,
      rgba(7, 7, 3, .01) 0,
      rgba(7, 7, 3, .24) 270px,
      rgba(7, 7, 3, .54) 620px,
      rgba(7, 7, 3, .5) 100%),
    radial-gradient(
      circle at 50% 14%,
      rgba(205, 141, 35, .2),
      transparent 38%);
}
.user-app.is-secondary .page-content.is-sub:has(.archive-search) .sub-header {
  background:
    linear-gradient(
      180deg,
      rgba(4, 4, 2, .06),
      rgba(5, 5, 2, .1) 55%,
      rgba(7, 7, 3, .72) 100%),
    url(/assets/design/mountain-header.png) center top / auto 112px no-repeat;
}
.user-app.is-secondary .panel,
.user-app.is-secondary .asset-strip,
.user-app.is-secondary .identity-card {
  border-color: var(--gold-line);
  border-radius: 2px;
  background-color: var(--panel-black);
  box-shadow: inset 0 0 0 1px rgba(249, 223, 151, .035), 0 7px 16px rgba(0, 0, 0, .38);
}
.user-app.is-secondary .panel {
  margin-top: 8px;
  padding: 9px 8px 10px;
  background:
    linear-gradient(
      180deg,
      rgba(24, 21, 12, .88),
      rgba(8, 8, 4, .96)),
    url(/assets/design/city-scene.png) center top / cover no-repeat;
}
.user-app.is-secondary .panel-title {
  min-height: 30px;
  margin: -9px -8px 9px;
  padding: 6px 9px 5px;
  border-bottom: 1px solid rgba(180, 141, 62, .45);
  background:
    linear-gradient(
      90deg,
      rgba(8, 8, 4, .76),
      rgba(16, 14, 7, .42),
      rgba(8, 8, 4, .82)),
    url(/assets/design/mountain-header.png) center 52% / cover no-repeat;
}
.user-app.is-secondary .panel-title h2 {
  color: #ead89e;
  font-size: 21px;
  text-shadow: 0 2px 4px #000;
}
.user-app.is-secondary .panel-title h2::before {
  display: none;
}
.user-app.is-secondary .panel-title p {
  color: #c9b98e;
  font-size: 11px;
  max-width: 60%;
}
.user-app.is-secondary .panel-heading {
  margin-bottom: 9px;
  color: #ead89e;
  font-size: 20px;
}
.user-app.is-secondary .identity-card {
  grid-template-columns: 37% minmax(0, 1fr);
  min-height: 122px;
  margin-top: -1px;
  background:
    linear-gradient(
      90deg,
      rgba(8, 7, 3, .12),
      rgba(8, 8, 4, .76) 50%,
      rgba(8, 8, 4, .9)),
    url(/assets/design/account-profile-background.png) center / cover no-repeat;
}
.user-app.is-secondary .identity-portrait {
  min-height: 122px;
}
.user-app.is-secondary .identity-portrait::after {
  background:
    linear-gradient(
      90deg,
      transparent 65%,
      rgba(8, 8, 4, .92));
}
.user-app.is-secondary .identity-portrait img {
  object-position: center top;
  filter: saturate(.92) contrast(1.04) brightness(1.03);
}
.user-app.is-secondary .identity-copy {
  align-content: center;
  padding: 8px 10px 8px 3px;
}
.user-app.is-secondary .identity-copy h2 {
  color: #f3ead2;
  font-size: 29px;
  line-height: 1;
  text-shadow: 0 2px 5px #000;
}
.user-app.is-secondary .identity-tags {
  margin-top: 6px;
}
.user-app.is-secondary .identity-tag {
  padding: 2px 6px;
  border-radius: 1px;
  font-size: 9px;
}
.user-app.is-secondary .identity-rank {
  margin-top: 7px;
  color: #e8cf83;
  font-size: 12px;
}
.user-app.is-secondary .identity-rank > span {
  width: 23px;
  height: 23px;
}
.user-app.is-secondary .identity-rank b {
  font-size: 13px;
}
.user-app.is-secondary .identity-motto {
  margin-top: 6px;
  color: #d8ceb7;
  font-size: 10px;
}
.user-app.is-secondary .asset-strip {
  min-height: 50px;
  margin-top: 7px;
  padding: 7px 9px;
  gap: 8px;
  background:
    linear-gradient(
      90deg,
      rgba(12, 11, 6, .94),
      rgba(22, 19, 10, .78),
      rgba(8, 8, 4, .95)),
    url(/assets/design/mountain-header.png) center / cover no-repeat;
}
.user-app.is-secondary .asset-strip h3 {
  font-size: 16px;
}
.user-app.is-secondary .asset-strip-items {
  justify-content: space-around;
  gap: 4px 10px;
}
.user-app.is-secondary .asset-strip-items p {
  grid-template-columns: 22px auto auto;
  gap: 5px;
}
.user-app.is-secondary .asset-strip-items .currency-icon {
  width: 21px;
  height: 23px;
}
.user-app.is-secondary .asset-strip-items i {
  width: 21px;
  height: 21px;
  font-size: 8px;
}
.user-app.is-secondary .asset-strip-items span {
  font-size: 10px;
}
.user-app.is-secondary .asset-strip-items b {
  font-size: 17px;
}
.user-app.is-secondary .asset-recharge {
  min-width: 54px;
  min-height: 29px;
  border-radius: 2px;
  font-size: 11px;
}
.user-app.is-secondary .stat-columns {
  padding: 1px 0 3px;
}
.user-app.is-secondary .stat-columns div {
  gap: 2px;
  padding: 4px 1px;
}
.user-app.is-secondary .stat-columns span {
  font-size: 9px;
}
.user-app.is-secondary .stat-columns b {
  color: #f0e6ce;
  font-size: 18px;
}
.user-app.is-secondary .growth-bar {
  gap: 8px;
  margin-top: 7px;
}
.user-app.is-secondary .growth-label,
.user-app.is-secondary .growth-next {
  font-size: 9px;
}
.user-app.is-secondary .growth-label b,
.user-app.is-secondary .growth-next b {
  font-size: 11px;
}
.user-app.is-secondary .growth-track {
  height: 5px;
  border-radius: 0;
}
.user-app.is-secondary .equipment-grid:not(.is-edit) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.user-app.is-secondary .equipment-cell {
  grid-template-rows: auto auto;
  gap: 3px;
  padding: 4px;
  border-color: rgba(174, 135, 53, .68);
  border-radius: 2px;
  background:
    linear-gradient(
      180deg,
      rgba(34, 27, 12, .72),
      rgba(7, 7, 4, .96));
}
.user-app.is-secondary .equipment-art {
  background:
    radial-gradient(
      circle,
      rgba(109, 76, 26, .28),
      rgba(7, 7, 4, .18) 68%);
}
.user-app.is-secondary .equipment-grid:not(.is-edit) .equipment-art {
  min-height: 0;
  aspect-ratio: 1 / 1;
}
.user-app.is-secondary .equipment-grid.is-edit .equipment-cell {
  grid-template-rows: none;
}
.user-app.is-secondary .equipment-grid.is-edit .equipment-art {
  width: 56px;
  min-height: 56px;
}
.user-app.is-secondary .equipment-slot {
  font-size: 8px;
}
.user-app.is-secondary .equipment-name {
  font-size: 10px;
}
.user-app.is-secondary .equipment-level {
  font-size: 8px;
}
.user-app.is-secondary .entry-grid {
  gap: 5px;
}
.user-app.is-secondary .entry-cell {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  min-height: 55px;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 2px;
  background:
    linear-gradient(
      90deg,
      rgba(16, 14, 7, .92),
      rgba(10, 9, 5, .75)),
    url(/assets/design/city-scene.png) center 62% / cover no-repeat;
}
.user-app.is-secondary .entry-icon {
  width: 32px;
  height: 34px;
}
.user-app.is-secondary .entry-icon img {
  max-width: 32px;
  max-height: 34px;
}
.user-app.is-secondary .entry-copy b {
  font-size: 14px;
}
.user-app.is-secondary .entry-copy small {
  font-size: 8px;
}
.user-app.is-secondary .sub-tabs,
.user-app.is-secondary .switch-tabs,
.user-app.is-secondary .filter-tabs,
.user-app.is-secondary .season-tabs {
  gap: 1px;
  margin-top: 7px;
  border: 1px solid rgba(160, 123, 48, .62);
}
.user-app.is-secondary .sub-tabs button,
.user-app.is-secondary .switch-tabs button,
.user-app.is-secondary .filter-tabs button,
.user-app.is-secondary .season-tabs button {
  min-height: 34px;
  border: 0;
  border-right: 1px solid rgba(160, 123, 48, .36);
  border-radius: 0;
  color: #b9ad90;
  background: rgba(8, 8, 4, .88);
  font-size: 11px;
}
.user-app.is-secondary .currency-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.user-app.is-secondary .sub-tabs button {
  font-size: 13px;
}
.user-app.is-secondary .sub-tabs button:last-child,
.user-app.is-secondary .switch-tabs button:last-child,
.user-app.is-secondary .filter-tabs button:last-child,
.user-app.is-secondary .season-tabs button:last-child {
  border-right: 0;
}
.user-app.is-secondary .sub-tabs button.is-active,
.user-app.is-secondary .switch-tabs button.is-active,
.user-app.is-secondary .filter-tabs button.is-active,
.user-app.is-secondary .season-tabs button.is-active {
  color: #f0dda2;
  background:
    linear-gradient(
      180deg,
      rgba(111, 80, 25, .85),
      rgba(50, 35, 11, .92));
  box-shadow: inset 0 -2px 0 #d5b55e, inset 0 0 14px rgba(231, 191, 83, .12);
}
.user-app.is-secondary .archive-search {
  margin-top: 1px;
  border-radius: 1px;
}
.user-app.is-secondary .archive-search input {
  height: 37px;
  font-size: 12px;
}
.user-app.is-secondary .archive-search button {
  height: 28px;
  border-radius: 1px;
}
.user-app.is-secondary .archive-filters {
  margin-top: 5px;
  padding: 0;
  border-top: 1px solid rgba(205, 170, 88, .42);
  border-bottom: 1px solid rgba(205, 170, 88, .58);
  background:
    linear-gradient(
      90deg,
      rgba(7, 7, 3, .58),
      rgba(20, 16, 7, .72),
      rgba(7, 7, 3, .58));
}
.user-app.is-secondary .filter-row {
  flex-wrap: nowrap;
  gap: 0;
  min-height: 31px;
  border-bottom: 1px solid rgba(205, 170, 88, .24);
}
.user-app.is-secondary .filter-row + .filter-row {
  margin-top: 0;
}
.user-app.is-secondary .filter-row:last-child {
  border-bottom: 0;
}
.user-app.is-secondary .filter-row button {
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 3px;
  color: #d3c7aa;
  font-size: 10px;
  text-shadow: 0 1px 3px #000;
  white-space: nowrap;
}
.user-app.is-secondary .filter-row button:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 25%;
  right: 0;
  width: 1px;
  height: 50%;
  background: rgba(235, 229, 211, .24);
  box-shadow: 1px 0 0 rgba(0, 0, 0, .48);
}
.user-app.is-secondary .filter-row button.is-active {
  color: #ffe49a;
}
.user-app.is-secondary .filter-row button.is-active::after {
  right: 14%;
  left: 14%;
  background: #f0cf62;
  box-shadow: 0 0 7px rgba(238, 190, 60, .72);
}
.user-app.is-secondary .archive-grid {
  width: calc(100% - 16px);
  gap: 8px;
  margin: 7px auto 0;
}
.user-app.is-secondary .archive-card {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-color: rgba(218, 176, 69, .86);
  border-radius: 2px;
  background: #080804;
  box-shadow: inset 0 0 0 1px rgba(255, 231, 145, .05), 0 3px 10px rgba(0, 0, 0, .34);
}
.user-app.is-secondary .archive-card:hover {
  border-color: #f0cb62;
}
.user-app.is-secondary .archive-art {
  position: relative;
  isolation: isolate;
  min-height: 146px;
  overflow: hidden;
  border-radius: 0;
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(145, 91, 22, .42),
      rgba(5, 5, 2, .98));
}
.user-app.is-secondary .archive-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10px;
  background: linear-gradient(rgba(8, 6, 2, .3), rgba(8, 6, 2, .5)), var(--archive-image) center / cover no-repeat;
  filter: blur(8px) saturate(1.2) brightness(.78);
  transform: scale(1.08);
}
.user-app.is-secondary .archive-art .item-thumb {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  height: 146px;
  max-height: none;
  object-fit: contain;
  filter: saturate(1.18) contrast(1.08) brightness(1.06);
}
.user-app.is-secondary .archive-info {
  padding: 6px 7px 7px;
  background:
    linear-gradient(
      180deg,
      rgba(23, 18, 7, .96),
      rgba(7, 7, 3, .99));
}
.user-app.is-secondary .archive-info b {
  color: #fff1c3;
  font-size: 13px;
  text-shadow: 0 1px 3px #000;
}
.user-app.is-secondary .archive-info small {
  font-size: 8px;
  filter: saturate(1.2) brightness(1.14);
}
.user-app.is-secondary .archive-link {
  right: 6px;
  bottom: 7px;
  color: #e7c76f;
  font-size: 8px;
}
.user-app.is-secondary .archive-scroll-status {
  min-height: 42px;
  padding: 13px 0 7px;
  color: #968866;
  font-size: 9px;
  text-align: center;
}
.user-app.is-secondary .archive-scroll-status button {
  min-height: 28px;
  padding: 0 13px;
  border: 1px solid rgba(202, 161, 70, .7);
  color: #e7ce8a;
  background: rgba(28, 20, 8, .88);
  cursor: pointer;
}
.user-app.is-secondary .workshop-hero {
  height: 245px;
  margin-top: 7px;
  border-radius: 1px;
  background:
    linear-gradient(
      180deg,
      rgba(4, 4, 2, .12),
      rgba(4, 4, 2, .5)),
    url(/assets/design/city-scene.png) center / cover no-repeat;
}
.user-app.is-secondary .workshop-hero img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  filter: saturate(.92) brightness(.86) contrast(1.03);
}
.user-app.is-secondary .featured-strip {
  gap: 4px;
  margin-top: 7px;
}
.user-app.is-secondary .featured-cell {
  gap: 2px;
  padding: 4px 2px;
  border-radius: 1px;
  background: rgba(8, 8, 4, .94);
}
.user-app.is-secondary .featured-cell .item-thumb {
  max-height: 68px;
}
.user-app.is-secondary .featured-cell b {
  font-size: 9px;
}
.user-app.is-secondary .count-tabs {
  width: 62%;
  margin-right: auto;
  margin-left: auto;
}
.user-app.is-secondary .pity-bar {
  margin-top: 8px;
}
.user-app.is-secondary .pity-bar p {
  font-size: 9px;
}
.user-app.is-secondary .podium {
  gap: 5px;
  margin-top: 6px;
}
.user-app.is-secondary .podium-cell {
  gap: 3px;
  min-width: 0;
  padding: 18px 3px 7px;
  overflow: hidden;
  border-radius: 1px;
  background:
    linear-gradient(
      180deg,
      rgba(46, 34, 13, .88),
      rgba(7, 7, 4, .97));
}
.user-app.is-secondary .podium-cell.is-rank-1 {
  padding: 23px 3px 10px;
}
.user-app.is-secondary .podium-cell .rank-avatar,
.user-app.is-secondary .podium-cell.is-rank-1 .rank-avatar {
  width: 100%;
  height: 92px;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center top;
}
.user-app.is-secondary .podium-cell.is-rank-1 .rank-avatar {
  height: 112px;
}
.user-app.is-secondary .podium-medal {
  top: 3px;
  left: 5px;
  width: 20px;
  height: 20px;
  font-size: 11px;
}
.user-app.is-secondary .podium-cell b {
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-app.is-secondary .podium-score {
  font-size: 9px;
}
.user-app.is-secondary .board-heading {
  margin: 10px 2px 5px;
  color: #ead89e;
  font-size: 18px;
}
.user-app.is-secondary .rank-table {
  margin-top: 6px;
  border-radius: 1px;
}
.user-app.is-secondary .rank-head,
.user-app.is-secondary .rank-row {
  min-height: 34px;
  font-size: 10px;
}
.user-app.is-secondary .rank-player .rank-avatar {
  width: 25px;
  height: 25px;
}
.user-app.is-secondary .own-strip {
  margin-top: 7px;
  border-radius: 1px;
  font-size: 10px;
}
.user-app.is-secondary .ranking-scroll-status {
  min-height: 38px;
  padding: 11px 0 4px;
  font-size: 9px;
}
.user-app.is-secondary .recharge-balance {
  min-height: 75px;
  background:
    linear-gradient(
      90deg,
      rgba(10, 9, 5, .9),
      rgba(30, 25, 12, .72)),
    url(/assets/design/city-scene.png) center / cover;
}
.user-app.is-secondary .recharge-balance-copy b {
  color: #f0dda2;
  font-size: 31px;
}
.user-app.is-secondary .amount-grid {
  gap: 5px;
}
.user-app.is-secondary .amount-cell {
  min-height: 72px;
  border-radius: 1px;
  background:
    linear-gradient(
      180deg,
      rgba(32, 27, 14, .86),
      rgba(8, 8, 4, .96)),
    url(/assets/design/city-scene.png) center / cover;
}
.user-app.is-secondary .amount-cell.is-active {
  background:
    linear-gradient(
      180deg,
      rgba(123, 88, 27, .8),
      rgba(41, 28, 8, .96)),
    url(/assets/design/city-scene.png) center / cover;
}
.user-app.is-secondary .recharge-summary {
  padding: 3px 10px;
}
.user-app.is-secondary .recharge-summary p {
  padding: 8px 0;
}
.user-app.is-secondary .flow-panel,
.user-app.is-secondary .grant-panel {
  padding: 5px 9px 7px;
}
.user-app.is-secondary .flow-date {
  margin: 4px -9px 1px;
  padding: 5px 9px;
  background:
    linear-gradient(
      90deg,
      rgba(41, 32, 14, .9),
      rgba(8, 8, 4, .25)),
    url(/assets/design/mountain-header.png) center / cover;
  font-size: 15px;
}
.user-app.is-secondary .flow-row,
.user-app.is-secondary .grant-row {
  padding: 9px 0;
}
.user-app.is-secondary .flow-main b,
.user-app.is-secondary .grant-main b {
  font-size: 13px;
}
.user-app.is-secondary .flow-main span,
.user-app.is-secondary .grant-items {
  font-size: 9px;
}
.user-app.is-secondary .flow-side b {
  font-size: 15px;
}
.user-app.is-secondary .gold-button {
  min-height: 48px;
  border-radius: 1px;
  color: #241502;
  background:
    linear-gradient(
      180deg,
      #f1d795,
      #c59a4c 54%,
      #e5c477);
  font-size: 20px;
  box-shadow:
    inset 0 0 0 2px rgba(88, 54, 11, .28),
    inset 0 0 0 4px rgba(255, 235, 174, .2),
    0 8px 18px rgba(0, 0, 0, .42);
}
.user-app.is-secondary .gold-button:has(.currency-icon) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.user-app.is-secondary .pity-bar.is-warn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.user-app.is-secondary .bottom-cta {
  margin-top: 10px;
}
.user-app.is-secondary .logout-link {
  margin-top: 13px;
  color: #9f8e68;
}
.login-page {
  background: #080804;
}
.login-scenery {
  background:
    linear-gradient(
      180deg,
      rgba(5, 5, 2, .35) 0,
      rgba(5, 5, 2, .16) 18%,
      rgba(5, 5, 2, .38) 42%,
      rgba(6, 6, 3, .94) 68%,
      #080804 100%),
    url(/assets/design/city-scene.png) center top / 100% auto no-repeat;
  filter: saturate(.78) sepia(.08) contrast(1.08) brightness(.78);
}
.login-warrior {
  position: absolute;
  z-index: 1;
  top: 126px;
  left: 50%;
  width: min(476px, 100vw);
  height: auto;
  object-fit: cover;
  object-position: center;
  transform: translateX(-50%);
  opacity: 1;
  mix-blend-mode: normal;
  filter: brightness(.8) contrast(1.12) saturate(.8) drop-shadow(0 12px 22px #000);
  -webkit-mask-image:
    linear-gradient(
      180deg,
      transparent 0,
      #000 11%,
      #000 83%,
      transparent 100%);
  mask-image:
    linear-gradient(
      180deg,
      transparent 0,
      #000 11%,
      #000 83%,
      transparent 100%);
  pointer-events: none;
}
.login-stage {
  z-index: 2;
  justify-content: flex-start;
  padding: 38px 18px 16px;
}
.login-brand h1 {
  color: #f0d98e;
  font-size: clamp(43px, 10.3vw, 50px);
  text-shadow: 0 2px 0 #634113, 0 4px 12px #000;
}
.login-brand p {
  margin-top: 8px;
  font-size: 11px;
}
.login-form {
  width: min(430px, 100%);
  flex: 0 0 auto;
  margin-top: 258px;
  padding: 0;
}
.login-form h2 {
  font-size: 27px;
}
.login-slogan {
  margin: 7px 0 14px;
  font-size: 10px;
}
.login-form form {
  gap: 11px;
}
.login-field {
  gap: 5px;
  font-size: 11px;
}
.login-field input {
  height: 43px;
  border-radius: 1px;
  background: rgba(8, 8, 4, .9);
}
.login-code-button {
  border-radius: 1px;
}
.login-submit {
  min-height: 48px;
  border-radius: 1px;
}
.login-foot {
  margin-top: auto;
  padding-top: 12px;
}
@media (min-width: 721px) {
  .page-scenery,
  .user-app.is-secondary .page-scenery {
    background-position: center, center;
    background-size: cover, auto 100%;
  }
  .user-app.is-secondary .page-content.is-sub {
    width: 476px;
    zoom: var(--secondary-page-scale);
    box-shadow: 0 0 70px rgba(0, 0, 0, .9);
  }
  .login-stage {
    width: 476px;
    max-width: none;
    margin: 0 auto;
    zoom: var(--secondary-page-scale, 1);
  }
}
@media (min-width: 721px) and (max-width: 999px) {
  .user-app.is-secondary,
  .login-page {
    --secondary-page-scale: 1.08;
  }
}
@media (min-width: 1000px) and (max-width: 1279px) {
  .user-app.is-secondary,
  .login-page {
    --secondary-page-scale: 1.2;
  }
}
@media (min-width: 1280px) and (max-width: 1599px) {
  .user-app.is-secondary,
  .login-page {
    --secondary-page-scale: 1.35;
  }
}
@media (min-width: 1600px) {
  .user-app.is-secondary,
  .login-page {
    --secondary-page-scale: 1.5;
  }
}
@media (max-width: 420px) {
  .user-app.is-secondary .page-content.is-sub {
    padding-right: 7px;
    padding-left: 7px;
  }
  .user-app.is-secondary .sub-header {
    margin-right: -7px;
    margin-left: -7px;
  }
  .user-app.is-secondary .sub-title {
    font-size: 38px;
  }
  .user-app.is-secondary .identity-card {
    grid-template-columns: 39% minmax(0, 1fr);
  }
  .user-app.is-secondary .identity-copy h2 {
    font-size: 25px;
  }
  .user-app.is-secondary .identity-motto {
    font-size: 9px;
  }
  .user-app.is-secondary .equipment-grid.is-edit .equipment-art {
    width: 50px;
    min-height: 50px;
  }
  .login-stage {
    padding-right: 12px;
    padding-left: 12px;
  }
  .login-form {
    margin-top: 245px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
.dungeon-list {
  display: grid;
  gap: 14px;
}
.dungeon-card {
  position: relative;
  min-height: 216px;
  overflow: hidden;
  border: 1px solid rgba(172, 137, 70, .5);
  border-radius: 8px;
  background: #100e09;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .4);
}
.dungeon-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dungeon-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(8, 7, 5, .18) 0%,
      rgba(8, 7, 5, .42) 46%,
      rgba(6, 5, 4, .93) 100%);
}
.dungeon-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 13px;
  border: 1px solid rgba(190, 190, 190, .5);
  border-radius: 999px;
  color: #b9b3a4;
  font-size: 13px;
  letter-spacing: .08em;
  background: rgba(10, 9, 7, .62);
  backdrop-filter: blur(3px);
}
.dungeon-chip.is-gold {
  border-color: rgba(216, 188, 116, .85);
  color: #ecd9a0;
}
.dungeon-info {
  position: absolute;
  right: 128px;
  bottom: 14px;
  left: 16px;
  z-index: 1;
}
.dungeon-info h3 {
  margin: 0 0 6px;
  color: #f4ecd2;
  font:
    30px/1.15 "STKaiti",
    "KaiTi",
    serif;
  letter-spacing: .06em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .85);
}
.dungeon-desc {
  margin: 0 0 10px;
  color: #cfc6ae;
  font-size: 13px;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dungeon-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 4px 0 0;
  color: #b5ab90;
  font-size: 12px;
  letter-spacing: .04em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}
.dungeon-meta i {
  font-style: normal;
  color: #a98f56;
}
.dungeon-cta {
  position: absolute;
  right: 12px;
  bottom: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 104px;
  min-height: 42px;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  color: #3a2408;
  font:
    17px "STKaiti",
    "KaiTi",
    serif;
  letter-spacing: .06em;
  background:
    linear-gradient(
      110deg,
      #e7ce92,
      #c3a05c);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 240, 200, .6);
  cursor: pointer;
}
.dungeon-cta i {
  font-style: normal;
  font-family: Georgia, serif;
}
.dungeon-cta:hover {
  filter: brightness(1.07);
}
@media (max-width: 480px) {
  .dungeon-card {
    min-height: 200px;
  }
  .dungeon-info {
    right: 116px;
  }
  .dungeon-info h3 {
    font-size: 26px;
  }
  .dungeon-cta {
    min-width: 96px;
    min-height: 40px;
    font-size: 16px;
  }
}
.dd-hero {
  position: relative;
  min-height: 250px;
  margin-top: 4px;
  overflow: hidden;
  border: 1px solid rgba(172, 137, 70, .5);
  border-radius: 8px;
  background: #100e09;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}
.dd-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dd-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(8, 7, 5, .12),
      rgba(8, 7, 5, .5) 52%,
      rgba(5, 4, 3, .95));
}
.dd-hero-chip {
  top: 12px;
  right: 12px;
}
.dd-hero-copy {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 1;
}
.dd-hero-eyebrow {
  color: #cbb277;
  font-size: 12px;
  letter-spacing: .18em;
  text-shadow: 0 1px 3px #000;
}
.dd-hero-copy h2 {
  margin: 4px 0 6px;
  color: #f4ecd2;
  font:
    34px/1.15 "STKaiti",
    "KaiTi",
    serif;
  letter-spacing: .08em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .9);
}
.dd-hero-quote {
  margin: 0 0 8px;
  color: #d8cba6;
  font-size: 13px;
  letter-spacing: .06em;
  text-shadow: 0 1px 4px #000;
}
.dd-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  color: #b5ab90;
  font-size: 12px;
  text-shadow: 0 1px 3px #000;
}
.dd-difficulty {
  color: #e0b95c;
  letter-spacing: .12em;
}
.dd-panel {
  margin-top: 14px;
}
.dd-intro {
  margin: 6px 0;
  color: #cfc6ae;
  font-size: 14px;
  line-height: 1.9;
}
.dd-objectives {
  display: grid;
  gap: 10px;
}
.dd-objective {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(172, 137, 70, .35);
  border-radius: 6px;
  background: rgba(20, 16, 10, .6);
}
.dd-objective em {
  align-self: start;
  padding-top: 1px;
  color: #cbb277;
  font:
    15px "STKaiti",
    "KaiTi",
    serif;
  font-style: normal;
  letter-spacing: .1em;
}
.dd-objective p {
  margin: 0;
  color: #d6cdb4;
  font-size: 13px;
  line-height: 1.7;
}
.dd-objective.is-hard {
  border-color: rgba(206, 140, 72, .5);
}
.dd-objective.is-hard em {
  color: #e0a55c;
}
.dd-objective.is-hidden {
  border-color: rgba(160, 110, 190, .42);
}
.dd-objective.is-hidden em {
  color: #c8a1e0;
}
.dd-titles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dd-title-tag {
  padding: 6px 14px;
  border: 1px solid rgba(172, 137, 70, .5);
  border-radius: 999px;
  color: #e3d3a3;
  font-size: 13px;
  letter-spacing: .06em;
  background: rgba(26, 20, 12, .7);
}
.dd-map {
  display: block;
  width: 100%;
  border: 1px solid rgba(172, 137, 70, .45);
  border-radius: 6px;
}
.dd-map-note {
  margin: 8px 0 0;
  color: #a2957a;
  font-size: 12px;
  line-height: 1.6;
}
.dd-char-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.dchar-cell {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(172, 137, 70, .32);
  border-radius: 6px;
  background: rgba(18, 15, 10, .65);
  align-items: start;
}
.dchar-portrait {
  position: relative;
  display: block;
  width: 64px;
  height: 78px;
  overflow: hidden;
  border: 1px solid rgba(172, 137, 70, .45);
  border-radius: 4px;
  background: #0d0b08 center/cover no-repeat;
}
.dchar-portrait.is-sprite {
  background-color: #0d0b08;
  background-repeat: no-repeat;
}
.dchar-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dchar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(216, 188, 116, .5);
  font:
    24px "STKaiti",
    "KaiTi",
    serif;
  font-style: normal;
}
.dchar-body {
  min-width: 0;
}
.dchar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin: 0 0 5px;
}
.dchar-head b {
  color: #ecdfba;
  font:
    17px "STKaiti",
    "KaiTi",
    serif;
  letter-spacing: .04em;
}
.dchar-difficulty {
  color: #e0b95c;
  font-size: 11px;
  letter-spacing: .1em;
}
.dchar-role {
  padding: 1px 7px;
  border: 1px solid rgba(172, 137, 70, .5);
  border-radius: 999px;
  color: #cbb277;
  font-size: 10px;
  letter-spacing: .05em;
}
.dchar-history {
  margin: 0;
  color: #b3a888;
  font-size: 12px;
  line-height: 1.65;
}
.dchar-fate {
  margin: 4px 0 0;
  color: #8f846e;
  font-size: 11px;
  line-height: 1.6;
}
.dchar-history em,
.dchar-fate em {
  margin-right: 6px;
  padding: 0 4px;
  border: 1px solid rgba(172, 137, 70, .35);
  border-radius: 3px;
  color: #a98f56;
  font-size: 10px;
  font-style: normal;
}
.is-enemy .dchar-cell {
  border-color: rgba(150, 84, 62, .4);
}
.is-enemy .dchar-cell b {
  color: #e6c9b8;
}
.dd-foot {
  margin: 16px 0 0;
  text-align: center;
  color: #8f846e;
  font-size: 12px;
  letter-spacing: .06em;
}
@media (max-width: 480px) {
  .dd-hero {
    min-height: 230px;
  }
  .dd-hero-copy h2 {
    font-size: 30px;
  }
}
.dd-loot-titles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.dd-loot-kind {
  margin-right: 4px;
  color: #a98f56;
  font-size: 12px;
  letter-spacing: .12em;
}
.dd-loot-group + .dd-loot-group {
  margin-top: 12px;
}
.dd-loot-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}
.dd-loot-head span {
  color: #8f846e;
  font-size: 11px;
}
.dd-loot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.dd-loot-item {
  padding: 8px 10px;
  border: 1px solid rgba(172, 137, 70, .35);
  border-radius: 5px;
  color: #d6cdb4;
  font-size: 13px;
  text-align: center;
  background: rgba(18, 15, 10, .65);
}
.dd-relic-showcase {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(216, 188, 116, .45);
  border-radius: 8px;
  background:
    radial-gradient(
      ellipse at 30% 20%,
      rgba(90, 66, 24, .35),
      rgba(14, 11, 7, .9));
}
.dd-relic-img {
  width: 118px;
  height: 118px;
  object-fit: cover;
  border: 1px solid rgba(216, 188, 116, .6);
  border-radius: 6px;
}
.dd-relic-seal {
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  border: 1px solid rgba(216, 188, 116, .6);
  border-radius: 6px;
  color: #e8c66a;
  font:
    40px "STKaiti",
    "KaiTi",
    serif;
  background: rgba(30, 22, 10, .8);
}
.dd-relic-copy b {
  display: block;
  color: #f0e2ba;
  font:
    21px "STKaiti",
    "KaiTi",
    serif;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.dd-relic-effect {
  margin: 8px 0 0;
  color: #c9bd9c;
  font-size: 12px;
  line-height: 1.7;
}
.dd-relic-effect strong {
  display: block;
  color: #e3cf96;
  font-size: 13px;
  margin-bottom: 2px;
}
.dd-relic-history {
  margin: 8px 0 0;
  color: #a2957a;
  font-size: 12px;
  line-height: 1.6;
}
@media (max-width: 480px) {
  .dd-loot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.dchar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 6px;
  color: #8f846e;
  font-size: 11px;
  letter-spacing: .04em;
}
.dchar-meta .dchar-difficulty {
  color: #e0b95c;
  font-size: 12px;
  letter-spacing: .08em;
}
.dchar-meta .dchar-troops b {
  color: #cfc6ae;
  font-weight: 600;
  font-size: 12px;
}
.dchar-portrait-wrap {
  position: relative;
}
.dchar-no {
  position: absolute;
  right: 3px;
  bottom: 3px;
  padding: 0 4px;
  border-radius: 3px;
  color: #e8c66a;
  font: 10px Georgia, serif;
  background: rgba(8, 7, 5, .78);
}
.dchar-stars {
  display: inline-flex;
  gap: 1px;
}
.dchar-stars i {
  color: rgba(172, 137, 70, .32);
  font-style: normal;
  font-size: 11px;
}
.dchar-stars i.is-lit {
  color: #e0b95c;
}
.inventory-page-sentinel {
  min-height: 42px;
  padding: 12px 0 2px;
  color: #8f846e;
  font-size: 12px;
  text-align: center;
}
.inventory-load-more {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(172, 137, 70, .45);
  border-radius: 5px;
  color: #d8c58f;
  background: rgba(28, 22, 12, .72);
  cursor: pointer;
}
button.dungeon-chip {
  font-family: inherit;
  cursor: pointer;
  transition: filter .2s ease;
}
button.dungeon-chip:hover:not(:disabled) {
  filter: brightness(1.15);
}
button.dungeon-chip:disabled {
  cursor: default;
  opacity: .72;
}
.dungeon-chip.is-booked {
  border-color: rgba(216, 188, 116, .32);
  color: #8f846e;
  background: rgba(10, 9, 7, .74);
}
.reservation-list {
  display: grid;
  gap: 10px;
}
.reservation-state {
  display: grid;
  width: 100%;
  min-height: 102px;
  margin: 0;
  padding: 0 20px;
  place-items: center;
  border: 1px dashed rgba(172, 137, 70, .38);
  border-radius: 5px;
  color: #8f846e;
  background: rgba(17, 17, 11, .5);
  font-size: 14px;
}
button.reservation-state {
  cursor: pointer;
}
button.reservation-state.is-error {
  color: #c58b7d;
}
.reservation-thumb {
  display: grid;
  width: 100%;
  height: 102px;
  place-items: center;
  border-right: 1px solid #8e6e34;
  color: #a98a54;
  background: #15120c;
  font:
    34px "STKaiti",
    "KaiTi",
    serif;
}
.reservation-card button.reservation-cancel {
  min-width: 112px;
  min-height: 52px;
  margin-right: 18px;
  border: 1px solid #a66a5a;
  border-radius: 5px;
  color: #efd0c4;
  background: rgba(94, 44, 34, .4);
  cursor: pointer;
  font:
    19px "STKaiti",
    "KaiTi",
    serif;
}
.reservation-card button.reservation-cancel:hover:not(:disabled) {
  filter: brightness(1.12);
}
.reservation-card button.reservation-cancel:disabled {
  opacity: .5;
  cursor: not-allowed;
}
@media (max-width: 720px) {
  .reservation-state {
    min-height: 55px;
  }
  .reservation-thumb {
    height: 55px;
    font-size: 22px;
  }
  .reservation-card button.reservation-cancel {
    min-width: 75px;
    min-height: 35px;
    margin-right: 7px;
    font-size: 14px;
  }
}
@media (max-width: 420px) {
  .reservation-card button.reservation-cancel {
    min-width: 58px;
    margin-right: 6px;
    padding: 0 5px;
  }
}

/* src/titles.css */
.equipped-title {
  --title-color:#c5cbd0;
  --title-glow:#84909c;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  max-width: 100%;
  padding: 9px 16px;
  border: 1px solid var(--title-color);
  border-radius: 3px;
  background: #101014;
  color: var(--title-color);
  font-family:
    "STKaiti",
    "KaiTi",
    serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: center;
  vertical-align: middle;
}
.equipped-title .title-lettering {
  position: relative;
  z-index: 3;
  overflow-wrap: anywhere;
}
.equipped-title[data-quality=\7cbe\826f] {
  --title-color:#a5edb0;
  --title-glow:#39c870;
  background:
    linear-gradient(
      180deg,
      #1c3628,
      #0a1710);
  text-shadow: 0 0 9px #39c87090;
  box-shadow: inset 0 0 12px #39c87030;
}
.equipped-title[data-quality=\7a00\6709] {
  --title-color:#99ddff;
  --title-glow:#278dff;
  background:
    linear-gradient(
      180deg,
      #19364d,
      #09121f);
  text-shadow: 0 0 10px #278dff;
  box-shadow: inset 0 0 15px #278dff40, 0 0 12px #278dff45;
}
.equipped-title[data-quality=\53f2\8bd7] {
  --title-color:#edc0ff;
  --title-glow:#be5bff;
  padding-inline: 27px;
  border-color: #e3abff;
  background:
    linear-gradient(
      180deg,
      #4c2260,
      #190e26 65%,
      #43214e);
  text-shadow: 0 0 5px #fff5, 0 0 13px #c44aff;
  box-shadow:
    inset 0 0 16px #c44aff55,
    0 0 8px #c44aff75,
    0 0 20px #b443ff35;
  animation: titleAura 2.8s ease-in-out infinite;
}
.equipped-title[data-quality=\4f20\8bf4] {
  --title-color:#ffe7a2;
  --title-glow:#ffb624;
  padding-inline: 29px;
  border-color: #ffdd77;
  background:
    linear-gradient(
      180deg,
      #6b4512,
      #211006 55%,
      #674015);
  text-shadow:
    0 1px 1px #462000,
    0 0 7px #ffe798,
    0 0 17px #ffb624;
  box-shadow:
    inset 0 0 18px #ffc84570,
    0 0 8px #ffd34ca0,
    0 0 24px #f7a81765;
  animation: titleAura 2.3s ease-in-out infinite;
}
.title-rim,
.title-wing,
.title-sparks {
  position: absolute;
  pointer-events: none;
  display: none;
}
.title-rim {
  inset: -2px;
  z-index: 1;
  overflow: hidden;
  border-radius: 3px;
  padding: 2px;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
.title-rim::before {
  content: "";
  position: absolute;
  inset: -200%;
  background:
    conic-gradient(
      from 0deg,
      transparent 0 15%,
      var(--title-color) 21%,
      #fff 24%,
      transparent 30% 65%,
      var(--title-glow) 72%,
      #fff 75%,
      transparent 81%);
  animation: titleRimOrbit 3.4s linear infinite;
}
.equipped-title[data-quality=\7a00\6709] .title-rim,
.equipped-title[data-quality=\53f2\8bd7] .title-rim,
.equipped-title[data-quality=\4f20\8bf4] .title-rim {
  display: block;
}
.equipped-title[data-quality=\53f2\8bd7] .title-wing,
.equipped-title[data-quality=\4f20\8bf4] .title-wing,
.equipped-title[data-quality=\53f2\8bd7] .title-sparks,
.equipped-title[data-quality=\4f20\8bf4] .title-sparks {
  display: block;
}
.title-wing {
  z-index: 2;
  width: 23px;
  height: 34px;
  top: 50%;
  margin-top: -17px;
  background:
    linear-gradient(
      115deg,
      var(--title-glow),
      #fff3c7 42%,
      var(--title-color) 53%,
      var(--title-glow));
  clip-path: polygon(0 0, 36% 18%, 70% 22%, 48% 37%, 95% 46%, 60% 56%, 100% 73%, 58% 78%, 68% 100%, 25% 78%, 0 55%, 13% 32%);
  filter: drop-shadow(0 0 5px var(--title-glow));
}
.title-wing.is-left {
  left: 0;
}
.title-wing.is-right {
  right: 0;
  transform: scaleX(-1);
}
.equipped-title::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(
      110deg,
      transparent 25%,
      #fff7 48%,
      transparent 65%);
  background-size: 250% 100%;
}
.equipped-title[data-quality=\53f2\8bd7]::after,
.equipped-title[data-quality=\4f20\8bf4]::after {
  animation: titleSweep 3.4s ease-in-out infinite;
}
.equipped-title[data-quality=\4f20\8bf4] .title-lettering {
  background:
    linear-gradient(
      105deg,
      #ffd06b 15%,
      #fff9d8 35%,
      #fff 45%,
      #eeb13c 60%,
      #fff2b0 85%);
  background-size: 200% auto;
  background-clip: text;
  color: transparent;
  animation: titleGoldText 3s linear infinite;
}
.title-sparks {
  z-index: 4;
  inset: 0;
}
.title-sparks > i {
  position: absolute;
  left: calc(8% + var(--spark) * 12%);
  top: 75%;
  width: 4px;
  height: 7px;
  background: #fff8d3;
  clip-path: polygon(50% 0, 65% 36%, 100% 50%, 65% 64%, 50% 100%, 35% 64%, 0 50%, 35% 36%);
  opacity: 0;
  animation: titleEmber 2.4s ease-out infinite;
  animation-delay: calc(var(--spark) * -.37s);
}
.equipped-title[data-quality=\53f2\8bd7] .title-sparks > i {
  background: #f6d5ff;
}
.equipped-title-empty {
  color: #aa9873;
  font-size: 17px;
}
.profile-equipped-title {
  max-width: 100%;
  margin-top: 10px;
  text-align: center;
}
.profile-name-row,
.identity-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
}
.profile-name-row h2,
.identity-name-row h2 {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}
@keyframes titleRimOrbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes titleSweep {
  0%, 20% {
    background-position: 170% 0;
    opacity: 0;
  }
  35% {
    opacity: .8;
  }
  65%, 100% {
    background-position: -70% 0;
    opacity: 0;
  }
}
@keyframes titleAura {
  0%, 100% {
    filter: drop-shadow(0 0 1px var(--title-glow));
  }
  50% {
    filter: drop-shadow(0 0 5px var(--title-glow));
  }
}
@keyframes titleGoldText {
  to {
    background-position: 200% center;
  }
}
@keyframes titleEmber {
  0% {
    transform: translate(0, 5px) scale(.3);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  80%, 100% {
    transform: translate(5px, -30px) scale(.4);
    opacity: 0;
  }
}
@media (max-width: 520px) {
  .equipped-title {
    font-size: 14px;
    padding: 8px 20px;
  }
  .equipped-title[data-quality=\53f2\8bd7],
  .equipped-title[data-quality=\4f20\8bf4] {
    padding-inline: 20px;
  }
  .title-wing {
    width: 16px;
    height: 26px;
    margin-top: -13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .equipped-title,
  .equipped-title *,
  .equipped-title::after,
  .title-rim::before {
    animation: none !important;
  }
  .equipped-title::after,
  .title-sparks {
    display: none !important;
  }
}
/*# sourceMappingURL=app.css.map */
