



/* An immortal is its own exclusive equipment slot, not a second treasure. */
.equipment-slot-grid > div.is-immortal-slot,
.detail-equipment-grid > div.is-immortal-slot {
  border: 1px solid #bc9547;
  background: radial-gradient(ellipse at right top, #96702926, transparent 70%), #1c170d;
  box-shadow: inset 0 0 0 3px #c7a14e0c;
}
.equipment-slot-grid > div.is-immortal-slot > span,
.detail-equipment-grid > div.is-immortal-slot > span { color: #edcf7a; }

/* 称号与仙品同排展示，青玉色系与仙品区分。 */
.equipment-slot-grid > div.is-title-slot,
.detail-equipment-grid > div.is-title-slot {
  border: 1px solid #6fa08a;
  background: radial-gradient(ellipse at right top, #4a7a6426, transparent 70%), #121712;
  box-shadow: inset 0 0 0 3px #7fd4b60c;
}
.equipment-slot-grid > div.is-title-slot > span,
.detail-equipment-grid > div.is-title-slot > span { color: #a9d9c1; }

/* Offline preview fallback for the small Tailwind utility subset used by this screen. */
.relative { position: relative; }
.isolate { isolation: isolate; }
.min-h-screen { min-height: 100vh; }
.overflow-hidden { overflow: hidden; }
.bg-\[\#070504\] { background-color: #070504; }
.text-\[\#eee4cf\] { color: #eee4cf; }
.pointer-events-none { pointer-events: none; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }

:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-synthesis: none;
  --ink: #070504;
  --gold: #d3a95f;
  --gold-bright: #f4d892;
  --gold-dim: #78603a;
  --red: #6f1615;
  --bronze: #5c482c;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-width: 0;
  height: 100%;
  min-height: 0;
  margin: 0;
  background: var(--ink);
}

button {
  font: inherit;
}

.game-shell {
  height: 100%;
  min-height: 600px;
}

.scene-background {
  position: absolute;
  inset: -1.5%;
  background-image: linear-gradient(180deg, rgba(3, 3, 4, 0.02), rgba(4, 2, 1, 0.23)), url("/assets/generated/home-bg.png");
  background-position: center;
  background-size: cover;
  filter: saturate(0.82) contrast(1.08) brightness(0.8);
  animation: sceneBreath 18s ease-in-out infinite alternate;
}

.moving-clouds {
  position: absolute;
  inset: 0 0 38%;
  opacity: 0.28;
  background:
    radial-gradient(ellipse at 15% 55%, rgba(4, 4, 5, 0.9) 0 13%, transparent 40%),
    radial-gradient(ellipse at 78% 35%, rgba(8, 7, 8, 0.82) 0 17%, transparent 45%);
  filter: blur(18px);
  animation: cloudMarch 34s ease-in-out infinite alternate;
}

.star-drift {
  position: absolute;
  inset: 0 0 48%;
  animation: starsTravel 48s linear infinite alternate;
}

.star-drift i {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: #f6ecd7;
  box-shadow: 0 0 6px rgba(244, 216, 146, 0.9);
  animation: starPulse 6s ease-in-out infinite;
}

.fire-glow {
  position: absolute;
  bottom: 16%;
  width: 23vw;
  height: 31vh;
  border-radius: 50%;
  opacity: 0.34;
  filter: blur(36px);
  background: radial-gradient(ellipse at 50% 75%, rgba(255, 118, 28, 0.82), rgba(120, 21, 8, 0.2) 42%, transparent 70%);
  mix-blend-mode: screen;
  animation: fireFlicker 4.8s ease-in-out infinite alternate;
}

.fire-glow-left { left: -8vw; }
.fire-glow-right { right: -9vw; animation-delay: -2.4s; }

.vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 24%, transparent 66%, rgba(0, 0, 0, 0.66)),
    radial-gradient(ellipse at center, transparent 34%, rgba(0, 0, 0, 0.58) 100%);
}

.grain {
  position: absolute;
  inset: -100%;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  animation: grainShift 0.24s steps(2) infinite;
}

.floating-bamboo {
  position: absolute;
  bottom: 5.8vh;
  display: flex;
  gap: 2px;
  opacity: 0.16;
  filter: blur(0.2px) drop-shadow(0 8px 8px #000);
  animation: bambooFloat 8s ease-in-out infinite;
}

.floating-bamboo span {
  width: 13px;
  height: 86px;
  border: 1px solid rgba(184, 137, 62, 0.56);
  background: linear-gradient(90deg, #281c0d, #76572d 45%, #281c0d);
  transform: rotate(var(--tilt, -3deg));
}

.bamboo-left { left: 2vw; transform: rotate(73deg); }
.bamboo-right { right: 3vw; transform: rotate(-68deg); animation-delay: -4s; }

.game-header {
  position: absolute;
  z-index: 30;
  top: clamp(18px, 2.7vh, 34px);
  left: clamp(24px, 3vw, 58px);
  right: clamp(24px, 3vw, 58px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.logo-lockup {
  position: relative;
  width: clamp(330px, 24vw, 460px);
  height: clamp(94px, 12vh, 136px);
}

.logo-ornament {
  position: absolute;
  inset: -25% -12%;
  width: 124%;
  height: 150%;
  object-fit: contain;
  opacity: 0.62;
  mix-blend-mode: screen;
  filter: saturate(0.72) sepia(0.15) brightness(0.76);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, rgba(0,0,0,.8) 57%, transparent 77%);
  mask-image: radial-gradient(ellipse at center, #000 35%, rgba(0,0,0,.8) 57%, transparent 77%);
}

.logo-copy {
  position: relative;
  z-index: 2;
  width: 80%;
  margin-left: 8%;
  text-align: center;
  filter: drop-shadow(0 3px 4px #000);
}

.logo-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1px;
  color: rgba(219, 184, 113, 0.52);
  font-family: Georgia, serif;
  font-size: 8px;
  letter-spacing: 0.31em;
}

.logo-kicker span { width: 24px; height: 1px; background: linear-gradient(90deg, transparent, #8d7041); }
.logo-kicker span:last-child { transform: rotate(180deg); }

.logo-copy h1 {
  margin: 0;
  color: #d6b568;
  font-family: "STKaiti", "KaiTi", "FangSong", serif;
  font-size: clamp(32px, 2.45vw, 48px);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.08;
  text-shadow: 0 1px 0 #fff0b1, 0 3px 0 #654416, 0 8px 18px #000, 0 0 20px rgba(208, 157, 64, 0.3);
}

.logo-copy h1 span { color: #7a201c; margin: 0 -0.05em; }

.logo-copy p {
  margin: 6px 0 0;
  color: rgba(231, 213, 175, 0.78);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(13px, 1vw, 17px);
  letter-spacing: 0.44em;
}

.player-token {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(108px, 1fr) minmax(132px, 0.9fr);
  align-items: center;
  width: clamp(350px, 23vw, 390px);
  min-height: 98px;
  padding: 13px 20px 13px 16px;
  clip-path: polygon(6% 0, 94% 0, 100% 19%, 98% 82%, 93% 100%, 7% 100%, 2% 82%, 0 18%);
  border: 1px solid rgba(202, 157, 77, 0.55);
  background:
    linear-gradient(90deg, rgba(92, 67, 31, 0.94), rgba(28, 22, 14, 0.96) 24%, rgba(15, 12, 9, 0.96) 74%, rgba(76, 55, 29, 0.92)),
    radial-gradient(circle at 20% 50%, #81643b, transparent 40%);
  box-shadow: inset 0 0 0 2px rgba(19, 12, 6, 0.88), inset 0 0 24px #000, 0 13px 30px rgba(0, 0, 0, 0.55);
}

.player-token::before,
.player-token::after {
  content: "";
  position: absolute;
  inset: 5px;
  pointer-events: none;
  clip-path: inherit;
  border: 1px solid rgba(222, 184, 103, 0.18);
}

.tiger-mark {
  display: grid;
  width: 45px;
  height: 56px;
  place-items: center;
  border: 1px solid #80643c;
  border-radius: 46% 54% 49% 51% / 34% 34% 66% 66%;
  color: #1d140a;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 23px;
  font-weight: 900;
  background: linear-gradient(135deg, #997747, #c29b5a 43%, #5f4526 88%);
  box-shadow: inset 0 0 10px #32210f, 0 0 10px rgba(201, 155, 73, 0.16);
  transform: rotate(-3deg);
}
.tiger-mark-button { padding:0; cursor:pointer; appearance:none; }
.tiger-mark-button:hover,.tiger-mark-button:focus-visible { color:#080603; border-color:#d1a75e; filter:brightness(1.13); outline:none; }
.tiger-mark-button:disabled { cursor:wait; opacity:.72; }
.player-token.is-live .tiger-mark { box-shadow:inset 0 0 10px #32210f,0 0 14px rgba(220,62,36,.48); }

.player-main { padding-left: 9px; border-right: 1px solid rgba(181, 140, 75, 0.24); }
.player-role { color: #a99774; font-size: 11px; letter-spacing: 0.24em; }
.player-role span { display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: #86251e; box-shadow: 0 0 8px #c14d2e; }
.player-name { margin-top: 4px; color: #ead9b5; font-family: "STKaiti", "KaiTi", serif; font-size: 23px; font-weight: 700; letter-spacing: 0.12em; }
.player-name button { max-width:100%; padding:0; overflow:hidden; border:0; color:inherit; background:none; font:inherit; letter-spacing:inherit; text-overflow:ellipsis; white-space:nowrap; cursor:pointer; }
.player-name button:hover,.player-name button:focus-visible { color:#fff1c8; text-decoration:underline; text-underline-offset:4px; outline:none; }
.player-name small { color: #c49b56; font-family: Georgia, serif; font-size: 10px; letter-spacing: 0.05em; }

.player-stats { display: grid; gap: 8px; padding-left: 16px; }
.player-stats div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.player-stats span { color: #887b65; font-size: 10px; white-space: nowrap; }
.player-stats strong { color: #d7b36e; font-family: Georgia, serif; font-size: 16px; font-weight: 500; }
.player-stats strong.live-status-on { color:#ef8b68; text-shadow:0 0 10px rgba(218,66,37,.42); }
.player-stats strong.live-status-off { color:#a99774; }
.player-logout { width:100%; min-height:24px; border:1px solid rgba(181,140,75,.42); color:#cbb98f; background:rgba(8,7,5,.6); cursor:pointer; font-size:10px; }
.player-logout:hover,.player-logout:focus-visible { border-color:#c69b55; color:#ffe2a6; background:#21170d; outline:none; }
.token-rivet { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #8f713f; box-shadow: inset 1px 1px #ccb177, 0 0 3px #000; }
.rivet-a { top: 12px; right: 15px; }
.rivet-b { bottom: 12px; right: 15px; }

.admin-profile-backdrop { position:fixed; z-index:1000; inset:0; display:grid; place-items:center; padding:20px; background:rgba(4,3,2,.76); backdrop-filter:blur(5px); clip-path:none; }
.admin-profile-dialog { width:min(440px,100%); border:1px solid rgba(211,166,88,.62); background:linear-gradient(145deg,#2b1e11,#120e09 72%); box-shadow:inset 0 0 0 2px rgba(12,8,4,.8),0 24px 70px #000; color:#e8d4ad; }
.admin-profile-dialog header { display:flex; align-items:center; justify-content:space-between; padding:20px 22px 16px; border-bottom:1px solid rgba(181,140,75,.25); }
.admin-profile-dialog header small { color:#9f8458; font-size:10px; letter-spacing:.22em; }
.admin-profile-dialog h2 { margin:4px 0 0; font-family:"STKaiti","KaiTi",serif; font-size:24px; letter-spacing:0; }
.admin-profile-dialog header button { width:32px; height:32px; border:1px solid rgba(181,140,75,.35); color:#cdb98e; background:#171008; font-size:22px; cursor:pointer; }
.admin-profile-dialog label { display:grid; gap:8px; margin:18px 22px; }
.admin-profile-dialog label span { color:#bba57c; font-size:12px; }
.admin-profile-dialog input { width:100%; min-height:42px; padding:0 12px; border:1px solid rgba(181,140,75,.38); color:#f2dfb9; background:rgba(7,5,3,.76); outline:none; }
.admin-profile-dialog input:focus { border-color:#c99a4f; box-shadow:0 0 0 2px rgba(201,154,79,.14); }
.admin-profile-dialog > p { margin:0 22px 14px; color:#e8876c; font-size:12px; }
.admin-profile-dialog footer { display:flex; justify-content:flex-end; gap:10px; padding:16px 22px 20px; }
.admin-profile-dialog footer button { min-width:94px; min-height:38px; border:1px solid rgba(181,140,75,.42); color:#cbb98f; background:#171008; cursor:pointer; }
.admin-profile-dialog footer button[type="submit"] { color:#211407; border-color:#d4a654; background:#c99a4f; font-weight:700; }
.admin-profile-dialog button:disabled { cursor:wait; opacity:.62; }

.destiny-stage {
  position: absolute;
  z-index: 10;
  top: clamp(82px, 10.5vh, 128px);
  left: 50%;
  width: min(65vw, 880px);
  height: clamp(320px, 47vh, 520px);
  transform: translateX(-50%);
}

.destiny-wheel-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.destiny-wheel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.92;
  filter: saturate(0.76) sepia(0.08) contrast(1.08) drop-shadow(0 0 28px rgba(172, 113, 31, 0.16));
  animation: wheelTurn 140s linear infinite;
}

.orbit {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(195, 151, 76, 0.19);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e6c47d;
  box-shadow: 0 0 10px #d47c28;
}

.orbit::before { left: -3px; }
.orbit::after { right: -3px; }
.orbit-outer { width: min(43vh, 430px); aspect-ratio: 1; animation: orbitTurn 34s linear infinite reverse; }
.orbit-inner { width: min(29vh, 285px); aspect-ratio: 1; border-style: dashed; animation: orbitTurn 22s linear infinite; }

.destiny-core {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(34vh, 330px);
  aspect-ratio: 1;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 4, 3, 0.89) 0 49%, rgba(17, 11, 6, 0.54) 67%, transparent 68%);
  text-shadow: 0 3px 8px #000;
}

.core-eyebrow {
  color: rgba(202, 168, 101, 0.67);
  font-family: "FangSong", serif;
  font-size: clamp(9px, 0.72vw, 12px);
  letter-spacing: 0.38em;
}

.destiny-core h2 {
  margin: 8px 0 4px;
  color: #ead7a5;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(25px, 2vw, 38px);
  font-weight: 600;
  letter-spacing: 0.14em;
}

.seal-divider { display: flex; align-items: center; gap: 7px; color: #8e2b22; font-family: "STKaiti", serif; font-size: 11px; }
.seal-divider i { display: block; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, #80602f); }
.seal-divider i:last-child { transform: rotate(180deg); }

.start-button {
  position: relative;
  width: clamp(178px, 13vw, 235px);
  height: clamp(48px, 5.8vh, 64px);
  margin-top: 13px;
  overflow: hidden;
  clip-path: polygon(7% 0, 93% 0, 100% 50%, 93% 100%, 7% 100%, 0 50%);
  border: 0;
  color: #1b1005;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255, 239, 173, 0.86), transparent 34%),
    linear-gradient(90deg, #76501c, #d6a84f 25%, #f2d17e 50%, #c4933d 75%, #684516);
  box-shadow: inset 0 0 0 2px rgba(50, 31, 8, 0.78), inset 0 -8px 16px rgba(84, 39, 4, 0.28), 0 0 18px rgba(220, 154, 55, 0.4), 0 12px 24px #000;
  transition: filter 220ms ease, transform 220ms ease;
}

.start-button::before,
.start-button::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  height: 18px;
  opacity: 0.54;
  filter: blur(9px);
  background: radial-gradient(ellipse, rgba(255, 132, 36, 0.9), transparent 65%);
  animation: buttonFlame 2.7s ease-in-out infinite alternate;
}
.start-button::before { bottom: -10px; }
.start-button::after { top: -12px; animation-delay: -1.3s; }
.start-button:hover { filter: brightness(1.18) saturate(1.12); transform: scale(1.035); }
.start-button:active { transform: scale(0.99); }
.start-button b { position: relative; z-index: 2; display: block; font-family: "STKaiti", "KaiTi", serif; font-size: clamp(16px, 1.25vw, 22px); letter-spacing: 0.22em; }
.start-button small { position: relative; z-index: 2; display: block; margin-top: -2px; font-family: Georgia, serif; font-size: 6px; letter-spacing: 0.24em; opacity: 0.65; }
.button-sheen { position: absolute; z-index: 1; top: -60%; left: -24%; width: 24%; height: 220%; background: rgba(255,255,255,.48); filter: blur(5px); transform: rotate(22deg); animation: goldSheen 3.6s ease-in-out infinite; }

.wheel-coordinate {
  position: absolute;
  z-index: 4;
  top: 50%;
  color: rgba(189, 148, 75, 0.45);
  font-family: "FangSong", serif;
  font-size: 9px;
  letter-spacing: 0.28em;
  writing-mode: vertical-rl;
}
.coordinate-left { left: 27%; transform: translateY(-50%); }
.coordinate-right { right: 27%; transform: translateY(-50%); }

.home-utility-dock {
  position: absolute;
  z-index: 24;
  top: clamp(142px, 15.5vh, 178px);
  right: clamp(24px, 3vw, 58px);
  display: grid;
  width: clamp(196px, 12.5vw, 236px);
  padding: 9px;
  border: 1px solid rgba(201, 157, 78, .42);
  background:
    linear-gradient(135deg, rgba(70, 45, 20, .88), rgba(12, 9, 6, .92) 43%, rgba(36, 23, 12, .9)),
    repeating-linear-gradient(0deg, transparent 0 11px, rgba(230, 187, 98, .025) 12px);
  box-shadow: inset 0 0 0 2px rgba(8, 5, 3, .72), inset 0 0 26px rgba(0, 0, 0, .58), 0 14px 28px rgba(0, 0, 0, .42);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}

.home-utility-dock::before,
.home-utility-dock::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(238, 196, 108, .5), transparent);
}
.home-utility-dock::before { top: 4px; }
.home-utility-dock::after { bottom: 4px; }

.utility-dock-heading {
  display: grid;
  grid-template-columns: 37px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 5px 8px 8px;
  border-bottom: 1px solid rgba(199, 154, 78, .28);
}

.utility-dock-heading > span,
.utility-seal {
  display: grid;
  place-items: center;
  border: 1px solid rgba(143, 51, 36, .82);
  color: #c96d4c;
  font-family: "STKaiti", "KaiTi", serif;
  background: rgba(72, 24, 17, .17);
  transform: rotate(-3deg);
}
.utility-dock-heading > span { width: 35px; height: 35px; font-size: 19px; }
.utility-dock-heading div { display: grid; gap: 1px; }
.utility-dock-heading small { color: rgba(180, 147, 90, .62); font-family: Georgia, serif; font-size: 7px; letter-spacing: .24em; }
.utility-dock-heading b { color: #d9bd82; font-family: "STKaiti", "KaiTi", serif; font-size: 16px; letter-spacing: .18em; font-weight: 600; }

.utility-entrance {
  position: relative;
  display: grid;
  grid-template-columns: 37px 1fr 14px;
  align-items: center;
  gap: 10px;
  min-height: 61px;
  padding: 8px;
  border: 0;
  border-bottom: 1px solid rgba(196, 149, 73, .2);
  color: #e9d9b8;
  cursor: pointer;
  text-align: left;
  background: linear-gradient(90deg, rgba(122, 77, 31, .12), transparent 68%);
  opacity: 0;
  animation: utilityReveal 680ms var(--utility-delay) cubic-bezier(.2,.75,.25,1) forwards;
  transition: background 220ms ease, padding-left 220ms ease;
}
.utility-entrance:last-child { border-bottom: 0; }
.utility-entrance::before { content: ""; position: absolute; inset: 3px; border-left: 1px solid transparent; pointer-events: none; transition: border-color 220ms ease; }
.utility-seal { width: 35px; height: 35px; border-color: rgba(167, 112, 55, .5); color: #d6b46f; font-size: 17px; }
.utility-copy { display: grid; gap: 1px; min-width: 0; }
.utility-copy strong { overflow: hidden; color: #ead39f; font-family: "STKaiti", "KaiTi", serif; font-size: 16px; font-weight: 600; letter-spacing: .08em; text-overflow: ellipsis; white-space: nowrap; }
.utility-copy small { color: #a8997d; font-family: "FangSong", serif; font-size: 10px; letter-spacing: .08em; }
.utility-arrow { color: #b88745; font-family: Georgia, serif; font-size: 22px; opacity: .5; transition: transform 220ms ease, color 220ms ease, opacity 220ms ease; }
.utility-entrance:hover { padding-left: 11px; background: linear-gradient(90deg, rgba(181, 117, 44, .25), rgba(97, 56, 22, .08)); }
.utility-entrance:hover::before { border-left-color: #d6a454; }
.utility-entrance:hover .utility-seal { color: #ffe3a0; border-color: rgba(224, 179, 88, .85); box-shadow: 0 0 12px rgba(196, 126, 36, .16); }
.utility-entrance:hover .utility-arrow { color: #f1c66f; opacity: 1; transform: translateX(2px); }
.utility-entrance:focus-visible { outline: 2px solid #e8c476; outline-offset: 2px; }

.entrance-grid {
  position: absolute;
  z-index: 20;
  right: clamp(38px, 4vw, 78px);
  bottom: clamp(72px, 8vh, 100px);
  left: clamp(38px, 4vw, 78px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(11px, 1.2vw, 22px);
  height: clamp(150px, 21vh, 226px);
}

.entrance {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  clip-path: polygon(5% 0, 95% 0, 100% 15%, 98% 84%, 94% 100%, 6% 100%, 2% 84%, 0 15%);
  border: 1px solid rgba(177, 136, 70, 0.48);
  color: #eee2c8;
  cursor: pointer;
  background: #0b0805;
  box-shadow: inset 0 0 0 3px rgba(8, 5, 3, 0.82), inset 0 0 0 4px rgba(192, 150, 78, 0.17), 0 13px 25px rgba(0, 0, 0, 0.54);
  text-align: left;
  isolation: isolate;
  transition: transform 240ms ease, filter 240ms ease;
  animation: entranceReveal 900ms both cubic-bezier(.2,.75,.25,1);
}

.entrance-2 { animation-delay: 100ms; transform: translateY(6px); }
.entrance-3 { animation-delay: 200ms; }
.entrance-4 { animation-delay: 300ms; transform: translateY(6px); }
.entrance-4 .entrance-image { filter: saturate(.82) brightness(.76) contrast(1.08); }
.entrance-5 { animation-delay: 400ms; }
.entrance-5 .entrance-image { filter: saturate(.7) brightness(.68) contrast(1.12); }
.entrance::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 5px;
  clip-path: inherit;
  border: 1px solid rgba(231, 198, 126, 0.17);
  pointer-events: none;
}

.entrance::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  opacity: 0;
  background: linear-gradient(108deg, transparent 18%, rgba(235, 194, 105, 0.18) 48%, transparent 72%);
  transform: translateX(-80%);
  transition: opacity 200ms ease;
  pointer-events: none;
}

.entrance-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: var(--entry-image);
  background-position: center 38%;
  background-size: cover;
  filter: saturate(0.73) brightness(0.62) contrast(1.12);
  transform: scale(1.02);
  transition: transform 600ms ease, filter 300ms ease;
}

.entrance-fog {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 5, 3, 0.06) 18%, rgba(6, 4, 3, 0.38) 51%, rgba(4, 3, 2, 0.96) 88%),
    linear-gradient(90deg, rgba(7, 5, 3, 0.62), transparent 48%, rgba(7, 5, 3, 0.24));
}

.chapter-mark {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 3px 6px;
  border: 1px solid rgba(215, 178, 103, 0.35);
  color: rgba(228, 200, 143, 0.71);
  font-family: "FangSong", serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  background: rgba(15, 8, 3, 0.6);
}

.entrance-copy {
  position: absolute;
  z-index: 4;
  right: 20px;
  bottom: clamp(14px, 2vh, 24px);
  left: 20px;
  display: flex;
  flex-direction: column;
}

.entrance-copy strong {
  color: #e2c787;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(18px, 1.45vw, 27px);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-shadow: 0 2px 5px #000, 0 0 12px rgba(200, 144, 43, 0.25);
}
.entrance-copy em { margin-top: 2px; color: rgba(237, 226, 202, 0.86); font-style: normal; font-size: clamp(10px, 0.83vw, 14px); letter-spacing: 0.12em; }
.entrance-copy small { margin-top: 5px; color: rgba(170, 151, 118, 0.78); font-family: "FangSong", serif; font-size: clamp(8px, 0.7vw, 11px); letter-spacing: 0.12em; }
.entry-arrow { position: absolute; z-index: 5; right: 16px; bottom: 18px; color: #c2944f; font-family: Georgia, serif; font-size: 26px; opacity: 0; transform: translateX(-7px); transition: 220ms ease; }

.entrance:hover { transform: translateY(-7px); filter: drop-shadow(0 12px 20px rgba(172, 100, 26, 0.2)); }
.entrance-2:hover,
.entrance-4:hover { transform: translateY(-2px); }
.entrance:hover::after { opacity: 1; animation: entryShine 1s ease forwards; }
.entrance:hover .entrance-image { transform: scale(1.08); filter: saturate(0.92) brightness(0.82) contrast(1.1); }
.entrance:hover .entry-arrow { opacity: 1; transform: translateX(0); }
.entrance:hover .entrance-copy { right: 34px; }
.entrance:focus-visible { outline: 2px solid #e8c476; outline-offset: 4px; }

.history-ticker {
  position: absolute;
  z-index: 30;
  right: clamp(38px, 4vw, 78px);
  bottom: 14px;
  left: clamp(38px, 4vw, 78px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 46px;
  padding: 0 18px 0 10px;
  clip-path: polygon(1.2% 0, 98.8% 0, 100% 50%, 98.8% 100%, 1.2% 100%, 0 50%);
  border: 1px solid rgba(164, 124, 62, 0.34);
  background: linear-gradient(90deg, rgba(31, 19, 8, 0.94), rgba(9, 7, 5, 0.87) 24%, rgba(9, 7, 5, 0.87) 77%, rgba(31, 19, 8, 0.94));
  box-shadow: inset 0 0 18px #000, 0 7px 20px rgba(0,0,0,.5);
}

.history-title { display: flex; align-items: center; gap: 9px; padding-right: 20px; color: #c8ab74; font-family: "STKaiti", serif; font-size: 13px; letter-spacing: 0.18em; border-right: 1px solid rgba(157, 120, 65, 0.22); }
.history-title span { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #82251e; color: #b4513d; font-size: 16px; transform: rotate(-2deg); }
.history-ink { min-width: 0; padding-left: 20px; overflow: hidden; color: rgba(215, 204, 180, 0.78); font-family: "FangSong", serif; font-size: clamp(10px, .82vw, 13px); letter-spacing: .08em; text-overflow: ellipsis; white-space: nowrap; animation: inkRecord 700ms ease both; }
.history-ink i { margin-right: 10px; color: #9d733b; font-style: normal; }
.history-date { color: rgba(143, 124, 91, 0.7); font-family: "FangSong", serif; font-size: 10px; letter-spacing: .14em; }

.game-notice {
  position: absolute;
  z-index: 50;
  top: clamp(126px, 15vh, 168px);
  left: 50%;
  display: flex;
  align-items: center;
  min-width: 380px;
  max-width: 600px;
  padding: 13px 24px 13px 16px;
  border: 1px solid rgba(211, 167, 85, 0.52);
  color: #ded0b1;
  background: linear-gradient(90deg, rgba(42, 26, 11, 0.97), rgba(10, 8, 6, 0.96), rgba(42, 26, 11, 0.97));
  box-shadow: inset 0 0 18px #000, 0 12px 35px #000;
  transform: translateX(-50%);
  animation: noticeArrive 3.6s ease both;
}
.notice-seal { display: grid; flex: 0 0 auto; width: 32px; height: 32px; margin-right: 13px; place-items: center; border: 1px solid #8e2c23; color: #b44a38; font-family: "STKaiti", serif; font-size: 18px; transform: rotate(-4deg); }
.game-notice p { margin: 0; font-family: "FangSong", serif; font-size: 13px; letter-spacing: .06em; }

@keyframes sceneBreath { from { transform: scale(1.018); } to { transform: scale(1.045); filter: saturate(.88) contrast(1.1) brightness(.84); } }
@keyframes cloudMarch { from { transform: translateX(-3%); } to { transform: translateX(4%) scale(1.06); } }
@keyframes starsTravel { from { transform: translateX(-7px); } to { transform: translateX(12px) rotate(.5deg); } }
@keyframes starPulse { 0%, 100% { opacity: .25; } 45% { opacity: .95; transform: scale(1.5); } }
@keyframes fireFlicker { 0% { opacity: .2; transform: scale(.9) translateY(3%); } 45% { opacity: .38; } 70% { opacity: .26; transform: scale(1.05) translateY(-2%); } 100% { opacity: .43; transform: scale(.96); } }
@keyframes grainShift { 0% { transform: translate(0,0); } 25% { transform: translate(2%, -1%); } 50% { transform: translate(-1%, 2%); } 75% { transform: translate(1%, 1%); } 100% { transform: translate(-2%, -1%); } }
@keyframes bambooFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes wheelTurn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbitTurn { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes buttonFlame { from { transform: scaleX(.76) translateY(2px); opacity: .35; } to { transform: scaleX(1.1) translateY(-2px); opacity: .7; } }
@keyframes goldSheen { 0%, 52% { left: -24%; opacity: 0; } 65% { opacity: .7; } 84%, 100% { left: 116%; opacity: 0; } }
@keyframes entranceReveal { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
@keyframes utilityReveal { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes entryShine { from { transform: translateX(-80%); } to { transform: translateX(90%); } }
@keyframes inkRecord { from { opacity: 0; transform: translateX(18px); filter: blur(4px); } to { opacity: 1; transform: translateX(0); filter: blur(0); } }
@keyframes noticeArrive { 0% { opacity: 0; transform: translate(-50%, -10px); } 12%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -8px); } }

@media (max-width: 1240px) {
  .logo-lockup { width: 330px; }
  .player-token { width: 350px; }
  .entrance-grid { left: 28px; right: 28px; gap: 10px; }
  .history-ticker { left: 28px; right: 28px; }
  .entrance-copy { right: 14px; left: 14px; }
  .chapter-mark { top: 11px; left: 11px; }
  .home-utility-dock { right: 24px; width: 196px; }
}

@media (max-height: 760px) {
  .game-header { top: 14px; }
  .logo-lockup { height: 88px; }
  .player-token { min-height: 84px; transform: scale(.92); transform-origin: top right; }
  .destiny-stage { top: 70px; height: 43vh; }
  .orbit-outer { width: min(39vh, 350px); }
  .orbit-inner { width: min(26vh, 235px); }
  .destiny-core { width: min(31vh, 280px); }
  .entrance-grid { bottom: 66px; height: 20vh; }
  .history-ticker { bottom: 10px; height: 42px; }
  .core-eyebrow, .wheel-coordinate { display: none; }
  .destiny-core h2 { margin-top: 0; }
  .start-button { margin-top: 8px; }
  .home-utility-dock { top: 112px; transform: scale(.9); transform-origin: top right; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ================================================================
   天命副本 · 汉末天命图
   ================================================================ */

.dungeon-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow-x: hidden;
  color: #e8dcc2;
  background:
    radial-gradient(circle at 50% -8%, rgba(120, 72, 24, .2), transparent 34%),
    linear-gradient(180deg, #0c0906 0, #050403 58%, #090603 100%);
  font-family: "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

.dungeon-shell::before,
.dungeon-shell::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
}

.dungeon-shell::before {
  inset: 0;
  opacity: .1;
  background-image:
    repeating-linear-gradient(91deg, transparent 0 19px, rgba(225, 194, 129, .06) 20px),
    repeating-linear-gradient(1deg, transparent 0 23px, rgba(0, 0, 0, .28) 24px);
  mix-blend-mode: overlay;
}

.dungeon-shell::after {
  inset: 0;
  box-shadow: inset 0 0 170px 45px #000;
}

.dungeon-ambient {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.dungeon-ambient::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  width: 84%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(213, 171, 88, .48), transparent);
  box-shadow: 0 0 34px 9px rgba(159, 95, 23, .13);
}

.dungeon-ambient i {
  position: absolute;
  bottom: -25vh;
  width: 36vw;
  height: 38vh;
  border-radius: 50%;
  opacity: .13;
  filter: blur(44px);
  background: radial-gradient(ellipse, #d65d1e 0, #67170e 35%, transparent 70%);
  animation: archiveEmber 7s ease-in-out infinite alternate;
}

.dungeon-ambient i:nth-child(1) { left: -10vw; }
.dungeon-ambient i:nth-child(2) { left: 33vw; animation-delay: -4s; }
.dungeon-ambient i:nth-child(3) { right: -11vw; animation-delay: -2s; }

.dungeon-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(420px, 1.3fr) minmax(330px, 1fr);
  align-items: center;
  min-height: clamp(108px, 13vh, 144px);
  padding: 14px clamp(28px, 4vw, 70px);
  border-bottom: 1px solid rgba(171, 127, 61, .24);
  background:
    linear-gradient(90deg, rgba(7, 5, 3, .97), rgba(16, 10, 5, .82) 50%, rgba(7, 5, 3, .97)),
    radial-gradient(ellipse at 50% 100%, rgba(129, 83, 29, .16), transparent 60%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .62);
}

.dungeon-header::after,
.detail-topbar::after {
  content: "";
  position: absolute;
  right: 4%;
  bottom: -2px;
  left: 4%;
  height: 3px;
  opacity: .46;
  background: linear-gradient(90deg, transparent, #6c4b25 12%, #d0a45d 50%, #6c4b25 88%, transparent);
  clip-path: polygon(0 50%, 5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%);
}

.ink-back {
  justify-self: start;
  min-width: 136px;
  padding: 10px 16px 10px 13px;
  border: 1px solid rgba(181, 137, 69, .32);
  color: #a8997e;
  cursor: pointer;
  background: linear-gradient(90deg, rgba(57, 36, 16, .66), rgba(9, 7, 5, .76));
  font-family: "FangSong", serif;
  font-size: 12px;
  letter-spacing: .17em;
  text-align: left;
  clip-path: polygon(0 50%, 9% 0, 100% 0, 94% 50%, 100% 100%, 9% 100%);
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.ink-back span { margin-right: 10px; color: #bd8d48; font-family: Georgia, serif; }
.ink-back:hover { color: #f0dba7; border-color: rgba(224, 181, 99, .65); transform: translateX(-4px); }
.ink-back:focus-visible { outline: 2px solid #d4ad68; outline-offset: 3px; }

.dungeon-heading { text-align: center; }
.dungeon-heading > span,
.section-eyebrow {
  color: rgba(195, 155, 89, .56);
  font-family: Georgia, serif;
  font-size: 8px;
  letter-spacing: .35em;
}

.dungeon-heading h1 {
  margin: 3px 0 1px;
  color: #dfc588;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(30px, 2.55vw, 46px);
  font-weight: 700;
  letter-spacing: .24em;
  text-shadow: 0 1px #fff1bd, 0 3px #5e3d14, 0 8px 22px #000;
}

.dungeon-heading p {
  margin: 0;
  color: rgba(217, 201, 167, .58);
  font-family: "FangSong", serif;
  font-size: 11px;
  letter-spacing: .28em;
}

.player-token-compact {
  justify-self: end;
  transform: scale(.82);
  transform-origin: center right;
}

.atlas-page {
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
}

.atlas-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(400px, 1fr) auto;
  gap: 10px;
  height: calc(100vh - clamp(108px, 13vh, 144px));
  min-height: 586px;
  padding: 10px clamp(26px, 3.2vw, 58px) 14px;
}

.atlas-prologue {
  display: grid;
  grid-template-columns: auto auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 82px;
  padding: 8px 20px;
  border-bottom: 1px solid rgba(170, 128, 63, .17);
  animation: archiveReveal 650ms ease both;
}

.atlas-seal {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #74231e;
  color: #a64132;
  font-family: "STKaiti", serif;
  font-size: 25px;
  background: rgba(55, 11, 9, .22);
  box-shadow: inset 0 0 0 3px rgba(104, 28, 22, .16);
  transform: rotate(-3deg);
}

.atlas-prologue h2 {
  margin: 2px 0 0;
  color: #dfcda9;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 600;
  letter-spacing: .14em;
}

.atlas-prologue p {
  max-width: 590px;
  margin: 0 auto;
  color: rgba(194, 181, 154, .64);
  font-family: "FangSong", serif;
  font-size: clamp(10px, .8vw, 13px);
  line-height: 1.8;
  letter-spacing: .08em;
}

.atlas-progress {
  display: flex;
  align-items: baseline;
  min-width: 150px;
  padding: 8px 13px;
  border-left: 1px solid rgba(181, 139, 71, .25);
}

.atlas-progress span { margin-right: 14px; color: #8f8068; font-size: 10px; letter-spacing: .12em; }
.atlas-progress b { color: #dfbd78; font-family: Georgia, serif; font-size: 28px; font-weight: 400; }
.atlas-progress em { color: #6f624d; font-family: Georgia, serif; font-size: 14px; font-style: normal; }

.atlas-prologue-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
}

.atlas-frame {
  position: relative;
  min-height: 400px;
  border: 1px solid rgba(174, 130, 59, .25);
  background: #050403;
  box-shadow: inset 0 0 45px #000, 0 18px 48px rgba(0, 0, 0, .5);
  animation: scrollUnfurl 900ms cubic-bezier(.2,.72,.16,1) 90ms both;
}

.atlas-frame::before,
.atlas-frame::after {
  content: "";
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  width: 54px;
  pointer-events: none;
}

.atlas-frame::before { left: 0; background: linear-gradient(90deg, #060403 8%, rgba(6, 4, 3, .92) 36%, transparent); }
.atlas-frame::after { right: 0; background: linear-gradient(-90deg, #060403 8%, rgba(6, 4, 3, .92) 36%, transparent); }

.atlas-scroll-viewport {
  position: absolute;
  z-index: 2;
  inset: 8px 15px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-color: #74572f #0a0704;
  scrollbar-width: thin;
}

.atlas-scroll-viewport::-webkit-scrollbar { height: 8px; }
.atlas-scroll-viewport::-webkit-scrollbar-track { border: 1px solid #362712; background: #080604; }
.atlas-scroll-viewport::-webkit-scrollbar-thumb { border: 1px solid #b18a4c; background: linear-gradient(90deg, #4c351a, #a27b42, #4c351a); }

.atlas-scroll-track {
  position: relative;
  width: 2500px;
  min-width: 2500px;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(5, 4, 3, .1), rgba(3, 2, 1, .16)),
    url("/assets/generated/dungeon-scroll-map.png");
  background-position: center;
  background-size: 100% 100%;
  box-shadow: inset 0 0 30px 12px rgba(0,0,0,.52);
}

.fate-route {
  position: absolute;
  z-index: 0;
  top: 54%;
  right: 7%;
  left: 7%;
  height: 2px;
  opacity: .32;
  background: linear-gradient(90deg, transparent, #792519 4%, #c2944c 28%, #8d2a1d 56%, #d1a55b 78%, transparent);
  filter: drop-shadow(0 0 5px rgba(205, 132, 51, .7));
}

.scroll-cap {
  position: absolute;
  z-index: 8;
  top: 6%;
  bottom: 6%;
  width: 18px;
  border: 1px solid #5a4021;
  pointer-events: none;
  background: linear-gradient(90deg, #1c1108, #8d6a38 22%, #2b1a0b 51%, #a57e46 74%, #160d06);
  box-shadow: inset 0 0 4px #000, 0 0 12px #000;
}

.scroll-cap::before,
.scroll-cap::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 33px;
  height: 18px;
  border: 1px solid #5d4528;
  background: linear-gradient(#7d5c31, #24160a 48%, #8f6b3a);
  transform: translateX(-50%);
}

.scroll-cap::before { top: -12px; border-radius: 50% 50% 12% 12%; }
.scroll-cap::after { bottom: -12px; border-radius: 12% 12% 50% 50%; }
.scroll-cap-left { left: 10px; }
.scroll-cap-right { right: 10px; }

.scroll-node {
  position: absolute;
  z-index: 3;
  top: 14%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 205px;
  height: 272px;
  padding: 14px 13px 12px;
  overflow: hidden;
  border: 1px solid rgba(117, 77, 34, .7);
  color: #33220f;
  cursor: pointer;
  background:
    linear-gradient(90deg, rgba(46, 26, 10, .22), transparent 9% 91%, rgba(46, 26, 10, .22)),
    linear-gradient(180deg, rgba(220, 190, 125, .88), rgba(150, 116, 63, .92));
  box-shadow: inset 0 0 18px rgba(52, 30, 12, .72), 0 13px 25px rgba(0,0,0,.7);
  clip-path: polygon(6% 0, 94% 0, 100% 8%, 98% 92%, 92% 100%, 8% 100%, 2% 92%, 0 8%);
  transition: filter 240ms ease, translate 240ms ease;
}

.scroll-node::before,
.scroll-node::after {
  content: "";
  position: absolute;
  z-index: 4;
  right: 5px;
  left: 5px;
  height: 9px;
  border: 1px solid rgba(62, 37, 14, .68);
  background: linear-gradient(#3d260f, #a67d45 45%, #3d260f);
  box-shadow: 0 2px 5px rgba(0,0,0,.5);
}

.scroll-node::before { top: 4px; }
.scroll-node::after { bottom: 4px; }
.scroll-node:nth-of-type(even) { top: 28%; }
.scroll-node.node-1 { left: 2.9%; }
.scroll-node.node-2 { left: 13.9%; }
.scroll-node.node-3 { left: 24.9%; }
.scroll-node.node-4 { left: 35.9%; }
.scroll-node.node-5 { left: 46.9%; }
.scroll-node.node-6 { left: 57.9%; }
.scroll-node.node-7 { left: 68.9%; }
.scroll-node.node-8 { left: 79.9%; }
.scroll-node.node-9 { left: 88.4%; }

.node-ordinal {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 13px;
  padding: 3px 6px;
  border: 1px solid rgba(215, 178, 103, .4);
  color: #c2a56c;
  background: rgba(18, 10, 4, .75);
  font-family: "FangSong", serif;
  font-size: 8px;
  letter-spacing: .1em;
}

.node-portrait {
  position: relative;
  display: block;
  width: 174px;
  height: 124px;
  margin-top: 9px;
  overflow: hidden;
  border: 1px solid rgba(60, 36, 15, .78);
  background: #0a0704;
  box-shadow: inset 0 0 0 2px rgba(220, 181, 100, .17), 0 4px 9px rgba(0,0,0,.42);
}

.node-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(8, 4, 2, .75)), radial-gradient(ellipse, transparent 45%, rgba(6,3,1,.45));
}

.node-portrait img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.18) saturate(.66) contrast(1.1) brightness(.76); transition: 500ms ease; }
.node-copy { display: flex; flex-direction: column; align-items: center; width: 100%; padding: 8px 4px 0; }
.node-copy small { color: #6a4a25; font-family: Georgia, "FangSong", serif; font-size: 8px; letter-spacing: .08em; }
.node-copy strong { margin-top: 2px; color: #2d1a09; font-family: "STKaiti", "KaiTi", serif; font-size: 21px; letter-spacing: .12em; text-shadow: 0 1px rgba(255,240,192,.35); }
.node-copy .node-reservation { margin-top: 3px; color: #6a4a25; font-family: Georgia, "FangSong", serif; font-size: 9px; letter-spacing: .1em; }

.difficulty { display: inline-flex; gap: 2px; white-space: nowrap; }
.difficulty i { color: rgba(99, 75, 43, .5); font-family: Georgia, serif; font-size: 12px; font-style: normal; text-shadow: none; }
.difficulty i.is-lit { color: #c99542; text-shadow: 0 0 6px rgba(211, 139, 43, .45); }
.difficulty.is-compact i { font-size: 9px; }
.scroll-node .difficulty { margin-top: 2px; }
.scroll-node .difficulty i { color: rgba(72,45,18,.32); }
.scroll-node .difficulty i.is-lit { color: #7a2318; text-shadow: none; }

.node-open {
  margin-top: auto;
  color: #704c25;
  font-family: "FangSong", serif;
  font-size: 9px;
  letter-spacing: .16em;
}

.node-open i { display: inline-block; margin-left: 4px; font-family: Georgia, serif; font-size: 16px; font-style: normal; vertical-align: -1px; transition: transform 180ms ease; }
.scroll-node:hover { z-index: 8; filter: brightness(1.13) saturate(1.1); translate: 0 -8px; }
.scroll-node:hover .node-portrait img { transform: scale(1.08); filter: sepia(.1) saturate(.9) contrast(1.08) brightness(.88); }
.scroll-node:hover .node-open i { transform: translateX(4px); }
.scroll-node:focus-visible { outline: 3px solid #f0ce85; outline-offset: 4px; }

.atlas-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 42px);
  min-height: 40px;
  color: rgba(151, 136, 108, .68);
  font-family: "FangSong", serif;
  font-size: 9px;
  letter-spacing: .1em;
}

.atlas-footnote span { display: flex; align-items: center; gap: 8px; }
.atlas-footnote span i { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid rgba(146, 107, 51, .38); color: #ad884f; font-style: normal; transform: rotate(-2deg); }
.atlas-footnote > b { color: #6f271d; font-size: 8px; }

/* 副本详情 */
.detail-page { min-height: 100vh; padding-bottom: 70px; }

.detail-backdrop {
  position: fixed;
  z-index: -3;
  inset: -35px;
  opacity: .19;
  background-image:
    linear-gradient(180deg, rgba(3,3,3,.28), #050403 65%),
    var(--detail-image);
  background-position: center;
  background-size: cover;
  filter: blur(5px) saturate(.58) contrast(1.12);
  transform: scale(1.05);
}

.detail-topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 66px;
  padding: 9px clamp(30px, 4vw, 72px);
  border-bottom: 1px solid rgba(172, 129, 63, .25);
  background: rgba(8, 6, 4, .94);
  box-shadow: 0 12px 30px rgba(0,0,0,.48);
  backdrop-filter: blur(14px);
}

.detail-breadcrumb { color: #8e8067; font-family: "FangSong", serif; font-size: 10px; letter-spacing: .18em; }
.detail-breadcrumb i { margin: 0 10px; color: #6e251d; font-size: 7px; font-style: normal; }
.detail-player { justify-self: end; color: #7e725e; font-size: 10px; letter-spacing: .12em; }
.detail-player b { margin-left: 7px; color: #d0ae6c; font-family: "STKaiti", serif; font-size: 15px; font-weight: 500; }
.detail-player span { display: inline-block; width: 1px; height: 14px; margin: 0 16px; background: rgba(171,128,62,.35); vertical-align: middle; }

.detail-main {
  position: relative;
  z-index: 2;
  width: min(1760px, calc(100% - clamp(48px, 6vw, 112px)));
  margin: 0 auto;
  padding-top: clamp(28px, 3.5vh, 50px);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(300px, .88fr) minmax(360px, 1.06fr) minmax(345px, .82fr);
  align-items: start;
  gap: clamp(18px, 2vw, 34px);
}

.dungeon-cover-panel {
  position: sticky;
  top: 100px;
  min-height: 720px;
  overflow: hidden;
  border: 1px solid rgba(188, 144, 70, .42);
  background: #090604;
  box-shadow: inset 0 0 0 4px rgba(5,3,2,.74), inset 0 0 0 5px rgba(209,168,91,.15), 0 24px 55px rgba(0,0,0,.62);
  clip-path: polygon(4% 0, 96% 0, 100% 4%, 98% 96%, 94% 100%, 6% 100%, 2% 96%, 0 4%);
  animation: archiveReveal 700ms ease both;
}

.dungeon-cover-panel.is-map-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: initial;
  appearance: none;
  cursor: zoom-in;
  transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms ease;
}

.dungeon-cover-panel.is-map-trigger:hover {
  border-color: rgba(224, 181, 91, .78);
  box-shadow: inset 0 0 0 4px rgba(5,3,2,.74), inset 0 0 0 5px rgba(229,190,108,.26), 0 27px 66px rgba(0,0,0,.72), 0 0 30px rgba(177,120,38,.14);
  transform: translateY(-2px);
}

.dungeon-cover-panel.is-map-trigger:focus-visible {
  outline: 1px solid #f0cf84;
  outline-offset: 5px;
}

.dungeon-cover-panel.is-map-trigger:hover > img { filter: saturate(.88) contrast(1.1) brightness(.77); transform: scale(1.018); }

.dungeon-cover-panel::before,
.dungeon-cover-panel::after {
  content: "";
  position: absolute;
  z-index: 4;
  right: 13px;
  left: 13px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c59950, transparent);
}

.dungeon-cover-panel::before { top: 12px; }
.dungeon-cover-panel::after { bottom: 12px; }
.dungeon-cover-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.08) brightness(.68); transition: filter 360ms ease, transform 650ms ease; }
.dungeon-cover-panel > img::selection { background: transparent; }

.dungeon-cover-panel > .cover-number {
  position: absolute;
  z-index: 3;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 10px;
  border: 1px solid rgba(202, 163, 91, .34);
  background: rgba(10,6,3,.74);
  backdrop-filter: blur(7px);
}

.cover-number span { color: #a69678; font-family: "FangSong", serif; font-size: 9px; letter-spacing: .16em; }
.cover-number b { color: #d4ae68; font-family: Georgia, serif; font-size: 21px; font-weight: 400; }

.cover-caption {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 205px;
  justify-content: flex-end;
  padding: 74px 24px 34px;
  text-align: center;
  background: linear-gradient(transparent, rgba(7,4,2,.86) 34%, rgba(6,4,2,.98));
}

.cover-caption small { color: #a68d62; font-family: "FangSong", serif; font-size: 10px; letter-spacing: .2em; }
.cover-caption strong { margin: 6px 0 5px; color: #ead298; font-family: "STKaiti", "KaiTi", serif; font-size: clamp(32px, 3vw, 50px); font-weight: 600; letter-spacing: .16em; text-shadow: 0 4px 14px #000; }

.map-open-cue {
  position: absolute;
  z-index: 5;
  right: 22px;
  bottom: 204px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px 8px 8px;
  border: 1px solid rgba(222, 178, 92, .46);
  color: #ddc28c;
  background: linear-gradient(90deg, rgba(32,19,8,.92), rgba(9,6,3,.86));
  box-shadow: 0 8px 22px rgba(0,0,0,.5), inset 0 0 14px rgba(212,155,59,.06);
  backdrop-filter: blur(8px);
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.map-open-cue > i { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #8e3528; color: #ce7058; font-family: "STKaiti", serif; font-size: 17px; font-style: normal; transform: rotate(-4deg); }
.map-open-cue > span { display: flex; flex-direction: column; gap: 1px; }
.map-open-cue b { font-family: "FangSong", serif; font-size: 11px; font-weight: 500; letter-spacing: .09em; }
.map-open-cue small { color: #8f8066; font-family: "FangSong", serif; font-size: 8px; letter-spacing: .08em; }
.dungeon-cover-panel.is-map-trigger:hover .map-open-cue { border-color: rgba(241,201,118,.76); background: linear-gradient(90deg, rgba(75,45,14,.95), rgba(15,9,4,.9)); transform: translateX(-3px); }

.battle-map-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 30px);
  background: radial-gradient(circle at 50% 42%, rgba(66,45,19,.2), transparent 44%), rgba(2,2,1,.94);
  backdrop-filter: blur(11px);
  animation: mapVeilIn 240ms ease both;
}

.battle-map-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(96vw, 1770px);
  max-height: 95vh;
  overflow: hidden;
  border: 1px solid rgba(211, 168, 84, .7);
  background: #080603;
  box-shadow: 0 34px 90px rgba(0,0,0,.84), inset 0 0 0 4px #060402, inset 0 0 0 5px rgba(211,168,84,.18);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  animation: mapUnfurl 420ms cubic-bezier(.2,.72,.18,1) both;
}

.battle-map-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px 14px 10px 25px;
  border-bottom: 1px solid rgba(192,145,69,.42);
  background: linear-gradient(90deg, #22160a, #090603 36% 72%, #1f1409);
  box-shadow: 0 8px 24px rgba(0,0,0,.56);
}

.battle-map-toolbar::after { position: absolute; right: 120px; bottom: -1px; left: 23px; height: 1px; content: ""; background: linear-gradient(90deg, #c99c53, transparent); opacity: .38; }
.battle-map-toolbar span { display: block; color: #8f7957; font-family: Georgia, serif; font-size: 8px; letter-spacing: .23em; }
.battle-map-toolbar h2 { margin: 3px 0 0; color: #e8cf96; font-family: "STKaiti", "KaiTi", serif; font-size: clamp(21px, 2vw, 31px); font-weight: 500; letter-spacing: .16em; text-shadow: 0 3px 12px #000; }

.battle-map-cancel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 96px;
  height: 42px;
  justify-content: center;
  border: 1px solid rgba(209,161,78,.52);
  color: #dbc28e;
  background: linear-gradient(180deg, #39250f, #140d07);
  box-shadow: inset 0 0 13px rgba(217,166,76,.08), 0 7px 18px rgba(0,0,0,.35);
  cursor: pointer;
  font-family: "FangSong", serif;
  font-size: 13px;
  letter-spacing: .12em;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.battle-map-cancel i { color: #cf694f; font-family: Georgia, serif; font-size: 19px; font-style: normal; line-height: 1; }
.battle-map-cancel:hover { border-color: #e2b767; color: #f3dba3; background: linear-gradient(180deg, #563717, #1b1008); }
.battle-map-cancel:focus-visible { outline: 1px solid #f1d390; outline-offset: 3px; }

.battle-map-canvas { display: grid; min-height: 0; flex: 1 1 auto; place-items: center; overflow: hidden; background: #030201; }
.battle-map-canvas img { display: block; width: 100%; height: 100%; max-height: calc(95vh - 108px); object-fit: contain; user-select: none; }
.battle-map-canvas.is-corrected-map { background: radial-gradient(circle at 48% 52%, #21160a, #030201 72%); }
.corrected-map-stage { position: relative; width: min(100%, calc(169vh - 192px)); aspect-ratio: 16 / 9; overflow: hidden; }
.battle-map-canvas .corrected-map-stage > img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.historical-map-corrections { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; font-family: "STKaiti", "KaiTi", serif; }
.map-correction { position: absolute; display: grid; min-width: 5.4%; min-height: 3.3%; place-items: center; padding: .08em .46em .02em; border: 1px solid rgba(170,118,47,.8); color: #d7ad66; background: linear-gradient(180deg, rgba(19,16,11,.99), rgba(7,7,5,.99)); box-shadow: 0 0 0 2px rgba(4,3,2,.88), inset 0 0 10px rgba(177,112,34,.1), 0 4px 12px rgba(0,0,0,.65); font-size: clamp(7px, .92vw, 15px); letter-spacing: .12em; line-height: 1; text-shadow: 0 1px 3px #000; white-space: nowrap; transform: translate(-50%, -50%); }
.map-correction.map-region { border-color: rgba(139,95,38,.62); color: rgba(223,188,115,.88); background: rgba(8,7,4,.9); font-size: clamp(7px, .84vw, 14px); }
.map-yellow-turban .yt-qinghe { left: 62.1%; top: 33.05%; }
.map-yellow-turban .yt-heishan { left: 18.2%; top: 17.2%; min-width: 8.2%; }
.map-xuzhou .xz-guangling-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-xuzhou .xz-guangling-route path { fill: none; stroke: #5e8daf; stroke-width: 6; stroke-dasharray: 14 12; stroke-linecap: round; opacity: .94; filter: drop-shadow(0 2px 3px #030303); }
.map-xuzhou .xz-guangling-route marker path { fill: #7aa6c2; stroke: none; }
.map-banner-correction { position: absolute; display: grid; width: 2%; height: 6.8%; place-items: center; padding-top: .15em; border: 1px solid rgba(109,151,178,.78); color: #b9d4e2; background: linear-gradient(90deg, #192635, #31536d 52%, #111b25); box-shadow: 0 0 0 2px rgba(5,5,4,.86), inset 0 0 10px rgba(130,180,208,.18), 0 5px 10px rgba(0,0,0,.68); font-size: clamp(6px, .62vw, 11px); font-weight: 600; letter-spacing: .16em; line-height: 1; text-shadow: 0 1px 3px #000; white-space: nowrap; writing-mode: vertical-rl; transform: translate(-50%, -50%); }
.map-xuzhou .xz-guangling-banner { left: 61.75%; top: 44.7%; }
.map-xuzhou .xz-guangling-place { left: 61.75%; top: 53.25%; min-width: 5.1%; border-color: rgba(109,151,178,.72); color: #b9d4e2; }

.battle-map-frame > footer {
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border-top: 1px solid rgba(181,132,61,.3);
  color: #8e8068;
  background: linear-gradient(90deg, #160e07, #080503 60%, #160e07);
  font-family: "FangSong", serif;
}

.battle-map-frame > footer span { display: grid; width: 24px; height: 25px; place-items: center; border: 1px solid #873328; color: #c75f4c; transform: rotate(-3deg); }
.battle-map-frame > footer p { margin: 0; font-size: 10px; letter-spacing: .08em; }
.battle-map-frame > footer small { margin-left: auto; color: #665d4e; font-size: 9px; letter-spacing: .06em; }

.hulao-loot-module {
  margin-top: 38px;
  padding: 19px 22px 22px;
  border-color: rgba(206, 156, 74, .5);
  background:
    radial-gradient(circle at 22% 48%, rgba(151,94,24,.16), transparent 29%),
    linear-gradient(115deg, rgba(48,30,12,.82), rgba(7,5,3,.96) 38% 68%, rgba(37,22,9,.8));
  box-shadow: inset 0 0 42px rgba(0,0,0,.78), 0 19px 46px rgba(0,0,0,.42);
}

/* Decorative overflow must not let focus navigation scroll the whole wheel sideways. */
.brief-module.hulao-loot-module { overflow: clip; }

.hulao-loot-heading { display:flex; align-items:center; justify-content:space-between; padding-bottom:14px; border-bottom:1px solid rgba(190,139,65,.3); }
.loot-help-button { display:grid; width:38px; height:38px; place-items:center; border:1px solid rgba(211,160,77,.55); border-radius:50%; color:#e3c582; background:radial-gradient(circle,#422b13,#110b06 68%); box-shadow:inset 0 0 13px rgba(224,171,75,.12),0 0 19px rgba(177,115,30,.08); cursor:pointer; font-family:Georgia,serif; font-size:18px; transition:transform 180ms ease,border-color 180ms ease,box-shadow 180ms ease; }
.loot-help-button:hover { transform:rotate(8deg) scale(1.06); border-color:#ecc66f; box-shadow:inset 0 0 13px rgba(224,171,75,.2),0 0 23px rgba(195,131,39,.2); }
.loot-help-button:focus-visible { outline:1px solid #f2d287; outline-offset:3px; }
.hulao-loot-lead { margin:13px 0 17px; color:#9d8c70; font-family:"FangSong",serif; font-size:11px; letter-spacing:.06em; line-height:1.7; }

.hulao-loot-workbench { display:grid; grid-template-columns:minmax(280px,.82fr) minmax(390px,1.05fr) minmax(250px,.7fr); align-items:center; gap:clamp(18px,2.2vw,37px); }
.loot-wheel-stage { position:relative; display:grid; width:min(29vw,380px); aspect-ratio:1; margin:0 auto; place-items:center; }
.loot-wheel-stage::before,.loot-wheel-stage::after { position:absolute; inset:6%; border:1px solid rgba(195,145,66,.25); border-radius:50%; content:""; box-shadow:0 0 0 8px rgba(147,99,35,.04); }
.loot-wheel-stage::after { inset:13%; border-style:dashed; animation:lootOrbit 20s linear infinite reverse; }
.loot-wheel-pointer { position:absolute; z-index:5; top:-1px; left:50%; width:0; height:0; border-right:16px solid transparent; border-left:16px solid transparent; border-top:44px solid #d7ad59; filter:drop-shadow(0 5px 6px #000); transform:translateX(-50%); }
.loot-quality-wheel { position:relative; width:82%; aspect-ratio:1; border:2px solid #aa7730; border-radius:50%; background:repeating-conic-gradient(from -30deg,rgba(168,111,35,.13) 0 59deg,rgba(0,0,0,.72) 59deg 60deg),radial-gradient(circle,#1d1207 0 23%,#080503 24% 100%); box-shadow:inset 0 0 0 5px #060402,inset 0 0 0 7px rgba(219,174,85,.4),inset 0 0 42px #000,0 0 34px rgba(164,99,19,.16); transition:transform 3.6s cubic-bezier(.12,.69,.08,1); }
.loot-quality-wheel::before,.loot-quality-wheel::after { position:absolute; inset:9%; border:1px solid rgba(215,165,76,.35); border-radius:50%; content:""; }
.loot-quality-wheel::after { inset:28%; border-color:rgba(215,165,76,.53); box-shadow:0 0 20px rgba(213,150,50,.11); }
.loot-quality-wheel.is-spinning { filter:brightness(1.18); }
.loot-wheel-core { position:absolute; z-index:2; top:50%; left:50%; display:grid; width:21%; aspect-ratio:1; place-items:center; border:1px solid rgba(222,177,89,.63); border-radius:50%; color:#d7b46f; background:radial-gradient(circle,#422a10,#090603 72%); box-shadow:0 0 22px #000; font-family:"STKaiti",serif; font-size:clamp(24px,2vw,37px); font-style:normal; transform:translate(-50%,-50%); }
.loot-quality-wheel > span { --loot-angle:0deg; position:absolute; top:50%; left:50%; width:75px; margin-left:-37px; color:#c8ad7a; font-family:"STKaiti",serif; font-size:clamp(13px,1.15vw,19px); letter-spacing:.1em; text-align:center; text-shadow:0 2px 6px #000; transform:rotate(var(--loot-angle)) translateY(-128px) rotate(calc(var(--loot-angle) * -1)); }
.loot-quality-wheel > span.is-locked { color:#4f4638; text-decoration:line-through; opacity:.6; }

.loot-control-panel { padding:16px; border:1px solid rgba(187,136,62,.34); background:rgba(8,5,3,.7); box-shadow:inset 0 0 22px rgba(0,0,0,.65); }
.loot-control-panel > label { display:grid; grid-template-columns:100px minmax(0,1fr); align-items:center; min-height:43px; margin-bottom:9px; border:1px solid rgba(178,129,60,.3); }
.loot-control-panel > label > span { padding-left:13px; color:#aa9775; font-family:"FangSong",serif; font-size:10px; }
.loot-account-tools { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px; margin-bottom:9px; }
.loot-account-tools > label { display:grid; grid-template-columns:100px minmax(0,1fr); align-items:center; min-height:43px; border:1px solid rgba(178,129,60,.3); }
.loot-account-tools > label > span { padding-left:13px; color:#aa9775; font-family:"FangSong",serif; font-size:10px; }
.loot-account-tools .level-sort-toggle { min-width:96px!important; height:43px; border:1px solid rgba(174,129,60,.48)!important; cursor:pointer; background:linear-gradient(100deg,rgba(77,46,17,.66),rgba(14,9,5,.9)); }
.loot-control-panel select,.loot-control-panel input { width:100%; height:41px; border:0; border-left:1px solid rgba(178,129,60,.3); outline:0; padding:0 12px; color:#e5cc94; background:#100b07; font-family:"FangSong",serif; font-size:12px; }
.loot-score-input { display:grid; grid-template-columns:1fr 58px; align-items:center; }
.loot-score-input b { display:grid; height:41px; place-items:center; border-left:1px solid rgba(178,129,60,.3); color:#8f7d61; background:#100b07; font-family:Georgia,serif; font-size:10px; }
.loot-control-panel fieldset { margin:13px 0 0; padding:10px; border:1px solid rgba(177,128,59,.3); }
.loot-control-panel legend { padding:0 7px; color:#9e8968; font-family:"FangSong",serif; font-size:9px; letter-spacing:.08em; }
.loot-control-panel fieldset label { display:grid; grid-template-columns:25px minmax(0,1fr); align-items:center; gap:9px; min-height:42px; margin-top:6px; padding:6px 9px; border:1px solid rgba(155,111,50,.24); background:#0d0906; cursor:pointer; }
.loot-control-panel fieldset label.is-checked { border-color:rgba(215,164,77,.62); background:linear-gradient(90deg,rgba(88,54,18,.5),rgba(12,8,5,.78)); }
.loot-control-panel fieldset input { position:absolute; opacity:0; pointer-events:none; }
.loot-control-panel fieldset i { display:grid; width:21px; height:23px; place-items:center; border:1px solid rgba(159,111,53,.55); color:#e3bd67; font-style:normal; }
.loot-control-panel fieldset span b,.loot-control-panel fieldset span small { display:block; }
.loot-control-panel fieldset span b { color:#cdb17d; font-family:"FangSong",serif; font-size:11px; font-weight:500; }
.loot-control-panel fieldset span small { margin-top:2px; color:#746854; font-family:"FangSong",serif; font-size:8px; }
.loot-unlock-summary { display:flex; align-items:center; gap:11px; margin-top:12px; padding:9px 11px; border:1px solid rgba(195,145,69,.37); background:linear-gradient(90deg,rgba(92,56,18,.36),rgba(12,8,5,.78)); }
.loot-unlock-summary > span { display:grid; width:43px; height:43px; place-items:center; border:1px solid #903829; color:#d67357; font-family:Georgia,serif; font-size:15px; transform:rotate(-3deg); }
.loot-unlock-summary b,.loot-unlock-summary small { display:block; }
.loot-unlock-summary b { color:#e2c384; font-family:"FangSong",serif; font-size:11px; font-weight:500; }
.loot-unlock-summary small { margin-top:3px; color:#7f715a; font-size:8px; }
.loot-spin-button { position:relative; width:100%; height:48px; margin-top:12px; overflow:hidden; border:1px solid #c7943f; color:#1a0f05; background:linear-gradient(180deg,#f0cf7b,#b47a24 52%,#e4b858); box-shadow:inset 0 0 12px rgba(255,239,172,.7),0 8px 22px rgba(0,0,0,.42); cursor:pointer; font-family:"STKaiti",serif; font-size:16px; letter-spacing:.18em; }
.loot-spin-button > span { position:absolute; inset:0; background:linear-gradient(105deg,transparent 20%,rgba(255,255,255,.62) 45%,transparent 67%); transform:translateX(-130%); animation:goldSweep 3s ease-in-out infinite; }
.loot-spin-button:disabled { cursor:not-allowed; filter:grayscale(.7) brightness(.65); }

.loot-result-panel { display:flex; min-height:510px; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:12px; padding:13px; border:1px solid rgba(184,132,57,.4); text-align:center; background:radial-gradient(circle at 50% 18%,rgba(146,91,25,.2),transparent 32%),#090603; box-shadow:inset 0 0 36px rgba(0,0,0,.8); }
.loot-immortal-showcase { position:relative; width:100%; overflow:hidden; padding:14px 12px 12px; border:1px solid rgba(219,168,78,.38); background:radial-gradient(circle at 50% 31%,rgba(170,105,31,.2),transparent 39%),linear-gradient(155deg,rgba(48,29,13,.88),rgba(9,6,3,.95)); box-shadow:inset 0 0 26px rgba(0,0,0,.64); }
.loot-immortal-showcase::before,.loot-immortal-showcase::after { position:absolute; top:53px; left:50%; width:174px; height:174px; border:1px solid rgba(218,167,77,.17); border-radius:50%; content:""; transform:translateX(-50%); }
.loot-immortal-showcase::after { width:148px; height:148px; border-style:dashed; animation:lootOrbit 22s linear infinite; }
.loot-immortal-showcase > small { position:relative; z-index:1; display:block; color:#9b8258; font-family:Georgia,serif; font-size:7px; letter-spacing:.18em; }
.loot-immortal-image { position:relative; z-index:1; width:116px; height:122px; margin:12px auto 9px; border:1px solid rgba(226,180,91,.6); background:#0a0603; box-shadow:0 12px 30px rgba(0,0,0,.65),0 0 20px rgba(196,128,32,.14); }
.loot-immortal-image img { display:block; width:100%; height:100%; margin:0; border:0; object-fit:cover; filter:saturate(.86) contrast(1.08) brightness(1.05); }
.loot-immortal-image > span { position:absolute; z-index:2; top:6px; right:6px; display:grid; width:25px; height:25px; place-items:center; border:1px solid #b9703a; color:#e4b87b; background:rgba(66,22,12,.9); font-family:"STKaiti",serif; font-size:13px; }
.loot-immortal-showcase > em { position:relative; z-index:1; display:inline-block; padding:2px 9px; border:1px solid #b49358; color:#e5cc92; background:rgba(35,24,12,.88); font-family:"FangSong",serif; font-size:8px; font-style:normal; letter-spacing:.16em; }
.loot-immortal-showcase > strong { position:relative; z-index:1; display:block; margin-top:7px; color:#ead29a; font-family:"STKaiti",serif; font-size:22px; font-weight:500; letter-spacing:.1em; text-shadow:0 0 16px rgba(224,166,66,.22); }
.loot-immortal-showcase > p { position:relative; z-index:1; min-height:30px; margin:5px 0 0; color:#a59476; font-family:"FangSong",serif; font-size:8px; line-height:1.55; }
.loot-multiplier-picker { width:100%; padding:11px; border:1px solid rgba(177,126,55,.34); background:linear-gradient(145deg,rgba(41,25,12,.78),rgba(12,8,5,.9)); }
.loot-multiplier-picker header { display:flex; align-items:center; justify-content:space-between; color:#b9a27d; font-family:"FangSong",serif; font-size:9px; letter-spacing:.06em; }
.loot-multiplier-picker header b { color:#f0ce7f; font-family:Georgia,serif; font-size:16px; font-weight:500; text-shadow:0 0 13px rgba(225,164,56,.26); }
.loot-multiplier-picker > div { display:grid; grid-template-columns:repeat(10,minmax(0,1fr)); gap:5px; margin-top:9px; }
.loot-multiplier-picker button { height:28px; grid-column:span 2; border:1px solid rgba(151,105,45,.38); color:#9e8968; background:#120c07; cursor:pointer; font-family:Georgia,serif; font-size:9px; transition:border-color 160ms ease,color 160ms ease,background 160ms ease,box-shadow 160ms ease; }
.loot-multiplier-picker button:nth-last-child(3) { grid-column:3 / span 2; }
.loot-multiplier-picker button:hover { border-color:#c9943e; color:#e2c183; }
.loot-multiplier-picker button.is-active { border-color:#e2b75f; color:#170d04; background:linear-gradient(180deg,#e3bd69,#a96f22); box-shadow:inset 0 0 9px rgba(255,236,170,.48),0 0 12px rgba(193,128,30,.18); }
.loot-multiplier-picker button:disabled { cursor:not-allowed; opacity:.55; }
.loot-multiplier-picker > p { margin:8px 0 0; color:#786b58; font-family:"FangSong",serif; font-size:7px; line-height:1.55; }
.loot-package-result { width:100%; padding-top:12px; border-top:1px solid rgba(195,142,63,.28); }
.loot-package-result > small { display:block; color:#8f7b5c; font-family:Georgia,serif; font-size:7px; letter-spacing:.18em; }
.loot-package-result > strong { display:block; margin-top:6px; color:#dcc28c; font-family:"STKaiti",serif; font-size:20px; font-weight:500; letter-spacing:.08em; }
.loot-package-result > p { margin:7px 0 0; color:#88795f; font-family:"FangSong",serif; font-size:8px; line-height:1.6; }
.loot-package-result > button { margin-top:12px; border:1px solid rgba(204,154,74,.58); padding:7px 17px; color:#d7bb83; background:#1d130a; cursor:pointer; font-family:"FangSong",serif; font-size:9px; }
.loot-package-preview { display:grid; width:100%; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin-top:12px; }
.loot-package-preview article { min-width:0; padding:7px 5px 8px; border:1px solid rgba(188,138,64,.3); background:rgba(7,4,2,.78); }
.loot-package-preview article img { width:58px; height:58px; margin:0 auto 6px; border-color:rgba(217,168,80,.38); box-shadow:0 6px 13px rgba(0,0,0,.5); }
.loot-package-preview article span,.loot-package-preview article b { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.loot-package-preview article span { font-family:"FangSong",serif; font-size:8px; }
.loot-package-preview article b { margin-top:3px; color:#d2b77f; font-family:"STKaiti",serif; font-size:11px; font-weight:500; }
.loot-spinner-notice { margin:13px 0 0; padding:8px 12px; border-left:2px solid #a33e2d; color:#c9aa75; background:rgba(67,30,16,.3); font-family:"FangSong",serif; font-size:10px; }

.loot-dialog-backdrop { position:fixed; z-index:12000; inset:0; display:grid; place-items:center; padding:20px; background:rgba(2,1,1,.88); backdrop-filter:blur(10px); animation:mapVeilIn 180ms ease both; }
.loot-rules-dialog,.loot-grant-dialog { position:relative; width:min(720px,calc(100vw - 40px)); max-height:90vh; overflow:auto; border:1px solid rgba(216,166,78,.67); padding:25px; color:#b9a480; background:linear-gradient(135deg,#30200f,#0d0905 40% 72%,#27180b); box-shadow:0 30px 80px rgba(0,0,0,.8),inset 0 0 0 4px #080503,inset 0 0 0 5px rgba(213,165,78,.14); clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px); }
.loot-rules-dialog > header,.loot-grant-dialog > header { display:flex; align-items:center; gap:13px; padding-bottom:14px; border-bottom:1px solid rgba(190,139,66,.32); }
.loot-rules-dialog > header > span,.loot-grant-dialog > header > span { display:grid; width:46px; height:48px; place-items:center; border:1px solid #94392b; color:#d06b54; font-family:"STKaiti",serif; font-size:23px; transform:rotate(-3deg); }
.loot-rules-dialog header small,.loot-grant-dialog header small { color:#847459; font-family:Georgia,serif; font-size:8px; letter-spacing:.18em; }
.loot-rules-dialog h3,.loot-grant-dialog h3 { margin:3px 0 0; color:#e7ca91; font-family:"STKaiti",serif; font-size:24px; font-weight:500; letter-spacing:.12em; }
.loot-dialog-close { position:absolute; z-index:2; top:16px; right:16px; display:grid; width:37px; height:37px; place-items:center; border:1px solid rgba(203,151,72,.45); color:#d6b878; background:#140d07; cursor:pointer; font-family:Georgia,serif; font-size:20px; }
.loot-rules-dialog > p { margin:15px 0; color:#aa9877; font-family:"FangSong",serif; font-size:11px; line-height:1.8; }
.loot-package-rules { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0 0 13px; }
.loot-package-rules > div { padding:10px 12px; border:1px solid rgba(193,142,68,.32); background:linear-gradient(105deg,rgba(91,54,17,.32),rgba(8,5,3,.72)); }
.loot-package-rules b,.loot-package-rules span { display:block; }
.loot-package-rules b { color:#dcb975; font-family:"STKaiti",serif; font-size:14px; font-weight:500; }
.loot-package-rules span { margin-top:4px; color:#9c8969; font-family:"FangSong",serif; font-size:9px; line-height:1.6; }
.loot-package-rules > .loot-pack-high-rates { grid-column:1/-1; position:relative; overflow:hidden; border-color:rgba(220,185,117,.5); background:linear-gradient(100deg,rgba(118,65,17,.42),rgba(22,12,6,.8) 58%,rgba(118,65,17,.18)); }
.loot-package-rules > .loot-pack-high-rates::after { content:"命"; position:absolute; right:18px; top:50%; color:rgba(229,190,110,.08); font-family:"STKaiti",serif; font-size:54px; line-height:1; transform:translateY(-50%) rotate(-8deg); }
.loot-package-rules > .loot-pack-high-rates b { color:#f0ce83; letter-spacing:.08em; }
.loot-package-rules > .loot-pack-high-rates span { color:#c4ab7b; font-size:10px; }
.loot-package-rules > .loot-pack-count-breakdown { grid-column:1/-1; border-style:dashed; background:linear-gradient(100deg,rgba(47,31,16,.72),rgba(11,8,5,.82)); }
.loot-package-rules > .loot-pack-count-breakdown b { color:#cbb483; }
.loot-package-rules > .loot-pack-count-breakdown span { display:inline-block; width:50%; color:#aa9878; }
.loot-rule-unlock { display:flex; align-items:center; justify-content:space-between; margin-bottom:13px; padding:10px 13px; border:1px solid rgba(196,145,70,.38); background:rgba(10,7,4,.66); }
.loot-rule-unlock b { color:#e0bd74; font-family:Georgia,serif; font-size:13px; }
.loot-rule-unlock span { color:#9b8869; font-family:"FangSong",serif; font-size:10px; }
.loot-rate-list { display:grid; gap:7px; }
.loot-rate-list > div { display:grid; grid-template-columns:55px minmax(0,1fr) 56px 42px; align-items:center; gap:10px; min-height:37px; padding:0 10px; border:1px solid rgba(156,112,53,.23); background:#0c0805; }
.loot-rate-list > div.is-locked { opacity:.42; filter:grayscale(1); }
.loot-rate-list span { font-family:"STKaiti",serif; font-size:13px; }
.loot-rate-list i { height:4px; overflow:hidden; background:#22160c; }
.loot-rate-list em { display:block; height:100%; background:linear-gradient(90deg,#873829,#d5a752,#f0d384); box-shadow:0 0 8px #b67b27; }
.loot-rate-list b { color:#e1bd70; font-family:Georgia,serif; font-size:12px; text-align:right; }
.loot-rate-list small { color:#776a55; font-size:8px; text-align:right; }
.loot-rules-foot { display:flex; align-items:flex-start; gap:11px; margin-top:14px; padding:11px; border-left:2px solid #943a2b; background:rgba(80,34,18,.27); }
.loot-rules-foot span { color:#d06a52; font-family:"STKaiti",serif; font-size:18px; }
.loot-rules-foot p { margin:0; color:#aa9471; font-family:"FangSong",serif; font-size:10px; line-height:1.7; }

.loot-grant-package { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin:17px 0; }
.loot-grant-pill,.loot-grant-item { display:grid; grid-template-columns:82px minmax(0,1fr); gap:12px; min-height:108px; margin:0; padding:11px; border:1px solid rgba(206,153,72,.38); background:#0d0905; }
.loot-grant-pill { grid-column:1/-1; min-height:88px; border-color:rgba(207,101,68,.46); background:linear-gradient(100deg,rgba(104,42,24,.37),#0d0905 55%); }
.loot-grant-pill > i { display:grid; width:70px; height:70px; place-items:center; align-self:center; border:1px solid #9e4631; border-radius:50%; color:#e48e69; background:radial-gradient(circle,#4b2115,#0b0705 72%); font-family:"STKaiti",serif; font-size:27px; font-style:normal; }
.loot-grant-item img { width:82px; height:82px; align-self:center; object-fit:cover; }
.loot-grant-pill small,.loot-grant-pill strong,.loot-grant-pill p,
.loot-grant-item small,.loot-grant-item strong,.loot-grant-item p { display:block; }
.loot-grant-pill small,
.loot-grant-item small { margin-top:8px; font-family:"FangSong",serif; font-size:9px; }
.loot-grant-pill strong,
.loot-grant-item strong { margin-top:5px; color:#e6ca91; font-family:"STKaiti",serif; font-size:26px; font-weight:500; }
.loot-grant-pill p,
.loot-grant-item p { margin:8px 0 0; color:#948266; font-family:"FangSong",serif; font-size:10px; line-height:1.7; }
.loot-grant-dialog dl { display:grid; grid-template-columns:repeat(3,1fr); border:1px solid rgba(179,129,61,.3); }
.loot-grant-dialog dl div { padding:10px 12px; border-left:1px solid rgba(179,129,61,.25); }
.loot-grant-dialog dl div:first-child { border-left:0; }
.loot-grant-dialog dt { color:#776a55; font-family:"FangSong",serif; font-size:8px; }
.loot-grant-dialog dd { margin:5px 0 0; color:#d7bb82; font-family:"FangSong",serif; font-size:12px; }
.loot-grant-note { color:#89795f; font-family:"FangSong",serif; font-size:10px; }
.loot-grant-dialog footer { display:flex; justify-content:flex-end; gap:10px; margin-top:16px; padding-top:13px; border-top:1px solid rgba(181,132,62,.28); }
.loot-grant-dialog footer button { min-width:118px; height:39px; border:1px solid rgba(190,140,68,.4); color:#aa9774; background:#120c07; cursor:pointer; font-family:"FangSong",serif; }
.loot-grant-dialog footer button.is-confirm { min-width:190px; border-color:#c99844; color:#1b1005; background:linear-gradient(180deg,#efcf7d,#b87e28); }
.quality-普通 { color:#c4b9a4; }.quality-精良 { color:#b5c987; }.quality-稀有 { color:#76b8af; }.quality-史诗 { color:#b593cf; }.quality-传说 { color:#e7b554; }.quality-仙品 { color:#ef7c5d; }

@keyframes lootOrbit { to { transform:rotate(360deg); } }

@keyframes mapVeilIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mapUnfurl { from { opacity: 0; transform: scale(.965) translateY(10px); filter: brightness(.45); } to { opacity: 1; transform: scale(1) translateY(0); filter: brightness(1); } }

.dungeon-narrative {
  padding: 17px 0 0;
  animation: archiveReveal 700ms ease 80ms both;
}

.dungeon-narrative > h1 {
  margin: 7px 0 2px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: #e5cb8d;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(42px, 4vw, 68px);
  font-weight: 600;
  letter-spacing: .15em;
  line-height: 1.08;
  text-shadow: 0 3px #573815, 0 10px 30px #000;
}

.detail-reservation-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border: 1px solid #8c6939;
  color: #e8c989;
  background: linear-gradient(112deg, #3e2917, #1c130c 70%);
  font-family: Georgia, "FangSong", serif;
  font-size: 13px;
  letter-spacing: .14em;
  text-shadow: none;
  white-space: nowrap;
}

.detail-start-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 10px 0 2px; }
.detail-start-button {
  padding: 8px 22px;
  border: 1px solid #d3a357;
  color: #241505;
  cursor: pointer;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 15px;
  letter-spacing: .22em;
  background: linear-gradient(112deg, #e9c67e, #b9873f 70%);
}
.detail-start-button:hover { background: linear-gradient(112deg, #f6d998, #c99542 70%); }
.detail-start-button:disabled { opacity: .55; cursor: wait; }
.detail-start-message { margin: 0; color: #c9a86a; font-size: 12px; letter-spacing: .04em; }
.detail-start-message.is-success { color: #9dc08b; }
.detail-start-message.is-error { color: #d98c7a; }

.dungeon-narrative blockquote {
  margin: 16px 0 10px;
  color: rgba(219, 204, 169, .74);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(16px, 1.2vw, 21px);
  letter-spacing: .08em;
  line-height: 1.65;
}

.ink-divider { display: flex; align-items: center; width: 100%; margin: 13px 0 18px; color: #76241b; }
.ink-divider::before,
.ink-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(173,126,59,.5)); }
.ink-divider::after { transform: rotate(180deg); }
.ink-divider span { margin: 0 12px; font-size: 8px; }
.dungeon-narrative > p { margin: 0 0 7px; color: rgba(206, 194, 168, .72); font-family: "FangSong", serif; font-size: 13px; line-height: 1.8; letter-spacing: .08em; }
.campaign-adjudication { margin: 16px 0; padding: 12px 14px; border: 1px solid rgba(173,126,59,.45); background: rgba(25,17,10,.7); color: #d9cbb0; font-size: 13px; line-height: 1.8; }
.campaign-adjudication summary { cursor: pointer; color: #e5cb8d; }
.campaign-adjudication p { margin: 10px 0; }
.campaign-adjudication a { display: inline-block; color: #e5cb8d; text-underline-offset: 4px; }

.danger-strip {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 13px;
  margin: 21px 0 19px;
  padding: 10px 13px;
  border: 1px solid rgba(137, 46, 30, .34);
  background: linear-gradient(90deg, rgba(89, 22, 15, .21), rgba(15,9,5,.52));
}

.danger-strip > span { color: #b88d55; font-family: "FangSong", serif; font-size: 10px; letter-spacing: .12em; }
.danger-strip small { justify-self: end; color: #8d7d62; font-size: 9px; letter-spacing: .08em; }

.brief-module {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid rgba(170, 127, 62, .3);
  background:
    linear-gradient(105deg, rgba(55, 35, 15, .55), rgba(10,7,4,.9) 40%, rgba(29,18,9,.72)),
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(255,255,255,.01) 9px);
  box-shadow: inset 0 0 22px rgba(0,0,0,.7), 0 12px 28px rgba(0,0,0,.28);
}

.brief-module::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 32px;
  height: 32px;
  border-right: 1px solid rgba(188,144,71,.25);
  border-bottom: 1px solid rgba(188,144,71,.25);
  pointer-events: none;
}

.module-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.module-title > span {
  display: grid;
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid #76271f;
  color: #b44d38;
  font-family: "STKaiti", serif;
  font-size: 18px;
  transform: rotate(-3deg);
}

.module-title small { display: block; color: #6f644f; font-family: Georgia, serif; font-size: 6px; letter-spacing: .28em; }
.module-title h3 { margin: 1px 0 0; color: #d7be86; font-family: "STKaiti", "KaiTi", serif; font-size: 20px; font-weight: 600; letter-spacing: .16em; }
.objective-tablet,
.reward-rack,
.campaign-timeline { padding: 15px; }
.campaign-round-rule { margin:12px 0 10px; padding:8px 10px; border-left:2px solid #a77835; color:#b8a27a; background:rgba(10,7,4,.38); font-family:"FangSong",serif; font-size:9px; line-height:1.7; letter-spacing:.05em; }
.campaign-timeline-list { display:grid; gap:6px; max-height:390px; padding-right:4px; overflow-y:auto; scrollbar-color:#79552c rgba(0,0,0,.18); scrollbar-width:thin; }
.campaign-timeline-row { display:grid; grid-template-columns:32px 112px minmax(0,1fr); gap:9px; align-items:start; padding:8px 9px; border:1px solid rgba(148,108,55,.2); background:linear-gradient(100deg,rgba(126,82,31,.12),rgba(8,5,3,.38)); }
.campaign-timeline-row > span { display:grid; width:27px; height:27px; place-items:center; border:1px solid rgba(177,126,57,.46); color:#d3ae65; font-family:Georgia,serif; font-size:9px; }
.campaign-timeline-row time { padding-top:5px; color:#9c8968; font-size:8px; line-height:1.55; letter-spacing:.04em; }
.campaign-timeline-row strong { display:block; color:#dfc38b; font-family:"STKaiti","KaiTi",serif; font-size:12px; font-weight:600; letter-spacing:.08em; }
.campaign-timeline-row p { margin:3px 0 0; color:#a99a7d; font-family:"FangSong",serif; font-size:9px; line-height:1.6; }
.campaign-casualty-rule { margin:10px 0 0; padding:9px 11px; border-left:2px solid #994a35; color:#b7a487; background:linear-gradient(90deg,rgba(115,42,28,.24),rgba(0,0,0,.14)); font-size:8px; line-height:1.7; }
.campaign-casualty-rule b { margin-right:8px; color:#d39172; font-weight:600; }
.objective-list { display: grid; gap: 7px; margin-top: 13px; }

.objective-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  min-height: 37px;
  padding: 0 10px;
  border-left: 2px solid #745629;
  background: rgba(122, 92, 44, .08);
}

.objective-row > span { color: #918168; font-size: 9px; letter-spacing: .1em; }
.objective-row > b { color: #d8c7a2; font-family: "FangSong", serif; font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.objective-row > i { color: #615847; font-size: 8px; font-style: normal; }
.objective-row.hard { border-left-color: #8b3b28; }
.objective-row.hidden { border-left-color: #b48a43; background: linear-gradient(90deg, rgba(137,93,33,.14), rgba(20,12,6,.08)); }
.objective-row.hidden > span { color: #ba9558; }

.reward-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; max-height:196px; margin-top:13px; padding-right:3px; overflow-y:auto; scrollbar-color:#70512d rgba(0,0,0,.2); scrollbar-width:thin; }
.reward-item { display:flex; align-items:center; min-width:0; min-height:45px; padding:8px 11px; border:1px solid rgba(131,101,55,.2); background:rgba(0,0,0,.2); }
.reward-mark { display: grid; flex: 0 0 auto; width: 30px; height: 34px; place-items: center; border: 1px solid #66502f; color: #b18c53; font-family: "STKaiti", serif; font-size: 16px; background: radial-gradient(circle, #3e2c15, #0b0704); clip-path: polygon(50% 0, 92% 18%, 100% 72%, 50% 100%, 0 72%, 8% 18%); }
.reward-item div { min-width:0; width:100%; }
.reward-item small { display: block; color: #706653; font-size: 7px; letter-spacing: .08em; }
.reward-item strong { display: block; margin-top: 3px; overflow: hidden; color: #c9b58b; font-family: "FangSong", serif; font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.reward-rule-note { margin:10px 0 0; padding:9px 11px; border-left:2px solid rgba(171,123,52,.75); background:linear-gradient(90deg,rgba(87,48,25,.24),rgba(0,0,0,.12)); color:#8f826a; font-size:8px; line-height:1.65; letter-spacing:.03em; }
.reward-rule-note b { margin-right:8px; color:#caa95c; font-weight:600; }
.reward-稀有 { border-color: rgba(146,105,45,.34); }
.reward-史诗 { border-color:rgba(159,117,63,.42); background:linear-gradient(100deg,rgba(77,47,20,.36),rgba(0,0,0,.2)); }
.reward-传说 { border-color: rgba(185,133,50,.5); box-shadow: inset 0 0 16px rgba(173,111,29,.08); }
.reward-传说 .reward-mark { color: #f0c86e; box-shadow: 0 0 12px rgba(216,139,42,.18); }
.reward-仙品 { border-color:rgba(183,91,60,.56); background:linear-gradient(100deg,rgba(89,37,24,.34),rgba(0,0,0,.22)); box-shadow:inset 0 0 17px rgba(151,58,33,.09); }
.reward-称号 { border-color:rgba(182,139,69,.62); background:linear-gradient(100deg,rgba(94,63,25,.48),rgba(13,8,4,.3)); }
.reward-称号 small { color:#a98345; }
.reward-称号 strong { color:#e0c482; }

.spinner-module {
  position: sticky;
  top: 100px;
  min-height: 720px;
  margin-top: 0;
  padding: 22px clamp(18px, 1.6vw, 28px);
  animation: archiveReveal 700ms ease 160ms both;
}
.soul-lottery-heading { position:relative; }
.soul-rate-help { display:grid;width:33px;height:33px;margin-left:auto;padding:0;place-items:center;border:1px solid #8d6634;border-radius:50%;color:#dbb667;cursor:pointer;background:radial-gradient(circle,#38230f,#090604 70%);box-shadow:inset 0 0 10px #000,0 0 12px rgba(198,131,35,.12);font-family:Georgia,serif;font-size:15px;transition:transform 180ms ease,border-color 180ms ease,box-shadow 180ms ease; }
.soul-rate-help:hover { border-color:#e0b762;box-shadow:inset 0 0 10px #000,0 0 19px rgba(219,157,59,.28);transform:rotate(8deg) scale(1.05); }

.soul-rate-backdrop { position:fixed;z-index:12040;inset:0;display:grid;padding:24px;place-items:center;background:radial-gradient(circle at 50% 42%,rgba(86,50,17,.22),rgba(0,0,0,.92) 66%);backdrop-filter:blur(10px);animation:mapVeilIn 180ms ease both; }
.soul-rate-dialog { position:relative;width:min(880px,calc(100vw - 48px));max-height:90vh;overflow:hidden;padding:26px;border:1px solid rgba(220,171,84,.68);color:#b9a47d;background:radial-gradient(circle at 78% 0,rgba(143,86,25,.2),transparent 32%),linear-gradient(140deg,#301e0e,#0a0704 42% 76%,#28170b);box-shadow:inset 0 0 0 4px #060403,inset 0 0 0 5px rgba(222,171,82,.15),inset 0 0 65px #000,0 34px 95px #000;clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px),0 12px);animation:dossierOpen 420ms cubic-bezier(.16,.78,.18,1) both; }
.soul-rate-close { position:absolute;z-index:3;top:16px;right:17px;display:grid;width:36px;height:36px;padding:0;place-items:center;border:1px solid #79562c;color:#d2af69;cursor:pointer;background:#120b06;font-size:20px; }
.soul-rate-dialog > header { display:grid;grid-template-columns:48px 1fr;align-items:center;gap:14px;padding:0 46px 17px 0;border-bottom:1px solid rgba(189,140,66,.3); }
.soul-rate-dialog > header > span { display:grid;width:44px;height:46px;place-items:center;border:1px solid #8f3528;color:#cc624c;font-family:"STKaiti",serif;font-size:23px;transform:rotate(-4deg); }
.soul-rate-dialog header small { color:#77664e;font-family:Georgia,serif;font-size:7px;letter-spacing:.26em; }
.soul-rate-dialog h3 { margin:3px 0 1px;color:#e7cb8d;font-family:"STKaiti",serif;font-size:25px;font-weight:500;letter-spacing:.13em; }
.soul-rate-dialog header p { margin:0;color:#88785d;font-family:"FangSong",serif;font-size:10px; }
.soul-rate-summary { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:15px 0; }
.soul-rate-summary > div { position:relative;min-height:67px;padding:10px 12px;border:1px solid rgba(187,137,63,.28);background:linear-gradient(110deg,rgba(77,47,18,.36),rgba(5,4,3,.7)); }
.soul-rate-summary small { display:block;color:#7d6d54;font-family:"FangSong",serif;font-size:8px;letter-spacing:.08em; }
.soul-rate-summary b { display:inline-block;margin-top:6px;color:#e5c77f;font-family:Georgia,"FangSong",serif;font-size:21px;font-weight:500; }
.soul-rate-summary em { margin-left:5px;color:#827158;font-size:9px;font-style:normal; }
.soul-rate-table { overflow:hidden;border:1px solid rgba(180,130,60,.3);background:rgba(3,2,2,.48); }
.soul-rate-table > header,.soul-rate-table article { display:grid;grid-template-columns:48px minmax(110px,1fr) 72px 110px 112px;align-items:center; }
.soul-rate-table > header { min-height:34px;color:#e5c886;background:#76291f;font-family:"FangSong",serif;font-size:9px;letter-spacing:.08em; }
.soul-rate-table > header span { padding:0 10px;text-align:center; }
.soul-rate-table > header span:nth-child(2) { text-align:left; }
.soul-rate-table > div { max-height:47vh;overflow-y:auto;scrollbar-color:#7c572b #0b0704;scrollbar-width:thin; }
.soul-rate-table article { min-height:36px;border-bottom:1px solid rgba(157,113,52,.16);font-family:"FangSong",serif;transition:background 160ms ease; }
.soul-rate-table article:last-child { border-bottom:0; }
.soul-rate-table article:hover { background:rgba(150,96,27,.12); }
.soul-rate-table article > * { min-width:0;margin:0;padding:0 10px;font-style:normal; }
.soul-rate-table article i { color:#665b4a;font-family:Georgia,serif;font-size:8px;text-align:center; }
.soul-rate-table article b { overflow:hidden;color:#cdb788;font-size:11px;font-weight:500;text-overflow:ellipsis;white-space:nowrap; }
.soul-rate-table article span { color:#8d7b5f;font-family:Georgia,serif;font-size:10px;text-align:center; }
.soul-rate-table article strong { color:#e2bf70;font-family:Georgia,"FangSong",serif;font-size:11px;font-weight:500;text-align:right; }
.soul-rate-table article em { color:#8a785d;font-family:Georgia,serif;font-size:10px;text-align:right; }
.soul-rate-table article.is-highest { background:linear-gradient(90deg,rgba(124,49,31,.34),rgba(108,67,20,.16)); }
.soul-rate-table article.is-highest strong { color:#f0c778;text-shadow:0 0 9px rgba(220,147,45,.28); }
.soul-rate-table article.is-lowest { background:rgba(64,54,42,.11); }
.soul-rate-dialog > footer { display:flex;align-items:center;justify-content:space-between;margin-top:14px;padding-top:13px;border-top:1px solid rgba(181,132,62,.25);color:#7e7059;font-family:"FangSong",serif;font-size:9px;letter-spacing:.08em; }
.soul-rate-dialog > footer b { color:#c8aa69;font-weight:500; }

.spinner-stage {
  position: relative;
  display: grid;
  width: min(25vw, 350px);
  max-width: 100%;
  aspect-ratio: 1;
  margin: 30px auto 18px;
  place-items: center;
}

.spinner-stage::before,
.spinner-stage::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(194,148,73,.24);
  border-radius: 50%;
}
.spinner-stage::before { inset: -9px; box-shadow: 0 0 25px rgba(164,93,24,.14), inset 0 0 22px #000; }
.spinner-stage::after { inset: 11%; border-style: dashed; animation: orbitTurn 26s linear infinite reverse; }

.spinner-pointer {
  position: absolute;
  z-index: 7;
  top: -9px;
  left: 50%;
  width: 30px;
  height: 48px;
  background: linear-gradient(90deg, #4e3013, #d3aa61 48%, #553415);
  clip-path: polygon(50% 100%, 0 24%, 24% 0, 76% 0, 100% 24%);
  filter: drop-shadow(0 4px 5px #000);
  transform: translateX(-50%);
}

.soul-wheel {
  position: absolute;
  inset: 0;
  border: 8px double #6c4c24;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(4,3,2,.96) 0 24%, transparent 25%),
    repeating-conic-gradient(from 0deg, rgba(169,119,48,.22) 0deg 1deg, transparent 1deg 29deg, rgba(104,39,24,.18) 29deg 30deg),
    radial-gradient(circle, #20160b 0 55%, #080604 56% 65%, #5c421f 66% 68%, #0a0704 69%);
  box-shadow: inset 0 0 30px #000, 0 16px 34px rgba(0,0,0,.65), 0 0 20px rgba(171,101,28,.12);
  transition: transform 3.8s cubic-bezier(.12,.64,.08,1);
  will-change: transform;
}

.soul-wheel::before,
.soul-wheel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.soul-wheel::before { inset: 7%; border: 1px solid rgba(218,175,92,.35); }
.soul-wheel::after { inset: 31%; border: 1px solid #744d20; box-shadow: inset 0 0 20px #000, 0 0 10px rgba(204,131,40,.16); }
.soul-wheel.is-spinning { filter: brightness(1.18) drop-shadow(0 0 12px rgba(207,137,48,.35)); }

.wheel-bagua {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: grid;
  width: 23%;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #8f6734;
  border-radius: 50%;
  color: #d1a75e;
  font-family: "STKaiti", serif;
  font-size: clamp(20px, 2vw, 30px);
  background: radial-gradient(circle at 36% 32%, #4c3216, #0c0804 68%);
  box-shadow: inset 0 0 12px #000, 0 0 15px rgba(214,137,36,.18);
  transform: translate(-50%, -50%);
}

.soul-name {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 48px;
  margin-left: -24px;
  color: #ad9569;
  font-family: "FangSong", serif;
  font-size: clamp(7px, .6vw, 9px);
  letter-spacing: .04em;
  text-align: center;
  transform: rotate(var(--angle)) translateY(clamp(-145px, -10.4vw, -112px));
  transform-origin: 50% 0;
}

.soul-wheel.is-dense .soul-name {
  width: 38px;
  margin-left: -19px;
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0;
  transform: rotate(var(--angle)) translateY(clamp(-145px, -10.4vw, -120px));
}

.soul-wheel.is-dense .soul-name:nth-of-type(even) {
  color: #8f7c5a;
  transform: rotate(var(--angle)) translateY(clamp(-103px, -7.4vw, -84px));
}

.spin-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 90px;
  padding: 10px;
  text-align: center;
  border-top: 1px solid rgba(152,111,52,.18);
  border-bottom: 1px solid rgba(152,111,52,.18);
  background: linear-gradient(90deg, transparent, rgba(103,69,29,.1), transparent);
}
.spin-result small { color: #746956; font-size: 8px; letter-spacing: .2em; }
.spin-result strong { margin: 3px 0 2px; color: #bbaa87; font-family: "STKaiti", serif; font-size: 24px; font-weight: 500; letter-spacing: .12em; }
.spin-result span { color: #6f6250; font-family: "FangSong", serif; font-size: 9px; }
.spin-result.has-result strong { color: #f0d38f; text-shadow: 0 0 16px rgba(223,147,48,.35); animation: resultReveal 650ms ease both; }
.spin-result.has-result span { color: #a67538; }

.spin-button {
  position: relative;
  display: block;
  width: 78%;
  height: 52px;
  margin: 20px auto 0;
  overflow: hidden;
  border: 1px solid #8f682f;
  color: #1b1005;
  cursor: pointer;
  background: linear-gradient(180deg, #e0c078, #9b6c2b 64%, #5e3c16);
  box-shadow: inset 0 0 0 2px rgba(45,28,10,.55), 0 0 18px rgba(197,126,35,.18), 0 10px 20px #000;
  font-family: "STKaiti", serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2em;
  clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%);
}
.spin-button span { position: absolute; top: -50%; left: -25%; width: 24%; height: 200%; background: rgba(255,255,255,.4); filter: blur(4px); transform: rotate(18deg); animation: goldSheen 3.2s ease-in-out infinite; }
.spin-button:hover:not(:disabled) { filter: brightness(1.15); }
.spin-button:disabled { color: #3c2c19; cursor: wait; filter: saturate(.5) brightness(.8); }

.spin-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 9px;
  margin: 20px auto 0;
}

.spin-action-row .spin-button { width: 100%; margin: 0; }

.seal-result-button {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 0 10px 0 7px;
  border: 1px solid rgba(157, 111, 50, .72);
  color: #d8bd83;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(85, 47, 20, .9), rgba(21, 12, 7, .98));
  box-shadow: inset 0 0 0 2px rgba(11, 7, 4, .82), 0 9px 20px rgba(0, 0, 0, .48);
  font-family: "STKaiti", serif;
  font-size: 12px;
  letter-spacing: .08em;
}

.seal-result-button i {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid #87362a;
  color: #c55d44;
  font-size: 15px;
  font-style: normal;
  transform: rotate(-4deg);
}

.seal-result-button:hover:not(:disabled) { border-color: #d0a35c; color: #f1d89c; filter: brightness(1.1); }
.seal-result-button:disabled { color: #625644; cursor: not-allowed; filter: saturate(.45); opacity: .65; }
.seal-result-button.is-sealed { border-color: rgba(141, 51, 39, .82); color: #d9a075; background: linear-gradient(180deg, rgba(90, 31, 22, .72), rgba(25, 11, 7, .98)); }

.spinner-notice {
  margin: 9px 0 0;
  color: #8e7150;
  font-family: "FangSong", serif;
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .05em;
  text-align: center;
}
.spinner-notice.is-success { color: #c79d5d; }

.soul-archive-scroll {
  position: relative;
  grid-column: 1 / -1;
  scroll-margin-top: 82px;
  margin-top: 10px;
  padding: clamp(20px, 2vw, 32px);
  border: 1px solid rgba(177, 132, 61, .42);
  background:
    linear-gradient(100deg, rgba(64, 37, 15, .62), rgba(8, 5, 3, .96) 37% 72%, rgba(59, 32, 14, .58)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(232, 195, 118, .015) 29px);
  box-shadow: inset 0 0 34px #000, 0 18px 42px rgba(0, 0, 0, .45);
  animation: archiveReveal 560ms ease both;
}

.soul-archive-scroll::before,
.soul-archive-scroll::after { content: ""; position: absolute; width: 44px; height: 44px; border-color: rgba(193, 147, 72, .38); pointer-events: none; }
.soul-archive-scroll::before { top: 8px; left: 8px; border-top: 1px solid; border-left: 1px solid; }
.soul-archive-scroll::after { right: 8px; bottom: 8px; border-right: 1px solid; border-bottom: 1px solid; }

.soul-archive-header {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(172, 129, 63, .28);
}
.soul-archive-header > p { margin: 0; color: #887a62; font-family: "FangSong", serif; font-size: 11px; line-height: 1.7; letter-spacing: .05em; }
.soul-archive-actions { display: flex; gap: 8px; }
.soul-archive-actions button { min-width: 96px; height: 36px; border: 1px solid #76562d; color: #d3b77c; cursor: pointer; background: linear-gradient(180deg, #352312, #100b07); font-family: "STKaiti", serif; font-size: 12px; letter-spacing: .1em; }
.soul-archive-actions button:hover { border-color: #b88a46; filter: brightness(1.12); }
.soul-archive-actions .is-danger { border-color: rgba(116, 45, 34, .75); color: #b87a67; }

.soul-archive-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 14px; margin-top: 16px; }

.sealed-role-sheet {
  min-width: 0;
  padding: 18px 20px 20px;
  color: #302012;
  background:
    radial-gradient(circle at 90% 8%, rgba(111, 70, 27, .12), transparent 28%),
    repeating-linear-gradient(0deg, rgba(75, 50, 22, .035) 0 1px, transparent 1px 6px),
    linear-gradient(100deg, #c8b27a, #decf9d 48%, #c6ae73);
  box-shadow: inset 0 0 28px rgba(75, 46, 17, .32), 0 12px 28px rgba(0, 0, 0, .36);
}

.sealed-role-identity { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 15px; padding-bottom: 14px; border-bottom: 1px solid rgba(73, 44, 18, .34); }
.sealed-role-portrait { position: relative; width: 84px; height: 96px; overflow: hidden; border: 1px solid rgba(70, 39, 15, .62); background: #1a1008; box-shadow: 0 8px 18px rgba(65, 39, 13, .28); }
.sealed-role-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.78) contrast(1.06); }
.sealed-role-portrait > span { position: absolute; right: 4px; bottom: 4px; display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #6f211b; color: #7a201b; background: rgba(208, 177, 112, .72); font-family: "STKaiti", serif; font-size: 16px; transform: rotate(-5deg); }
.sealed-role-identity small { color: #75562c; font-family: Georgia, serif; font-size: 7px; letter-spacing: .2em; }
.sealed-role-identity h2 { margin: 4px 0 3px; color: #3e2112; font-family: "STKaiti", serif; font-size: 31px; font-weight: 700; letter-spacing: .13em; }
.sealed-role-identity p { margin: 0; color: #694d2e; font-family: "FangSong", serif; font-size: 12px; }
.sealed-role-identity time { align-self: start; color: #765b36; font-family: Georgia, serif; font-size: 8px; }

.sealed-role-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 13px; border-top: 1px solid rgba(86, 55, 23, .2); border-left: 1px solid rgba(86, 55, 23, .2); }
.sealed-role-facts > div { min-width: 0; padding: 9px 10px; border-right: 1px solid rgba(86, 55, 23, .2); border-bottom: 1px solid rgba(86, 55, 23, .2); }
.sealed-role-facts span { display: block; color: #7c603b; font-size: 8px; letter-spacing: .08em; }
.sealed-role-facts b { display: block; margin-top: 4px; overflow: hidden; color: #3d2a19; font-family: "FangSong", serif; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

.sealed-role-columns { display: grid; grid-template-columns: 1.08fr .92fr; gap: 12px; margin-top: 13px; }
.sealed-stats,
.sealed-affinity { padding: 11px 12px; border: 1px solid rgba(76, 47, 19, .28); background: rgba(239, 222, 171, .22); }
.sealed-stats header,
.sealed-affinity header { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; color: #4f3018; font-family: "STKaiti", serif; }
.sealed-stats header span,
.sealed-affinity header span { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid #7e2b22; color: #7e2b22; }
.sealed-stats header b,
.sealed-affinity header b { font-size: 15px; letter-spacing: .09em; }
.sealed-stats > div { display: grid; grid-template-columns: 34px minmax(0, 1fr) 30px; align-items: center; gap: 8px; min-height: 24px; color: #5e462b; font-size: 10px; }
.sealed-stats > div > i { height: 5px; overflow: hidden; border: 1px solid rgba(71, 44, 18, .35); background: rgba(54, 34, 15, .14); }
.sealed-stats > div > i em { display: block; height: 100%; background: linear-gradient(90deg, #713027, #c08e3b); }
.sealed-stats > div > b { color: #6e2b20; font-family: Georgia, serif; text-align: right; }
.sealed-affinity > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.sealed-affinity > div > span { display: grid; min-height: 50px; place-items: center; border: 1px solid rgba(72, 44, 18, .25); background: rgba(226, 205, 150, .22); }
.sealed-affinity small { color: #6d5233; font-size: 8px; }
.sealed-affinity b { color: #4f2d17; font-family: Georgia, serif; font-size: 17px; }
.sealed-affinity .grade-S,
.sealed-affinity .grade-SS { color: #8a2e21; text-shadow: 0 1px #ead6a1; }

.sealed-role-tags { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12px; margin-top: 12px; }
.sealed-role-tags > div { display: grid; grid-template-columns: 45px minmax(0, 1fr); gap: 8px; align-items: start; padding-top: 10px; border-top: 1px solid rgba(76, 47, 19, .24); }
.sealed-role-tags > div > span { color: #6f2c22; font-family: "STKaiti", serif; font-size: 14px; }
.sealed-role-tags p { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.sealed-role-tags i { padding: 3px 7px; border: 1px solid rgba(80, 50, 20, .3); color: #4f3922; background: rgba(244, 227, 176, .28); font-family: "FangSong", serif; font-size: 9px; font-style: normal; }

.soul-archive-history { min-width: 0; padding: 13px; border: 1px solid rgba(151, 109, 51, .28); background: rgba(6, 4, 3, .68); }
.soul-archive-history > header { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid rgba(151, 109, 51, .22); }
.soul-archive-history > header > span { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid #70261f; color: #a64b39; font-family: "STKaiti", serif; }
.soul-archive-history header small { color: #665c4c; font-family: Georgia, serif; font-size: 6px; letter-spacing: .18em; }
.soul-archive-history header h4 { margin: 2px 0 0; color: #cbb27d; font-family: "STKaiti", serif; font-size: 17px; letter-spacing: .1em; }
.soul-archive-history header > b { color: #d1a961; font-family: Georgia, serif; font-size: 18px; }
.soul-archive-history > div { display: grid; gap: 6px; max-height: 340px; margin-top: 10px; overflow-y: auto; scrollbar-color: #6d4e29 #090604; }
.soul-archive-record { display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 5px; min-width: 0; }
.soul-archive-record-select { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; padding: 8px; border: 1px solid rgba(127, 92, 45, .2); color: #8b7b62; cursor: pointer; background: rgba(42, 27, 12, .3); text-align: left; }
.soul-archive-record-select:hover,
.soul-archive-record-select.is-active { border-color: rgba(187, 139, 66, .58); background: linear-gradient(90deg, rgba(111, 68, 25, .42), rgba(23, 14, 8, .54)); }
.soul-archive-record-select > i { color: #83543a; font-family: Georgia, serif; font-size: 9px; font-style: normal; }
.soul-archive-record-select span { min-width: 0; }
.soul-archive-record-select b { display: block; overflow: hidden; color: #d1b77f; font-family: "STKaiti", serif; font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.soul-archive-record-select small { display: block; margin-top: 2px; overflow: hidden; color: #756955; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.soul-archive-record-select time { color: #655947; font-size: 7px; }
.soul-archive-record-delete { position: relative; display: grid; width: 32px; min-width: 32px; padding: 0; place-items: center; border: 1px solid rgba(112, 42, 32, .44); color: #9b5b4b; cursor: pointer; background: linear-gradient(180deg, rgba(58, 24, 18, .58), rgba(18, 9, 6, .72)); font-family: "STKaiti", serif; font-size: 12px; transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.soul-archive-record-delete::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(132, 52, 39, .16); pointer-events: none; }
.soul-archive-record-delete:hover { border-color: #a94838; color: #e39a7b; background: linear-gradient(180deg, rgba(104, 39, 28, .7), rgba(30, 11, 8, .86)); transform: translateY(-1px); }
.soul-archive-record-delete:focus-visible { outline: 1px solid #d09a56; outline-offset: 2px; }

.roster-section {
  margin-top: clamp(34px, 4vw, 62px);
  padding: clamp(22px, 2.5vw, 38px);
  border-top: 1px solid rgba(178,133,64,.35);
  border-bottom: 1px solid rgba(178,133,64,.22);
  background:
    linear-gradient(90deg, transparent, rgba(48,30,13,.55) 12% 88%, transparent),
    repeating-linear-gradient(0deg, transparent 0 15px, rgba(216,174,96,.018) 16px);
  box-shadow: inset 0 22px 45px rgba(0,0,0,.3);
}

.enemy-roster-section {
  margin-top: 24px;
  border-top-color: rgba(150, 57, 43, .55);
  border-bottom-color: rgba(150, 57, 43, .34);
  background:
    linear-gradient(90deg, transparent, rgba(68, 25, 16, .62) 12% 88%, transparent),
    repeating-linear-gradient(0deg, transparent 0 15px, rgba(205, 93, 65, .025) 16px);
}

.enemy-roster-section .module-title > span { border-color: #91382b; color: #d26c52; }
.enemy-roster-section .module-title h3 { color: #e0b083; }
.enemy-roster-section .character-card { border-color: rgba(145, 62, 42, .48); background: linear-gradient(110deg, #3b1e13, #160c08 55%, #27130d); }
.enemy-roster-section .character-card:hover { border-color: rgba(207, 102, 70, .72); box-shadow: inset 0 0 18px rgba(0,0,0,.52), 0 13px 26px rgba(0,0,0,.42), 0 0 14px rgba(151,57,37,.15); }

.roster-header {
  display: grid;
  grid-template-columns: auto minmax(300px, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 22px;
}
.roster-header p { max-width: 650px; margin: 0; color: #867a65; font-family: "FangSong", serif; font-size: 11px; line-height: 1.75; letter-spacing: .06em; }
.roster-header > b { color: #aa8d5d; font-family: "FangSong", serif; font-size: 10px; font-weight: 500; letter-spacing: .14em; }

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.character-card {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 158px;
  overflow: hidden;
  border: 1px solid rgba(157,116,55,.31);
  background:
    linear-gradient(105deg, rgba(76,49,21,.35), rgba(10,7,4,.9) 44%),
    #0c0805;
  box-shadow: inset 0 0 18px rgba(0,0,0,.74), 0 10px 22px rgba(0,0,0,.25);
  content-visibility: auto;
  contain-intrinsic-size: 158px;
  animation: cardEnter 620ms ease var(--delay) both;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.character-card::before {
  content: "";
  position: absolute;
  z-index: 3;
  right: 5px;
  bottom: 5px;
  width: 24px;
  height: 24px;
  border-right: 1px solid rgba(188,144,71,.22);
  border-bottom: 1px solid rgba(188,144,71,.22);
}

.character-card:hover { border-color: rgba(216,168,84,.58); box-shadow: inset 0 0 18px rgba(0,0,0,.6), 0 13px 26px rgba(0,0,0,.42), 0 0 14px rgba(168,98,29,.09); transform: translateY(-4px); }
.character-avatar { position: relative; overflow: hidden; background: #070504; }
.character-avatar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 52%, rgba(8,5,3,.82)), linear-gradient(180deg, transparent 62%, rgba(6,4,2,.9)); }
.character-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.64) sepia(.09) contrast(1.08) brightness(.74); transition: 450ms ease; }
.character-card:hover .character-avatar img { transform: scale(1.05); filter: saturate(.8) sepia(.04) contrast(1.05) brightness(.84); }
.character-avatar.is-atlas-portrait > i { display:block; width:100%; height:100%; background-repeat:no-repeat; filter:saturate(.82) contrast(1.04) brightness(.9); transition:filter 360ms ease; }
.character-card:hover .character-avatar.is-atlas-portrait > i { filter:saturate(1) contrast(1.02) brightness(1.04); }
.character-avatar > span { position: absolute; z-index: 2; bottom: 7px; left: 8px; color: rgba(215,179,107,.65); font-family: Georgia, serif; font-size: 9px; }

.character-data { min-width: 0; padding: 13px 11px 10px; }
.character-name { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-bottom: 7px; border-bottom: 1px solid rgba(139,104,55,.17); }
.character-name h4 { margin: 0; color: #dec58e; font-family: "STKaiti", "KaiTi", serif; font-size: 19px; font-weight: 600; letter-spacing: .1em; }
.character-name-actions { display:flex; flex:none; align-items:center; gap:6px; }
.character-name .difficulty i { font-size: 7px; }
.character-export-button { position:relative; z-index:4; min-width:34px; height:20px; padding:0 6px; border:1px solid rgba(183,135,64,.5); color:#bca474; cursor:pointer; background:linear-gradient(180deg,rgba(88,57,25,.55),rgba(28,18,10,.82)); font-family:"FangSong",serif; font-size:8px; letter-spacing:.08em; transition:border-color 160ms ease,color 160ms ease,background 160ms ease; }
.character-export-button:hover:not(:disabled) { border-color:#d4a85b; color:#f0d49a; background:linear-gradient(180deg,rgba(117,76,30,.7),rgba(37,23,11,.92)); }
.character-export-button:focus-visible { outline:1px solid #e2b965; outline-offset:2px; }
.character-export-button:disabled { opacity:.38; cursor:wait; }
.character-data dl { display: grid; gap: 5px; margin: 8px 0 7px; }
.character-data dl > div { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 5px; }
.character-data dt { color: #776b57; font-size: 8px; letter-spacing: .1em; }
.character-data dd { min-width: 0; margin: 0; overflow: hidden; color: #afa287; font-family: "FangSong", serif; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.reverse-level { display: grid; grid-template-columns:auto minmax(0,1fr) auto; align-items: center; gap:6px; padding-top: 6px; border-top: 1px solid rgba(139,104,55,.12); }
.reverse-level span { color: #746955; font-size: 8px; letter-spacing: .1em; }
.reverse-level > span:first-child, .reverse-level > b { white-space:nowrap; }
.reverse-level b { color: #9f7134; font-family: Georgia, serif; font-size: 8px; font-weight: 400; letter-spacing: 1px; }
.reverse-level .character-troop-count { display:flex; flex-wrap:wrap; justify-content:center; align-items:baseline; gap:2px 5px; min-width:0; text-align:center; }
.character-troop-count strong { color:#dec58e; font-size:11px; font-weight:500; letter-spacing:.02em; font-variant-numeric:tabular-nums; white-space:nowrap; }

@keyframes archiveEmber { from { opacity: .08; transform: scale(.88); } to { opacity: .18; transform: scale(1.08) translateY(-3vh); } }
@keyframes archiveReveal { from { opacity: 0; transform: translateY(15px); filter: blur(3px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes scrollUnfurl { from { opacity: 0; transform: scaleX(.76); filter: brightness(.45); } to { opacity: 1; transform: scaleX(1); filter: brightness(1); } }
@keyframes cardEnter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes resultReveal { 0% { opacity: 0; transform: scale(.72); filter: blur(5px); } 60% { opacity: 1; transform: scale(1.08); } 100% { transform: scale(1); filter: blur(0); } }

@media (max-width: 1500px) {
  .dungeon-header { grid-template-columns: minmax(190px, .8fr) minmax(380px, 1.2fr) minmax(280px, .9fr); padding-right: 28px; padding-left: 28px; }
  .player-token-compact { transform: scale(.72); }
  .detail-main { width: calc(100% - 50px); }
  .detail-hero { grid-template-columns: minmax(285px, .82fr) minmax(330px, 1fr) minmax(320px, .82fr); gap: 18px; }
  .dungeon-cover-panel, .spinner-module { min-height: 665px; }
  .character-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spinner-stage { width: min(24vw, 315px); }
  .soul-name { transform: rotate(var(--angle)) translateY(clamp(-130px, -9.5vw, -102px)); }
}

@media (max-width: 1180px) {
  .dungeon-header { grid-template-columns: 160px 1fr 280px; }
  .player-token-compact { transform: scale(.65); }
  .atlas-prologue p { display: none; }
  .atlas-prologue { grid-template-columns: auto 1fr auto; }
  .detail-main { width: calc(100% - 34px); }
  .detail-hero { grid-template-columns: 310px minmax(330px, 1fr); }
  .spinner-module { position: relative; top: auto; grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: auto minmax(260px, 340px) minmax(200px, 1fr); align-items: center; gap: 20px; }
  .spinner-module .module-title { align-self: start; grid-column: 1; grid-row: 1; }
  .spinner-stage { grid-column: 2; grid-row: 1 / span 3; width: 300px; margin: 10px auto; }
  .spin-result { grid-column: 3; grid-row: 1; }
  .spin-action-row { grid-column: 3; grid-row: 2; width: 100%; margin: 0; }
  .spinner-notice { grid-column: 3; margin: 0; }
  .soul-archive-layout { grid-template-columns: minmax(0, 1fr) 245px; }
  .sealed-role-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sealed-role-columns { grid-template-columns: 1fr; }
  .character-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .soul-archive-header { grid-template-columns: 1fr; gap: 10px; }
  .soul-archive-actions { justify-content: flex-start; }
  .soul-archive-layout { grid-template-columns: 1fr; }
  .soul-archive-history > div { max-height: 220px; }
  .sealed-role-identity { grid-template-columns: 72px minmax(0, 1fr); }
  .sealed-role-identity time { grid-column: 2; }
  .sealed-role-tags { grid-template-columns: 1fr; }
}

@media (max-height: 800px) and (min-width: 1181px) {
  .atlas-page { min-height: 680px; }
  .atlas-main { grid-template-rows: 68px minmax(390px, 1fr) 34px; }
  .atlas-prologue { min-height: 64px; }
  .atlas-seal { width: 36px; height: 36px; font-size: 20px; }
  .atlas-prologue h2 { font-size: 24px; }
  .atlas-footnote { min-height: 30px; }
  .scroll-node { width: 190px; height: 242px; }
  .node-portrait { width: 160px; height: 106px; }
  .node-copy strong { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .soul-wheel { transition-duration: .01ms !important; }
}

/* ================================================================
   天下奇珍录 · 史官禁库金册
   ================================================================ */

.treasure-page {
  --treasure-paper: #bda16b;
  --treasure-ink: #23170d;
  --treasure-gold: #d2aa62;
  --treasure-red: #74261d;
  min-height: 100vh;
  padding-bottom: 72px;
  background:
    radial-gradient(circle at 50% 5%, rgba(137, 82, 27, .2), transparent 34%),
    linear-gradient(180deg, #080503 0, #0d0905 38%, #050403 100%);
}

.treasure-backdrop {
  position: fixed;
  z-index: -2;
  inset: 0;
  opacity: .23;
  background:
    linear-gradient(180deg, rgba(4, 3, 2, .12), rgba(5, 3, 2, .8) 72%, #050403),
    linear-gradient(90deg, rgba(0, 0, 0, .7), transparent 25% 75%, rgba(0, 0, 0, .7)),
    url("/assets/generated/entry-treasures.png") center top / cover no-repeat;
  filter: saturate(.64) sepia(.08) contrast(1.12);
  transform: scale(1.025);
  animation: treasuryBreath 20s ease-in-out infinite alternate;
}

.treasure-page::before {
  opacity: .16;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(224, 184, 103, .035) 32px),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(0, 0, 0, .32) 32px);
}

.treasure-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(460px, 1.2fr) minmax(260px, 1fr);
  align-items: center;
  min-height: 150px;
  padding: 22px clamp(34px, 5vw, 92px) 26px;
  border-bottom: 1px solid rgba(181, 139, 70, .28);
  background:
    radial-gradient(ellipse at 50% 110%, rgba(170, 105, 34, .17), transparent 50%),
    linear-gradient(90deg, rgba(5, 4, 3, .96), rgba(14, 9, 5, .84) 50%, rgba(5, 4, 3, .96));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .65);
}

.treasure-header::before,
.treasure-header::after {
  content: "";
  position: absolute;
  right: 5%;
  left: 5%;
  pointer-events: none;
}

.treasure-header::before {
  bottom: 9px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #70512c 13%, #d0a45d 50%, #70512c 87%, transparent);
}

.treasure-header::after {
  bottom: -5px;
  width: 62px;
  height: 10px;
  margin: auto;
  border: 1px solid #72522b;
  background: #100b06;
  clip-path: polygon(12% 0, 88% 0, 100% 50%, 88% 100%, 12% 100%, 0 50%);
}

.treasure-heading {
  position: relative;
  justify-self: center;
  min-width: 430px;
  text-align: center;
}

.treasure-heading::before,
.treasure-heading::after {
  content: "◆";
  position: absolute;
  top: 51%;
  color: rgba(183, 138, 66, .52);
  font-size: 8px;
}

.treasure-heading::before { left: 0; }
.treasure-heading::after { right: 0; }

.treasure-heading > span {
  color: rgba(197, 158, 91, .55);
  font-family: Georgia, serif;
  font-size: 8px;
  letter-spacing: .45em;
}

.treasure-heading h1 {
  margin: 3px 0 1px;
  color: #e3c989;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(34px, 3vw, 54px);
  font-weight: 700;
  letter-spacing: .19em;
  line-height: 1.08;
  text-shadow: 0 1px 0 #fff0b3, 0 4px 0 #5f3e17, 0 10px 24px #000, 0 0 22px rgba(198, 135, 45, .2);
}

.treasure-heading p {
  margin: 7px 0 0;
  color: #92846b;
  font-family: "FangSong", serif;
  font-size: 12px;
  letter-spacing: .32em;
}

.treasure-custodian {
  position: relative;
  justify-self: end;
  display: flex;
  align-items: center;
  min-width: 228px;
  padding: 11px 15px 11px 12px;
  border: 1px solid rgba(170, 129, 65, .32);
  color: #bbaa89;
  background: linear-gradient(100deg, rgba(62, 41, 19, .56), rgba(9, 7, 5, .8));
  box-shadow: inset 0 0 16px #000;
  clip-path: polygon(8% 0, 100% 0, 94% 50%, 100% 100%, 8% 100%, 0 50%);
}

.treasure-custodian > span {
  display: grid;
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  margin-right: 12px;
  place-items: center;
  border: 1px solid #773227;
  color: #a74835;
  font-family: "STKaiti", serif;
  font-size: 21px;
  transform: rotate(-4deg);
}

.treasure-custodian small,
.treasure-custodian b { display: block; }
.treasure-custodian small { color: #766b58; font-size: 8px; letter-spacing: .18em; }
.treasure-custodian b { margin-top: 4px; color: #c8b790; font-family: "FangSong", serif; font-size: 12px; font-weight: 500; letter-spacing: .14em; }
.treasure-custodian > div { min-width:0; }
.treasure-custodian > div b { overflow-wrap:anywhere; }
.treasure-custodian > button { flex:0 0 auto; min-width:46px; min-height:38px; margin-left:auto; border:0; border-left:1px solid rgba(170,129,65,.32); color:#aa9878; cursor:pointer; background:transparent; font-family:"FangSong",serif; font-size:11px; }
.treasure-custodian > button:hover { color:#ead097; }

.treasure-main {
  position: relative;
  z-index: 4;
  width: min(1640px, calc(100% - 7vw));
  margin: 0 auto;
}

.treasure-stats {
  display: grid;
  grid-template-columns: 1.35fr repeat(8, 1fr);
  min-height: 76px;
  margin: 28px auto 18px;
  border: 1px solid rgba(167, 126, 62, .3);
  background:
    linear-gradient(90deg, rgba(59, 38, 17, .75), rgba(9, 7, 5, .91) 17% 83%, rgba(59, 38, 17, .75)),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(210, 170, 94, .025) 25px);
  box-shadow: inset 0 0 28px #000, 0 12px 28px rgba(0, 0, 0, .38);
  clip-path: polygon(1.3% 0, 98.7% 0, 100% 50%, 98.7% 100%, 1.3% 100%, 0 50%);
  animation: archiveReveal 650ms ease both;
}

.treasure-stats > div {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 9px;
  padding: 18px 15px;
}

.treasure-stats > div + div::before {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: 0;
  width: 1px;
  background: linear-gradient(transparent, rgba(167, 128, 67, .3), transparent);
}

.treasure-stats span { color: #81735c; font-size: 9px; letter-spacing: .16em; }
.treasure-stats b { color: #c4a76f; font-family: Georgia, "FangSong", serif; font-size: 19px; font-weight: 500; }
.treasure-stats .is-total span { color: #b59b69; }
.treasure-stats .is-total b { color: #efcf85; font-size: 27px; text-shadow: 0 0 17px rgba(211, 146, 48, .26); }

.treasure-draw-hall {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 22px 0 26px;
  border: 1px solid rgba(185, 141, 70, .43);
  color: #cdb887;
  background:
    radial-gradient(circle at 50% 42%, rgba(150, 91, 28, .19), transparent 31%),
    linear-gradient(110deg, rgba(51, 31, 13, .92), rgba(8, 6, 4, .98) 31% 69%, rgba(51, 31, 13, .92));
  box-shadow: inset 0 0 0 5px rgba(5, 3, 2, .58), inset 0 0 70px #000, 0 22px 42px rgba(0, 0, 0, .48);
  clip-path: polygon(1.1% 0, 98.9% 0, 100% 4%, 99.4% 96%, 98.2% 100%, 1.8% 100%, .6% 96%, 0 4%);
  animation: archiveReveal 650ms ease 120ms both;
}

.treasure-draw-hall::before,
.treasure-draw-hall::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 340px;
  height: 340px;
  opacity: .14;
  border: 1px solid #b48743;
  border-radius: 50%;
  background: repeating-conic-gradient(from 8deg, transparent 0 14deg, rgba(215, 170, 84, .34) 15deg 16deg, transparent 17deg 29deg);
  animation: treasureOrbit 34s linear infinite;
}
.treasure-draw-hall::before { top: -210px; left: -110px; }
.treasure-draw-hall::after { right: -110px; bottom: -210px; animation-direction: reverse; }
.treasure-rate-help { position:absolute; z-index:8; top:15px; right:17px; display:grid; width:34px; height:34px; padding:0; place-items:center; border:1px solid #997039; border-radius:50%; color:#edca78; cursor:pointer; background:radial-gradient(circle,#3a2612,#0b0704 68%); box-shadow:inset 0 0 11px #000,0 0 14px rgba(209,145,50,.14); font-family:Georgia,serif; font-size:16px; transition:transform 180ms ease,border-color 180ms ease,box-shadow 180ms ease; }
.treasure-rate-help:hover { border-color:#efc76e; box-shadow:inset 0 0 11px #000,0 0 22px rgba(232,170,68,.3); transform:rotate(9deg) scale(1.06); }

.treasure-draw-aura { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.treasure-draw-aura i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #e3bb68; box-shadow: 0 0 9px #d58b2f; animation: treasureStarDrift 7s ease-in-out infinite alternate; }
.treasure-draw-aura i:nth-child(1) { top: 18%; left: 21%; }
.treasure-draw-aura i:nth-child(2) { top: 58%; right: 18%; animation-delay: -2.5s; }
.treasure-draw-aura i:nth-child(3) { right: 44%; bottom: 12%; animation-delay: -5s; }

.treasure-draw-header {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr minmax(250px, 330px);
  align-items: center;
  gap: 18px;
  padding: 26px 34px 18px;
  border-bottom: 1px solid rgba(170, 126, 60, .25);
}
.treasure-draw-header > span { display:grid; width:48px; height:48px; place-items:center; border:1px solid #793126; color:#b5523e; font-family:"STKaiti",serif; font-size:23px; transform:rotate(-4deg); }
.treasure-draw-header small { color:#776850; font-family:Georgia,serif; font-size:7px; letter-spacing:.25em; }
.treasure-draw-header h2 { margin:2px 0 2px; color:#ecd18f; font-family:"STKaiti","KaiTi",serif; font-size:29px; font-weight:600; letter-spacing:.17em; text-shadow:0 5px 18px #000; }
.treasure-draw-header p { margin:0; color:#8e8068; font-family:"FangSong",serif; font-size:11px; letter-spacing:.07em; }

.treasure-draw-recipient { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:12px; padding:10px 12px; border:1px solid rgba(174,130,65,.3); background:rgba(8,6,4,.62); box-shadow:inset 0 0 16px #000; }
.treasure-draw-recipient small { color:#8d7b5f; white-space:nowrap; }
.treasure-draw-recipient select,
.treasure-draw-recipient button { width:100%; min-width:0; border:0; outline:0; color:#e0c789; cursor:pointer; background:#100b06; font-family:"FangSong",serif; font-size:12px; }
.treasure-draw-recipient select { padding:8px 10px; border-left:1px solid rgba(168,122,55,.32); }
.treasure-draw-recipient button { padding:8px; border:1px solid #75542d; }

.treasure-draw-rates { display:flex; align-items:center; justify-content:center; gap:7px; padding:10px 22px; border-bottom:1px solid rgba(159,115,53,.18); background:rgba(0,0,0,.19); }
.treasure-draw-rates > span { display:flex; align-items:center; gap:7px; min-width:94px; padding:6px 9px; border:1px solid currentColor; background:rgba(9,7,5,.58); font-family:"FangSong",serif; }
.treasure-draw-rates b { font-size:10px; font-weight:500; letter-spacing:.1em; }
.treasure-draw-rates em { margin-left:auto; color:#8c7d64; font-family:Georgia,serif; font-size:9px; font-style:normal; }
.treasure-draw-rates > i { margin-left:8px; color:#706552; font-size:9px; font-style:normal; letter-spacing:.08em; }

.treasure-draw-stage { position:relative; display:grid; min-height:344px; padding:24px 34px; place-items:center; }
.treasure-draw-stage:has(.is-tenfold) { min-height:640px; }
.treasure-draw-grid { display:grid; width:100%; gap:18px; perspective:1200px; }
.treasure-draw-grid.is-single { width:min(250px,90%); grid-template-columns:1fr; }
.treasure-draw-grid.is-tenfold { grid-template-columns:repeat(5,minmax(0,1fr)); grid-template-rows:repeat(2,minmax(260px,1fr)); }

.treasure-draw-card { position:relative; min-width:0; min-height:285px; padding:0; border:0; color:inherit; cursor:pointer; background:transparent; perspective:1100px; animation:treasureCardDeal 660ms cubic-bezier(.16,.78,.18,1) var(--draw-delay) both; }
.treasure-draw-card-inner { position:absolute; inset:0; display:block; transform-style:preserve-3d; transition:transform 760ms cubic-bezier(.16,.78,.18,1); }
.treasure-draw-card.is-revealed .treasure-draw-card-inner { transform:rotateY(180deg); }
.treasure-card-back,
.treasure-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 5px #090604,inset 0 0 0 6px rgba(222,177,91,.21),inset 0 0 42px #000,0 14px 28px rgba(0,0,0,.5); clip-path:polygon(5% 0,95% 0,100% 5%,100% 95%,95% 100%,5% 100%,0 95%,0 5%); }
.treasure-card-back { background:radial-gradient(circle at 50% 40%,rgba(135,83,28,.3),transparent 30%),repeating-conic-gradient(from 22deg at 50% 42%,rgba(178,133,63,.07) 0 8deg,transparent 9deg 25deg),linear-gradient(145deg,#28170b,#080604 62%,#1a1008); }
.treasure-card-back::before { content:""; position:absolute; inset:12px; border:1px solid rgba(213,170,88,.2); pointer-events:none; }
.treasure-card-back > i { display:grid; width:74px; height:74px; margin-bottom:20px; place-items:center; border:1px solid currentColor; border-radius:50%; font-family:"STKaiti",serif; font-size:36px; font-style:normal; box-shadow:0 0 30px currentColor; transform:rotate(-5deg); }
.treasure-card-back small { color:#665c4c; font-family:Georgia,serif; font-size:6px; letter-spacing:.26em; }
.treasure-card-back strong { margin-top:9px; color:currentColor; font-family:"STKaiti",serif; font-size:18px; font-weight:500; letter-spacing:.13em; }
.treasure-card-back em { position:absolute; right:0; bottom:16px; left:0; color:#6e624e; font-family:"FangSong",serif; font-size:9px; font-style:normal; letter-spacing:.16em; }
.treasure-card-front { justify-content:flex-end; padding:14px; background:linear-gradient(155deg,#2b1c0e,#080604 48%); transform:rotateY(180deg); }
.treasure-card-front::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 42%,rgba(5,3,2,.94) 75%); pointer-events:none; }
.treasure-card-image { position:absolute; inset:7px 7px 76px; overflow:hidden; border:1px solid rgba(190,145,69,.24); }
.treasure-card-image img { width:100%; height:100%; object-fit:cover; filter:saturate(.9) brightness(.88) contrast(1.08); animation:treasureImageAwaken 1s ease both; }
.treasure-card-front small,.treasure-card-front strong,.treasure-card-front em { position:relative; z-index:2; display:block; width:100%; text-align:left; }
.treasure-card-front small { color:currentColor; font-size:8px; letter-spacing:.12em; }
.treasure-card-front strong { margin-top:4px; overflow:hidden; color:#ead39b; font-family:"STKaiti",serif; font-size:18px; font-weight:600; letter-spacing:.08em; text-overflow:ellipsis; white-space:nowrap; }
.treasure-card-front em { margin-top:2px; color:#796d59; font-family:"FangSong",serif; font-size:9px; font-style:normal; }
.treasure-draw-card.quality-传说 .treasure-card-back,
.treasure-draw-card.quality-传说 .treasure-card-front { box-shadow:inset 0 0 0 5px #090604,inset 0 0 0 6px rgba(238,182,73,.38),inset 0 0 48px rgba(158,95,20,.35),0 0 28px rgba(226,156,47,.28); }
.treasure-draw-card.quality-仙品 .treasure-card-back,
.treasure-draw-card.quality-仙品 .treasure-card-front { box-shadow:inset 0 0 0 5px #090604,inset 0 0 0 6px rgba(243,225,161,.48),inset 0 0 55px rgba(205,170,82,.42),0 0 38px rgba(249,220,132,.42); }
.treasure-draw-card.quality-仙品::after { content:""; position:absolute; inset:-7%; z-index:3; border-radius:16px; background:radial-gradient(circle at 50% 36%,rgba(249,220,132,.24),transparent 62%); pointer-events:none; animation:immortalCardPulse 1.8s ease-in-out infinite alternate; }
.treasure-draw-card:hover:not(.is-revealed) .treasure-draw-card-inner { transform:translateY(-8px) rotateX(2deg); }
.treasure-draw-card:focus-visible { outline:2px solid #edc871; outline-offset:5px; }

.treasure-draw-empty { text-align:center; }
.treasure-draw-empty > span { display:grid; width:82px; height:82px; margin:0 auto 13px; place-items:center; border:1px solid #76552e; border-radius:50%; color:#b9904d; font-family:"STKaiti",serif; font-size:36px; box-shadow:inset 0 0 26px #000,0 0 25px rgba(173,111,31,.16); }
.treasure-draw-empty small { color:#5d5548; font-family:Georgia,serif; font-size:7px; letter-spacing:.3em; }
.treasure-draw-empty h3 { margin:5px 0 4px; color:#c6af7d; font-family:"STKaiti",serif; font-size:22px; font-weight:500; letter-spacing:.15em; }
.treasure-draw-empty p { margin:0; color:#726753; font-family:"FangSong",serif; font-size:10px; letter-spacing:.08em; }

.treasure-draw-summoning { position:relative; display:grid; width:330px; height:330px; padding:0; place-items:center; border:0; border-radius:50%; outline:0; color:#d4ad61; cursor:pointer; background:radial-gradient(circle,rgba(111,66,20,.15),transparent 64%); box-shadow:0 0 20px rgba(195,127,30,.16); }
.treasure-draw-summoning::before { content:""; position:absolute; inset:-25px; opacity:.42; border-radius:50%; background:repeating-conic-gradient(from 0deg,transparent 0 11deg,rgba(221,176,89,.16) 12deg,transparent 13deg 29deg); animation:summonRayTurn 12s linear infinite; mask-image:radial-gradient(circle,transparent 0 32%,#000 34% 62%,transparent 74%); }
.treasure-draw-summoning::after { content:""; position:absolute; inset:72px; border:1px solid rgba(233,193,109,.22); border-radius:50%; box-shadow:0 0 36px rgba(221,153,48,.2),inset 0 0 28px rgba(222,151,43,.13); animation:summonHalo 1.2s ease-in-out infinite alternate; }
.treasure-draw-summoning > span:first-child { position:relative; z-index:4; display:grid; width:92px; height:92px; place-items:center; border:1px solid #e0b75e; border-radius:50%; color:#f0cf83; background:radial-gradient(circle,#34210f,#090604 67%); font-family:"STKaiti",serif; font-size:44px; box-shadow:inset 0 0 25px #000,0 0 28px rgba(213,142,39,.32); animation:summonCore 1s ease-in-out infinite alternate; }
.treasure-draw-summoning > i { position:absolute; border:1px solid rgba(207,158,75,.43); border-radius:50%; animation:treasureOrbit 4s linear infinite; }
.treasure-draw-summoning > i:nth-of-type(1) { inset:30px; border-style:solid dashed; }
.treasure-draw-summoning > i:nth-of-type(2) { inset:58px; border-style:dashed; animation-duration:2.8s; animation-direction:reverse; }
.treasure-draw-summoning > i:nth-of-type(3) { inset:9px; opacity:.34; border-style:double; animation-duration:7s; }
.summon-trigrams { position:absolute; z-index:3; inset:0; border-radius:50%; animation:treasureOrbit 18s linear infinite reverse; }
.summon-trigrams em { --angle:calc(var(--trigram-index) * 45deg); position:absolute; top:50%; left:50%; display:grid; width:28px; height:28px; margin:-14px; place-items:center; color:rgba(217,176,91,.72); font-family:"STKaiti",serif; font-size:12px; font-style:normal; transform:rotate(var(--angle)) translateY(-129px) rotate(calc(var(--angle) * -1)); text-shadow:0 0 8px rgba(230,173,72,.42); }
.treasure-draw-summoning > b { position:absolute; bottom:-3px; color:#b49b6e; font-family:"FangSong",serif; font-size:12px; font-weight:400; letter-spacing:.14em; }
.treasure-draw-summoning > small { position:absolute; bottom:-24px; color:#615746; font-family:Georgia,serif; font-size:6px; letter-spacing:.32em; }
.treasure-draw-summoning:active { transform:scale(.985); }
.treasure-draw-summoning:focus-visible { outline:2px solid #e2bb69; outline-offset:12px; border-radius:50%; }

.treasure-draw-actions { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:17px 34px 25px; border-top:1px solid rgba(164,119,54,.2); background:linear-gradient(90deg,rgba(46,28,12,.42),rgba(3,3,2,.5),rgba(46,28,12,.42)); }
.treasure-draw-actions > div,.treasure-draw-actions > aside { display:flex; gap:10px; }
.treasure-draw-actions button { min-width:176px; padding:9px 20px 10px; border:1px solid #76562f; color:#bca673; cursor:pointer; background:linear-gradient(180deg,rgba(68,44,20,.76),rgba(17,11,6,.92)); font-family:"FangSong",serif; transition:transform 180ms ease,border-color 180ms ease,color 180ms ease,box-shadow 180ms ease; }
.treasure-draw-actions button small,.treasure-draw-actions button b { display:block; }
.treasure-draw-actions button small { color:#6f6452; font-size:7px; letter-spacing:.12em; }
.treasure-draw-actions button b { margin-top:3px; font-family:"STKaiti",serif; font-size:15px; font-weight:500; letter-spacing:.15em; }
.treasure-draw-actions button.is-tenfold { min-width:230px; border-color:#b07e39; color:#f0d38c; background:linear-gradient(180deg,#765022,#2a180a 47%,#0e0905); box-shadow:inset 0 0 19px rgba(224,170,76,.16),0 0 18px rgba(163,101,25,.11); }
.treasure-draw-actions button:hover:not(:disabled) { border-color:#d2a14f; color:#f3d797; box-shadow:0 8px 21px rgba(0,0,0,.42),0 0 15px rgba(199,131,34,.15); transform:translateY(-2px); }
.treasure-draw-actions button:disabled { opacity:.38; cursor:not-allowed; }
.treasure-draw-actions .treasure-claim-button { border-color:#c39242; color:#f0d18a; }

.treasure-draw-receipt { display:flex; align-items:center; gap:15px; margin:0 34px 25px; padding:13px 17px; border:1px solid rgba(199,149,68,.45); color:#dfc382; background:linear-gradient(90deg,rgba(111,65,20,.46),rgba(15,9,5,.8)); box-shadow:inset 0 0 22px #000; animation:receiptUnroll 520ms cubic-bezier(.16,.78,.18,1) both; }
.treasure-draw-receipt > span { display:grid; width:38px; height:38px; place-items:center; border:1px solid #8b3a2b; color:#bf5e48; font-family:"STKaiti",serif; font-size:20px; transform:rotate(-4deg); }
.treasure-draw-receipt small { color:#786b56; font-family:Georgia,serif; font-size:7px; letter-spacing:.22em; }
.treasure-draw-receipt b { display:block; margin-top:3px; font-family:"STKaiti",serif; font-size:15px; font-weight:500; letter-spacing:.1em; }
.treasure-draw-receipt p { margin:3px 0 0; color:#887960; font-family:"FangSong",serif; font-size:10px; }

/* 独立功能页：天工开珍 */
.treasure-draw-page { overflow-x:hidden; padding-bottom:54px; }
.treasure-draw-backdrop {
  opacity:.42;
  background:
    radial-gradient(circle at 50% 30%,transparent 0 17%,rgba(4,3,2,.5) 45%,#050302 82%),
    linear-gradient(180deg,rgba(5,3,2,.18),rgba(5,3,2,.86)),
    url("/assets/generated/entry-treasures.png") center / cover no-repeat;
  filter:saturate(.82) sepia(.1) contrast(1.18) brightness(.84);
}
.treasure-draw-page-header { min-height:140px; }
.draw-archive-link { position:relative; justify-self:end; display:grid; grid-template-columns:42px 1fr 18px; align-items:center; gap:11px; min-width:245px; padding:11px 14px; border:1px solid rgba(183,139,67,.36); color:#b7a176; cursor:pointer; background:linear-gradient(100deg,rgba(75,47,20,.67),rgba(8,6,4,.9)); box-shadow:inset 0 0 18px #000; clip-path:polygon(7% 0,100% 0,95% 50%,100% 100%,7% 100%,0 50%); }
.draw-archive-link > span { display:grid; width:38px; height:38px; place-items:center; border:1px solid #793126; color:#bd5b43; font-family:"STKaiti",serif; font-size:20px; transform:rotate(-4deg); }
.draw-archive-link small,.draw-archive-link b { display:block; text-align:left; }
.draw-archive-link small { color:#756957; font-size:7px; letter-spacing:.16em; }
.draw-archive-link b { margin-top:3px; color:#d8bf85; font-family:"FangSong",serif; font-size:12px; font-weight:500; letter-spacing:.1em; }
.draw-archive-link i { color:#bd8a41; font-size:21px; font-style:normal; transition:transform 180ms ease; }
.draw-archive-link:hover { border-color:#ca9650; filter:brightness(1.12); }
.draw-archive-link:hover i { transform:translateX(3px); }
.treasure-draw-page-main { position:relative; z-index:4; width:min(1540px,calc(100% - 7vw)); margin:28px auto 0; }
.treasure-draw-prologue { position:relative; display:grid; grid-template-columns:54px 1fr auto; align-items:center; gap:17px; min-height:88px; padding:15px 27px; border:1px solid rgba(183,139,67,.32); color:#a89776; background:linear-gradient(90deg,rgba(73,45,18,.77),rgba(7,5,3,.91) 20% 80%,rgba(73,45,18,.77)); box-shadow:inset 0 0 24px #000,0 14px 34px rgba(0,0,0,.45); clip-path:polygon(1% 0,99% 0,100% 50%,99% 100%,1% 100%,0 50%); animation:archiveReveal 650ms ease both; }
.treasure-draw-prologue > span { display:grid; width:43px; height:43px; place-items:center; border:1px solid #7c3024; color:#b6503d; font-family:"STKaiti",serif;font-size:22px;transform:rotate(-4deg); }
.treasure-draw-prologue small { color:#725f46; font-family:Georgia,serif;font-size:7px;letter-spacing:.28em; }
.treasure-draw-prologue h2 { margin:2px 0;color:#d9bd7c;font-family:"STKaiti",serif;font-size:22px;font-weight:500;letter-spacing:.14em; }
.treasure-draw-prologue p { margin:0;color:#83755f;font-family:"FangSong",serif;font-size:10px;letter-spacing:.06em; }
.treasure-draw-prologue > b { color:#ac8e5a;font-family:"FangSong",serif;font-size:11px;font-weight:400;letter-spacing:.2em; }
.treasure-draw-page .treasure-draw-hall { min-height:690px; margin:18px 0 0; }
.treasure-workshop-modes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:16px 0 0; }
.treasure-workshop-modes button { display:grid; grid-template-columns:46px minmax(0,1fr) auto; align-items:center; gap:12px; min-height:76px; padding:11px 15px; border:1px solid rgba(166,124,57,.42); color:#b9a279; cursor:pointer; background:linear-gradient(135deg,rgba(58,35,15,.78),rgba(10,7,4,.94)); text-align:left; font-family:"FangSong",serif; }
.treasure-workshop-modes button > span { display:grid; width:40px; height:40px; place-items:center; border:1px solid #74382c; color:#cb6d52; background:#29120d; font-family:"STKaiti",serif; font-size:20px; transform:rotate(-3deg); }
.treasure-workshop-modes button b,.treasure-workshop-modes button small { display:block; }
.treasure-workshop-modes button b { color:#e4c886; font-family:"STKaiti",serif; font-size:18px; font-weight:500; letter-spacing:.08em; }
.treasure-workshop-modes button small { margin-top:4px; color:#86775f; font-size:10px; letter-spacing:0; }
.treasure-workshop-modes button > i { color:#766344; font-size:10px; font-style:normal; }
.treasure-workshop-modes button:is(:hover,.is-active) { border-color:#d2a14f; color:#f0d391; background:radial-gradient(circle at 15% 30%,rgba(175,92,49,.2),transparent 35%),linear-gradient(135deg,#533519,#120c07); box-shadow:inset 0 -2px #b47b34,0 8px 24px rgba(0,0,0,.3); }
.treasure-workshop-modes button.is-active > i { color:#e0b968; }
.treasure-market-page { margin-top:18px; }
.treasure-market-settlement { display:grid; grid-template-columns:minmax(320px,1.4fr) minmax(330px,1fr) minmax(180px,.6fr); align-items:stretch; gap:10px; padding:14px 16px; border:1px solid rgba(181,133,61,.38); background:linear-gradient(105deg,rgba(62,37,15,.88),rgba(11,7,4,.95)); box-shadow:inset 0 0 28px rgba(0,0,0,.62); }
.treasure-market-recipient { display:grid; gap:7px; min-width:0; }
.treasure-market-recipient > label { display:grid; grid-template-columns:86px minmax(0,1fr); align-items:center; gap:9px; color:#d1b36f; font:13px/1.4 "FangSong",serif; }
.treasure-market-recipient .recipient-player-search { width:100%; }
.treasure-market-settlement select { width:100%; min-width:0; height:42px; padding:0 10px; border:1px solid #725a34; color:#f1d99f; background:#100b07; font:inherit; }
.treasure-market-settlement fieldset { display:flex; align-items:center; gap:8px; min-width:0; margin:0; padding:6px 10px 8px; border:1px solid rgba(181,133,61,.3); }
.treasure-market-settlement legend { padding:0 6px; color:#8e7951; font:10px/1 "FangSong",serif; }
.treasure-market-settlement fieldset label { display:flex; flex:1; align-items:center; gap:6px; min-height:30px; padding:0 8px; color:#d8bf85; background:rgba(28,18,10,.68); font:11px/1.3 "FangSong",serif; }
.treasure-market-settlement fieldset:disabled { opacity:.45; }
.treasure-market-settlement > .treasure-market-current { display:grid; align-content:center; gap:3px; padding:5px 12px; border-left:1px solid rgba(181,133,61,.25); }
.treasure-market-current small,.treasure-market-current span { color:#827159; font:9px/1.3 "FangSong",serif; }
.treasure-market-current b { color:#ebcd87; font:16px/1.4 "STKaiti",serif; font-weight:500; }
.treasure-market-page > .treasure-supply-message { border-right:1px solid rgba(181,133,61,.38); border-left:1px solid rgba(181,133,61,.38); }
.treasure-market-page .directed-pack-market { margin-top:0; }
.treasure-supply-market { margin:18px 0 0; }
.treasure-supply-market > header { padding:20px 24px; }
.treasure-supply-market > header h4 { font-size:26px; }
.treasure-supply-market .market-wallet-actions b { display:block; color:#f0ce82; font:400 24px/1 Georgia,serif; text-align:right; }
.treasure-supply-market .market-wallet-actions i { display:block; margin-top:5px; color:#8f7c59; font:normal 10px/1 "FangSong",serif; }
.treasure-supply-recipient { padding:12px 16px; border-bottom:1px solid rgba(181,133,61,.22); background:rgba(41,25,11,.48); }
.treasure-supply-recipient label { display:grid; grid-template-columns:90px minmax(0,520px); align-items:center; gap:10px; color:#c6a965; font:14px/1.4 "FangSong",serif; }
.treasure-supply-recipient select { height:38px; padding:0 10px; border:1px solid #725a34; color:#f1d99f; background:#100b07; font:inherit; }
.treasure-supply-market .inventory-market-grid { grid-template-columns:repeat(3,minmax(0,1fr)); max-height:none; }
.treasure-supply-message { margin:0; padding:10px 16px; border-bottom:1px solid rgba(181,133,61,.22); color:#d7bd7f; background:#24180d; font:13px/1.5 "FangSong",serif; }
.treasure-supply-message.is-error { color:#ffb0a0; background:#351510; }
@media(max-width:1000px) {
  .treasure-workshop-modes { grid-template-columns:1fr; }
  .treasure-market-settlement { grid-template-columns:1fr 1fr; }
  .treasure-market-settlement > .treasure-market-current { grid-column:1/-1; border-top:1px solid rgba(181,133,61,.25); border-left:0; }
  .treasure-supply-market .inventory-market-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.treasure-draw-page .treasure-draw-stage { min-height:410px; }
.treasure-draw-page .treasure-draw-stage:has(.is-tenfold) { min-height:650px; }
.treasure-draw-page .treasure-draw-header { grid-template-columns:56px 1fr minmax(230px,300px); }
.treasure-draw-oath { display:grid; gap:3px; padding:11px 14px; border:1px solid rgba(176,132,64,.3); background:rgba(7,5,3,.66); box-shadow:inset 0 0 16px #000; text-align:right; }
.treasure-draw-oath small { color:#6f624f; }
.treasure-draw-oath b { color:#d6ba7f;font-family:"STKaiti",serif;font-size:14px;font-weight:500;letter-spacing:.1em; }
.treasure-draw-oath em { color:#846f4e;font-family:"FangSong",serif;font-size:9px;font-style:normal;letter-spacing:.12em; }
.treasure-award-desk { align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.treasure-recipient-tools { display:flex; align-items:stretch; gap:8px; }
.treasure-award-desk .treasure-draw-recipient { min-width:245px; padding:6px 10px; }
.treasure-award-desk .treasure-draw-recipient select { min-width:140px; }
.level-sort-toggle { min-width:104px!important; padding-right:10px!important; padding-left:10px!important; border-color:rgba(174,129,60,.42)!important; color:#c5ad77!important; font-family:"FangSong",serif!important; font-size:10px!important; white-space:nowrap; }
.treasure-draw-card.is-revealed::before { content:""; position:absolute; z-index:-1; inset:-16px; opacity:0; border-radius:50%; pointer-events:none; background:radial-gradient(circle,rgba(218,171,82,.45),transparent 65%); animation:relicRevealFlare 1.15s ease-out both; }
.treasure-draw-card.is-revealed.quality-传说::before { background:radial-gradient(circle,rgba(255,177,49,.78),rgba(187,93,18,.18) 42%,transparent 70%); }
.treasure-draw-card.is-revealed.quality-仙品::before { inset:-28px; background:radial-gradient(circle,rgba(255,244,189,.95),rgba(240,194,94,.28) 43%,transparent 71%); }

.treasure-claim-backdrop,.treasure-success-backdrop { position:fixed; z-index:420; inset:0; display:grid; padding:28px; place-items:center; background:radial-gradient(circle at 50% 45%,rgba(82,48,18,.22),rgba(0,0,0,.91) 63%); backdrop-filter:blur(8px); animation:modalVeil 260ms ease both; }
.treasure-claim-dialog { width:min(920px,94vw); max-height:88vh; overflow:auto; padding:25px; border:1px solid #87602f; color:#bba477; background:linear-gradient(140deg,#2d1b0d,#090604 38% 75%,#25150a); box-shadow:inset 0 0 0 5px #060403,inset 0 0 56px #000,0 30px 90px #000; clip-path:polygon(2% 0,98% 0,100% 5%,100% 95%,98% 100%,2% 100%,0 95%,0 5%); animation:dossierOpen 420ms cubic-bezier(.16,.78,.18,1) both; }
.treasure-claim-dialog > header { display:flex; align-items:center; gap:14px; padding-bottom:16px; border-bottom:1px solid rgba(174,129,61,.28); }
.treasure-claim-dialog > header > span { display:grid;width:43px;height:43px;place-items:center;border:1px solid #813327;color:#c25d47;font-family:"STKaiti",serif;font-size:22px;transform:rotate(-4deg); }
.treasure-claim-dialog header small { color:#75654d;font-family:Georgia,serif;font-size:7px;letter-spacing:.25em; }
.treasure-claim-dialog h3 { margin:3px 0 0;color:#e2c787;font-family:"STKaiti",serif;font-size:25px;font-weight:500;letter-spacing:.14em; }
.treasure-claim-target { display:flex; align-items:baseline; gap:12px; margin:15px 0; padding:12px 15px; border:1px solid rgba(169,123,55,.27); background:rgba(4,3,2,.52); }
.treasure-claim-target small { color:#776b59;font-size:9px;letter-spacing:.13em; }
.treasure-claim-target strong { color:#e3c77f;font-family:"STKaiti",serif;font-size:21px;font-weight:500;letter-spacing:.12em; }
.treasure-claim-target em { color:#897552;font-family:Georgia,serif;font-size:10px;font-style:normal; }
.treasure-claim-preview { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:9px; }
.treasure-claim-preview figure { min-width:0; margin:0; padding:7px; border:1px solid currentColor; background:#080604; box-shadow:inset 0 0 17px #000; }
.treasure-claim-preview img { width:100%; height:104px; object-fit:cover; filter:saturate(.85) brightness(.82); }
.treasure-claim-preview figcaption small,.treasure-claim-preview figcaption b { display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.treasure-claim-preview figcaption small { margin-top:5px;font-size:7px;letter-spacing:.1em; }
.treasure-claim-preview figcaption b { margin-top:2px;color:#d7bd83;font-family:"STKaiti",serif;font-size:12px;font-weight:500; }
.treasure-claim-dialog > p { margin:14px 0 0;color:#86785f;font-family:"FangSong",serif;font-size:10px;letter-spacing:.1em; }
.treasure-claim-dialog > footer,.treasure-success-dialog > footer { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; padding-top:16px; border-top:1px solid rgba(171,125,56,.25); }
.treasure-claim-dialog button,.treasure-success-dialog button { min-width:145px;padding:10px 17px;border:1px solid #76542c;color:#af996c;cursor:pointer;background:linear-gradient(180deg,#352312,#0b0704);font-family:"STKaiti",serif;font-size:13px;letter-spacing:.1em; }
.treasure-claim-dialog button.is-confirm,.treasure-success-dialog button.is-view { border-color:#c08d42;color:#2d1b09;background:linear-gradient(180deg,#f0d78e,#b47d2e 56%,#6e4316);box-shadow:inset 0 1px #fff2bd,0 0 20px rgba(204,135,35,.18); }
.treasure-claim-dialog button:hover,.treasure-success-dialog button:hover { filter:brightness(1.15); }

.treasure-success-dialog { position:relative; isolation:isolate; width:min(590px,92vw); overflow:hidden; padding:42px 38px 30px; border:1px solid #c09043;color:#cdb277;background:radial-gradient(circle at 50% 32%,rgba(154,93,28,.36),transparent 35%),linear-gradient(145deg,#2b180a,#070503 62%,#241307);box-shadow:inset 0 0 0 5px #050302,inset 0 0 80px #000,0 0 80px rgba(213,149,51,.22),0 35px 100px #000;text-align:center;clip-path:polygon(4% 0,96% 0,100% 7%,100% 93%,96% 100%,4% 100%,0 93%,0 7%);animation:treasureSuccessRise 600ms cubic-bezier(.16,.82,.18,1) both; }
.treasure-success-rings { position:absolute;z-index:-1;inset:0;pointer-events:none; }
.treasure-success-rings i { position:absolute;top:50%;left:50%;width:330px;height:330px;border:1px solid rgba(231,185,96,.28);border-radius:50%;transform:translate(-50%,-50%);animation:treasureOrbit 16s linear infinite; }
.treasure-success-rings i:nth-child(2){width:250px;height:250px;border-style:dashed;animation-duration:10s;animation-direction:reverse;}
.treasure-success-rings i:nth-child(3){width:430px;height:430px;opacity:.35;animation-duration:28s;}
.treasure-success-seal { display:grid;width:76px;height:76px;margin:0 auto 15px;place-items:center;border:1px solid #b04d35;border-radius:50%;color:#e47d5e;background:rgba(52,17,9,.74);font-family:"STKaiti",serif;font-size:37px;box-shadow:0 0 35px rgba(231,140,59,.28);animation:successSealStrike 700ms 160ms cubic-bezier(.16,.82,.18,1) both; }
.treasure-success-dialog > small { color:#8b7553;font-family:Georgia,serif;font-size:7px;letter-spacing:.35em; }
.treasure-success-dialog h3 { margin:5px 0;color:#f0d590;font-family:"STKaiti",serif;font-size:38px;font-weight:600;letter-spacing:.22em;text-shadow:0 5px 24px #000,0 0 17px rgba(229,172,74,.32); }
.treasure-success-dialog > p { margin:7px 0 15px;color:#9d8b69;font-family:"FangSong",serif;font-size:13px;letter-spacing:.08em; }
.treasure-success-dialog > p b { color:#f0c96d;font-family:Georgia,serif;font-size:22px; }
.treasure-success-dialog > div:not(.treasure-success-rings) { display:flex;flex-wrap:wrap;justify-content:center;gap:7px; }
.treasure-success-dialog > div:not(.treasure-success-rings) span { padding:6px 10px;border:1px solid currentColor;background:rgba(4,3,2,.62);font-family:"FangSong",serif;font-size:10px; }
.treasure-success-dialog > footer { justify-content:center; }

.treasure-rate-backdrop { position:fixed; z-index:430; inset:0; display:grid; padding:28px; place-items:center; background:rgba(0,0,0,.89); backdrop-filter:blur(8px); animation:modalVeil 240ms ease both; }
.treasure-rate-dialog { position:relative; width:min(720px,92vw); padding:28px; border:1px solid #93682f; color:#b9a273; background:radial-gradient(circle at 50% 0,rgba(142,83,25,.25),transparent 34%),linear-gradient(145deg,#2b190b,#080604 48% 78%,#221207); box-shadow:inset 0 0 0 5px #050302,inset 0 0 65px #000,0 30px 90px #000; clip-path:polygon(2% 0,98% 0,100% 7%,100% 93%,98% 100%,2% 100%,0 93%,0 7%); animation:dossierOpen 420ms cubic-bezier(.16,.78,.18,1) both; }
.treasure-rate-close { position:absolute;top:14px;right:15px;display:grid;width:35px;height:35px;padding:0;place-items:center;border:1px solid #76542d;color:#d0ad68;cursor:pointer;background:#120b06;font-size:20px; }
.treasure-rate-dialog > header { display:grid;grid-template-columns:48px 1fr;align-items:center;gap:14px;padding:0 42px 17px 0;border-bottom:1px solid rgba(175,129,59,.27); }
.treasure-rate-dialog > header > span { display:grid;width:43px;height:43px;place-items:center;border:1px solid #803126;color:#bd5742;font-family:"STKaiti",serif;font-size:22px;transform:rotate(-4deg); }
.treasure-rate-dialog header small { color:#73634d;font-family:Georgia,serif;font-size:7px;letter-spacing:.26em; }
.treasure-rate-dialog h3 { margin:3px 0 1px;color:#e4c984;font-family:"STKaiti",serif;font-size:25px;font-weight:500;letter-spacing:.14em; }
.treasure-rate-dialog header p { margin:0;color:#84765e;font-family:"FangSong",serif;font-size:10px;letter-spacing:.04em; }
.treasure-rate-grid { display:grid;gap:7px;margin-top:17px; }
.treasure-rate-grid article { display:grid;grid-template-columns:70px 1fr 86px;align-items:center;gap:13px;padding:10px 13px;border:1px solid rgba(157,116,55,.2);background:rgba(3,3,2,.5); }
.treasure-rate-grid article > span { font-family:"STKaiti",serif;font-size:14px;letter-spacing:.1em; }
.treasure-rate-grid article > i { height:4px;overflow:hidden;background:#25180c; }
.treasure-rate-grid article > i em { display:block;height:100%;background:currentColor;box-shadow:0 0 8px currentColor; }
.treasure-rate-grid article > b { color:#d4bc84;font-family:Georgia,"FangSong",serif;font-size:12px;font-weight:500;text-align:right; }
.treasure-rate-dialog > footer { display:flex;justify-content:space-between;margin-top:16px;padding-top:14px;border-top:1px solid rgba(174,128,58,.24);color:#81725a;font-family:"FangSong",serif;font-size:10px;letter-spacing:.1em; }
.treasure-rate-dialog > footer b { color:#c9a961;font-weight:500; }

@keyframes relicRevealFlare { 0%{opacity:0;transform:scale(.45) rotate(-10deg)} 35%{opacity:1} 100%{opacity:0;transform:scale(1.25) rotate(8deg)} }
@keyframes treasureSuccessRise { from{opacity:0;transform:translateY(35px) scale(.86);filter:blur(7px)} to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)} }
@keyframes successSealStrike { from{opacity:0;transform:scale(2.2) rotate(-22deg)} to{opacity:1;transform:scale(1) rotate(-4deg)} }

@keyframes treasureOrbit { to { transform:rotate(360deg); } }
@keyframes treasureStarDrift { from { opacity:.22; transform:translateY(12px) scale(.7); } to { opacity:1; transform:translateY(-18px) scale(1.25); } }
@keyframes treasureCardDeal { from { opacity:0; transform:translateY(-55px) rotateY(22deg) scale(.82); filter:blur(5px) brightness(.35); } to { opacity:1; transform:translateY(0) rotateY(0) scale(1); filter:blur(0) brightness(1); } }
@keyframes treasureImageAwaken { from { transform:scale(1.13); filter:saturate(.2) brightness(.3) blur(3px); } to { transform:scale(1); filter:saturate(.9) brightness(.88) blur(0); } }
@keyframes immortalCardPulse { from { opacity:.3; } to { opacity:1; } }
@keyframes summonCore { from { transform:scale(.92); } to { transform:scale(1.05); } }
@keyframes summonRayTurn { to { transform:rotate(360deg); } }
@keyframes summonHalo { from { opacity:.34;transform:scale(.9); } to { opacity:1;transform:scale(1.12); } }
@keyframes receiptUnroll { from { opacity:0; transform:scaleX(.65); } to { opacity:1; transform:scaleX(1); } }

/* 天工开珍：铜浑天仪视觉重铸。仅改变呈现，不改变抽取与发放流程。 */
.treasure-draw-page .treasure-draw-hall {
  border-color:rgba(218,174,91,.58);
  background:
    linear-gradient(90deg,transparent 49.9%,rgba(213,163,74,.05) 50%,transparent 50.1%),
    radial-gradient(ellipse at 50% 48%,rgba(116,72,25,.2),transparent 34%),
    repeating-linear-gradient(90deg,rgba(206,158,75,.025) 0 1px,transparent 1px 74px),
    linear-gradient(110deg,#2b1a0c 0,#080604 23%,#050403 50%,#080604 77%,#2b1a0c 100%);
  box-shadow:inset 0 0 0 1px rgba(240,202,123,.09),inset 0 0 0 6px #050302,inset 0 0 95px #000,0 30px 68px rgba(0,0,0,.62);
}
.treasure-draw-page .treasure-draw-hall::before,
.treasure-draw-page .treasure-draw-hall::after { width:440px;height:440px;opacity:.17;border-color:#c59549; }

.treasure-vault-inscription { position:absolute;z-index:-1;top:122px;right:17px;bottom:88px;left:17px;display:flex;align-items:center;justify-content:space-between;overflow:hidden;pointer-events:none; }
.treasure-vault-inscription span { color:rgba(218,174,92,.055);font-family:"STKaiti",serif;font-size:72px;line-height:1;writing-mode:vertical-rl;text-shadow:0 0 22px rgba(189,127,38,.08); }

.treasure-draw-page .treasure-draw-header { min-height:102px;padding:24px 38px 20px;border-bottom-color:rgba(203,154,73,.31);background:linear-gradient(90deg,rgba(78,47,18,.28),rgba(4,3,2,.7) 28% 72%,rgba(78,47,18,.28)); }
.treasure-draw-page .treasure-draw-header::after { content:"";position:absolute;right:38px;bottom:-2px;left:38px;height:3px;background:linear-gradient(90deg,transparent,#7b572d 15%,#dbad5d 50%,#7b572d 85%,transparent);box-shadow:0 0 13px rgba(220,164,74,.24); }
.treasure-draw-page .treasure-draw-header > span { position:relative;width:52px;height:52px;border-color:#a74c37;color:#d67456;background:rgba(50,15,8,.34);box-shadow:inset 0 0 18px #000,0 0 17px rgba(169,69,43,.13); }
.treasure-draw-page .treasure-draw-header > span::after { content:"";position:absolute;inset:4px;border:1px solid rgba(180,73,50,.34); }
.treasure-draw-page .treasure-draw-header h2 { font-size:31px;letter-spacing:.22em; }
.treasure-draw-oath { position:relative;border-color:rgba(200,153,77,.36);background:linear-gradient(110deg,rgba(5,4,3,.78),rgba(45,28,13,.68)); }
.treasure-draw-oath::before { content:"令";position:absolute;top:50%;left:11px;color:rgba(181,67,45,.38);font-family:"STKaiti",serif;font-size:31px;transform:translateY(-50%) rotate(-7deg); }

.treasure-draw-page .treasure-draw-stage { min-height:448px;margin:18px 22px 0;padding:38px 46px 44px;border:1px solid rgba(171,125,57,.23);background:radial-gradient(ellipse at 50% 50%,rgba(121,76,28,.12),transparent 48%),rgba(0,0,0,.15);box-shadow:inset 0 0 45px rgba(0,0,0,.62); }
.treasure-draw-stage::before { content:"";position:absolute;inset:13px;border:1px solid rgba(185,139,66,.09);pointer-events:none; }
.treasure-draw-stage::after { content:"";position:absolute;right:0;bottom:0;left:0;height:34%;opacity:.23;pointer-events:none;background:repeating-linear-gradient(90deg,transparent 0 52px,rgba(200,153,78,.15) 53px 54px),repeating-linear-gradient(0deg,transparent 0 27px,rgba(200,153,78,.1) 28px 29px);clip-path:polygon(7% 100%,93% 100%,72% 0,28% 0);mask-image:linear-gradient(transparent,#000); }
.treasure-draw-stage.is-drawing { background:radial-gradient(circle at 50% 49%,rgba(184,113,29,.19),transparent 38%),rgba(0,0,0,.22); }
.treasure-draw-stage.is-prepared { background:radial-gradient(circle at 50% 49%,rgba(128,82,31,.12),transparent 38%),rgba(0,0,0,.2); }
.treasure-draw-stage.is-submitting { cursor:wait; }
.treasure-stage-corners { position:absolute;z-index:6;inset:6px;pointer-events:none; }
.treasure-stage-corners i { position:absolute;width:38px;height:38px;border-color:#b48745;border-style:solid;opacity:.54;filter:drop-shadow(0 0 5px rgba(204,145,56,.23)); }
.treasure-stage-corners i:nth-child(1){top:0;left:0;border-width:1px 0 0 1px;}
.treasure-stage-corners i:nth-child(2){top:0;right:0;border-width:1px 1px 0 0;}
.treasure-stage-corners i:nth-child(3){right:0;bottom:0;border-width:0 1px 1px 0;}
.treasure-stage-corners i:nth-child(4){bottom:0;left:0;border-width:0 0 1px 1px;}
.treasure-stage-horizon { position:absolute;z-index:0;right:17%;bottom:28px;left:17%;height:86px;opacity:.32;pointer-events:none;perspective:450px; }
.treasure-stage-horizon i { position:absolute;inset:0;border:1px solid rgba(211,162,77,.42);border-radius:50%;transform:rotateX(72deg); }
.treasure-stage-horizon i:nth-child(2){inset:17px 11%;opacity:.62;}
.treasure-stage-horizon i:nth-child(3){inset:31px 23%;opacity:.4;}

.treasure-draw-aura i { z-index:2; }
.treasure-draw-aura i:nth-child(4){top:28%;left:7%;animation-delay:-1s}.treasure-draw-aura i:nth-child(5){top:42%;right:7%;animation-delay:-3.7s}.treasure-draw-aura i:nth-child(6){bottom:24%;left:14%;animation-delay:-5.6s}.treasure-draw-aura i:nth-child(7){top:13%;left:47%;animation-delay:-4.4s}.treasure-draw-aura i:nth-child(8){right:29%;bottom:8%;animation-delay:-6.2s}.treasure-draw-aura i:nth-child(9){top:66%;left:38%;animation-delay:-2.2s}.treasure-draw-aura i:nth-child(10){top:31%;right:35%;animation-delay:-.4s}.treasure-draw-aura i:nth-child(11){bottom:35%;left:4%;animation-delay:-4.9s}.treasure-draw-aura i:nth-child(12){top:9%;right:12%;animation-delay:-2.9s}

.treasure-draw-summoning { z-index:2;width:390px;height:390px;background:radial-gradient(circle,rgba(142,88,28,.2),transparent 61%);box-shadow:0 0 28px rgba(203,133,35,.22);perspective:760px; }
.treasure-draw-summoning::before { inset:-12px;opacity:.63;mask-image:radial-gradient(circle,transparent 0 37%,#000 38% 65%,transparent 76%); }
.treasure-draw-summoning::after { inset:103px;border-color:rgba(244,207,128,.39);box-shadow:0 0 50px rgba(221,153,48,.24),inset 0 0 35px rgba(222,151,43,.2); }
.treasure-draw-summoning > span:first-child { z-index:8;width:104px;height:104px;border-color:#f0ca76;color:#f4d78f;background:radial-gradient(circle at 44% 36%,#56351a,#150c06 58%,#050302 78%);font-size:48px;box-shadow:inset 0 0 0 5px #080503,inset 0 0 0 6px rgba(245,207,124,.28),inset 0 0 30px #000,0 0 42px rgba(224,153,46,.4); }
.treasure-draw-summoning > i:nth-of-type(1){inset:40px;border-color:rgba(230,184,96,.52);}
.treasure-draw-summoning > i:nth-of-type(2){inset:73px;border-color:rgba(242,205,126,.42);}
.treasure-draw-summoning > i:nth-of-type(3){inset:10px;border-color:rgba(206,153,72,.38);}
.summon-trigrams em { width:32px;height:32px;margin:-16px;font-size:14px;transform:rotate(var(--angle)) translateY(-151px) rotate(calc(var(--angle) * -1)); }
.summon-armillary { position:absolute;z-index:5;top:50%;left:50%;width:250px;height:250px;pointer-events:none;transform:translate(-50%,-50%);transform-style:preserve-3d;animation:armillaryDrift 5s ease-in-out infinite alternate; }
.summon-armillary i { position:absolute;inset:0;border:1px solid rgba(225,178,86,.32);border-radius:50%;box-shadow:inset 0 0 13px rgba(225,161,60,.09),0 0 10px rgba(225,161,60,.08); }
.summon-armillary i:nth-child(1){transform:rotateX(64deg) rotateZ(11deg);animation:armillaryBandA 6s linear infinite;}
.summon-armillary i:nth-child(2){transform:rotateY(67deg) rotateZ(35deg);animation:armillaryBandB 7s linear infinite reverse;}
.summon-armillary i:nth-child(3){transform:rotateX(38deg) rotateY(56deg);animation:armillaryBandC 8s linear infinite;}
.summon-armillary i:nth-child(4){inset:24px;border-style:dashed;opacity:.62;animation:treasureOrbit 10s linear infinite reverse;}
.summon-shards { position:absolute;z-index:1;inset:0;pointer-events:none;animation:treasureOrbit 14s linear infinite; }
.summon-shards i { --shard-angle:calc(var(--shard-index) * 20deg);--shard-dist:-178px;position:absolute;top:50%;left:50%;width:2px;height:10px;margin:-5px -1px;background:#d6a453;box-shadow:0 0 7px rgba(235,182,87,.75);transform:rotate(var(--shard-angle)) translateY(var(--shard-dist));animation:summonShardBlink 1.8s ease-in-out calc(var(--shard-index) * -90ms) infinite alternate; }
.treasure-draw-summoning > b { z-index:7;bottom:11px;color:#cfb176;font-size:13px;letter-spacing:.2em;text-shadow:0 3px 9px #000; }
.treasure-draw-summoning > small { z-index:7;bottom:-10px;color:#75654d;letter-spacing:.36em; }
.treasure-draw-summoning.is-prepared { box-shadow:0 0 18px rgba(180,118,36,.16); }
.treasure-draw-summoning.is-prepared::before { opacity:.28; }
.treasure-draw-summoning.is-prepared > span:first-child { transition:color 180ms ease,box-shadow 180ms ease,transform 180ms ease; }
.treasure-draw-summoning.is-prepared:hover > span:first-child,
.treasure-draw-summoning.is-prepared:focus-visible > span:first-child { color:#ffe2a0;box-shadow:inset 0 0 0 5px #080503,inset 0 0 0 6px rgba(245,207,124,.36),inset 0 0 30px #000,0 0 52px rgba(224,153,46,.55);transform:scale(1.04); }
.treasure-draw-summoning.is-prepared.is-submitting { cursor:wait;opacity:.82; }
.treasure-draw-summoning.is-prepared.is-submitting > span:first-child { color:#e2c078; }
.treasure-draw-actions .treasure-draw-commands:has(button.is-selected) button:not(.is-selected):not(:disabled) { opacity:.5;border-color:#55452f;color:#81735c;background:linear-gradient(180deg,rgba(36,29,20,.72),rgba(10,8,6,.94));box-shadow:none;filter:saturate(.35) brightness(.7);transform:scale(.985); }
.treasure-draw-actions .treasure-draw-commands button.is-selected:not(:disabled) { z-index:2;border-color:#f0c46f;color:#ffe1a0;background:radial-gradient(circle at 76% 25%,rgba(255,216,132,.24),transparent 34%),linear-gradient(180deg,#855c2a,#3d230e 50%,#130b05);box-shadow:inset 0 0 0 1px rgba(255,222,151,.23),inset 0 0 27px rgba(226,160,57,.24),0 0 0 2px rgba(198,144,64,.18),0 7px 24px rgba(0,0,0,.48),0 0 25px rgba(219,151,53,.24);filter:brightness(1.14) saturate(1.18);transform:translateY(-2px); }
.treasure-draw-actions .treasure-draw-commands button.is-selected:not(:disabled)::after { content:"已选";position:absolute;top:5px;right:10px;color:#f2cb7b;font-family:"FangSong",serif;font-size:9px;letter-spacing:.12em;text-shadow:0 0 8px rgba(243,185,82,.55); }
.treasure-draw-actions .treasure-draw-commands button.is-selected:not(:disabled) > span { border-color:#d36f4f;color:#f09a73;background:rgba(77,24,11,.72);box-shadow:0 0 14px rgba(207,83,51,.22); }
.treasure-draw-actions .treasure-draw-commands button.is-selected:not(:disabled) small { color:#c5aa77; }
.treasure-draw-actions .treasure-draw-commands:has(button.is-selected) button:not(.is-selected):not(:disabled):hover { opacity:.68;border-color:#8d6b3b;filter:saturate(.55) brightness(.84);transform:translateY(-1px) scale(.99); }

/* 停盘后的召命演出：先收束命轨，结束后才挂载带品级的卡背。 */
.treasure-draw-stage.is-manifesting { min-height:540px;overflow:hidden;background:radial-gradient(circle at 50% 46%,rgba(183,111,27,.16),transparent 32%),#030201; }
.treasure-draw-stage.is-manifesting:has(.is-tenfold) { min-height:650px; }
.treasure-manifesting { position:relative;z-index:4;display:grid;width:100%;height:470px;place-items:center;overflow:hidden;isolation:isolate;color:#e4bd6d; }
.treasure-manifesting::before { content:"";position:absolute;z-index:-4;inset:0;background:radial-gradient(circle at 50% 44%,rgba(113,68,21,.22),transparent 30%),linear-gradient(90deg,rgba(0,0,0,.3),transparent 28% 72%,rgba(0,0,0,.3));animation:manifestBreath 1.05s ease-in-out infinite alternate; }
.treasure-manifesting::after { content:"";position:absolute;z-index:8;inset:-18%;opacity:0;pointer-events:none;background:#f5d78d;mix-blend-mode:screen;animation:manifestWhiteout 2.8s ease-in-out both; }
.treasure-manifesting.is-single::after { animation-duration:1.9s; }

.manifest-vortex { position:absolute;z-index:-1;top:44%;left:50%;width:348px;height:348px;pointer-events:none;transform:translate(-50%,-50%); }
.manifest-vortex::before { content:"";position:absolute;inset:-62px;opacity:.42;border-radius:50%;background:repeating-conic-gradient(from 0deg,transparent 0 7deg,rgba(226,175,83,.28) 8deg,transparent 9deg 18deg);mask-image:radial-gradient(circle,transparent 0 39%,#000 40% 66%,transparent 73%);animation:manifestRayWheel 1.2s linear infinite; }
.manifest-vortex::after { content:"";position:absolute;inset:72px;border:1px solid rgba(238,198,116,.46);border-radius:50%;box-shadow:0 0 24px rgba(233,166,58,.31),inset 0 0 26px rgba(219,144,39,.16);animation:manifestCoreCharge .72s ease-in-out infinite alternate; }
.manifest-vortex > i { position:absolute;border:1px solid rgba(217,167,79,.38);border-radius:50%; }
.manifest-vortex > i:nth-child(1){inset:0;border-style:dashed;animation:treasureOrbit 5s linear infinite}
.manifest-vortex > i:nth-child(2){inset:32px;border-style:double;animation:treasureOrbit 3.4s linear infinite reverse}
.manifest-vortex > i:nth-child(3){inset:91px;border-color:rgba(245,212,143,.56);animation:manifestRingCollapse 1.35s ease-in-out infinite}
.manifest-vortex > i:nth-child(4){inset:126px;background:radial-gradient(circle,#6e431d,#130b05 58%,#030201 72%);box-shadow:inset 0 0 24px #000,0 0 38px rgba(228,155,45,.36);animation:manifestCoreCharge .56s ease-in-out infinite alternate}

.manifest-trails { position:absolute;z-index:1;inset:0;pointer-events:none; }
.manifest-trails i { --trail-angle:calc(var(--trail-index) * 36deg);position:absolute;top:44%;left:50%;width:3px;height:118px;margin:-118px -1px 0;opacity:0;border-radius:50% 50% 0 0;background:linear-gradient(transparent,rgba(244,209,137,.98));box-shadow:0 0 8px #e5a744,0 0 18px rgba(219,135,32,.62);transform-origin:50% 100%;animation:manifestTrailConverge 1.48s cubic-bezier(.45,.05,.14,1) calc(var(--trail-index) * 38ms) both; }
.treasure-manifesting.is-single .manifest-trails i { --trail-angle:0deg;width:5px;height:150px; }

.manifest-impact { position:absolute;z-index:2;top:44%;left:50%;width:185px;height:185px;pointer-events:none;transform:translate(-50%,-50%); }
.manifest-impact::before { content:"命";position:absolute;z-index:2;inset:46px;display:grid;opacity:0;place-items:center;border:1px solid #edc675;border-radius:50%;color:#f7daa0;background:radial-gradient(circle,#4d2f14,#090604 68%);font-family:"STKaiti",serif;font-size:35px;box-shadow:inset 0 0 18px #000,0 0 40px rgba(242,186,82,.5);animation:manifestSealStrike .78s cubic-bezier(.16,.82,.18,1) 1.22s both; }
.manifest-impact > i { --impact-angle:18deg;position:absolute;top:50%;left:50%;width:2px;height:96px;opacity:0;background:linear-gradient(#f6d999,transparent);transform:rotate(var(--impact-angle));transform-origin:50% 0;animation:manifestImpactRay .7s ease-out 1.25s both; }
.manifest-impact > i:nth-child(2){--impact-angle:138deg}.manifest-impact > i:nth-child(3){--impact-angle:258deg}

.manifest-seal { position:absolute;z-index:6;right:0;bottom:93px;left:0;display:grid;gap:4px;opacity:0;text-align:center;animation:manifestWordsRise .56s ease 1.58s both; }
.manifest-seal small { color:#806f52;font-family:Georgia,serif;font-size:7px;letter-spacing:.38em; }
.manifest-seal b { color:#edcf8a;font-family:"STKaiti",serif;font-size:20px;font-weight:500;letter-spacing:.22em;text-shadow:0 4px 14px #000,0 0 14px rgba(230,167,66,.25); }
.manifest-seal em { color:#8a7756;font-family:"FangSong",serif;font-size:10px;font-style:normal;letter-spacing:.2em; }

.manifest-card-shadows { position:absolute;z-index:5;right:8%;bottom:8px;left:8%;display:grid;height:64px;grid-template-columns:repeat(10,minmax(0,1fr));gap:8px;pointer-events:none;perspective:900px; }
.manifest-card-shadows i { position:relative;display:block;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,inset 0 0 0 4px rgba(212,165,81,.12),0 9px 18px #000;transform:translateY(78px) rotateX(58deg) scale(.72);animation:manifestShadowRise .58s cubic-bezier(.16,.78,.18,1) calc(1.82s + var(--shadow-index) * 42ms) both;clip-path:polygon(7% 0,93% 0,100% 8%,100% 92%,93% 100%,7% 100%,0 92%,0 8%); }
.manifest-card-shadows i::before { content:"命";position:absolute;inset:0;display:grid;place-items:center;color:rgba(221,178,91,.34);font-family:"STKaiti",serif;font-size:19px; }
.treasure-manifesting.is-single .manifest-card-shadows { right:calc(50% - 42px);bottom:3px;left:calc(50% - 42px);grid-template-columns:1fr;height:72px; }
.treasure-manifesting.is-single .manifest-card-shadows i { animation-delay:1.08s; }
.treasure-manifesting.is-single .manifest-seal { bottom:87px;animation-delay:1.02s; }
.treasure-manifesting.is-single .manifest-impact::before { animation-delay:.7s; }
.treasure-manifesting.is-single .manifest-impact > i { animation-delay:.73s; }

@keyframes manifestBreath { from{filter:brightness(.72)} to{filter:brightness(1.18)} }
@keyframes manifestRayWheel { to{transform:rotate(360deg)} }
@keyframes manifestCoreCharge { from{opacity:.42;transform:scale(.82)} to{opacity:1;transform:scale(1.08)} }
@keyframes manifestRingCollapse { 0%{opacity:0;transform:scale(1.55)} 55%{opacity:1} 100%{opacity:.2;transform:scale(.72)} }
@keyframes manifestTrailConverge { 0%{opacity:0;transform:rotate(var(--trail-angle)) translateY(-205px) scaleY(.24)} 24%{opacity:1} 78%{opacity:1;transform:rotate(var(--trail-angle)) translateY(-55px) scaleY(1.2)} 100%{opacity:0;transform:rotate(var(--trail-angle)) translateY(0) scaleY(.1)} }
@keyframes manifestSealStrike { 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) rotate(0);filter:blur(0)} }
@keyframes manifestImpactRay { 0%{opacity:0;transform:rotate(var(--impact-angle)) scaleY(.1)} 35%{opacity:.9} 100%{opacity:0;height:180px;transform:rotate(var(--impact-angle)) scaleY(1)} }
@keyframes manifestWordsRise { from{opacity:0;transform:translateY(16px);filter:blur(5px)} to{opacity:1;transform:translateY(0);filter:blur(0)} }
@keyframes manifestShadowRise { 0%{opacity:0;transform:translateY(78px) rotateX(58deg) scale(.72)} 70%{opacity:.82} 100%{opacity:.58;transform:translateY(0) rotateX(0) scale(1)} }
@keyframes manifestWhiteout { 0%,58%{opacity:0} 68%{opacity:.3} 74%{opacity:0} 92%{opacity:0} 97%{opacity:.22} 100%{opacity:0} }

.treasure-draw-empty { position:relative;z-index:2;display:grid;width:330px;height:305px;place-content:center;text-align:center; }
.treasure-empty-orbit { position:absolute;top:50%;left:50%;width:264px;height:264px;pointer-events:none;transform:translate(-50%,-50%); }
.treasure-empty-orbit::before,.treasure-empty-orbit::after,.treasure-empty-orbit i { content:"";position:absolute;border:1px solid rgba(193,144,65,.26);border-radius:50%; }
.treasure-empty-orbit::before { inset:0;border-style:dashed;animation:treasureOrbit 22s linear infinite; }
.treasure-empty-orbit::after { inset:29px;opacity:.72;animation:treasureOrbit 15s linear infinite reverse; }
.treasure-empty-orbit i:nth-child(1){inset:58px;box-shadow:0 0 28px rgba(174,109,27,.13);}
.treasure-empty-orbit i:nth-child(2){top:50%;right:-12px;left:-12px;border-radius:0;transform:rotate(45deg);}
.treasure-empty-orbit i:nth-child(3){top:-12px;bottom:-12px;left:50%;border-radius:0;transform:rotate(45deg);}
.treasure-draw-empty > .treasure-empty-seal { position:relative;z-index:2;display:grid;width:88px;height:88px;margin:0 auto 15px;place-items:center;border:1px solid #9c713a;border-radius:50%;color:#d0a45a;background:radial-gradient(circle,#34210f,#090604 68%);font-family:"STKaiti",serif;font-size:39px;box-shadow:inset 0 0 26px #000,0 0 29px rgba(194,126,34,.22); }
.treasure-draw-empty small,.treasure-draw-empty h3,.treasure-draw-empty p { position:relative;z-index:2; }
.treasure-draw-empty h3 { color:#d6bd82;font-size:23px; }

.treasure-draw-grid { position:relative;z-index:3; }
.treasure-draw-grid.is-tenfold { gap:22px 16px; }
.treasure-draw-grid.is-tenfold .treasure-draw-card:nth-child(5n + 1){--card-rest-angle:-1.2deg}.treasure-draw-grid.is-tenfold .treasure-draw-card:nth-child(5n + 2){--card-rest-angle:.7deg}.treasure-draw-grid.is-tenfold .treasure-draw-card:nth-child(5n + 3){--card-rest-angle:-.35deg}.treasure-draw-grid.is-tenfold .treasure-draw-card:nth-child(5n + 4){--card-rest-angle:1deg}.treasure-draw-grid.is-tenfold .treasure-draw-card:nth-child(5n + 5){--card-rest-angle:-.65deg}
.treasure-draw-card { transform:rotate(var(--card-rest-angle,0));transition:transform 220ms ease,filter 220ms ease; }
.treasure-draw-card:hover { z-index:8;filter:brightness(1.09); }
.treasure-draw-card:hover:not(.is-revealed) { transform:translateY(-8px) rotate(var(--card-rest-angle,0)); }
.treasure-card-back,.treasure-card-front { border-color:currentColor;background-color:#080604;box-shadow:inset 0 0 0 4px #050302,inset 0 0 0 5px rgba(221,176,89,.26),inset 0 0 42px #000,0 17px 31px rgba(0,0,0,.64); }
.treasure-card-back { background:radial-gradient(circle at 50% 39%,rgba(var(--rarity-rgb,196,185,164),.15),transparent 24%),repeating-conic-gradient(from 22deg at 50% 42%,rgba(178,133,63,.065) 0 7deg,transparent 8deg 22deg),linear-gradient(145deg,#28170b,#070504 62%,#1b1008); }
.treasure-card-back::before { inset:10px;border-color:rgba(var(--rarity-rgb,196,185,164),.3);clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px),0 12px); }
.treasure-card-back::after { content:"";position:absolute;top:21px;right:50%;bottom:21px;width:1px;opacity:.28;background:linear-gradient(transparent,currentColor 26% 74%,transparent);box-shadow:46px 0 currentColor,-46px 0 currentColor; }
.treasure-card-corners { position:absolute;z-index:4;inset:14px;pointer-events:none; }
.treasure-card-corners i { position:absolute;width:19px;height:19px;border-color:currentColor;border-style:solid;opacity:.65; }
.treasure-card-corners i:nth-child(1){top:0;left:0;border-width:1px 0 0 1px}.treasure-card-corners i:nth-child(2){top:0;right:0;border-width:1px 1px 0 0}.treasure-card-corners i:nth-child(3){right:0;bottom:0;border-width:0 1px 1px 0}.treasure-card-corners i:nth-child(4){bottom:0;left:0;border-width:0 0 1px 1px}
.treasure-card-orbit { position:absolute;z-index:1;top:50%;left:50%;width:146px;height:146px;pointer-events:none;transform:translate(-50%,-58%); }
.treasure-card-orbit i { position:absolute;inset:0;border:1px solid currentColor;border-radius:50%;opacity:.22; }
.treasure-card-orbit i:nth-child(1){border-style:dashed;animation:treasureOrbit 13s linear infinite}.treasure-card-orbit i:nth-child(2){inset:19px;animation:treasureOrbit 8s linear infinite reverse}.treasure-card-orbit i:nth-child(3){inset:39px;opacity:.35;box-shadow:0 0 25px rgba(var(--rarity-rgb,196,185,164),.2)}
.treasure-card-back > .treasure-card-seal { z-index:3;width:78px;height:78px;margin-bottom:18px;border:1px solid currentColor;background:radial-gradient(circle at 38% 34%,rgba(var(--rarity-rgb,196,185,164),.16),#100b06 62%);box-shadow:inset 0 0 0 4px #090604,inset 0 0 0 5px rgba(var(--rarity-rgb,196,185,164),.25),0 0 32px rgba(var(--rarity-rgb,196,185,164),.25); }
.treasure-card-back small,.treasure-card-back strong,.treasure-card-back em { z-index:3; }
.treasure-card-back em { opacity:.62;transition:opacity 180ms ease,letter-spacing 180ms ease; }
.treasure-draw-card:hover .treasure-card-back em { opacity:1;letter-spacing:.24em; }
.treasure-card-front { padding:16px;background:linear-gradient(155deg,rgba(var(--rarity-rgb,196,185,164),.16),#090604 43%); }
.treasure-card-front::before { content:"";position:absolute;z-index:1;top:0;right:0;left:0;height:3px;background:currentColor;box-shadow:0 0 16px currentColor; }
.treasure-card-front::after { background:linear-gradient(180deg,transparent 35%,rgba(5,3,2,.96) 73%); }
.treasure-card-quality-mark { position:absolute;z-index:5;top:13px;right:13px;display:grid;width:30px;height:30px;place-items:center;border:1px solid currentColor;color:currentColor;background:rgba(5,3,2,.82);font-family:"STKaiti",serif;font-size:15px;box-shadow:0 0 15px rgba(var(--rarity-rgb,196,185,164),.25);transform:rotate(4deg); }
.treasure-card-image { inset:8px 8px 79px; }
.treasure-draw-card.is-revealed::after { content:"";position:absolute;z-index:-2;inset:-24px;opacity:0;pointer-events:none;background:repeating-conic-gradient(from 0deg,transparent 0 8deg,rgba(var(--rarity-rgb,196,185,164),.48) 9deg,transparent 11deg 22deg);mask-image:radial-gradient(circle,transparent 0 28%,#000 35% 60%,transparent 75%);animation:relicRevealRays 1s ease-out both; }
.treasure-draw-card.is-revealed.quality-传说::after,.treasure-draw-card.is-revealed.quality-仙品::after { inset:-42px;filter:drop-shadow(0 0 8px currentColor); }

.treasure-draw-actions { position:relative;margin:0 22px 20px;padding:20px 12px 2px;border-top-color:rgba(198,148,69,.31);background:transparent; }
.treasure-draw-actions::before { content:"";position:absolute;top:-2px;right:0;left:0;height:3px;background:linear-gradient(90deg,transparent,#765228 20%,#d1a456 50%,#765228 80%,transparent); }
.treasure-draw-commands { display:grid!important;grid-template-columns:190px 250px;gap:12px!important; }
.treasure-draw-actions .treasure-draw-commands button { position:relative;display:grid;min-height:58px;padding:9px 16px 9px 62px;text-align:left;clip-path:polygon(9px 0,100% 0,calc(100% - 9px) 100%,0 100%); }
.treasure-draw-commands button > span { position:absolute;top:9px;bottom:9px;left:14px;display:grid;width:35px;place-items:center;border:1px solid #8c3b2d;color:#c85e47;background:rgba(44,14,8,.46);font-family:"STKaiti",serif;font-size:18px;transform:rotate(-4deg); }
.treasure-draw-actions button small { letter-spacing:.18em; }
.treasure-draw-actions button b { font-size:17px;letter-spacing:.18em; }
.treasure-draw-actions button.is-tenfold { background:radial-gradient(circle at 78% 30%,rgba(240,191,97,.15),transparent 27%),linear-gradient(180deg,#765022,#2a180a 47%,#0e0905); }
.treasure-award-desk { padding-left:18px;border-left:1px solid rgba(177,130,61,.23); }
.treasure-award-desk > button { min-height:48px; }
.treasure-rate-help { top:23px;right:24px;width:36px;height:36px;border-style:double; }

@keyframes armillaryDrift { from{transform:translate(-50%,-50%) rotateZ(-4deg)} to{transform:translate(-50%,-50%) rotateZ(5deg)} }
@keyframes armillaryBandA { to{transform:rotateX(64deg) rotateZ(371deg)} }
@keyframes armillaryBandB { to{transform:rotateY(67deg) rotateZ(395deg)} }
@keyframes armillaryBandC { to{transform:rotateX(38deg) rotateY(56deg) rotateZ(360deg)} }
@keyframes summonShardBlink { from{opacity:.12;transform:rotate(var(--shard-angle)) translateY(var(--shard-dist)) scaleY(.5)} to{opacity:.88;transform:rotate(var(--shard-angle)) translateY(var(--shard-dist)) scaleY(1.5)} }
@keyframes relicRevealRays { 0%{opacity:0;transform:scale(.45) rotate(-18deg)} 28%{opacity:.92} 100%{opacity:0;transform:scale(1.32) rotate(18deg)} }

@media (prefers-reduced-motion:reduce) {
  .summon-armillary,.summon-armillary i,.summon-shards,.summon-shards i,.treasure-empty-orbit::before,.treasure-empty-orbit::after,.treasure-card-orbit i { animation-duration:.001ms!important;animation-iteration-count:1!important; }
  .treasure-draw-card-inner { transition-duration:160ms; }
}

@media (max-width:1180px) {
  .treasure-draw-page-main { width:calc(100% - 42px); }
  .treasure-draw-page .treasure-draw-header { grid-template-columns:50px 1fr 220px; }
  .treasure-draw-grid.is-tenfold { gap:10px; }
  .treasure-draw-card { min-height:250px; }
  .treasure-draw-actions { align-items:flex-start; flex-direction:column; }
  .treasure-draw-actions > aside { width:100%; justify-content:flex-end; }
}

@media (max-width:820px) {
  html:has(.treasure-draw-page),body:has(.treasure-draw-page),#root:has(.treasure-draw-page) { min-width:0; }
  .treasure-draw-page-header { grid-template-columns:1fr; gap:12px; padding:18px 22px 24px; }
  .treasure-draw-page-header .ink-back { justify-self:start; }
  .treasure-draw-page-header .treasure-heading { min-width:0; }
  .draw-archive-link { justify-self:center; }
  .treasure-draw-prologue { grid-template-columns:45px 1fr; }
  .treasure-draw-prologue > b { display:none; }
  .treasure-draw-page .treasure-draw-header { grid-template-columns:48px 1fr; padding:21px; }
  .treasure-draw-oath { display:none; }
  .treasure-draw-rates { flex-wrap:wrap; }
  .treasure-draw-page .treasure-draw-stage { margin:12px 10px 0;padding:30px 14px 38px; }
  .treasure-vault-inscription span { font-size:48px; }
  .treasure-draw-summoning { width:320px;height:320px;max-width:88vw;max-height:88vw; }
  .treasure-draw-summoning::after { inset:82px; }
  .treasure-draw-summoning > i:nth-of-type(1){inset:30px}.treasure-draw-summoning > i:nth-of-type(2){inset:58px}.treasure-draw-summoning > i:nth-of-type(3){inset:7px}
  .summon-armillary { width:205px;height:205px; }
  .summon-trigrams em { transform:rotate(var(--angle)) translateY(-121px) rotate(calc(var(--angle) * -1)); }
  .summon-shards i { --shard-dist:-142px; }
  .treasure-draw-grid.is-tenfold { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:auto; }
  .treasure-draw-stage:has(.is-tenfold) { min-height:0; }
  .treasure-award-desk { align-items:stretch; flex-direction:column; }
  .treasure-draw-actions > div,.treasure-draw-actions > aside { width:100%; flex-wrap:wrap; }
  .treasure-draw-actions button { flex:1; min-width:140px; }
  .treasure-draw-actions { margin-right:10px;margin-left:10px; }
  .treasure-draw-commands { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .treasure-draw-actions .treasure-draw-commands button { min-width:0;padding-left:53px; }
  .treasure-award-desk { padding-top:14px;padding-left:0;border-top:1px solid rgba(177,130,61,.23);border-left:0; }
  .treasure-claim-preview { grid-template-columns:repeat(2,minmax(0,1fr)); }
  @keyframes treasureCardDeal { from { opacity:0; transform:translateY(-55px) rotateY(22deg) scale(.82); } to { opacity:1; transform:translateY(0) rotateY(0) scale(1); } }
  @keyframes treasureImageAwaken { from { transform:scale(1.13); } to { transform:scale(1); } }
}

@media (max-width:520px) {
  .treasure-draw-page-main { width:calc(100% - 18px); }
  .treasure-draw-prologue { padding-right:16px;padding-left:16px; }
  .treasure-draw-page .treasure-draw-header { grid-template-columns:42px 1fr;padding:18px 15px; }
  .treasure-draw-page .treasure-draw-header > span { width:42px;height:42px; }
  .treasure-draw-page .treasure-draw-header h2 { font-size:24px; }
  .treasure-rate-help { top:12px;right:12px; }
  .treasure-draw-page .treasure-draw-stage { min-height:390px; }
  .treasure-draw-summoning { width:286px;height:286px; }
  .treasure-draw-summoning::after { inset:72px; }
  .treasure-draw-summoning > span:first-child { width:86px;height:86px;font-size:40px; }
  .summon-armillary { width:182px;height:182px; }
  .summon-trigrams em { transform:rotate(var(--angle)) translateY(-107px) rotate(calc(var(--angle) * -1)); }
  .summon-shards i { --shard-dist:-127px; }
  .treasure-draw-summoning > b { bottom:3px;font-size:11px; }
  .treasure-draw-summoning > small { display:none; }
  .treasure-draw-grid.is-tenfold { gap:12px 8px; }
  .treasure-draw-card { min-height:225px; }
  .treasure-draw-commands { grid-template-columns:1fr; }
  .treasure-draw-actions .treasure-draw-commands button { width:100%; }
}

.archive-toolbar {
  position: sticky;
  z-index: 30;
  top: 8px;
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(550px, 2fr) minmax(110px, .45fr);
  align-items: center;
  gap: 20px;
  min-height: 70px;
  padding: 10px 18px;
  border: 1px solid rgba(172, 132, 68, .33);
  background: rgba(9, 7, 5, .9);
  box-shadow: inset 0 0 24px #000, 0 14px 32px rgba(0, 0, 0, .52);
  backdrop-filter: blur(14px);
  animation: archiveReveal 650ms ease 80ms both;
}

.artifact-search {
  position: relative;
  display: grid;
  grid-template-columns: 39px 1fr 30px;
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(160, 120, 58, .4);
  background: linear-gradient(90deg, rgba(55, 36, 17, .5), rgba(4, 4, 3, .56));
  box-shadow: inset 0 0 13px rgba(0, 0, 0, .65);
}

.artifact-search > span {
  display: grid;
  width: 31px;
  height: 31px;
  margin-left: 5px;
  place-items: center;
  border: 1px solid rgba(130, 48, 34, .75);
  color: #b45743;
  font-family: "STKaiti", serif;
  font-size: 17px;
  transform: rotate(-3deg);
}

.artifact-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ddcfb1;
  background: transparent;
  font-family: "FangSong", serif;
  font-size: 11px;
  letter-spacing: .08em;
}

.artifact-search input::placeholder { color: #655e51; }
.artifact-search:focus-within { border-color: rgba(219, 170, 84, .68); box-shadow: inset 0 0 13px rgba(0, 0, 0, .65), 0 0 0 2px rgba(191, 132, 46, .08); }

.artifact-search button {
  border: 0;
  color: #887960;
  cursor: pointer;
  background: transparent;
  font-size: 16px;
}

.artifact-search button:hover { color: #e5c983; }

.artifact-categories {
  display: grid;
  grid-template-columns: repeat(9, minmax(48px, 1fr));
  gap: 5px;
}

.artifact-filter-stack {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.artifact-categories button {
  position: relative;
  min-height: 36px;
  border: 1px solid transparent;
  color: #80745f;
  cursor: pointer;
  background: transparent;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 13px;
  letter-spacing: .13em;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.artifact-categories button::after {
  content: "";
  position: absolute;
  right: 18%;
  bottom: 3px;
  left: 18%;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, #d4a356, transparent);
  transform: scaleX(.35);
  transition: 180ms ease;
}

.artifact-categories button:hover { color: #d1bc91; }
.artifact-categories button.is-active { border-color: rgba(157, 111, 51, .35); color: #efd18b; background: linear-gradient(180deg, rgba(116, 76, 29, .22), rgba(45, 24, 10, .12)); }
.artifact-categories button.is-active::after { opacity: 1; transform: scaleX(1); }
.artifact-categories button:focus-visible { outline: 1px solid #d3a455; outline-offset: 2px; }

.artifact-rarities {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 25px;
  padding-top: 4px;
  border-top: 1px solid rgba(142, 105, 53, .16);
}

.artifact-rarities > span {
  margin-right: 5px;
  color: #685d4b;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 10px;
  letter-spacing: .16em;
}

.artifact-rarities button {
  min-width: 51px;
  padding: 3px 8px 4px;
  border: 1px solid rgba(151, 113, 56, .17);
  color: #81755f;
  cursor: pointer;
  background: rgba(15, 10, 6, .28);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 11px;
  letter-spacing: .08em;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.artifact-rarities button:hover {
  border-color: rgba(205, 158, 82, .48);
  color: #e0c58b;
  transform: translateY(-1px);
}

.artifact-rarities button.is-active {
  border-color: rgba(223, 178, 91, .62);
  color: #f3d68e;
  background: linear-gradient(180deg, rgba(126, 82, 27, .38), rgba(40, 24, 10, .34));
  box-shadow: inset 0 0 13px rgba(209, 151, 55, .12), 0 0 12px rgba(172, 112, 28, .08);
}

.artifact-rarities button.quality-普通 { color: #c4b9a4; }
.artifact-rarities button.quality-精良 { color: #b5c987; }
.artifact-rarities button.quality-稀有 { color: #76b8af; }
.artifact-rarities button.quality-史诗 { color: #c6a0e1; }
.artifact-rarities button.quality-传说 { color: #edbd5d; }
.artifact-rarities button.quality-仙品 { color: #f18b6b; }

.archive-result-count {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  padding-left: 16px;
  border-left: 1px solid rgba(142, 105, 53, .22);
  white-space: nowrap;
}

.archive-result-count span { color: #6f6554; font-size: 8px; letter-spacing: .12em; }
.archive-result-count b { color: #d9b96f; font-family: Georgia, serif; font-size: 23px; font-weight: 400; }
.archive-result-count i { color: #574f42; font-family: Georgia, serif; font-size: 9px; font-style: normal; }

.catalog-book {
  position: relative;
  min-height: 570px;
  margin-top: 25px;
  padding: 34px clamp(32px, 4vw, 72px) 56px;
  border: 1px solid #49371f;
  color: #cab98f;
  background:
    linear-gradient(90deg, rgba(12, 8, 5, .96), rgba(37, 25, 13, .93) 3%, rgba(55, 39, 21, .9) 48.7%, rgba(9, 6, 4, .98) 49.7% 50.3%, rgba(55, 39, 21, .9) 51.3%, rgba(37, 25, 13, .93) 97%, rgba(12, 8, 5, .96)),
    repeating-linear-gradient(0deg, transparent 0 19px, rgba(227, 190, 113, .027) 20px);
  box-shadow:
    inset 0 0 0 5px rgba(12, 8, 4, .78),
    inset 0 0 0 6px rgba(180, 133, 62, .23),
    inset 0 0 75px rgba(0, 0, 0, .76),
    0 30px 70px rgba(0, 0, 0, .7);
  clip-path: polygon(1.2% 0, 48.6% 1%, 50% 0, 51.4% 1%, 98.8% 0, 100% 3%, 99.3% 97%, 51.5% 99%, 50% 98%, 48.5% 99%, .7% 97%, 0 3%);
  animation: catalogUnseal 850ms cubic-bezier(.18,.78,.2,1) 120ms both;
}

.catalog-book::before,
.catalog-book::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 12px;
  bottom: 12px;
  width: 50%;
  opacity: .13;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d8b46c' stroke-width='.7' opacity='.55'%3E%3Ccircle cx='70' cy='70' r='53'/%3E%3Ccircle cx='70' cy='70' r='42'/%3E%3Cpath d='M70 8v124M8 70h124M26 26l88 88M114 26l-88 88'/%3E%3C/g%3E%3C/svg%3E") center / 250px 250px no-repeat;
}

.catalog-book::before { left: 0; }
.catalog-book::after { right: 0; transform: rotate(180deg); }

.book-spine {
  position: absolute;
  z-index: 4;
  top: 13px;
  bottom: 17px;
  left: 50%;
  width: 18px;
  border-right: 1px solid rgba(150, 105, 49, .28);
  border-left: 1px solid rgba(150, 105, 49, .28);
  background: linear-gradient(90deg, rgba(0,0,0,.2), #050403 50%, rgba(128,84,34,.18));
  box-shadow: 0 0 18px #000;
  transform: translateX(-50%);
}

.book-spine i {
  position: absolute;
  left: 50%;
  width: 28px;
  height: 8px;
  border: 1px solid #5d4324;
  background: #100b06;
  transform: translateX(-50%);
}
.book-spine i:nth-child(1) { top: 10%; }
.book-spine i:nth-child(2) { top: 49%; }
.book-spine i:nth-child(3) { bottom: 10%; }

.book-clasp {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 30px;
  height: 86px;
  border: 1px solid #75542b;
  background: linear-gradient(90deg, #2c1b0b, #9a7135 48%, #2c1b0b);
  box-shadow: inset 0 0 12px #000, 0 8px 15px #000;
  transform: translateY(-50%);
}
.book-clasp::after { content: ""; position: absolute; inset: 9px 7px; border: 1px solid rgba(224,184,100,.32); }
.clasp-left { left: -12px; }
.clasp-right { right: -12px; transform: translateY(-50%) rotate(180deg); }

.catalog-book-heading {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 17px;
  min-height: 72px;
  margin-bottom: 26px;
  padding: 0 4px 16px;
  border-bottom: 1px solid rgba(190, 145, 72, .22);
}

.catalog-book-heading > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #7a3025;
  color: #b7513c;
  font-family: "STKaiti", serif;
  font-size: 20px;
  transform: rotate(-3deg);
}

.catalog-book-heading small { color: #776b57; font-family: Georgia, serif; font-size: 7px; letter-spacing: .24em; }
.catalog-book-heading h2 { margin: 3px 0 0; color: #d9c18b; font-family: "STKaiti", "KaiTi", serif; font-size: 24px; font-weight: 600; letter-spacing: .14em; }
.catalog-book-heading > b { color: #8e7b5a; font-family: "FangSong", serif; font-size: 10px; font-weight: 400; letter-spacing: .18em; }

.artifact-grid {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(13px, 1.4vw, 22px);
}

.artifact-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(158px, 12vw) 1fr auto;
  min-width: 0;
  min-height: 365px;
  overflow: hidden;
  padding: 11px;
  border: 1px solid rgba(169, 126, 61, .34);
  color: #d8c8a4;
  cursor: pointer;
  background:
    linear-gradient(145deg, rgba(76, 48, 20, .38), rgba(8, 6, 4, .96) 48%),
    #0b0805;
  box-shadow: inset 0 0 0 3px rgba(6, 4, 3, .74), inset 0 0 26px #000, 0 13px 23px rgba(0, 0, 0, .36);
  text-align: left;
  isolation: isolate;
  animation: cardEnter 620ms ease var(--delay) both;
  transition: transform 230ms ease, border-color 230ms ease, box-shadow 230ms ease;
}

.artifact-card::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 5px;
  border: 1px solid rgba(205, 165, 92, .12);
  pointer-events: none;
}

.artifact-card::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: -80%;
  width: 45%;
  height: 100%;
  opacity: 0;
  background: linear-gradient(100deg, transparent, rgba(233, 194, 112, .13), transparent);
  transform: skewX(-12deg);
  transition: left 650ms ease, opacity 180ms ease;
  pointer-events: none;
}

.artifact-card:hover { border-color: rgba(226, 178, 89, .67); box-shadow: inset 0 0 0 3px rgba(6, 4, 3, .66), inset 0 0 26px #000, 0 18px 34px rgba(0, 0, 0, .55), 0 0 18px rgba(187, 118, 31, .11); transform: translateY(-7px); }
.artifact-card:hover::after { left: 125%; opacity: 1; }
.artifact-card:focus-visible { outline: 2px solid #dfb666; outline-offset: 4px; }

.artifact-number {
  position: relative;
  z-index: 5;
  padding: 2px 3px 9px;
  color: #756b59;
  font-family: Georgia, "FangSong", serif;
  font-size: 8px;
  letter-spacing: .15em;
}

.artifact-image {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(154, 113, 52, .27);
  background: #050403;
  clip-path: polygon(3% 0, 97% 0, 100% 5%, 100% 95%, 97% 100%, 3% 100%, 0 95%, 0 5%);
}

.artifact-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(5, 3, 2, .92)), radial-gradient(circle at 50% 55%, transparent 34%, rgba(0,0,0,.5));
  pointer-events: none;
}

.artifact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) sepia(.08) brightness(.77) contrast(1.09);
  transform: scale(1.01);
  transition: transform 650ms ease, filter 300ms ease;
}

.artifact-card:hover .artifact-image img { filter: saturate(.92) brightness(.91) contrast(1.06); transform: scale(1.07); }

.artifact-card-copy { display: block; min-width: 0; padding: 12px 6px 8px; }
.artifact-meta { display: flex; align-items: center; gap: 8px; }
.artifact-meta em { min-width: 0; overflow: hidden; color: #716754; font-size: 8px; font-style: normal; letter-spacing: .1em; text-overflow: ellipsis; white-space: nowrap; }
.artifact-card-copy > strong { display: block; margin: 8px 0 7px; overflow: hidden; color: #e0c889; font-family: "STKaiti", "KaiTi", serif; font-size: clamp(19px, 1.4vw, 25px); font-weight: 600; letter-spacing: .09em; text-overflow: ellipsis; white-space: nowrap; }
.artifact-card-copy > small { display: block; color: #685f50; font-size: 8px; letter-spacing: .13em; }
.artifact-card-copy > b { display: block; margin-top: 3px; overflow: hidden; color: #a99b80; font-family: "FangSong", serif; font-size: 10px; font-weight: 400; letter-spacing: .06em; text-overflow: ellipsis; white-space: nowrap; }

.artifact-open {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 5px 3px;
  border-top: 1px solid rgba(143, 106, 54, .16);
  color: #77684f;
  font-family: "FangSong", serif;
  font-size: 9px;
  letter-spacing: .12em;
}
.artifact-open i { color: #c59850; font-family: Georgia, serif; font-size: 17px; font-style: normal; transition: transform 180ms ease; }
.artifact-card:hover .artifact-open { color: #bda777; }
.artifact-card:hover .artifact-open i { transform: translateX(4px); }

.quality-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 18px;
  padding: 0 6px;
  border: 1px solid currentColor;
  color: #9e927b;
  background: rgba(9, 7, 5, .66);
  font-family: "FangSong", serif;
  font-size: 8px;
  letter-spacing: .08em;
  line-height: 1;
}

.quality-tag.is-large { min-width: 52px; height: 27px; padding: 0 10px; font-size: 11px; }
.quality-普通 { color: #968d7b; }
.quality-精良 { color: #9eb484; }
.quality-稀有 { color: #7ea4ac; }
.quality-史诗 { color: #bb8fac; }
.quality-传说 { color: #e0b55e; text-shadow: 0 0 10px rgba(218, 150, 46, .34); }
.quality-仙品 { color: #e9dca9; text-shadow: 0 0 11px rgba(237, 215, 149, .48); }
.artifact-quality-传说 { border-color: rgba(194, 139, 55, .5); }
.artifact-quality-仙品 { border-color: rgba(216, 199, 143, .56); box-shadow: inset 0 0 30px rgba(118, 90, 46, .2), 0 13px 23px rgba(0, 0, 0, .36); }

.archive-empty {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  text-align: center;
}
.archive-empty > span { display: grid; width: 64px; height: 64px; place-items: center; border: 1px solid #6c2c22; color: #934231; font-family: "STKaiti", serif; font-size: 30px; transform: rotate(-4deg); }
.archive-empty h3 { margin: 20px 0 6px; color: #cab586; font-family: "STKaiti", serif; font-size: 23px; font-weight: 500; letter-spacing: .15em; }
.archive-empty p { margin: 0; color: #716654; font-family: "FangSong", serif; font-size: 11px; letter-spacing: .08em; }
.archive-empty button { margin-top: 20px; padding: 9px 22px; border: 1px solid #74552e; color: #c4aa72; cursor: pointer; background: rgba(31, 20, 9, .68); font-family: "FangSong", serif; font-size: 11px; letter-spacing: .15em; }
.archive-empty button:hover { border-color: #c08d45; color: #efd597; }
.archive-loading { min-height: 280px; display: grid; place-items: center; color: #a99570; font-family: "FangSong", serif; letter-spacing: .18em; }
.archive-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; color: #8e7b5a; font-family: "FangSong", serif; font-size: 12px; }
.archive-pagination button { min-width: 76px; padding: 8px 12px; border: 1px solid #74552e; color: #c4aa72; cursor: pointer; background: rgba(31, 20, 9, .68); font: inherit; }
.archive-pagination button:hover:not(:disabled) { border-color: #c08d45; color: #efd597; }
.archive-pagination button:disabled { cursor: not-allowed; opacity: .35; }
.archive-pagination b { color: #d9b96f; font-family: Georgia, serif; font-size: 16px; font-weight: 400; }

.artifact-modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  padding: 4vh 3vw;
  place-items: center;
  background: rgba(2, 2, 2, .84);
  backdrop-filter: blur(12px) saturate(.65);
  animation: modalVeil 260ms ease both;
}

.artifact-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, .88fr) minmax(520px, 1.12fr);
  width: min(1320px, 94vw);
  height: min(850px, 90vh);
  overflow: hidden;
  border: 1px solid rgba(207, 161, 83, .52);
  background: #0a0704;
  box-shadow: inset 0 0 0 4px #080503, inset 0 0 0 5px rgba(211, 167, 88, .22), 0 32px 90px #000, 0 0 38px rgba(179, 111, 30, .12);
  clip-path: polygon(1.4% 0, 98.6% 0, 100% 2.4%, 99.3% 97.6%, 97.8% 100%, 2.2% 100%, .7% 97.6%, 0 2.4%);
  animation: dossierOpen 520ms cubic-bezier(.18,.78,.22,1) both;
}

.artifact-modal::before {
  content: "";
  position: absolute;
  z-index: 20;
  inset: 8px;
  border: 1px solid rgba(197, 151, 76, .16);
  clip-path: inherit;
  pointer-events: none;
}

.artifact-close {
  position: absolute;
  z-index: 30;
  top: 17px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(198, 154, 80, .42);
  color: #c5ae7c;
  cursor: pointer;
  background: rgba(12, 8, 5, .82);
  font-family: Georgia, serif;
  font-size: 20px;
  box-shadow: inset 0 0 12px #000;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.artifact-close:hover { border-color: #c89445; color: #f1d28c; transform: rotate(4deg); }
.artifact-close:focus-visible { outline: 2px solid #e0b866; outline-offset: 3px; }

.artifact-showcase {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid rgba(195, 148, 73, .31);
  background: #050403;
}

.artifact-showcase::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 14px;
  border: 1px solid rgba(212, 170, 91, .18);
  pointer-events: none;
}

.artifact-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.76) sepia(.06) contrast(1.08) brightness(.84);
  animation: showcaseReveal 900ms ease both;
}

.showcase-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), transparent 44%, rgba(5,3,2,.88) 88%), radial-gradient(circle at 50% 42%, transparent 24%, rgba(0,0,0,.48));
}

.artifact-showcase > .quality-tag { position: absolute; z-index: 5; top: 25px; left: 25px; }
.showcase-title { position: absolute; z-index: 5; right: 30px; bottom: 31px; left: 30px; padding-top: 17px; border-top: 1px solid rgba(208, 164, 84, .26); }
.showcase-title small { color: #9b8760; font-family: "FangSong", serif; font-size: 10px; letter-spacing: .19em; }
.showcase-title h2 { margin: 5px 0 7px; color: #efd294; font-family: "STKaiti", "KaiTi", serif; font-size: clamp(34px, 3.2vw, 54px); font-weight: 600; letter-spacing: .12em; text-shadow: 0 5px 18px #000; }
.showcase-title span { color: #d6a753; font-family: Georgia, serif; font-size: 12px; letter-spacing: .16em; }

.artifact-scroll-detail {
  min-height: 0;
  overflow-y: auto;
  padding: 33px clamp(34px, 3.2vw, 55px) 42px;
  color: var(--treasure-ink);
  scrollbar-color: #76542a #1c130b;
  scrollbar-width: thin;
  background:
    linear-gradient(90deg, rgba(0,0,0,.26), transparent 5% 95%, rgba(0,0,0,.2)),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(45, 29, 13, .028) 26px),
    linear-gradient(135deg, #a88c59, #ceb77d 44%, #aa8e59);
}

.artifact-scroll-detail::-webkit-scrollbar { width: 7px; }
.artifact-scroll-detail::-webkit-scrollbar-track { background: #1c130b; }
.artifact-scroll-detail::-webkit-scrollbar-thumb { background: #76542a; }

.artifact-detail-title {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(55, 35, 17, .34);
}
.artifact-detail-title > span { display: grid; width: 47px; height: 47px; place-items: center; border: 2px solid #792b20; color: #7d2b21; font-family: "STKaiti", serif; font-size: 25px; font-weight: 700; transform: rotate(-4deg); }
.artifact-detail-title small { color: #594a34; font-family: Georgia, serif; font-size: 7px; letter-spacing: .2em; }
.artifact-detail-title h3 { margin: 2px 0 0; color: #31200f; font-family: "STKaiti", serif; font-size: 25px; font-weight: 700; letter-spacing: .16em; }

.artifact-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 20px 0 23px;
  border-top: 1px solid rgba(56, 36, 17, .34);
  border-left: 1px solid rgba(56, 36, 17, .34);
}

.artifact-facts > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  min-height: 49px;
  padding: 8px 11px;
  border-right: 1px solid rgba(56, 36, 17, .34);
  border-bottom: 1px solid rgba(56, 36, 17, .34);
}
.artifact-facts span { color: #6f5c3f; font-size: 9px; letter-spacing: .14em; }
.artifact-facts b { color: #31210f; font-family: "FangSong", serif; font-size: 12px; font-weight: 700; }
.artifact-facts .quality-tag { justify-self: start; color: #582d17; background: rgba(77, 45, 17, .09); }

.artifact-section { margin-top: 24px; }
.artifact-section > header { display: grid; grid-template-columns: 28px auto 1fr; align-items: center; gap: 8px; }
.artifact-section > header > span { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid #703026; color: #763327; font-family: "STKaiti", serif; font-size: 12px; transform: rotate(-3deg); }
.artifact-section h4 { margin: 0; color: #382512; font-family: "STKaiti", serif; font-size: 18px; letter-spacing: .12em; }
.artifact-section header small { color: #716147; font-family: Georgia, serif; font-size: 6px; letter-spacing: .2em; text-align: right; }

.artifact-attributes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.artifact-attributes.has-four-attributes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.artifact-attributes > div { position: relative; padding: 11px 13px; border: 1px solid rgba(68, 43, 20, .33); background: rgba(87, 55, 23, .06); }
.artifact-attributes span { display: block; color: #6c5a3d; font-size: 8px; letter-spacing: .12em; }
.artifact-attributes b { display: block; margin-top: 4px; color: #6c251b; font-family: Georgia, "FangSong", serif; font-size: 17px; }

.artifact-effect > div { margin-top: 12px; padding: 15px 17px; border-left: 3px solid #793023; background: linear-gradient(90deg, rgba(103, 46, 24, .12), transparent); }
.artifact-effect strong { color: #6a251b; font-family: "STKaiti", serif; font-size: 16px; letter-spacing: .08em; }
.artifact-effect p,
.artifact-history { margin: 6px 0 0; color: #49351f; font-family: "FangSong", serif; font-size: 12px; line-height: 1.85; letter-spacing: .05em; }
.artifact-effect p { white-space: pre-line; }
.artifact-effect-skill { margin-top: 12px; }
.artifact-effect-skill h5 { display: flex; align-items: center; gap: 8px; margin: 0 0 5px; color: #6a251b; font-family: "STKaiti", serif; font-size: 15px; letter-spacing: .08em; }
.artifact-effect-skill h5 i { font-family: "FangSong", serif; font-size: 11px; font-style: normal; letter-spacing: .15em; color: #f4e3c2; background: #793023; border-radius: 3px; padding: 2px 7px; }
.artifact-effect-notes { margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(68, 43, 20, .4); }
.artifact-effect-notes::before { content: "使用限制"; display: block; margin-bottom: 4px; color: #6a251b; font-size: 12px; font-weight: 700; letter-spacing: .2em; }
.artifact-rule-details { margin-top: 16px; border-top: 1px solid rgba(68, 43, 20, .3); padding-top: 12px; color: #49351f; }
.artifact-rule-details summary { cursor: pointer; font-size: 13px; font-weight: 700; line-height: 1.8; }
.artifact-rule-details summary:focus-visible { outline: 2px solid #793023; outline-offset: 4px; }
.artifact-rule-details section { margin-top: 16px; }
.artifact-rule-details h5 { margin: 0 0 5px; color: #6a251b; font-size: 14px; }
.artifact-history { padding: 11px 4px 0; text-align: justify; }

.trajectory-list {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 13px;
  overflow-x: auto;
  padding-bottom: 3px;
}
.trajectory-list > div { position: relative; display: flex; flex: 1 0 108px; flex-direction: column; align-items: center; justify-content: center; min-height: 66px; border-top: 1px solid rgba(69,43,19,.34); border-bottom: 1px solid rgba(69,43,19,.34); background: rgba(89,56,24,.05); }
.trajectory-list i { display: grid; width: 19px; height: 19px; place-items: center; border: 1px solid #684323; border-radius: 50%; color: #665034; font-family: Georgia, serif; font-size: 7px; font-style: normal; }
.trajectory-list b { margin-top: 5px; color: #382713; font-family: "FangSong", serif; font-size: 11px; }
.trajectory-list span { position: absolute; right: -7px; color: #7a2e21; font-size: 14px; transform: rotate(-90deg); }

.artifact-dungeon-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.artifact-dungeon-links button { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-width: 0; padding: 12px; border: 1px solid rgba(70, 43, 19, .35); color: #382510; cursor: pointer; background: rgba(80, 48, 18, .07); text-align: left; transition: border-color 180ms ease, background 180ms ease, transform 180ms ease; }
.artifact-dungeon-links button:hover { border-color: rgba(112, 43, 30, .72); background: rgba(106, 46, 25, .11); transform: translateX(3px); }
.artifact-source-note { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; min-width:0; padding:12px; border:1px solid rgba(112,43,30,.48); color:#382510; background:linear-gradient(90deg,rgba(116,45,29,.12),rgba(80,48,18,.05)); }
.artifact-dungeon-links span { color: #7c2f23; font-size: 8px; letter-spacing: .08em; }
.artifact-dungeon-links b { min-width: 0; overflow: hidden; font-family: "STKaiti", serif; font-size: 14px; letter-spacing: .07em; text-overflow: ellipsis; white-space: nowrap; }
.artifact-dungeon-links i { color: #6d5a3b; font-family: Georgia, serif; font-size: 9px; font-style: normal; }

.artifact-rating { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; padding: 14px 0 3px; border-top: 1px solid rgba(67, 42, 18, .35); }
.artifact-rating span { color: #5f4e35; font-size: 9px; letter-spacing: .16em; }
.artifact-rating b { color: #763024; font-family: Georgia, serif; font-size: 13px; letter-spacing: .14em; }

@keyframes treasuryBreath { from { transform: scale(1.025); filter: saturate(.6) sepia(.08) contrast(1.1) brightness(.93); } to { transform: scale(1.055); filter: saturate(.72) sepia(.08) contrast(1.16) brightness(1.03); } }
@keyframes catalogUnseal { from { opacity: 0; transform: perspective(1000px) rotateX(5deg) scaleX(.94); filter: brightness(.45) blur(3px); } to { opacity: 1; transform: perspective(1000px) rotateX(0) scaleX(1); filter: brightness(1) blur(0); } }
@keyframes modalVeil { from { opacity: 0; } to { opacity: 1; } }
@keyframes dossierOpen { from { opacity: 0; transform: scale(.9) translateY(22px); filter: blur(5px); } to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); } }
@keyframes showcaseReveal { from { transform: scale(1.1); filter: saturate(.4) brightness(.42) blur(2px); } to { transform: scale(1); filter: saturate(.76) sepia(.06) contrast(1.08) brightness(.84); } }

@media (max-width: 1450px) {
  .treasure-main { width: calc(100% - 48px); }
  .treasure-header { grid-template-columns: minmax(190px, .8fr) minmax(430px, 1.2fr) minmax(240px, .8fr); padding-right: 32px; padding-left: 32px; }
  .artifact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .artifact-card { grid-template-rows: auto minmax(180px, 16vw) 1fr auto; }
  .artifact-modal { grid-template-columns: minmax(340px, .82fr) minmax(500px, 1.18fr); }
}

@media (max-width: 1180px) {
  .treasure-header { grid-template-columns: 175px 1fr 225px; min-height: 132px; }
  .treasure-heading { min-width: 390px; }
  .treasure-custodian { min-width: 215px; transform: scale(.9); transform-origin: right center; }
  .treasure-stats { grid-template-columns: 1.2fr repeat(8, 1fr); }
  .treasure-stats > div { gap: 5px; padding-right: 9px; padding-left: 9px; }
  .treasure-stats span { letter-spacing: .08em; }
  .archive-toolbar { grid-template-columns: 240px 1fr 95px; gap: 12px; }
  .artifact-categories { gap: 1px; }
  .artifact-categories button { padding: 0 4px; font-size: 12px; letter-spacing: .06em; }
  .artifact-rarities { gap: 2px; }
  .artifact-rarities button { min-width: 43px; padding-right: 5px; padding-left: 5px; font-size: 10px; }
  .catalog-book { padding-right: 36px; padding-left: 36px; }
  .artifact-card { min-height: 350px; }
  .artifact-modal { grid-template-columns: 38% 62%; width: 96vw; }
  .artifact-scroll-detail { padding-right: 35px; padding-left: 35px; }
}

@media (max-height: 760px) {
  .treasure-header { min-height: 118px; padding-top: 14px; padding-bottom: 18px; }
  .treasure-heading h1 { font-size: 38px; }
  .treasure-heading p { margin-top: 3px; }
  .treasure-stats { min-height: 62px; margin-top: 18px; }
  .treasure-stats > div { padding-top: 12px; padding-bottom: 12px; }
  .archive-toolbar { min-height: 62px; }
  .artifact-modal-backdrop { padding-top: 2vh; padding-bottom: 2vh; }
  .artifact-modal { height: 96vh; }
}

@media (prefers-reduced-motion: reduce) {
  .treasure-backdrop,
  .catalog-book,
  .artifact-card,
  .artifact-modal-backdrop,
  .artifact-modal,
  .artifact-showcase img { animation: none !important; }
}

@media (max-width:640px) {
  .artifact-modal {
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:160px minmax(0,1fr);
    width:96vw;
    height:94dvh;
  }
  .artifact-showcase { border-right:0; border-bottom:1px solid rgba(195,148,73,.31); }
  .artifact-showcase img { object-position:center 42%; }
  .artifact-showcase > .quality-tag { top:18px; left:20px; }
  .showcase-title { left:20px; right:20px; bottom:14px; padding-top:0; border-top:0; }
  .showcase-title h2 { font-size:28px; }
  .artifact-scroll-detail { padding:20px 20px 28px; }
  .artifact-attributes b { font-size:15px; }
  .artifact-effect p { font-size:13px; line-height:1.8; }
}

/* 必须置于奇珍录通用断点之后，避免独立抽奖页被图鉴三栏页头覆盖。 */
@media (max-width:1180px) {
  .treasure-header.treasure-draw-page-header { grid-template-columns:170px minmax(300px,1fr) 230px; }
  .treasure-draw-page .treasure-heading { min-width:300px; }
}

@media (max-width:820px) {
  .treasure-page.treasure-draw-page { width:100%; max-width:100vw; overflow-x:hidden; }
  .treasure-header.treasure-draw-page-header { grid-template-columns:1fr; gap:12px; padding:18px 22px 24px; }
  .treasure-draw-page-header .ink-back { justify-self:start; }
  .treasure-draw-page .treasure-heading { min-width:0; width:100%; }
  .treasure-draw-page .treasure-heading h1 { font-size:36px; }
  .draw-archive-link { justify-self:center; min-width:230px; }
  .treasure-draw-page-main { width:calc(100% - 24px); }
  .treasure-draw-page .treasure-draw-hall { width:100%; max-width:100%; }
  .treasure-draw-page .treasure-draw-header { grid-template-columns:45px minmax(0,1fr); padding:19px 17px; }
  .treasure-draw-page .treasure-draw-rates { gap:5px; padding-right:10px; padding-left:10px; }
  .treasure-draw-page .treasure-draw-rates > span { min-width:82px; }
  .treasure-draw-page .treasure-draw-stage { padding-right:17px; padding-left:17px; }
  .treasure-draw-page .treasure-draw-actions { padding-right:17px; padding-left:17px; }
  .treasure-draw-page .treasure-draw-actions > div,
  .treasure-draw-page .treasure-draw-actions > aside { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
  .treasure-draw-page .treasure-draw-actions button { width:100%; min-width:0; }
  .treasure-draw-page .treasure-award-desk .treasure-draw-recipient { grid-column:1 / -1; width:100%; min-width:0; }
  .treasure-draw-page .treasure-recipient-tools { grid-column:1 / -1; display:grid; grid-template-columns:minmax(0,1fr) auto; width:100%; }
}

/* ================================================================
   天命角色 · 三国人物卷宗
   ================================================================ */

.character-page {
  --role-paper: #d2bb86;
  --role-paper-deep: #aa8e5b;
  --role-ink: #28190c;
  --role-red: #792a21;
  --role-gold: #d4aa60;
  min-height: 100vh;
  padding-bottom: 70px;
}

.character-page-backdrop {
  position: fixed;
  z-index: -2;
  inset: 0;
  opacity: .28;
  background:
    linear-gradient(180deg, rgba(3,2,2,.18), rgba(5,3,2,.82) 75%, #050403),
    linear-gradient(90deg, rgba(0,0,0,.68), transparent 25% 75%, rgba(0,0,0,.68)),
    url("/assets/generated/entry-identity.png") center 20% / cover no-repeat;
  filter: saturate(.62) sepia(.08) contrast(1.12);
  animation: treasuryBreath 22s ease-in-out infinite alternate;
}

.character-system-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px,1fr) minmax(470px,1.2fr) minmax(270px,1fr);
  align-items: center;
  min-height: 148px;
  padding: 20px clamp(34px,5vw,90px) 24px;
  border-bottom: 1px solid rgba(180,136,68,.3);
  background: radial-gradient(ellipse at 50% 115%, rgba(141,85,27,.2), transparent 52%), linear-gradient(90deg,rgba(5,4,3,.97),rgba(16,10,5,.84) 50%,rgba(5,4,3,.97));
  box-shadow: 0 18px 48px rgba(0,0,0,.66);
}

.character-system-header::before,
.character-system-header::after { content:""; position:absolute; right:5%; left:5%; pointer-events:none; }
.character-system-header::before { bottom:10px; height:1px; background:linear-gradient(90deg,transparent,#6d4d27 14%,#d0a45d 50%,#6d4d27 86%,transparent); }
.character-system-header::after { bottom:-5px; width:72px; height:10px; margin:auto; border:1px solid #6f4f29; background:#100b06; clip-path:polygon(12% 0,88% 0,100% 50%,88% 100%,12% 100%,0 50%); }

.character-system-heading { position:relative; justify-self:center; min-width:440px; text-align:center; }
.character-system-heading::before,
.character-system-heading::after { content:"◆"; position:absolute; top:52%; color:rgba(184,138,67,.5); font-size:7px; }
.character-system-heading::before { left:0; }
.character-system-heading::after { right:0; }
.character-system-heading > span { color:rgba(197,157,88,.56); font-family:Georgia,serif; font-size:8px; letter-spacing:.42em; }
.character-system-heading h1 { margin:2px 0 0; color:#e2c686; font-family:"STKaiti","KaiTi",serif; font-size:clamp(36px,3vw,52px); font-weight:700; letter-spacing:.2em; line-height:1.08; text-shadow:0 1px 0 #ffefb5,0 4px 0 #5c3b15,0 10px 23px #000; }
.character-system-heading p { margin:7px 0 0; color:#95876b; font-family:"FangSong",serif; font-size:12px; letter-spacing:.3em; }

.character-header-token { justify-self:end; display:flex; align-items:center; min-width:290px; padding:11px 22px 11px 13px; border:1px solid rgba(174,132,66,.36); background:linear-gradient(100deg,rgba(70,45,19,.6),rgba(8,6,4,.82)); box-shadow:inset 0 0 18px #000; clip-path:polygon(8% 0,100% 0,94% 50%,100% 100%,8% 100%,0 50%); }
.character-header-token > span { display:grid; width:40px; height:42px; margin-right:13px; place-items:center; border:1px solid #7b3026; color:#ad4937; font-family:"STKaiti",serif; font-size:21px; transform:rotate(-4deg); }
.character-header-token small,.character-header-token b { display:block; }
.character-header-token small { color:#776c58; font-size:8px; letter-spacing:.18em; }
.character-header-token b { margin-top:3px; color:#c9b68d; font-family:"FangSong",serif; font-size:12px; font-weight:500; letter-spacing:.1em; }
.character-header-token button { flex:0 0 auto; margin-left:auto; padding:6px 8px; border:0; border-left:1px solid rgba(174,132,66,.3); color:#a99a7d; background:transparent; cursor:pointer; font-family:"FangSong",serif; font-size:11px; }
.character-header-token button:hover { color:#e4cf9f; }

.character-home-main,
.character-create-main,
.character-detail-main,
.character-edit-main { position:relative; z-index:4; width:min(1540px,calc(100% - 7vw)); margin:30px auto 0; }

.character-prologue { display:grid; grid-template-columns:58px minmax(0,1fr) auto; align-items:center; gap:18px; min-height:92px; padding:17px 27px; border:1px solid rgba(171,129,63,.32); color:#b8a783; background:linear-gradient(90deg,rgba(62,40,17,.76),rgba(8,6,4,.88) 15% 85%,rgba(62,40,17,.76)); box-shadow:inset 0 0 24px #000,0 12px 28px rgba(0,0,0,.38); clip-path:polygon(1% 0,99% 0,100% 50%,99% 100%,1% 100%,0 50%); animation:archiveReveal 650ms ease both; }
.character-prologue-seal { display:grid; width:48px; height:48px; place-items:center; border:1px solid #793027; color:#b04a38; font-family:"STKaiti",serif; font-size:24px; transform:rotate(-3deg); }
.character-prologue small { color:#716756; font-family:Georgia,serif; font-size:7px; letter-spacing:.24em; }
.character-prologue h2 { margin:2px 0; color:#d8bf84; font-family:"STKaiti",serif; font-size:24px; font-weight:600; letter-spacing:.13em; }
.character-prologue p { margin:0; color:#827662; font-family:"FangSong",serif; font-size:11px; line-height:1.7; letter-spacing:.05em; }
.character-prologue > b { color:#a68c60; font-family:"FangSong",serif; font-size:10px; font-weight:500; letter-spacing:.16em; }
.character-growth-rules { margin:14px 0; padding:12px 16px; border:1px solid rgba(171,129,63,.3); background:rgba(25,17,9,.72); color:#c4b28c; font-family:"FangSong",serif; font-size:13px; line-height:1.8; }
.character-growth-rules summary { cursor:pointer; color:#e0c687; font-weight:600; }
.character-growth-rules summary:focus-visible { outline:2px solid #d9b562; outline-offset:4px; }
.character-growth-rules p { margin:9px 0 0; overflow-wrap:anywhere; }
.character-growth-breakdown { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin:12px 0; }
.character-growth-breakdown > div { border-left:1px solid rgba(171,129,63,.35); padding-left:8px; }
.character-growth-breakdown dt { color:#baa681; font-size:11px; }
.character-growth-breakdown dd { margin:0; color:#ecd397; font-family:Georgia,"FangSong",serif; font-size:17px; font-variant-numeric:tabular-nums; }
@media(max-width:600px) { .character-growth-breakdown { grid-template-columns:repeat(3,minmax(0,1fr)); } }

.character-empty-state { position:relative; display:flex; min-height:570px; margin-top:24px; flex-direction:column; align-items:center; justify-content:center; overflow:hidden; border:1px solid rgba(169,126,61,.34); background:radial-gradient(circle at 50% 46%,rgba(97,61,24,.34),transparent 28%),linear-gradient(115deg,rgba(57,37,17,.46),rgba(6,5,4,.92) 32% 68%,rgba(57,37,17,.46)); box-shadow:inset 0 0 0 5px rgba(6,4,3,.76),inset 0 0 0 6px rgba(189,145,73,.13),inset 0 0 70px #000,0 30px 60px rgba(0,0,0,.54); clip-path:polygon(1.2% 0,98.8% 0,100% 3%,99.3% 97%,98% 100%,2% 100%,.7% 97%,0 3%); animation:catalogUnseal 800ms cubic-bezier(.18,.78,.2,1) both; }
.character-empty-state::before { content:""; position:absolute; width:440px; height:440px; border:1px solid rgba(189,143,70,.1); border-radius:50%; background:repeating-conic-gradient(from 0deg,rgba(180,129,56,.08) 0 1deg,transparent 1deg 29deg); animation:orbitTurn 52s linear infinite; }
.empty-avatar-orbit { position:relative; display:grid; width:170px; height:170px; place-items:center; border:1px solid #71512d; border-radius:50%; background:radial-gradient(circle,#30200f,#080604 67%); box-shadow:inset 0 0 27px #000,0 0 26px rgba(190,119,28,.13); }
.empty-avatar-orbit::before,.empty-avatar-orbit::after { content:""; position:absolute; border:1px solid rgba(199,151,76,.25); border-radius:50%; }
.empty-avatar-orbit::before { inset:-14px; border-style:dashed; animation:orbitTurn 26s linear infinite; }
.empty-avatar-orbit::after { inset:23px; }
.empty-avatar-orbit i { position:absolute; width:7px; height:7px; border-radius:50%; background:#d3a252; box-shadow:0 0 9px #c56c28; }
.empty-avatar-orbit i:first-child { top:-4px; }
.empty-avatar-orbit i:nth-child(2) { right:4px; bottom:25px; }
.empty-avatar-orbit span { color:#b59761; font-family:"STKaiti",serif; font-size:58px; opacity:.78; }
.character-empty-state > small { position:relative; margin-top:32px; color:#746a58; font-family:Georgia,serif; font-size:8px; letter-spacing:.3em; }
.character-empty-state h2 { position:relative; margin:7px 0 2px; color:#dfc78d; font-family:"STKaiti",serif; font-size:30px; font-weight:600; letter-spacing:.16em; }
.character-empty-state p { position:relative; margin:0 0 22px; color:#857963; font-family:"FangSong",serif; font-size:12px; letter-spacing:.14em; }

.role-create-button,.role-gold-button,.role-secondary-button,.role-danger-button,.role-text-danger { position:relative; height:43px; cursor:pointer; font-family:"FangSong",serif; letter-spacing:.12em; transition:filter 180ms ease,transform 160ms ease,border-color 180ms ease,color 180ms ease; }
.role-create-button { min-width:180px; height:50px; overflow:hidden; border:1px solid #986c30; color:#1d1105; background:linear-gradient(180deg,#ead18a,#bd893b 58%,#74501e); box-shadow:inset 0 0 0 2px rgba(49,29,8,.62),0 9px 20px rgba(0,0,0,.48),0 0 17px rgba(202,131,37,.16); clip-path:polygon(7% 0,93% 0,100% 50%,93% 100%,7% 100%,0 50%); font-family:"STKaiti",serif; font-size:16px; font-weight:700; }
.role-create-button > span { position:absolute; top:-55%; left:-25%; width:22%; height:210%; background:rgba(255,255,255,.42); filter:blur(5px); transform:rotate(20deg); animation:goldSheen 3.4s ease-in-out infinite; }
.role-create-button:hover:not(:disabled),.role-gold-button:hover:not(:disabled) { filter:brightness(1.13); transform:translateY(-2px); }
.role-create-button:disabled { opacity:.46; cursor:not-allowed; filter:grayscale(.5); }
.role-create-button.is-small { min-width:155px; height:43px; font-size:14px; }
.role-gold-button { min-width:118px; padding:0 18px; border:1px solid #8c622c; color:#201407; background:linear-gradient(180deg,#dfc27b,#a87836); box-shadow:inset 0 0 0 1px rgba(255,227,160,.2),0 5px 12px rgba(0,0,0,.3); }
.role-secondary-button { min-width:108px; padding:0 16px; border:1px solid rgba(159,117,57,.46); color:#aa9a7d; background:linear-gradient(90deg,rgba(61,39,17,.62),rgba(9,7,5,.78)); }
.role-secondary-button:hover { border-color:#b98640; color:#e6cc91; }
.role-text-danger { min-width:88px; padding:0 12px; border:1px solid rgba(123,48,38,.28); color:#9e5b4c; background:transparent; }
.role-text-danger:hover { border-color:#9b3d30; color:#d97860; }
.role-danger-button { min-width:118px; padding:0 18px; border:1px solid #8d3328; color:#f0d9b1; background:linear-gradient(180deg,#8f3b30,#4f1c18); box-shadow:0 5px 12px rgba(0,0,0,.34); }

.character-list-toolbar { display:grid; grid-template-columns:auto minmax(340px,520px) minmax(0,auto); align-items:center; gap:22px; margin-top:24px; padding:0 5px 15px; border-bottom:1px solid rgba(174,132,67,.23); }
.character-list-count { display:flex; align-items:baseline; gap:10px; color:#9c8a68; font-family:"FangSong",serif; font-size:11px; letter-spacing:.15em; white-space:nowrap; }
.character-list-toolbar b { color:#e0bc6f; font-family:Georgia,serif; font-size:22px; font-weight:400; }
.character-account-search { position:relative; display:grid; grid-template-columns:38px 112px minmax(90px,1fr) auto auto auto; align-items:center; min-width:0; height:48px; overflow:hidden; border:1px solid rgba(183,137,67,.38); color:#9e8a67; background:linear-gradient(90deg,rgba(72,44,18,.72),rgba(8,6,4,.9) 28% 76%,rgba(54,33,15,.64)); box-shadow:inset 0 0 18px rgba(0,0,0,.72),0 7px 18px rgba(0,0,0,.25); clip-path:polygon(9px 0,calc(100% - 9px) 0,100% 50%,calc(100% - 9px) 100%,9px 100%,0 50%); transition:border-color 180ms ease,box-shadow 180ms ease,filter 180ms ease; }
.character-account-search:focus-within { border-color:rgba(222,174,91,.8); box-shadow:inset 0 0 18px rgba(0,0,0,.72),0 0 18px rgba(208,143,46,.13); filter:brightness(1.06); }
.character-search-seal { display:grid; width:27px; height:29px; margin-left:9px; place-items:center; border:1px solid rgba(133,50,39,.76); color:#bf5945; font-family:"STKaiti",serif; font-size:15px; transform:rotate(-3deg); }
.character-search-copy { display:flex; min-width:0; flex-direction:column; padding:0 12px 0 7px; border-right:1px solid rgba(178,132,64,.2); }
.character-search-copy small { color:#695f50; font-family:Georgia,serif; font-size:6px; letter-spacing:.16em; white-space:nowrap; }
.character-search-copy b { margin-top:2px; color:#b5a078; font-family:"FangSong",serif; font-size:10px; font-weight:500; letter-spacing:.12em; }
.character-account-search input { min-width:0; height:100%; padding:0 12px; border:0; outline:0; color:#ead29a; caret-color:#d09a49; background:transparent; font-family:"FangSong",serif; font-size:13px; letter-spacing:.08em; }
.character-account-search input::placeholder { color:#6f6657; opacity:1; }
.character-account-search input::-webkit-search-cancel-button { display:none; }
.character-account-search > button { width:34px; height:30px; margin-right:4px; border:1px solid rgba(126,49,39,.44); color:#ac6858; cursor:pointer; background:rgba(80,31,23,.2); font-family:"STKaiti",serif; transition:border-color 160ms ease,color 160ms ease,background 160ms ease; }
.character-account-search > button:hover { border-color:#994035; color:#ef9a82; background:rgba(117,43,31,.28); }
.character-account-search > .character-search-submit { width:auto; min-width:48px; padding:0 8px; border-color:rgba(174,128,59,.55); color:#d5b26b; }
.character-account-search > em { min-width:48px; padding-right:13px; color:#827256; font-family:Georgia,"FangSong",serif; font-size:8px; font-style:normal; text-align:right; white-space:nowrap; }
.character-account-search.has-query > em { color:#d7af63; }
.character-toolbar-actions { flex-wrap:wrap; justify-content:flex-end; }
.character-level-sort { display:grid; grid-template-columns:28px auto; grid-template-rows:auto auto; align-items:center; min-width:116px; height:43px; padding:5px 10px; border:1px solid rgba(174,128,59,.48); color:#ad9a74; cursor:pointer; background:linear-gradient(90deg,rgba(67,42,18,.72),rgba(8,6,4,.87)); box-shadow:inset 0 0 13px #000; font-family:"FangSong",serif; text-align:left; transition:border-color 160ms ease,filter 160ms ease,transform 160ms ease; }
.character-level-sort > span { grid-row:1 / 3; display:grid;width:23px;height:25px;place-items:center;border:1px solid rgba(131,49,38,.75);color:#b75240;font-family:"STKaiti",serif;font-size:13px;transform:rotate(-3deg); }
.character-level-sort small { color:#6f6554;font-size:7px;letter-spacing:.1em; }
.character-level-sort b { color:#d2b574!important;font-family:"FangSong",serif!important;font-size:10px!important;font-weight:500!important;letter-spacing:.09em; }
.character-level-sort:hover { border-color:#c18d42;filter:brightness(1.12);transform:translateY(-1px); }
.character-list-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:20px; }
.character-search-empty { display:grid; grid-template-columns:62px minmax(0,1fr) auto; align-items:center; gap:18px; min-height:126px; margin-top:20px; padding:22px 28px; border:1px solid rgba(171,129,63,.32); background:linear-gradient(100deg,rgba(74,43,18,.52),rgba(8,6,4,.93) 36% 82%,rgba(51,31,15,.54)); box-shadow:inset 0 0 24px #000,0 15px 30px rgba(0,0,0,.34); clip-path:polygon(1% 0,99% 0,100% 50%,99% 100%,1% 100%,0 50%); }
.character-search-empty > span { display:grid; width:50px; height:52px; place-items:center; border:1px solid #793027; color:#b04a38; font-family:"STKaiti",serif; font-size:25px; transform:rotate(-3deg); }
.character-search-empty small { color:#716756; font-family:Georgia,serif; font-size:7px; letter-spacing:.23em; }
.character-search-empty h3 { margin:4px 0 2px; color:#d9bf83; font-family:"STKaiti",serif; font-size:21px; font-weight:500; letter-spacing:.09em; }
.character-search-empty p { margin:0; color:#897b63; font-family:"FangSong",serif; font-size:10px; letter-spacing:.05em; }
.character-search-empty button { min-width:132px; height:39px; border:1px solid rgba(174,127,59,.55); color:#c6ae7b; cursor:pointer; background:linear-gradient(90deg,rgba(71,43,17,.7),rgba(18,12,7,.8)); font-family:"FangSong",serif; font-size:11px; letter-spacing:.12em; transition:border-color 160ms ease,color 160ms ease,transform 160ms ease; }
.character-search-empty button:hover { border-color:#c18b41; color:#f0d28d; transform:translateY(-1px); }
.character-list-card { position:relative; display:grid; grid-template-columns:240px minmax(0,1fr); min-height:355px; overflow:hidden; border:1px solid rgba(177,133,66,.4); background:linear-gradient(115deg,rgba(60,38,17,.42),rgba(7,5,4,.94) 42%); box-shadow:inset 0 0 0 4px rgba(5,3,2,.76),inset 0 0 0 5px rgba(184,139,69,.13),0 20px 40px rgba(0,0,0,.46); clip-path:polygon(1.5% 0,98.5% 0,100% 3%,99% 97%,97.5% 100%,2.5% 100%,1% 97%,0 3%); animation:cardEnter 650ms ease both; }
.character-list-card::after { content:""; position:absolute; inset:9px; border:1px solid rgba(205,163,87,.1); pointer-events:none; }
.character-list-portrait { position:relative; min-width:0; overflow:hidden; border-right:1px solid rgba(185,139,68,.3); }
.character-list-portrait::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 58%,rgba(5,3,2,.94)),linear-gradient(90deg,transparent 70%,rgba(5,3,2,.75)); pointer-events:none; }
.character-list-portrait > .character-avatar-sprite { width:100%; height:100%; }
.character-list-portrait > span { position:absolute; z-index:3; right:14px; bottom:14px; left:14px; color:#8d7958; font-family:Georgia,serif; font-size:7px; letter-spacing:.17em; }
.character-list-body { min-width:0; padding:25px 25px 20px; }
.character-list-body > header { display:flex; align-items:flex-start; justify-content:space-between; padding-bottom:13px; border-bottom:1px solid rgba(163,121,59,.22); }
.character-list-body header small { color:#716756; font-family:Georgia,serif; font-size:7px; letter-spacing:.22em; }
.character-list-body h2 { margin:2px 0 0; color:#e0c589; font-family:"STKaiti",serif; font-size:29px; font-weight:600; letter-spacing:.13em; }
.character-list-body h2,.profile-identity-panel h2,.edit-character-identity h2 { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.character-account-status { display:inline-flex; min-height:22px; align-items:center; gap:6px; padding:3px 8px; border:1px solid rgba(92,137,78,.48); color:#a9ca95; background:rgba(35,69,30,.2); font-family:"FangSong",serif; font-size:9px; font-weight:400; letter-spacing:.08em; line-height:1; }
.character-account-status > i { width:6px; height:6px; border-radius:50%; background:#85b46e; box-shadow:0 0 8px rgba(133,180,110,.65); }
.character-account-status.is-inactive { border-color:rgba(178,77,59,.58); color:#df927f; background:rgba(89,29,21,.22); }
.character-account-status.is-inactive > i { background:#c65f4b; box-shadow:0 0 8px rgba(198,95,75,.64); }
.character-account-status.is-unbound { border-color:rgba(130,118,94,.45); color:#93866e; background:rgba(56,49,38,.2); }
.character-account-status.is-unbound > i { background:#81745d; box-shadow:none; }
.character-qualification { --qualification:#b69a67; --qualification-rgb:182,154,103; position:relative; display:inline-flex; align-items:center; gap:5px; padding:4px 8px 3px; border:1px solid rgba(var(--qualification-rgb),.5); color:var(--qualification); background:linear-gradient(100deg,rgba(var(--qualification-rgb),.14),rgba(9,6,4,.8)); box-shadow:inset 0 0 12px rgba(var(--qualification-rgb),.08),0 0 10px rgba(var(--qualification-rgb),.08); font-family:"FangSong",serif; font-size:9px; font-weight:400; letter-spacing:.08em; line-height:1; text-shadow:none; vertical-align:middle; }
.character-qualification > i { width:5px; height:5px; border-radius:50%; background:var(--qualification); box-shadow:0 0 8px rgba(var(--qualification-rgb),.6); }
.character-qualification > b { color:inherit; font:inherit; font-weight:500; white-space:nowrap; }
.character-qualification > em { padding-left:5px; border-left:1px solid rgba(var(--qualification-rgb),.32); color:inherit; font-family:Georgia,serif; font-size:8px; font-style:normal; letter-spacing:0; }
.qualification-ordinary { --qualification:#b9a174; --qualification-rgb:185,161,116; }
.qualification-fine { --qualification:#a5d48b; --qualification-rgb:126,190,102; }
.qualification-superior { --qualification:#83cfcb; --qualification-rgb:85,190,184; }
.qualification-legendary { --qualification:#e39d62; --qualification-rgb:224,119,59; box-shadow:inset 0 0 14px rgba(var(--qualification-rgb),.12),0 0 13px rgba(var(--qualification-rgb),.22); }
.qualification-mythic { --qualification:#ffe5a1; --qualification-rgb:255,216,116; background:linear-gradient(100deg,rgba(126,46,29,.35),rgba(202,145,52,.2),rgba(9,6,4,.82)); box-shadow:inset 0 0 17px rgba(255,226,150,.18),0 0 18px rgba(244,184,74,.38); animation:qualificationMythicGlow 2.4s ease-in-out infinite alternate; }
@keyframes qualificationMythicGlow { from { filter:brightness(.94); } to { filter:brightness(1.2); } }
.character-list-body header > span { color:#d4a85b; font-family:Georgia,serif; font-size:16px; }
.character-account-type { display:inline-flex; align-items:center; font-size:12px; font-weight:400; letter-spacing:0; color:#9c8c70; white-space:nowrap; }
.character-card-mandate { display:flex; align-items:baseline; gap:9px; margin-top:12px; color:#786e5c; font-size:9px; letter-spacing:.1em; }
.character-card-mandate b { color:#e0bd70; font-family:Georgia,serif; font-size:21px; font-weight:400; }
.character-card-mandate small { color:#9c8c70; font-family:"FangSong",serif; font-size:9px; }
.character-card-mandate i { margin-left:auto; color:#7c6e55; font-style:normal; }
.character-growth-strip { display:grid; grid-template-columns:auto minmax(70px,1fr) auto; align-items:center; gap:9px; margin-top:8px; }
.character-growth-strip > span b,.character-growth-strip > span small { display:block; }
.character-growth-strip > span b { color:#ac9161; font-family:Georgia,"FangSong",serif; font-size:9px; font-weight:400; }
.character-growth-strip > span small { margin-top:1px; color:#6f6554; font-family:"FangSong",serif; font-size:7px; }
.character-growth-strip > i { position:relative; height:5px; overflow:hidden; border:1px solid rgba(153,111,52,.27); background:#080604; }
.character-growth-strip > i em { position:absolute; inset:0 auto 0 0; background:linear-gradient(90deg,#6b271e,#ba7c31,#e4c47d); box-shadow:0 0 8px rgba(211,145,50,.35); }
.character-growth-strip > strong { color:#897759; font-family:Georgia,"FangSong",serif; font-size:8px; font-weight:400; white-space:nowrap; }
.character-card-stats { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); margin-top:12px; border:1px solid rgba(156,115,55,.22); }
.character-card-stats > div { display:flex; min-width:0; flex-direction:column; align-items:center; padding:9px 3px; border-right:1px solid rgba(156,115,55,.18); }
.character-card-stats > div:last-child { border-right:0; }
.character-card-stats span { color:#756a58; font-size:8px; }
.character-card-stats b { margin-top:2px; color:#c7ad78; font-family:Georgia,serif; font-size:14px; font-weight:400; }
.character-card-equipment { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin-top:11px; }
.character-card-equipment > :nth-child(5) { border-color:rgba(171,91,52,.34); background:linear-gradient(90deg,rgba(79,29,18,.26),rgba(37,23,12,.3)); }
.character-card-equipment > :nth-child(6) { border-color:rgba(76,121,103,.42); background:linear-gradient(90deg,rgba(23,68,57,.28),rgba(35,28,14,.3)); }
.equipment-empty,.equipment-mini { display:flex; align-items:center; min-width:0; min-height:34px; padding:5px 8px; border:1px solid rgba(151,111,54,.18); color:#685f50; font-family:"FangSong",serif; font-size:9px; }
.equipment-mini { color:#a9956d; }
.equipment-mini img { width:25px; height:25px; margin-right:7px; object-fit:cover; filter:saturate(.68) brightness(.8); }
.equipment-mini b { overflow:hidden; font-weight:500; text-overflow:ellipsis; white-space:nowrap; }
.character-travel-actions { display:grid; grid-template-columns:minmax(82px,1fr) repeat(2,minmax(96px,112px)); align-items:center; gap:6px; margin-top:10px; padding:5px; border:1px solid rgba(167,124,58,.22); background:linear-gradient(90deg,rgba(14,9,5,.72),rgba(67,43,18,.23),rgba(14,9,5,.72)); }
.character-travel-actions > span { display:flex; min-width:0; align-items:center; color:#8f7b59; font-family:"FangSong",serif; font-size:9px; letter-spacing:.08em; white-space:nowrap; }
.character-travel-actions > span i { display:grid; width:24px; height:24px; margin-right:7px; place-items:center; border:1px solid rgba(133,55,42,.64); color:#b35b43; font-family:"STKaiti",serif; font-size:13px; font-style:normal; transform:rotate(-3deg); }
.character-travel-actions > span small { overflow:hidden; font-size:9px; text-overflow:ellipsis; }
.character-travel-actions > button { position:relative; height:30px; padding:0 7px; overflow:hidden; border:1px solid rgba(170,125,57,.44); color:#c8ae76; cursor:pointer; background:linear-gradient(180deg,rgba(81,51,20,.72),rgba(22,14,8,.9)); font-family:"FangSong",serif; font-size:10px; letter-spacing:.08em; transition:border-color 160ms ease,color 160ms ease,transform 160ms ease,filter 160ms ease; }
.character-travel-actions > button small { margin-left:6px; color:#75664e; font-size:7px; letter-spacing:.04em; }
.character-travel-actions > button:hover { border-color:#c58e42; color:#f1d28c; filter:brightness(1.12); transform:translateY(-1px); }
.character-travel-actions > button.is-free-travel { box-shadow:inset 2px 0 0 rgba(196,137,54,.5); }
.character-travel-actions > button.is-dungeon-travel { border-color:rgba(107,123,102,.33); color:#a69d82; background:linear-gradient(180deg,rgba(48,60,47,.44),rgba(18,16,10,.9)); }
.character-travel-actions > button.is-dungeon-travel:hover { border-color:rgba(147,164,132,.62); color:#d8cfac; }
.character-list-body > footer { display:grid; gap:7px; margin-top:14px; }
.character-card-primary-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
.character-card-primary-actions > button { width:100%; min-width:0; padding-right:10px; padding-left:10px; }
.character-card-account-actions { display:flex; align-items:center; justify-content:flex-end; gap:7px; padding-top:7px; border-top:1px solid rgba(157,115,56,.16); }
.character-card-account-actions > button { min-width:108px; }
.character-account-activate { position:relative; height:38px; padding:0 17px; border:1px solid #9d7337; color:#211507; cursor:pointer; background:linear-gradient(180deg,#d8b76d,#a97534); box-shadow:inset 0 0 0 1px rgba(255,226,156,.16); font-family:"FangSong",serif; font-weight:700; letter-spacing:.1em; transition:filter 160ms ease,transform 160ms ease; }
.character-account-activate:hover:not(:disabled) { filter:brightness(1.13); transform:translateY(-1px); }
.character-account-activate:disabled { opacity:.5; cursor:wait; }
.character-card-account-actions .role-text-danger { height:38px; margin:0; }

.character-avatar-sprite { position:relative; overflow:hidden; background:#110b06; isolation:isolate; }
.character-avatar-sprite > img { display:block; width:100%; height:100%; object-fit:cover; object-position:50% 36%; user-select:none; -webkit-user-drag:none; }
.character-avatar-sprite::after { position:absolute; z-index:2; inset:0; border:1px solid rgba(224,181,96,.1); background:linear-gradient(180deg,rgba(225,174,84,.04),transparent 32% 72%,rgba(3,2,1,.2)); content:""; pointer-events:none; }

.role-confirm-backdrop { position:fixed; z-index:120; inset:0; display:grid; place-items:center; padding:4vh 3vw; background:rgba(2,2,2,.84); backdrop-filter:blur(12px) saturate(.65); animation:modalVeil 240ms ease both; }
.role-confirm-dialog { position:relative; width:min(480px,92vw); padding:34px 38px 31px; overflow:hidden; border:1px solid rgba(207,161,83,.52); color:#cbbb99; background:linear-gradient(115deg,rgba(76,49,20,.45),rgba(8,6,4,.97) 42%); box-shadow:inset 0 0 0 4px #080503,inset 0 0 0 5px rgba(211,167,88,.17),0 30px 80px #000; clip-path:polygon(3% 0,97% 0,100% 8%,98% 92%,95% 100%,5% 100%,2% 92%,0 8%); text-align:center; animation:dossierOpen 430ms cubic-bezier(.18,.78,.22,1) both; }
.role-confirm-dialog::before { content:""; position:absolute; inset:10px; border:1px solid rgba(203,158,80,.13); pointer-events:none; }
.role-confirm-seal { position:relative; display:grid; width:52px; height:52px; margin:0 auto 14px; place-items:center; border:1px solid #7d3026; color:#b84d3a; font-family:"STKaiti",serif; font-size:25px; transform:rotate(-4deg); }
.role-confirm-dialog > small { color:#716756; font-family:Georgia,serif; font-size:7px; letter-spacing:.28em; }
.role-confirm-dialog h2 { margin:5px 0 16px; color:#e1c78b; font-family:"STKaiti",serif; font-size:27px; font-weight:600; letter-spacing:.13em; }
.role-confirm-lines { padding:13px 15px; border-top:1px solid rgba(159,117,57,.22); border-bottom:1px solid rgba(159,117,57,.22); background:rgba(0,0,0,.16); }
.role-confirm-lines p { margin:4px 0; color:#a99a7d; font-family:"FangSong",serif; font-size:12px; letter-spacing:.06em; }
.role-confirm-actions { display:flex; justify-content:center; gap:10px; margin-top:20px; }
.role-confirm-dialog.is-danger { border-color:rgba(157,62,48,.6); }
.role-confirm-dialog.is-danger .role-confirm-seal { border-color:#96362b; color:#d05b47; }
.role-confirm-actions button:disabled { opacity:.4; cursor:not-allowed; }
.inventory-discard-quantity { display:grid; justify-items:center; gap:10px; margin-top:18px; }
.inventory-discard-quantity label { color:#dfc38b; font-size:14px; }
.inventory-discard-quantity input { width:120px; padding:10px 12px; border:1px solid #8e6e38; border-radius:2px; background:#110d08; color:#f4d792; font:600 22px Georgia,serif; text-align:center; }
.inventory-discard-quantity input:focus-visible { outline:2px solid #cfad60; outline-offset:3px; }
.inventory-discard-quantity input[aria-invalid="true"] { border-color:#d05b47; }
.inventory-discard-quantity p { margin:2px 0; color:#c5b28e; font-size:13px; line-height:1.6; }
.inventory-discard-quantity p b { color:#f0cf87; }
.inventory-discard-quantity small { max-width:100%; color:#a99a7d; font-size:11px; line-height:1.6; }
.account-activation-input { display:grid; gap:8px; margin-top:18px; text-align:left; }
.account-activation-input label { color:#dfc38b; font-size:12px; }
.account-activation-input input { width:100%; height:44px; padding:0 12px; border:1px solid #8e6e38; border-radius:2px; outline:0; color:#f4d792; background:#110d08; font-size:15px; }
.account-activation-input input:focus { border-color:#cfad60; box-shadow:0 0 0 2px rgba(207,173,96,.12); }
.account-activation-input input[aria-invalid="true"] { border-color:#d05b47; }
.account-activation-input small { color:#8f8065; font-size:10px; }
.account-activation-input p { margin:0; color:#dc8f7d; font-size:11px; }
.masked-phone-field { position:relative; display:block; min-width:0; }
.masked-phone-field > input { width:100%; color:transparent!important; caret-color:#d2aa62; font-family:Consolas,"Courier New",monospace!important; letter-spacing:.08em!important; }
.masked-phone-field > input::selection { color:transparent; background:rgba(202,159,78,.3); }
.masked-phone-display { position:absolute; inset:0; display:flex; align-items:center; overflow:hidden; padding:0 12px; color:#f4d792; pointer-events:none; white-space:nowrap; font:15px Consolas,"Courier New",monospace; letter-spacing:.08em; }
.masked-phone-display.is-placeholder { color:#786c57; font-family:"Microsoft YaHei",sans-serif; font-size:12px; letter-spacing:0; }

.travel-export-backdrop { position:fixed; z-index:160; inset:0; display:grid; place-items:center; padding:3vh 3vw; overflow:auto; background:radial-gradient(circle at 50% 36%,rgba(116,75,28,.2),transparent 34%),rgba(2,2,2,.86); backdrop-filter:blur(13px) saturate(.7); animation:modalVeil 240ms ease both; }
.travel-export-dialog { position:relative; width:min(700px,94vw); max-height:94vh; padding:31px 36px 28px; overflow:auto; border:1px solid rgba(213,169,88,.6); color:#cdbc98; background:radial-gradient(circle at 76% 0,rgba(126,79,27,.25),transparent 35%),linear-gradient(128deg,#432a14,#0b0805 38% 72%,#35210f); box-shadow:inset 0 0 0 4px #080503,inset 0 0 0 5px rgba(218,173,87,.16),inset 0 0 70px rgba(0,0,0,.62),0 32px 95px #000; clip-path:polygon(2% 0,98% 0,100% 4%,99% 96%,97% 100%,3% 100%,1% 96%,0 4%); animation:dossierOpen 430ms cubic-bezier(.18,.78,.22,1) both; }
.travel-export-dialog.is-dungeon-select { width:min(860px,96vw); }
.travel-export-dialog::before { position:absolute; inset:10px; border:1px solid rgba(214,170,86,.12); content:""; pointer-events:none; }
.travel-export-close { position:absolute; z-index:2; top:17px; right:21px; display:grid; width:30px; height:30px; padding:0; place-items:center; border:1px solid rgba(151,109,51,.36); color:#8f8066; cursor:pointer; background:rgba(8,6,4,.62); font-family:Georgia,serif; font-size:20px; line-height:1; transition:border-color 160ms ease,color 160ms ease; }
.travel-export-close:hover { border-color:#b9843c; color:#e3c785; }
.travel-export-dialog > header { position:relative; display:grid; grid-template-columns:56px minmax(0,1fr); align-items:center; gap:16px; padding:0 40px 17px 0; border-bottom:1px solid rgba(177,130,61,.25); }
.travel-export-dialog > header > span { display:grid; width:52px; height:52px; place-items:center; border:1px solid #7f3529; color:#bd5742; font-family:"STKaiti",serif; font-size:25px; transform:rotate(-3deg); }
.travel-export-dialog > header small { color:#756852; font-family:Georgia,serif; font-size:7px; letter-spacing:.25em; }
.travel-export-dialog > header h2 { margin:3px 0 0; color:#e5cb8d; font-family:"STKaiti",serif; font-size:27px; font-weight:600; letter-spacing:.12em; }
.travel-export-dialog > header p { margin:3px 0 0; color:#8c7d61; font-family:"FangSong",serif; font-size:10px; letter-spacing:.08em; }
.travel-export-origin { position:relative; display:flex; align-items:center; gap:9px; margin-top:14px; padding:8px 10px; border:1px solid rgba(160,117,52,.2); background:rgba(0,0,0,.18); font-family:"FangSong",serif; font-size:9px; }
.travel-export-origin span { color:#735f42; letter-spacing:.12em; }
.travel-export-origin b { padding-left:9px; border-left:1px solid rgba(164,120,54,.22); color:#bca373; font-weight:500; }
.travel-export-origin.is-dungeon-origin { flex-wrap:wrap; }
.travel-export-text { position:relative; display:block; width:100%; min-height:340px; margin-top:10px; padding:19px 21px; resize:vertical; border:1px solid rgba(185,137,63,.33); outline:0; color:#dbc69b; caret-color:#d5a54d; background:linear-gradient(110deg,rgba(8,6,4,.92),rgba(31,21,11,.86)); box-shadow:inset 0 0 28px rgba(0,0,0,.6); font-family:"FangSong","SimSun",serif; font-size:13px; line-height:1.78; letter-spacing:.045em; scrollbar-color:#765124 #171008; }
.travel-export-text:focus { border-color:rgba(216,165,78,.64); box-shadow:inset 0 0 28px rgba(0,0,0,.6),0 0 0 1px rgba(216,165,78,.09); }
.travel-export-dialog > footer { position:relative; display:flex; justify-content:flex-end; gap:9px; margin-top:16px; }
.travel-export-dialog > footer .role-gold-button { min-width:138px; }
.travel-export-dialog > footer .role-gold-button.is-copied { color:#14200f; background:linear-gradient(180deg,#d7ce8b,#779052); }
.dungeon-travel-intro { position:relative; display:grid; grid-template-columns:50px minmax(0,1fr); align-items:center; gap:14px; margin-top:16px; padding:13px 15px; border:1px solid rgba(146,113,60,.2); background:linear-gradient(90deg,rgba(64,40,17,.3),rgba(0,0,0,.12)); }
.dungeon-travel-intro > span { display:grid; width:40px; height:40px; place-items:center; border:1px solid rgba(131,52,40,.7); color:#b4523f; font-family:"STKaiti",serif; font-size:19px; transform:rotate(-3deg); }
.dungeon-travel-intro b { color:#d4bd88; font-family:"STKaiti",serif; font-size:18px; font-weight:500; letter-spacing:.1em; }
.dungeon-travel-intro p { margin:3px 0 0; color:#8f8065; font-family:"FangSong",serif; font-size:10px; letter-spacing:.04em; }
.dungeon-travel-choice-grid { position:relative; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:10px; }
.dungeon-travel-choice-grid > button { position:relative; display:grid; min-height:92px; padding:7px; overflow:hidden; grid-template-columns:110px minmax(0,1fr) auto; align-items:center; gap:12px; border:1px solid rgba(159,117,55,.3); color:#c3ad7e; cursor:pointer; background:linear-gradient(110deg,rgba(17,11,6,.95),rgba(50,31,14,.78)); text-align:left; transition:border-color 180ms ease,transform 180ms ease,filter 180ms ease; }
.dungeon-travel-choice-grid > button::after { position:absolute; inset:6px; border:1px solid rgba(213,168,83,.07); content:""; pointer-events:none; }
.dungeon-travel-choice-grid img { position:relative; z-index:1; width:110px; height:76px; object-fit:cover; filter:saturate(.62) sepia(.1) brightness(.7); transition:filter 180ms ease,transform 220ms ease; }
.dungeon-travel-choice-grid button > span { position:relative; z-index:1; display:flex; min-width:0; flex-direction:column; }
.dungeon-travel-choice-grid button small { color:#6f604a; font-family:Georgia,serif; font-size:7px; letter-spacing:.18em; }
.dungeon-travel-choice-grid button b { margin-top:5px; overflow:hidden; color:#d9c087; font-family:"STKaiti",serif; font-size:19px; font-weight:500; letter-spacing:.08em; text-overflow:ellipsis; white-space:nowrap; }
.dungeon-travel-choice-grid button em { margin-top:4px; color:#8a7c64; font-family:"FangSong",serif; font-size:9px; font-style:normal; }
.dungeon-travel-choice-grid button strong { position:relative; z-index:1; align-self:stretch; display:grid; padding:0 8px; place-items:center; border-left:1px solid rgba(162,117,53,.2); color:#887653; font-family:"FangSong",serif; font-size:9px; font-weight:400; letter-spacing:.12em; }
.dungeon-travel-choice-grid > button:hover,.dungeon-travel-choice-grid > button:focus-visible { border-color:#bb833a; outline:0; filter:brightness(1.15); transform:translateY(-2px); }
.dungeon-travel-choice-grid > button:hover img,.dungeon-travel-choice-grid > button:focus-visible img { filter:saturate(.82) sepia(.08) brightness(.88); transform:scale(1.025); }
.dungeon-travel-choice-grid > button:hover strong,.dungeon-travel-choice-grid > button:focus-visible strong { color:#e3c887; }
.dungeon-travel-rules { position:relative; display:grid; grid-template-columns:auto repeat(3,minmax(0,1fr)); align-items:stretch; gap:0; margin-top:10px; border:1px solid rgba(140,111,67,.22); background:rgba(0,0,0,.2); }
.dungeon-travel-rules > span { display:grid; padding:10px 13px; place-items:center; color:#786a52; font-family:"FangSong",serif; font-size:9px; letter-spacing:.12em; }
.dungeon-travel-rules > div { display:flex; min-width:0; flex-direction:column; justify-content:center; padding:8px 12px; border-left:1px solid rgba(143,109,56,.2); }
.dungeon-travel-rules > div b { color:#c3aa72; font-family:Georgia,serif; font-size:11px; font-weight:400; }
.dungeon-travel-rules > div small { margin-top:2px; color:#81745d; font-family:"FangSong",serif; font-size:8px; }
.dungeon-travel-rules > p { grid-column:2/-1; margin:0; padding:6px 12px; border-top:1px solid rgba(143,109,56,.16); border-left:1px solid rgba(143,109,56,.2); color:#756956; font-family:"FangSong",serif; font-size:8px; }

.allocation-success-backdrop { position:fixed; z-index:145; inset:0; display:grid; place-items:center; padding:3vh 3vw; overflow:auto; background:radial-gradient(circle at 50% 42%,rgba(121,78,27,.22),transparent 30%),rgba(1,1,1,.9); backdrop-filter:blur(16px) saturate(.72); animation:modalVeil 260ms ease both; }
.allocation-success-dialog { position:relative; width:min(720px,94vw); max-height:92vh; padding:42px 46px 36px; overflow:auto; border:1px solid rgba(230,187,100,.7); color:#cdbb94; background:radial-gradient(circle at 50% 14%,rgba(130,82,25,.3),transparent 30%),linear-gradient(125deg,rgba(71,43,17,.94),rgba(8,6,4,.99) 35% 70%,rgba(62,36,15,.95)); box-shadow:inset 0 0 0 4px #070503,inset 0 0 0 5px rgba(225,180,89,.22),inset 0 0 80px rgba(0,0,0,.8),0 35px 110px #000,0 0 40px rgba(206,134,36,.13); clip-path:polygon(3% 0,97% 0,100% 5%,99% 95%,96% 100%,4% 100%,1% 95%,0 5%); text-align:center; animation:successDecree 560ms cubic-bezier(.16,.82,.2,1) both; }
.allocation-success-dialog::before,.allocation-success-dialog::after { position:absolute; inset:12px; border:1px solid rgba(222,174,84,.16); content:""; pointer-events:none; }
.allocation-success-dialog::after { inset:20px; border-color:rgba(129,51,38,.16); }
.allocation-success-rays { position:absolute; top:-235px; left:50%; width:500px; height:500px; transform:translateX(-50%); opacity:.2; animation:successHaloTurn 34s linear infinite; pointer-events:none; }
.allocation-success-rays i { position:absolute; top:0; bottom:0; left:50%; width:1px; background:linear-gradient(transparent,rgba(236,191,99,.85),transparent); transform-origin:50% 50%; }
.allocation-success-rays i:nth-child(2) { transform:rotate(22.5deg); }.allocation-success-rays i:nth-child(3) { transform:rotate(45deg); }.allocation-success-rays i:nth-child(4) { transform:rotate(67.5deg); }.allocation-success-rays i:nth-child(5) { transform:rotate(90deg); }.allocation-success-rays i:nth-child(6) { transform:rotate(112.5deg); }.allocation-success-rays i:nth-child(7) { transform:rotate(135deg); }.allocation-success-rays i:nth-child(8) { transform:rotate(157.5deg); }
.allocation-success-emblem { position:relative; display:grid; width:94px; height:94px; margin:0 auto 18px; place-items:center; border:1px solid #a47432; border-radius:50%; background:radial-gradient(circle,#63391b,#140b05 62%,#040302); box-shadow:inset 0 0 24px #000,0 0 0 7px rgba(193,138,58,.08),0 0 35px rgba(216,143,45,.27); animation:successEmblem 720ms cubic-bezier(.18,.9,.25,1.3) both; }
.allocation-success-emblem::before,.allocation-success-emblem::after { position:absolute; border:1px solid rgba(217,166,77,.42); border-radius:50%; content:""; }
.allocation-success-emblem::before { inset:-9px; border-style:dashed; animation:successRingTurn 15s linear infinite; }.allocation-success-emblem::after { inset:15px; }
.allocation-success-emblem > i { position:absolute; width:8px; height:8px; border-radius:50%; background:#e2b561; box-shadow:0 0 12px #db8b2d; }.allocation-success-emblem > i:first-child { top:-4px; }.allocation-success-emblem > i:nth-child(2) { right:-4px; }
.allocation-success-emblem > span { color:#e6bd70; font-family:"STKaiti",serif; font-size:45px; text-shadow:0 0 18px rgba(224,153,56,.5); }
.allocation-success-dialog > small { position:relative; color:#8c7c62; font-family:Georgia,serif; font-size:7px; letter-spacing:.34em; }
.allocation-success-dialog > h2 { position:relative; margin:6px 0; color:#f0d18b; font-family:"STKaiti",serif; font-size:34px; font-weight:600; letter-spacing:.16em; text-shadow:0 5px 18px #000; }
.allocation-success-dialog > p { position:relative; margin:0; color:#9b8b70; font-family:"FangSong",serif; font-size:12px; letter-spacing:.06em; }.allocation-success-dialog > p strong { color:#dcb96e; font-weight:500; }
.allocation-success-items { position:relative; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; max-height:226px; margin-top:24px; padding:11px; overflow:auto; border-top:1px solid rgba(191,141,69,.29); border-bottom:1px solid rgba(191,141,69,.29); background:rgba(4,3,2,.3); scrollbar-color:#795423 #090604; }
.allocation-success-items article { display:grid; grid-template-columns:48px minmax(0,1fr) auto; align-items:center; gap:10px; min-height:64px; padding:8px; border:1px solid rgba(177,128,61,.28); background:linear-gradient(100deg,rgba(81,48,19,.36),rgba(5,4,3,.5)); text-align:left; animation:successItemEnter 440ms ease both; }
.allocation-success-items article:nth-child(2) { animation-delay:70ms; }.allocation-success-items article:nth-child(3) { animation-delay:140ms; }.allocation-success-items article:nth-child(4) { animation-delay:210ms; }
.allocation-success-items img,.allocation-success-items article > i { width:46px; height:48px; object-fit:cover; border:1px solid rgba(201,151,74,.4); filter:saturate(.85) brightness(.95); }.allocation-success-items article > i { display:grid; place-items:center; color:#d7614b; background:#1c0d08; font-family:"STKaiti",serif; font-size:22px; font-style:normal; }
.allocation-success-items span small,.allocation-success-items span b { display:block; }.allocation-success-items span small { color:#796e5d; font-size:7px; }.allocation-success-items span b { margin-top:3px; color:#dbc086; font-family:"FangSong",serif; font-size:12px; font-weight:500; }.allocation-success-items strong { color:#efc76f; font-family:Georgia,serif; font-size:16px; font-weight:400; }
.allocation-success-summary { position:relative; display:grid; grid-template-columns:repeat(3,1fr); margin-top:15px; border:1px solid rgba(180,131,63,.3); }.allocation-success-summary > div { display:flex; min-width:0; flex-direction:column; align-items:center; padding:11px 8px; }.allocation-success-summary > div + div { border-left:1px solid rgba(180,131,63,.24); }
.allocation-success-summary span { color:#80735e; font-size:8px; letter-spacing:.08em; }.allocation-success-summary b { margin:2px 0; color:#d8b66e; font-family:Georgia,"STKaiti",serif; font-size:21px; font-weight:400; }.allocation-success-summary small { color:#766b59; font-family:"FangSong",serif; font-size:8px; }.allocation-success-summary .is-level-up { background:radial-gradient(circle,rgba(143,83,24,.34),transparent 75%); }.allocation-success-summary .is-level-up b { color:#f2c96d; text-shadow:0 0 13px rgba(231,153,42,.5); }
.allocation-level-up { position:relative; display:flex; align-items:center; gap:12px; margin-top:12px; padding:9px 13px; border:1px solid rgba(154,56,42,.45); background:linear-gradient(90deg,rgba(103,39,27,.35),rgba(126,78,26,.18)); text-align:left; }.allocation-level-up > span { display:grid; width:34px; height:34px; place-items:center; border:1px solid #9c3d30; color:#df725c; font-family:"STKaiti",serif; font-size:18px; transform:rotate(-4deg); }.allocation-level-up p { margin:0; color:#9e8b6a; font-family:"FangSong",serif; font-size:10px; }.allocation-level-up b { display:block; color:#e0b96b; font-size:12px; font-weight:500; }
.allocation-success-dialog > footer { position:relative; display:flex; justify-content:center; gap:10px; margin-top:20px; }
@keyframes successDecree { from { opacity:0; transform:scale(.84) translateY(36px); filter:blur(7px); } to { opacity:1; transform:scale(1) translateY(0); filter:blur(0); } }
@keyframes successHaloTurn { to { transform:translateX(-50%) rotate(360deg); } }
@keyframes successRingTurn { to { transform:rotate(360deg); } }
@keyframes successEmblem { 0% { opacity:0; transform:scale(.3) rotate(-35deg); } 70% { opacity:1; transform:scale(1.12) rotate(4deg); } 100% { transform:scale(1) rotate(0); } }
@keyframes successItemEnter { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

.creation-scroll { position:relative; padding:clamp(28px,3.4vw,50px); border:1px solid rgba(91,59,28,.72); color:var(--role-ink); background:linear-gradient(90deg,rgba(77,47,17,.15),transparent 6% 94%,rgba(77,47,17,.15)),repeating-linear-gradient(0deg,transparent 0 25px,rgba(48,28,10,.025) 26px),linear-gradient(135deg,#b99a62,#dfc995 42%,#c4a66d); box-shadow:inset 0 0 0 5px rgba(68,41,16,.3),inset 0 0 55px rgba(71,43,18,.2),0 30px 70px rgba(0,0,0,.58); clip-path:polygon(1% 0,99% 0,100% 2%,99.3% 98%,98% 100%,2% 100%,.7% 98%,0 2%); animation:catalogUnseal 760ms cubic-bezier(.18,.78,.2,1) both; }
.creation-scroll::before { content:""; position:absolute; inset:12px; border:1px solid rgba(68,42,19,.21); pointer-events:none; }
.creation-scroll-heading { position:relative; z-index:2; display:grid; grid-template-columns:58px minmax(0,1fr) auto; align-items:center; gap:16px; padding-bottom:19px; border-bottom:1px solid rgba(65,40,18,.36); }
.creation-scroll-heading > span,.creation-section-title > span { display:grid; width:49px; height:49px; place-items:center; border:1px solid #7c2e24; color:#7b2b22; font-family:"STKaiti",serif; font-size:23px; transform:rotate(-3deg); }
.creation-scroll-heading small,.creation-section-title small { color:#665137; font-family:Georgia,serif; font-size:7px; font-weight:600; letter-spacing:.23em; }
.creation-scroll-heading h2 { margin:2px 0 0; color:#35210f; font-family:"STKaiti",serif; font-size:29px; letter-spacing:.15em; }
.creation-scroll-heading p { margin:3px 0 0; color:#624b30; font-family:"FangSong",serif; font-size:11px; }
.creation-scroll-heading > b { color:#694a29; font-family:"FangSong",serif; font-size:10px; letter-spacing:.16em; }
.creation-section { position:relative; z-index:2; margin-top:27px; padding-top:4px; }
.creation-section + .creation-section { padding-top:25px; border-top:1px solid rgba(69,43,20,.3); }
.creation-section-title { display:grid; grid-template-columns:41px auto 1fr; align-items:center; gap:10px; }
.creation-section-title > span { width:34px; height:34px; font-size:15px; }
.creation-section-title h3 { margin:1px 0 0; color:#3a2511; font-family:"STKaiti",serif; font-size:20px; letter-spacing:.12em; }
.avatar-preset-count { justify-self:end; color:#71522f; font-family:"FangSong",serif; font-size:10px; font-weight:500; letter-spacing:.12em; }
.avatar-preset-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; margin-top:15px; }
.avatar-preset-grid button { position:relative; min-width:0; min-height:255px; overflow:hidden; padding:0; border:1px solid rgba(65,41,19,.45); color:#382511; cursor:pointer; background:#2a1b0e; box-shadow:0 8px 16px rgba(65,39,16,.18); transition:transform 200ms ease,border-color 200ms ease,box-shadow 200ms ease; }
.avatar-preset-grid button::after { content:""; position:absolute; inset:5px; border:1px solid rgba(238,213,159,.2); pointer-events:none; }
.avatar-preset-grid .character-avatar-sprite { width:100%; height:205px; filter:saturate(.72) brightness(.88); transition:filter 200ms ease,transform 450ms ease; }
.avatar-preset-grid button > span { position:absolute; z-index:3; right:0; bottom:0; left:0; display:block; min-height:61px; padding:9px 10px; background:linear-gradient(180deg,rgba(6,4,3,.25),rgba(7,5,3,.96) 35%); text-align:left; }
.avatar-preset-grid button b { display:block; color:#d9c188; font-family:"STKaiti",serif; font-size:16px; letter-spacing:.08em; }
.avatar-preset-grid button small { color:#81745f; font-size:8px; letter-spacing:.1em; }
.avatar-preset-grid button > i { position:absolute; z-index:4; top:9px; right:9px; display:grid; width:26px; height:26px; place-items:center; border:1px solid #7b2d24; color:#a94837; background:rgba(9,6,4,.68); font-family:"STKaiti",serif; font-style:normal; opacity:0; }
.avatar-preset-grid button:hover { border-color:#8d5b2a; transform:translateY(-4px); }
.avatar-preset-grid button:hover .character-avatar-sprite { filter:saturate(.9) brightness(1); transform:scale(1.035); }
.avatar-preset-grid button.is-active { border-color:#8c2e24; box-shadow:0 0 0 2px rgba(119,42,32,.22),0 11px 20px rgba(65,34,12,.26); }
.avatar-preset-grid button.is-active > i { opacity:1; }

.character-name-input { display:grid; grid-template-columns:70px minmax(0,1fr) 52px; align-items:center; width:min(780px,100%); margin-top:14px; border:1px solid rgba(67,42,19,.43); background:rgba(245,227,184,.42); }
.character-name-input > span { padding-left:18px; color:#553d25; font-family:"FangSong",serif; font-size:11px; letter-spacing:.15em; }
.character-name-input input { height:49px; border:0; border-right:1px solid rgba(67,42,19,.25); border-left:1px solid rgba(67,42,19,.25); outline:0; color:#2f1d0d; background:rgba(255,243,207,.42); padding:0 15px; font-family:"STKaiti",serif; font-size:17px; letter-spacing:.12em; }
.character-name-input input::placeholder { color:#806a4d; }
.character-name-input .masked-phone-display { padding:0 15px; color:#2f1d0d; font-family:"STKaiti","KaiTi",serif; font-size:17px; letter-spacing:.12em; }
.character-name-input .masked-phone-display.is-placeholder { color:#806a4d; font-size:15px; }
.character-name-input i { color:#715b3e; font-family:Georgia,serif; font-size:9px; font-style:normal; text-align:center; }
.creation-points { justify-self:end; display:flex; align-items:baseline; gap:9px; color:#674e31; }
.creation-points span { font-size:10px; letter-spacing:.1em; }
.creation-points b { color:#792b21; font-family:Georgia,serif; font-size:28px; }
.creation-points.is-complete b { color:#4e351b; }
.creation-stat-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 17px; margin-top:16px; }
.creation-stat-row { display:grid; grid-template-columns:64px minmax(130px,1fr) 31px 38px 31px; align-items:center; gap:8px; min-height:52px; padding:7px 10px 7px 15px; border:1px solid rgba(69,43,20,.37); background:linear-gradient(90deg,rgba(255,241,201,.38),rgba(141,101,52,.08)); }
.creation-stat-row > span { color:#3e2915; font-family:"STKaiti",serif; font-size:15px; font-weight:700; }
.creation-stat-track { position:relative; height:9px; border:1px solid rgba(65,40,18,.38); background:rgba(75,47,20,.2); box-shadow:inset 0 1px 4px rgba(53,31,12,.22); }
.creation-stat-track i { position:absolute; inset:-1px auto -1px -1px; background:linear-gradient(90deg,#82352a,#b87732 60%,#e0bd6d); }
.creation-stat-row button { width:31px; height:31px; padding:0; border:1px solid rgba(73,46,21,.46); color:#532f17; cursor:pointer; background:rgba(231,209,160,.56); font-family:Georgia,serif; }
.creation-stat-row button:hover:not(:disabled) { border-color:#82392a; color:#7a2c22; background:#ead5a5; }
.creation-stat-row button:disabled { opacity:.35; cursor:not-allowed; }
.creation-stat-row > b { color:#6f291f; font-family:Georgia,serif; font-size:17px; text-align:center; }
.creation-total { display:flex; align-items:baseline; justify-content:flex-end; gap:12px; margin-top:14px; padding:13px 7px 0; border-top:1px solid rgba(68,42,19,.25); }
.creation-total > span { color:#5f482e; font-size:10px; letter-spacing:.13em; }
.creation-total > b { color:#70291f; font-family:Georgia,serif; font-size:24px; }
.creation-total > b i { color:#735e41; font-size:11px; font-style:normal; }
.creation-total > small { color:#705b40; font-size:9px; letter-spacing:.07em; }
.creation-error { position:relative; z-index:3; display:flex; align-items:center; gap:10px; margin-top:17px; padding:10px 13px; border:1px solid rgba(123,42,32,.48); color:#6e271f; background:rgba(132,50,36,.08); font-family:"FangSong",serif; font-size:11px; }
.creation-error span { display:grid; width:27px; height:27px; place-items:center; border:1px solid #8a3127; font-family:"STKaiti",serif; }
.creation-actions { position:relative; z-index:3; display:flex; justify-content:center; gap:12px; margin-top:27px; padding-top:21px; border-top:1px solid rgba(68,42,19,.3); }

.character-profile-hero { position:relative; display:grid; grid-template-columns:330px minmax(0,1fr) 180px; min-height:440px; overflow:hidden; border:1px solid rgba(179,135,66,.4); background:linear-gradient(105deg,rgba(55,35,16,.38),rgba(7,5,4,.95) 38%); box-shadow:inset 0 0 0 5px rgba(5,3,2,.76),inset 0 0 0 6px rgba(185,140,70,.13),0 26px 55px rgba(0,0,0,.54); clip-path:polygon(1% 0,99% 0,100% 3%,99.2% 97%,98% 100%,2% 100%,.8% 97%,0 3%); animation:catalogUnseal 700ms ease both; }
.profile-portrait-panel { position:relative; overflow:hidden; border-right:1px solid rgba(187,141,69,.31); }
.profile-portrait-panel::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 59%,rgba(5,3,2,.94)),linear-gradient(90deg,transparent 70%,rgba(5,3,2,.62)); pointer-events:none; }
.profile-portrait-panel .character-avatar-sprite { width:100%; height:100%; filter:saturate(.78) brightness(.88); }
.profile-portrait-panel > div { position:absolute; z-index:3; right:22px; bottom:22px; left:22px; padding-top:13px; border-top:1px solid rgba(201,156,79,.25); }
.profile-portrait-panel small,.profile-portrait-panel b { display:block; }
.profile-portrait-panel small { color:#806f52; font-family:Georgia,serif; font-size:7px; letter-spacing:.2em; }
.profile-portrait-panel b { margin-top:3px; color:#d5bc83; font-family:"FangSong",serif; font-size:12px; font-weight:500; letter-spacing:.13em; }
.profile-identity-panel { align-self:center; padding:35px clamp(34px,4vw,67px); }
.profile-archive-no { color:#756a57; font-family:Georgia,serif; font-size:8px; letter-spacing:.24em; }
.profile-identity-panel h2 { margin:9px 0 17px; color:#e4ca8c; font-family:"STKaiti",serif; font-size:clamp(43px,4vw,66px); font-weight:600; letter-spacing:.16em; text-shadow:0 5px 18px #000; }
.profile-level-row { display:flex; max-width:620px; border-top:1px solid rgba(162,121,59,.22); border-bottom:1px solid rgba(162,121,59,.22); }
.profile-level-row span { flex:1; padding:12px; color:#786d59; font-size:9px; letter-spacing:.1em; text-align:center; }
.profile-level-row span + span { border-left:1px solid rgba(162,121,59,.2); }
.profile-level-row b { margin-left:5px; color:#d3b676; font-family:Georgia,serif; font-size:15px; font-weight:400; }
.profile-growth-progress { display:grid; grid-template-columns:minmax(120px,1fr) auto auto; align-items:center; gap:12px; max-width:620px; padding:10px 4px 0; color:#786c58; }
.profile-growth-progress > i { position:relative; height:6px; overflow:hidden; border:1px solid rgba(156,113,54,.3); background:#090604; }
.profile-growth-progress > i em { position:absolute; inset:0 auto 0 0; background:linear-gradient(90deg,#7b2c21,#b97931 60%,#dfbd72); box-shadow:0 0 10px rgba(203,128,37,.35); }
.profile-growth-progress span { color:#a38d65; font-family:"FangSong",serif; font-size:9px; white-space:nowrap; }
.profile-growth-progress small { grid-column:1/-1; color:#a3906d; font-family:"FangSong",serif; font-size:10px; }
.profile-identity-panel blockquote { max-width:620px; margin:24px 0 0; color:#8d8068; font-family:"FangSong",serif; font-size:13px; font-style:normal; line-height:1.8; letter-spacing:.08em; }
.profile-actions { display:flex; gap:9px; margin-top:25px; }
.profile-mandate-mark { align-self:center; justify-self:center; display:flex; flex-direction:column; align-items:center; }
.profile-mandate-mark > span { display:grid; width:88px; height:88px; place-items:center; border:1px solid #7b3025; color:#a94737; font-family:"STKaiti",serif; font-size:47px; transform:rotate(-3deg); box-shadow:inset 0 0 20px rgba(112,35,27,.13); }
.profile-mandate-mark small { margin-top:14px; color:#756a58; font-size:8px; letter-spacing:.2em; }
.profile-mandate-mark b { max-width:150px; margin-top:7px; color:#d3ad64; font-family:"STKaiti",serif; font-size:21px; font-weight:500; letter-spacing:.08em; line-height:1.35; text-align:center; }
.profile-mandate-mark em { margin-top:14px; padding-top:11px; border-top:1px solid rgba(163,120,56,.25); color:#7e715b; font-family:"FangSong",serif; font-size:10px; font-style:normal; letter-spacing:.08em; }

.character-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:20px; }
.role-module { position:relative; overflow:hidden; padding:25px 28px 28px; border:1px solid rgba(174,130,63,.36); color:#c7b793; background:linear-gradient(115deg,rgba(63,40,17,.4),rgba(7,5,4,.94) 40%); box-shadow:inset 0 0 0 4px rgba(5,3,2,.72),inset 0 0 0 5px rgba(185,140,70,.1),0 18px 38px rgba(0,0,0,.4); clip-path:polygon(1.4% 0,98.6% 0,100% 4%,99% 96%,97.6% 100%,2.4% 100%,1% 96%,0 4%); animation:cardEnter 620ms ease both; }
.role-module::before { content:""; position:absolute; inset:9px; border:1px solid rgba(201,158,83,.1); pointer-events:none; }
.role-module > header { position:relative; z-index:2; display:grid; grid-template-columns:48px minmax(0,1fr) auto; align-items:center; gap:13px; padding-bottom:14px; border-bottom:1px solid rgba(162,120,58,.22); }
.role-module > header > span { display:grid; width:42px; height:42px; place-items:center; border:1px solid #763027; color:#ac4938; font-family:"STKaiti",serif; font-size:20px; transform:rotate(-3deg); }
.role-module header small { display:block; color:#706655; font-family:Georgia,serif; font-size:7px; letter-spacing:.22em; }
.role-module h3 { margin:2px 0 0; color:#d8bf84; font-family:"STKaiti",serif; font-size:22px; font-weight:600; letter-spacing:.13em; }
.role-module header > b { color:#806f51; font-family:"FangSong",serif; font-size:9px; font-weight:400; letter-spacing:.13em; }
.detail-stat-list { position:relative; z-index:2; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 20px; margin-top:19px; }
.role-stat-gauge { min-width:0; }
.role-stat-label { display:flex; align-items:baseline; justify-content:space-between; }
.role-stat-label span { color:#94866c; font-family:"STKaiti",serif; font-size:14px; letter-spacing:.12em; }
.role-stat-label b { color:#dab86e; font-family:Georgia,serif; font-size:18px; font-weight:400; }
.role-stat-track { position:relative; height:8px; margin-top:5px; border:1px solid rgba(141,103,49,.28); background:#080604; box-shadow:inset 0 0 4px #000; }
.role-stat-track i { position:absolute; inset:-1px auto -1px -1px; background:linear-gradient(90deg,#6e261e,#b67731 58%,#e0bc6d); box-shadow:0 0 8px rgba(192,116,28,.2); }
.role-stat-gauge > small { color:#665f51; font-size:8px; letter-spacing:.05em; }
.stat-source-note { position:relative; z-index:2; display:flex; gap:13px; margin-top:20px; padding-top:12px; border-top:1px solid rgba(150,111,55,.17); }
.stat-source-note span { color:#8c7958; font-size:9px; letter-spacing:.12em; }
.stat-source-note p { margin:0; color:#696153; font-family:"FangSong",serif; font-size:9px; }
.soldier-command { position:relative; z-index:2; display:grid; grid-template-columns:repeat(2,1fr); margin-top:18px; border:1px solid rgba(154,113,54,.24); }
.soldier-command > div { display:flex; align-items:baseline; justify-content:center; gap:10px; min-height:65px; padding:12px; }
.soldier-command > div + div { border-left:1px solid rgba(154,113,54,.2); }
.soldier-command span { color:#7e735f; font-size:9px; letter-spacing:.1em; }
.soldier-command b { color:#d7b66d; font-family:Georgia,serif; font-size:23px; font-weight:400; }
.troop-token-command,.equipped-troop-license { position:relative; z-index:2; display:grid; grid-template-columns:92px minmax(110px,.7fr) minmax(0,1.3fr); align-items:center; gap:11px; margin-top:10px; padding:10px 12px; border:1px dashed rgba(143,110,57,.3); color:#8c806b; background:rgba(8,6,4,.25); }
.troop-token-command > span,.equipped-troop-license > span { color:#89795e; font-size:8px; letter-spacing:.13em; }
.troop-token-command > b,.equipped-troop-license > b { color:#a18f6c; font-family:"STKaiti",serif; font-size:14px; font-weight:500; }
.troop-token-command > small,.equipped-troop-license > small { color:#756b5a; font-family:"FangSong",serif; font-size:9px; line-height:1.5; }
.troop-token-command.is-active,.equipped-troop-license.is-active { border-style:solid; border-color:rgba(79,148,117,.48); background:linear-gradient(90deg,rgba(23,78,61,.32),rgba(45,34,16,.24)); box-shadow:inset 3px 0 #397d66; }
.troop-token-command.is-active > span,.equipped-troop-license.is-active > span { color:#78ab91; }
.troop-token-command.is-active > b,.equipped-troop-license.is-active > b { color:#dfd39c; }
.troop-token-command.is-active > small,.equipped-troop-license.is-active > small { color:#aebc9d; }
.affinity-grid { position:relative; z-index:2; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:7px; margin-top:15px; }
.affinity-grid > div { display:flex; flex-direction:column; align-items:center; padding:10px 4px; border:1px solid rgba(151,111,53,.2); }
.affinity-grid span { color:#766c5a; font-size:8px; }
.affinity-grid b { display:grid; width:31px; height:31px; margin-top:5px; place-items:center; border:1px solid #70532e; color:#c3a66f; background:radial-gradient(circle,#392715,#0b0805); font-family:Georgia,serif; font-size:11px; clip-path:polygon(50% 0,90% 20%,100% 70%,50% 100%,0 70%,10% 20%); }
.skill-trait-block { position:relative; z-index:2; display:grid; grid-template-columns:70px minmax(0,1fr); gap:10px; margin-top:16px; padding:13px; border:1px solid rgba(153,112,54,.21); }
.skill-trait-block > span { color:#897a60; font-family:"STKaiti",serif; font-size:14px; }
.skill-trait-block > div { display:flex; flex-wrap:wrap; gap:7px; }
.skill-trait-block b { padding:3px 8px; border:1px solid rgba(163,119,54,.36); color:#ccb37d; background:rgba(70,43,17,.32); font-family:"FangSong",serif; font-size:9px; font-weight:500; }
.skill-trait-block i { color:#665f51; font-family:"FangSong",serif; font-size:10px; font-style:normal; }
.detail-equipment-grid { position:relative; z-index:2; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:16px; }
.detail-equipment-grid > div { min-width:0; padding:9px; border:1px solid rgba(153,112,54,.21); }
.detail-equipment-grid > div > span { display:block; margin-bottom:5px; color:#786c59; font-size:8px; letter-spacing:.1em; }
.detail-equipment-grid .equipment-empty,.detail-equipment-grid .equipment-mini { border:0; padding:0; }
.detail-equipment-grid > div.is-skill-slot { border-color:rgba(177,90,51,.42); background:linear-gradient(90deg,rgba(82,30,19,.28),rgba(39,24,12,.28)); }
.detail-equipment-grid > div.is-troop-token-slot { border-color:rgba(85,145,118,.43); background:linear-gradient(90deg,rgba(22,70,57,.3),rgba(39,31,15,.28)); }

.edit-character-banner { display:grid; grid-template-columns:120px minmax(250px,1fr) minmax(420px,1.5fr); align-items:center; min-height:145px; padding:13px 25px 13px 13px; border:1px solid rgba(176,133,65,.36); background:linear-gradient(90deg,rgba(65,41,18,.68),rgba(7,5,4,.92) 35%); box-shadow:inset 0 0 0 4px rgba(5,3,2,.73),0 14px 31px rgba(0,0,0,.42); }
.edit-character-banner > .character-avatar-sprite { width:100px; height:116px; border:1px solid rgba(179,135,67,.4); filter:saturate(.76) brightness(.86); }
.edit-character-banner small { color:#716655; font-family:Georgia,serif; font-size:7px; letter-spacing:.21em; }
.edit-character-banner h2 { margin:2px 0; color:#dec488; font-family:"STKaiti",serif; font-size:29px; font-weight:600; letter-spacing:.13em; }
.edit-character-banner p { margin:0; color:#7f735e; font-family:"FangSong",serif; font-size:10px; }
.edit-mini-stats { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); border:1px solid rgba(154,113,54,.22); }
.edit-mini-stats span { display:flex; min-width:0; flex-direction:column; align-items:center; padding:9px 3px; border-right:1px solid rgba(154,113,54,.17); color:#756a58; font-size:8px; }
.edit-mini-stats span:last-child { border-right:0; }
.edit-mini-stats b { color:#d5b56c; font-family:Georgia,serif; font-size:15px; font-weight:400; }
.edit-identity-panel { position:relative; margin-top:14px; overflow:hidden; border:1px solid rgba(201,153,78,.5); background:linear-gradient(105deg,rgba(74,47,22,.74),rgba(12,8,5,.96) 34% 78%,rgba(57,35,16,.7)); box-shadow:inset 0 0 0 4px rgba(6,4,2,.66),0 16px 34px rgba(0,0,0,.4); }
.edit-identity-panel::after { position:absolute; top:-82px; right:7%; width:230px; height:230px; border:1px solid rgba(193,143,70,.1); border-radius:50%; box-shadow:0 0 0 17px rgba(193,143,70,.035),0 0 0 36px rgba(193,143,70,.02); content:""; pointer-events:none; }
.edit-identity-panel > header { position:relative; z-index:2; display:grid; grid-template-columns:48px minmax(0,1fr) auto; align-items:center; gap:14px; padding:16px 22px 13px; border-bottom:1px solid rgba(194,145,71,.28); }
.edit-identity-panel > header > span { display:grid; width:43px; height:45px; place-items:center; border:1px solid #8c3429; color:#d05f49; font-family:"STKaiti",serif; font-size:20px; transform:rotate(-3deg); }
.edit-identity-panel header small { color:#9b8869; font-family:Georgia,serif; font-size:7px; letter-spacing:.22em; }
.edit-identity-panel h3 { margin:2px 0; color:#efd297; font-family:"STKaiti",serif; font-size:21px; font-weight:600; letter-spacing:.12em; }
.edit-identity-panel header p { margin:0; color:#9e8f76; font-family:"FangSong",serif; font-size:9px; }
.edit-identity-panel header button { min-width:126px; height:36px; border:1px solid rgba(211,159,78,.62); color:#241707; cursor:pointer; background:linear-gradient(180deg,#e2bb68,#a67229); box-shadow:inset 0 1px rgba(255,235,175,.72); font-family:"STKaiti",serif; font-size:11px; letter-spacing:.08em; }
.edit-identity-panel header button:hover:not(:disabled) { filter:brightness(1.12); transform:translateY(-1px); }
.edit-identity-panel header button:disabled { border-color:rgba(139,109,66,.28); color:#6f624d; cursor:not-allowed; background:rgba(47,31,15,.45); box-shadow:none; }
.account-activation-panel { position:relative; z-index:2; display:grid; grid-template-columns:minmax(150px,.8fr) minmax(260px,1.4fr) auto auto; align-items:center; gap:10px; margin:14px 22px 0; padding:12px 14px; border:1px solid rgba(183,135,66,.32); background:rgba(8,5,3,.48); }
.account-activation-panel>div { display:flex; align-items:center; gap:9px; }
.account-activation-panel>div small { color:#766a58; font:7px Georgia,serif; }
.account-activation-panel>div b { color:#d8bd84; font:500 14px "STKaiti",serif; }
.account-activation-panel>div span { padding:3px 7px; border:1px solid rgba(98,139,84,.55); color:#a9ca95; font-size:9px; }
.account-activation-panel.is-inactive>div span { border-color:rgba(175,76,60,.65); color:#dc8f7d; }
.account-activation-panel label { display:grid; grid-template-columns:76px minmax(0,1fr); align-items:center; min-width:0; height:38px; border:1px solid rgba(189,141,70,.36); }
.account-activation-panel label span { padding-left:10px; color:#aa9878; font-size:9px; }
.account-activation-panel input { min-width:0; height:36px; border:0; border-left:1px solid rgba(189,141,70,.3); outline:0; padding:0 10px; color:#edd29b; background:#130d07; }
.account-activation-panel .masked-phone-display { padding:0 10px; color:#edd29b; }
.account-activation-panel>button { min-width:92px; height:38px; border:1px solid rgba(181,140,75,.5); color:#cbb98f; background:#171008; cursor:pointer; font-size:10px; }
.account-activation-panel>button.is-activate { border-color:#a67c36; color:#251707; background:#d4ad62; font-weight:700; }
.account-activation-panel>button:disabled { opacity:.45; cursor:not-allowed; }
.account-active-note { color:#809074; font-size:9px; white-space:nowrap; }
.account-activation-panel>p { grid-column:2/-1; margin:0; color:#e0a495; font-size:10px; }
.edit-identity-body { position:relative; z-index:2; display:grid; grid-template-columns:minmax(330px,430px) minmax(0,1fr); align-items:start; gap:13px; padding:14px 22px 20px; }
.edit-identity-profile { display:grid; align-content:start; gap:12px; min-height:100%; padding:12px; border:1px solid rgba(183,135,66,.23); background:linear-gradient(145deg,rgba(7,5,3,.52),rgba(62,38,17,.22)); box-shadow:inset 0 0 28px rgba(0,0,0,.32); }
.edit-identity-preview { display:grid; grid-template-columns:112px minmax(0,1fr); align-items:center; gap:14px; min-height:137px; padding:12px; border:1px solid rgba(183,135,66,.28); background:linear-gradient(115deg,rgba(6,4,3,.58),rgba(68,41,18,.28)); }
.edit-identity-preview .character-avatar-sprite { width:80px; height:91px; border:1px solid rgba(193,145,73,.4); filter:saturate(.88) brightness(1.04); }
.edit-identity-preview span small,.edit-identity-preview span b,.edit-identity-preview span em { display:block; }
.edit-identity-preview span small { color:#81715a; font-size:7px; }
.edit-identity-preview span b { margin:3px 0; color:#e4c98e; font-family:"STKaiti",serif; font-size:14px; font-weight:500; }
.edit-identity-preview span em { color:#9b896c; font-family:"FangSong",serif; font-size:8px; font-style:normal; }
.edit-identity-name { display:grid; grid-template-columns:88px minmax(0,1fr) 42px; align-items:center; width:100%; height:52px; border:1px solid rgba(189,141,70,.4); background:rgba(8,5,3,.42); }
.edit-identity-name > span { padding-left:12px; color:#b9a37e; font-family:"FangSong",serif; font-size:10px; }
.edit-identity-name input { height:46px; min-width:0; border:0; border-right:1px solid rgba(184,135,66,.25); border-left:1px solid rgba(184,135,66,.25); outline:0; padding:0 12px; color:#edd29b; background:#130d07; font-family:"STKaiti",serif; font-size:15px; letter-spacing:.07em; }
.edit-identity-name input:focus { box-shadow:inset 0 -2px #b98236; }
.edit-identity-name > i { color:#7f715c; font-family:Georgia,serif; font-size:8px; font-style:normal; text-align:center; }
.edit-identity-note { display:flex; align-items:center; gap:9px; margin:auto 0 0; padding:11px 12px; border-top:1px solid rgba(178,129,61,.23); color:#7f725e; font-family:"FangSong",serif; font-size:9px; line-height:1.65; }
.edit-identity-note > span { display:grid; flex:0 0 auto; width:27px; height:28px; place-items:center; border:1px solid rgba(126,48,38,.7); color:#c25946; font-family:"STKaiti",serif; font-size:13px; transform:rotate(-3deg); }
.edit-avatar-picker { display:grid; grid-template-columns:repeat(6,minmax(62px,1fr)); align-content:start; gap:7px; padding:8px; border:1px solid rgba(180,132,63,.24); background:linear-gradient(145deg,rgba(4,3,2,.54),rgba(51,31,14,.22)); box-shadow:inset 0 0 20px rgba(0,0,0,.36); }
.edit-avatar-picker-heading { grid-column:1/-1; display:grid; grid-template-columns:auto minmax(0,1fr) 32px; align-items:center; gap:10px; min-height:34px; padding:5px 7px 8px; border-bottom:1px solid rgba(183,135,65,.25); }
.edit-avatar-picker-heading > span { color:#d6b879; font-family:"STKaiti",serif; font-size:13px; letter-spacing:.12em; }
.edit-avatar-picker-heading > small { overflow:hidden; color:#82745e; font-family:"FangSong",serif; font-size:8px; letter-spacing:.06em; text-overflow:ellipsis; white-space:nowrap; }
.edit-avatar-picker-heading > b { display:grid; width:30px; height:24px; place-items:center; border:1px solid rgba(139,53,42,.72); color:#d76851; background:rgba(47,17,12,.42); font-family:Georgia,serif; font-size:10px; font-weight:400; }
.edit-avatar-picker button { position:relative; min-width:0; height:103px; overflow:hidden; padding:0; border:1px solid rgba(179,132,64,.28); color:#aa9878; cursor:pointer; background:#160f08; }
.edit-avatar-picker button:hover,.edit-avatar-picker button.is-active { border-color:#d09a47; transform:translateY(-2px); }
.edit-avatar-picker button.is-active { box-shadow:0 0 0 2px rgba(174,119,48,.2); }
.edit-avatar-picker .character-avatar-sprite { width:100%; height:77px; filter:saturate(.76) brightness(.84); transition:filter 180ms ease,transform 280ms ease; }
.edit-avatar-picker button:hover .character-avatar-sprite,.edit-avatar-picker button.is-active .character-avatar-sprite { filter:saturate(.95) brightness(1.04); transform:scale(1.035); }
.edit-avatar-picker button > span { position:absolute; right:0; bottom:0; left:0; overflow:hidden; height:26px; padding:6px 3px 0; color:#aa9877; background:linear-gradient(180deg,rgba(10,7,4,.35),#0b0704 40%); font-family:"FangSong",serif; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.edit-avatar-picker button.is-active > span { color:#f0cb7c; }
.edit-avatar-picker button > i { position:absolute; top:4px; right:4px; display:grid; width:20px; height:20px; place-items:center; border:1px solid #8d352a; color:#d66650; background:rgba(15,8,5,.82); font-family:"STKaiti",serif; font-size:9px; font-style:normal; opacity:0; }
.edit-avatar-picker button.is-active > i { opacity:1; }
.character-edit-layout { display:grid; grid-template-columns:minmax(590px,1.25fr) minmax(390px,.75fr); gap:18px; margin-top:19px; }
.equipment-slot-grid { position:relative; z-index:2; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:17px; }
.equipment-slot-grid > div { position:relative; display:grid; grid-template-columns:78px minmax(0,1fr) auto; grid-template-rows:auto auto; align-items:center; min-height:102px; overflow:hidden; padding:11px 12px; border:1px solid rgba(152,111,53,.23); background:rgba(0,0,0,.13); }
.equipment-slot-grid > div > span { align-self:start; color:#7c705b; font-size:8px; letter-spacing:.12em; }
.equipment-slot-grid > div > img { grid-row:1/3; width:70px; height:70px; margin-right:11px; object-fit:cover; filter:saturate(.7) brightness(.78); }
.equipment-slot-grid > div > i { grid-row:1/3; display:grid; width:70px; height:70px; margin-right:11px; place-items:center; border:1px solid rgba(145,105,49,.2); color:#5f584d; font-family:"STKaiti",serif; font-size:25px; font-style:normal; }
.equipment-slot-grid strong { color:#cbb27b; font-family:"STKaiti",serif; font-size:16px; font-weight:500; letter-spacing:.07em; }
.equipment-slot-grid small { grid-column:2; overflow:hidden; color:#6b6354; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.equipment-slot-grid small.is-special { color:#d3b777; line-height:1.45; text-overflow:clip; white-space:normal; }
.equipment-slot-grid button { grid-column:3; grid-row:1/3; min-width:55px; height:30px; border:1px solid rgba(148,107,51,.32); color:#928265; cursor:pointer; background:rgba(49,30,12,.48); font-size:9px; }
.equipment-slot-grid button:hover { border-color:#ae7c38; color:#e0c387; }
.equipment-slot-grid > div.is-equipped { border-color:rgba(189,139,57,.44); box-shadow:inset 3px 0 #8b3025; }
.equipment-slot-grid > div.is-skill-slot { min-height:102px; border-color:rgba(172,76,44,.46); background:linear-gradient(100deg,rgba(92,29,19,.34),rgba(19,12,7,.38) 54%,rgba(82,54,23,.24)); box-shadow:inset 3px 0 #9b3b2b,inset 0 0 28px rgba(126,51,27,.08); }
.equipment-slot-grid > div.is-skill-slot > span { color:#cf8464; letter-spacing:.2em; }
.equipment-slot-grid > div.is-skill-slot > i { border-color:rgba(162,65,43,.45); color:#b85843; background:radial-gradient(circle,rgba(115,45,28,.24),rgba(18,11,7,.68)); }
.equipment-slot-grid > div.is-skill-slot strong { color:#f0c98a; text-shadow:0 0 13px rgba(194,91,48,.16); }
.equipment-slot-grid > div.is-troop-token-slot { min-height:102px; border-color:rgba(78,139,112,.5); background:linear-gradient(100deg,rgba(20,72,57,.38),rgba(17,15,9,.4) 54%,rgba(77,59,25,.25)); box-shadow:inset 3px 0 #397d66,inset 0 0 28px rgba(39,126,96,.1); }
.equipment-slot-grid > div.is-troop-token-slot > span { color:#78b499; letter-spacing:.2em; }
.equipment-slot-grid > div.is-troop-token-slot > i { border-color:rgba(74,139,111,.48); color:#62a889; background:radial-gradient(circle,rgba(30,102,79,.24),rgba(18,13,7,.68)); }
.equipment-slot-grid > div.is-troop-token-slot strong { color:#d8d099; text-shadow:0 0 13px rgba(72,161,122,.18); }
.equipment-inventory { position:relative; z-index:2; margin-top:20px; padding-top:15px; border-top:1px solid rgba(152,112,55,.18); }
.equipment-inventory h4 { margin:0 0 10px; color:#a9946b; font-family:"STKaiti",serif; font-size:17px; font-weight:500; letter-spacing:.1em; }
.equipment-inventory h4 small { margin-left:8px; color:#686052; font-family:inherit; font-size:8px; }
.equipment-inventory > div:not(.edit-empty-line) { display:grid; grid-template-columns:48px minmax(0,1fr) auto; align-items:center; gap:10px; min-height:64px; padding:7px 9px; border-bottom:1px solid rgba(143,104,51,.15); }
.equipment-inventory img { width:45px; height:45px; object-fit:cover; filter:saturate(.72) brightness(.8); }
.equipment-inventory b,.equipment-inventory small { display:block; }
.equipment-inventory b { color:#c3ad7c; font-family:"FangSong",serif; font-size:11px; }
.equipment-inventory small { color:#655e51; font-size:8px; }
.equipment-inventory button,.usable-item-list button { min-width:64px; height:31px; border:1px solid rgba(155,113,54,.38); color:#aa9367; cursor:pointer; background:rgba(53,33,13,.51); font-size:9px; }
.equipment-inventory button:hover:not(:disabled),.usable-item-list button:hover { border-color:#b6823b; color:#eed08b; }
.equipment-inventory button:disabled { opacity:.45; cursor:default; }
.edit-empty-line { display:flex; align-items:center; gap:12px; min-height:78px; padding:11px; border:1px dashed rgba(146,106,51,.22); }
.edit-empty-line > span { display:grid; width:38px; height:38px; place-items:center; border:1px solid rgba(121,48,37,.45); color:#8e4336; font-family:"STKaiti",serif; font-size:19px; }
.edit-empty-line p { margin:0; color:#676052; font-family:"FangSong",serif; font-size:9px; }
.character-edit-side { display:grid; gap:18px; }
.item-target-select { position:relative; z-index:2; display:grid; grid-template-columns:88px minmax(0,1fr); align-items:center; margin-top:16px; border:1px solid rgba(151,110,53,.24); }
.item-target-select > span { padding-left:12px; color:#786d59; font-size:8px; letter-spacing:.1em; }
.item-target-select select { height:38px; border:0; border-left:1px solid rgba(151,110,53,.2); outline:0; color:#bba879; background:#0d0906; padding:0 10px; font-family:"FangSong",serif; font-size:9px; }
.usable-item-list { position:relative; z-index:2; margin-top:11px; }
.usable-item-list > div:not(.edit-empty-line) { display:grid; grid-template-columns:36px minmax(0,1fr) auto auto; align-items:center; gap:9px; min-height:59px; padding:7px 8px; border-bottom:1px solid rgba(145,106,51,.15); }
.item-rune { display:grid; width:32px; height:32px; place-items:center; border:1px solid #753027; color:#a54636; font-family:"STKaiti",serif; font-size:15px; }
.usable-item-list b,.usable-item-list small { display:block; }
.usable-item-list b { color:#c4ad78; font-family:"FangSong",serif; font-size:10px; }
.usable-item-list small { color:#665e50; font-size:8px; }
.usable-item-list i { color:#a78756; font-family:Georgia,serif; font-size:9px; font-style:normal; }
.retainer-empty { position:relative; z-index:2; display:flex; min-height:145px; margin-top:15px; flex-direction:column; align-items:center; justify-content:center; border:1px dashed rgba(148,108,51,.23); }
.retainer-empty i { color:#633027; font-family:"STKaiti",serif; font-size:12px; font-style:normal; letter-spacing:.18em; }
.retainer-empty h4 { margin:6px 0 2px; color:#9f8c68; font-family:"STKaiti",serif; font-size:18px; font-weight:500; }
.retainer-empty p { margin:0; color:#635d50; font-family:"FangSong",serif; font-size:9px; }
.retainer-list { position:relative; z-index:2; display:flex; flex-wrap:wrap; gap:7px; margin-top:14px; }
.retainer-list span { padding:5px 9px; border:1px solid rgba(156,113,53,.3); color:#b19b6d; }
.cultivation-reserve-module > div { position:relative; z-index:2; display:flex; align-items:center; justify-content:space-between; min-height:39px; padding:0 10px; border-bottom:1px solid rgba(145,106,51,.16); }
.cultivation-reserve-module > div:first-of-type { margin-top:13px; }
.cultivation-reserve-module > div span { color:#756a58; font-size:9px; }
.cultivation-reserve-module > div b { color:#695f50; font-size:8px; font-weight:400; }

/* 角色培养清晰度与统一物品库 */
.character-page { background:#0b0805; }
.character-page-backdrop {
  opacity:.46;
  filter:saturate(.82) sepia(.05) contrast(1.05) brightness(1.12);
}
.character-system-header {
  background:radial-gradient(ellipse at 50% 115%,rgba(165,102,35,.26),transparent 54%),linear-gradient(90deg,rgba(9,7,5,.96),rgba(28,18,9,.9) 50%,rgba(9,7,5,.96));
}
.character-system-heading > span,
.role-module header small,
.edit-character-banner small { color:#a08c69; font-size:9px; }
.character-system-heading p { color:#c0ae89; font-size:13px; }
.character-header-token small { color:#a99a7d; font-size:10px; }
.character-header-token b { color:#e4cf9f; font-size:13px; }
.edit-character-banner {
  border-color:rgba(210,164,88,.58);
  background:linear-gradient(90deg,rgba(94,61,28,.82),rgba(19,13,8,.95) 38%);
  box-shadow:inset 0 0 0 4px rgba(8,5,3,.64),0 16px 34px rgba(0,0,0,.45);
}
.edit-character-banner > .character-avatar-sprite { filter:saturate(.9) brightness(1.08); }
.edit-character-banner p { color:#c0ad88; font-size:12px; }
.edit-mini-stats { border-color:rgba(195,148,75,.42); background:rgba(6,4,3,.28); }
.edit-mini-stats span { color:#b4a17f; font-size:10px; }
.edit-mini-stats b { color:#f0cd78; font-size:18px; }
.role-module {
  border-color:rgba(207,158,80,.55);
  color:#decda9;
  background:linear-gradient(118deg,rgba(91,59,27,.7),rgba(17,11,7,.96) 42%);
  box-shadow:inset 0 0 0 4px rgba(7,4,2,.66),inset 0 0 0 5px rgba(222,174,92,.16),0 20px 42px rgba(0,0,0,.42);
}
.role-module::before { border-color:rgba(225,183,104,.16); }
.role-module h3 { color:#f0d79b; font-size:25px; }
.role-module header > b { color:#b9a47c; font-size:11px; }
.equipment-management-module { align-self:start; }
.equipment-slot-grid > div {
  border-color:rgba(193,145,72,.4);
  background:rgba(9,6,4,.34);
}
.equipment-slot-grid > div > span { color:#b7a27f; font-size:10px; }
.equipment-slot-grid > div > i { color:#927f62; background:rgba(23,15,8,.65); }
.equipment-slot-grid strong { color:#ead29a; font-size:18px; }
.equipment-slot-grid small { color:#a99a80; font-size:10px; }
.equipment-slot-grid > div > img { filter:saturate(.9) brightness(1); }

.character-item-library { position:relative; z-index:2; margin-top:24px; padding-top:18px; border-top:1px solid rgba(202,154,80,.35); }
.character-item-library > h4 { display:flex; align-items:baseline; gap:11px; margin:0 0 12px; }
.character-item-library > h4 > span { color:#e6ca8e; font-family:"STKaiti",serif; font-size:22px; font-weight:600; letter-spacing:.13em; }
.character-item-library > h4 small { color:#aa9878; font-size:10px; font-weight:400; letter-spacing:.08em; }
.character-item-library > h4 b { margin-left:auto; color:#dcb76c; font-family:Georgia,serif; font-size:13px; font-weight:400; }
.item-library-list { display:grid; gap:8px; }
.item-library-row { display:grid; grid-template-columns:58px minmax(0,1fr) 48px 72px; align-items:center; gap:12px; min-height:78px; padding:9px 11px; border:1px solid rgba(190,141,69,.34); background:linear-gradient(90deg,rgba(91,56,23,.3),rgba(6,4,3,.28)); }
.item-library-row:hover { border-color:rgba(221,170,84,.58); background:linear-gradient(90deg,rgba(115,69,27,.4),rgba(8,5,3,.32)); }
.item-library-row > img { width:56px; height:56px; object-fit:cover; border:1px solid rgba(196,149,77,.35); filter:saturate(.92) brightness(1.04); }
.item-library-row > span:nth-child(2) { min-width:0; }
.item-library-row span > i,.item-library-row span > b,.item-library-row span > small { display:block; }
.item-library-row span > i { color:#a46845; font-size:9px; font-style:normal; letter-spacing:.12em; }
.item-library-row span > b { margin:2px 0; color:#ead19a; font-family:"FangSong",serif; font-size:14px; font-weight:600; }
.item-library-row span > small { overflow:hidden; color:#b5a487; font-size:10px; line-height:1.5; text-overflow:ellipsis; white-space:nowrap; }
.item-library-row > em { color:#d9b66f; font-family:Georgia,serif; font-size:11px; font-style:normal; text-align:center; }
.item-library-row > button { height:35px; border:1px solid rgba(193,143,69,.55); color:#d1b67d; cursor:pointer; background:rgba(86,52,21,.55); font-family:"FangSong",serif; font-size:11px; }
.item-library-row > button:hover:not(:disabled) { border-color:#d09a49; color:#ffe4a5; background:rgba(123,74,27,.6); }
.item-library-row > button:disabled { opacity:.48; cursor:default; }
.item-library-row .item-rune { width:50px; height:50px; color:#d46750; background:rgba(48,19,13,.48); font-size:22px; }
.character-item-library .edit-empty-line { border-color:rgba(190,141,69,.34); background:rgba(8,5,3,.24); }
.edit-empty-line p { color:#ae9f83; font-size:11px; line-height:1.65; }

.attribute-skill-grid { position:relative; z-index:2; display:grid; gap:8px; margin-top:16px; }
.attribute-skill-grid > div { display:grid; grid-template-columns:92px 86px minmax(0,1fr); align-items:center; min-height:55px; padding:8px 10px; border:1px solid rgba(188,139,67,.3); background:rgba(7,5,3,.26); }
.attribute-skill-grid > div > span { display:flex; align-items:baseline; gap:7px; color:#c7b48e; font-family:"STKaiti",serif; font-size:14px; }
.attribute-skill-grid > div > span i { color:#e6bd6b; font-family:Georgia,serif; font-size:16px; font-style:normal; }
.attribute-skill-grid > div > b { color:#8e826e; font-family:"STKaiti",serif; font-size:15px; font-weight:500; }
.attribute-skill-grid > div > small { color:#a2947d; font-size:10px; line-height:1.5; }
.attribute-skill-grid > div.is-awakened { border-color:rgba(209,153,61,.58); background:linear-gradient(90deg,rgba(109,62,18,.44),rgba(8,5,3,.26)); }
.attribute-skill-grid > div.is-awakened > b { color:#f0c56f; }
.attribute-skill-grid.is-compact { grid-template-columns:repeat(2,minmax(0,1fr)); }
.attribute-skill-grid.is-compact > div { grid-template-columns:70px 72px minmax(0,1fr); }
.special-skill-list { position:relative; z-index:2; margin-top:18px; padding-top:15px; border-top:1px solid rgba(194,145,73,.3); }
.special-skill-list h4 { margin:0 0 10px; color:#d8bd83; font-family:"STKaiti",serif; font-size:17px; font-weight:500; }
.special-skill-list h4 small { margin-left:8px; color:#9b8b70; font-family:"FangSong",serif; font-size:9px; }
.special-skill-list > div:not(.edit-empty-line) { padding:10px 12px; border-left:2px solid #8d3528; background:rgba(61,32,16,.33); }
.special-skill-list > div.is-equipped-skill { border:1px solid rgba(190,102,57,.4); border-left:3px solid #b34e36; background:linear-gradient(90deg,rgba(111,43,25,.42),rgba(44,26,13,.25)); box-shadow:inset 0 0 22px rgba(180,72,37,.08); }
.special-skill-list b,.special-skill-list small { display:block; }
.special-skill-list b { color:#ebc982; font-family:"STKaiti",serif; font-size:16px; }
.special-skill-list small { margin-top:3px; color:#b4a488; font-size:10px; line-height:1.55; }
.skill-trait-block b.is-equipped-skill { border-color:rgba(190,92,52,.55); color:#f0c483; background:rgba(112,42,24,.38); }
.edit-affinity-module .affinity-grid > div { border-color:rgba(190,140,67,.38); background:rgba(7,5,3,.25); }
.edit-affinity-module .affinity-grid span { color:#b6a481; font-size:10px; }
.edit-affinity-module .affinity-grid b { width:38px; height:38px; color:#e1c07c; font-size:14px; }
.affinity-upgrade-grid > div { min-height:136px; justify-content:flex-start; transition:border-color 180ms ease,background-color 180ms ease,transform 180ms ease; }
.affinity-upgrade-grid > div.is-ready { border-color:rgba(220,164,74,.65); background:linear-gradient(180deg,rgba(111,65,21,.38),rgba(7,5,3,.32)); box-shadow:inset 0 0 18px rgba(199,132,42,.1); }
.affinity-upgrade-grid > div.is-ready:hover { transform:translateY(-2px); }
.affinity-upgrade-grid > div.is-max { border-color:rgba(216,179,92,.58); background:radial-gradient(circle at 50% 42%,rgba(205,154,64,.16),rgba(7,5,3,.3) 70%); }
.affinity-grade-sequence { display:flex; min-height:47px; align-items:center; justify-content:center; gap:5px; }
.affinity-grade-sequence > i { color:#796b54; font-family:Georgia,serif; font-size:10px; font-style:normal; }
.affinity-grade-sequence > em { color:#a48c61; font-family:Georgia,serif; font-size:11px; font-style:normal; }
.edit-affinity-module .affinity-grid b.grade-C { color:#c0a26e; border-color:#78613c; }
.edit-affinity-module .affinity-grid b.grade-B { color:#a7cf8d; border-color:#55784c; background:radial-gradient(circle,#2c4c28,#0a0b06); }
.edit-affinity-module .affinity-grid b.grade-A { color:#8ed4ce; border-color:#417a76; background:radial-gradient(circle,#1e4a46,#070b0a); }
.edit-affinity-module .affinity-grid b.grade-S { color:#e7a26f; border-color:#9b4a31; background:radial-gradient(circle,#632a1d,#100806); box-shadow:0 0 10px rgba(208,85,46,.3); }
.edit-affinity-module .affinity-grid b.grade-SS { color:#ffe29a; border-color:#c99b47; background:radial-gradient(circle,#7a4c17,#140c04); box-shadow:0 0 14px rgba(234,176,68,.48); }
.affinity-upgrade-grid > div.has-fragment-boost { border-color:rgba(201,151,72,.62); background:linear-gradient(180deg,rgba(93,56,21,.42),rgba(7,5,3,.34)); box-shadow:inset 0 0 18px rgba(201,143,49,.12); }
.affinity-fragment-boost { min-height:18px; margin:-2px 0 4px; color:#e0bd74!important; font-family:"FangSong",serif; font-size:8px!important; text-align:center; }
.affinity-upgrade-grid > div > button { width:calc(100% - 8px); min-height:29px; margin-top:auto; border:1px solid rgba(177,126,55,.38); color:#8c7c61; cursor:pointer; background:rgba(21,14,8,.76); font-family:"FangSong",serif; font-size:8px; letter-spacing:.03em; }
.affinity-upgrade-grid > div.is-ready > button { border-color:rgba(218,161,74,.67); color:#ebc779; background:linear-gradient(90deg,rgba(108,59,19,.62),rgba(34,22,10,.82)); }
.affinity-upgrade-grid > div > button:disabled { color:#d3b979; cursor:default; opacity:.75; }
.affinity-upgrade-rule { position:relative; z-index:2; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px; margin:12px 0 0; padding:9px 12px; border-top:1px solid rgba(185,135,64,.23); color:#9d8c70; font-family:Georgia,"FangSong",serif; font-size:9px; }
.affinity-upgrade-rule > span { color:#d2b373; }
.affinity-upgrade-rule > i { color:#6e614e; font-style:normal; white-space:nowrap; }
.affinity-upgrade-rule > b { flex-basis:100%; text-align:center; color:#b7a17a; font-family:"FangSong",serif; font-size:9px; font-weight:400; }
.retainer-empty p { color:#a69a84; font-size:10px; }

.attribute-choice-dialog { width:min(780px,95vw); }
.attribute-choice-lead { margin:-4px 0 15px; color:#c9b895; font-family:"FangSong",serif; font-size:12px; }
.pill-use-controller { display:grid; grid-template-columns:80px auto 28px minmax(0,1fr); align-items:center; gap:8px; padding:11px 14px; border:1px solid rgba(194,145,71,.42); background:rgba(7,5,3,.3); }
.pill-use-controller > span { color:#c4ae83; font-family:"STKaiti",serif; font-size:15px; }
.pill-use-controller > div { display:grid; grid-template-columns:34px 64px 34px; }
.pill-use-controller button,.pill-use-controller input { height:34px; border:1px solid rgba(191,142,70,.45); color:#e7c67e; background:#171006; text-align:center; }
.pill-use-controller button { cursor:pointer; font-family:Georgia,serif; font-size:16px; }
.pill-use-controller button:disabled { opacity:.35; cursor:not-allowed; }
.pill-use-controller input { width:64px; border-right:0; border-left:0; outline:0; font-family:Georgia,serif; font-size:16px; }
.pill-use-controller > b { color:#d1b57a; font-family:"FangSong",serif; font-size:11px; font-weight:400; }
.pill-use-controller > small { color:#96876f; font-size:10px; text-align:right; }
.pill-destiny-preview { display:flex; align-items:center; justify-content:center; gap:12px; margin:10px 0 13px; color:#aa997d; font-family:"FangSong",serif; font-size:11px; }
.pill-destiny-preview b,.pill-destiny-preview strong { font-family:Georgia,serif; font-size:20px; font-weight:400; }
.pill-destiny-preview b { color:#9b896b; }
.pill-destiny-preview strong { color:#efc66d; }
.pill-destiny-preview i { color:#8e3b30; font-size:14px; font-style:normal; }
.attribute-choice-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.attribute-choice-grid > div { display:flex; min-height:128px; flex-direction:column; align-items:center; justify-content:center; border:1px solid rgba(191,142,70,.42); color:#b7a27c; background:rgba(72,44,18,.35); transition:border-color 160ms ease,background 160ms ease,transform 160ms ease; }
.attribute-choice-grid > div.is-selected { border-color:#d19b47; color:#f4d691; background:linear-gradient(180deg,rgba(133,79,27,.62),rgba(46,27,12,.52)); transform:translateY(-2px); }
.attribute-choice-grid > div > span { font-family:"STKaiti",serif; font-size:16px; }
.attribute-choice-grid > div > small { margin-top:2px; color:#9e8e73; font-size:9px; }
.attribute-choice-grid > div > div { display:grid; grid-template-columns:27px 36px 27px; align-items:center; margin:8px 0 5px; }
.attribute-choice-grid > div > div button { width:27px; height:28px; border:1px solid rgba(191,142,70,.45); color:#d5b777; cursor:pointer; background:rgba(22,14,7,.7); font-family:Georgia,serif; }
.attribute-choice-grid > div > div button:disabled { opacity:.28; cursor:not-allowed; }
.attribute-choice-grid > div > div b { color:#f0ca78; font-family:Georgia,serif; font-size:19px; font-weight:400; }
.attribute-choice-grid > div > i { color:#b09e80; font-size:9px; font-style:normal; }
.attribute-choice-result { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; min-height:44px; margin-top:14px; padding:9px 11px; border-top:1px solid rgba(190,142,70,.24); border-bottom:1px solid rgba(190,142,70,.24); color:#d8bd82; font-family:"FangSong",serif; font-size:11px; }
.attribute-choice-result span b { color:#efc76f; font-family:Georgia,serif; font-size:17px; }
.attribute-choice-result > strong { color:#aa9778; font-weight:400; text-align:center; }
.attribute-choice-result.is-complete > strong { color:#e1c485; }
.attribute-choice-result > button { height:28px; border:1px solid rgba(190,142,70,.38); color:#bfa775; cursor:pointer; background:rgba(66,40,16,.48); font-family:"FangSong",serif; font-size:9px; }
.attribute-choice-dialog .role-gold-button:disabled { opacity:.42; cursor:not-allowed; }

.fragment-mandate-preview { display:grid; grid-template-columns:auto 70px minmax(0,1fr); align-items:center; min-height:56px; margin:2px 0 13px; padding:8px 14px; border:1px solid rgba(198,148,71,.42); background:radial-gradient(circle at 25% 50%,rgba(155,96,31,.3),transparent 34%),rgba(8,5,3,.42); }
.fragment-mandate-preview > span { color:#c5ae80; font-family:"STKaiti",serif; font-size:15px; letter-spacing:.08em; }
.fragment-mandate-preview > b { color:#f1c970; font-family:Georgia,serif; font-size:30px; font-weight:400; text-align:center; text-shadow:0 0 16px rgba(229,170,65,.28); }
.fragment-mandate-preview > small { color:#a59679; font-family:"FangSong",serif; font-size:10px; text-align:right; }
.fate-fragment-dialog { width:min(900px,96vw); max-height:92vh; overflow:auto; }
.fragment-allocation-heading { display:flex; align-items:center; gap:9px; margin:12px 0 7px; color:#d9bd82; }
.fragment-allocation-heading > span { display:grid; width:27px; height:28px; place-items:center; border:1px solid rgba(184,65,49,.65); color:#d86f5c; font-family:"STKaiti",serif; font-size:14px; transform:rotate(-3deg); }
.fragment-allocation-heading b,.fragment-allocation-heading small { display:block; }
.fragment-allocation-heading b { font-family:"STKaiti",serif; font-size:14px; font-weight:500; letter-spacing:.08em; }
.fragment-allocation-heading small { margin-top:1px; color:#8f8069; font-family:"FangSong",serif; font-size:8px; }
.fragment-allocation-heading.is-affinity { margin-top:15px; padding-top:10px; border-top:1px solid rgba(190,142,70,.2); }
.fragment-affinity-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.fragment-affinity-grid > div { display:flex; min-height:126px; flex-direction:column; align-items:center; justify-content:center; border:1px solid rgba(177,130,63,.38); color:#b8a37e; background:rgba(38,25,13,.58); transition:border-color 160ms ease,background 160ms ease,transform 160ms ease; }
.fragment-affinity-grid > div.is-selected { border-color:#d19b47; background:linear-gradient(180deg,rgba(108,63,22,.58),rgba(31,19,10,.7)); box-shadow:inset 0 -2px rgba(209,155,71,.35); transform:translateY(-2px); }
.fragment-affinity-grid > div > span { font-family:"STKaiti",serif; font-size:15px; }
.fragment-affinity-grid > div > small { margin-top:2px; color:#897b66; font-size:8px; }
.fragment-affinity-sequence { display:flex; min-height:34px; align-items:center; justify-content:center; gap:7px; margin:4px 0; }
.fragment-affinity-sequence b,.fragment-affinity-sequence em { display:grid; width:30px; height:30px; place-items:center; border:1px solid #765d38; background:#171006; font-family:Georgia,serif; font-size:12px; font-style:normal; }
.fragment-affinity-sequence i { color:#79694f; font-size:9px; font-style:normal; }
.fragment-affinity-controls { display:grid; grid-template-columns:34px 34px 34px; align-items:center; }
.fragment-affinity-controls button { height:27px; border:1px solid rgba(190,142,70,.42); color:#d6b775; cursor:pointer; background:rgba(19,12,7,.76); font-family:Georgia,serif; font-size:8px; }
.fragment-affinity-controls button:disabled { cursor:not-allowed; opacity:.26; }
.fragment-affinity-controls strong { color:#efc66e; font-family:Georgia,serif; font-size:13px; font-weight:400; text-align:center; }
.fragment-affinity-grid > div > i { margin-top:4px; color:#9d8b70; font-family:"FangSong",serif; font-size:8px; font-style:normal; }
.fragment-affinity-grid .grade-B { color:#a7cf8d; border-color:#55784c; }
.fragment-affinity-grid .grade-A { color:#8ed4ce; border-color:#417a76; }
.fragment-affinity-grid .grade-S { color:#e7a26f; border-color:#9b4a31; }
.fragment-affinity-grid .grade-SS { color:#ffe29a; border-color:#c99b47; box-shadow:0 0 10px rgba(234,176,68,.26); }
.fragment-removal-note { display:grid; grid-template-columns:84px minmax(0,1fr); align-items:center; gap:10px; margin-top:10px; padding:9px 12px; border-left:2px solid #8b3429; background:rgba(77,30,21,.23); }
.fragment-removal-note span { color:#d67a63; font-family:"STKaiti",serif; font-size:13px; letter-spacing:.1em; }
.fragment-removal-note p { margin:0; color:#b4a186; font-family:"FangSong",serif; font-size:10px; line-height:1.6; }

.formation-module { overflow:hidden; }
.formation-module::after { position:absolute; right:-76px; bottom:-96px; width:260px; height:260px; border:1px solid rgba(200,153,75,.08); border-radius:50%; box-shadow:0 0 0 18px rgba(200,153,75,.035),0 0 0 42px rgba(200,153,75,.018); content:""; pointer-events:none; }
.formation-module.is-active { border-color:rgba(220,169,83,.68); background:linear-gradient(118deg,rgba(108,65,24,.77),rgba(15,10,6,.97) 46%); }
.formation-insight { position:relative; z-index:2; display:grid; grid-template-columns:105px minmax(0,1fr); gap:15px; margin-top:16px; padding:14px; border:1px solid rgba(202,151,72,.37); background:rgba(6,4,3,.34); }
.formation-emblem { position:relative; display:grid; width:100px; height:100px; place-items:center; border:1px solid rgba(211,162,81,.52); border-radius:50%; box-shadow:inset 0 0 20px rgba(0,0,0,.74),0 0 0 6px rgba(190,133,55,.06); transform:rotate(-7deg); }
.formation-emblem::before,.formation-emblem::after { position:absolute; inset:12px; border:1px solid rgba(211,162,81,.28); border-radius:50%; content:""; }
.formation-emblem::after { inset:28px; border-radius:0; transform:rotate(45deg); }
.formation-emblem > i { position:absolute; width:5px; height:5px; border:1px solid #bc8138; background:#4f2e12; transform:rotate(45deg); }
.formation-emblem > i:nth-child(1) { top:7px; left:47px; }
.formation-emblem > i:nth-child(2) { top:47px; right:7px; }
.formation-emblem > i:nth-child(3) { bottom:7px; left:47px; }
.formation-emblem > i:nth-child(4) { top:47px; left:7px; }
.formation-emblem > span { position:relative; z-index:2; color:#f0c770; font-family:"STKaiti",serif; font-size:31px; text-shadow:0 0 16px rgba(221,155,54,.4); transform:rotate(7deg); }
.formation-copy small { color:#9f8765; font-family:Georgia,serif; font-size:8px; letter-spacing:.13em; }
.formation-copy h4 { margin:2px 0 1px; color:#efd08b; font-family:"STKaiti",serif; font-size:25px; font-weight:500; letter-spacing:.13em; }
.formation-copy em { color:#c26d56; font-family:"FangSong",serif; font-size:11px; font-style:normal; }
.formation-copy p { margin:7px 0 0; color:#b9a88b; font-family:"FangSong",serif; font-size:10px; line-height:1.7; }
.formation-specialty { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; min-height:34px; padding:0 11px; border-top:1px solid rgba(195,145,70,.28); background:linear-gradient(90deg,rgba(105,61,21,.35),transparent); }
.formation-specialty span { color:#9f8c6e; font-size:9px; letter-spacing:.12em; }
.formation-specialty b { color:#e1bc70; font-family:"STKaiti",serif; font-size:15px; font-weight:500; letter-spacing:.09em; }
.formation-empty { position:relative; z-index:2; display:grid; grid-template-columns:58px minmax(0,1fr); align-items:center; gap:13px; min-height:105px; margin-top:15px; padding:13px; border:1px dashed rgba(187,137,65,.34); background:rgba(8,5,3,.25); }
.formation-empty > span { display:grid; width:53px; height:53px; place-items:center; border:1px solid rgba(139,52,41,.7); color:#bb5a46; font-family:"STKaiti",serif; font-size:25px; transform:rotate(-4deg); }
.formation-empty b { color:#cfb785; font-family:"STKaiti",serif; font-size:16px; font-weight:500; }
.formation-empty p { margin:4px 0 0; color:#a39782; font-family:"FangSong",serif; font-size:10px; line-height:1.65; }

.character-toolbar-actions { display:flex; align-items:center; gap:10px; }
.allocation-entry-button { display:flex; align-items:center; justify-content:center; gap:8px; }
.allocation-entry-button > span { display:grid; width:24px; height:24px; place-items:center; border:1px solid #7c3027; color:#c15a46; font-family:"STKaiti",serif; font-size:13px; transform:rotate(-3deg); }

.item-library-row { grid-template-columns:58px minmax(0,1fr) 48px 138px; }
.item-library-actions { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.item-library-actions > button { min-width:0; height:34px; border:1px solid rgba(193,143,69,.55); color:#d1b67d; cursor:pointer; background:rgba(86,52,21,.55); font-family:"FangSong",serif; font-size:10px; }
.item-library-actions > button:hover:not(:disabled) { border-color:#d09a49; color:#ffe4a5; }
.item-library-actions > button:disabled { opacity:.48; cursor:default; }
.item-library-actions > button.is-delete { border-color:rgba(132,54,43,.55); color:#b96a5b; background:rgba(65,26,20,.34); }
.item-library-actions > button.is-delete:hover { border-color:#a64032; color:#ef8f79; }

/* 玩家物品库：六阶归档、灵石交易与无限锻造 */
.edit-character-identity { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto auto auto; align-items:center; gap:0 18px; min-width:0; }
.edit-character-identity > small,.edit-character-identity > h2,.edit-character-identity > p { grid-column:1; }
.character-wallet-pill { grid-column:2; grid-row:1/4; display:grid; grid-template-columns:38px minmax(70px,1fr) auto; grid-template-rows:auto auto; align-items:center; gap:1px 8px; min-width:166px; padding:10px 12px; border:1px solid rgba(211,163,79,.42); background:rgba(15,10,6,.72); box-shadow:inset 0 0 24px rgba(118,77,25,.17),0 7px 19px rgba(0,0,0,.25); }
.character-wallet-pill > span { grid-row:1/3; display:grid; width:34px; height:34px; place-items:center; border:1px solid #8a5a29; border-radius:50%; color:#e2bd6f; font-family:"STKaiti",serif; font-size:18px; box-shadow:0 0 13px rgba(216,160,65,.16); }
.character-wallet-pill > small { color:#8f7b5d!important; font-size:6px!important; letter-spacing:.14em!important; }
.character-wallet-pill > b { color:#f0cc79; font-family:Georgia,serif; font-size:20px; font-weight:400; line-height:1; }
.character-wallet-pill > em { align-self:end; color:#b89c67; font-family:"FangSong",serif; font-size:9px; font-style:normal; }

/* Fixed, confirmed proxy payments next to each player's wallet. */
.spirit-stone-wallet-actions { display:flex; align-items:center; gap:8px; min-width:0; }
.spirit-stone-debit-button { flex:none; min-height:40px; padding:0 11px; border:1px solid #967139; color:#ecd093; background:linear-gradient(145deg,#44321a,#21170b); box-shadow:inset 0 0 0 3px rgba(224,189,111,.04); cursor:pointer; font-family:"FangSong",serif; font-size:12px; white-space:nowrap; transition:background-color .16s,border-color .16s; }
.spirit-stone-debit-button:hover { border-color:#e6bf71; background:#4c361b; }
.spirit-stone-debit-button:focus-visible { outline:2px solid #f3d591; outline-offset:3px; }
.edit-character-identity .character-wallet-actions { grid-column:1/-1; grid-row:4; margin:10px 12px 0 0; }
.character-wallet-actions .character-wallet-pill { min-width:0; grid-column:auto; grid-row:auto; grid-template-columns:34px minmax(0,1fr) auto; flex:1; margin-top:0; padding:9px; gap:1px 6px; }
.spirit-stone-wallet-actions .inventory-wallet { flex:1; min-width:145px; }
@media (max-width:1100px) and (min-width:761px) {
  .edit-character-banner { grid-template-columns:104px minmax(0,1fr) minmax(300px,1fr); padding-right:14px; }
  .edit-character-identity .character-wallet-actions { margin-right:8px; }
  .character-wallet-actions .character-wallet-pill > small { display:none; }
  .character-wallet-actions .character-wallet-pill > b { grid-column:2; }
}
@media (max-width:760px) {
  .edit-character-identity .character-wallet-actions { margin-right:0; }
  .character-wallet-actions .spirit-stone-debit-button { width:48px; padding:0 6px; white-space:normal; line-height:1.4; }
  .character-wallet-actions .character-wallet-pill { flex:1; min-width:0; padding:7px; gap:1px 4px; }
  .character-wallet-actions .character-wallet-pill > small { display:none; }
  .character-wallet-actions .character-wallet-pill > b { grid-column:2; font-size:18px; }
  .inventory-market > header .market-wallet-actions { grid-column:1/-1; justify-content:flex-end; }
}

.character-edit-subnav { position:sticky; z-index:16; top:8px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; margin-top:14px; padding:5px; border:1px solid rgba(204,156,78,.48); background:#0b0704; box-shadow:inset 0 0 0 1px rgba(0,0,0,.8),0 14px 30px rgba(0,0,0,.34); }
.character-edit-subnav::before { position:absolute; right:5px; bottom:5px; left:5px; height:1px; background:rgba(197,149,74,.16); content:""; pointer-events:none; }
.character-edit-subnav button { position:relative; display:grid; grid-template-columns:43px minmax(0,1fr) auto; align-items:center; gap:11px; min-height:72px; overflow:hidden; padding:10px 14px; border:0; border-right:1px solid rgba(172,126,59,.23); color:#8e8069; cursor:pointer; background:#171008; text-align:left; transition:background-color 180ms ease,color 180ms ease,transform 180ms ease; }
.character-edit-subnav button:last-child { border-right:0; }
.character-edit-subnav button::after { position:absolute; right:0; bottom:0; left:0; height:3px; background:#9a382b; content:""; opacity:0; transform:scaleX(.28); transition:opacity 180ms ease,transform 180ms ease; }
.character-edit-subnav button > span { display:grid; width:39px; height:42px; place-items:center; border:1px solid rgba(137,52,41,.7); color:#bd523f; font-family:"STKaiti",serif; font-size:19px; transform:rotate(-3deg); }
.character-edit-subnav button small,.character-edit-subnav button b,.character-edit-subnav button em { display:block; }
.character-edit-subnav button small { color:#736654; font-family:Georgia,serif; font-size:6px; letter-spacing:.22em; }
.character-edit-subnav button b { margin-top:2px; color:#c8b180; font-family:"STKaiti",serif; font-size:16px; font-weight:500; letter-spacing:.09em; }
.character-edit-subnav button em { margin-top:1px; color:#776b59; font-family:"FangSong",serif; font-size:8px; font-style:normal; }
.character-edit-subnav button > i { align-self:start; min-width:28px; padding-top:2px; color:#6c604e; font-family:Georgia,"FangSong",serif; font-size:8px; font-style:normal; text-align:right; }
.character-edit-subnav button:hover { color:#d0b77e; background:#21160b; transform:translateY(-1px); }
.character-edit-subnav button.is-active { color:#f0d296; background:#2a1b0d; box-shadow:inset 0 0 26px rgba(133,80,26,.16); }
.character-edit-subnav button.is-active::after { opacity:1; transform:scaleX(1); }
.character-edit-subnav button.is-active > span { border-color:#a74434; color:#e0775d; box-shadow:0 0 14px rgba(166,61,45,.17); }
.character-edit-subnav button.is-active b { color:#f0d498; }
.character-edit-subnav button.is-active > i { color:#d5ae61; }
.character-edit-subnav.is-user-inventory { grid-template-columns:minmax(0,1fr); }

.character-edit-main:not(.edit-section-identity) .edit-identity-panel { display:none; }
.edit-section-identity .character-edit-layout { display:none; }
.edit-section-equipment .character-item-library { display:none; }
.edit-section-inventory .character-edit-layout,.edit-section-market .character-edit-layout { grid-template-columns:minmax(0,1fr); }
.edit-section-inventory .character-edit-side,.edit-section-market .character-edit-side { display:none; }
.edit-section-inventory .equipment-management-module > header,.edit-section-market .equipment-management-module > header,
.edit-section-inventory .equipment-slot-grid,.edit-section-market .equipment-slot-grid { display:none; }
.edit-section-inventory .character-item-library,.edit-section-market .character-item-library { margin-top:0; padding-top:0; border-top:0; animation:editSectionReveal 320ms ease both; }
.edit-section-inventory .inventory-market { display:none; }
.edit-section-market .inventory-vault-heading,.edit-section-market .taiping-synthesis-reminder,.edit-section-market .inventory-quality-tabs,
.edit-section-market .inventory-forge-rule,.edit-section-market .item-library-groups { display:none; }
.edit-section-market .inventory-market { margin-top:0; }
.edit-section-identity .edit-identity-panel,.edit-section-equipment .character-edit-layout { animation:editSectionReveal 320ms ease both; }

@keyframes editSectionReveal { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

.inventory-vault-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:13px; }
.inventory-vault-heading small { color:#89775c; font-family:Georgia,serif; font-size:7px; letter-spacing:.22em; }
.inventory-vault-heading h4 { margin:3px 0 2px; color:#efd49a; font-family:"STKaiti",serif; font-size:24px; font-weight:600; letter-spacing:.13em; }
.inventory-vault-heading p { margin:0; color:#a08f73; font-family:"FangSong",serif; font-size:10px; }
.inventory-wallet { display:grid; grid-template-columns:38px auto; grid-template-rows:auto auto auto; align-items:center; min-width:170px; padding:10px 13px; border:1px solid rgba(204,153,74,.42); background:rgba(16,10,6,.64); text-align:right; }
.inventory-wallet > span { grid-row:1/4; display:grid; width:34px; height:34px; place-items:center; border:1px solid #8f5d29; border-radius:50%; color:#e5c275; font-family:"STKaiti",serif; font-size:17px; }
.inventory-wallet > small { color:#8c7a5e; font-size:7px; letter-spacing:.12em; }
.inventory-wallet > b { color:#f0c96e; font-family:Georgia,serif; font-size:23px; font-weight:400; line-height:1; }
.inventory-wallet > em { color:#7e715d; font-size:7px; font-style:normal; }

.taiping-synthesis-reminder { position:relative; display:grid; grid-template-columns:70px minmax(0,1fr) 148px; align-items:center; gap:15px; overflow:hidden; margin:0 0 12px; padding:12px 14px; border:1px solid rgba(218,191,102,.58); background:radial-gradient(circle at 7% 50%,rgba(207,174,81,.2),transparent 23%),linear-gradient(112deg,rgba(51,37,14,.92),rgba(10,9,5,.96) 57%,rgba(34,27,11,.88)); box-shadow:inset 3px 0 #e3c46c,inset 0 0 26px rgba(220,185,87,.06),0 8px 22px rgba(0,0,0,.24); }
.taiping-synthesis-reminder::before { content:""; position:absolute; right:96px; width:124px; height:124px; border:1px solid rgba(229,199,111,.12); border-radius:50%; box-shadow:0 0 0 18px rgba(229,199,111,.025),0 0 0 37px rgba(229,199,111,.018); }
.taiping-synthesis-seal { position:relative; display:grid; width:60px; height:60px; place-items:center; border:1px solid rgba(229,199,111,.66); background:rgba(13,10,5,.72); box-shadow:inset 0 0 0 4px rgba(229,199,111,.04),0 0 20px rgba(222,184,77,.13); transform:rotate(-2deg); }
.taiping-synthesis-seal > span { color:#f1d782; font-family:"STKaiti",serif; font-size:27px; }
.taiping-synthesis-seal > i { position:absolute; right:-9px; bottom:-7px; padding:2px 5px; border:1px solid #a95536; color:#d27b5e; background:#140c07; font-family:"FangSong",serif; font-size:7px; font-style:normal; letter-spacing:.07em; transform:rotate(3deg); }
.taiping-synthesis-reminder > div:nth-child(2) { position:relative; z-index:1; min-width:0; }
.taiping-synthesis-reminder small { color:#a38b56; font-family:Georgia,serif; font-size:6px; letter-spacing:.2em; }
.taiping-synthesis-reminder h4 { margin:3px 0 2px; color:#f0d995; font-family:"STKaiti",serif; font-size:18px; font-weight:500; letter-spacing:.12em; }
.taiping-synthesis-reminder p { margin:0; color:#ae9f7d; font-family:"FangSong",serif; font-size:9px; line-height:1.5; }
.taiping-synthesis-reminder p b { color:#f0ca69; font-family:Georgia,serif; font-size:12px; font-weight:400; }
.taiping-synthesis-reminder > button { position:relative; z-index:1; display:flex; min-height:46px; flex-direction:column; align-items:center; justify-content:center; border:1px solid rgba(229,199,111,.74); color:#201506; cursor:pointer; background:linear-gradient(180deg,#eed98b,#bc893d); box-shadow:inset 0 1px rgba(255,255,255,.35),0 6px 18px rgba(0,0,0,.35); font-family:"STKaiti",serif; transition:filter 150ms ease,transform 150ms ease,box-shadow 150ms ease; }
.taiping-synthesis-reminder > button span { font-size:13px; letter-spacing:.12em; }
.taiping-synthesis-reminder > button small { margin-top:2px; color:#5b3a13; font-family:Georgia,"FangSong",serif; font-size:7px; letter-spacing:.04em; }
.taiping-synthesis-reminder > button:hover { filter:brightness(1.1); transform:translateY(-1px); box-shadow:inset 0 1px rgba(255,255,255,.42),0 9px 22px rgba(0,0,0,.4); }

.inventory-quality-tabs { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:6px; padding:8px; border:1px solid rgba(187,139,67,.26); background:rgba(4,3,2,.32); }
.inventory-quality-tabs button { --rarity:#9d8e73; display:grid; grid-template-columns:25px minmax(0,1fr) auto; align-items:center; gap:6px; min-height:42px; padding:6px 8px; border:1px solid color-mix(in srgb,var(--rarity) 38%,transparent); color:#9c8d72; cursor:pointer; background:rgba(35,23,12,.48); text-align:left; transition:transform 150ms ease,border-color 150ms ease,box-shadow 150ms ease; }
.inventory-quality-tabs button > span { display:grid; width:24px; height:25px; place-items:center; border:1px solid color-mix(in srgb,var(--rarity) 50%,transparent); color:var(--rarity); font-family:"STKaiti",serif; }
.inventory-quality-tabs button > b { color:#b9a780; font-family:"FangSong",serif; font-size:10px; font-weight:500; }
.inventory-quality-tabs button > small { color:#7e715b; font-family:Georgia,serif; font-size:8px; }
.inventory-quality-tabs button:hover,.inventory-quality-tabs button.is-active { border-color:var(--rarity); color:#eed296; box-shadow:inset 0 -2px var(--rarity),0 0 16px color-mix(in srgb,var(--rarity) 13%,transparent); transform:translateY(-1px); }
.inventory-quality-tabs button.is-active > b { color:#f0d59a; }

.quality-普通 { --rarity:#9b9283; --rarity-rgb:155,146,131; }
.quality-精良 { --rarity:#75a884; --rarity-rgb:117,168,132; }
.quality-稀有 { --rarity:#66a9bd; --rarity-rgb:102,169,189; }
.quality-史诗 { --rarity:#a97ab8; --rarity-rgb:169,122,184; }
.quality-传说 { --rarity:#d49b43; --rarity-rgb:212,155,67; }
.quality-仙品 { --rarity:#e5c76f; --rarity-rgb:229,199,111; }

.inventory-forge-rule { display:grid; grid-template-columns:48px minmax(0,1fr); align-items:center; gap:12px; margin-top:10px; padding:10px 13px; border:1px solid rgba(174,81,49,.34); border-left:3px solid #a45135; background:rgba(63,25,16,.23); }
.inventory-forge-rule > span { display:grid; width:42px; height:42px; place-items:center; border:1px solid rgba(189,84,50,.62); color:#db7657; font-family:"STKaiti",serif; font-size:20px; transform:rotate(-3deg); }
.inventory-forge-rule small { color:#9a6758; font-family:Georgia,serif; font-size:6px; letter-spacing:.19em; }
.inventory-forge-rule b { display:block; margin-top:2px; color:#d9be87; font-family:"FangSong",serif; font-size:11px; font-weight:500; }
.inventory-forge-rule p { margin:3px 0 0; color:#9c8a72; font-family:"FangSong",serif; font-size:9px; }
.inventory-forge-rule sup { color:#d88b6a; }

.item-library-groups { display:grid; gap:12px; margin-top:12px; }
.inventory-quality-group { --rarity:#9d8e73; --rarity-rgb:157,142,115; overflow:hidden; border:1px solid rgba(var(--rarity-rgb),.35); background:rgba(6,4,3,.3); box-shadow:inset 3px 0 var(--rarity); }
.inventory-quality-group > header { display:grid; grid-template-columns:33px minmax(0,1fr) auto auto 104px; align-items:center; gap:10px; min-height:58px; padding:7px 12px; border-bottom:1px solid rgba(var(--rarity-rgb),.23); background:rgba(var(--rarity-rgb),.06); }
.inventory-quality-group > header > span { display:grid; width:30px; height:31px; place-items:center; border:1px solid rgba(var(--rarity-rgb),.55); color:var(--rarity); font-family:"STKaiti",serif; font-size:15px; }
.inventory-quality-group header small { color:#786c59; font-family:Georgia,serif; font-size:6px; letter-spacing:.18em; }
.inventory-quality-group header h5 { margin:1px 0 0; color:#d6bf8c; font-family:"STKaiti",serif; font-size:15px; font-weight:500; letter-spacing:.08em; }
.inventory-quality-group > header > b { color:var(--rarity); font-family:Georgia,serif; font-size:11px; font-weight:400; }
.inventory-quality-group > header > em { min-width:84px; padding-left:10px; border-left:1px solid rgba(var(--rarity-rgb),.25); color:#8f816a; font-family:"FangSong",serif; font-size:8px; font-style:normal; text-align:right; }
.inventory-bulk-sell { display:flex; min-height:37px; flex-direction:column; align-items:center; justify-content:center; padding:4px 9px; border:1px solid rgba(var(--rarity-rgb),.58); color:#ead093; cursor:pointer; background:linear-gradient(180deg,rgba(var(--rarity-rgb),.18),rgba(24,15,8,.72)); box-shadow:inset 0 0 12px rgba(var(--rarity-rgb),.07); font-family:"FangSong",serif; transition:border-color 150ms ease,filter 150ms ease,transform 150ms ease; }
.inventory-bulk-sell > span { color:inherit; font-size:10px; letter-spacing:.08em; }
.inventory-bulk-sell > small { margin-top:2px; color:var(--rarity)!important; font-family:Georgia,"FangSong",serif!important; font-size:7px!important; letter-spacing:0!important; }
.inventory-bulk-sell:hover:not(:disabled) { border-color:var(--rarity); filter:brightness(1.18); transform:translateY(-1px); }
.inventory-bulk-sell:disabled { color:#716755; cursor:not-allowed; opacity:.48; filter:saturate(.5); }
.inventory-quality-group .item-library-list { display:grid; gap:7px; padding:8px; }

.item-library-row { --rarity:#9d8e73; --rarity-rgb:157,142,115; grid-template-columns:62px minmax(0,1fr) 48px 184px; border-color:rgba(var(--rarity-rgb),.27); background:rgba(25,16,9,.6); box-shadow:inset 2px 0 rgba(var(--rarity-rgb),.7); }
.item-library-row:hover { border-color:rgba(var(--rarity-rgb),.58); background:rgba(var(--rarity-rgb),.08); }
.item-library-image { position:relative; width:58px; height:58px; border:1px solid rgba(var(--rarity-rgb),.42); background:#090604; }
.item-library-image > img { width:100%; height:100%; object-fit:cover; filter:saturate(.92) brightness(1.03); }
.item-library-image > b { position:absolute; right:-3px; bottom:-3px; min-width:32px; padding:3px 5px; border:1px solid var(--rarity); color:#160d05; background:var(--rarity); font-family:Georgia,serif; font-size:8px; font-weight:700; text-align:center; box-shadow:0 3px 9px #000; }
.item-library-row span > i { color:var(--rarity); }
.item-library-row span > b { color:#ead4a2; }
.item-library-row span > small { color:#b6a68b; }
.item-library-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
.item-library-actions.is-three-actions { grid-template-columns:repeat(3,minmax(0,1fr)); }
.item-library-actions > button.is-fuse { border-color:rgba(170,74,44,.68); color:#dd8b6e; background:rgba(83,29,18,.38); }
.item-library-actions > button.is-fuse.is-taiping { border-color:rgba(222,190,95,.68); color:#ead181; background:linear-gradient(180deg,rgba(111,81,22,.38),rgba(52,33,10,.5)); }
.item-library-actions > button.is-sell { border-color:rgba(189,142,63,.55); color:#e2bd70; background:rgba(83,55,18,.38); }
.item-library-row.is-refined { box-shadow:inset 3px 0 var(--rarity),0 0 14px rgba(var(--rarity-rgb),.13); }
.item-library-row.is-refined .item-library-image,.equipment-slot-grid > div.is-refined,.equipment-mini.is-refined { box-shadow:0 0 13px rgba(222,164,68,.25),inset 0 0 12px rgba(222,164,68,.08); }
.item-library-row.is-refined-high .item-library-image,.equipment-slot-grid > div.is-refined-high,.equipment-mini.is-refined-high { animation:equipmentRefineGlow 2.8s ease-in-out infinite alternate; }
.item-library-row.is-refined-mythic .item-library-image,.equipment-slot-grid > div.is-refined-mythic,.equipment-mini.is-refined-mythic { animation:equipmentMythicGlow 1.65s ease-in-out infinite alternate; }
.equipment-slot-grid strong > em { display:inline-block; margin-left:6px; padding:1px 5px; border:1px solid rgba(220,170,78,.48); color:#e9bd69; font-family:Georgia,serif; font-size:8px; font-style:normal; vertical-align:middle; }
.equipment-mini { position:relative; }
.equipment-mini > em { margin-left:auto; padding-left:7px; color:#d9ad5c; font-family:Georgia,serif; font-size:7px; font-style:normal; white-space:nowrap; }

.inventory-market { margin-top:18px; overflow:hidden; border:1px solid rgba(204,153,74,.42); background:rgba(8,5,3,.48); box-shadow:inset 0 0 0 4px rgba(4,3,2,.6),0 13px 27px rgba(0,0,0,.25); }
.inventory-market > header { display:grid; grid-template-columns:46px minmax(0,1fr) auto; align-items:center; gap:12px; padding:14px 16px 12px; border-bottom:1px solid rgba(195,145,69,.29); background:rgba(81,50,21,.22); }
.inventory-market > header > span { display:grid; width:41px; height:43px; place-items:center; border:1px solid #8d3529; color:#d15e49; font-family:"STKaiti",serif; font-size:20px; transform:rotate(-3deg); }
.inventory-market header small { color:#8c7b61; font-family:Georgia,serif; font-size:6px; letter-spacing:.2em; }
.inventory-market header h4 { margin:2px 0; color:#ecd196; font-family:"STKaiti",serif; font-size:20px; font-weight:600; letter-spacing:.12em; }
.inventory-market header p { margin:0; color:#9c8d74; font-family:"FangSong",serif; font-size:9px; }
.market-wallet-actions > b { color:#efc56d; font-family:Georgia,serif; font-size:21px; font-weight:400; white-space:nowrap; }
.market-wallet-actions > b i { margin-left:4px; color:#8f7c5e; font-family:"FangSong",serif; font-size:8px; font-style:normal; }
.inventory-market-controls { display:grid; grid-template-columns:auto 150px minmax(170px,1fr); align-items:center; gap:8px; padding:10px 12px; border-bottom:1px solid rgba(181,133,61,.22); }
.inventory-market-controls nav { display:flex; gap:6px; }
.inventory-market-controls button,.inventory-market-controls label { --rarity:#a58d65; min-height:35px; border:1px solid rgba(var(--rarity-rgb,165,141,101),.35); color:#ab9979; background:rgba(26,17,10,.72); font-family:"FangSong",serif; font-size:9px; }
.inventory-market-controls button { min-width:92px; padding:0 12px; cursor:pointer; }
.inventory-market-controls button.is-active { border-color:var(--rarity); color:#efd393; box-shadow:inset 0 -2px var(--rarity); }
.inventory-market-controls label { display:grid; grid-template-columns:42px minmax(0,1fr); align-items:center; }
.inventory-market-controls label > span { text-align:center; }
.inventory-market-controls select,.inventory-market-controls input { min-width:0; height:33px; border:0; border-left:1px solid rgba(183,134,62,.25); outline:0; color:#ddc48f; background:#130d08; padding:0 9px; font-family:"FangSong",serif; font-size:9px; }
.inventory-market-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; max-height:610px; overflow:auto; padding:11px; scrollbar-color:#86602b #0b0704; }
.inventory-market-grid > article { --rarity:#b49a6e; --rarity-rgb:180,154,110; display:grid; grid-template-columns:72px minmax(0,1fr); grid-template-rows:auto auto 1fr auto; min-height:132px; padding:9px; border:1px solid rgba(var(--rarity-rgb),.34); background:rgba(19,12,7,.78); box-shadow:inset 2px 0 var(--rarity); }
.inventory-market-grid article > div { grid-row:1/5; position:relative; width:64px; height:88px; border:1px solid rgba(var(--rarity-rgb),.42); }
.inventory-market-grid article > div img { width:100%; height:100%; object-fit:cover; filter:saturate(.92) brightness(.96); }
.inventory-market-grid article > div span { position:absolute; right:3px; bottom:3px; padding:2px 5px; color:#160e07; background:var(--rarity); font-size:7px; }
.inventory-market-grid article > small { color:var(--rarity); font-size:7px; letter-spacing:.08em; }
.inventory-market-grid article h5 { margin:2px 0; color:#e9d09b; font-family:"STKaiti",serif; font-size:15px; font-weight:500; }
.inventory-market-grid article p { margin:0; color:#9f9078; font-family:"FangSong",serif; font-size:8px; line-height:1.45; }
.inventory-market-grid article footer { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:8px; padding-top:6px; border-top:1px solid rgba(var(--rarity-rgb),.19); }
.inventory-market-grid article footer b { color:var(--rarity); font-family:Georgia,serif; font-size:12px; font-weight:400; }
.inventory-market-grid article footer b i { margin-left:3px; color:#81745f; font-family:"FangSong",serif; font-size:7px; font-style:normal; }
.inventory-market-grid article footer button { height:27px; padding:0 9px; border:1px solid rgba(var(--rarity-rgb),.54); color:#dcc38d; cursor:pointer; background:rgba(var(--rarity-rgb),.12); font-family:"FangSong",serif; font-size:8px; }
.inventory-market-grid article footer button:disabled { opacity:.4; cursor:not-allowed; }
.inventory-market-empty { grid-column:1/-1; padding:35px; color:#82745e; font-family:"FangSong",serif; text-align:center; }
.inventory-market-controls.is-pack-mode { grid-template-columns:auto minmax(0,1fr); }
.inventory-market-pack-rule { display:flex; min-height:35px; align-items:center; gap:10px; padding:5px 11px; border:1px solid rgba(201,151,72,.26); background:linear-gradient(90deg,rgba(92,54,20,.26),rgba(16,10,6,.7)); }
.inventory-market-pack-rule > span { display:grid; width:25px; height:25px; flex:none; place-items:center; border:1px solid rgba(211,166,86,.48); color:#d8b66f; font-family:"STKaiti",serif; font-size:13px; transform:rotate(-3deg); }
.inventory-market-pack-rule div { min-width:0; }
.inventory-market-pack-rule b,.inventory-market-pack-rule small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.inventory-market-pack-rule b { color:#d7bd86; font-family:"FangSong",serif; font-size:9px; font-weight:500; }
.inventory-market-pack-rule small { margin-top:2px; color:#83755f; font-family:"FangSong",serif; font-size:8px; }

.market-pack-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:12px; }
.market-pack-grid.is-immortal { grid-template-columns:minmax(0,1fr); }
.market-pack-card { --rarity:#d49b43; --rarity-rgb:212,155,67; position:relative; display:grid; grid-template-columns:128px minmax(0,1fr); grid-template-rows:auto auto 1fr auto auto; min-height:190px; overflow:hidden; padding:13px; border:1px solid rgba(var(--rarity-rgb),.43); color:#b9a786; cursor:pointer; text-align:left; background:radial-gradient(circle at 13% 50%,rgba(var(--rarity-rgb),.14),transparent 27%),linear-gradient(125deg,#2d1b0c,#0b0704 54%,#251608); box-shadow:inset 3px 0 var(--rarity),inset 0 0 28px rgba(0,0,0,.46); transition:transform 180ms ease,border-color 180ms ease,box-shadow 180ms ease; }
.market-pack-card::before { content:""; position:absolute; right:-38px; bottom:-55px; width:170px; height:170px; border:1px solid rgba(var(--rarity-rgb),.13); border-radius:50%; box-shadow:0 0 0 18px rgba(var(--rarity-rgb),.025),0 0 0 40px rgba(var(--rarity-rgb),.02); }
.market-pack-card:hover { z-index:2; border-color:rgba(var(--rarity-rgb),.78); box-shadow:inset 3px 0 var(--rarity),inset 0 0 33px rgba(var(--rarity-rgb),.09),0 15px 28px rgba(0,0,0,.38); transform:translateY(-3px); }
.market-pack-card:focus-visible { outline:1px solid var(--rarity); outline-offset:2px; }
.market-pack-card-art { position:relative; grid-row:1/6; width:112px; height:156px; overflow:hidden; border:1px solid rgba(var(--rarity-rgb),.4); background:radial-gradient(circle,rgba(var(--rarity-rgb),.18),#090604 65%); box-shadow:inset 0 0 24px #000; }
.market-pack-card-art::after { content:""; position:absolute; inset:8px; z-index:3; pointer-events:none; border:1px solid rgba(var(--rarity-rgb),.22); clip-path:polygon(8px 0,calc(100% - 8px) 0,100% 8px,100% calc(100% - 8px),calc(100% - 8px) 100%,8px 100%,0 calc(100% - 8px),0 8px); }
.market-pack-card-art > span { position:absolute; z-index:5; top:50%; left:50%; display:grid; width:48px; height:50px; place-items:center; border:1px solid var(--rarity); color:#f2d898; background:rgba(14,8,4,.88); box-shadow:inset 0 0 0 3px #0b0704,inset 0 0 0 4px rgba(var(--rarity-rgb),.36),0 0 23px rgba(var(--rarity-rgb),.3); font-family:"STKaiti",serif; font-size:23px; transform:translate(-50%,-50%) rotate(-4deg); }
.market-pack-card-art img { --pack-shift:calc((var(--pack-image-index) - 1) * 18px); position:absolute; top:17px; left:24px; width:64px; height:116px; object-fit:cover; border:1px solid rgba(var(--rarity-rgb),.28); opacity:.58; filter:saturate(.66) brightness(.66); transform:translateX(var(--pack-shift)) rotate(calc((var(--pack-image-index) - 1) * 7deg)); }
.market-pack-card > small { color:var(--rarity); font-family:Georgia,serif; font-size:6px; letter-spacing:.13em; }
.market-pack-card h5 { margin:4px 0 3px; color:#ead09a; font-family:"STKaiti",serif; font-size:22px; font-weight:500; letter-spacing:.12em; }
.market-pack-card > p { margin:0;color:#9b8c72;font-family:"FangSong",serif;font-size:9px;line-height:1.6; }
.market-pack-card-odds { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:8px; padding:6px 0; border-top:1px solid rgba(var(--rarity-rgb),.2); color:#81745f; font-family:"FangSong",serif; font-size:8px; }
.market-pack-card-odds b { color:#d9bc7d; font-weight:500; }
.market-pack-card footer { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.market-pack-card footer > b { color:#ecc46d; font-family:Georgia,serif; font-size:16px; font-weight:400; }
.market-pack-card footer b i { margin-left:4px; color:#83735b; font-family:"FangSong",serif; font-size:7px; font-style:normal; }
.market-pack-card footer > span { color:#c3a66c; font-family:"FangSong",serif; font-size:9px; }
.market-pack-card footer em { margin-left:5px; color:var(--rarity); font-family:Georgia,serif; font-size:16px; font-style:normal; }
.market-pack-grid.is-immortal .market-pack-card { grid-template-columns:180px minmax(0,1fr); min-height:230px; background:radial-gradient(circle at 14% 50%,rgba(231,203,116,.22),transparent 25%),radial-gradient(circle at 83% 0,rgba(156,55,28,.22),transparent 31%),linear-gradient(125deg,#3c240f,#090604 51%,#30140b); }
.market-pack-grid.is-immortal .market-pack-card-art { width:160px; height:200px; }
.market-pack-grid.is-immortal .market-pack-card-art img { top:25px; left:48px; width:68px; height:145px; }
.market-pack-grid.is-immortal .market-pack-card h5 { font-size:30px; }

.directed-pack-market { position:relative; z-index:2; margin:14px 18px 0; border:1px solid rgba(192,143,65,.38); background:linear-gradient(145deg,rgba(39,23,11,.94),rgba(8,5,3,.96) 48%,rgba(31,15,7,.93)); box-shadow:inset 0 0 60px rgba(0,0,0,.52); }
.directed-pack-heading { display:grid; grid-template-columns:50px minmax(0,1fr) auto; align-items:center; gap:14px; margin:0 12px; padding:15px 4px 12px; border-bottom:1px solid rgba(194,146,68,.28); }
.directed-pack-heading > span,.directed-pack-detail > header > span { display:grid; width:44px; height:46px; place-items:center; border:1px solid #ba873c; color:#e7c477; font-family:"STKaiti",serif; font-size:22px; transform:rotate(-4deg); }
.directed-pack-heading small,.directed-pack-detail header small { color:#79694f; font-family:Georgia,serif; font-size:7px; letter-spacing:.22em; }
.directed-pack-heading h3,.directed-pack-detail header h3 { margin:3px 0; color:#ead19a; font-family:"STKaiti",serif; font-size:23px; font-weight:500; letter-spacing:.12em; }
.directed-pack-heading p,.directed-pack-detail header p { margin:0; color:#94846a; font-family:"FangSong",serif; font-size:9px; }
.directed-pack-heading > b { color:#e5bf6b; font:22px Georgia,serif; text-align:right; }
.directed-pack-heading > b i { display:block; margin-top:3px; color:#796c58; font:8px "FangSong",serif; }
.directed-pack-wallet { display:grid; grid-template-columns:auto auto; align-items:center; gap:0 9px; padding:9px 12px; border:1px solid rgba(191,143,66,.34); background:rgba(37,23,12,.72); }
.directed-pack-wallet small { color:#9b8157; font:9px "FangSong",serif; }
.directed-pack-wallet b { color:#e7c36e; font:22px Georgia,serif; }
.directed-pack-wallet b i { margin-left:5px; color:#81725b; font:8px "FangSong",serif; }
.directed-pack-controls { display:grid; grid-template-columns:auto minmax(300px,1fr); gap:10px; padding:12px 16px; border-bottom:1px solid rgba(193,145,68,.24); }
.directed-pack-controls nav { display:flex; gap:8px; }
.directed-pack-controls nav button { min-width:126px; min-height:42px; padding:0 16px; border:1px solid rgba(191,143,66,.34); color:#aa9672; cursor:pointer; background:rgba(24,15,8,.76); font:10px "FangSong",serif; }
.directed-pack-controls nav button.is-active { border-color:#c79645; color:#ead08d; box-shadow:inset 0 -3px #c79645; background:linear-gradient(180deg,rgba(91,57,23,.62),rgba(28,17,9,.82)); }
.directed-pack-market .market-pack-card { grid-template-columns:156px minmax(0,1fr); min-height:230px; }
.directed-pack-market .market-pack-card-art { width:138px; height:202px; }
.directed-pack-market .market-pack-card-art img { top:27px; left:37px; width:64px; height:145px; }
.directed-pack-market .market-pack-card.is-selected { border-color:var(--rarity); box-shadow:inset 3px 0 var(--rarity),inset 0 0 38px rgba(var(--rarity-rgb),.15),0 0 0 1px rgba(var(--rarity-rgb),.34),0 14px 28px rgba(0,0,0,.42); transform:translateY(-2px); }
.directed-pack-market .market-pack-card:disabled { cursor:wait; opacity:.62; }
.directed-pack-market .market-pack-card.is-immortal-pack { --rarity:#e8c979; --rarity-rgb:232,201,121; background:radial-gradient(circle at 14% 50%,rgba(231,203,116,.2),transparent 27%),linear-gradient(125deg,#3c240f,#090604 55%,#30140b); }
.directed-pack-detail { margin:0 12px 12px; padding:14px; border:1px solid rgba(201,151,72,.34); background:rgba(9,6,4,.78); }
.directed-pack-detail > header { display:grid; grid-template-columns:50px minmax(0,1fr) auto; align-items:center; gap:12px; padding-bottom:12px; border-bottom:1px solid rgba(192,143,65,.24); }
.directed-pack-detail > header > b { color:#e6c173; font:20px Georgia,serif; text-align:right; }
.directed-pack-detail > header > b i { display:block; margin-top:3px; color:#81735d; font:8px "FangSong",serif; }
.directed-pack-detail .market-pack-pool { max-height:360px; }
.directed-pack-selection { display:grid; grid-template-columns:auto auto; align-items:baseline; gap:3px 10px; min-height:42px; padding:7px 12px; border:1px solid rgba(198,149,73,.32); background:rgba(27,17,9,.76); font-family:"FangSong",serif; }
.directed-pack-selection > span { color:#806f55; font-size:8px; }
.directed-pack-selection > b { color:#e2c17c; font-size:13px; font-weight:500; }
.directed-pack-selection > small { grid-column:1/-1; color:#8f8068; font-size:8px; }

.market-pack-backdrop { position:fixed; z-index:12100; inset:0; display:grid; padding:24px; place-items:center; background:radial-gradient(circle at 50% 38%,rgba(91,53,17,.28),rgba(0,0,0,.94) 68%); backdrop-filter:blur(10px); animation:mapVeilIn 180ms ease both; }
.market-opening-backdrop { box-sizing:border-box; overflow:hidden; }
.market-pack-dialog { --rarity:#d49b43; --rarity-rgb:212,155,67; position:relative; display:flex; width:min(1040px,calc(100vw - 48px)); max-height:92vh; flex-direction:column; overflow:hidden; padding:24px; border:1px solid rgba(var(--rarity-rgb),.72); color:#a8987c; background:radial-gradient(circle at 82% 0,rgba(var(--rarity-rgb),.14),transparent 30%),linear-gradient(140deg,#321f0e,#090604 43% 78%,#251307); box-shadow:inset 0 0 0 4px #050302,inset 0 0 0 5px rgba(var(--rarity-rgb),.17),inset 0 0 75px #000,0 35px 100px #000; clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px),0 12px); animation:dossierOpen 380ms cubic-bezier(.16,.78,.18,1) both; }
.market-pack-close { position:absolute; z-index:4; top:15px; right:16px; display:grid; width:35px; height:35px; padding:0; place-items:center; border:1px solid rgba(var(--rarity-rgb),.48); color:#d5b979; cursor:pointer; background:#100a05; font-size:20px; }
.market-pack-content > header { display:grid; grid-template-columns:50px minmax(0,1fr) 110px; align-items:center; gap:14px; padding:0 48px 16px 0; border-bottom:1px solid rgba(var(--rarity-rgb),.3); }
.market-pack-content > header > span { display:grid; width:47px; height:49px; place-items:center; border:1px solid var(--rarity); color:#e7c477; font-family:"STKaiti",serif; font-size:23px; transform:rotate(-4deg); }
.market-pack-dialog header small { color:#7e6c50; font-family:Georgia,serif; font-size:7px; letter-spacing:.24em; }
.market-pack-dialog header h2 { margin:3px 0 2px; color:#ecd49b; font-family:"STKaiti",serif; font-size:25px; font-weight:500; letter-spacing:.12em; }
.market-pack-dialog header p { margin:0; color:#8d7d62; font-family:"FangSong",serif; font-size:9px; }
.market-pack-content > header > b { color:#ecc36d; font-family:Georgia,serif; font-size:20px; font-weight:400; text-align:right; }
.market-pack-content > header > b i { display:block; margin-top:3px; color:#84745b; font-family:"FangSong",serif; font-size:8px; font-style:normal; }
.market-pack-result { display:grid; grid-template-columns:82px minmax(0,1fr) auto; grid-template-rows:auto auto 1fr; min-height:103px; margin-top:13px; padding:10px 13px; border:1px solid rgba(var(--rarity-rgb),.48); background:linear-gradient(90deg,rgba(var(--rarity-rgb),.17),rgba(13,8,4,.78) 55%); box-shadow:inset 3px 0 var(--rarity),0 0 24px rgba(var(--rarity-rgb),.1); animation:marketPackReveal 520ms cubic-bezier(.15,.82,.2,1) both; }
.market-pack-result > div { position:relative; grid-row:1/4; width:70px; height:81px; overflow:hidden; border:1px solid rgba(var(--rarity-rgb),.48); }
.market-pack-result img { width:100%; height:100%; object-fit:cover; }
.market-pack-result > div i { position:absolute; z-index:2; right:3px; bottom:3px; padding:2px 4px; color:#160d05; background:var(--rarity); font-size:7px; font-style:normal; }
.market-pack-result > span { color:#8f7d60; font-family:"FangSong",serif; font-size:8px; letter-spacing:.15em; }
.market-pack-result h3 { margin:2px 0; color:#f2d795; font-family:"STKaiti",serif; font-size:22px; font-weight:500; }
.market-pack-result p { margin:0; color:#aa997c; font-family:"FangSong",serif; font-size:9px; }
.market-pack-result > small { grid-column:3; grid-row:1/4; align-self:center; color:#d3b470; font-family:"FangSong",serif; font-size:9px; }
.market-pack-pool-heading { display:grid; grid-template-columns:auto auto auto minmax(0,1fr); align-items:center; gap:10px; margin-top:13px; padding:8px 10px; border:1px solid rgba(var(--rarity-rgb),.22); background:rgba(14,9,5,.68); font-family:"FangSong",serif; }
.market-pack-pool-heading span { color:#d8bf87; font-size:11px; }
.market-pack-pool-heading b,.market-pack-pool-heading em { padding-left:10px; border-left:1px solid rgba(var(--rarity-rgb),.24); font-size:9px; font-weight:500; font-style:normal; }
.market-pack-pool-heading b { color:#9b8b70; }
.market-pack-pool-heading em { color:var(--rarity); }
.market-pack-pool-heading p { margin:0; color:#756854; font-size:8px; text-align:right; }
.market-pack-pool { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; min-height:110px; max-height:43vh; overflow:auto; padding:9px 2px 9px 0; scrollbar-color:#86602b #0b0704; }
.market-pack-pool > article { position:relative; display:grid; grid-template-columns:55px minmax(0,1fr) auto; grid-template-rows:auto auto 1fr auto; align-content:start; min-height:108px; padding:7px; border:1px solid rgba(var(--rarity-rgb),.26); background:rgba(20,13,7,.76); }
.market-pack-pool article > div { grid-row:1/4; position:relative; width:48px; height:62px; overflow:hidden; border:1px solid rgba(var(--rarity-rgb),.34); }
.market-pack-pool article img { width:100%; height:100%; object-fit:cover; filter:saturate(.85) brightness(.85); }
.market-pack-pool article > div span { position:absolute; right:2px; bottom:2px; padding:1px 3px; color:#181006; background:var(--rarity); font-family:Georgia,serif; font-size:6px; }
.market-pack-pool article small { min-width:0; overflow:hidden; color:#786b57; font-family:"FangSong",serif; font-size:7px; text-overflow:ellipsis; white-space:nowrap; }
.market-pack-pool article h4 { min-width:0; margin:2px 0; overflow:hidden; color:#d8c28f; font-family:"STKaiti",serif; font-size:14px; font-weight:500; text-overflow:ellipsis; white-space:nowrap; }
.market-pack-pool article p { margin:0; color:#897b64; font-family:"FangSong",serif; font-size:7px; }
.market-pack-pool article > b { grid-column:3; grid-row:1/4; align-self:center; padding-left:6px; color:var(--rarity); font-family:Georgia,serif; font-size:9px; font-weight:400; }
.market-pack-item-attributes { display:flex; min-width:0; align-content:flex-start; flex-wrap:wrap; gap:2px 7px; line-height:1.45; }
.market-pack-item-attributes span { color:#b7a27a; white-space:nowrap; }
.market-pack-item-attributes span b { margin-left:2px; color:#d9bd7a; font-weight:500; }
.market-pack-item-details { grid-column:1/-1; margin-top:7px; border-top:1px solid rgba(var(--rarity-rgb),.3); color:#b7a175; font-family:"FangSong",serif; }
.market-pack-item-details summary { min-height:30px; padding:8px 2px 5px; color:#dfc486; cursor:pointer; font-size:10px; list-style-position:inside; }
.market-pack-item-details summary:hover { color:#f4d99a; }
.market-pack-item-details > div { display:grid; gap:7px; padding:7px 5px 5px; border-top:1px solid rgba(var(--rarity-rgb),.16); background:rgba(5,3,2,.35); }
.market-pack-pool .market-pack-item-details p { display:grid; gap:2px; color:#92836b; font-size:8px; line-height:1.55; }
.market-pack-item-details p b { color:#c7ad73; font-weight:500; }
.market-pack-item-details p span { overflow-wrap:anywhere; }
.market-pack-content > footer { display:flex; align-items:center; justify-content:flex-end; gap:14px; margin-top:auto; padding-top:13px; border-top:1px solid rgba(var(--rarity-rgb),.26); }
.market-pack-content > footer > div { display:grid; grid-template-columns:auto auto; align-items:baseline; gap:2px 8px; font-family:"FangSong",serif; text-align:right; }
.market-pack-content > footer span { color:#81735c; font-size:8px; }
.market-pack-content > footer b { color:#ddc181; font-family:Georgia,serif; font-size:18px; font-weight:400; }
.market-pack-content > footer small { grid-column:1/3; color:#6f6350; font-size:7px; }
.market-pack-content > footer button { min-width:190px; height:44px; border:1px solid rgba(var(--rarity-rgb),.68); color:#231405; cursor:pointer; background:linear-gradient(180deg,#e3c16f,#a46f2f); box-shadow:inset 0 1px rgba(255,245,199,.5),0 0 22px rgba(var(--rarity-rgb),.15); font-family:"STKaiti",serif; font-size:15px; letter-spacing:.1em; }
.market-pack-content > footer button:hover:not(:disabled) { filter:brightness(1.1); }
.market-pack-content > footer button:disabled { opacity:.42; cursor:not-allowed; filter:grayscale(.45); }
@keyframes marketPackReveal { from { opacity:0; transform:translateY(-9px) scale(.97); filter:blur(3px); } 65% { transform:translateY(2px) scale(1.01); } to { opacity:1; transform:none; filter:none; } }

.breakthrough-choice-dialog { background:radial-gradient(ellipse at 20% 0,rgba(224,164,62,.16),transparent 60%),#130e08; }
.breakthrough-heading { display:flex; align-items:center; justify-content:center; gap:22px; margin-bottom:18px; text-align:left; }
.breakthrough-heading img { width:105px; height:105px; object-fit:cover; border:1px solid #cc9848; box-shadow:0 0 28px #c99b4433; }
.breakthrough-heading small { color:#a68b58; font:8px Georgia,serif; letter-spacing:.2em; }
.breakthrough-heading h2 { color:#f2d590; margin:7px 0; }
.breakthrough-heading p { color:#c9ad76; font-size:12px; }
.breakthrough-tiers { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:14px 0; }
.breakthrough-tiers > div { padding:13px 5px; border:1px solid #9f743754; background:linear-gradient(150deg,#49351c66,#140f09); text-align:center; }
.breakthrough-tiers b,.breakthrough-tiers span { display:block; }
.breakthrough-tiers b { color:#efd298; font:19px Georgia,serif; }
.breakthrough-tiers span { margin-top:7px; color:#af9971; font-size:11px; }
.breakthrough-cost { display:flex; justify-content:space-between; flex-wrap:wrap; gap:9px; padding:14px; margin-top:16px; border:1px solid #b1863d77; color:#cfb983; font-size:13px; }
.breakthrough-cost b { color:#f9d780; }
.breakthrough-note { color:#948268; font-size:11px; line-height:1.7; }
.attribute-choice-grid > div > small:last-child { display:block; min-height:24px; margin:7px 1px 0; color:#c7a45e; font-size:10px; line-height:1.5; }
@media(max-width:600px) { .breakthrough-heading { gap:14px; } .breakthrough-heading img { width:78px; height:78px; } .breakthrough-tiers { gap:5px; } .breakthrough-tiers b { font-size:16px; } }

/* A complete opening ceremony, shared by all market packs. */
.market-pack-content { display:flex; flex-direction:column; min-height:0; max-height:calc(92vh - 48px); }
.market-pack-dialog.has-opening { width:min(1560px,calc(100vw - 48px)); height:calc(100dvh - 48px); max-height:none; min-height:620px; padding:0; }
.market-pack-dialog.has-opening .market-pack-content { visibility:hidden; }
.market-pack-grid:not(.is-immortal) .market-pack-card:last-child:nth-child(odd) { grid-column:1/-1; }
.market-opening { --ceremony-rgb:234,180,88; position:absolute; z-index:10; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; overflow:auto; padding:28px 24px; isolation:isolate; text-align:center; color:#ecd39a; background:radial-gradient(ellipse at 50% 42%,rgba(var(--ceremony-rgb),.13),transparent 57%),#080705; }
.market-opening[data-pack="legendary-armor"] { --ceremony-rgb:127,200,187; }
.market-opening[data-pack="legendary-treasure"] { --ceremony-rgb:238,188,101; }
.market-opening[data-pack="legendary-token"] { --ceremony-rgb:235,125,82; }
.market-opening[data-pack="legendary-skill"] { --ceremony-rgb:147,184,222; }
.market-opening[data-pack="immortal"] { --ceremony-rgb:251,218,156; }
.market-opening-atmosphere { position:absolute; inset:0; z-index:-1; overflow:hidden; pointer-events:none; }
.market-opening-rays { position:absolute; left:50%; top:47%; width:1000px; height:1000px; margin:-500px; opacity:.22; background:repeating-conic-gradient(from 10deg,transparent 0deg 13deg,rgba(var(--ceremony-rgb),.23) 14deg,transparent 19deg 30deg); mask-image:radial-gradient(circle,#000,transparent 68%); animation:marketRaysTurn 40s linear infinite; }
.market-opening-ring { position:absolute; left:50%; top:47%; width:470px; height:470px; margin:-235px; border:1px solid rgba(var(--ceremony-rgb),.32); border-radius:50%; box-shadow:0 0 0 12px rgba(var(--ceremony-rgb),.025),0 0 0 38px rgba(var(--ceremony-rgb),.02),inset 0 0 60px rgba(var(--ceremony-rgb),.04); animation:marketRaysTurn 24s linear infinite; }
.market-opening-ring::before,.market-opening-ring::after { content:""; position:absolute; inset:44px; border:1px solid rgba(var(--ceremony-rgb),.23); transform:rotate(45deg); }
.market-opening-ring::after { transform:rotate(0); }
.market-opening-ring.is-inner { width:330px; height:330px; margin:-165px; border-style:dashed; opacity:.65; animation-direction:reverse; }
.market-opening-atmosphere > i { position:absolute; top:47%; left:50%; width:3px; height:3px; border-radius:50%; background:rgb(var(--ceremony-rgb)); box-shadow:0 0 8px rgb(var(--ceremony-rgb)); animation:marketSparkRise 2.6s var(--spark-delay) ease-out infinite; }
.market-opening > header { position:relative; flex:none; padding:0; }
.market-opening > header small { color:rgba(var(--ceremony-rgb),.65); font:8px Georgia,serif; letter-spacing:.34em; }
.market-opening > header p { margin:12px 0 2px; color:rgb(var(--ceremony-rgb)); font:14px "FangSong",serif; letter-spacing:.2em; }
.market-opening > header h3 { margin:5px 0 10px; font:38px "STKaiti",serif; letter-spacing:.25em; text-indent:.25em; color:#f8e5bd; }
.market-opening > header > span { color:#a7977d; font:12px "FangSong",serif; letter-spacing:.2em; }
.market-opening-stage { position:relative; display:grid; place-items:center; width:100%; height:300px; flex:none; perspective:900px; }
.market-opening-seal { position:relative; display:grid; place-items:center; width:172px; height:226px; transform-style:preserve-3d; animation:marketSealGather 2.8s ease-in both; }
.seal-wing { position:absolute; inset:0 50% 0 0; border:1px solid rgba(var(--ceremony-rgb),.75); background:repeating-linear-gradient(45deg,transparent 0 16px,rgba(var(--ceremony-rgb),.04) 17px 18px),linear-gradient(100deg,#342817,#100b07); box-shadow:inset 0 0 0 6px #100c07,inset 0 0 0 7px rgba(var(--ceremony-rgb),.26),0 0 35px rgba(var(--ceremony-rgb),.15); transform-origin:left; animation:marketSealLeft 2.8s ease both; }
.seal-wing.is-right { inset:0 0 0 50%; transform-origin:right; animation-name:marketSealRight; }
.market-opening-seal > span { z-index:1; display:grid; place-items:center; width:88px; height:90px; border:1px solid rgb(var(--ceremony-rgb)); background:#110d08; box-shadow:inset 0 0 0 5px #110d08,inset 0 0 0 6px rgba(var(--ceremony-rgb),.4),0 0 45px rgba(var(--ceremony-rgb),.25); color:rgb(var(--ceremony-rgb)); font:48px "STKaiti",serif; transform:rotate(-6deg); animation:marketSealMark 2.8s ease both; }
.market-opening-seal > small { position:absolute; bottom:24px; color:rgba(var(--ceremony-rgb),.8); font:10px "FangSong",serif; letter-spacing:.2em; }
.market-opening-caption { z-index:1; min-height:92px; max-width:550px; }
.market-opening-caption h4 { margin:0 0 10px; color:#f6dfae; font:20px "STKaiti",serif; letter-spacing:.15em; }
.market-opening-caption p { margin:0 0 9px; color:rgb(var(--ceremony-rgb)); font:13px "FangSong",serif; line-height:1.6; }
.market-opening-caption small { color:#9a8b71; font:11px "FangSong",serif; }
.market-opening-progress { width:160px; height:2px; margin:16px auto; background:#33291b; overflow:hidden; }
.market-opening-progress i { display:block; height:100%; transform-origin:left; background:rgb(var(--ceremony-rgb)); animation:marketSealProgress 2.8s linear both; }
.market-opening-action { z-index:1; flex:none; min-width:190px; min-height:44px; margin-top:12px; padding:10px 24px; border:1px solid rgba(var(--ceremony-rgb),.4); background:rgba(12,9,6,.8); color:#bfb093; cursor:pointer; font:14px "STKaiti",serif; letter-spacing:.12em; }
.market-opening-action:hover { background:rgba(var(--ceremony-rgb),.15); border-color:rgb(var(--ceremony-rgb)); }
.market-opening-action:focus-visible { outline:2px solid rgb(var(--ceremony-rgb)); outline-offset:5px; }
.market-opening-relic { position:relative; width:190px; height:246px; padding:7px; border:1px solid rgb(var(--ceremony-rgb)); background:#15100a; box-shadow:0 0 60px rgba(var(--ceremony-rgb),.23),inset 0 0 0 3px #050402; animation:marketRelicArrives .85s cubic-bezier(.16,.8,.2,1) both; }
.market-opening-relic img { position:relative; display:block; width:100%; height:100%; object-fit:contain; background:#0b0805; }
.market-opening-relic > span { position:absolute; bottom:15px; left:14px; right:14px; padding:7px; border-top:1px solid rgba(var(--ceremony-rgb),.5); background:rgba(8,6,4,.92); color:rgb(var(--ceremony-rgb)); font:12px "FangSong",serif; letter-spacing:.22em; }
.market-opening-halo { position:absolute; inset:-50px; background:radial-gradient(ellipse,rgba(var(--ceremony-rgb),.32),transparent 68%); animation:marketRelicHalo 3s ease-in-out infinite alternate; }
.market-opening.is-revealed .market-opening-caption { animation:marketPackReveal .65s .2s both; }
.market-opening.is-revealed .market-opening-caption h4 { font-size:29px; }
.market-opening.is-revealed .market-opening-action { color:#1b1308; border-color:rgb(var(--ceremony-rgb)); background:linear-gradient(110deg,rgb(var(--ceremony-rgb)),#ad8248); box-shadow:0 0 25px rgba(var(--ceremony-rgb),.16); animation:marketPackReveal .6s .35s both; }
.market-opening.is-revealed .market-opening-ring { border-color:rgba(var(--ceremony-rgb),.6); }
@keyframes marketRaysTurn { to { transform:rotate(360deg); } }
@keyframes marketSparkRise { 0% { opacity:0; transform:rotate(var(--spark-angle)) translateX(55px) scale(.2); } 30% { opacity:.85; } 100% { opacity:0; transform:rotate(var(--spark-angle)) translateX(var(--spark-distance)) scale(1.1); } }
@keyframes marketSealGather { 0% { transform:translateY(20px) rotateY(-20deg) scale(.8); opacity:0; } 22% { opacity:1; } 68% { transform:translateY(-8px) rotateY(10deg) scale(1); filter:brightness(1.2); } 86% { transform:scale(1.06); filter:brightness(1.7); } 100% { transform:scale(1.13); filter:brightness(2); opacity:0; } }
@keyframes marketSealLeft { 0%,76% { transform:rotateY(0); } 100% { transform:translateX(-45px) rotateY(-75deg); } }
@keyframes marketSealRight { 0%,76% { transform:rotateY(0); } 100% { transform:translateX(45px) rotateY(75deg); } }
@keyframes marketSealMark { 0%,65% { opacity:1; transform:rotate(-6deg) scale(1); } 88%,100% { opacity:0; transform:rotate(12deg) scale(1.5); } }
@keyframes marketSealProgress { from { transform:scaleX(0); } to { transform:scaleX(1); } }
@keyframes marketRelicArrives { from { opacity:0; transform:translateY(18px) rotateY(-32deg) scale(.65); filter:brightness(2); } to { opacity:1; transform:none; filter:brightness(1); } }
@keyframes marketRelicHalo { to { opacity:.55; transform:scale(1.12); } }
@media (max-width:600px), (max-height:750px) {
  .market-pack-dialog.has-opening { width:calc(100vw - 20px); height:calc(100dvh - 20px); min-height:0; }
  .market-opening { padding:20px 14px; }
  .market-opening > header h3 { font-size:28px; }
  .market-opening > header small { font-size:7px; letter-spacing:.16em; }
  .market-opening-stage { height:220px; }
  .market-opening-seal { width:135px; height:184px; }
  .market-opening-relic { width:145px; height:192px; }
  .market-opening-caption { min-height:75px; }
  .market-opening-caption h4 { font-size:18px; }
  .market-opening.is-revealed .market-opening-caption h4 { font-size:24px; }
  .market-opening-action { margin-top:5px; }
  .market-opening-ring { transform:scale(.8); }
}
@media (max-height:560px) { .market-opening { justify-content:flex-start; } }
@media (prefers-reduced-motion:reduce) {
  .market-opening *, .market-opening *::before, .market-opening *::after { animation:none !important; transition:none !important; }
  .market-opening-atmosphere > i { display:none; }
  .market-opening-relic,.market-opening-caption,.market-opening-action { opacity:1; transform:none; }
}

@keyframes equipmentRefineGlow { from { box-shadow:0 0 8px rgba(218,159,66,.18),inset 0 0 8px rgba(218,159,66,.05); } to { box-shadow:0 0 21px rgba(218,159,66,.48),inset 0 0 16px rgba(218,159,66,.16); } }
@keyframes equipmentMythicGlow { from { box-shadow:0 0 12px rgba(232,202,106,.32),0 0 3px rgba(156,69,43,.25),inset 0 0 10px rgba(232,202,106,.1); } to { box-shadow:0 0 31px rgba(244,211,111,.7),0 0 12px rgba(163,64,42,.45),inset 0 0 22px rgba(232,202,106,.23); } }

.allocation-main { position:relative; z-index:4; width:min(1540px,calc(100% - 7vw)); margin:30px auto 0; }
.allocation-command-bar { display:grid; grid-template-columns:58px minmax(310px,1fr) minmax(260px,380px) 105px; align-items:center; gap:18px; min-height:118px; padding:19px 24px; border:1px solid rgba(208,159,80,.56); background:linear-gradient(100deg,rgba(92,58,26,.8),rgba(17,11,7,.95) 35% 78%,rgba(74,45,20,.78)); box-shadow:inset 0 0 0 4px rgba(7,4,2,.66),0 18px 38px rgba(0,0,0,.45); }
.allocation-seal { display:grid; width:51px; height:54px; place-items:center; border:1px solid #8c3429; color:#d15e49; font-family:"STKaiti",serif; font-size:26px; transform:rotate(-4deg); }
.allocation-command-bar small { color:#9c896b; font-family:Georgia,serif; font-size:8px; letter-spacing:.25em; }
.allocation-command-bar h2 { margin:3px 0; color:#f0d69a; font-family:"STKaiti",serif; font-size:27px; font-weight:600; letter-spacing:.13em; }
.allocation-command-bar p { margin:0; color:#b8a687; font-family:"FangSong",serif; font-size:11px; }
.allocation-recipient-tools { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px; }
.allocation-recipient-tools > label { display:grid; grid-template-columns:80px minmax(0,1fr); align-items:center; border:1px solid rgba(195,145,70,.45); background:rgba(7,5,3,.38); }
.allocation-recipient-tools > label span { padding-left:13px; color:#c4ae83; font-family:"FangSong",serif; font-size:11px; }
.allocation-recipient-tools .level-sort-toggle { height:46px; border:1px solid rgba(191,141,67,.5)!important; cursor:pointer; background:linear-gradient(100deg,rgba(77,46,17,.68),rgba(14,9,5,.92)); }
.allocation-recipient-tools .level-sort-toggle:disabled { cursor:wait; opacity:.55; }
.allocation-recipient-pagination { grid-column:1 / -1; min-height:25px; margin:0; gap:9px; font-size:9px; }
.allocation-recipient-pagination button { min-width:58px; padding:4px 8px; }
.allocation-recipient-pagination b { font-size:12px; }
.allocation-command-bar select { height:44px; border:0; border-left:1px solid rgba(195,145,70,.35); outline:0; color:#f0d49a; background:#171007; padding:0 10px; font-family:"FangSong",serif; font-size:12px; }
.allocation-target-summary { display:flex; height:64px; flex-direction:column; align-items:center; justify-content:center; border-left:1px solid rgba(198,148,74,.34); }
.allocation-target-summary span { color:#a18f72; font-size:9px; }
.allocation-target-summary b { color:#efc66e; font-family:Georgia,serif; font-size:25px; font-weight:400; }
.allocation-target-summary small { color:#958469; font-family:"FangSong",serif; letter-spacing:0; }

.allocation-layout { display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:18px; margin-top:18px; align-items:start; }
.allocation-catalog-panel,.allocation-order-panel { position:relative; border:1px solid rgba(204,155,78,.52); background:linear-gradient(118deg,rgba(91,58,27,.72),rgba(15,10,6,.97) 40%); box-shadow:inset 0 0 0 4px rgba(7,4,2,.67),inset 0 0 0 5px rgba(219,172,91,.13),0 20px 42px rgba(0,0,0,.42); }
.allocation-catalog-panel { min-height:650px; padding:25px 28px 31px; }
.allocation-catalog-panel > header { display:flex; align-items:end; justify-content:space-between; gap:20px; padding-bottom:15px; border-bottom:1px solid rgba(193,144,71,.3); }
.allocation-catalog-panel header small { color:#98866a; font-family:Georgia,serif; font-size:8px; letter-spacing:.22em; }
.allocation-catalog-panel h3 { margin:2px 0 0; color:#efd397; font-family:"STKaiti",serif; font-size:25px; font-weight:600; letter-spacing:.13em; }
.allocation-catalog-panel header label { display:grid; grid-template-columns:48px 190px; align-items:center; border-bottom:1px solid rgba(196,147,73,.5); }
.allocation-catalog-panel header label span { color:#a99777; font-size:10px; }
.allocation-catalog-panel header input { height:34px; border:0; outline:0; color:#e6d0a1; background:transparent; font-family:"FangSong",serif; }
.allocation-category-tabs { display:flex; flex-wrap:wrap; gap:7px; margin-top:16px; }
.allocation-category-tabs button { min-width:65px; height:31px; border:1px solid rgba(180,133,66,.35); color:#aa9877; cursor:pointer; background:rgba(47,29,12,.38); font-family:"FangSong",serif; font-size:10px; }
.allocation-category-tabs button:hover,.allocation-category-tabs button.is-active { border-color:#b78039; color:#f3d490; background:rgba(109,64,22,.58); }
.allocation-catalog-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin-top:17px; }
.allocation-catalog-grid > button { position:relative; display:grid; grid-template-columns:62px minmax(0,1fr); align-items:center; min-height:89px; overflow:hidden; padding:9px; border:1px solid rgba(183,136,68,.32); color:#c8b38a; cursor:pointer; background:rgba(7,5,3,.3); text-align:left; }
.allocation-catalog-grid > button:hover,.allocation-catalog-grid > button.is-selected { border-color:#d19a45; background:linear-gradient(100deg,rgba(119,71,25,.53),rgba(8,5,3,.34)); transform:translateY(-2px); }
.allocation-catalog-grid img,.allocation-catalog-grid > button > i { width:54px; height:62px; object-fit:cover; border:1px solid rgba(192,144,73,.32); filter:saturate(.92) brightness(1.03); }
.allocation-catalog-grid > button > i { display:grid; place-items:center; color:#d46650; background:rgba(63,25,18,.5); font-family:"STKaiti",serif; font-size:24px; font-style:normal; }
.allocation-catalog-grid span small,.allocation-catalog-grid span b,.allocation-catalog-grid span em { display:block; }
.allocation-catalog-grid span small { color:#a38e6b; font-size:8px; }
.allocation-catalog-grid span b { margin:3px 0; color:#e3ca91; font-family:"FangSong",serif; font-size:12px; }
.allocation-catalog-grid span em { overflow:hidden; color:#9e9078; font-size:8px; font-style:normal; text-overflow:ellipsis; white-space:nowrap; }
.allocation-catalog-grid strong { position:absolute; top:6px; right:6px; display:grid; width:22px; height:22px; place-items:center; border:1px solid #8a3429; color:#d05c48; font-family:"STKaiti",serif; font-size:11px; opacity:0; }
.allocation-catalog-grid > button.is-selected strong { opacity:1; }

.allocation-order-panel { position:sticky; top:18px; padding:28px 27px 25px; text-align:center; }
.allocation-order-mark { display:grid; width:56px; height:56px; margin:0 auto 11px; place-items:center; border:1px solid #8e3429; color:#d05d48; font-family:"STKaiti",serif; font-size:26px; transform:rotate(-4deg); }
.allocation-order-panel > small { color:#98856a; font-family:Georgia,serif; font-size:8px; letter-spacing:.25em; }
.allocation-order-panel h3 { margin:3px 0 18px; color:#efd296; font-family:"STKaiti",serif; font-size:25px; font-weight:600; letter-spacing:.14em; }
.allocation-selected-item { display:grid; grid-template-columns:82px minmax(0,1fr); align-items:center; gap:13px; min-height:102px; padding:11px; border-top:1px solid rgba(192,143,71,.32); border-bottom:1px solid rgba(192,143,71,.32); background:rgba(6,4,3,.28); text-align:left; }
.allocation-selected-item > img,.allocation-selected-item > i { width:76px; height:76px; object-fit:cover; border:1px solid rgba(195,147,74,.37); }
.allocation-selected-item > i { display:grid; place-items:center; color:#d15e49; font-family:"STKaiti",serif; font-size:29px; font-style:normal; }
.allocation-selected-item span,.allocation-selected-item b,.allocation-selected-item small { display:block; }
.allocation-selected-item span { color:#a46d4a; font-size:9px; }
.allocation-selected-item b { margin:3px 0; color:#edd39b; font-family:"STKaiti",serif; font-size:18px; }
.allocation-selected-item small { color:#aa9a80; font-size:9px; line-height:1.5; }
.allocation-order-panel dl { margin:14px 0; }
.allocation-order-panel dl > div { display:flex; justify-content:space-between; padding:9px 3px; border-bottom:1px solid rgba(181,134,66,.2); }
.allocation-order-panel dt { color:#a08f73; font-size:10px; }
.allocation-order-panel dd { margin:0; color:#dfc283; font-family:"FangSong",serif; font-size:11px; }
.allocation-quantity { display:grid; grid-template-columns:78px 70px minmax(0,1fr); align-items:center; margin-top:14px; border:1px solid rgba(189,141,70,.4); }
.allocation-quantity span { color:#b09c78; font-size:10px; }
.allocation-quantity input { width:70px; height:40px; border:0; border-right:1px solid rgba(189,141,70,.28); border-left:1px solid rgba(189,141,70,.28); outline:0; color:#f0ca78; background:#140d07; font-family:Georgia,serif; font-size:15px; text-align:center; }
.allocation-quantity small { color:#93856e; font-family:"FangSong",serif; font-size:9px; letter-spacing:0; }
.allocation-submit { width:100%; margin-top:17px; }
.allocation-order-panel > p { margin:13px 0 0; color:#8f816d; font-family:"FangSong",serif; font-size:9px; line-height:1.7; }

.admin-test-vault { position:relative; margin-top:20px; padding:25px 28px 28px; border:1px solid rgba(133,49,38,.56); background:linear-gradient(115deg,rgba(88,35,24,.42),rgba(7,5,4,.95) 38%); box-shadow:inset 0 0 0 4px rgba(5,3,2,.75),0 18px 39px rgba(0,0,0,.45); animation:archiveReveal 500ms ease both; }
.admin-test-vault > header { display:grid; grid-template-columns:50px minmax(0,1fr) auto; align-items:center; gap:13px; padding-bottom:14px; border-bottom:1px solid rgba(139,53,40,.3); }
.admin-test-vault header > span { display:grid; width:43px; height:43px; place-items:center; border:1px solid #90352a; color:#ce604a; font-family:"STKaiti",serif; font-size:20px; transform:rotate(-3deg); }
.admin-test-vault small { color:#7a6255; font-family:Georgia,serif; font-size:7px; letter-spacing:.2em; }
.admin-test-vault h3 { margin:1px 0 0; color:#d6a87d; font-family:"STKaiti",serif; font-size:22px; letter-spacing:.12em; }
.admin-test-vault p { margin:2px 0 0; color:#7d685c; font-family:"FangSong",serif; font-size:9px; }
.admin-test-vault header button { height:33px; border:1px solid rgba(135,51,39,.46); color:#a25b4c; cursor:pointer; background:transparent; font-size:9px; }
.admin-grant-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:9px; margin-top:15px; }
.admin-grant-grid button { display:flex; min-height:91px; flex-direction:column; align-items:flex-start; justify-content:center; padding:11px; border:1px solid rgba(144,58,43,.32); color:#af8f79; cursor:pointer; background:rgba(58,24,17,.18); text-align:left; }
.admin-grant-grid button:hover:not(:disabled) { border-color:#9b3a2d; background:rgba(101,39,28,.22); transform:translateY(-2px); }
.admin-grant-grid button:disabled { opacity:.42; cursor:wait; }
.admin-grant-grid span { color:#8f493d; font-size:8px; letter-spacing:.1em; }
.admin-grant-grid b { margin-top:3px; color:#d0aa8f; font-family:"STKaiti",serif; font-size:15px; font-weight:500; }
.admin-grant-grid small { color:#745e53; font-size:8px; }

.role-toast { position:fixed; z-index:100; top:172px; left:50%; display:flex; align-items:center; min-width:350px; padding:11px 20px 11px 12px; border:1px solid rgba(205,158,79,.5); color:#d8c8a5; background:linear-gradient(90deg,rgba(61,39,17,.97),rgba(8,6,4,.97),rgba(61,39,17,.97)); box-shadow:inset 0 0 16px #000,0 15px 35px #000; font-family:"FangSong",serif; font-size:11px; letter-spacing:.08em; transform:translateX(-50%); animation:noticeArrive 3s ease both; }
.role-toast span { display:grid; width:30px; height:30px; margin-right:10px; place-items:center; border:1px solid #7f3026; color:#ad4938; font-family:"STKaiti",serif; font-size:16px; }
.character-missing { display:flex; min-height:500px; flex-direction:column; align-items:center; justify-content:center; }
.character-missing > span { display:grid; width:80px; height:80px; place-items:center; border:1px solid #7a3026; color:#a84837; font-family:"STKaiti",serif; font-size:39px; transform:rotate(-4deg); }
.character-missing h2 { color:#d5bc84; font-family:"STKaiti",serif; font-size:28px; letter-spacing:.13em; }

@media (max-width:1450px) {
  .character-system-header { grid-template-columns:minmax(190px,.8fr) minmax(430px,1.2fr) minmax(235px,.8fr); padding-right:31px; padding-left:31px; }
  .character-home-main,.character-create-main,.character-detail-main,.character-edit-main { width:calc(100% - 48px); }
  .character-list-card { grid-template-columns:205px minmax(0,1fr); }
  .character-list-toolbar { grid-template-columns:auto minmax(310px,1fr) auto; gap:14px; }
  .character-account-search { grid-template-columns:38px 92px minmax(80px,1fr) auto auto auto; }
  .character-search-copy { padding-right:8px; }
  .avatar-preset-grid { gap:8px; }
  .avatar-preset-grid button { min-height:230px; }
  .avatar-preset-grid .character-avatar-sprite { height:180px; }
  .profile-identity-panel { padding-right:40px; padding-left:40px; }
  .admin-grant-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .allocation-main { width:calc(100% - 48px); }
  .allocation-catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:1180px) {
  .character-system-header { grid-template-columns:175px 1fr 225px; min-height:132px; }
  .character-system-heading { min-width:390px; }
  .character-header-token { min-width:215px; transform:scale(.9); transform-origin:right center; }
  .character-list-grid { grid-template-columns:1fr; }
  .character-list-toolbar { grid-template-columns:auto minmax(300px,1fr); }
  .character-toolbar-actions { grid-column:1/-1; justify-content:flex-end; }
  .character-list-card { grid-template-columns:250px minmax(0,1fr); }
  .avatar-preset-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .avatar-preset-grid button { min-height:270px; }
  .avatar-preset-grid .character-avatar-sprite { height:218px; }
  .character-profile-hero { grid-template-columns:285px minmax(0,1fr) 145px; }
  .character-detail-grid { grid-template-columns:1fr; }
  .character-edit-layout { grid-template-columns:1fr; }
  .edit-identity-body { grid-template-columns:1fr; }
  .edit-identity-profile,.edit-avatar-picker { grid-column:1; }
  .allocation-command-bar { grid-template-columns:52px minmax(260px,1fr) minmax(240px,320px); }
  .allocation-target-summary { display:none; }
  .allocation-layout { grid-template-columns:1fr; }
  .allocation-order-panel { position:relative; top:auto; }
  .character-edit-subnav { position:relative; top:auto; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .character-edit-subnav button:nth-child(2) { border-right:0; }
  .inventory-quality-tabs { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .inventory-market-controls { grid-template-columns:auto 140px minmax(170px,1fr); }
  .inventory-market-controls.is-pack-mode { grid-template-columns:1fr; }
  .market-pack-pool { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width:760px) {
  .character-travel-actions { grid-template-columns:1fr 1fr; }
  .character-travel-actions > span { grid-column:1/-1; }
  .travel-export-dialog { padding:27px 20px 23px; }
  .travel-export-dialog > header { grid-template-columns:46px minmax(0,1fr); gap:11px; padding-right:27px; }
  .travel-export-dialog > header > span { width:43px; height:43px; font-size:21px; }
  .travel-export-dialog > header h2 { font-size:22px; }
  .travel-export-origin { align-items:flex-start; flex-direction:column; }
  .travel-export-origin b { padding:0; border-left:0; }
  .dungeon-travel-intro { grid-template-columns:40px minmax(0,1fr); padding:11px; }
  .dungeon-travel-intro > span { width:34px; height:34px; }
  .dungeon-travel-choice-grid { grid-template-columns:1fr; }
  .dungeon-travel-choice-grid > button { grid-template-columns:88px minmax(0,1fr) auto; min-height:82px; }
  .dungeon-travel-choice-grid img { width:88px; height:66px; }
  .dungeon-travel-rules { grid-template-columns:1fr; }
  .dungeon-travel-rules > span { justify-content:start; padding:8px 10px; }
  .dungeon-travel-rules > div { border-top:1px solid rgba(143,109,56,.16); border-left:0; }
  .dungeon-travel-rules > p { grid-column:1; border-left:0; }
  .travel-export-text { min-height:390px; padding:15px; font-size:12px; }
  .travel-export-dialog > footer { display:grid; grid-template-columns:1fr 1fr; }
  .travel-export-dialog > footer.is-dungeon-export-actions { grid-template-columns:1fr; }
  .travel-export-dialog > footer .role-secondary-button,.travel-export-dialog > footer .role-gold-button { width:100%; min-width:0; }
  .allocation-success-dialog { padding:34px 22px 28px; }
  .allocation-success-items { grid-template-columns:1fr; }
  .allocation-success-summary { grid-template-columns:1fr; }
  .allocation-success-summary > div + div { border-top:1px solid rgba(180,131,63,.24); border-left:0; }
  .profile-growth-progress { grid-template-columns:1fr; gap:5px; }
  .edit-character-banner { grid-template-columns:92px minmax(0,1fr); padding:12px; }
  .edit-character-banner > .character-avatar-sprite { width:80px; height:96px; }
  .edit-mini-stats { grid-column:1/-1; margin-top:10px; }
  .character-edit-subnav { grid-template-columns:1fr; }
  .character-edit-subnav button { min-height:61px; border-right:0; border-bottom:1px solid rgba(172,126,59,.23); }
  .character-edit-subnav button:last-child { border-bottom:0; }
  .edit-character-identity { grid-template-columns:minmax(0,1fr); }
  .character-wallet-pill { grid-column:1; grid-row:auto; margin-top:9px; }
  .inventory-vault-heading { align-items:stretch; flex-direction:column; }
  .inventory-wallet { width:100%; }
  .taiping-synthesis-reminder { grid-template-columns:58px minmax(0,1fr); gap:11px; padding:11px; }
  .taiping-synthesis-seal { width:52px; height:52px; }
  .taiping-synthesis-reminder > button { grid-column:1/-1; }
  .inventory-quality-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .inventory-quality-group > header { grid-template-columns:33px minmax(0,1fr) auto; }
  .inventory-quality-group > header > em { grid-column:2/3; padding:4px 0 0; border-top:1px solid rgba(var(--rarity-rgb),.2); border-left:0; text-align:left; }
  .inventory-bulk-sell { grid-column:3; grid-row:2; min-width:104px; }
  .fate-fragment-dialog { padding-right:16px; padding-left:16px; }
  .attribute-choice-grid,.fragment-affinity-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .fragment-mandate-preview { grid-template-columns:auto 56px minmax(0,1fr); }
  .item-library-row { grid-template-columns:55px minmax(0,1fr) auto; }
  .item-library-row > em { align-self:start; }
  .item-library-actions { grid-column:1/-1; grid-template-columns:repeat(4,minmax(0,1fr)); }
  .item-library-actions.is-three-actions { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .inventory-market-controls { grid-template-columns:1fr; }
  .inventory-market-controls nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .inventory-market-grid { grid-template-columns:1fr; }
  .market-pack-grid { grid-template-columns:1fr; }
  .market-pack-grid.is-immortal .market-pack-card,.market-pack-card { grid-template-columns:100px minmax(0,1fr); min-height:170px; padding:10px; }
  .market-pack-grid.is-immortal .market-pack-card-art,.market-pack-card-art { width:86px; height:146px; }
  .market-pack-grid.is-immortal .market-pack-card-art img,.market-pack-card-art img { top:18px; left:12px; width:59px; height:105px; }
  .market-pack-card h5,.market-pack-grid.is-immortal .market-pack-card h5 { font-size:21px; }
  .directed-pack-market { margin:10px 8px 0; }
  .directed-pack-heading,.directed-pack-detail > header { grid-template-columns:42px minmax(0,1fr); }
  .directed-pack-wallet,.directed-pack-heading > b,.directed-pack-detail > header > b { grid-column:2; text-align:left; }
  .directed-pack-controls { grid-template-columns:1fr; padding:9px; }
  .directed-pack-controls nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .directed-pack-controls nav button { min-width:0; }
  .directed-pack-market .market-pack-grid { padding:8px; }
  .directed-pack-market .market-pack-card { grid-template-columns:100px minmax(0,1fr); min-height:170px; padding:10px; }
  .directed-pack-market .market-pack-card-art { width:86px; height:146px; }
  .directed-pack-market .market-pack-card-art img { top:18px; left:12px; width:59px; height:105px; }
  .directed-pack-detail { margin:0 8px 8px; padding:10px; }
  .directed-pack-detail .market-pack-pool { grid-template-columns:1fr; max-height:420px; }
  .market-pack-backdrop { padding:10px; }
  .market-pack-dialog { width:calc(100vw - 20px); max-height:95vh; padding:18px 14px; }
  .market-pack-content > header { grid-template-columns:42px minmax(0,1fr); padding-right:35px; }
  .market-pack-content > header > span { width:39px; height:41px; font-size:19px; }
  .market-pack-dialog header h2 { font-size:20px; }
  .market-pack-content > header > b { grid-column:2; text-align:left; }
  .market-pack-result { grid-template-columns:70px minmax(0,1fr); }
  .market-pack-result > small { grid-column:2; grid-row:auto; align-self:auto; margin-top:4px; }
  .market-pack-pool-heading { grid-template-columns:auto auto auto; }
  .market-pack-pool-heading p { grid-column:1/-1; text-align:left; }
  .market-pack-pool { grid-template-columns:1fr; }
  .market-pack-content > footer { align-items:stretch; flex-direction:column; }
  .market-pack-content > footer > div { justify-content:end; }
  .market-pack-content > footer button { width:100%; }
}

@media (prefers-reduced-motion:reduce) {
  .character-page-backdrop,.character-empty-state,.empty-avatar-orbit::before,.character-list-card,.creation-scroll,.character-profile-hero,.role-module,.travel-export-backdrop,.travel-export-dialog,.allocation-success-backdrop,.allocation-success-dialog,.allocation-success-rays,.allocation-success-emblem,.allocation-success-emblem::before,.allocation-success-items article,.item-library-row.is-refined-high .item-library-image,.equipment-slot-grid > div.is-refined-high,.equipment-mini.is-refined-high,.item-library-row.is-refined-mythic .item-library-image,.equipment-slot-grid > div.is-refined-mythic,.equipment-mini.is-refined-mythic,.edit-section-identity .edit-identity-panel,.edit-section-equipment .character-edit-layout,.edit-section-inventory .character-item-library,.edit-section-market .character-item-library,.market-pack-backdrop,.market-pack-dialog,.market-pack-result { animation:none!important; }
}

/* 天命榜：黑金石碑与史官卷宗 */
.ranking-page {
  --ranking-gold:#d9ad5e;
  --ranking-gold-bright:#f4d998;
  --ranking-paper:#e3d0a5;
  --ranking-muted:#a69679;
  position:relative;
  min-height:100vh;
  overflow-x:hidden;
  color:var(--ranking-paper);
  background:#090704;
}
.ranking-page::before {
  position:fixed;
  z-index:1;
  inset:0;
  content:"";
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 10%,rgba(218,165,78,.09),transparent 29%),
    linear-gradient(90deg,rgba(0,0,0,.76),transparent 25% 75%,rgba(0,0,0,.76)),
    linear-gradient(180deg,rgba(3,2,1,.08),rgba(3,2,1,.64) 74%,#070503);
}
.ranking-page-backdrop {
  position:fixed;
  inset:0;
  background-image:url("/assets/generated/entry-ranking.png");
  background-position:center 28%;
  background-size:cover;
  filter:saturate(.72) sepia(.16) brightness(.58) contrast(1.12);
  transform:scale(1.025);
  animation:rankingBackdropBreath 18s ease-in-out infinite alternate;
}
.ranking-header {
  position:relative;
  z-index:3;
  display:grid;
  grid-template-columns:minmax(250px,1fr) minmax(430px,1.2fr) minmax(250px,1fr);
  align-items:center;
  min-height:128px;
  padding:16px clamp(28px,4vw,78px);
  border-bottom:1px solid rgba(217,173,94,.52);
  background:linear-gradient(180deg,rgba(8,6,4,.97),rgba(11,8,4,.9) 72%,rgba(35,22,8,.62));
  box-shadow:0 14px 46px rgba(0,0,0,.6),inset 0 -1px rgba(255,215,136,.12);
}
.ranking-header::after {
  position:absolute;
  bottom:-7px;
  left:50%;
  width:72px;
  height:13px;
  border-right:1px solid #8c632d;
  border-left:1px solid #8c632d;
  content:"";
  background:linear-gradient(90deg,transparent,#b3843e 20% 80%,transparent);
  clip-path:polygon(10% 0,90% 0,100% 50%,90% 100%,10% 100%,0 50%);
  transform:translateX(-50%);
}
.ranking-back {
  justify-self:start;
  height:37px;
  padding:0 18px;
  border:1px solid rgba(185,133,59,.54);
  color:#d8bb7e;
  cursor:pointer;
  background:linear-gradient(90deg,rgba(81,50,18,.48),rgba(12,8,4,.72));
  font-family:"FangSong",serif;
  font-size:12px;
  letter-spacing:.13em;
  transition:color 180ms ease,border-color 180ms ease,transform 180ms ease;
}
.ranking-back:hover { border-color:#e0b765; color:#ffe4a1; transform:translateX(-3px); }
.ranking-heading { text-align:center; }
.ranking-heading > span { color:#94784c; font-family:Georgia,serif; font-size:8px; letter-spacing:.42em; }
.ranking-heading h1 { margin:5px 0 2px; color:var(--ranking-gold-bright); font-family:"STKaiti","KaiTi",serif; font-size:43px; font-weight:600; letter-spacing:.32em; text-indent:.32em; text-shadow:0 2px 0 #34210c,0 0 20px rgba(238,193,102,.22); }
.ranking-heading p { margin:0; color:#b6a17d; font-family:"FangSong",serif; font-size:12px; letter-spacing:.24em; }
.ranking-era { display:flex; justify-self:end; align-items:center; gap:12px; min-width:238px; }
.ranking-era > span { display:grid; width:48px; height:51px; place-items:center; border:1px solid #8d3528; color:#cb604a; background:rgba(76,27,19,.22); font-family:"STKaiti",serif; font-size:24px; transform:rotate(-3deg); }
.ranking-era small,.ranking-era b { display:block; }
.ranking-era small { color:#7f735f; font-family:Georgia,serif; font-size:8px; letter-spacing:.2em; }
.ranking-era b { margin-top:4px; color:#d6bf8d; font-family:"FangSong",serif; font-size:13px; font-weight:400; letter-spacing:.12em; }

.ranking-main { position:relative; z-index:2; width:min(1540px,calc(100% - 6vw)); margin:26px auto 60px; }
.ranking-summary-strip {
  display:grid;
  grid-template-columns:170px 170px 190px minmax(260px,1fr) 210px;
  align-items:center;
  min-height:84px;
  padding:12px 18px;
  border:1px solid rgba(207,157,77,.52);
  background:linear-gradient(100deg,rgba(91,57,25,.86),rgba(16,11,7,.95) 30% 72%,rgba(79,47,19,.8));
  box-shadow:inset 0 0 0 4px rgba(5,3,2,.68),inset 0 0 25px rgba(0,0,0,.68),0 18px 40px rgba(0,0,0,.42);
  clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px),0 12px);
}
.ranking-summary-strip > div:not(.ranking-input-status) { display:flex; align-items:center; gap:10px; padding:0 18px; border-right:1px solid rgba(193,143,67,.25); }
.ranking-summary-strip > div > span { display:grid; width:31px; height:33px; flex:0 0 auto; place-items:center; border:1px solid #853427; color:#c76049; font-family:"STKaiti",serif; font-size:16px; transform:rotate(-3deg); }
.ranking-summary-strip p { margin:0; color:#a89675; font-family:"FangSong",serif; font-size:10px; line-height:1.3; }
.ranking-summary-strip p b { display:block; margin-top:2px; color:#f0ce82; font-family:Georgia,serif; font-size:20px; font-weight:400; }
.ranking-input-status { display:flex; align-items:center; justify-content:center; gap:9px; color:#b8a37e; font-family:"FangSong",serif; font-size:11px; letter-spacing:.08em; }
.ranking-input-status i { width:7px; height:7px; border:1px solid #cf9c4f; border-radius:50%; box-shadow:0 0 10px #b8772d; background:#d9a84f; }
.ranking-summary-strip > button { display:flex; height:45px; align-items:center; justify-content:center; gap:10px; border:1px solid #a87834; color:#291b0a; cursor:pointer; background:linear-gradient(180deg,#efcf7c,#a8732d); box-shadow:inset 0 0 0 1px rgba(255,235,175,.36),0 8px 18px rgba(0,0,0,.3); font-family:"FangSong",serif; font-size:13px; letter-spacing:.12em; transition:filter 180ms ease,transform 180ms ease; }
.ranking-summary-strip > button span { display:grid; width:25px; height:25px; place-items:center; border:1px solid rgba(88,49,13,.58); font-family:"STKaiti",serif; font-size:15px; }
.ranking-summary-strip > button:hover { filter:brightness(1.13); transform:translateY(-2px); }
.ranking-summary-strip.is-travel { grid-template-columns:180px 190px minmax(80px,1fr) 220px; }
.ranking-summary-strip.is-travel > button { grid-column:4; }
.ranking-summary-strip.is-level { grid-template-columns:190px 210px minmax(260px,1fr); }

.ranking-board-shell {
  position:relative;
  min-height:720px;
  margin-top:18px;
  padding:0 30px 34px;
  border:1px solid rgba(194,142,65,.48);
  background:
    linear-gradient(rgba(213,171,96,.027) 1px,transparent 1px),
    linear-gradient(90deg,rgba(213,171,96,.023) 1px,transparent 1px),
    linear-gradient(115deg,rgba(83,51,21,.78),rgba(12,9,6,.97) 27% 73%,rgba(72,43,17,.76));
  background-size:34px 34px,34px 34px,auto;
  box-shadow:inset 0 0 0 5px rgba(5,3,2,.72),inset 0 0 0 6px rgba(217,170,90,.11),0 28px 58px rgba(0,0,0,.48);
}
.ranking-board-shell::before,.ranking-board-shell::after { position:absolute; top:12px; width:70px; height:70px; border-top:1px solid rgba(213,164,83,.42); content:""; pointer-events:none; }
.ranking-board-shell::before { left:12px; border-left:1px solid rgba(213,164,83,.42); }
.ranking-board-shell::after { right:12px; border-right:1px solid rgba(213,164,83,.42); }
.ranking-primary-tabs { display:grid; grid-template-columns:repeat(4,1fr); width:min(1120px,92%); margin:0 auto 26px; }
.ranking-primary-tabs button { position:relative; display:grid; grid-template-columns:42px 1fr; grid-template-rows:22px 18px; min-height:66px; padding:12px 24px; border:0; border-right:1px solid rgba(198,147,70,.32); border-bottom:1px solid rgba(198,147,70,.38); color:#9c8969; cursor:pointer; background:rgba(8,5,3,.76); text-align:left; }
.ranking-primary-tabs button:first-child { border-left:1px solid rgba(198,147,70,.32); }
.ranking-primary-tabs button::after { position:absolute; right:0; bottom:-2px; left:0; height:3px; content:""; background:transparent; }
.ranking-primary-tabs button.is-active { color:#f1d18a; background:linear-gradient(180deg,rgba(102,64,25,.74),rgba(18,11,5,.88)); }
.ranking-primary-tabs button.is-active::after { background:linear-gradient(90deg,transparent,#dbab54,transparent); box-shadow:0 0 12px rgba(219,171,84,.48); }
.ranking-primary-tabs span { grid-row:1/3; align-self:center; color:#b6503f; font-family:"STKaiti",serif; font-size:24px; }
.ranking-primary-tabs b { font-family:"STKaiti",serif; font-size:17px; font-weight:500; letter-spacing:.15em; }
.ranking-primary-tabs small { color:#82745f; font-size:8px; letter-spacing:.09em; }
.ranking-board-heading { display:flex; align-items:end; justify-content:space-between; gap:30px; padding:0 3px 16px; border-bottom:1px solid rgba(199,148,70,.32); }
.ranking-board-heading small { color:#8e7a5a; font-family:Georgia,serif; font-size:8px; letter-spacing:.28em; }
.ranking-board-heading h2 { margin:3px 0; color:#f0d196; font-family:"STKaiti",serif; font-size:29px; font-weight:600; letter-spacing:.18em; }
.ranking-board-heading .ranking-data-since { display:inline-block; margin:1px 0 5px; padding:3px 8px; border-left:2px solid #994232; color:#d18a70; background:rgba(91,34,24,.25); font-family:"FangSong",serif; font-size:9px; letter-spacing:.12em; }
.ranking-board-heading p { margin:0; color:#b3a181; font-family:"FangSong",serif; font-size:11px; line-height:1.6; }
.ranking-board-heading > span { padding:7px 11px; border:1px solid rgba(139,54,41,.42); color:#bd6e5a; background:rgba(79,28,20,.22); font-family:"FangSong",serif; font-size:9px; letter-spacing:.08em; }
.ranking-level-tools { display:flex; align-items:end; justify-content:space-between; gap:20px; margin:14px 0; padding:14px 16px; border:1px solid rgba(190,139,65,.36); background:rgba(9,6,4,.72); }
.ranking-level-tools label { display:grid; width:min(520px,100%); gap:7px; color:#b9a47d; font:12px "FangSong",serif; }
.ranking-level-tools input { width:100%; height:42px; padding:0 13px; border:1px solid #70552f; border-radius:0; outline:0; color:#ecd29b; background:#0b0805; font-size:13px; }
.ranking-level-tools input:focus { border-color:#c79a4e; box-shadow:0 0 0 2px rgba(199,154,78,.12); }
.ranking-level-tools p { margin:0; color:#9d8b6c; font-size:11px; line-height:1.7; }
.ranking-level-tools p b { color:#e6c477; font:18px Georgia,serif; }
.ranking-level-board { margin-top:0; }
.battle-rank-table thead th:not(:first-child),.battle-rank-table tbody td { text-align:left; }
.battle-rank-table tbody tr { cursor:pointer; transition:background 180ms ease; }
.battle-rank-table tbody tr:hover { background:linear-gradient(90deg,rgba(112,67,25,.25),transparent); }
.battle-board-score { display:block; margin-top:3px; color:#9c8967; font-size:10px; font-weight:400; }
.battle-board-tier { display:flex; align-items:center; gap:11px; min-width:145px; color:#c99062; }
.battle-board-tier > span { display:grid; width:38px; height:42px; flex:none; place-items:center; border:1px solid currentColor; background:rgba(255,255,255,.025); font:21px "STKaiti","KaiTi",serif; transform:rotate(-3deg); }
.battle-board-tier > div { display:grid; gap:4px; }
.battle-board-tier b { color:currentColor; font:19px "STKaiti","KaiTi",serif; font-weight:500; }
.battle-board-tier small { color:#a99773; font-size:10px; }
.battle-board-tier.tier-1 { color:#c9d6dc; }
.battle-board-tier.tier-2 { color:#ecc161; }
.battle-board-tier.tier-3 { color:#85cfbd; }
.battle-board-tier.tier-4 { color:#94bcf5; }
.battle-board-tier.tier-5 { color:#dba8e9; }
.battle-board-tier.tier-6 { color:#ffd682; }
.battle-board-points { color:#e7c678; font:25px Georgia,serif; white-space:nowrap; }
.battle-board-points small { margin-left:6px; color:#9f8d6d; font:10px "Microsoft YaHei",sans-serif; }
.battle-board-record { display:grid; grid-template-columns:auto auto; align-items:baseline; justify-content:start; gap:3px 10px; min-width:110px; }
.battle-board-record b { color:#dfbe78; font:17px Georgia,serif; }
.battle-board-record span { color:#b7a37c; font-size:11px; }
.battle-board-record small { grid-column:1/-1; color:#8f8064; font-size:10px; }
.ranking-dungeon-tabs { display:flex; width:fit-content; margin:14px auto 0; border:1px solid rgba(190,139,65,.36); background:#0c0805; }
.ranking-dungeon-tabs button { min-width:164px; height:36px; border:0; border-right:1px solid rgba(190,139,65,.28); color:#9d8c70; cursor:pointer; background:transparent; font-family:"FangSong",serif; font-size:11px; letter-spacing:.08em; }
.ranking-dungeon-tabs button:last-child { border-right:0; }
.ranking-dungeon-tabs button:hover,.ranking-dungeon-tabs button.is-active { color:#f2d28c; background:linear-gradient(180deg,rgba(114,69,25,.72),rgba(42,25,10,.66)); }
.ranking-travel-tools { display:grid; grid-template-columns:minmax(480px,1fr) 330px; align-items:stretch; gap:12px; margin:14px 0 0; }
.ranking-season-tabs { display:grid; grid-template-columns:repeat(3,1fr); border:1px solid rgba(190,139,65,.36); background:#0c0805; }
.ranking-season-tabs button { position:relative; display:flex; height:52px; flex-direction:column; align-items:center; justify-content:center; border:0; border-right:1px solid rgba(190,139,65,.28); color:#a08d6d; cursor:pointer; background:transparent; font-family:Georgia,serif; font-size:14px; }
.ranking-season-tabs button:last-child { border-right:0; }
.ranking-season-tabs button::after { position:absolute; right:16%; bottom:0; left:16%; height:2px; content:""; background:transparent; }
.ranking-season-tabs button small { margin-top:3px; color:#746956; font-family:"FangSong",serif; font-size:8px; letter-spacing:.08em; }
.ranking-season-tabs button:hover,.ranking-season-tabs button.is-active { color:#f1cc7b; background:linear-gradient(180deg,rgba(112,67,24,.72),rgba(37,22,9,.58)); }
.ranking-season-tabs button.is-active::after { background:linear-gradient(90deg,transparent,#dfa94f,transparent); box-shadow:0 0 9px #b8782e; }
.ranking-season-tabs button.is-active small { color:#b8a17a; }
.ranking-travel-season-tabs { grid-template-columns:repeat(auto-fit,minmax(112px,1fr)); }
.ranking-season-command { display:grid; grid-template-columns:minmax(0,1fr) 112px; gap:8px; }
.ranking-open-season { display:flex; min-height:54px; flex-direction:column; align-items:center; justify-content:center; gap:3px; border:1px solid rgba(210,158,76,.62); color:#efd08e; cursor:pointer; background:linear-gradient(180deg,#69431e,#24160a); font-family:"FangSong",serif; font-size:10px; letter-spacing:.08em; }
.ranking-open-season:hover { border-color:#e2b65f; filter:brightness(1.12); }
.ranking-open-season span { color:#c75e47; font-family:"STKaiti",serif; font-size:18px; }
.ranking-season-time-note { display:flex; min-height:58px; flex-direction:column; justify-content:center; padding:10px 12px; border:1px solid rgba(180,130,61,.36); color:#b7a17b; background:rgba(16,10,5,.62); font-family:"FangSong",serif; }
.ranking-season-time-note span { margin-bottom:6px; font-size:10px; letter-spacing:.08em; }
.ranking-season-time-note b { color:#dcc28e; font-size:12px; font-weight:400; }
.ranking-dungeon-period { display:grid; grid-template-columns:minmax(240px,1fr) minmax(220px,1fr); gap:14px 24px; align-items:center; margin-top:18px; padding:16px; border:1px solid rgba(190,139,65,.3); background:rgba(15,10,5,.75); }
.ranking-dungeon-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
.ranking-dungeon-tabs button { font-family:"STKaiti",serif; font-size:18px; }
.ranking-dungeon-tabs button small { font-size:11px; }
.ranking-dungeon-period > p { margin:0; color:#e0bf7b; font-size:14px; line-height:1.7; }
.ranking-dungeon-period > p small { color:#af9b79; font-size:12px; }
.ranking-month-picker { display:flex; align-items:center; gap:12px; color:#c5ad81; font-size:13px; }
.ranking-month-picker select { min-width:0; flex:1; padding:12px; border:1px solid #806238; color:#edce92; background:#1d140b; font:inherit; }
.ranking-month-picker select:focus-visible { outline:2px solid #d9b970; outline-offset:3px; }
.ranking-dungeon-period > .ranking-month-note { grid-column:1 / -1; color:#ae9b7a; font-size:11px; }
@media (max-width:640px) {
  .ranking-dungeon-period { grid-template-columns:minmax(0,1fr); gap:12px; padding:12px; }
  .ranking-month-picker { flex-wrap:wrap; }
}
.ranking-reward-empty { display:grid; grid-template-columns:38px 1fr 37px; align-items:center; min-height:54px; padding:7px 12px; border:1px dashed rgba(182,133,65,.39); background:rgba(25,16,8,.55); }
.ranking-reward-empty > span { display:grid; width:31px; height:32px; place-items:center; border:1px solid #813329; color:#bd5a47; font-family:"STKaiti",serif; font-size:16px; transform:rotate(-3deg); }
.ranking-reward-empty b,.ranking-reward-empty small { display:block; }
.ranking-reward-empty b { color:#c8b184; font-family:"FangSong",serif; font-size:11px; font-weight:400; letter-spacing:.08em; }
.ranking-reward-empty small { margin-top:3px; color:#796e5c; font-size:8px; }
.ranking-reward-empty em { display:grid; width:31px; height:31px; place-items:center; border:1px solid rgba(165,120,58,.3); color:#766a56; font-family:"STKaiti",serif; font-size:15px; font-style:normal; }
.ranking-summary-strip > button:disabled { cursor:not-allowed; filter:grayscale(.6); opacity:.45; transform:none; }
.ranking-summit-rule { display:flex; min-height:54px; align-items:center; gap:12px; margin:14px 0 0; padding:8px 17px; border:1px solid rgba(149,57,43,.38); background:linear-gradient(90deg,rgba(82,29,20,.3),rgba(17,10,6,.52)); }
.ranking-summit-rule > span { display:grid; width:34px; height:35px; flex:0 0 auto; place-items:center; border:1px solid #8d3629; color:#ce624b; font-family:"STKaiti",serif; font-size:18px; transform:rotate(-3deg); }
.ranking-summit-rule p { margin:0; color:#9f8d70; font-family:"FangSong",serif; font-size:10px; line-height:1.55; }
.ranking-summit-rule p b { display:block; color:#d9bd83; font-size:11px; font-weight:400; letter-spacing:.1em; }
.ranking-dungeon-empty { display:flex; min-height:330px; flex-direction:column; align-items:center; justify-content:center; margin-top:24px; padding:48px 30px; border:1px dashed rgba(190,140,68,.42); background:radial-gradient(circle at 50% 40%,rgba(92,56,21,.28),rgba(8,5,3,.58) 58%); text-align:center; }
.ranking-dungeon-empty > span { display:grid; width:55px; height:58px; place-items:center; margin-bottom:14px; border:1px solid #87372a; color:#c45f4b; font-family:"STKaiti",serif; font-size:27px; transform:rotate(-3deg); }
.ranking-dungeon-empty > small { color:#8c785b; font-family:Georgia,serif; font-size:8px; letter-spacing:.25em; }
.ranking-dungeon-empty h3 { margin:8px 0 6px; color:#ebcc8d; font-family:"STKaiti",serif; font-size:24px; font-weight:500; letter-spacing:.12em; }
.ranking-dungeon-empty p { max-width:720px; margin:0; color:#baa685; font-family:"FangSong",serif; font-size:12px; line-height:1.8; }
.ranking-dungeon-empty button { height:39px; margin-top:20px; padding:0 20px; border:1px solid rgba(205,154,74,.56); color:#e7c884; cursor:pointer; background:linear-gradient(180deg,#65401c,#1b1108); font-family:"FangSong",serif; font-size:11px; letter-spacing:.1em; }

.ranking-podium { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:end; gap:15px; max-width:980px; margin:26px auto 30px; }
.ranking-podium-card { position:relative; display:flex; min-height:245px; flex-direction:column; align-items:center; overflow:hidden; padding:16px 18px 18px; border:1px solid rgba(183,132,59,.4); color:#cdb98f; cursor:pointer; background:linear-gradient(155deg,rgba(84,51,21,.85),rgba(8,6,4,.96) 52%,rgba(61,36,15,.72)); box-shadow:inset 0 0 0 3px rgba(5,3,2,.66),0 14px 32px rgba(0,0,0,.38); clip-path:polygon(13px 0,calc(100% - 13px) 0,100% 13px,100% 100%,0 100%,0 13px); text-align:center; transition:border-color 180ms ease,filter 180ms ease,transform 180ms ease; }
.ranking-podium-card:hover { border-color:#d6a54f; filter:brightness(1.09); transform:translateY(-4px); }
.ranking-podium-card.rank-1 { min-height:276px; border-color:rgba(228,181,88,.68); background:linear-gradient(155deg,rgba(123,76,27,.93),rgba(11,7,4,.97) 50%,rgba(92,52,17,.82)); }
.ranking-podium-open { position:absolute; z-index:1; inset:0; border:0; cursor:pointer; background:transparent; }
.ranking-podium-open:focus-visible { outline:2px solid #e0ae55; outline-offset:-5px; }
.ranking-podium-card > i { position:absolute; z-index:2; top:12px; left:14px; display:grid; width:31px; height:32px; place-items:center; border:1px solid #863628; color:#c45c47; font-family:"STKaiti",serif; font-size:16px; font-style:normal; pointer-events:none; transform:rotate(-4deg); }
.ranking-podium-settlement { position:absolute; z-index:4; top:13px; right:13px; display:flex; height:27px; align-items:center; gap:6px; padding:0 9px; border:1px solid; cursor:pointer; font-family:"FangSong",serif; font-size:9px; letter-spacing:.08em; }
.ranking-podium-settlement > i { width:6px; height:6px; border-radius:50%; background:currentColor; box-shadow:0 0 8px currentColor; }
.ranking-podium-settlement.is-unsettled { border-color:rgba(165,68,49,.58); color:#df8069; background:rgba(84,30,21,.62); }
.ranking-podium-settlement.is-settled { border-color:rgba(130,155,95,.62); color:#bdd18d; background:rgba(40,62,31,.62); }
.ranking-podium-avatar { position:relative; width:74px; height:82px; overflow:visible; margin:1px 0 8px; border:1px solid rgba(218,169,84,.56); background:#171008; box-shadow:0 0 24px rgba(218,169,84,.12); }
.ranking-podium-card > .ranking-podium-avatar,.ranking-podium-card > small,.ranking-podium-card > h3,.ranking-podium-card > strong,.ranking-podium-card > b,.ranking-podium-card > p { position:relative; z-index:2; pointer-events:none; }
.rank-1 .ranking-podium-avatar { width:88px; height:98px; }
.ranking-podium-avatar .character-avatar-sprite { width:100%; height:100%; filter:saturate(.86) brightness(1.05); }
.ranking-podium-avatar > span { position:absolute; right:-9px; bottom:-8px; display:grid; width:27px; height:27px; place-items:center; border:1px solid #d0a04e; border-radius:50%; color:#291807; background:#d8aa57; font-family:Georgia,serif; font-size:12px; box-shadow:0 4px 10px #000; }
.ranking-podium-card > small { color:#9b8766; font-size:8px; letter-spacing:.16em; }
.ranking-podium-card h3 { margin:3px 0 7px; color:#f0d59a; font-family:"STKaiti",serif; font-size:23px; font-weight:600; letter-spacing:.14em; }
.ranking-podium-card strong { color:#f0c86e; font-family:Georgia,serif; font-size:25px; font-weight:400; line-height:1; }
.ranking-podium-card strong em { margin-left:5px; color:#a28d68; font-family:"FangSong",serif; font-size:9px; font-style:normal; }
.ranking-podium-card > b { margin-top:9px; color:#d2bd91; font-family:"FangSong",serif; font-size:11px; font-weight:400; }
.ranking-podium-card > p { margin:4px 0 0; color:#96866c; font-size:9px; }

.ranking-table { border-top:1px solid rgba(202,151,75,.45); border-bottom:1px solid rgba(202,151,75,.45); background:rgba(7,5,3,.42); }
.ranking-table > header,.ranking-table-row { display:grid; grid-template-columns:80px 1.15fr 1.55fr 1.3fr 105px; align-items:center; min-height:50px; padding:0 18px; }
.ranking-table > header { min-height:37px; color:#82745e; background:linear-gradient(90deg,rgba(91,55,21,.42),rgba(11,8,5,.7),rgba(91,55,21,.42)); font-family:"FangSong",serif; font-size:9px; letter-spacing:.12em; }
.ranking-table-row { width:100%; border:0; border-top:1px solid rgba(185,136,66,.2); color:#bdab88; cursor:pointer; background:transparent; text-align:left; transition:background 180ms ease,color 180ms ease; }
.ranking-table-row:hover { color:#ebd29d; background:linear-gradient(90deg,rgba(112,67,25,.42),rgba(29,18,8,.18)); }
.ranking-table-row > strong { color:#ae8a52; font-family:Georgia,serif; font-size:17px; font-weight:400; }
.ranking-table-row > span:nth-child(2) { display:grid; grid-template-columns:42px 1fr; grid-template-rows:20px 16px; align-items:center; }
.ranking-table-row > span:nth-child(2).is-name-only { grid-template-rows:38px; }
.ranking-table-row > span:nth-child(2) > i { grid-row:1/3; width:34px; height:38px; overflow:hidden; border:1px solid rgba(184,137,69,.4); }
.ranking-table-row .character-avatar-sprite { width:100%; height:100%; }
.ranking-table-row span > b,.ranking-table-row span > small { display:block; }
.ranking-table-row span > b { color:#e3c98f; font-family:"FangSong",serif; font-size:12px; font-weight:400; }
.ranking-table-row span > small { overflow:hidden; color:#8f8068; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.ranking-table-row > span:nth-child(3) > b { color:#e7bf6b; font-family:Georgia,"FangSong",serif; font-size:15px; }
.ranking-table-row > span:nth-child(3) em { color:#968163; font-family:"FangSong",serif; font-size:8px; font-style:normal; }
.ranking-table-row > span:nth-child(4) { overflow:hidden; padding-right:15px; color:#a9997d; font-family:"FangSong",serif; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.ranking-table-row .is-total-season { color:#d2b77f; font-style:normal; }
.ranking-table-row > i { justify-self:end; color:#9c7650; font-family:"FangSong",serif; font-size:9px; font-style:normal; }

.ranking-modal-backdrop { position:fixed; z-index:120; inset:0; display:grid; overflow:auto; padding:34px; place-items:center; background:rgba(2,2,2,.82); backdrop-filter:blur(7px); animation:rankingModalFade 180ms ease both; }
.ranking-settlement-dialog,.ranking-player-dialog { position:relative; width:min(990px,calc(100vw - 80px)); border:1px solid rgba(218,166,80,.64); color:#dbc597; background:linear-gradient(128deg,#392314,#100b07 27% 73%,#312013); box-shadow:inset 0 0 0 5px #080503,inset 0 0 0 6px rgba(229,181,96,.14),0 30px 90px #000; animation:rankingDialogRise 240ms ease both; }
.ranking-settlement-dialog { padding:27px 31px 24px; }
.ranking-modal-close { position:absolute; z-index:4; top:15px; right:16px; display:grid; width:34px; height:34px; place-items:center; border:1px solid rgba(153,61,45,.6); color:#c9745e; cursor:pointer; background:rgba(62,22,16,.58); font-size:20px; }
.ranking-modal-close:hover { color:#ffab91; border-color:#bd4f3a; }
.ranking-dialog-title { display:grid; grid-template-columns:52px 1fr; align-items:center; gap:14px; padding:0 45px 16px 0; border-bottom:1px solid rgba(199,147,70,.32); }
.ranking-dialog-title > span { display:grid; width:46px; height:49px; place-items:center; border:1px solid #8d3729; color:#ce624b; font-family:"STKaiti",serif; font-size:23px; transform:rotate(-3deg); }
.ranking-dialog-title small,.ranking-player-dialog header small { color:#927c5e; font-family:Georgia,serif; font-size:8px; letter-spacing:.24em; }
.ranking-dialog-title h2 { margin:2px 0; color:#f0d397; font-family:"STKaiti",serif; font-size:26px; font-weight:600; letter-spacing:.14em; }
.ranking-dialog-title p { margin:0; color:#b4a181; font-family:"FangSong",serif; font-size:11px; }
.settlement-mode-tabs { display:grid; grid-template-columns:1fr 1fr; margin:16px 0 13px; border:1px solid rgba(190,140,68,.36); }
.settlement-mode-tabs button { height:38px; border:0; color:#a18d6c; cursor:pointer; background:rgba(8,5,3,.6); font-family:"FangSong",serif; font-size:12px; letter-spacing:.12em; }
.settlement-mode-tabs button + button { border-left:1px solid rgba(190,140,68,.3); }
.settlement-mode-tabs button.is-active { color:#f3d48e; background:linear-gradient(180deg,rgba(113,67,24,.78),rgba(43,25,10,.65)); box-shadow:inset 0 -2px #c8923d; }
.settlement-parser { display:grid; grid-template-columns:minmax(0,1fr) 165px; gap:12px; align-items:stretch; padding:14px; border:1px solid rgba(190,139,65,.38); background:rgba(7,5,3,.46); }
.settlement-parser label { display:block; }
.settlement-parser label > span,.settlement-form-grid label > span { display:block; margin-bottom:6px; color:#b7a17b; font-family:"FangSong",serif; font-size:10px; letter-spacing:.08em; }
.settlement-parser textarea { width:100%; height:150px; resize:vertical; border:1px solid rgba(180,130,61,.36); outline:0; padding:12px 14px; color:#ead5aa; background:rgba(16,10,5,.86); font-family:"FangSong",serif; font-size:12px; line-height:1.7; }
.settlement-parser textarea:focus { border-color:#c38c3c; box-shadow:0 0 0 2px rgba(195,140,60,.1); }
.settlement-parser > div { display:grid; grid-template-rows:1fr 1.45fr; gap:9px; padding-top:22px; }
.settlement-parser button { border:1px solid rgba(186,136,65,.46); color:#c9b183; cursor:pointer; background:linear-gradient(180deg,rgba(87,52,20,.72),rgba(23,14,7,.8)); font-family:"FangSong",serif; font-size:11px; letter-spacing:.08em; }
.settlement-parser button:hover { border-color:#d2a04e; color:#ffe0a0; filter:brightness(1.08); }
.settlement-parse-button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; color:#f0cc7b!important; }
.settlement-parse-button span { display:grid; width:31px; height:31px; place-items:center; border:1px solid #8c3829; color:#d16750; font-family:"STKaiti",serif; font-size:17px; }
.settlement-preview-label { display:flex; align-items:center; justify-content:space-between; margin:15px 0 8px; padding-bottom:7px; border-bottom:1px solid rgba(192,142,69,.27); }
.settlement-preview-label span { color:#e4c684; font-family:"STKaiti",serif; font-size:17px; letter-spacing:.12em; }
.settlement-preview-label small { color:#8f806a; font-size:9px; }
.settlement-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 14px; }
.settlement-form-grid label.is-wide { grid-column:1/-1; }
.settlement-form-grid input,.settlement-form-grid select { width:100%; height:40px; border:1px solid rgba(184,134,65,.36); outline:0; padding:0 12px; color:#ead2a0; background:#150e08; font-family:"FangSong",serif; font-size:11px; }
.settlement-form-grid input:focus,.settlement-form-grid select:focus { border-color:#c8923f; }
.settlement-field-hint { display:block; margin-top:5px; color:#9f8c6d; font-family:"FangSong",serif; font-size:9px; }
.settlement-result-fields { margin-top:12px; }
.dungeon-goal-register { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:2px 0 0; padding:10px 12px 12px; border:1px solid rgba(184,134,65,.36); }
.dungeon-goal-register legend { padding:0 7px; color:#b7a17b; font-family:"FangSong",serif; font-size:10px; letter-spacing:.08em; }
.dungeon-goal-register label { display:grid; grid-template-columns:27px 1fr; align-items:center; gap:8px; min-height:48px; padding:7px 9px; border:1px solid rgba(167,120,58,.32); color:#b6a17d; cursor:pointer; background:#100a06; }
.dungeon-goal-register label.is-checked { border-color:rgba(215,164,79,.68); color:#efd08e; background:linear-gradient(135deg,rgba(104,63,22,.68),rgba(21,13,7,.86)); }
.dungeon-goal-register input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.dungeon-goal-register label > i { display:grid; width:25px; height:27px; place-items:center; border:1px solid rgba(168,121,58,.48); color:#e3b865; font-style:normal; }
.dungeon-goal-register label > span { margin:0; color:inherit; font-family:"FangSong",serif; font-size:11px; }
.dungeon-goal-register label small { display:block; margin-top:2px; color:#8d7d64; font-size:8px; }
.dungeon-point-preview { display:grid; grid-template-columns:47px 1fr; align-items:center; gap:12px; margin-top:13px; padding:11px 14px; border:1px solid rgba(210,159,76,.5); background:linear-gradient(90deg,rgba(87,52,19,.52),rgba(15,10,6,.72)); }
.dungeon-point-preview > span { display:grid; width:39px; height:41px; place-items:center; border:1px solid #90382b; color:#d26550; font-family:"STKaiti",serif; font-size:20px; transform:rotate(-3deg); }
.dungeon-point-preview small,.dungeon-point-preview b,.dungeon-point-preview p { display:block; }
.dungeon-point-preview small { color:#988567; font-family:Georgia,serif; font-size:8px; letter-spacing:.18em; }
.dungeon-point-preview b { margin-top:2px; color:#f1c971; font-family:Georgia,"FangSong",serif; font-size:17px; font-weight:400; }
.dungeon-point-preview p { margin:3px 0 0; color:#b6a17e; font-family:"FangSong",serif; font-size:10px; }
.travel-score-form { margin-top:17px; }
.reward-field-pending { position:relative; padding:12px 14px; border:1px dashed rgba(172,125,61,.35); background:rgba(10,7,4,.35); }
.reward-field-pending input:disabled { color:#7f725f; cursor:not-allowed; background:#0d0906; opacity:1; }
.reward-field-pending > small { display:block; margin-top:7px; color:#7d705d; font-family:"FangSong",serif; font-size:9px; }
.settlement-error { margin-top:12px; padding:9px 12px; border:1px solid rgba(156,61,45,.55); color:#dd8a72; background:rgba(88,29,20,.24); font-family:"FangSong",serif; font-size:11px; }
.ranking-settlement-dialog footer { display:flex; align-items:center; justify-content:flex-end; gap:10px; margin-top:17px; padding-top:14px; border-top:1px solid rgba(189,140,68,.27); }
.ranking-settlement-dialog footer p { margin:0 auto 0 0; color:#8f806a; font-family:"FangSong",serif; font-size:9px; }

.ranking-player-dialog { padding:27px 30px 30px; }
.ranking-player-dialog.is-dungeon-dossier { width:min(1180px,calc(100vw - 80px)); max-height:calc(100dvh - 68px); overflow:auto; }
.ranking-player-dialog > header { display:grid; grid-template-columns:96px 1fr 180px; align-items:center; gap:18px; padding:0 46px 18px 0; border-bottom:1px solid rgba(201,150,72,.36); }
.ranking-profile-avatar { position:relative; width:86px; height:98px; border:1px solid rgba(211,160,79,.52); background:#171008; }
.ranking-profile-avatar .character-avatar-sprite { width:100%; height:100%; }
.ranking-profile-avatar > span { position:absolute; right:-9px; bottom:-7px; display:grid; width:28px; height:28px; place-items:center; border:1px solid #8c3829; color:#d16a53; background:#24120d; font-family:"STKaiti",serif; }
.ranking-player-dialog header h2 { margin:4px 0; color:#f0d397; font-family:"STKaiti",serif; font-size:31px; font-weight:600; letter-spacing:.14em; }
.ranking-player-dialog header p { margin:0; color:#a89574; font-family:"FangSong",serif; font-size:11px; }
.ranking-profile-score { padding:12px 18px; border-left:1px solid rgba(196,145,69,.32); text-align:right; }
.ranking-profile-score span { display:block; color:#968568; font-size:9px; }
.ranking-profile-score b { display:block; color:#f0c86e; font-family:Georgia,serif; font-size:27px; font-weight:400; }
.ranking-profile-metrics { display:grid; grid-template-columns:repeat(4,1fr); margin:16px 0; border:1px solid rgba(190,140,68,.34); background:rgba(7,5,3,.38); }
.ranking-profile-metrics > div { padding:12px 17px; border-right:1px solid rgba(190,140,68,.25); }
.ranking-profile-metrics > div:last-child { border-right:0; }
.ranking-profile-metrics span,.ranking-profile-metrics b { display:block; }
.ranking-profile-metrics span { color:#938368; font-size:9px; }
.ranking-profile-metrics b { margin-top:3px; color:#e4c27c; font-family:Georgia,serif; font-size:20px; font-weight:400; }
.ranking-profile-metrics .pending-reward-text { color:#877965; font-family:"FangSong",serif; font-size:13px; }
.player-reward-empty { display:grid; grid-template-columns:48px 1fr; align-items:center; gap:13px; margin-top:14px; padding:15px 18px; border:1px dashed rgba(184,134,65,.38); background:linear-gradient(90deg,rgba(57,35,14,.42),rgba(8,5,3,.42)); }
.player-reward-empty > span { display:grid; width:41px; height:43px; place-items:center; border:1px solid #813329; color:#b95645; font-family:"STKaiti",serif; font-size:21px; transform:rotate(-3deg); }
.player-reward-empty small { color:#776b58; font-family:Georgia,serif; font-size:7px; letter-spacing:.22em; }
.player-reward-empty h3 { margin:2px 0; color:#c9b182; font-family:"STKaiti",serif; font-size:18px; font-weight:500; letter-spacing:.1em; }
.player-reward-empty p { margin:0; color:#817460; font-family:"FangSong",serif; font-size:9px; }
.ranking-profile-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.ranking-profile-grid.is-single { grid-template-columns:1fr; }
.ranking-profile-grid > article,.ranking-record-history { padding:17px 18px; border:1px solid rgba(190,140,68,.34); background:rgba(8,5,3,.39); }
.ranking-profile-grid h3,.ranking-record-history h3 { margin:0 0 12px; padding-bottom:8px; border-bottom:1px solid rgba(190,140,68,.25); color:#dfc186; font-family:"STKaiti",serif; font-size:18px; font-weight:500; letter-spacing:.1em; }
.best-contribution { display:grid; grid-template-columns:1fr auto; align-items:center; }
.best-contribution span { color:#bba783; font-family:"FangSong",serif; font-size:12px; }
.best-contribution b { color:#f0c66d; font-family:Georgia,serif; font-size:22px; font-weight:400; }
.best-contribution p { grid-column:1/-1; margin:5px 0 0; color:#8f816b; font-size:9px; }
.ranking-loot-list { display:flex; flex-wrap:wrap; gap:7px; }
.ranking-loot-list > span { display:flex; align-items:center; gap:6px; min-height:34px; padding:4px 8px 4px 4px; border:1px solid rgba(194,144,69,.3); color:#cbb68d; background:rgba(65,39,15,.36); }
.ranking-loot-list img { width:27px; height:27px; object-fit:cover; }
.ranking-loot-list b { font-family:"FangSong",serif; font-size:9px; font-weight:400; }
.ranking-record-history { margin-top:14px; }
.dungeon-dossier-history { padding:18px; }
.ranking-history-row { display:grid; grid-template-columns:88px 1fr 1.55fr 115px 1.3fr; align-items:center; min-height:48px; border-top:1px solid rgba(182,134,65,.18); color:#a79578; font-size:9px; }
.ranking-history-row time { color:#806f59; font-family:Georgia,serif; }
.ranking-history-row > span { color:#d6bc87; font-family:"FangSong",serif; font-size:11px; }
.ranking-history-row span small { display:block; margin-top:2px; color:#81715c; font-size:8px; }
.ranking-history-row > b { color:#bcaa87; font-family:"FangSong",serif; font-size:10px; font-weight:400; }
.ranking-history-row > em { color:#d9ad5e; font-style:normal; }
.ranking-history-row > i { overflow:hidden; color:#887964; font-style:normal; text-overflow:ellipsis; white-space:nowrap; }
.ranking-score-ledger { padding:0; overflow:hidden; }
.score-ledger-header,.score-ledger-row { display:grid; grid-template-columns:minmax(260px,1.7fr) minmax(110px,.55fr) minmax(110px,.55fr) minmax(150px,.75fr); align-items:center; column-gap:20px; }
.score-ledger-header { min-height:38px; padding:0 18px; border-bottom:1px solid rgba(190,140,68,.3); color:#88775e; background:rgba(105,67,27,.18); font-size:9px; letter-spacing:.12em; }
.score-ledger-row { min-height:78px; padding:12px 18px; border-bottom:1px solid rgba(182,134,65,.18); }
.score-ledger-row:last-child { border-bottom:0; }
.score-ledger-info { display:grid; min-width:0; grid-template-columns:minmax(0,1fr); gap:3px; }
.score-ledger-info strong { color:#d9bf89; font-family:"FangSong",serif; font-size:13px; font-weight:400; }
.score-ledger-info code { overflow:hidden; color:#8e7a5b; font-family:Georgia,serif; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.score-ledger-info small { color:#796d5a; font-size:9px; }
.score-ledger-row > b { color:#d9ad5e; font-family:Georgia,"FangSong",serif; font-size:20px; font-weight:400; }
.score-ledger-row > b.is-negative { color:#b86050; }
.score-ledger-row > b small { margin-left:4px; color:#8c7a60; font-family:"FangSong",serif; font-size:9px; }
.score-ledger-after { display:flex; align-items:baseline; gap:7px; }
.score-ledger-after small { display:none; color:#7f705b; font-size:8px; }
.score-ledger-after em { color:#e4c277; font-family:Georgia,serif; font-size:18px; font-style:normal; }
.score-ledger-row time { color:#99866a; font-family:Georgia,"FangSong",serif; font-size:10px; text-align:right; }
.dungeon-ranking-ledger { margin-top:11px; border:1px solid rgba(194,144,69,.34); background:linear-gradient(135deg,rgba(55,33,14,.46),rgba(8,5,3,.55)); }
.dungeon-ranking-ledger:first-child { margin-top:0; }
.dungeon-ranking-ledger > header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:12px 14px; border-bottom:1px solid rgba(190,140,68,.25); }
.dungeon-ranking-ledger header small { color:#8d795d; font-family:Georgia,serif; font-size:8px; letter-spacing:.12em; }
.dungeon-ranking-ledger h4 { margin:2px 0; color:#e8ca8e; font-family:"STKaiti",serif; font-size:19px; font-weight:500; letter-spacing:.1em; }
.dungeon-ranking-ledger header p { margin:0; color:#9d8c70; font-family:"FangSong",serif; font-size:10px; }
.dungeon-ranking-ledger header time { flex:0 0 auto; color:#b4a07e; font-family:Georgia,"FangSong",serif; font-size:10px; }
.dungeon-ledger-meta { display:flex; flex:0 0 auto; align-items:flex-end; flex-direction:column; gap:5px; text-align:right; }
.dungeon-ledger-meta span { color:#8f7e65; font-family:"FangSong",serif; font-size:9px; }
.dungeon-ranking-ledger-grid { display:grid; grid-template-columns:1.15fr 1fr 1fr; }
.dungeon-ranking-ledger-grid > article { min-height:74px; padding:11px 14px; border-right:1px solid rgba(190,140,68,.22); }
.dungeon-ranking-ledger-grid > article:last-child { border-right:0; }
.dungeon-ranking-ledger-grid span,.dungeon-ranking-ledger-grid b,.dungeon-ranking-ledger-grid small { display:block; }
.dungeon-ranking-ledger-grid span { color:#87765e; font-family:"FangSong",serif; font-size:9px; }
.dungeon-ranking-ledger-grid b { margin-top:5px; color:#dcc08a; font-family:Georgia,"FangSong",serif; font-size:13px; font-weight:400; }
.dungeon-ranking-ledger-grid b.is-points { color:#f1c767; font-size:18px; }
.dungeon-ranking-ledger-grid small { margin-top:4px; color:#8f7e65; font-family:"FangSong",serif; font-size:9px; }
.dungeon-goal-tags { display:flex!important; flex-wrap:wrap; gap:4px; }
.dungeon-goal-tags i { padding:3px 7px; border:1px solid rgba(194,143,69,.45); color:#d8bc83; background:rgba(79,47,18,.43); font-family:"FangSong",serif; font-size:9px; font-style:normal; }
.dungeon-ranking-ledger > footer { display:grid; grid-template-columns:75px 1fr; align-items:start; padding:9px 14px; border-top:1px solid rgba(190,140,68,.22); }
.dungeon-ranking-ledger > footer span { color:#8b795f; font-family:"FangSong",serif; font-size:9px; }
.dungeon-ranking-ledger > footer p { margin:0; color:#c2ad86; font-family:"FangSong",serif; font-size:10px; line-height:1.55; }
.ranking-empty-copy { margin:10px 0; color:#8d7d66; font-family:"FangSong",serif; font-size:10px; }
.ranking-toast { position:fixed; z-index:150; top:146px; left:50%; display:flex; min-width:380px; align-items:center; padding:11px 20px 11px 12px; border:1px solid rgba(211,160,78,.56); color:#e0c99a; background:linear-gradient(90deg,#4e3117,#0d0905 35% 65%,#4e3117); box-shadow:inset 0 0 18px #000,0 16px 40px #000; font-family:"FangSong",serif; font-size:11px; transform:translateX(-50%); animation:noticeArrive 3.5s ease both; }
.ranking-toast span { display:grid; width:30px; height:30px; margin-right:10px; place-items:center; border:1px solid #873628; color:#ca614b; font-family:"STKaiti",serif; font-size:16px; }

@keyframes rankingBackdropBreath { from { transform:scale(1.025); filter:saturate(.68) sepia(.16) brightness(.55) contrast(1.12); } to { transform:scale(1.055); filter:saturate(.78) sepia(.2) brightness(.62) contrast(1.08); } }
@keyframes rankingModalFade { from { opacity:0; } to { opacity:1; } }
@keyframes rankingDialogRise { from { opacity:0; transform:translateY(18px) scale(.985); } to { opacity:1; transform:none; } }

@media (max-width:1450px) {
  .ranking-main { width:calc(100% - 48px); }
  .ranking-summary-strip { grid-template-columns:145px 145px 165px minmax(230px,1fr) 190px; }
  .ranking-summary-strip.is-travel { grid-template-columns:155px 170px minmax(60px,1fr) 200px; }
  .ranking-summary-strip > div:not(.ranking-input-status) { padding:0 11px; }
  .ranking-podium { max-width:900px; }
}
@media (max-width:1180px) {
  .ranking-header { grid-template-columns:210px 1fr 220px; padding-right:28px; padding-left:28px; }
  .ranking-heading h1 { font-size:37px; }
  .ranking-era { min-width:205px; }
  .ranking-summary-strip { grid-template-columns:repeat(3,118px) 1fr 178px; }
  .ranking-summary-strip.is-travel { grid-template-columns:135px 150px minmax(40px,1fr) 190px; }
  .ranking-summary-strip p { font-size:9px; }
  .ranking-summary-strip p b { font-size:17px; }
  .ranking-input-status { font-size:9px; }
  .ranking-board-shell { padding-right:22px; padding-left:22px; }
  .ranking-table > header,.ranking-table-row { grid-template-columns:62px 1fr 1.35fr 1fr 92px; padding-right:11px; padding-left:11px; }
  .ranking-podium { max-width:830px; }
  .ranking-profile-grid { grid-template-columns:1fr; }
  .ranking-travel-tools { grid-template-columns:1fr 270px; }
}
@media (prefers-reduced-motion:reduce) {
  .ranking-page-backdrop,.ranking-modal-backdrop,.ranking-settlement-dialog,.ranking-player-dialog { animation:none!important; }
}

/* 天命榜清晰度修订：降低背景噪点，提高正文对比与管理区可读性 */
.ranking-page { background:#0d0a07; }
.ranking-page::before {
  background:
    linear-gradient(90deg,rgba(7,5,3,.88),rgba(13,9,5,.7) 22% 78%,rgba(7,5,3,.88)),
    linear-gradient(180deg,rgba(7,5,3,.32),rgba(7,5,3,.78) 70%,#090603);
}
.ranking-page-backdrop {
  opacity:.46;
  filter:saturate(.48) sepia(.12) brightness(.68) contrast(1.02) blur(1px);
  animation:none;
}
.ranking-header { background:linear-gradient(180deg,#100c08 0%,#0c0906 78%,#211508 100%); }
.ranking-summary-strip {
  background:linear-gradient(100deg,#3b2817,#16100a 30% 72%,#342313);
  box-shadow:inset 0 0 0 4px #080503,0 16px 34px rgba(0,0,0,.38);
}
.ranking-summary-strip p { color:#c3b18f; font-size:11px; }
.ranking-input-status { color:#d0bc94; font-size:11px; }
.ranking-board-shell {
  background:linear-gradient(118deg,#302113 0%,#17110b 27%,#100d09 72%,#2b1d10 100%);
  background-size:auto;
  box-shadow:inset 0 0 0 5px #080503,inset 0 0 0 6px rgba(217,170,90,.14),0 26px 52px rgba(0,0,0,.42);
}
.ranking-board-heading p { color:#d0bd98; font-size:13px; }
.ranking-board-heading > span { color:#d28a70; background:#2b1711; font-size:10px; }
.ranking-primary-tabs small,.ranking-season-tabs button small { color:#a69578; font-size:10px; }
.ranking-primary-tabs b { font-size:19px; }
.ranking-season-tabs button { font-size:16px; }
.ranking-reward-empty { border-style:solid; background:#151008; }
.ranking-reward-empty b { color:#e0c58f; font-size:13px; }
.ranking-reward-empty small { color:#ad9a7b; font-size:10px; }
.ranking-podium-card {
  border-color:rgba(211,159,76,.55);
  color:#decaa0;
  background:linear-gradient(152deg,#4a3119 0%,#171008 50%,#382410 100%);
  box-shadow:inset 0 0 0 3px #090603,0 13px 28px rgba(0,0,0,.34);
}
.ranking-podium-card.rank-1 { background:linear-gradient(152deg,#67431f 0%,#1b1209 50%,#503316 100%); }
.ranking-podium-card > small { color:#c0a77c; font-size:10px; }
.ranking-podium-card > b { color:#e4ce9f; font-size:13px; }
.ranking-podium-card > p { color:#b8a483; font-size:11px; }
.ranking-table { background:#110c07; }
.ranking-table > header { min-height:42px; color:#b9a582; background:#2f2012; font-size:10px; }
.ranking-table-row { min-height:59px; background:#100b07; }
.ranking-table-row:nth-child(odd) { background:#151008; }
.ranking-table-row:hover { background:#2b1d0e; }
.ranking-table-row > span:nth-child(2) > i { width:39px; height:43px; }
.ranking-table-row span > b { color:#eed7a2; font-size:14px; }
.ranking-table-row span > small { color:#b19e7e; font-size:10px; }
.ranking-table-row > span:nth-child(3) > b { color:#f1c977; font-size:17px; }
.ranking-table-row > span:nth-child(4) { color:#c8b696; font-size:11px; }
.ranking-table-row > i { color:#c29a65; font-size:10px; }

.ranking-player-editor { width:min(960px,calc(100vw - 80px)); }
.ranking-player-picker { display:grid; grid-template-columns:135px minmax(0,1fr); align-items:stretch; margin-top:17px; border:1px solid rgba(199,150,76,.5); background:#110c08; }
.ranking-player-picker > span { display:flex; align-items:center; padding-left:17px; border-right:1px solid rgba(199,150,76,.35); color:#d3bd91; font-family:"FangSong",serif; font-size:12px; letter-spacing:.08em; }
.ranking-player-picker > div { display:grid; grid-template-columns:minmax(220px,1fr) minmax(210px,.9fr); gap:8px; padding:8px; }
.ranking-player-picker select { min-width:0; height:41px; border:1px solid rgba(191,141,68,.45); outline:0; padding:0 12px; color:#f0d7a5; background:#100b07; font-family:"FangSong",serif; font-size:11px; }
.ranking-editor-target { display:grid; grid-template-columns:135px minmax(0,1fr); align-items:center; margin-top:17px; border:1px solid rgba(199,150,76,.5); background:#110c08; }
.ranking-editor-target > span { padding-left:17px; color:#d3bd91; font-family:"FangSong",serif; font-size:12px; letter-spacing:.08em; }
.ranking-editor-target select { height:46px; border:0; border-left:1px solid rgba(199,150,76,.35); outline:0; padding:0 13px; color:#f0d59f; background:#1a120a; font-family:"FangSong",serif; font-size:12px; }
.ranking-season-editor-grid { display:grid; grid-template-columns:1fr 1fr; gap:13px; margin-top:13px; }
.ranking-season-editor-grid > article { padding:15px; border:1px solid rgba(200,150,75,.45); background:linear-gradient(145deg,#382414,#130d08 55%); }
.ranking-season-editor-grid article > header { display:flex; align-items:center; gap:10px; margin-bottom:12px; padding-bottom:10px; border-bottom:1px solid rgba(196,145,70,.3); }
.ranking-season-editor-grid header > span { display:grid; width:39px; height:39px; place-items:center; border:1px solid #9a3b2c; color:#dd7057; font-family:Georgia,serif; font-size:14px; transform:rotate(-3deg); }
.ranking-season-editor-grid header b,.ranking-season-editor-grid header small { display:block; }
.ranking-season-editor-grid header b { color:#ecd097; font-family:"STKaiti",serif; font-size:18px; font-weight:500; letter-spacing:.1em; }
.ranking-season-editor-grid header small { color:#a18e70; font-size:9px; }
.ranking-season-editor-grid label { display:block; margin-top:10px; }
.ranking-season-editor-grid label > span { display:block; margin-bottom:6px; color:#c3ae86; font-family:"FangSong",serif; font-size:11px; }
.ranking-season-editor-grid input,.ranking-season-editor-grid select { width:100%; height:42px; border:1px solid rgba(191,141,68,.45); outline:0; padding:0 12px; color:#f0d7a5; background:#100b07; font-family:"FangSong",serif; font-size:12px; }
.ranking-season-editor-grid input:focus,.ranking-season-editor-grid select:focus { border-color:#d3a04d; box-shadow:0 0 0 2px rgba(211,160,77,.1); }
.ranking-readonly-score { min-height:90px; padding:14px 15px; border:1px solid rgba(191,141,68,.34); background:#100b07; }
.ranking-readonly-score > span,.ranking-readonly-score > small { display:block; color:#9e8b6c; font-family:"FangSong",serif; font-size:10px; }
.ranking-readonly-score > b { display:block; margin:3px 0; color:#f1c974; font-family:Georgia,serif; font-size:29px; font-weight:400; }
.ranking-readonly-score > small { color:#776b58; font-size:8px; }
.ranking-current-season-editor input[readonly] { color:#b9a886; cursor:default; background:#19120c; }
.ranking-editor-items { margin-top:13px; }
.ranking-season-reward-editor { margin-top:13px; }
.ranking-season-reward-body { display:block; }
.ranking-season-reward-rules { border:1px solid rgba(191,141,68,.34); background:#100b07; }
.ranking-season-reward-summary { display:grid; grid-template-columns:90px minmax(0,1fr) auto; align-items:center; gap:12px; min-height:48px; padding:9px 12px; border-bottom:1px solid rgba(191,141,68,.28); }
.ranking-season-reward-summary > span { color:#8f7c60; font-family:"FangSong",serif; font-size:9px; }
.ranking-season-reward-summary > b { color:#9d8d72; font-family:"FangSong",serif; font-size:12px; font-weight:400; }
.ranking-season-reward-summary > small { color:#806f58; font-family:Georgia,"FangSong",serif; font-size:9px; }
.ranking-season-reward-summary.is-earned > b { color:#edcd8b; }
.ranking-season-reward-rules > div:not(.ranking-season-reward-summary) { display:grid; grid-template-columns:90px minmax(0,1fr) 76px; align-items:center; gap:12px; min-height:54px; padding:8px 12px; border-bottom:1px solid rgba(182,134,65,.16); color:#7d6f5a; }
.ranking-season-reward-rules > div:last-child { border-bottom:0; }
.ranking-season-reward-rules > div.is-current { background:linear-gradient(90deg,rgba(94,56,20,.35),rgba(12,8,5,.2)); box-shadow:inset 3px 0 #a86e2d; }
.ranking-season-reward-rules > div > i { color:#b69b69; font-family:Georgia,"FangSong",serif; font-size:10px; font-style:normal; }
.ranking-season-reward-rules > div > span b,.ranking-season-reward-rules > div > span small { display:block; }
.ranking-season-reward-rules > div > span b { color:#cbb386; font-family:"FangSong",serif; font-size:11px; font-weight:400; }
.ranking-season-reward-rules > div > span small { margin-top:3px; color:#746957; font-family:"FangSong",serif; font-size:8px; }
.ranking-season-reward-rules > div > em { color:#8b7a60; font-family:"FangSong",serif; font-size:9px; font-style:normal; text-align:right; }
.ranking-season-reward-rules > div.is-earned > em { color:#dfb65e; }
.ranking-season-settlement-control { margin-top:12px; }
.ranking-season-settlement-control > small { display:block; margin-top:6px; color:#7d705c; font-family:"FangSong",serif; font-size:8px; }
.ranking-auto-reward { position:relative; min-height:77px; margin-top:10px; padding:10px 12px 9px 43px; border:1px solid rgba(153,112,56,.34); background:rgba(8,5,3,.56); }
.ranking-auto-reward::before { position:absolute; top:12px; left:11px; display:grid; width:23px; height:25px; place-items:center; border:1px solid currentColor; content:"赏"; font-family:"STKaiti",serif; font-size:13px; transform:rotate(-3deg); }
.ranking-auto-reward > span,.ranking-auto-reward > b,.ranking-auto-reward > small { display:block; }
.ranking-auto-reward > span { color:#8f7c60; font-family:Georgia,serif; font-size:7px; letter-spacing:.16em; }
.ranking-auto-reward > b { margin-top:3px; color:#8e8068; font-family:"FangSong",serif; font-size:11px; font-weight:400; }
.ranking-auto-reward > small { margin-top:5px; color:#776b58; font-family:"FangSong",serif; font-size:8px; line-height:1.4; }
.ranking-auto-reward.is-earned { border-color:rgba(207,157,76,.56); color:#d1a14e; background:linear-gradient(90deg,rgba(100,61,20,.35),rgba(12,8,5,.62)); box-shadow:inset 0 0 18px rgba(207,139,40,.06); }
.ranking-auto-reward.is-earned > b { color:#edcd8b; }
.ranking-auto-reward.is-earned > small { color:#ae9874; }
.ranking-auto-reward.is-locked { color:#695c49; }
.ranking-auto-total { display:grid; grid-template-columns:55px 1fr 185px; align-items:center; gap:15px; margin-top:13px; padding:13px 18px; border:1px solid rgba(219,170,84,.58); background:linear-gradient(90deg,#4b3016,#181008 45%); }
.ranking-auto-total > span { display:grid; width:46px; height:48px; place-items:center; border:1px solid #9a3b2c; color:#dc6e54; font-family:"STKaiti",serif; font-size:23px; transform:rotate(-3deg); }
.ranking-auto-total small { color:#9f8b6d; font-family:Georgia,serif; font-size:8px; letter-spacing:.2em; }
.ranking-auto-total b { display:block; margin-top:1px; color:#f5cf78; font-family:Georgia,serif; font-size:27px; font-weight:400; }
.ranking-auto-total p { margin:2px 0 0; color:#b7a484; font-family:"FangSong",serif; font-size:10px; }
.ranking-total-settlement { display:block; padding-left:16px; border-left:1px solid rgba(205,155,77,.33); }
.ranking-total-settlement > span { display:block; margin-bottom:6px; color:#cbb58a; font-family:"FangSong",serif; font-size:10px; }
.ranking-total-settlement select { width:100%; height:38px; border:1px solid rgba(197,146,70,.48); outline:0; padding:0 10px; color:#ecd099; background:#110b07; font-family:"FangSong",serif; font-size:11px; }
.ranking-auto-total.is-readonly { grid-template-columns:55px minmax(0,1fr) 235px; }
.ranking-total-reward-display { align-self:stretch; display:flex; flex-direction:column; justify-content:center; padding-left:18px; border-left:1px solid rgba(205,155,77,.33); }
.ranking-total-reward-display > span { color:#a99571; font-family:"FangSong",serif; font-size:10px; }
.ranking-total-reward-display > b { margin-top:5px; color:#e9ca8b; font-family:"FangSong",serif; font-size:12px; font-weight:400; line-height:1.5; }
.travel-score-form { margin-top:13px; }
.travel-score-form label > span { color:#cfba91; font-size:11px; }
.travel-score-form input { font-size:12px; }

.player-reward-ledger { margin-top:14px; padding:15px 17px; border:1px solid rgba(195,145,70,.4); background:#110c07; }
.player-reward-ledger > header { display:flex; align-items:center; gap:11px; margin-bottom:11px; padding-bottom:10px; border-bottom:1px solid rgba(192,142,68,.3); }
.player-reward-ledger header > span { display:grid; width:37px; height:38px; place-items:center; border:1px solid #8d3729; color:#ce624b; font-family:"STKaiti",serif; font-size:19px; transform:rotate(-3deg); }
.player-reward-ledger small { color:#948064; font-family:Georgia,serif; font-size:8px; letter-spacing:.2em; }
.player-reward-ledger h3 { margin:2px 0 0; color:#e3c58a; font-family:"STKaiti",serif; font-size:19px; font-weight:500; letter-spacing:.1em; }
.player-reward-ledger > article { display:grid; grid-template-columns:60px 1fr 76px; align-items:center; min-height:44px; border-top:1px solid rgba(179,130,62,.2); }
.player-reward-ledger article > b { color:#e0b85f; font-family:Georgia,serif; font-size:13px; }
.player-reward-ledger article > p { margin:0; color:#c8b590; font-family:"FangSong",serif; font-size:11px; }
.player-reward-ledger article > span { justify-self:end; padding:4px 8px; border:1px solid; font-family:"FangSong",serif; font-size:9px; }
.player-reward-ledger article > span.is-unsettled { border-color:rgba(163,66,49,.5); color:#d57a65; background:rgba(82,29,21,.4); }
.player-reward-ledger article > span.is-settled { border-color:rgba(127,151,92,.56); color:#b7cc89; background:rgba(39,60,30,.4); }

@media (max-width:1180px) {
  .hulao-loot-workbench { grid-template-columns:minmax(260px,.85fr) minmax(390px,1.15fr); }
  .loot-result-panel { display:grid; min-height:220px; grid-column:1/-1; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .loot-package-result { grid-column:1/-1; }
  .loot-wheel-stage { width:min(36vw,350px); }
  .loot-quality-wheel > span { transform:rotate(var(--loot-angle)) translateY(-117px) rotate(calc(var(--loot-angle) * -1)); }
  .ranking-season-editor-grid { grid-template-columns:1fr; }
  .ranking-auto-total { grid-template-columns:55px 1fr 165px; }
}

@media (max-width:820px) {
  .hulao-loot-workbench { grid-template-columns:1fr; }
  .loot-result-panel { display:flex; }
  .loot-wheel-stage { width:min(76vw,330px); }
  .loot-control-panel > label { grid-template-columns:86px minmax(0,1fr); }
  .loot-grant-dialog dl { grid-template-columns:1fr; }
  .loot-grant-dialog dl div { border-top:1px solid rgba(179,129,61,.25); border-left:0; }
  .loot-grant-dialog dl div:first-child { border-top:0; }
  .loot-package-rules,.loot-grant-package { grid-template-columns:1fr; }
  .loot-package-rules > .loot-pack-count-breakdown span { width:100%; }
  .loot-grant-pill { grid-column:auto; }
  .loot-grant-item { grid-template-columns:76px minmax(0,1fr); }
  .loot-grant-item img { width:76px; height:76px; }
  .edit-identity-panel > header { grid-template-columns:43px 1fr; }
  .edit-identity-panel > header > button { grid-column:1/-1; justify-self:end; }
  .account-activation-panel { grid-template-columns:1fr 1fr; }
  .account-activation-panel>div,.account-activation-panel label { grid-column:1/-1; }
  .account-activation-panel>p { grid-column:1/-1; }
  .edit-identity-body { grid-template-columns:1fr; }
  .edit-avatar-picker { grid-column:1; grid-template-columns:repeat(4,minmax(62px,1fr)); }
}

/* ======================================================================
   全站明度修订 · 夜战暖金
   保留黑金史诗气氛，但让背景、人物、卷宗与交互信息在普通显示器上清楚可读。
   ====================================================================== */
:root {
  --ink: #120d09;
  --night-ink: #17110b;
  --night-surface: #21170e;
  --night-surface-raised: #2b1d10;
  --gold: #dfb866;
  --gold-bright: #ffe4a3;
  --gold-dim: #a48756;
  --body-copy: #dfd0ad;
  --muted-copy: #b7a482;
  --bronze-line: rgba(221, 174, 90, .56);
}

html,
body,
#root { background:#120d09; }

/* 首页：抬起战场中灰与火光，减少覆盖全画面的纯黑暗角。 */
.scene-background {
  background-image:linear-gradient(180deg,rgba(28,18,10,.01),rgba(36,19,8,.07)),url("/assets/generated/home-bg.png");
  filter:saturate(.94) contrast(1.02) brightness(1.08);
  animation-name:claritySceneBreath;
}
.moving-clouds { opacity:.16; filter:blur(22px); }
.vignette {
  background:
    linear-gradient(180deg,rgba(4,3,2,.12),transparent 28%,transparent 70%,rgba(5,3,2,.34)),
    radial-gradient(ellipse at center,transparent 48%,rgba(3,2,1,.34) 100%);
}
.grain { opacity:.035; }
.fire-glow { opacity:.46; filter:blur(42px); }
.logo-ornament { opacity:.82; filter:saturate(.88) sepia(.08) brightness(1.12); }
.logo-copy { filter:drop-shadow(0 3px 6px rgba(0,0,0,.82)); }
.logo-copy p { color:#f0dcb0; text-shadow:0 2px 5px #000; }
.player-token {
  border-color:rgba(231,187,101,.72);
  background:
    linear-gradient(90deg,#75552b,#392918 25%,#21180f 73%,#654724),
    radial-gradient(circle at 20% 50%,#a27c45,transparent 42%);
  box-shadow:inset 0 0 0 2px rgba(37,23,10,.7),inset 0 0 18px rgba(0,0,0,.62),0 12px 28px rgba(0,0,0,.44);
}
.player-role,.player-stats span { color:#c4b08a; }
.player-name { color:#ffebbd; }
.player-stats strong { color:#f2ca77; }
.destiny-wheel-image {
  opacity:1;
  filter:saturate(.92) sepia(.04) contrast(1.02) brightness(1.24) drop-shadow(0 0 34px rgba(210,145,48,.28));
}
.destiny-core {
  background:radial-gradient(circle,rgba(22,15,9,.94) 0 48%,rgba(43,27,12,.72) 65%,transparent 69%);
  box-shadow:inset 0 0 38px rgba(214,151,57,.08),0 0 38px rgba(215,148,45,.08);
}
.core-eyebrow { color:#c9aa70; }
.destiny-core h2 { color:#ffe7ae; text-shadow:0 3px 9px #000,0 0 14px rgba(222,168,70,.18); }
.orbit { border-color:rgba(226,181,94,.31); }
.wheel-coordinate { color:rgba(220,179,94,.7); }
.entrance {
  border-color:rgba(224,174,84,.67);
  background:#181009;
  box-shadow:inset 0 0 0 3px rgba(15,9,4,.62),inset 0 0 0 4px rgba(228,183,96,.22),0 13px 25px rgba(0,0,0,.42);
}
.entrance-image,
.entrance-4 .entrance-image,
.entrance-5 .entrance-image { filter:saturate(.92) brightness(.91) contrast(1.03); }
.entrance-fog {
  background:
    linear-gradient(180deg,rgba(12,8,4,.01) 12%,rgba(11,7,4,.12) 52%,rgba(8,5,3,.78) 92%),
    linear-gradient(90deg,rgba(14,9,5,.25),transparent 55%,rgba(12,8,4,.08));
}
.entrance:hover .entrance-image { filter:saturate(1.02) brightness(1.05) contrast(1.03); }
.entrance-copy strong { color:#ffe3a0; }
.entrance-copy em { color:#f4e8cf; }
.entrance-copy small { color:#c5b18c; }
.chapter-mark { color:#f0d79f; background:rgba(30,18,8,.72); }
.history-ticker {
  border-color:rgba(213,164,80,.53);
  background:linear-gradient(90deg,#3d2916,#18110b 24% 77%,#3d2916);
  box-shadow:inset 0 0 13px rgba(0,0,0,.5),0 7px 18px rgba(0,0,0,.38);
}
.history-ink { color:#e4d5b5; }
.history-date { color:#b49e77; }
@keyframes claritySceneBreath {
  from { transform:scale(1.018); filter:saturate(.94) contrast(1.02) brightness(1.08); }
  to { transform:scale(1.045); filter:saturate(1) contrast(1.03) brightness(1.14); }
}

/* 全部黑金页面：由纯黑改为能分辨层次的深棕墨色。 */
.dungeon-shell,
.treasure-page,
.character-page,
.ranking-page {
  color:#eadcbd;
  background:
    radial-gradient(circle at 50% -10%,rgba(174,111,39,.24),transparent 36%),
    linear-gradient(180deg,#1b130c 0,#120d09 58%,#181008 100%);
}
.dungeon-shell::before { opacity:.055; }
.dungeon-shell::after { box-shadow:inset 0 0 105px 20px rgba(0,0,0,.58); }
.dungeon-ambient i { opacity:.2; }
.dungeon-header,
.treasure-header,
.character-system-header,
.ranking-header {
  background:
    radial-gradient(ellipse at 50% 112%,rgba(187,119,38,.25),transparent 54%),
    linear-gradient(90deg,#18110b,#322113 50%,#18110b);
  box-shadow:0 14px 38px rgba(0,0,0,.42),inset 0 -1px rgba(255,220,145,.13);
}
.dungeon-heading > span,
.section-eyebrow { color:#bda06c; }
.dungeon-heading p,
.treasure-heading p,
.character-system-heading p,
.ranking-heading p { color:#d1bd95; }
.ink-back {
  border-color:rgba(214,165,82,.5);
  color:#d7c39d;
  background:linear-gradient(90deg,#53351a,#1b120b);
}

/* 副本长卷与详情。 */
.atlas-prologue p,
.atlas-footnote,
.roster-header p { color:#c7b491; }
.atlas-frame {
  background:linear-gradient(90deg,#1c130c,#2a1c10 8%,#18100a 50%,#2a1c10 92%,#1c130c);
  box-shadow:inset 0 0 36px rgba(0,0,0,.55),0 19px 42px rgba(0,0,0,.38);
}
.atlas-scroll-viewport { scrollbar-color:#b48243 #171008; }
.scroll-node { filter:brightness(1.16) saturate(.95); }
.scroll-node:hover { filter:brightness(1.28) saturate(1.04); }
.node-copy { background:linear-gradient(90deg,rgba(45,28,13,.94),rgba(16,10,6,.88)); }
.scroll-node .node-copy small { color: #dcc391; font-size: 9px; }
.scroll-node .node-copy strong { color: #f3d895; text-shadow: 0 1px 2px #120b05; }
.scroll-node .node-copy .difficulty i.is-lit { color: #dfa754; }
.scroll-node .node-copy .node-reservation { color: #e6c37c; font-size: 10px; }
.detail-backdrop {
  opacity:.38;
  background-image:linear-gradient(180deg,rgba(12,8,5,.1),rgba(14,9,5,.62) 78%),var(--detail-image);
  filter:blur(3px) saturate(.84) contrast(1.02) brightness(1.12);
}
.detail-topbar { background:rgba(25,17,10,.94); box-shadow:0 10px 24px rgba(0,0,0,.36); }
.detail-breadcrumb,.detail-player { color:#bbaa89; }
.dungeon-cover-panel {
  border-color:rgba(218,171,86,.58);
  background:#171009;
  box-shadow:inset 0 0 0 4px rgba(12,7,3,.56),inset 0 0 0 5px rgba(227,184,101,.19),0 22px 46px rgba(0,0,0,.48);
}
.dungeon-cover-panel > img { filter:saturate(.9) contrast(1.03) brightness(.9); }
.dungeon-cover-panel.is-map-trigger:hover > img { filter:saturate(1) contrast(1.03) brightness(1.02); }
.cover-caption { background:linear-gradient(transparent,rgba(13,8,4,.6) 40%,rgba(10,6,3,.91)); }
.dungeon-narrative blockquote { color:#eadbb9; }
.dungeon-narrative > p { color:#d9cbb0; }
.danger-strip {
  border-color:rgba(177,71,48,.52);
  background:linear-gradient(90deg,rgba(112,43,27,.42),rgba(36,23,12,.72));
}
.danger-strip small { color:#bdac8d; }
.brief-module {
  border-color:rgba(213,164,80,.48);
  background:linear-gradient(105deg,#4a3018,#1b120b 40%,#342110),repeating-linear-gradient(90deg,transparent 0 8px,rgba(255,255,255,.015) 9px);
  box-shadow:inset 0 0 18px rgba(0,0,0,.46),0 11px 24px rgba(0,0,0,.22);
}
.objective-row { background:rgba(26,17,10,.72); }
.objective-row b,.reward-item b { color:#ead4a3; }
.objective-row i { color:#b29e7b; }
.reward-item { background:rgba(31,20,11,.78); }
.roster-section {
  background:linear-gradient(90deg,transparent,#3a2514 12% 88%,transparent),repeating-linear-gradient(0deg,transparent 0 15px,rgba(216,174,96,.022) 16px);
  box-shadow:inset 0 20px 35px rgba(0,0,0,.18);
}
.character-card {
  border-color:rgba(211,163,80,.5);
  background:linear-gradient(110deg,#352313,#181009 55%,#291a0e);
  box-shadow:inset 0 0 15px rgba(0,0,0,.38),0 9px 20px rgba(0,0,0,.28);
}
.character-avatar img { filter:saturate(.88) sepia(.03) contrast(1.03) brightness(.98); }
.character-card:hover .character-avatar img { filter:saturate(1) contrast(1.02) brightness(1.08); }
.character-fact span,.reverse-level span { color:#ac9b7c; }
.character-fact b { color:#ded0ad; }
.spinner-module,
.hulao-loot-module { background:linear-gradient(135deg,#3d2815,#18100a 48%,#2f1f11); }
.loot-control-panel,.loot-result-panel { background:#1c130c; }
.loot-control-panel select,.loot-control-panel input,.loot-score-input b { background:#2a1b0f; color:#f0d8a4; }
.loot-control-panel fieldset label { background:#21160d; }

/* 天下奇珍：外框提亮，典籍本体继续使用浅羊皮纸。 */
.treasure-backdrop { opacity:.4; filter:saturate(.82) brightness(1.1); }
.treasure-stats,
.archive-toolbar { background:linear-gradient(100deg,#4a3018,#1c130c 28% 72%,#402814); }
.treasure-stats span,.archive-result-count span { color:#bca986; }
.artifact-search input { color:#f0dfbd; background:#21160d; }
.artifact-categories button { color:#c4af88; }
.catalog-book {
  border-color:#806039;
  background:linear-gradient(90deg,rgba(82,50,18,.12),transparent 8% 92%,rgba(82,50,18,.12)),linear-gradient(135deg,#c7aa72,#ead6a3 44%,#cfb27a);
  box-shadow:inset 0 0 0 5px rgba(69,42,17,.27),inset 0 0 62px rgba(74,43,15,.17),0 26px 55px rgba(0,0,0,.46);
}
.artifact-card { filter:brightness(1.08); }
.artifact-card:hover { filter:brightness(1.18); }
.artifact-image img { filter:saturate(.9) brightness(1.02); }

/* 账号卡：让人物、物品图和小字真正可读。 */
.character-page-backdrop { opacity:.57; filter:saturate(.9) sepia(.04) contrast(1.02) brightness(1.22); }
.character-list-card,
.character-profile-hero,
.edit-character-banner,
.edit-identity-panel {
  border-color:rgba(218,170,87,.58);
  background:linear-gradient(112deg,#4a3019,#1b120b 42%,#362312);
  box-shadow:inset 0 0 0 4px rgba(10,6,3,.55),0 14px 31px rgba(0,0,0,.34);
}
.character-list-portrait > .character-avatar-sprite,
.edit-character-banner > .character-avatar-sprite,
.edit-avatar-picker .character-avatar-sprite,
.equipment-slot-grid img,
.equipment-inventory img,
.equipment-mini img { filter:saturate(.95) brightness(1.08); }
.character-list-body header small,
.character-card-mandate,
.character-growth-strip > span small,
.character-card-stats span,
.role-module header small,
.role-stat-label span,
.role-stat-gauge > small,
.equipment-inventory small,
.usable-item-list small { color:#ad9c7f; }
.character-list-body h2,
.role-module h3,
.edit-character-banner h2 { color:#f3d99d; }
.character-card-stats { background:rgba(25,16,9,.55); }
.character-card-stats b { color:#e8c77e; }
.role-module {
  border-color:rgba(216,167,83,.57);
  color:#e4d3b1;
  background:linear-gradient(118deg,#493019,#1a110a 42%,#312010);
}
.role-stat-track,.character-growth-strip > i { background:#24170d; }
.affinity-grid > div,.skill-trait-block,.detail-equipment-grid > div,.equipment-slot-grid > div { background:rgba(30,20,11,.62); }
.affinity-grid span,.skill-trait-block > span,.detail-equipment-grid > div > span,.equipment-slot-grid > div > span { color:#b2a080; }
.equipment-slot-grid strong,.equipment-inventory b,.usable-item-list b { color:#e5ca91; }
.equipment-slot-grid small,.edit-empty-line p,.retainer-empty p { color:#aa9a7e; }
.equipment-inventory button,.usable-item-list button { color:#d1b785; background:#3a2512; }

/* 天命榜：减少黑底吞字，保留石碑厚重感。 */
.ranking-page::before {
  background:linear-gradient(90deg,rgba(15,10,6,.58),rgba(28,18,10,.28) 22% 78%,rgba(15,10,6,.58)),linear-gradient(180deg,rgba(13,9,5,.12),rgba(13,9,5,.5) 72%,#120c08);
}
.ranking-page-backdrop { opacity:.62; filter:saturate(.7) sepia(.1) brightness(.92) contrast(1.01); }
.ranking-summary-strip { background:linear-gradient(100deg,#57391f,#21170e 30% 72%,#4a301a); }
.ranking-board-shell { background:linear-gradient(118deg,#4a311b,#21170f 27%,#18110b 72%,#402a17); }
.ranking-primary-tabs button,
.ranking-season-tabs,
.ranking-dungeon-tabs { background:#20150d; }
.ranking-primary-tabs button.is-active,
.ranking-season-tabs button.is-active { background:linear-gradient(180deg,#6a431f,#2e1d0e); }
.ranking-podium-card { background:linear-gradient(152deg,#694521,#21160d 50%,#503318); }
.ranking-podium-card.rank-1 { background:linear-gradient(152deg,#845628,#281a0e 50%,#63401c); }
.ranking-table { background:#1b120b; }
.ranking-table-row { background:#1c130c; }
.ranking-table-row:nth-child(odd) { background:#26190f; }
.ranking-table > header { background:#422b17; color:#d0bc97; }
.ranking-table-row span > small,
.ranking-podium-card > p { color:#b9a789; }

/* 弹窗统一：遮罩不再吞掉弹窗自身的层次。 */
.loot-dialog-backdrop,
.role-confirm-backdrop,
.ranking-modal-backdrop { background:rgba(5,3,2,.68); backdrop-filter:blur(8px) saturate(.82); }
.loot-rules-dialog,
.loot-grant-dialog,
.role-confirm-dialog,
.ranking-settlement-dialog,
.ranking-player-dialog {
  color:#e0cda7;
  background:linear-gradient(132deg,#5a3a1d,#1d130c 38% 70%,#4b3018);
  box-shadow:inset 0 0 0 4px #110b07,inset 0 0 0 5px rgba(231,183,94,.19),0 26px 68px rgba(0,0,0,.6);
}

@media (prefers-reduced-motion:reduce) {
  .scene-background { animation:none; }
}

/* 主播周报导入：独立于副本推演，只承接TXT校验、发奖与榜单登记。 */
.streamer-import-page { min-height:100vh; position:relative; overflow:hidden; color:#e9ddc2; background:#080604; }
.streamer-import-backdrop { position:fixed; inset:0; z-index:0; opacity:.44; background:linear-gradient(90deg,rgba(5,3,2,.94),rgba(5,3,2,.48),rgba(5,3,2,.92)),url('/assets/generated/entry-dungeons.png') center/cover; filter:sepia(.28) saturate(.72); }
.streamer-import-backdrop::after { content:""; position:absolute; inset:0; background:repeating-linear-gradient(0deg,transparent 0 3px,rgba(255,255,255,.018) 4px),radial-gradient(circle at 50% 0,rgba(171,106,34,.24),transparent 46%); }
.streamer-import-header { position:relative; z-index:2; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; min-height:120px; padding:20px clamp(28px,5vw,82px); border-bottom:1px solid rgba(208,166,88,.25); background:rgba(10,7,4,.9); backdrop-filter:blur(15px); }
.streamer-import-header > div { text-align:center; }
.streamer-import-header small,.streamer-import-main small { color:#a98d58; font-family:Georgia,serif; letter-spacing:.28em; }
.streamer-import-header h1 { margin:7px 0 5px; color:#e7cc8d; font-family:"STKaiti","KaiTi",serif; font-size:38px; font-weight:500; letter-spacing:.2em; }
.streamer-import-header p { margin:0; color:#9f9276; letter-spacing:.12em; }
.streamer-import-counter { justify-self:end; padding:10px 14px; border:1px solid rgba(197,151,69,.3); color:#a99777; background:rgba(46,30,15,.44); }
.streamer-import-counter b { color:#e4bf69; font-size:20px; }
.streamer-import-main { position:relative; z-index:1; width:min(1240px,calc(100% - 36px)); margin:0 auto; padding:44px 0 90px; }
.streamer-import-intro,.streamer-import-workbench,.streamer-import-preview,.streamer-import-history { margin-bottom:22px; border:1px solid rgba(202,156,74,.27); background:linear-gradient(125deg,rgba(65,41,20,.88),rgba(14,10,7,.96) 42%); box-shadow:0 24px 70px rgba(0,0,0,.42),inset 0 0 0 4px rgba(5,3,2,.5); }
.streamer-import-intro { display:flex; gap:18px; align-items:center; padding:24px 28px; }
.streamer-import-intro > span { display:grid; place-items:center; width:52px; height:52px; border:1px solid #91392c; color:#ba4c3b; font-size:27px; transform:rotate(-3deg); }
.streamer-import-intro h2,.streamer-import-workbench h2,.streamer-import-preview h2,.streamer-import-history h2 { margin:5px 0 4px; color:#e1c583; font-family:"STKaiti","KaiTi",serif; font-size:24px; font-weight:500; letter-spacing:.12em; }
.streamer-import-intro p { margin:0; color:#b0a182; line-height:1.7; }
.streamer-import-workbench > header,.streamer-import-preview > header { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:22px 26px; border-bottom:1px solid rgba(201,157,79,.2); }
.streamer-file-picker { position:relative; overflow:hidden; cursor:pointer; }
.streamer-file-picker input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.streamer-file-picker span,.streamer-parser-actions button,.streamer-import-preview footer button { display:block; padding:11px 18px; border:1px solid #8e6934; color:#e9cb84; background:linear-gradient(180deg,#4c3218,#1b120a); cursor:pointer; }
.streamer-file-meta { display:grid; grid-template-columns:90px 1fr auto; gap:14px; align-items:center; margin:20px 24px 0; padding:12px 14px; border:1px solid rgba(199,153,74,.18); background:rgba(8,6,4,.58); }
.streamer-file-meta span { color:#8e826b; }
.streamer-file-meta b { color:#d7c296; font-weight:500; }
.streamer-file-meta i { color:#bb9149; font-family:Consolas,monospace; font-size:11px; font-style:normal; }
.streamer-import-workbench textarea { display:block; width:calc(100% - 48px); min-height:190px; margin:14px 24px; resize:vertical; border:1px solid #564321; padding:16px; color:#d9c7a3; background:#070503; font-family:Consolas,"Microsoft YaHei",sans-serif; font-size:12px; line-height:1.65; outline:none; }
.streamer-import-workbench textarea:focus { border-color:#a47a3b; box-shadow:0 0 0 2px rgba(169,119,48,.12); }
.streamer-parser-actions { display:flex; gap:18px; align-items:center; padding:0 24px 24px; }
.streamer-parser-actions p { margin:0; color:#a7997e; }
.streamer-import-preview > header > div:last-child { display:flex; gap:8px; }
.streamer-import-preview > header > div:last-child span { padding:8px 10px; border:1px solid rgba(196,151,70,.2); color:#93866f; }
.streamer-import-preview > header .is-ready { color:#cddc9a; border-color:rgba(136,163,91,.34); }
.streamer-import-errors { margin:16px 24px; padding:10px 14px; border-left:2px solid #984031; background:rgba(123,44,31,.14); color:#d0a28e; }
.streamer-import-errors p { margin:5px 0; }
.streamer-import-errors.is-player-create { border-left-color:#7f9c55; background:rgba(74,101,43,.13); color:#c7d99a; }
.streamer-import-records { display:grid; gap:8px; max-height:540px; overflow:auto; padding:18px 24px; }
.streamer-import-record { display:grid; grid-template-columns:52px minmax(260px,1.15fr) minmax(250px,1fr) 110px; gap:16px; align-items:center; padding:14px; border:1px solid rgba(198,152,72,.18); background:rgba(25,17,10,.72); }
.streamer-import-record > i { color:#a8803b; font-size:18px; font-style:normal; }
.streamer-import-record h3 { margin:4px 0; color:#dfc68f; font-size:19px; font-weight:500; }
.streamer-import-record h3 em { color:#8f836c; font-size:11px; font-style:normal; }
.streamer-import-record p { margin:0; color:#a99b80; }
.streamer-import-record code { display:block; margin-top:6px; color:#715f44; font-size:10px; }
.streamer-import-items { display:flex; flex-wrap:wrap; gap:5px; }
.streamer-import-items span { padding:5px 7px; border:1px solid rgba(204,158,74,.19); color:#c5b28e; background:rgba(74,45,20,.22); }
.streamer-import-items small { width:100%; color:#c77c67; }
.streamer-import-record-action { display:grid; gap:10px; justify-items:end; color:#a59578; }
.streamer-import-record-action > b { font-weight:500; }
.streamer-import-record-action > button { min-width:0; padding:8px 10px; font-size:12px; white-space:nowrap; }
.streamer-import-record.is-ready { border-left:3px solid #7f9c55; }
.streamer-import-record.is-ready .streamer-import-record-action { color:#b7ce83; }
.streamer-import-record.is-new-player { border-left:3px solid #b58b43; background:linear-gradient(90deg,rgba(112,73,27,.18),rgba(25,17,10,.72)); }
.streamer-import-record.is-new-player .streamer-import-record-action { color:#e2bd6d; }
.streamer-import-record.is-duplicate { opacity:.55; }
.streamer-import-record.is-missing-player,.streamer-import-record.is-missing-item { border-left:3px solid #963e2f; }
.streamer-import-record.is-missing-player .streamer-import-record-action,.streamer-import-record.is-missing-item .streamer-import-record-action { color:#d08470; }
.streamer-import-preview > footer { display:flex; justify-content:space-between; gap:20px; align-items:center; padding:18px 24px; border-top:1px solid rgba(201,157,79,.2); }
.streamer-import-preview > footer p { margin:0; color:#94876e; }
.streamer-import-preview > footer button:disabled { opacity:.35; cursor:not-allowed; }
.streamer-import-history > header { padding:20px 24px; border-bottom:1px solid rgba(201,157,79,.2); }
.streamer-import-history > div { display:grid; gap:1px; padding:14px 24px 24px; }
.streamer-import-history article { display:grid; grid-template-columns:1fr 140px 190px; gap:16px; padding:12px 14px; border-bottom:1px solid rgba(193,149,72,.13); color:#a89a7e; }
.streamer-import-history article span { color:#c4a65e; font-family:Consolas,monospace; }
.streamer-import-history article b { color:#d3bf94; font-weight:500; }
.streamer-import-history article time { text-align:right; color:#766d5c; }
.streamer-import-history > div > p { color:#80745f; }

@media(max-width:1050px){
  .streamer-import-header { grid-template-columns:1fr; gap:14px; }
  .streamer-import-header .ink-back { position:absolute; left:20px; top:20px; }
  .streamer-import-counter { justify-self:center; }
  .streamer-import-record { grid-template-columns:44px 1fr 110px; }
  .streamer-import-items { grid-column:2/4; }
}
@media(max-width:700px){
  .streamer-import-header h1 { font-size:30px; }
  .streamer-import-main { width:calc(100% - 18px); padding-top:20px; }
  .streamer-import-intro { align-items:flex-start; padding:18px; }
  .streamer-import-workbench > header,.streamer-import-preview > header,.streamer-parser-actions,.streamer-import-preview > footer { align-items:stretch; flex-direction:column; }
  .streamer-file-meta { grid-template-columns:1fr; }
  .streamer-import-record { grid-template-columns:34px 1fr; }
  .streamer-import-record-action { justify-items:start; grid-column:2; }
  .streamer-import-items { grid-column:2; }
  .streamer-import-history article { grid-template-columns:1fr; }
  .streamer-import-history article time { text-align:left; }
}

/* 案头模式：共用同一份档案，视图偏好独立保存。 */
.archive-view-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:12px 0; }
.archive-view-toolbar > p { margin:0; color:#c2af8c; font-size:12px; line-height:1.7; }
.archive-view-switch { display:inline-flex; flex:0 0 auto; gap:3px; padding:4px; border:1px solid #806237; background:#1b120b; }
.archive-view-switch button { min-height:36px; padding:7px 16px; border:1px solid transparent; color:#baa581; background:transparent; cursor:pointer; font-size:13px; white-space:nowrap; }
.archive-view-switch button[aria-pressed="true"] { border-color:#c49a53; color:#f0d398; background:linear-gradient(125deg,#61401e,#312012); box-shadow:inset 0 0 12px #b8863022; }
.archive-view-switch button:focus-visible { outline:2px solid #efd18b; outline-offset:2px; }
.character-level-board { border:1px solid #806237; padding:0 24px 14px; background:linear-gradient(115deg,#302315ee,#150f09f5 70%); box-shadow:inset 0 0 0 5px #ba91490a; }
.level-board-heading { display:flex; align-items:center; gap:18px; padding:26px 0; border-bottom:1px solid #806237; }
.level-board-seal { display:grid; place-items:center; width:50px; height:56px; flex-shrink:0; border:1px solid #99703b; color:#e4bf73; font:29px "STKaiti","KaiTi",serif; transform:rotate(-4deg); background:#a0742920; }
.level-board-heading > div { min-width:0; }
.level-board-heading small { color:#b69862; font:10px Georgia,serif; letter-spacing:.2em; }
.level-board-heading h2 { margin:5px 0 8px; color:#ecd193; font:30px "STKaiti","KaiTi",serif; letter-spacing:.14em; }
.level-board-heading p { margin:0; color:#c1ac89; font-size:12px; line-height:1.8; }
.level-board-count { margin-left:auto; color:#bda57c; font-size:12px; white-space:nowrap; }
.level-board-count b { margin-left:12px; color:#e9c777; font:28px Georgia,serif; }
.level-board-scroll-sentinel { height:1px; }
.level-board-scroll-hint { margin:0; padding:16px; color:#9d8b6c; font-size:12px; text-align:center; letter-spacing:.1em; }
.level-board-table { width:100%; border-collapse:collapse; text-align:left; }
.level-board-table caption { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.level-board-table thead th { padding:15px 16px; color:#a98f64; font-size:12px; font-weight:400; letter-spacing:.12em; white-space:nowrap; }
.level-board-table tbody tr { border-top:1px solid #89663735; }
.level-board-table tbody td,.level-board-table tbody th { padding:16px; font-weight:400; }
.level-board-table tbody tr:hover { background:#b58b3110; }
.level-board-table tbody tr.is-rank-1 { background:linear-gradient(90deg,#bc8c3523,transparent); }
.level-board-table tbody tr.is-rank-2 { background:linear-gradient(90deg,#bab5a611,transparent); }
.level-board-table tbody tr.is-rank-3 { background:linear-gradient(90deg,#b67b4d13,transparent); }
.level-board-table th:first-child,.level-board-table td:first-child { width:72px; text-align:center; }
.level-board-rank { display:block; color:#b19a73; font:26px Georgia,serif; font-variant-numeric:tabular-nums; }
.is-rank-1 .level-board-rank { color:#f1cf7b; text-shadow:0 0 18px #dfac4555; }
.is-rank-2 .level-board-rank { color:#d3cfbf; }
.is-rank-3 .level-board-rank { color:#d49b6a; }
.level-board-tied { display:block; margin-top:4px; color:#ac9470; font-size:10px; }
.level-board-player { display:flex; align-items:center; gap:16px; }
.level-board-player > .character-avatar-sprite { width:50px; height:60px; flex-shrink:0; border:1px solid #846538; }
.level-board-player > div:last-child { min-width:0; }
.level-board-player strong { display:block; margin-bottom:7px; overflow-wrap:anywhere; color:#e8cf9b; font:23px "STKaiti","KaiTi",serif; }
.level-board-level { color:#e6c375; font:28px Georgia,serif; white-space:nowrap; font-variant-numeric:tabular-nums; }
.level-board-level small { margin-right:5px; color:#b69a68; font-size:13px; }
.level-board-progress { max-width:280px; min-width:140px; }
.level-board-progress > span { display:flex; justify-content:space-between; gap:14px; color:#c7b18a; font-size:12px; }
.level-board-progress small { color:#ab936e; font-size:11px; }
.level-board-progress > i { display:block; height:4px; margin-top:10px; background:#b9985420; }
.level-board-progress em { display:block; height:100%; background:linear-gradient(90deg,#926032,#e4c67b); }
.level-board-account-label { display:inline-block; margin-left:9px; color:#d3b77f; font-size:10px; letter-spacing:.12em; white-space:nowrap; }
@media (max-width:820px) {
  .character-level-board { padding:0 14px 10px; }
  .level-board-heading { gap:13px; padding:21px 0; }
  .level-board-table tbody td,.level-board-table tbody th,.level-board-table thead th { padding:13px 9px; }
  .level-board-growth { display:none; }
  .battle-rank-table .battle-board-record-column { display:none; }
}
@media (max-width:540px) {
  .level-board-heading { flex-wrap:wrap; }
  .level-board-seal { width:36px; height:44px; font-size:24px; }
  .level-board-heading h2 { font-size:25px; }
  .level-board-heading p { max-width:220px; font-size:11px; }
  .level-board-count { display:none; }
  .level-board-table th:first-child,.level-board-table td:first-child { width:35px; }
  .level-board-player { gap:8px; }
  .level-board-player > .character-avatar-sprite { width:32px; height:43px; }
  .level-board-player strong { font-size:18px; margin:0; }
  .level-board-player .character-qualification { display:none; }
  .level-board-level { font-size:22px; }
  .level-board-rank { font-size:22px; }
  .level-board-table tbody td,.level-board-table tbody th,.level-board-table thead th { padding:13px 5px; }
  .level-board-account-label { font-size:10px; }
}
.atlas-main { height:auto; min-height:calc(100vh - 144px); grid-template-rows:auto auto minmax(400px,1fr) auto; }
.atlas-page { height:auto; overflow:visible; }
.atlas-quick-list { display:grid; align-content:start; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.atlas-quick-row { display:grid; grid-template-columns:32px 70px minmax(0,1fr) auto; align-items:center; gap:13px; min-height:108px; padding:12px 16px; border:1px solid #806039; color:#e8c989; text-align:left; cursor:pointer; background:linear-gradient(112deg,#3e2917,#1c130c 70%); }
.atlas-quick-row:hover { border-color:#d3a357; background:linear-gradient(112deg,#56391e,#2b1c0f 70%); }
.atlas-quick-row:focus-visible { outline:2px solid #efd18b; outline-offset:3px; }
.atlas-quick-number { color:#b79153; font:18px Georgia,serif; }
.atlas-quick-row > img { width:70px; height:77px; object-fit:cover; border:1px solid #8c6939; grid-row:1/3; grid-column:2; }
.atlas-quick-copy { min-width:0; }
.atlas-quick-copy small { display:block; color:#b7a17b; font-size:11px; }
.atlas-quick-copy strong { display:block; margin-top:4px; color:#f1d598; font:22px "STKaiti","KaiTi",serif; }
.atlas-quick-row > .difficulty { grid-column:3; }
.atlas-quick-open { grid-column:4; grid-row:1/3; font-size:12px; color:#bea274; white-space:nowrap; }
.atlas-quick-open i { margin-left:8px; color:#e3be74; font:22px Georgia,serif; }
.atlas-quick-reservation { display:block; margin-top:4px; color:#c9a86a; font:11px Georgia,"FangSong",serif; letter-spacing:.08em; font-style:normal; }
.character-list-grid.is-compact-roster { grid-template-columns:1fr; gap:10px; }
.character-list-card.is-compact-roster { grid-template-columns:76px minmax(0,1fr); min-height:0; clip-path:none; }
.is-compact-roster .character-list-portrait { padding:10px 0 10px 10px; border-right:0; align-self:start; }
.is-compact-roster .character-list-portrait > .character-avatar-sprite { height:82px; border:1px solid #876239; }
.is-compact-roster .character-list-portrait > span,.is-compact-roster .character-list-portrait::after { display:none; }
.is-compact-roster .character-list-body { display:grid; grid-template-columns:minmax(160px,.85fr) minmax(200px,1fr) minmax(260px,1.35fr); align-items:center; gap:9px 18px; padding:14px 18px; }
.is-compact-roster .character-list-body > header { grid-column:1; padding:0; border:0; align-items:center; gap:12px; }
.is-compact-roster .character-list-body header small { display:none; }
.is-compact-roster .character-list-body h2 { font-size:23px; gap:6px; }
.is-compact-roster .character-list-body .character-qualification-badge { font-size:9px; }
.is-compact-roster .character-card-mandate { grid-column:1; grid-row:2; margin:0; flex-wrap:wrap; gap:7px; }
.is-compact-roster .character-card-mandate > small { display:none; }
.is-compact-roster .character-growth-strip { grid-column:1; grid-row:3; margin:0; }
.is-compact-roster .character-card-stats { grid-column:2; grid-row:1/3; margin:0; }
.is-compact-roster .character-card-equipment { grid-column:3; grid-row:1/3; margin:0; gap:5px; }
.is-compact-roster .character-card-equipment .equipment-mini { min-height:29px; }
.is-compact-roster .character-card-equipment .equipment-mini img { width:23px; height:23px; }
.is-compact-roster .character-travel-actions { grid-column:2; grid-row:3; margin:0; grid-template-columns:1fr 1fr; padding:0; border:0; background:none; }
.is-compact-roster .character-travel-actions > span { display:none; }
.is-compact-roster .character-list-body > footer { grid-column:3; grid-row:3; margin:0; }
.is-compact-roster .character-list-body > footer button { min-width:0; min-height:34px; height:auto; padding:7px 10px; font-size:12px; }
.is-compact-roster .character-card-primary-actions { gap:5px; }
.is-compact-roster .character-card-account-actions { gap:5px; padding-top:5px; }
.is-compact-roster .character-list-body > footer .role-text-danger { font-size:11px; }
/* 找物、护物与换装对照。 */
.inventory-search-tools { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:14px 0; padding:13px; border:1px solid #785b33; background:#1e140c; }
.inventory-search-field { flex:1 1 250px; min-width:0; display:flex; align-items:center; gap:8px; color:#c7b18b; font-size:12px; }
.inventory-search-field input { flex:1; width:100%; min-width:0; min-height:39px; border:1px solid #765934; padding:8px 10px; color:#f3dfb4; background:#110c08; }
.inventory-search-field input:focus-visible { outline:2px solid #c89c57; outline-offset:1px; }
.inventory-search-field button { min-height:36px; padding:6px 10px; border:1px solid #846139; color:#d8bc87; background:#352312; cursor:pointer; }
.inventory-filter-toggle { display:flex; gap:7px; align-items:center; color:#d6bd91; font-size:12px; cursor:pointer; }
.inventory-filter-toggle input,.travel-export-options input,.rollback-legacy-ack input { accent-color:#c5a05b; width:17px; height:17px; flex:0 0 auto; }
.inventory-search-tools > small { color:#b9a786; font-size:11px; }
.item-library-row.is-locked { border-color:#ba9658; box-shadow:inset 3px 0 #c49b57; }
.item-library-actions .is-lock { color:#c7b086; border-color:#8b7048; }
.item-library-actions .is-lock[aria-pressed="true"] { color:#f4d697; border-color:#ceab68; background:linear-gradient(125deg,#62421d,#302012); }
.equipment-compare-backdrop,.rollback-backdrop { position:fixed; z-index:12500; inset:0; display:grid; place-items:center; padding:22px; background:#050302b8; backdrop-filter:blur(8px); }
.equipment-compare-dialog,.rollback-dialog { position:relative; width:min(720px,100%); max-height:calc(100dvh - 44px); overflow:auto; border:1px solid #c39851; padding:25px; color:#decca8; background:linear-gradient(130deg,#52351c,#20150e 42% 75%,#3b2817); box-shadow:inset 0 0 0 4px #140e09,0 25px 65px #0009; }
.equipment-compare-dialog > header,.rollback-dialog > header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding-bottom:14px; border-bottom:1px solid #8c693b; }
.equipment-compare-dialog h3,.rollback-dialog h2,.rollback-dialog h3 { margin:0 0 7px; color:#f1d493; font:25px "STKaiti","KaiTi",serif; }
.equipment-compare-dialog header p,.rollback-dialog header p { margin:0; color:#bea983; font-size:12px; line-height:1.7; }
.equipment-compare-dialog header button,.rollback-dialog header button { flex:0 0 auto; min-width:34px; min-height:34px; border:1px solid #92683b; color:#d9b97d; background:#27190e; cursor:pointer; }
.equipment-compare-items { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:15px 0; }
.equipment-compare-items article { min-width:0; padding:14px; border:1px solid #82633b; background:#1b120b; }
.equipment-compare-items h4 { margin:5px 0 8px; color:#f0d08e; font:20px "STKaiti","KaiTi",serif; }
.equipment-compare-items small { color:#bd9f6f; font-size:11px; }
.equipment-compare-items p { margin:7px 0 0; font-size:12px; line-height:1.8; overflow-wrap:anywhere; }
.equipment-compare-stats,.rollback-items { width:100%; border-collapse:collapse; table-layout:fixed; margin:14px 0; background:#170f09; font-size:12px; }
.equipment-compare-stats th,.equipment-compare-stats td,.rollback-items th,.rollback-items td { padding:10px 8px; border-bottom:1px solid #654b2d; text-align:left; overflow-wrap:anywhere; }
.rollback-items table { width:100%; table-layout:fixed; border-collapse:collapse; }
.rollback-items th:first-child { width:31%; }
.rollback-items th:nth-child(2),.rollback-items th:nth-child(3) { width:17%; }
.rollback-items td small { display:block; margin-top:5px; color:#c5aa7e; line-height:1.6; }
.equipment-compare-stats caption { padding:0 0 9px; color:#c9b48c; text-align:left; font-size:12px; line-height:1.7; }
.equipment-compare-stats th,.rollback-items th { color:#bea678; background:#352313; font-weight:500; }
.equipment-compare-stats .is-gain { color:#c4d79b; }
.equipment-compare-stats .is-loss { color:#f4a18b; }
.equipment-compare-note { padding:11px; color:#b9a683; border-left:2px solid #b28a4c; background:#291b10; font-size:12px; line-height:1.75; }
.equipment-compare-dialog footer,.rollback-dialog footer { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:10px; margin-top:18px; padding-top:14px; border-top:1px solid #72542f; }
.equipment-compare-dialog footer button,.rollback-dialog footer button { min-height:40px; padding:9px 16px; border:1px solid #b18b4d; color:#e8ca8d; background:#382512; cursor:pointer; }
.equipment-compare-dialog footer button:last-child { color:#251707; background:linear-gradient(#e8ce8a,#bd9650); }
.market-pack-effect { grid-column:1/-1; margin-top:6px; border-top:1px solid #785932; padding-top:7px; color:#cab58f; font-size:12px; }
.market-pack-effect summary { cursor:pointer; color:#e7c88d; padding:4px 0; }
.market-pack-effect p { margin:8px 0; line-height:1.8; white-space:pre-line; overflow-wrap:anywhere; }
.travel-export-options { margin:12px 0; padding:11px 13px; border:1px solid #806139; background:#25180e; }
.travel-export-options label { display:flex; align-items:center; gap:10px; cursor:pointer; color:#e4c88e; font-size:13px; }
.travel-export-options small { display:block; margin-top:4px; color:#bca77f; font-size:11px; line-height:1.6; }
.free-travel-rule-downloads { display:flex; flex-wrap:wrap; gap:8px 12px; margin-top:10px; padding-top:8px; border-top:1px solid #806139; }
.free-travel-rule-downloads small { flex:1 0 100%; }
.free-travel-rule-downloads .ink-back { white-space:normal; font-size:12px; }

/* 撤回预览保留明细，缺口在确认之前可见。 */
.dungeon-rollback-button { min-height:32px; padding:6px 11px; border:1px solid #a6664b; color:#edb09a; background:#41251c; cursor:pointer; font-size:12px; }
.dungeon-rollback-button:hover { border-color:#df9b7b; color:#ffe0c6; }
.rollback-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:15px 0; padding:13px; border:1px solid #87663b; background:#23170e; font-size:13px; line-height:1.8; }
.rollback-summary > * { min-width:0; overflow-wrap:anywhere; }
.rollback-summary b { color:#f0d094; }
.rollback-warning,.rollback-blockers { margin:12px 0; padding:12px 14px; color:#f0bea6; background:#64302355; border:1px solid #a6664b; font-size:12px; line-height:1.8; }
.rollback-warning p,.rollback-blockers p { margin:4px 0; }
.rollback-blockers ul { margin:5px 0; padding-left:20px; }
.rollback-legacy-ack { display:flex; align-items:flex-start; gap:9px; padding:12px; border:1px solid #ae8a50; color:#e2c899; font-size:12px; line-height:1.8; cursor:pointer; }
.rollback-dialog footer .is-danger,.rollback-dialog footer .role-danger-button { color:#ffe0ca; background:#7a3529; border-color:#d48b6a; }
.rollback-dialog > header { display:block; }
.rollback-dialog > header > small { display:block; margin-bottom:8px; color:#bfa57b; font-size:10px; letter-spacing:.13em; }
.rollback-dialog > p { font-size:13px; line-height:1.8; }
.rollback-dialog footer > p { flex-basis:100%; margin:0 0 3px; color:#bba783; font-size:12px; line-height:1.8; }
.rollback-dialog footer .role-gold-button { color:#ffe0ca; background:#7a3529; border-color:#d48b6a; }
.rollback-dialog footer button:disabled { opacity:.45; cursor:not-allowed; }
.rollback-receipts { margin-top:20px; padding:14px; border:1px solid #695033; background:#1b130d; }
.rollback-receipts h3 { margin:0 0 10px; color:#ccb080; font:18px "STKaiti",serif; }
.rollback-receipts article { padding:10px 0; border-top:1px solid #554029; color:#c2ad88; font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.rollback-receipts time,.rollback-receipts small { color:#a79577; font-size:11px; }
.ranking-page > details.rollback-receipts { position:relative; z-index:1; width:calc(100% - 36px); max-width:1500px; margin:20px auto; box-sizing:border-box; }
details.rollback-receipts > summary { color:#dcc18b; cursor:pointer; padding:8px 0; }
details.rollback-receipts > button { margin:10px 8px 0 0; max-width:100%; white-space:normal; }

/* 分屏时按内容重排；横向滚动只留在副本长卷内部。 */
input,select,textarea { min-width:0; }
.character-list-body,.atlas-main,.detail-main,.dungeon-narrative,.brief-module,.role-module,.character-item-library,.ranking-main { min-width:0; }
.character-list-toolbar { grid-template-columns:auto minmax(0,1fr); }
.character-toolbar-actions { grid-column:1/-1; flex-wrap:wrap; justify-content:flex-end; }
.atlas-frame { position:relative; min-width:0; }
@media (max-width:1100px) {
  .dungeon-header,.character-system-header,.ranking-header { grid-template-columns:auto minmax(0,1fr); gap:14px; padding:18px 22px; }
  .dungeon-header .player-token,.character-header-token,.ranking-era { grid-column:1/-1; justify-self:end; min-width:0; transform:none; }
  .character-system-heading { min-width:0; }
  .dungeon-header .player-token { width:min(350px,100%); }
  .detail-hero { grid-template-columns:minmax(0,.9fr) minmax(0,1fr); }
  .spinner-module { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .spinner-stage { grid-column:1; grid-row:2/5; }
  .spinner-module .module-title { grid-column:1/-1; }
  .spin-result { grid-column:2; grid-row:2; }
  .spin-action-row { grid-column:2; grid-row:3; }
  .spinner-notice { grid-column:2; grid-row:4; }
  .is-compact-roster .character-list-body { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .is-compact-roster .character-card-equipment { grid-column:2; grid-row:2/4; }
  .is-compact-roster .character-card-stats { grid-column:2; grid-row:1; }
  .is-compact-roster .character-travel-actions { grid-column:1; grid-row:4; }
  .is-compact-roster .character-list-body > footer { grid-column:2; grid-row:4; }
  .ranking-summary-strip { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
  .ranking-summary-strip.is-travel { grid-template-columns:repeat(2,minmax(0,1fr)) minmax(180px,.8fr); }
  .ranking-summary-strip.is-level { grid-template-columns:repeat(2,minmax(0,1fr)) minmax(220px,1fr); }
  .ranking-summary-strip.is-travel > button { grid-column:auto; }
  .ranking-summary-strip > p { grid-column:1/3; }
}
@media (max-width:820px) {
  .game-shell { height:auto; min-height:100dvh; padding-bottom:15px; }
  .game-header { position:relative; inset:auto; gap:18px; align-items:center; padding:20px 18px 0; }
  .logo-lockup { width:290px; height:88px; flex:1 1 220px; min-width:0; }
  .logo-copy h1 { font-size:31px; }
  .game-header .player-token { width:300px; grid-template-columns:42px minmax(0,1fr) minmax(0,1fr); padding:12px; min-height:83px; transform:none; }
  .game-header .player-name { font-size:19px; }
  .game-header .player-stats { padding-left:10px; }
  .destiny-stage { position:relative; inset:auto; width:100%; height:370px; margin:0 auto; transform:none; }
  .destiny-core { width:260px; }
  .orbit-outer { width:310px; }
  .orbit-inner { width:230px; }
  .home-utility-dock { position:relative; inset:auto; width:auto; margin:0 18px 17px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; transform:none; }
  .utility-dock-heading { grid-column:1/-1; }
  .home-utility-dock .utility-entrance { margin:0; min-width:0; }
  .entrance-grid { position:relative; inset:auto; height:auto; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0 18px 17px; gap:10px; }
  .entrance { min-height:170px; }
  .history-ticker { position:relative; inset:auto; margin:0 18px; grid-template-columns:auto minmax(0,1fr); }
  .history-date { display:none; }
  .atlas-main { padding:12px 18px 22px; min-height:0; }
  .atlas-prologue { grid-template-columns:44px minmax(0,1fr); padding:9px 0 14px; gap:12px; }
  .atlas-prologue-actions { grid-column:1/-1; justify-content:space-between; }
  .atlas-quick-list { grid-template-columns:1fr; }
  .atlas-frame { min-height:450px; }
  .atlas-footnote { flex-wrap:wrap; gap:10px; line-height:1.8; }
  .detail-topbar { position:relative; padding:14px 18px; grid-template-columns:auto minmax(0,1fr); gap:12px; }
  .detail-breadcrumb { text-align:right; letter-spacing:0; }
  .detail-player { grid-column:1/-1; }
  .detail-hero { grid-template-columns:1fr; }
  .dungeon-cover-panel { position:relative; top:auto; min-height:460px; }
  .detail-main { width:calc(100% - 36px); }
  .spinner-stage { width:min(300px,100%); }
  .roster-header { flex-wrap:wrap; gap:15px; }
  .character-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .character-home-main,.character-create-main,.character-detail-main,.character-edit-main,.allocation-main { width:calc(100% - 36px); margin-top:20px; }
  .character-prologue { grid-template-columns:44px minmax(0,1fr); gap:12px; padding:15px; }
  .character-prologue > b { grid-column:2; }
  .character-prologue h2 { font-size:22px; }
  .character-prologue p { color:#bfaa83; font-size:12px; }
  .character-list-toolbar { grid-template-columns:1fr; gap:12px; }
  .character-toolbar-actions { justify-content:flex-start; gap:8px; }
  .character-account-search { grid-template-columns:30px 85px minmax(0,1fr) auto auto auto; }
  .character-account-search input { width:100%; }
  .character-list-card { grid-template-columns:150px minmax(0,1fr); }
  .character-list-body { padding:19px 16px; }
  .character-list-body > footer { width:100%; }
  .character-profile-hero { grid-template-columns:150px minmax(0,1fr); }
  .profile-title-panel { grid-column:1/-1; }
  .profile-identity-panel { padding:22px; }
  .profile-title-rail { grid-column:1/-1; }
  .equipment-slot-grid,.edit-mini-stats,.affinity-grid { min-width:0; }
  .character-edit-subnav { display:flex; flex-wrap:wrap; }
  .character-edit-subnav button { flex:1 1 145px; min-width:0; }
  .ranking-header,.character-system-header,.dungeon-header { padding:16px 18px; }
  .ranking-heading h1 { font-size:32px; }
  .ranking-era { display:none; }
  .ranking-main { width:calc(100% - 36px); }
  .ranking-board-shell { padding:18px 14px; }
  .ranking-board-heading { flex-wrap:wrap; gap:12px; }
  .ranking-primary-tabs,.ranking-season-tabs,.ranking-dungeon-tabs { flex-wrap:wrap; }
  .ranking-travel-tools { grid-template-columns:1fr; }
  .ranking-season-command { grid-template-columns:minmax(0,1fr) 128px; }
  .ranking-podium { gap:8px; }
  .ranking-podium-card { padding:18px 8px; }
  .ranking-table > header,.ranking-table-row { grid-template-columns:35px minmax(90px,1fr) minmax(95px,1fr) minmax(90px,1fr); gap:8px; padding:10px; }
  .ranking-table-row > i { grid-column:2/-1; justify-self:start; }
  .ranking-table > header > :last-child { display:none; }
  .ranking-table-row > span:nth-child(4) { white-space:normal; padding-right:0; }
  .ranking-player-dialog > header { grid-template-columns:74px minmax(0,1fr); padding-right:30px; }
  .ranking-profile-score { grid-column:1/-1; padding-left:0; border-left:0; text-align:left; }
  .ranking-history-row { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:10px 0; }
  .score-ledger-header,.score-ledger-row { grid-template-columns:minmax(200px,1.5fr) minmax(90px,.55fr) minmax(90px,.55fr) minmax(130px,.75fr); column-gap:12px; }
  .ranking-profile-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ranking-auto-total { grid-template-columns:44px minmax(0,1fr); }
  .ranking-player-picker { grid-template-columns:1fr; }
  .ranking-player-picker > span { min-height:38px; padding-left:12px; border-right:0; border-bottom:1px solid rgba(199,150,76,.35); }
  .ranking-player-picker > div { grid-template-columns:1fr; }
  .ranking-auto-total.is-readonly { grid-template-columns:44px minmax(0,1fr); }
  .ranking-total-reward-display { grid-column:1/-1; padding:10px 0 0; border-top:1px solid rgba(205,155,77,.25); border-left:0; }
  .ranking-total-settlement { grid-column:1/-1; border-left:0; padding:10px 0 0; }
  .ranking-modal-backdrop,.role-confirm-backdrop,.travel-export-backdrop,.loot-dialog-backdrop,.allocation-success-backdrop { padding:12px; }
  .ranking-player-dialog,.ranking-settlement-dialog,.ranking-player-editor,.role-confirm-dialog,.travel-export-dialog,.loot-rules-dialog,.loot-grant-dialog,.allocation-success-dialog { width:min(100%,720px); max-width:100%; max-height:calc(100dvh - 24px); overflow:auto; padding:23px 18px; }
  .ranking-player-dialog.is-dungeon-dossier { width:100%; max-height:calc(100dvh - 24px); }
  .role-toast,.ranking-toast,.game-notice { min-width:0; width:max-content; max-width:calc(100vw - 24px); font-size:12px; }
}
@media (max-width:540px) {
  .game-header { flex-direction:column; gap:0; }
  .logo-lockup { width:290px; flex:none; }
  .game-header .player-token { width:100%; }
  .destiny-stage { height:335px; }
  .home-utility-dock { grid-template-columns:1fr; }
  .entrance-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .entrance-grid .entrance:last-child { grid-column:1/-1; min-height:135px; }
  .history-title { padding-right:9px; font-size:11px; }
  .history-ink { padding-left:9px; font-size:11px; }
  .dungeon-header,.character-system-header,.ranking-header { grid-template-columns:1fr; gap:14px; }
  .character-system-heading,.dungeon-heading,.ranking-heading { text-align:left; }
  .character-system-heading h1 { font-size:28px; letter-spacing:.14em; }
  .character-header-token { width:100%; justify-self:stretch; }
  .dungeon-header .player-token { justify-self:start; }
  .ranking-travel-season-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ranking-season-command { grid-template-columns:1fr; }
  .ranking-open-season { min-height:46px; flex-direction:row; }
  .character-system-heading p,.dungeon-heading p,.ranking-heading p { font-size:12px; letter-spacing:.08em; }
  .archive-view-toolbar { align-items:flex-start; flex-direction:column; gap:9px; }
  .archive-view-switch { width:100%; }
  .archive-view-switch button { flex:1; }
  .atlas-prologue-actions { flex-wrap:wrap; gap:13px; }
  .atlas-quick-row { grid-template-columns:24px 54px minmax(0,1fr) auto; padding:11px; gap:10px; }
  .atlas-quick-row > img { width:54px; height:68px; }
  .atlas-quick-copy strong { font-size:21px; }
  .atlas-quick-reservation { font-size:10px; }
  .atlas-quick-open { font-size:11px; }
  .atlas-quick-open i { margin-left:2px; }
  .atlas-footnote > b { display:none; }
  .detail-topbar { grid-template-columns:1fr; }
  .detail-breadcrumb { text-align:left; }
  .detail-player { justify-self:start; }
  .dungeon-cover-panel { min-height:400px; }
  .spinner-module { display:block; padding:16px; }
  .spinner-stage { width:min(280px,100%); margin:20px auto; }
  .spin-action-row { margin-top:14px; }
  .spinner-notice { margin-top:12px; }
  .character-grid { grid-template-columns:1fr; }
  .hulao-loot-module { padding:17px 12px; }
  .loot-account-tools { grid-template-columns:1fr; }
  .loot-account-tools > label { grid-template-columns:85px minmax(0,1fr); }
  .loot-account-tools .level-sort-toggle { min-width:0!important; width:100%; }
  .loot-control-panel { padding:10px; }
  .loot-control-panel fieldset { padding:7px; }
  .loot-multiplier-picker > div { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .loot-multiplier-picker button,.loot-multiplier-picker button:nth-last-child(3) { grid-column:auto; }
  .loot-control-panel fieldset span small,.loot-immortal-showcase > p,.loot-multiplier-picker > p { font-size:11px; }
  .character-list-card { grid-template-columns:1fr; clip-path:none; }
  .character-list-portrait { height:190px; border-right:0; border-bottom:1px solid #785634; }
  .character-list-portrait > .character-avatar-sprite { background-size:cover; }
  .character-list-body { padding:17px 13px; }
  .character-list-body h2 { font-size:25px; }
  .character-list-body > footer button { min-width:0; font-size:12px; padding:9px 10px; }
  .character-card-primary-actions { grid-template-columns:1fr; }
  .character-card-account-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .character-card-account-actions > button:only-child { grid-column:1/-1; }
  .character-card-mandate { flex-wrap:wrap; gap:8px; }
  .character-card-equipment { gap:5px; }
  .character-account-search { grid-template-columns:27px minmax(0,1fr) auto auto auto; }
  .character-search-copy { display:none; }
  .character-toolbar-actions > button { flex:1 1 145px; min-width:0; }
  .character-list-card.is-compact-roster { grid-template-columns:54px minmax(0,1fr); }
  .is-compact-roster .character-list-portrait { height:auto; padding:12px 0 0 8px; border:0; }
  .is-compact-roster .character-list-portrait > .character-avatar-sprite { height:56px; }
  .is-compact-roster .character-list-body { display:flex; flex-direction:column; align-items:stretch; gap:10px; padding:13px 11px; }
  .is-compact-roster .character-list-body h2 { font-size:21px; }
  .is-compact-roster .character-growth-strip { display:none; }
  .is-compact-roster .character-travel-actions { display:grid; }
  .is-compact-roster .character-list-body > footer { gap:5px; }
  .is-compact-roster .character-list-body > footer button { padding:8px 6px; font-size:11px; }
  .character-profile-hero { grid-template-columns:1fr; }
  .profile-portrait-panel { max-height:320px; }
  .profile-identity-panel { padding:18px; }
  .role-module { padding:17px 13px; }
  .role-module > header { flex-wrap:wrap; gap:10px; }
  .role-module h3 { font-size:22px; }
  .equipment-slot-grid,.detail-equipment-grid,.affinity-grid { grid-template-columns:1fr; }
  .equipment-slot-grid > div { min-width:0; }
  .equipment-slot-grid strong { font-size:16px; }
  .equipment-inventory > div,.usable-item-list > div { min-width:0; }
  .edit-identity-fields,.character-create-fields,.character-form-grid { grid-template-columns:1fr; }
  .avatar-preset-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .avatar-preset-grid button { min-height:200px; }
  .avatar-preset-grid .character-avatar-sprite { height:155px; }
  .item-library-rarity-tabs { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .character-item-library > h4 { flex-wrap:wrap; }
  .inventory-search-field { flex-basis:100%; }
  .inventory-search-tools { gap:11px; padding:10px; }
  .inventory-filter-toggle { font-size:12px; }
  .item-library-actions,.item-library-actions.is-three-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .item-library-row { grid-template-columns:44px minmax(0,1fr) auto; gap:8px; padding:10px; }
  .item-library-image { width:44px; height:50px; }
  .item-library-row h5 { font-size:17px; }
  .item-library-description { font-size:12px; line-height:1.7; }
  .inventory-rarity-header { flex-wrap:wrap; gap:9px; }
  .ranking-summary-strip { grid-template-columns:repeat(2,minmax(0,1fr)); padding:15px; gap:15px; }
  .ranking-summary-strip > p,.ranking-input-status { grid-column:1/-1; }
  .ranking-summary-strip.is-travel { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ranking-summary-strip.is-level { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ranking-summary-strip.is-level .ranking-input-status { grid-column:1/-1; }
  .ranking-summary-strip.is-travel > button { grid-column:1/-1; }
  .ranking-podium { grid-template-columns:1fr; }
  .ranking-podium-card,.ranking-podium-card.rank-1 { min-height:0; height:auto; padding:23px 18px; transform:none; }
  .ranking-primary-tabs { display:grid; grid-template-columns:1fr; }
  .ranking-primary-tabs { width:100%; }
  .ranking-level-tools { align-items:stretch; flex-direction:column; }
  .ranking-table > header { display:none; }
  .ranking-table-row { grid-template-columns:28px minmax(0,1fr) minmax(0,1fr); gap:10px; padding:12px 9px; }
  .ranking-table-row > span:nth-child(4) { grid-column:2/-1; }
  .ranking-table-row > span:nth-child(2) { grid-template-columns:1fr; grid-template-rows:auto; gap:3px; }
  .ranking-table-row > span:nth-child(2) > i { display:none; }
  .ranking-table-row span > small { white-space:normal; }
  .ranking-profile-metrics > div { padding:12px 10px; }
  .ranking-record-history { padding:13px; }
  .ranking-score-ledger { padding:0; }
  .ranking-season-reward-rules > div:not(.ranking-season-reward-summary) { grid-template-columns:72px minmax(0,1fr); gap:8px; }
  .ranking-season-reward-rules > div > em { grid-column:2; text-align:left; }
  .ranking-season-reward-summary { grid-template-columns:72px minmax(0,1fr); gap:8px; }
  .ranking-season-reward-summary > small { grid-column:2; }
  .score-ledger-header { display:none; }
  .score-ledger-row { grid-template-columns:minmax(0,1fr) auto; gap:12px; min-height:0; padding:14px; }
  .score-ledger-info { grid-column:1; grid-row:1/3; }
  .score-ledger-row > b { grid-column:2; grid-row:1; font-size:18px; text-align:right; }
  .score-ledger-after { grid-column:2; grid-row:2; justify-content:flex-end; }
  .score-ledger-after small { display:inline; }
  .score-ledger-after em { font-size:14px; }
  .score-ledger-row time { grid-column:1/-1; grid-row:3; padding-top:8px; border-top:1px solid rgba(182,134,65,.14); text-align:left; }
  .dungeon-ranking-ledger > header { align-items:flex-start; flex-direction:column; }
  .dungeon-ranking-ledger-grid { grid-template-columns:1fr; }
  .dungeon-ranking-ledger-grid > article { border-right:0; border-bottom:1px solid rgba(190,140,68,.22); }
  .dungeon-ranking-ledger-grid > article:last-child { border-bottom:0; }
  .settlement-parser { grid-template-columns:1fr; padding:10px; }
  .settlement-parser > div { grid-template-columns:1fr 1fr; grid-template-rows:none; padding-top:0; }
  .settlement-parser button { min-height:52px; }
  .settlement-form-grid { grid-template-columns:1fr; }
  .dungeon-goal-register { grid-template-columns:1fr; }
  .settlement-preview-label { align-items:flex-start; flex-direction:column; gap:4px; }
  .ranking-dialog-title h2 { font-size:22px; letter-spacing:.08em; }
  .role-confirm-dialog footer,.ranking-settlement-dialog footer { flex-wrap:wrap; }
  .role-confirm-dialog footer button,.ranking-settlement-dialog footer button { min-width:0; flex:1 1 120px; }
  .equipment-compare-backdrop,.rollback-backdrop { padding:10px; }
  .equipment-compare-dialog,.rollback-dialog { max-height:calc(100dvh - 20px); padding:20px 14px; }
  .equipment-compare-items { grid-template-columns:1fr; }
  .equipment-compare-stats th,.equipment-compare-stats td,.rollback-items th,.rollback-items td { padding:9px 5px; font-size:11px; }
  .equipment-compare-dialog footer button,.rollback-dialog footer button { flex:1 1 130px; min-width:0; }
  .rollback-summary { grid-template-columns:1fr; }
  .streamer-import-header .ink-back { position:relative; inset:auto; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation-delay:0ms!important; }
}
/* Ten-pull extra destiny reward: separate from the sealed ten-card grid. */
.treasure-bonus-backdrop { position:fixed; inset:0; z-index:2000; display:grid; place-items:center; padding:20px; background:rgba(4,3,1,.84); backdrop-filter:blur(7px); }
.treasure-bonus-dialog { position:relative; isolation:isolate; overflow:hidden; width:min(480px,100%); max-height:90dvh; overflow-y:auto; padding:36px 24px 28px; text-align:center; border:1px solid #b9974f; background:radial-gradient(ellipse at 50% 36%,#513b12,#171108 64%); box-shadow:0 0 80px #bc842a33,inset 0 0 0 7px #0b0905; color:#efdaa0; animation:destiny-bonus-arrive .65s ease-out; }
.treasure-bonus-dialog small { position:relative; display:block; letter-spacing:.22em; font-size:10px; color:#cdb36e; }
.treasure-bonus-dialog img { position:relative; display:block; width:140px; height:140px; margin:24px auto; object-fit:cover; border:1px solid #d9b857; border-radius:50%; box-shadow:0 0 45px #e9b84277; animation:destiny-bonus-glow 1.8s ease-in-out infinite alternate; }
.treasure-bonus-dialog h3 { position:relative; font-size:clamp(22px,5vw,30px); margin:14px 0; color:#f5df9a; }
.treasure-bonus-dialog strong { position:relative; font-size:21px; font-weight:400; }
.treasure-bonus-dialog strong b { font-size:36px; margin-left:8px; }
.treasure-bonus-dialog p { position:relative; font-size:13px; line-height:1.9; color:#c1ae86; margin:18px 0 24px; }
.treasure-bonus-dialog button { position:relative; padding:12px 22px; border:1px solid #eed798; background:linear-gradient(#e5cf8d,#ad8845); color:#241909; cursor:pointer; }
.treasure-bonus-dialog button:focus-visible { outline:2px solid #fff0ba; outline-offset:5px; }
.treasure-bonus-rays { position:absolute; z-index:-1; inset:0; overflow:hidden; pointer-events:none; }
.treasure-bonus-rays::before { content:""; position:absolute; width:650px; height:650px; left:50%; top:36%; transform:translate(-50%,-50%); background:repeating-conic-gradient(from 0deg,#e6ba5233 0deg,transparent 12deg,transparent 30deg); mask-image:radial-gradient(black,transparent 65%); animation:destiny-bonus-rays 25s linear infinite; }
.treasure-bonus-summary { color:#ead087; font-size:14px; line-height:1.8; padding:10px 14px; border:1px solid #7f642e; background:#8d66151a; }
.treasure-draw-actions > .treasure-bonus-summary { flex-basis:100%; grid-column:1 / -1; }
.treasure-bonus-rule { color:#c2af81; font-size:13px; line-height:1.8; margin:16px 0 0; }
@keyframes destiny-bonus-arrive { from { opacity:0; transform:translateY(18px) scale(.92); } to { opacity:1; transform:none; } }
@keyframes destiny-bonus-glow { to { box-shadow:0 0 70px #e9b842aa; } }
@keyframes destiny-bonus-rays { to { transform:translate(-50%,-50%) rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .treasure-bonus-dialog,.treasure-bonus-dialog img,.treasure-bonus-rays::before { animation:none; } }

/* Shared account-recipient search for dungeon rewards, relic draws and manual grants. */
.recipient-player-search { position:relative; display:grid; grid-template-columns:34px minmax(90px,1fr) auto auto auto; align-items:center; min-width:0; height:41px; overflow:hidden; border:1px solid rgba(184,135,63,.42); color:#a88f64; background:linear-gradient(100deg,rgba(64,37,14,.82),rgba(8,6,4,.96) 62%,rgba(45,27,12,.83)); box-shadow:inset 0 0 16px rgba(0,0,0,.7); clip-path:polygon(6px 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%,0 6px); transition:border-color 180ms ease,box-shadow 180ms ease; }
.recipient-player-search:focus-within { border-color:#c99849; box-shadow:inset 0 0 16px rgba(0,0,0,.7),0 0 15px rgba(211,148,51,.16); }
.recipient-player-search > span { display:grid; width:25px; height:25px; margin-left:5px; padding:0!important; place-items:center; border:1px solid rgba(147,54,42,.68); color:#c3644f!important; background:rgba(64,20,13,.38); font-family:"STKaiti",serif!important; font-size:13px!important; transform:rotate(-4deg); }
.recipient-player-search input { width:100%!important; min-width:0; height:39px!important; padding:0 9px!important; border:0!important; outline:0; color:#ead19a!important; caret-color:#d7a14e; background:transparent!important; font-family:"FangSong",serif!important; font-size:11px!important; letter-spacing:.05em; }
.recipient-player-search input::placeholder { color:#776a55; opacity:1; }
.recipient-player-search input::-webkit-search-cancel-button { display:none; }
.recipient-player-search > button { display:grid; width:25px!important; min-width:0!important; height:25px; margin-right:5px; padding:0!important; place-items:center; border:1px solid rgba(143,55,43,.52)!important; color:#bd7564!important; cursor:pointer; background:rgba(92,32,22,.2)!important; font-family:Georgia,serif!important; font-size:15px!important; line-height:1; }
.recipient-player-search > button:hover { border-color:#ba6753!important; color:#f0a28c!important; }
.recipient-player-search > .recipient-search-submit { width:auto!important; min-width:45px!important; padding:0 7px!important; border-color:rgba(177,130,61,.58)!important; color:#d7b36b!important; font-family:"FangSong",serif!important; font-size:10px!important; }
.recipient-player-search > em,.recipient-player-search > small { padding-right:8px; color:#8a795e; font-family:Georgia,"FangSong",serif; font-size:8px; font-style:normal; letter-spacing:0!important; white-space:nowrap; }
.recipient-player-search.has-query > small { color:#d4ae69; }
.loot-account-tools .recipient-player-search,.allocation-recipient-tools .recipient-player-search { grid-column:1 / -1; }
.treasure-draw-page .treasure-recipient-tools { display:grid; grid-template-columns:minmax(155px,190px) minmax(245px,1fr) 112px; align-items:end; width:min(620px,100%); gap:8px; }
.treasure-draw-page .treasure-recipient-tools .recipient-player-search { height:51px; }
.treasure-draw-page .treasure-recipient-tools .recipient-player-search input { height:49px!important; }
.allocation-recipient-tools { grid-template-columns:minmax(0,1fr) auto; }

@media (max-width:820px) {
  .treasure-draw-page .treasure-recipient-tools { grid-template-columns:minmax(0,1fr) 112px; width:100%; }
  .treasure-draw-page .treasure-recipient-tools .recipient-player-search { grid-column:1 / -1; }
  .treasure-draw-page .treasure-recipient-tools .treasure-draw-recipient { grid-column:1; }
  .treasure-draw-page .treasure-recipient-tools .treasure-pity-sort-stack { grid-column:2; display:grid; grid-template-columns:1fr; width:112px; }
}

@media (max-width:620px) {
  .allocation-command-bar { grid-template-columns:44px minmax(0,1fr); gap:11px; }
  .allocation-recipient-tools { grid-column:1 / -1; }
  .treasure-draw-page .treasure-recipient-tools { grid-template-columns:1fr; }
  .treasure-draw-page .treasure-recipient-tools .recipient-player-search,
  .treasure-draw-page .treasure-recipient-tools .treasure-draw-recipient,
  .treasure-draw-page .treasure-recipient-tools .treasure-pity-sort-stack { grid-column:1; width:100%; }
  .treasure-draw-page .treasure-recipient-tools .treasure-pity-sort-stack { grid-template-columns:1fr 1fr; }
}

/* Confirmed-grant immortal pity ledger. */
.treasure-pity-sort-stack { display:grid; width:112px; flex:0 0 112px; gap:6px; }
.treasure-pity-counter { position:relative; isolation:isolate; display:grid; height:51px; padding:5px 23px 5px 8px; align-content:center; overflow:hidden; border:1px solid rgba(187,135,56,.56); color:#e8c778; background:linear-gradient(115deg,rgba(71,39,13,.9),rgba(8,6,4,.98) 63%); box-shadow:inset 0 0 18px #000,0 0 16px rgba(205,142,40,.1); clip-path:polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px); }
.treasure-pity-counter::before { content:""; position:absolute; z-index:-1; width:65px; height:65px; top:50%; right:-30px; border:1px solid rgba(222,173,78,.22); border-radius:50%; box-shadow:0 0 0 7px rgba(196,142,51,.05),0 0 0 14px rgba(196,142,51,.035); transform:translateY(-50%); }
.treasure-pity-counter::after { content:""; position:absolute; right:5px; bottom:5px; width:13px; height:13px; border-right:1px solid #9a392c; border-bottom:1px solid #9a392c; }
.treasure-pity-counter small { display:block; color:#877354!important; font-size:7px!important; line-height:1; letter-spacing:.13em!important; white-space:nowrap; }
.treasure-pity-counter strong { display:inline; margin-top:3px; color:#f0cf7c; font-family:Georgia,"Times New Roman",serif; font-size:25px; font-weight:400; line-height:.8; letter-spacing:-.04em; text-shadow:0 0 14px rgba(229,174,66,.35); animation:pityCounterStrike 340ms ease-out both; }
.treasure-pity-counter em { position:absolute; right:22px; bottom:6px; color:#725f42; font-family:Georgia,serif; font-size:8px; font-style:normal; }
.treasure-pity-counter.is-near { border-color:#b65b3e; box-shadow:inset 0 0 22px rgba(119,31,17,.24),0 0 18px rgba(191,69,38,.18); }
.treasure-pity-sort-stack .level-sort-toggle { width:100%; min-width:0!important; min-height:36px; }

/* Admin draw settlement: keep recipient selection readable and surface the selected account's pity ledger. */
.treasure-draw-page .treasure-award-desk { box-sizing:border-box; display:grid; grid-template-columns:minmax(180px,.68fr) 142px minmax(560px,2.2fr) minmax(180px,.7fr); width:100%; padding:14px; align-items:stretch; gap:10px; border:1px solid rgba(185,138,65,.36); background:linear-gradient(105deg,rgba(62,37,15,.72),rgba(8,6,4,.94) 28% 72%,rgba(51,30,13,.7)); box-shadow:inset 0 0 28px rgba(0,0,0,.68); }
.treasure-award-heading { display:grid; grid-template-columns:40px minmax(0,1fr); align-items:center; gap:10px; min-width:0; padding:7px 10px; border-right:1px solid rgba(185,138,65,.24); }
.treasure-award-heading > span { display:grid; width:36px; height:42px; place-items:center; border:1px solid #8f3d2d; color:#d06f54; background:rgba(69,23,13,.54); font-family:"STKaiti",serif; font-size:20px; transform:rotate(-3deg); }
.treasure-award-heading small,.treasure-award-heading b,.treasure-award-heading p { display:block; min-width:0; }
.treasure-award-heading small { color:#74634b; font:7px/1.2 Georgia,serif; letter-spacing:.18em; }
.treasure-award-heading b { margin-top:3px; color:#e4c47f; font:500 17px/1.2 "STKaiti",serif; letter-spacing:.08em; }
.treasure-award-heading p { margin:4px 0 0; color:#8e7d60; font:9px/1.45 "FangSong",serif; letter-spacing:0; }
.treasure-draw-actions .treasure-reveal-button { min-width:0; padding:9px 13px; }
.treasure-draw-page .treasure-recipient-tools { display:grid!important; grid-template-columns:minmax(170px,.78fr) minmax(230px,1.12fr) minmax(210px,.95fr); width:auto; align-items:stretch; gap:8px; }
.treasure-draw-page .treasure-recipient-tools .recipient-player-search { width:100%; height:58px; }
.treasure-draw-page .treasure-recipient-tools .recipient-player-search input { height:56px!important; }
.treasure-draw-page .treasure-recipient-tools .treasure-draw-recipient { box-sizing:border-box; min-width:0; padding:7px 10px; gap:8px; }
.treasure-draw-page .treasure-recipient-tools .treasure-draw-recipient select { min-width:0; height:34px; padding:0 9px; }
.treasure-recipient-pity { position:relative; isolation:isolate; display:grid; grid-template-columns:38px minmax(0,1fr); min-width:0; min-height:58px; padding:7px 10px; align-items:center; gap:9px; overflow:hidden; border:1px solid rgba(191,143,63,.52); color:#e5c475; background:linear-gradient(112deg,rgba(78,44,15,.9),rgba(9,6,4,.98) 68%); box-shadow:inset 0 0 18px #000; }
.treasure-recipient-pity::after { content:""; position:absolute; z-index:-1; right:-28px; width:82px; height:82px; border:1px solid rgba(221,171,76,.16); border-radius:50%; box-shadow:0 0 0 8px rgba(196,142,51,.04),0 0 0 16px rgba(196,142,51,.025); }
.treasure-recipient-pity > span { display:grid; width:34px; height:38px; place-items:center; border:1px solid #8f3d2d; color:#d87558; background:rgba(76,25,14,.58); font-family:"STKaiti",serif; font-size:18px; transform:rotate(-3deg); }
.treasure-recipient-pity small { display:block; overflow:hidden; color:#897653; font:8px/1.1 "FangSong",serif; letter-spacing:.08em; text-overflow:ellipsis; white-space:nowrap; }
.treasure-recipient-pity strong { display:block; margin-top:2px; color:#f0cf7c; font:400 24px/1 Georgia,serif; letter-spacing:0; text-shadow:0 0 14px rgba(229,174,66,.3); }
.treasure-recipient-pity strong em { margin-left:6px; color:#8c7650; font:normal 9px/1 "FangSong",serif; }
.treasure-recipient-pity p { margin:3px 0 0; color:#9a8663; font:8px/1.2 "FangSong",serif; letter-spacing:0; }
.treasure-recipient-pity.is-near { border-color:#b65b3e; background:linear-gradient(112deg,rgba(91,34,20,.92),rgba(12,7,4,.98) 68%); box-shadow:inset 0 0 20px rgba(119,31,17,.28),0 0 15px rgba(191,69,38,.12); }
.treasure-draw-page .treasure-recipient-tools .archive-pagination { grid-column:1 / -1; min-height:24px; margin:0; gap:10px; font-size:9px; }
.treasure-draw-page .treasure-recipient-tools .archive-pagination button { width:auto; min-width:66px; min-height:24px; padding:3px 9px; }
.treasure-draw-page .treasure-recipient-tools .archive-pagination b { font-size:12px; }
.treasure-draw-page .treasure-award-desk > .treasure-claim-button { min-width:0; height:100%; padding:10px 14px; border-color:#c89a4b; background:radial-gradient(circle at 75% 20%,rgba(240,195,105,.19),transparent 34%),linear-gradient(145deg,#725020,#2d1a0b 55%,#100905); box-shadow:inset 0 0 0 1px rgba(232,195,119,.12),inset 0 0 22px rgba(221,157,55,.13); font:500 16px/1.45 "STKaiti",serif; letter-spacing:.08em; }

@media (max-width:1180px) {
  .treasure-draw-page .treasure-award-desk { grid-template-columns:170px minmax(0,1fr) 190px; }
  .treasure-award-heading { grid-column:1; grid-row:1; border-right:0; }
  .treasure-draw-actions .treasure-reveal-button { grid-column:1; grid-row:2; }
  .treasure-draw-page .treasure-recipient-tools { grid-column:2; grid-row:1 / 3; grid-template-columns:minmax(150px,.75fr) minmax(210px,1.1fr) minmax(190px,.9fr); }
  .treasure-draw-page .treasure-award-desk > .treasure-claim-button { grid-column:3; grid-row:1 / 3; }
}

@media (max-width:820px) {
  .treasure-draw-page .treasure-award-desk { grid-template-columns:1fr 1fr; }
  .treasure-award-heading { grid-column:1 / -1; grid-row:auto; }
  .treasure-draw-page .treasure-recipient-tools { grid-column:1 / -1; grid-row:auto; grid-template-columns:1fr 1fr; }
  .treasure-draw-page .treasure-recipient-tools .recipient-player-search,.treasure-draw-page .treasure-recipient-tools .treasure-recipient-pity { grid-column:auto; }
  .treasure-draw-page .treasure-recipient-tools .treasure-draw-recipient { grid-column:1 / -1; }
  .treasure-draw-actions .treasure-reveal-button { grid-column:1; grid-row:auto; }
  .treasure-draw-page .treasure-award-desk > .treasure-claim-button { grid-column:2; grid-row:auto; }
}

@media (max-width:620px) {
  .treasure-draw-page .treasure-award-desk { grid-template-columns:1fr; padding:10px; }
  .treasure-draw-page .treasure-recipient-tools { grid-template-columns:1fr; }
  .treasure-draw-page .treasure-recipient-tools .recipient-player-search,.treasure-draw-page .treasure-recipient-tools .treasure-draw-recipient,.treasure-draw-page .treasure-recipient-tools .treasure-recipient-pity { grid-column:1; }
  .treasure-draw-actions .treasure-reveal-button,.treasure-draw-page .treasure-award-desk > .treasure-claim-button { grid-column:1; }
}

.treasure-pity-backdrop { position:fixed; z-index:2200; inset:0; display:grid; padding:20px; place-items:center; overflow:hidden; background:radial-gradient(circle at 50% 45%,rgba(117,70,19,.27),rgba(1,1,1,.95) 64%); backdrop-filter:blur(9px); animation:modalVeil 260ms ease both; }
.treasure-pity-backdrop::before,.treasure-pity-backdrop::after { content:""; position:absolute; top:50%; left:50%; width:100vmax; height:2px; pointer-events:none; background:linear-gradient(90deg,transparent,rgba(231,185,89,.58),transparent); transform:translate(-50%,-50%) rotate(18deg); box-shadow:0 0 28px rgba(236,175,65,.34); animation:pityLightCross 1.05s ease-out both; }
.treasure-pity-backdrop::after { transform:translate(-50%,-50%) rotate(-18deg); animation-delay:90ms; }
.treasure-pity-dialog { position:relative; isolation:isolate; width:min(560px,100%); overflow:hidden; padding:48px 30px 32px; border:1px solid #c3984f; color:#ddc48c; text-align:center; background:radial-gradient(circle at 50% 36%,rgba(145,91,27,.43),transparent 33%),linear-gradient(145deg,#2b190b,#070503 56%,#231307); box-shadow:inset 0 0 0 6px #050302,inset 0 0 90px #000,0 0 95px rgba(223,155,53,.24),0 36px 110px #000; clip-path:polygon(5% 0,95% 0,100% 8%,100% 92%,95% 100%,5% 100%,0 92%,0 8%); animation:pityDossierArrive 760ms cubic-bezier(.16,.82,.18,1) both; }
.treasure-pity-dialog::before { content:"五百未见 · 天工补命"; position:absolute; top:18px; left:24px; right:24px; padding-bottom:10px; border-bottom:1px solid rgba(205,156,73,.24); color:#786447; font-family:"FangSong",serif; font-size:8px; letter-spacing:.35em; }
.treasure-pity-celestial { position:absolute; z-index:-1; inset:0; pointer-events:none; }
.treasure-pity-celestial i { position:absolute; top:45%; left:50%; width:360px; height:360px; border:1px solid rgba(230,184,94,.18); border-radius:50%; transform:translate(-50%,-50%); animation:treasureOrbit 20s linear infinite; }
.treasure-pity-celestial i:nth-child(2) { width:270px; height:270px; border-style:dashed; animation-duration:12s; animation-direction:reverse; }
.treasure-pity-celestial i:nth-child(3) { width:460px; height:460px; opacity:.35; animation-duration:34s; }
.treasure-pity-celestial i:nth-child(4) { width:165px; height:165px; border-color:rgba(243,208,128,.28); box-shadow:0 0 45px rgba(228,164,56,.11); animation-duration:8s; }
.treasure-pity-seal { display:grid; width:77px; height:77px; margin:5px auto 15px; place-items:center; border:1px solid #c15e43; border-radius:50%; color:#ee8e6d; background:radial-gradient(circle,#5c2115,#160806 67%); box-shadow:inset 0 0 21px #000,0 0 40px rgba(218,91,54,.28); font-family:"STKaiti",serif; font-size:39px; animation:pitySealStrike 700ms 190ms cubic-bezier(.18,.88,.21,1.18) both; }
.treasure-pity-dialog > small { display:block; color:#88714d; font-family:Georgia,serif; font-size:8px; letter-spacing:.3em; }
.treasure-pity-dialog h3 { margin:7px 0 12px; color:#f1d691; font-family:"STKaiti",serif; font-size:clamp(29px,6vw,42px); font-weight:500; letter-spacing:.2em; text-shadow:0 5px 23px #000,0 0 20px rgba(231,177,73,.28); }
.treasure-pity-stones { display:flex; align-items:baseline; justify-content:center; gap:11px; margin:4px 0 10px; }
.treasure-pity-stones strong { color:#ffe29a; font-family:Georgia,serif; font-size:clamp(52px,11vw,78px); font-weight:400; line-height:1; letter-spacing:-.06em; text-shadow:0 0 12px #d8972f,0 0 44px rgba(237,172,63,.48); animation:pityNumberAwaken .9s 360ms ease-out both; }
.treasure-pity-stones span { color:#cfaa61; font-family:"STKaiti",serif; font-size:21px; letter-spacing:.16em; }
.treasure-pity-dialog p { margin:14px 0 25px; color:#c5ad7a; font-family:"FangSong",serif; font-size:15px; line-height:1.8; letter-spacing:.06em; }
.treasure-pity-dialog button { position:relative; min-width:220px; padding:12px 22px; border:1px solid #e0bb6b; color:#2b1b09; cursor:pointer; background:linear-gradient(180deg,#f0d58f,#bc8a3e 57%,#81541d); box-shadow:inset 0 1px #fff0bd,0 0 27px rgba(215,146,42,.19); font-family:"STKaiti",serif; font-size:14px; letter-spacing:.12em; }
.treasure-pity-dialog button:hover { filter:brightness(1.12); }
.treasure-pity-dialog button:focus-visible { outline:2px solid #fff0ba; outline-offset:5px; }

@keyframes pityCounterStrike { from { opacity:.1; transform:translateY(-7px) scale(1.2); filter:blur(3px); } to { opacity:1; transform:none; filter:none; } }
@keyframes pityDossierArrive { from { opacity:0; transform:translateY(28px) scale(.88); filter:blur(5px); } to { opacity:1; transform:none; filter:none; } }
@keyframes pitySealStrike { 0% { opacity:0; transform:scale(2.7) rotate(-18deg); filter:blur(4px); } 55% { opacity:1; transform:scale(.9) rotate(4deg); filter:none; } 100% { transform:none; } }
@keyframes pityNumberAwaken { from { opacity:0; transform:scale(1.8); filter:blur(8px); } to { opacity:1; transform:none; filter:none; } }
@keyframes pityLightCross { 0% { opacity:0; width:0; } 45% { opacity:1; width:100vmax; } 100% { opacity:0; width:115vmax; } }

@media (max-width:820px) {
  .treasure-pity-sort-stack { width:100%; grid-template-columns:112px minmax(0,1fr); align-items:stretch; }
  .treasure-pity-sort-stack .level-sort-toggle { height:51px; }
}
@media (max-width:520px) {
  .treasure-pity-sort-stack { grid-template-columns:1fr 1fr; }
  .treasure-pity-counter { width:auto; }
  .treasure-pity-dialog { padding-right:20px; padding-left:20px; }
}
@media (prefers-reduced-motion:reduce) {
  .treasure-pity-counter strong,.treasure-pity-backdrop,.treasure-pity-backdrop::before,.treasure-pity-backdrop::after,.treasure-pity-dialog,.treasure-pity-celestial i,.treasure-pity-seal,.treasure-pity-stones strong { animation:none; }
}

/* Long account lists keep the page content scrollable. */
#root { height:auto; min-height:100vh; display:flow-root; }
.game-shell { height:auto; min-height:max(600px,100vh); }

/* Ten-pull payment selection inside the existing bestowal dialog. */
.treasure-payment-options { margin:18px 0 0; padding:0; border:0; display:grid; gap:9px; }
.treasure-payment-options legend { margin-bottom:10px; color:#f0d598; font-size:15px; font-weight:700; }
.treasure-payment-options label { display:flex; gap:11px; align-items:center; padding:12px 14px; border:1px solid #75603b; background:#191208; color:#eadbb5; cursor:pointer; }
.treasure-payment-options label.is-selected { border-color:#e0b45c; background:#362713; box-shadow:inset 0 0 0 1px #e0b45c; }
.treasure-payment-options input { width:17px; height:17px; margin:0; flex-shrink:0; accent-color:#e2bc69; }
.treasure-payment-options b,.treasure-payment-options small { display:block; }
.treasure-payment-options b { font-size:15px; color:#ffe4a5; }
.treasure-payment-options small { margin-top:4px; font-size:12px; color:#dbcba7; line-height:1.5; }
.treasure-claim-dialog > .treasure-payment-error { color:#ffb0a0; font:700 14px/1.6 system-ui,sans-serif; letter-spacing:0; }
.treasure-payment-receipt { color:#f5d28a; font-size:14px; }

.treasure-draw-actions > .treasure-payment-options { box-sizing:border-box; display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); width:100%; margin:0; padding:12px; gap:10px; border:1px solid rgba(177,132,62,.38); background:rgba(10,7,4,.62); }
.treasure-draw-actions > .treasure-payment-options > label,
.treasure-draw-actions > .treasure-payment-options > div { box-sizing:border-box; min-width:0; padding:9px 11px; border:1px solid #604a2c; background:#171007; color:#d9c28f; }
.treasure-draw-actions > .treasure-payment-options > label { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:8px; }
.treasure-draw-actions > .treasure-payment-options > div { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.treasure-draw-actions > .treasure-payment-options > div > span { width:100%; color:#c7a766; }
.treasure-draw-actions > .treasure-payment-options > div > label { flex:1; min-width:130px; padding:8px 10px; }
.treasure-draw-actions > .treasure-payment-options select { box-sizing:border-box; width:100%; min-width:0; padding:7px 8px; border:1px solid #725a34; color:#f2d99f; background:#0e0a06; font:inherit; }

.treasure-claim-dialog { box-sizing:border-box; max-height:calc(100dvh - 32px); clip-path:none; border-radius:3px; }
.treasure-claim-backdrop { padding:16px; }
@media(max-width:560px) {
  .treasure-workshop-modes { grid-template-columns:1fr; }
  .treasure-workshop-modes button { min-height:68px; }
  .treasure-market-settlement { grid-template-columns:1fr; padding:10px; }
  .treasure-market-recipient > label { grid-template-columns:1fr; }
  .treasure-market-settlement fieldset { align-items:stretch; flex-direction:column; }
  .treasure-market-settlement fieldset label { flex:none; }
  .directed-pack-controls nav { grid-template-columns:1fr; }
  .treasure-supply-market .inventory-market-grid { grid-template-columns:1fr; }
  .treasure-supply-recipient label { grid-template-columns:1fr; }
  .treasure-draw-actions > .treasure-payment-options { grid-template-columns:1fr; }
  .treasure-claim-dialog { width:100%; padding:16px; }
  .treasure-claim-dialog > footer { flex-wrap:wrap; }
  .treasure-claim-dialog > footer button { flex:1; min-width:0; }
}

/* Daily blessing: a vermilion signet beside the golden draw commands. */
.treasure-draw-actions { flex-wrap:wrap; }
.treasure-draw-commands { grid-template-columns:190px 250px 220px; }
.treasure-draw-actions .treasure-draw-commands .is-daily-checkin { border-color:#ab6747;color:#ffe0a0;background:radial-gradient(ellipse at 85% 0,rgba(238,168,74,.22),transparent 65%),linear-gradient(110deg,#54251a,#24130d);box-shadow:inset 0 1px 0 #ad7e45; }
.treasure-draw-actions .is-daily-checkin > span { color:#ffd49a;border-color:#d39264;background:#6f3024; }
.treasure-draw-actions .is-daily-checkin small { color:#d4b491;font-size:10px;letter-spacing:.08em; }
.daily-checkin-backdrop { position:fixed;inset:0;z-index:450;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(5,4,3,.88);backdrop-filter:blur(9px); }
.daily-checkin-dialog { position:relative;box-sizing:border-box;width:min(940px,100%);max-height:calc(100dvh - 48px);overflow:auto;color:#ead7b0;border:1px solid #b38a48;box-shadow:0 30px 100px #000,inset 0 0 0 5px #181008,inset 0 0 0 6px #614a2a;background:radial-gradient(ellipse at 100% 0,#58401f55,transparent 50%),#17110b;font-family:"FangSong","SimSun",serif;animation:checkinArrive .35s ease-out both; }
.daily-checkin-dialog button,.daily-checkin-dialog input,.daily-checkin-dialog select { font:inherit; }
.daily-checkin-dialog button { cursor:pointer; }
.daily-checkin-dialog button:disabled { cursor:default;opacity:.65; }
.daily-checkin-dialog :is(button,input,select,summary):focus-visible { outline:2px solid #ffdfa0;outline-offset:3px; }
.daily-checkin-dialog .daily-checkin-close { position:absolute;top:12px;right:14px;width:32px;height:32px;background:transparent;border:0;color:#dfc69b;font:26px Georgia,serif;z-index:1; }
.daily-checkin-heading { display:flex;align-items:center;gap:22px;margin:0 32px;padding:34px 0 26px; }
.daily-checkin-heading > span { display:grid;place-items:center;width:64px;height:72px;border:1px solid #bd7452;box-shadow:inset 0 0 0 5px #54261a,inset 0 0 0 6px #956042;background:#602b1e;color:#ffd5a0;font:38px "STKaiti","KaiTi",serif;transform:rotate(-5deg); }
.daily-checkin-heading small { color:#bda072;font:10px Georgia,serif;letter-spacing:.24em; }
.daily-checkin-heading h2 { margin:6px 0;color:#ffe1a4;font:34px "STKaiti","KaiTi",serif;letter-spacing:.16em; }
.daily-checkin-heading p { margin:0;color:#cfbb9c;font-size:14px;letter-spacing:.16em; }
.daily-checkin-heading > b { margin-left:auto;padding:0 18px 0 24px;border-left:1px solid #6c5130;text-align:right;color:#c3ab81;font-size:12px;font-weight:400;line-height:2; }
.daily-checkin-heading strong { color:#f1d393;font:22px "STKaiti","KaiTi",serif;letter-spacing:.08em; }
.daily-checkin-calendar { display:flex;align-items:center;gap:18px;padding:12px 32px;border-block:1px solid #66502e;background:#b18b4210;color:#d6c19c;font-size:13px; }
.daily-checkin-calendar > span:first-child { margin-right:auto;letter-spacing:.06em; }
.daily-checkin-calendar em { display:inline-block;margin-left:12px;font-style:normal;color:#bda276; }
.daily-checkin-calendar b { color:#ffda8c; }
.daily-checkin-content { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.daily-checkin-register { padding:28px 30px 26px 32px; }
.daily-checkin-section-title { display:flex;flex-direction:column;gap:9px;padding-bottom:22px; }
.daily-checkin-section-title small,.daily-checkin-reward-caption { font-size:12px;letter-spacing:.14em;color:#dfbd78; }
.daily-checkin-section-title span { font-size:20px;color:#f0d4a4;font-family:"STKaiti","KaiTi",serif; }
.daily-checkin-search,.daily-checkin-player-picker label { display:flex;flex-direction:column;gap:8px;color:#d8c09b;font-size:13px; }
.daily-checkin-search input,.daily-checkin-player-picker select { box-sizing:border-box;width:100%;height:42px;padding:8px 12px;color:#f9e4bc;border:1px solid #7b613c;border-radius:0;background:#0f0b07;font-size:15px; }
.daily-checkin-search input::placeholder { color:#a18c6e; }
.daily-checkin-player-picker { display:flex;align-items:flex-end;gap:10px;margin-top:18px; }
.daily-checkin-player-picker label { min-width:0;flex:1; }
.daily-checkin-player-picker button { height:42px;padding:0 12px;border:1px solid #7b613c;background:#332313;color:#dfc698;font-size:13px; }
.daily-checkin-player-status { display:flex;align-items:center;justify-content:space-between;gap:10px;margin:20px 0 12px;padding-bottom:13px;border-bottom:1px solid #71563266;font-size:14px; }
.daily-checkin-player-status b { font-size:12px;font-weight:400;color:#f4cc81; }
.daily-checkin-note { margin:0;color:#c3af91;font-size:13px;line-height:1.9; }
.daily-checkin-reward { display:flex;flex-direction:column;align-items:center;position:relative;padding:28px 30px;border-left:1px solid #735b343d;text-align:center;background:radial-gradient(ellipse at 50% 32%,#906b2c22,transparent 60%),linear-gradient(135deg,#41301a22,transparent); }
.daily-checkin-reward-caption { align-self:flex-start;margin-bottom:15px; }
.daily-checkin-sealed { position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:138px;height:188px;margin:14px 0 12px;border:1px solid #c29750;box-shadow:inset 0 0 0 6px #24170b,inset 0 0 0 7px #90703d,0 12px 30px #0008;background:radial-gradient(ellipse at top,#95703b44,transparent),repeating-linear-gradient(90deg,transparent 0 9px,#be965615 10px),#291c10;transform:rotate(-4deg); }
.daily-checkin-sealed i { position:absolute;inset:20px;border:1px solid #9b73364d; }
.daily-checkin-sealed span { display:grid;place-items:center;width:68px;height:82px;margin-bottom:16px;border:1px solid #b3764b;background:#713421;color:#ffe0a4;font:48px "STKaiti","KaiTi",serif; }
.daily-checkin-sealed small { font-size:12px;letter-spacing:.25em;color:#edcd8f; }
.daily-checkin-reward h3 { margin:12px 0 8px;font:26px "STKaiti","KaiTi",serif;color:#f7dda4;letter-spacing:.08em; }
.daily-checkin-reward h3 em { padding-left:10px;font:16px Georgia,serif;color:#c0a575; }
.daily-checkin-reward > p { margin:0 0 12px;color:#ceba99;font-size:13px;line-height:1.8; }
.daily-checkin-reward .daily-checkin-primary { margin-top:auto;box-sizing:border-box;width:100%;min-height:48px;padding:12px 8px;border:1px solid #cca056;background:linear-gradient(115deg,#714825,#3b2514);box-shadow:inset 0 1px 0 #d6b57a4d;color:#ffdf9d;font-size:17px;letter-spacing:.08em; }
.daily-checkin-primary:hover:not(:disabled) { background:linear-gradient(115deg,#946134,#54351b); }
.daily-checkin-footnote { display:block;margin-top:12px;color:#bca786;font-size:12px;line-height:1.6; }
.daily-checkin-item { position:relative;box-sizing:border-box;width:180px;height:194px;margin:8px 0 0;padding:7px;border:1px solid #947749;background:#080604;box-shadow:0 12px 26px #0009;animation:checkinArrive .45s ease-out; }
.daily-checkin-item img { width:100%;height:100%;object-fit:cover; }
.daily-checkin-item .quality-tag { position:absolute;left:12px;bottom:12px; }
.daily-checkin-item > span { position:absolute;top:12px;right:-15px;display:grid;place-items:center;width:42px;height:42px;border:2px solid #c27857;background:#62291e;color:#ffce9d;transform:rotate(10deg);font:17px "STKaiti","KaiTi",serif; }
.daily-checkin-item-detail { width:100%;margin:0 0 16px;font-size:12px;color:#d7bc8b; }
.daily-checkin-item-detail summary { cursor:pointer; }
.daily-checkin-item-detail p { max-height:140px;overflow:auto;text-align:left;color:#dfcdb0;line-height:1.9; }
.daily-checkin-reward .daily-checkin-error { color:#ffb2a0;font-size:13px; }
.daily-checkin-footer { display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 32px 20px;border-top:1px solid #68502c66;color:#b69d74; }
.daily-checkin-footer > span { white-space:nowrap;font:15px "STKaiti","KaiTi",serif;letter-spacing:.12em;color:#dbbd87; }
.daily-checkin-footer small { font-size:11px;line-height:1.7; }
@keyframes checkinArrive { from { opacity:0;transform:translateY(12px); } to { opacity:1;transform:translateY(0); } }
@media(max-width:900px) { .treasure-draw-page .treasure-draw-actions > .treasure-draw-commands { grid-template-columns:1fr 1.2fr 1.1fr; } .treasure-draw-actions .treasure-draw-commands button { min-width:0; } }
@media(max-width:640px) {
  .treasure-draw-page .treasure-draw-actions > .treasure-draw-commands { grid-template-columns:1fr 1fr; }
  .treasure-draw-commands .is-daily-checkin { grid-column:1 / -1; }
  .daily-checkin-backdrop { padding:10px; }
  .daily-checkin-dialog { max-height:calc(100dvh - 20px); }
  .daily-checkin-heading { margin:0 20px;padding:28px 0 22px;gap:16px; }
  .daily-checkin-heading > span { width:48px;height:58px;font-size:30px; }
  .daily-checkin-heading h2 { font-size:28px; }
  .daily-checkin-heading > b { display:none; }
  .daily-checkin-calendar { padding:12px 20px;flex-wrap:wrap;gap:8px 16px; }
  .daily-checkin-calendar > span:first-child { flex-basis:100%; }
  .daily-checkin-content { grid-template-columns:1fr; }
  .daily-checkin-register { padding:22px 20px; }
  .daily-checkin-reward { border-left:0;border-top:1px solid #735b3455;padding:22px 20px; }
  .daily-checkin-primary { margin-top:12px!important; }
  .daily-checkin-footer { padding:16px 20px;flex-direction:column;align-items:flex-start;gap:8px; }
}
@media(prefers-reduced-motion:reduce) { .daily-checkin-dialog,.daily-checkin-item { animation:none; } }

/* Eight paths: four contests above, four journeys below. */
.home-eight-modes { min-height:760px; height:100dvh; }
.home-eight-modes .destiny-stage { left:50%; top:clamp(100px,12vh,145px); height:clamp(260px,calc(100dvh - 530px),430px); width:min(65vw,880px); }
.home-eight-modes .destiny-core { width:250px; }
.home-eight-modes .orbit-outer { width:280px; }
.home-eight-modes .orbit-inner { width:220px; }
.home-eight-modes .home-utility-dock { top:clamp(120px,14vh,160px); width:clamp(196px,12.5vw,236px); grid-template-columns:1fr; }
.home-eight-modes .utility-dock-heading { grid-column:1/-1; min-height:50px; }
.home-eight-modes .utility-entrance { grid-template-columns:37px minmax(0,1fr) 14px; gap:10px; min-height:61px; padding:8px; }
.home-eight-modes .utility-seal { width:35px; height:35px; font-size:17px; }
.home-eight-modes .utility-copy strong { font-size:16px; letter-spacing:.08em; }
.home-eight-modes .utility-copy small { font-size:10px; }
.home-eight-modes .entrance-grid { top:370px; bottom:72px; height:auto; grid-template-columns:repeat(4,minmax(0,1fr)); grid-template-rows:repeat(2,minmax(145px,1fr)); gap:14px 18px; }
.home-eight-modes .entrance { min-height:145px; transform:none; clip-path:polygon(9px 0,calc(100% - 9px) 0,100% 9px,100% calc(100% - 9px),calc(100% - 9px) 100%,9px 100%,0 calc(100% - 9px),0 9px); }
.home-eight-modes .entrance:hover { transform:translateY(-3px); }
.home-eight-modes .entrance-copy { left:20px; bottom:15px; }
.home-eight-modes .entrance-copy strong { font-size:clamp(20px,1.75vw,28px); }
.home-eight-modes .entrance-copy em { font-size:12px; }
.home-eight-modes .entrance-copy small { font-size:10px; }
.home-eight-modes .entrance-image { background-position:center 45%; }
.home-eight-modes .entrance-fog { background:linear-gradient(180deg,#07050320,#07050330 25%,#070503ef 100%),linear-gradient(90deg,#07050399,transparent); }
.entrance-players { position:absolute; right:14px; top:14px; padding:3px 8px; border:1px solid #c4a06060; background:#100c08c9; color:#e6cf9e; font-size:11px; letter-spacing:.05em; }
.entrance-planned { margin-top:7px; color:#d5ab6e; font-size:9px; letter-spacing:.12em; }
.entrance-permission-denied { margin-top:7px; color:#c3b9a5; font-size:9px; letter-spacing:.08em; }
.entrance.is-permission-disabled,
.entrance.is-permission-disabled:hover { cursor:not-allowed; transform:none; filter:grayscale(.9) brightness(.52); opacity:.68; }
.entrance.is-permission-disabled .entrance-image,
.entrance.is-permission-disabled:hover .entrance-image { transform:none; filter:grayscale(1) brightness(.55); }
.entrance.is-permission-disabled .entry-arrow { display:none; }
.entrance.is-permission-disabled::after { display:none; }
.mode-preview { width:min(600px,calc(100% - 32px)); max-height:calc(100dvh - 40px); overflow:auto; padding:0; border:1px solid #a58043; color:#ead9b6; background:#120e09; box-shadow:0 28px 100px #000b; }
.mode-preview::backdrop { background:#030303bd; backdrop-filter:blur(6px); }
.mode-preview-art { position:relative; height:180px; background-size:cover; background-position:center 40%; }
.mode-preview-art::before { content:""; position:absolute; inset:0; background:linear-gradient(180deg,#0c080830,transparent 25%,#120e09); }
.mode-preview-art > span { position:absolute; left:28px; bottom:8px; color:#dfba75; font-size:12px; letter-spacing:.2em; }
.mode-preview-close { position:absolute; top:14px; right:14px; width:36px; height:36px; border:1px solid #bda06a80; background:#100c08dd; color:#ead9b6; font-size:26px; cursor:pointer; }
.mode-preview-body { padding:12px 28px 28px; }
.mode-preview-eyebrow { display:flex; align-items:center; gap:18px; color:#ac9164; font-size:12px; letter-spacing:.16em; }
.mode-preview-eyebrow span { padding-left:18px; border-left:1px solid #735831; color:#e6c791; }
.mode-preview h2 { margin:12px 0; font-family:"STKaiti","KaiTi",serif; font-size:36px; letter-spacing:.15em; color:#f0d596; }
.mode-preview-intro { color:#cbbda4; font-size:14px; line-height:1.9; }
.mode-preview-features { display:flex; flex-wrap:wrap; gap:10px; margin:22px 0; }
.mode-preview-features span { padding:9px 12px; border:1px solid #80603980; color:#dfbd83; background:#7f572a16; font-size:12px; }
.mode-preview-note { padding-top:15px; border-top:1px solid #80603955; color:#ac9a7f; font-size:12px; }
.mode-preview-return { width:100%; padding:12px; margin-top:12px; border:1px solid #a27a3e; background:linear-gradient(110deg,#4c351a,#241b10); color:#eed39d; font-family:"STKaiti","KaiTi",serif; font-size:18px; cursor:pointer; }
.mode-preview button:focus-visible { outline:2px solid #ffe2a5; outline-offset:3px; }
@media (min-width:821px) and (max-width:1100px) {



  .home-eight-modes .entrance-grid { left:24px; right:24px; gap:12px; }
}
@media (min-width:821px) and (min-height:900px) {

  .home-eight-modes .entrance-grid { top:440px; }

}
@media (max-width:820px) {
  .home-eight-modes { height:auto; min-height:100dvh; }
  .home-eight-modes .destiny-stage { inset:auto; width:100%; height:310px; }
  .home-eight-modes .home-utility-dock { inset:auto; width:auto; }
  .home-eight-modes .entrance-grid { inset:auto; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:none; gap:12px; }
  .home-eight-modes .entrance,.home-eight-modes .entrance-grid .entrance:last-child { grid-column:auto; min-height:190px; }
  .home-eight-modes .entrance-copy { left:14px; right:12px; }
  .home-eight-modes .entrance-copy strong { font-size:22px; letter-spacing:0; }
  .home-eight-modes .chapter-mark { left:12px; }
  .home-eight-modes .entrance-players { right:12px; }
}
@media (max-width:380px) {
  .home-eight-modes .entrance-copy strong { font-size:19px; }
  .home-eight-modes .entrance-copy small { letter-spacing:0; font-size:9px; }
}
@media (prefers-reduced-motion:reduce) {
  .home-eight-modes *, .home-eight-modes *::before, .home-eight-modes *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}
.home-eight-modes .entrance-copy { min-height:84px; }


/* Keep mode entries compact even on tall desktop windows. */
.home-eight-modes .entrance-grid { height:314px; bottom:auto; grid-template-rows:repeat(2,150px); }
@media (min-width:821px) and (max-height:800px) {
  .home-eight-modes { min-height:720px; }

  .home-eight-modes .entrance-grid { top:340px; }
}
@media (max-width:820px) {
  .home-eight-modes .entrance-grid { height:auto; grid-template-rows:none; grid-auto-rows:150px; }
  .home-eight-modes .entrance,.home-eight-modes .entrance-grid .entrance:last-child { min-height:150px; }
}
/* Anchor the compact mode grid above the history strip, as in the original hall. */
@media (min-width:821px) {
  .home-eight-modes { min-height:860px; }
  .home-eight-modes .entrance-grid { top:auto; bottom:72px; }
}
.grant-history-open,.currency-flow-open { white-space:nowrap; }
.account-history-actions { display:contents; }
.character-list-body>footer,.profile-actions { flex-wrap:wrap; }
.edit-character-identity>.account-history-actions { grid-column:2; grid-row:1/4; display:flex; flex-direction:column; gap:7px; margin-right:12px; }
.edit-character-identity>.account-history-actions button { padding:8px 12px; font-size:12px; }
.edit-character-identity > .battle-account-rank { grid-column:1; }

/* Shared rank for duel, four-player and melee. */
.battle-account-rank { display:flex; align-items:center; gap:9px; min-width:0; padding:7px 0; color:var(--league-rank-color,#c99062); }
.battle-account-emblem { display:inline-block; width:37px; height:42px; flex:none; }
.battle-account-emblem svg { display:block; width:100%; height:100%; filter:drop-shadow(0 3px 9px #0009); }
.battle-account-rank > div { display:flex; min-width:0; flex-wrap:wrap; align-items:center; gap:8px; }
.battle-account-rank > div small { color:#a69570; font-size:9px; }
.battle-account-rank > div b { color:var(--league-rank-color); font-size:16px; font-weight:500; }
.battle-account-rank > div em { color:#c8b78a; font-size:11px; font-style:normal; }
.profile-mandate-mark.is-battle-rank { padding:12px 22px; }
.profile-mandate-mark.is-battle-rank .battle-account-rank.is-full { display:flex; flex-direction:column; gap:3px; padding:0; }
.profile-mandate-mark.is-battle-rank .battle-account-emblem { width:78px; height:84px; margin:0; border:0; background:none; font-size:initial; }
.profile-mandate-mark.is-battle-rank .battle-account-rank > div { display:flex; flex-direction:column; gap:4px; }
.profile-mandate-mark.is-battle-rank .battle-account-rank > div small { color:#baa675; font-size:10px; letter-spacing:.13em; }
.profile-mandate-mark.is-battle-rank .battle-account-rank > div b { color:var(--league-rank-color); font-size:24px; font-weight:500; }
.profile-mandate-mark.is-battle-rank .battle-account-rank > div em { color:#cbb482; font-size:13px; }
.profile-mandate-mark.is-battle-rank .battle-account-rank p { margin:3px 0; color:#aa9974; font-size:10px; }
.profile-mandate-mark.is-battle-rank .battle-account-rank .battle-rank-wins { margin:0; color:#9c8a65; font-size:9px; }
.battle-rank-progress { display:block; width:100%; height:3px; margin:7px 0 0; background:#a08d582a; }
.battle-rank-progress > span { display:block; width:0; height:3px; background:var(--league-rank-color); }
.battle-account-rank-error { display:block; color:#ce987f; font-size:12px; }
.grant-history-backdrop { position:fixed; z-index:260; inset:0; padding:24px; display:grid; place-items:center; background:rgba(3,5,7,.88); backdrop-filter:blur(10px); }
.grant-history-dialog { width:min(860px,100%); max-height:calc(100dvh - 48px); display:flex; flex-direction:column; color:#dddbc6; background:linear-gradient(135deg,#19201d,#0d1112 45%,#171714); border:1px solid #9a7a3d; box-shadow:0 30px 90px #0009,inset 0 0 0 5px #0b0e0d; font-family:"Microsoft YaHei",sans-serif; }
.grant-history-heading { display:flex; align-items:center; gap:18px; padding:24px 28px; border-bottom:1px solid #75623b66; background:linear-gradient(90deg,#88713b1c,transparent); }
.grant-history-heading>span { display:grid; place-items:center; flex:none; width:52px; height:52px; border:1px solid #a28b52; color:#d3b16b; font:28px "Noto Serif SC","SimSun",serif; }
.grant-history-heading>div { flex:1; min-width:0; }
.grant-history-heading small { color:#998d72; font-size:9px; letter-spacing:2px; }
.grant-history-heading h2 { margin:6px 0; color:#ead39b; font:24px "Noto Serif SC","SimSun",serif; overflow-wrap:anywhere; }
.grant-history-heading p { margin:0; color:#a7ab9a; font-size:12px; }
.grant-history-heading button { width:40px; height:40px; flex:none; border:1px solid #6f6241; background:#131917; color:#dac28d; font-size:24px; cursor:pointer; }
.grant-history-dialog button:focus-visible,.grant-history-dialog input:focus-visible,.grant-history-dialog select:focus-visible,.grant-history-dialog summary:focus-visible { outline:2px solid #e5c27b; outline-offset:3px; }
.grant-history-scroll { overflow-y:auto; padding:24px 28px; min-height:0; scrollbar-color:#79603a #111615; }
.grant-history-summary { display:grid; grid-template-columns:minmax(0,2.5fr) 1fr 1fr; border:1px solid #7c683a77; background:#bfa26308; margin-bottom:22px; }
.grant-history-summary>div { padding:18px; border-left:1px solid #7c683a44; }
.grant-history-summary>div:first-child { border-left:0; }
.grant-history-summary small { display:block; color:#aeb19c; font-size:11px; margin-bottom:10px; }
.grant-history-summary strong { display:block; color:#ead096; font:28px "Georgia","Noto Serif SC",serif; }
.grant-history-summary strong em { margin-left:6px; color:#aeb19c; font:11px "Microsoft YaHei",sans-serif; }
.grant-history-latest strong { font:17px "Microsoft YaHei",sans-serif; line-height:1.6; }
.grant-history-latest>span { display:block; color:#9b9d8a; font-size:11px; margin-top:7px; }
.grant-history-tools nav { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.grant-history-tools button,.grant-history-more { padding:9px 14px; border:1px solid #60553a; background:#101713; color:#b9bba7; font-size:12px; cursor:pointer; }
.grant-history-tools button[aria-pressed=true] { background:#c5a05926; border-color:#b29050; color:#e4c683; }
.grant-history-tools>div { display:flex; gap:10px; }
.grant-history-tools input,.grant-history-tools select { min-width:0; padding:10px 12px; background:#0c1110; border:1px solid #595640; color:#d1ceb7; font:12px "Microsoft YaHei",sans-serif; border-radius:0; }
.grant-history-tools input { flex:1; width:100%; }
.grant-history-tools input::placeholder { color:#898d7b; }
.grant-history-list-count { color:#9eaa95; font-size:11px; margin:15px 0 10px; }
.grant-history-record { padding:16px 18px; margin:0 0 12px; border:1px solid #66715d55; background:#111715a8; }
.grant-history-record.is-ten { border-color:#a384476b; box-shadow:inset 3px 0 #b89a55; background:linear-gradient(100deg,#a1844310,#111715a8); }
.grant-history-record>header { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.grant-history-source { color:#e2cd97; font:16px "Noto Serif SC","SimSun",serif; }
.grant-history-record>header>b { color:#aebf9c; padding:3px 6px; border:1px solid #81957455; font-size:10px; font-weight:400; }
.grant-history-record time { margin-left:auto; color:#c0bea8; font-size:12px; font-variant-numeric:tabular-nums; }
.grant-history-receipt-meta { color:#a0a590; font-size:11px; line-height:1.8; margin:9px 0; }
.grant-history-items summary { display:flex; gap:14px; cursor:pointer; color:#d5bb7d; font-size:12px; padding:9px 0; border-top:1px solid #7a744536; }
.grant-history-items summary::before { content:"＋"; flex:none; }
.grant-history-items[open] summary::before { content:"−"; }
.grant-history-items summary>span { color:#929c88; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex:1; min-width:0; }
.grant-history-items ul { display:grid; grid-template-columns:1fr 1fr; gap:4px 22px; padding:8px 0 0; margin:0; list-style:none; }
.grant-history-items li { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:8px 0; border-bottom:1px solid #66715d25; font-size:12px; }
.grant-history-items li>span { display:flex; flex-wrap:wrap; align-items:center; gap:7px; min-width:0; }
.grant-history-items li b { font-weight:400; overflow-wrap:anywhere; }
.grant-history-items li strong { font-size:12px; color:#dac992; flex:none; }
.grant-history-items li small { color:#a7b993; font-size:10px; }
.grant-history-items li small.quality-传说 { color:#e4c175; }
.grant-history-items li small.quality-史诗 { color:#c4a9db; }
.grant-history-items li small.quality-仙品 { color:#ecc581; }
.grant-history-items li em { font-style:normal; color:#9b9e88; font-size:10px; }
.grant-history-note { margin:20px 0 0; padding-top:14px; border-top:1px solid #7c683a55; color:#959c87; font-size:11px; line-height:1.9; }
.grant-history-empty { padding:35px 10px; text-align:center; border:1px dashed #65715766; }
.grant-history-empty>span { color:#977a40; font:38px "Noto Serif SC","SimSun",serif; }
.grant-history-empty h3 { color:#d5c494; font-weight:400; font-size:17px; }
.grant-history-empty p { color:#9ba590; font-size:12px; line-height:1.8; }
.grant-history-more { display:block; width:100%; }
.grant-history-more[role=status] { box-sizing:border-box; text-align:center; cursor:default; }
.grant-history-more[role=status] { box-sizing:border-box; text-align:center; cursor:default; }
.grant-history-revocation { color:#c79988; font-size:11px; }
.grant-history-record.is-revoked>header>b { color:#c79988; border-color:#ab706166; }
.grant-history-sr { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.currency-flow-dialog { width:min(920px,100%); }
.currency-flow-balance { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:18px; }
.currency-flow-balance>div { display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:4px 12px; padding:15px 18px; border:1px solid #7c683a77; background:#bfa26308; }
.currency-flow-balance span { grid-row:1/3; display:grid; place-items:center; width:42px; height:42px; border:1px solid #937943; color:#d2b26d; font:21px "Noto Serif SC","SimSun",serif; }
.currency-flow-balance small { color:#aeb19c; font-size:11px; }
.currency-flow-balance strong { color:#ead096; font:24px Georgia,"Noto Serif SC",serif; font-variant-numeric:tabular-nums; }
.currency-flow-filters { display:flex; gap:6px; margin-bottom:14px; }
.currency-flow-filters button { padding:9px 16px; border:1px solid #60553a; background:#101713; color:#b9bba7; cursor:pointer; }
.currency-flow-filters button[aria-pressed=true] { background:#c5a05926; border-color:#b29050; color:#e4c683; }
.currency-flow-list { display:grid; gap:10px; }
.currency-flow-record { padding:15px 17px; border:1px solid #66715d55; background:#111715a8; box-shadow:inset 3px 0 #7b806d; }
.currency-flow-record.is-income { box-shadow:inset 3px 0 #719765; }
.currency-flow-record.is-expense { box-shadow:inset 3px 0 #9a6758; }
.currency-flow-record>header { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:16px; }
.currency-flow-record>header>div { display:flex; align-items:center; gap:9px; min-width:0; }
.currency-flow-record>header span { padding:3px 6px; border:1px solid #806e47; color:#d5bb7d; font-size:10px; }
.currency-flow-record>header b { color:#ded7bd; font-size:14px; font-weight:500; }
.currency-flow-record>header strong { color:#9dc18f; font:21px Georgia,serif; font-variant-numeric:tabular-nums; }
.currency-flow-record.is-expense>header strong { color:#d39b89; }
.currency-flow-record time { color:#b8b7a3; font-size:11px; font-variant-numeric:tabular-nums; }
.currency-flow-balance-change { display:flex; align-items:center; gap:10px; margin:11px 0 8px; color:#909a87; font-size:11px; }
.currency-flow-balance-change b { color:#d5ceb4; font-weight:500; font-variant-numeric:tabular-nums; }
.currency-flow-balance-change i { color:#846f45; font-style:normal; }
.currency-flow-record>p { margin:7px 0 10px; color:#b9b9a6; font-size:12px; line-height:1.7; }
.currency-flow-record>footer { display:flex; flex-wrap:wrap; gap:6px 14px; color:#8e9584; font-size:10px; }
.currency-flow-record code { min-width:0; max-width:100%; overflow:hidden; color:#858d7f; font:10px Consolas,monospace; text-overflow:ellipsis; white-space:nowrap; }
.currency-grant-entry-button>span { border-color:#8b733f; color:#d0ad63; }
.admin-currency-grant-dialog { width:min(980px,100%); }
.admin-currency-grant-tabs { display:grid; grid-template-columns:1fr 1fr; border-bottom:1px solid #75623b66; background:#0b100f; }
.admin-currency-grant-tabs button { min-height:48px; border:0; border-right:1px solid #75623b44; background:transparent; color:#9ea493; font-size:13px; cursor:pointer; }
.admin-currency-grant-tabs button:last-child { border-right:0; }
.admin-currency-grant-tabs button[aria-pressed=true] { color:#e3c47f; background:#b9974f17; box-shadow:inset 0 -2px #bb9450; }
.admin-currency-grant-form { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr); gap:18px; }
.currency-grant-account-panel,.currency-grant-entry-panel { min-width:0; border:1px solid #75623b66; background:#0d1311b8; }
.currency-grant-account-panel>header { display:flex; align-items:flex-end; justify-content:space-between; gap:14px; padding:16px; border-bottom:1px solid #75623b44; }
.currency-grant-account-panel>header small { color:#948a72; font-size:9px; letter-spacing:1.5px; }
.currency-grant-account-panel h3 { margin:4px 0 0; color:#ddc78f; font:18px "Noto Serif SC","SimSun",serif; }
.currency-grant-account-panel [role=search] { display:flex; min-width:220px; }
.currency-grant-account-panel input { min-width:0; width:100%; padding:9px 10px; border:1px solid #56543f; border-right:0; background:#080d0c; color:#d5d1bb; }
.currency-grant-account-panel [role=search] button { padding:9px 13px; border:1px solid #78623a; background:#191a13; color:#d8bd7b; cursor:pointer; }
.currency-grant-account-list { max-height:360px; overflow-y:auto; padding:8px; scrollbar-color:#79603a #111615; }
.currency-grant-account-list>button { width:100%; display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:10px; padding:10px; margin-bottom:6px; border:1px solid #59605255; background:#111715; color:#cbc9b5; text-align:left; cursor:pointer; }
.currency-grant-account-list>button:hover { border-color:#8c7546; }
.currency-grant-account-list>button.is-selected { border-color:#bd9953; background:#9f7d3518; box-shadow:inset 3px 0 #bd9953; }
.currency-grant-account-list>button>span { display:grid; place-items:center; width:36px; height:36px; border:1px solid #76633e; color:#d1ad62; font:18px "Noto Serif SC","SimSun",serif; }
.currency-grant-account-list>button div { min-width:0; }
.currency-grant-account-list b,.currency-grant-account-list small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.currency-grant-account-list b { color:#e1d9bd; font-size:13px; }
.currency-grant-account-list small { margin-top:4px; color:#8f9987; font-size:10px; }
.currency-grant-account-list em { color:#aaa58f; font:10px/1.65 Consolas,"Microsoft YaHei",sans-serif; text-align:right; white-space:nowrap; }
.currency-grant-account-list>p { margin:30px 10px; color:#989f8d; font-size:12px; text-align:center; }
.currency-grant-entry-panel { padding:16px; }
.currency-grant-type { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.currency-grant-type>button { display:flex; align-items:center; gap:9px; padding:10px; border:1px solid #5e5b43; background:#101613; color:#a9ad9a; text-align:left; cursor:pointer; }
.currency-grant-type>button[aria-pressed=true] { border-color:#b18c48; background:#b18c4817; color:#e3cc93; }
.currency-grant-type>button>span { display:grid; place-items:center; width:34px; height:34px; border:1px solid #806c45; font:17px "Noto Serif SC","SimSun",serif; }
.currency-grant-type small,.currency-grant-type b { display:block; }
.currency-grant-type small { color:#888f80; font-size:9px; }
.currency-grant-type b { margin-top:2px; font-size:13px; }
.currency-grant-entry-panel>label { display:block; margin-top:15px; color:#c5c2ad; font-size:11px; }
.currency-grant-entry-panel>label>span { display:flex; justify-content:space-between; margin-bottom:7px; }
.currency-grant-entry-panel>label small { color:#858d7e; font-size:9px; }
.currency-grant-entry-panel input,.currency-grant-entry-panel textarea { box-sizing:border-box; width:100%; padding:11px 12px; border:1px solid #595640; border-radius:0; background:#090e0d; color:#ded8bf; font:13px "Microsoft YaHei",sans-serif; resize:vertical; }
.currency-grant-preview { display:grid; grid-template-columns:1fr auto; align-items:center; gap:5px 12px; margin-top:15px; padding:12px; border:1px solid #6f653f66; background:#b9974f0b; }
.currency-grant-preview span { color:#909887; font-size:10px; }
.currency-grant-preview strong { color:#dfd6b9; font-size:13px; }
.currency-grant-preview i { grid-column:2; grid-row:1/3; color:#8c7546; font:22px Georgia,serif; }
.currency-grant-preview b { grid-column:1; color:#d8b96f; font:18px Georgia,"Microsoft YaHei",sans-serif; }
.currency-grant-submit { width:100%; min-height:46px; margin-top:15px; border:1px solid #b28d49; background:#b28d4930; color:#efd69c; font:14px "Noto Serif SC","SimSun",serif; cursor:pointer; }
.currency-grant-submit:disabled { border-color:#565847; background:#101512; color:#777e70; cursor:not-allowed; }
.currency-grant-success { grid-column:1/-1; display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; margin:0; padding:12px 14px; border:1px solid #718c62; background:#4f713717; color:#b8cbaa; font-size:12px; }
.currency-grant-success b { color:#d7e4c8; }
.currency-grant-success code { margin-left:auto; color:#84957c; font:10px Consolas,monospace; }
.admin-currency-grant-form>.grant-history-revocation { grid-column:1/-1; margin:0; }
.admin-currency-grant-history .currency-flow-list { min-height:120px; }
@media(max-width:600px) {
  .grant-history-backdrop { padding:10px; }
  .grant-history-dialog { max-height:calc(100dvh - 20px); }
  .grant-history-heading { padding:18px; gap:12px; }
  .grant-history-heading>span { width:40px; height:44px; font-size:23px; }
  .grant-history-heading h2 { font-size:20px; }
  .grant-history-heading small { font-size:8px; letter-spacing:1px; }
  .grant-history-scroll { padding:18px; }
  .grant-history-summary { grid-template-columns:1fr 1fr; }
  .grant-history-summary>.grant-history-latest { grid-column:1/-1; border-bottom:1px solid #7c683a44; }
  .grant-history-summary>div:nth-child(2) { border-left:0; }
  .grant-history-summary>div { padding:14px; }
  .grant-history-record { padding:13px; }
  .grant-history-record time { flex-basis:100%; margin-left:0; }
  .grant-history-items ul { grid-template-columns:1fr; }
  .grant-history-tools>div { gap:6px; }
  .grant-history-tools input,.grant-history-tools select { padding:10px 8px; }
}

/* Authentication */
.login-page { position:relative; min-height:100dvh; display:grid; place-items:center; overflow:hidden; padding:28px; color:#ead8af; background:#090907; font-family:"Microsoft YaHei",sans-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%; max-width:none; height:100%; object-fit:cover; background:#000; }
.login-intro-audio { position:absolute; top:max(22px,env(safe-area-inset-top)); left:max(24px,env(safe-area-inset-left)); display:grid; width:42px; height:42px; place-items:center; padding:0; 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 svg { width:22px; height:22px; overflow:visible; fill:currentColor; }
.login-intro-audio svg path:not(:first-child) { fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.login-intro-audio:hover,.login-intro-audio:focus-visible { color:#241609; background:#ddb96f; border-color:#f3d392; outline:0; }
.login-intro-audio[aria-pressed="true"] { border-color:#f1d18c; box-shadow:0 0 0 1px #e8c67b42,0 8px 28px #0008; }
.login-intro-skip { position:absolute; top:max(22px,env(safe-area-inset-top)); right:max(24px,env(safe-area-inset-right)); display:flex; align-items:center; justify-content:center; gap:9px; min-width:92px; height:42px; padding:0 16px; border:1px solid #d5b37199; border-radius:2px; color:#f1d79d; background:#0b0907a8; box-shadow:0 8px 28px #0008; backdrop-filter:blur(5px); cursor:pointer; font:14px "Microsoft YaHei",sans-serif; }
.login-intro-skip:hover,.login-intro-skip:focus-visible { color:#241609; background:#ddb96f; border-color:#f3d392; outline:0; }
.login-intro-skip i { font:normal 22px/1 Arial,sans-serif; transform:translateY(-1px); }
.login-backdrop { position:absolute; inset:0; background:linear-gradient(90deg,rgba(5,5,4,.96) 0%,rgba(6,6,5,.8) 48%,rgba(5,5,4,.55)),url("/assets/generated/home-bg.png") center/cover no-repeat; filter:saturate(.7) contrast(1.05); }
.login-panel { position:relative; width:min(440px,100%); padding:34px 36px 38px; border:1px solid #8f713e; border-radius:4px; background:rgba(14,13,10,.94); box-shadow:0 26px 80px #000c,inset 0 0 0 4px #c89d4312; }
.login-panel>header { display:flex; align-items:center; gap:17px; padding-bottom:25px; border-bottom:1px solid #745d352f; }
.login-brand-logo { display:block; width:68px; height:68px; flex:none; object-fit:contain; border:1px solid #b28c4b; background:#050504; }
.login-panel>header small { color:#8e8169; font-size:9px; letter-spacing:2px; }
.login-panel>header h1 { margin:4px 0; color:#f0d393; font:27px "STKaiti",serif; letter-spacing:0; }
.login-panel>header p { margin:0; color:#a89a7d; font-size:12px; }
.login-tabs { display:grid; grid-template-columns:1fr 1fr; margin:26px 0 23px; border:1px solid #665231; }
.login-tabs button { height:43px; border:0; border-left:1px solid #665231; color:#94866e; background:#0d0d0b; cursor:pointer; font:14px "FangSong",serif; }
.login-tabs button:first-child { border-left:0; }
.login-tabs button[aria-selected="true"] { color:#201407; background:#d1aa60; font-weight:700; }
.login-panel form { display:grid; gap:17px; }
.login-panel form>label { display:grid; gap:8px; color:#baa982; font-size:12px; }
.login-panel input { width:100%; height:46px; border:1px solid #594a30; border-radius:2px; outline:0; padding:0 13px; color:#f2deb4; background:#090a09; font:14px "Microsoft YaHei",sans-serif; }
.login-panel input:focus { border-color:#c49a50; box-shadow:0 0 0 2px #c49a5018; }
.login-panel input::placeholder { color:#6f685a; }
.login-code-field { display:grid; grid-template-columns:minmax(0,1fr) 112px; gap:8px; }
.login-code-field button { border:1px solid #806437; border-radius:2px; color:#d8b66f; background:#17130d; cursor:pointer; font-size:12px; }
.login-code-field button:disabled { opacity:.55; cursor:not-allowed; }
.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 { height:49px; margin-top:3px; border:1px solid #a67c36; border-radius:2px; color:#211305; background:#d4ad62; cursor:pointer; font:700 16px "STKaiti",serif; }
.login-submit:disabled { opacity:.46; cursor:not-allowed; }
.login-loading { min-height:100dvh; display:grid; place-content:center; justify-items:center; gap:14px; color:#bca36e; background:#090907; }
.login-loading span { display:grid; place-items:center; width:56px; height:62px; border:1px solid #9f7b3f; font:30px "STKaiti",serif; }
.login-loading p { font:13px "FangSong",serif; }
.character-phone-input { margin-top:10px; }
.character-phone-input.is-invalid { border-color:#aa584a; }
.character-phone-deferred { display:flex; align-items:center; gap:12px; margin-top:10px; padding:12px 14px; border:1px solid rgba(153,112,59,.42); background:rgba(20,14,8,.48); }
.character-phone-deferred > span { display:grid; width:34px; height:36px; flex:none; place-items:center; border:1px solid #8c6335; color:#c99e57; font:20px "STKaiti",serif; }
.character-phone-deferred p { display:grid; gap:4px; margin:0; }
.character-phone-deferred b { color:#d8bd84; font-size:12px; font-weight:500; }
.character-phone-deferred small { color:#91836c; font-size:10px; line-height:1.6; }

@media(max-width:600px) {
  .login-page { padding:14px; align-items:center; }
  .login-intro-audio { top:max(14px,env(safe-area-inset-top)); left:max(14px,env(safe-area-inset-left)); width:40px; height:40px; }
  .login-intro-skip { top:max(14px,env(safe-area-inset-top)); right:max(14px,env(safe-area-inset-right)); min-width:82px; height:40px; padding:0 13px; }
  .login-panel { padding:25px 20px 28px; }
  .login-panel>header h1 { font-size:23px; }
}

@media(min-width:821px) {
  .home-eight-modes.user-access-home .home-utility-dock { right:auto; left:50%; top:50%; width:min(560px,calc(100vw - 40px)); grid-template-columns:repeat(2,minmax(0,1fr)); transform:translate(-50%,-50%); }
  .home-eight-modes.user-access-home .utility-entrance { min-height:92px; padding:14px; }
}
@media(max-width:820px) {
  .home-eight-modes.user-access-home .home-utility-dock { position:relative; inset:auto; width:auto; margin:110px 18px 20px; grid-template-columns:1fr; transform:none; }
}

/* Mobile layout consolidation: keep every game surface usable without page-level horizontal scrolling. */
html { -webkit-text-size-adjust:100%; }
body { max-width:100%; overflow-x:hidden; }
img,video,canvas { max-width:100%; }
button,input,select,textarea { touch-action:manipulation; }

@media (max-width:820px) {
  .dungeon-shell,.character-page,.treasure-page,.ranking-page,.streamer-import-page { width:100%; max-width:100vw; overflow-x:hidden; }
  .game-header,.dungeon-header,.character-system-header,.treasure-header,.ranking-header,.streamer-import-header {
    padding-right:max(16px,env(safe-area-inset-right));
    padding-left:max(16px,env(safe-area-inset-left));
  }
  .character-header-token { min-width:0; max-width:100%; clip-path:none; }
  .character-header-token > div { min-width:0; }
  .character-header-token b { overflow-wrap:anywhere; }
  .character-header-token button { min-width:48px; min-height:40px; }

  .treasure-header { grid-template-columns:1fr; gap:14px; min-height:0; padding-top:18px; padding-bottom:22px; }
  .treasure-header .ink-back { justify-self:start; }
  .treasure-heading { width:100%; min-width:0; text-align:left; }
  .treasure-heading h1 { font-size:34px; }
  .treasure-custodian,.draw-archive-link { justify-self:stretch; width:100%; min-width:0; transform:none; }
  .treasure-main { width:calc(100% - 24px); }
  .treasure-stats { grid-template-columns:repeat(3,minmax(0,1fr)); min-height:0; clip-path:none; }
  .treasure-stats .is-total { grid-column:1/-1; }
  .treasure-stats > div { min-height:54px; padding:10px 7px; }
  .treasure-stats > div:nth-child(2)::before { display:none; }
  .archive-toolbar { grid-template-columns:1fr; gap:11px; padding:12px; }
  .artifact-search,.artifact-filter-stack,.archive-result-count { width:100%; min-width:0; }
  .artifact-categories,.artifact-rarities,.allocation-category-tabs {
    flex-wrap:nowrap;
    max-width:100%;
    overflow-x:auto;
    padding-bottom:5px;
    scrollbar-width:thin;
    scroll-snap-type:x proximity;
  }
  .artifact-categories button,.artifact-rarities button,.allocation-category-tabs button { flex:0 0 auto; min-height:40px; scroll-snap-align:start; }
  .archive-result-count { justify-content:flex-end; }
  .catalog-book { padding:20px 18px 24px; clip-path:none; }
  .catalog-book-heading { grid-template-columns:44px minmax(0,1fr); gap:10px; }
  .catalog-book-heading > b { grid-column:2; }
  .artifact-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .artifact-card { min-width:0; min-height:330px; grid-template-rows:auto minmax(150px,42vw) 1fr auto; }

  .allocation-main { width:calc(100% - 24px); }
  .allocation-command-bar { grid-template-columns:44px minmax(0,1fr); gap:12px; padding:15px; }
  .allocation-command-bar h2 { font-size:23px; }
  .allocation-recipient-tools { grid-column:1/-1; grid-template-columns:1fr; }
  .allocation-recipient-tools > label { grid-template-columns:82px minmax(0,1fr); }
  .allocation-recipient-tools .level-sort-toggle { width:100%; min-height:44px; }
  .allocation-catalog-panel { min-height:0; padding:18px 14px 22px; }
  .allocation-catalog-panel > header { align-items:stretch; flex-direction:column; }
  .allocation-catalog-panel header label { width:100%; grid-template-columns:48px minmax(0,1fr); }
  .allocation-catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .allocation-order-panel { width:100%; }

  .creation-scroll { padding:24px 18px; }
  .creation-scroll-heading { grid-template-columns:48px minmax(0,1fr); }
  .creation-scroll-heading > b { grid-column:2; }
  .creation-section { padding-right:0; padding-left:0; }
  .creation-section-title { grid-template-columns:42px minmax(0,1fr); }
  .creation-section-title > b,.creation-points { grid-column:2; justify-self:start; }
  .creation-stat-row { grid-template-columns:45px minmax(60px,1fr) 38px 34px 38px; gap:5px; padding:7px; }
  .creation-stat-row button { width:38px; height:38px; }
  .creation-actions { align-items:stretch; flex-direction:column-reverse; }
  .creation-actions button { width:100%; min-height:46px; }

  .profile-actions { align-items:stretch; }
  .profile-actions button { min-height:42px; }
  .character-edit-layout,.character-detail-grid,.allocation-layout { min-width:0; }
  .edit-character-identity > .account-history-actions { grid-column:1; grid-row:auto; width:100%; margin:10px 0 0; flex-direction:row; }
  .edit-character-identity > .account-history-actions button { flex:1; }
  .account-activation-panel { grid-template-columns:1fr; }
  .account-activation-panel > * { grid-column:1!important; }

  .ranking-board-shell,.character-level-board { overflow-x:auto; }
  .level-board-table { min-width:500px; }
  .streamer-import-preview > footer button,.streamer-parser-actions button { min-height:44px; }

  .artifact-modal-backdrop,.treasure-claim-backdrop,.treasure-success-backdrop,.treasure-rate-backdrop,
  .treasure-pity-backdrop,.treasure-bonus-backdrop,.daily-checkin-backdrop,.grant-history-backdrop {
    padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));
  }
  .artifact-modal,.treasure-claim-dialog,.treasure-success-dialog,.treasure-rate-dialog,.treasure-pity-dialog,
  .treasure-bonus-dialog,.daily-checkin-dialog,.grant-history-dialog { max-width:100%; max-height:calc(100dvh - 20px); }
}

@media (max-width:520px) {
  .home-eight-modes .entrance-grid { grid-template-columns:1fr; grid-auto-rows:145px; }
  .home-eight-modes .entrance,.home-eight-modes .entrance-grid .entrance:last-child { min-height:145px; }
  .game-header { padding-top:max(12px,env(safe-area-inset-top)); }
  .game-header .player-token { grid-template-columns:42px minmax(0,1fr); }
  .game-header .player-stats { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; width:100%; padding:10px 0 0; border-top:1px solid rgba(173,132,68,.25); border-left:0; }
  .game-header .player-logout { grid-column:1/-1; width:100%; min-height:40px; margin-top:8px; }
  .character-system-heading h1,.treasure-heading h1,.ranking-heading h1,.streamer-import-header h1 { font-size:27px; }
  .character-header-token { display:grid; grid-template-columns:40px minmax(0,1fr) 48px; padding:10px; }
  .character-header-token > span { width:36px; height:38px; margin-right:8px; }
  .character-header-token button { padding:6px; }
  .artifact-grid,.allocation-catalog-grid { grid-template-columns:1fr; }
  .artifact-card { min-height:360px; grid-template-rows:auto minmax(190px,58vw) 1fr auto; }
  .treasure-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .catalog-book { padding-right:12px; padding-left:12px; }
  .catalog-book-heading h2 { font-size:21px; }
  .treasure-draw-page .treasure-draw-actions > div,
  .treasure-draw-page .treasure-draw-actions > aside,
  .treasure-draw-page .treasure-draw-actions > .treasure-draw-commands { grid-template-columns:1fr; }
  .treasure-draw-commands .is-daily-checkin { grid-column:1; }
  .treasure-draw-page .treasure-draw-rates { overflow-x:auto; justify-content:flex-start; }
  .treasure-draw-page .treasure-draw-rates > span { flex:0 0 auto; }
  .allocation-category-tabs button { min-width:72px; }
  .allocation-selected-item { grid-template-columns:70px minmax(0,1fr); }
  .creation-scroll { padding:20px 13px; clip-path:none; }
  .creation-section-title { align-items:start; }
  .creation-stat-track { display:none; }
  .creation-stat-row { grid-template-columns:minmax(48px,1fr) 40px 38px 40px; }
  .avatar-preset-grid { grid-template-columns:1fr; }
  .avatar-preset-grid button { min-height:240px; }
  .avatar-preset-grid .character-avatar-sprite { height:190px; }
  .daily-checkin-player-picker { align-items:stretch; flex-direction:column; }
  .daily-checkin-player-picker button { width:100%; }
  .grant-history-tools > div { align-items:stretch; flex-direction:column; }
  .grant-history-tools input,.grant-history-tools select { width:100%; }
  .currency-flow-balance { grid-template-columns:1fr; }
  .currency-flow-record>header { grid-template-columns:minmax(0,1fr) auto; gap:9px; }
  .currency-flow-record time { grid-column:1/-1; }
  .admin-currency-grant-form { grid-template-columns:1fr; }
  .currency-grant-account-panel>header { align-items:stretch; flex-direction:column; }
  .currency-grant-account-panel [role=search] { min-width:0; width:100%; }
  .currency-grant-account-list { max-height:260px; }
  .currency-grant-success code { width:100%; margin-left:0; overflow:hidden; text-overflow:ellipsis; }
  .streamer-import-header { padding-top:16px; }
  .streamer-import-header .ink-back { position:relative; inset:auto; justify-self:start; }
  .streamer-import-counter { width:100%; }
}

@media (max-width:360px) {
  .login-page { padding:8px; }
  .login-panel { padding:21px 14px 24px; }
  .login-panel > header { gap:11px; }
  .login-brand-logo { width:54px; height:54px; }
  .login-code-field { grid-template-columns:1fr; }
  .login-code-field button { min-height:42px; }
  .character-header-token { grid-template-columns:36px minmax(0,1fr); }
  .character-header-token button { grid-column:1/-1; width:100%; margin-top:7px; border-top:1px solid rgba(174,132,66,.3); border-left:0; }
  .creation-stat-row { grid-template-columns:minmax(42px,1fr) 36px 32px 36px; }
}

@media (max-height:520px) and (orientation:landscape) {
  .login-page { align-items:start; overflow-y:auto; }
  .login-panel { margin:auto; }
  .artifact-modal,.travel-export-dialog,.role-confirm-dialog,.daily-checkin-dialog,.grant-history-dialog { max-height:calc(100dvh - 12px); }
}

/* Keep the cultivation summary compact independently of account action counts. */
.edit-character-banner {
  grid-template-columns:80px minmax(0,1fr) auto;
  gap:18px 22px;
  min-height:0;
  padding:20px 24px;
}
.edit-character-banner > .character-avatar-sprite { width:80px; height:96px; }
.edit-character-identity { display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.edit-character-identity > small { letter-spacing:0; }
.edit-character-identity h2 { margin:0; font-size:28px; letter-spacing:0; line-height:1.3; overflow-wrap:anywhere; }
.edit-character-identity p { line-height:1.6; }
.edit-character-toolbar { display:flex; flex-direction:column; align-items:stretch; gap:10px; min-width:0; width:280px; }
.edit-character-toolbar > .account-history-actions { display:flex; justify-content:flex-end; gap:8px; }
.edit-character-toolbar > .account-history-actions button { min-height:36px; padding:7px 14px; font-size:12px; }
.edit-character-toolbar .character-wallet-actions { display:flex; align-items:stretch; gap:8px; margin:0; }
.edit-character-toolbar .character-wallet-pill { box-shadow:none; }
.edit-character-toolbar .character-wallet-pill > small { display:none; }
.edit-character-toolbar .character-wallet-pill > b { grid-column:2; font-size:22px; }
.edit-character-toolbar .spirit-stone-debit-button { width:auto; min-width:64px; padding:6px 10px; font-size:12px; }
.edit-character-banner > .edit-mini-stats { grid-column:1/-1; margin:0; border:0; border-top:1px solid rgba(195,148,75,.3); background:transparent; }
.edit-character-banner .edit-mini-stats span { padding:14px 8px 0; gap:5px; font-size:12px; }
.edit-character-banner .edit-mini-stats b { font-size:23px; font-variant-numeric:tabular-nums; line-height:1.2; }
@media (max-width:760px) {
  .edit-character-banner { grid-template-columns:64px minmax(0,1fr); padding:16px; gap:16px; }
  .edit-character-banner > .character-avatar-sprite { width:64px; height:80px; }
  .edit-character-identity h2 { font-size:24px; }
  .edit-character-toolbar { grid-column:1/-1; width:100%; }
  .edit-character-toolbar > .account-history-actions { justify-content:flex-start; }
  .edit-character-toolbar > .account-history-actions button { flex:1; }
  .edit-character-banner .edit-mini-stats span { padding:12px 2px 0; font-size:11px; }
  .edit-character-banner .edit-mini-stats b { font-size:18px; }
}

/* 群雄试胆局 — square table, warm ivory tiles and an aged gold frame. */
.auction-page{min-height:100vh;padding:28px 4vw 84px;color:#e6dabe;background:radial-gradient(ellipse at 72% 30%,#25334255,transparent 58%),linear-gradient(120deg,#080b10e8,#111a24f5),url('../assets/generated/entry-treasures.png') center/cover fixed;font-family:'Microsoft YaHei',sans-serif}
.auction-page button,.auction-page input{font:inherit}
.auction-page button{cursor:pointer;transition:background .2s,border-color .2s,transform .2s;color:inherit;border-radius:0}
.auction-page button:disabled{cursor:default}
.auction-page button:focus-visible,.auction-page input:focus-visible{outline:2px solid #efd184;outline-offset:4px}
.auction-header{max-width:1280px;margin:0 auto 26px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.auction-back,.auction-rule-button{background:none;border:1px solid #8e744b55;padding:11px 17px;color:#c8b58e!important;font-size:13px!important}
.auction-rule-button span{margin-left:16px;color:#e3bb67}
.auction-heading{text-align:center}
.auction-heading>span{color:#aa956d;font-size:10px;letter-spacing:5px}
.auction-heading h1{font-family:'STKaiti','KaiTi',serif;font-size:36px;letter-spacing:7px;line-height:1.3;margin:6px 0 0;color:#f2dfb1;font-weight:600}
.auction-heading em{display:block;font-size:13px;font-family:'Microsoft YaHei',sans-serif;letter-spacing:5px;font-style:normal;color:#b99d67;margin-top:7px}
.auction-layout{max-width:1280px;margin:auto;display:grid;grid-template-columns:290px minmax(0,1fr);gap:38px;align-items:start}
.auction-players{padding:20px 18px;background:linear-gradient(150deg,#141c22ee,#0b1117ee);border:1px solid #9c805247;box-shadow:inset 0 0 0 4px #070c10,0 20px 45px #0004;position:relative}
.auction-players:before,.auction-players:after{content:'';position:absolute;width:18px;height:18px;pointer-events:none;border-color:#b5995d}
.auction-players:before{top:-1px;left:-1px;border-top:2px solid;border-left:2px solid}.auction-players:after{bottom:-1px;right:-1px;border-bottom:2px solid;border-right:2px solid}
.auction-section-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #b59a632f;padding-bottom:16px}
.auction-section-head span{font-size:9px;letter-spacing:2px;color:#8d8e83}.auction-section-head h2{font-family:'STKaiti','KaiTi',serif;font-size:25px;letter-spacing:3px;margin:5px 0 0;font-weight:500}
.auction-section-head>b{font-size:21px;color:#dabb78;font-family:Georgia,serif;font-weight:400}
.auction-entry-note{display:flex;justify-content:space-between;align-items:center;padding:20px 0 16px;gap:6px}.auction-entry-note strong{font-size:25px;font-family:Georgia,serif;color:#dabb78}.auction-entry-note small{font-size:11px;font-weight:400}.auction-entry-note>span{font-size:10px;color:#a0a59c}
.auction-search{width:100%;border:1px solid #77725a66;background:#070d12;padding:11px;color:#e6dabe;font-size:12px!important;box-sizing:border-box;border-radius:0}
.auction-account-list{max-height:465px;overflow-y:auto;margin-top:13px;padding-right:4px;scrollbar-width:thin;scrollbar-color:#6c5d3f #0d151c}
.auction-account{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:10px 8px;border:1px solid #47505a48;background:#111a22;margin-bottom:7px}
.auction-account img,.auction-player-top img{width:40px;height:43px;object-fit:cover;object-position:top;border:1px solid #99825855;filter:saturate(.65)}
.auction-account>span{min-width:0;flex:1}.auction-account b{font-size:13px;display:block}.auction-account small{display:block;margin-top:6px;font-size:10px;color:#969d95}.auction-account i{font-style:normal;width:20px;height:20px;border:1px solid #73634388;text-align:center;color:#bba776;flex-shrink:0}
.auction-account.is-selected{border-color:#c5a35d;background:#352c1d}.auction-account.is-selected i{color:#151713;background:#cfb477}.auction-account small.is-short{color:#c48072}
.auction-checkout{border-top:1px solid #9c805236;padding-top:12px;margin-top:13px}.auction-checkout p{display:flex;justify-content:space-between;font-size:11px;color:#989e91}.auction-checkout p b{color:#e2c07c}.auction-checkout>small{display:block;text-align:center;font-size:10px;margin-top:11px;color:#8d9188}
.auction-gold-button{border:1px solid #f0d498;background:linear-gradient(110deg,#a7833b,#ebd39a 48%,#b28c43);color:#211a0e!important;box-shadow:inset 0 0 0 3px #bfa267,0 0 24px #e4c67914;font-weight:700!important;font-size:13px!important;letter-spacing:1px;padding:15px 10px;width:100%}
.auction-gold-button:disabled{filter:saturate(.15);opacity:.4}.auction-gold-button:not(:disabled):hover{filter:brightness(1.12);transform:translateY(-1px)}
.auction-empty{font-size:13px;text-align:center;padding:25px 0;color:#9da49b}.auction-empty button{display:block;margin:14px auto 0;border:0;background:none;color:#d2b473}
.auction-player-note{font-size:11px;color:#9a9f94;line-height:1.8;margin:15px 0}
.auction-roster{max-height:620px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#6c5d3f #0d151c;padding-right:4px}
.auction-roster.is-compact{max-height:none;overflow:visible;padding-right:0}.auction-roster.is-compact .auction-player{padding:7px 9px;margin-bottom:6px}.auction-roster.is-compact .auction-player-top img{width:29px;height:30px}.auction-roster.is-compact .auction-mines{margin-top:5px;margin-left:38px}.auction-roster.is-compact .auction-mines button{height:26px;width:36px}.auction-roster.is-compact .auction-mines span{font-size:16px}
.auction-player{padding:10px;border:1px solid #52606a5e;background:#111a22;margin-bottom:9px;transition:opacity .3s}
.auction-player-top{display:flex;align-items:center;gap:9px}.auction-player-top img{width:34px;height:38px}.auction-player-top>span{flex:1;min-width:0}.auction-player-top b{display:block;font-size:13px;overflow-wrap:anywhere}.auction-player-top small{display:block;font-size:9px;color:#8e9b96;margin-top:4px}
.auction-arm{padding:4px 6px;font-size:10px!important;border:1px solid #a78b5855;background:#292719;color:#dbc18a!important;flex-shrink:0}
.auction-mines{display:flex;gap:8px;margin:10px 0 0 43px}.auction-mines button{width:43px;height:37px;background:radial-gradient(#40321d,#14171a);border:1px solid #9f844876;position:relative}.auction-mines span{font-family:'STKaiti','KaiTi',serif;font-size:19px;color:#d5c098}.auction-mines small{position:absolute;right:3px;bottom:1px;font-size:8px;color:#8e7c5c}
.auction-mines button:disabled:not(.mine-safe):not(.mine-hit){opacity:.45}.auction-mines .mine-safe{background:#152d26;border-color:#42644f}.auction-mines .mine-safe span{color:#a3d0b2}.auction-mines .mine-hit{background:#621f1d;border-color:#c26850}.auction-mines .mine-hit span{color:#fac09e}
.auction-player.is-risk{border-color:#d8af62;box-shadow:inset 3px 0 #d8af62;background:#25271f}.auction-player.is-out{opacity:.42}.auction-player.is-winner{border-color:#dbb667;background:#332d1d}.auction-player.is-winner small{color:#e0bf76}
.auction-log{border-top:1px solid #9c805236;padding-top:13px;margin-top:15px;font-size:10px}.auction-log>span{color:#c2a870;letter-spacing:2px}.auction-log p{color:#89978e;line-height:1.7;margin:7px 0}.auction-new{width:100%;border:1px solid #af925a;background:#272619;color:#e0c58b!important;font-size:11px!important;padding:11px;margin-top:13px}
.auction-game-area{min-width:0}.auction-board-caption{display:flex;justify-content:space-between;margin:0 4px 13px;gap:12px;font-size:11px;letter-spacing:2px;color:#a3a495}.auction-board-caption b{font-weight:400;color:#d0b57b;letter-spacing:1px}
.auction-board{max-width:790px;aspect-ratio:1;margin:auto;display:grid;grid-template:repeat(7,minmax(0,1fr))/repeat(7,minmax(0,1fr));gap:5px;padding:12px;background:linear-gradient(135deg,#b19353,#5a482c 40%,#c4a767 65%,#443820);border:2px solid #d4b977;border-radius:18px;box-shadow:0 0 0 5px #0d141c,0 0 0 6px #8e795140,0 30px 60px #0007,inset 0 0 0 5px #231c12;position:relative;isolation:isolate}
.auction-tile{min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid #ab874c;background:linear-gradient(135deg,#e5d7b1,#f3e7c9 55%,#cdbb90);color:#3b2e1b!important;padding:2px;border-radius:5px!important;position:relative;box-shadow:inset 0 0 0 2px #f8efd133,1px 1px 3px #0004}
.auction-tile b{font-family:'STKaiti','KaiTi',serif;font-size:clamp(10px,1.2vw,18px);font-weight:700;white-space:nowrap}.auction-tile small{font-size:clamp(8px,.78vw,11px);line-height:1.2;white-space:nowrap;color:#766343}.auction-card-seal{font-family:'STKaiti','KaiTi',serif;border:1px solid #917b54;border-radius:50%;height:23px;width:23px;line-height:22px;font-size:18px;color:#725735}.auction-prize-symbol{font-size:20px;line-height:1;color:#8a662b}
.auction-tile.tile-legendary{background:linear-gradient(130deg,#d5b267,#f8e3a3,#c59741)}.auction-tile.tile-legendary .auction-prize-symbol{color:#a06d17}.auction-tile.tile-epic .auction-prize-symbol{color:#73536e}
.auction-tile.tile-card:not(:disabled):hover{transform:translateY(-2px);background:#fff0c7;box-shadow:0 0 20px #efce8566}.auction-tile.is-active{z-index:3;transform:scale(1.07);background:#fff3ae!important;border:2px solid #fff4bc;box-shadow:0 0 0 2px #bd9142,0 0 28px #ffc956,0 0 60px #ffbd3355}
.auction-board:not(.is-spinning) .auction-tile.is-active{animation:auction-win-glow 1.4s infinite alternate}
.auction-board-center{grid-area:2/2/7/7;display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;overflow:hidden;text-align:center;padding:20px 16px;background:radial-gradient(ellipse at 50% 55%,#34251870,transparent 75%),linear-gradient(140deg,#211c15,#120f10 60%,#191611);box-shadow:inset 0 0 0 1px #be9c5144,inset 0 0 35px #0009;color:#dac8a2;gap:9px}
.auction-board-center:before{content:'';position:absolute;inset:11px;border:1px solid #b3985630;pointer-events:none}.auction-board-center:after{content:'群 雄 夺 宝';position:absolute;right:20px;top:85px;writing-mode:vertical-rl;font-family:'STKaiti','KaiTi',serif;color:#c0a66812;font-size:27px;letter-spacing:13px;pointer-events:none}
.auction-mode-tabs{position:absolute;top:28px;left:50%;transform:translateX(-50%);display:flex;border:1px solid #c5aa664f;white-space:nowrap;background:#0c1011;z-index:1}
.auction-mode-tabs button{border:0;background:transparent;color:#9c947f!important;padding:12px 20px;font-size:12px!important;letter-spacing:1px}.auction-mode-tabs button[aria-selected=true]{color:#e8ca87!important;background:linear-gradient(#52422b,#2d261c);box-shadow:inset 0 -2px #c6a35f}
.auction-center-art{position:relative;width:95px;height:95px;margin-top:50px;display:grid;place-items:center;transform:rotate(45deg);border:1px solid #b2914b3d;box-shadow:inset 0 0 0 7px #181913,inset 0 0 0 8px #b2914b26;background:radial-gradient(#6a512721,#0000)}.auction-center-art span{transform:rotate(-45deg);font-family:'STKaiti','KaiTi',serif;font-size:65px;color:#c7a365;font-weight:400;text-shadow:0 0 35px #d3b36a38}
.auction-center-kicker{color:#aa9265;font-size:10px;letter-spacing:3px;margin-top:14px}.auction-board-center h2{font-family:'STKaiti','KaiTi',serif;font-size:40px;letter-spacing:6px;color:#efdcaf;font-weight:500;margin:2px 0 0;line-height:1.3}.auction-board-center>p{font-size:12px;color:#a59e89;margin:2px 0 10px;line-height:1.8}
.auction-dimension{margin:7px 0 0}.auction-dimension>small{font-size:10px;color:#857e6e;letter-spacing:2px}.auction-dimension>div{display:flex;gap:5px;margin-top:10px}.auction-dimension button{border:1px solid #7b6a4750;padding:8px 10px;font-size:12px!important;background:#161917;color:#a79e87!important}.auction-dimension button.is-selected{background:#4a3b23;color:#efd390!important;border-color:#b09357}
.auction-center-hint{font-size:10px;color:#ad9160;letter-spacing:1px;margin-top:12px}.auction-center-bottom{position:absolute;bottom:27px;display:flex;gap:10px;font-size:9px;color:#796f59;letter-spacing:1px}.auction-center-bottom i{font-style:normal;font-size:6px;color:#af8d4d}
.auction-spin-button{width:220px;margin-top:14px;display:flex;justify-content:space-between;padding:16px 26px;font-size:15px!important}.auction-result{display:flex;flex-direction:column;gap:8px;margin:4px 0 30px}.auction-result>strong{font-size:12px;color:#bfb597}.auction-result>b{font:42px Georgia,serif;color:#e7c678}.auction-result>b small{font:12px 'Microsoft YaHei',sans-serif}.auction-result>span{font-size:17px;letter-spacing:1px;color:#d3acdf}.auction-result>span.reward-legendary{color:#f2c975}.auction-result>small{color:#90aa91;font-size:10px}.auction-retry{border:0;background:none;color:#e2c27b;font-size:11px!important}
.auction-odds{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px 25px;margin:26px 0 0;border-top:1px solid #ab936534;padding-top:17px;font-size:11px;color:#92968c}.auction-odds>span{color:#b3a17e}.auction-odds p{margin:0}.auction-odds b{font:17px Georgia,serif;color:#d8bc80;margin-right:5px}.auction-table-hint{text-align:center;font-size:10px;color:#6f7a76;letter-spacing:1px;margin-top:17px}
.auction-notice,.auction-rules{max-width:1280px;margin:0 auto 20px;padding:14px 18px;border:1px solid #ae8d4b73;background:#302519;color:#e2bd81;font-size:12px;line-height:1.8;box-sizing:border-box}.auction-notice{display:flex;justify-content:space-between}.auction-notice button{border:0;background:none}.auction-rules p{margin:7px 0;color:#b0a895}
.auction-modal{position:fixed;inset:0;z-index:1500;background:#030709d9;backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:25px;overflow:auto}
.auction-general-dialog{position:relative;width:370px;max-width:100%;box-sizing:border-box;padding:33px 26px 25px;background:radial-gradient(ellipse at 85% 15%,#34514844,transparent 60%),linear-gradient(130deg,#151e1a,#0a0d0b 75%);border:1px solid #b8a16a;color:#c8d7bd;box-shadow:0 0 0 5px #151813,0 0 0 6px #6d6548,10px 10px 0 6px #02040370,0 20px 80px #000;animation:auction-card-in .3s ease-out}
.auction-general-dialog:before{content:'';position:absolute;inset:8px;border:1px solid #7d77584d;pointer-events:none}.auction-card-close{position:absolute;right:12px;top:10px;background:none;border:0;font-size:22px!important;color:#b6a675!important;padding:2px 5px;z-index:2}
.auction-general-heading{display:flex;align-items:center;gap:16px;padding-bottom:19px;border-bottom:1px solid #b099593f}.auction-general-heading>span{display:grid;place-items:center;border:1px solid #8ba98b;border-radius:50%;width:44px;height:44px;flex-shrink:0;font:25px 'STKaiti','KaiTi',serif;color:#c0dac4}.auction-general-heading h2{font-family:'STKaiti','KaiTi',serif;letter-spacing:3px;font-size:32px;line-height:1.2;font-weight:500;margin:0;color:#f0dfac;flex:1}.auction-general-heading small{font-size:10px;max-width:32px;line-height:1.6;color:#99b0a0}
.auction-general-sub{display:flex;justify-content:space-between;margin-top:17px;color:#8c977e;font-size:11px;letter-spacing:1px}.auction-general-sub b{color:#b8cdb8;font-weight:400;border-left:3px solid #82949e;padding-left:8px}.auction-general-emblem{text-align:right;color:#94b7a1;text-shadow:0 0 12px #bff4d688;letter-spacing:5px;margin-top:15px;font-size:15px}.auction-general-personality{font-family:'STKaiti','KaiTi',serif;font-size:18px;letter-spacing:2px;color:#b8caae;margin:12px 0 22px}
.auction-five-stats{display:flex;flex-direction:column;gap:13px}.auction-five-stats>div{display:grid;grid-template-columns:43px 39px 1fr;gap:10px;align-items:center;font-size:13px}.auction-five-stats strong{font:24px Georgia,serif;color:#dbdbbf;font-weight:400}.auction-five-stats i{height:5px;background:linear-gradient(to right,#839e87 0 var(--stat),#37423a var(--stat) 100%);position:relative}.auction-five-stats .is-focus span,.auction-five-stats .is-focus strong{color:#f1ce81}.auction-five-stats .is-focus i{background:linear-gradient(to right,#ccb36f 0 var(--stat),#37423a var(--stat) 100%)}
.auction-general-foot{font-size:10px;color:#7c8f7b;margin:25px 0 18px}.auction-general-foot b{color:#d8b87e;font-weight:400}.auction-general-actions{display:flex;gap:9px}.auction-general-actions button{border:1px solid #a68d4f55;background:#090b09;color:#beab78!important;font-size:11px!important;padding:13px 7px;flex:1}.auction-general-actions button:hover{border-color:#ccb36f;background:#202619}
@keyframes auction-win-glow{to{box-shadow:0 0 0 2px #bd9142,0 0 35px #ffe09c,0 0 85px #ffbd3377}}
@keyframes auction-card-in{from{opacity:0;transform:translateY(20px) rotateY(-18deg)}to{opacity:1;transform:none}}
@media(min-width:1600px){.auction-page{padding-top:36px}.auction-layout{gap:50px;grid-template-columns:310px minmax(0,1fr)}.auction-account-list{max-height:530px}}
@media(max-width:1050px){.auction-page{padding:24px 24px 75px}.auction-layout{grid-template-columns:245px minmax(0,1fr);gap:22px}.auction-players{padding:16px 12px}.auction-center-art{width:65px;height:65px}.auction-center-art span{font-size:46px}.auction-board-center h2{font-size:30px}.auction-mode-tabs{top:19px}.auction-mode-tabs button{padding:9px 15px}.auction-center-kicker{font-size:8px;letter-spacing:1px;margin-top:7px}.auction-board-center{gap:6px;padding:13px 10px}.auction-board-center>p{font-size:10px;margin-bottom:0}.auction-dimension button{padding:6px 7px;font-size:10px!important}.auction-center-hint{margin-top:3px}.auction-center-bottom{bottom:17px;gap:7px;font-size:8px}.auction-spin-button{width:175px;padding:12px 18px}.auction-card-seal{width:17px;height:17px;line-height:17px;font-size:13px}.auction-tile{gap:3px}.auction-result>b{font-size:32px}.auction-result>span{font-size:13px}}
@media(max-width:780px){.auction-header{gap:12px;margin-bottom:22px}.auction-heading h1{font-size:28px;letter-spacing:4px}.auction-heading>span{font-size:8px;letter-spacing:2px}.auction-heading em{font-size:10px;letter-spacing:3px}.auction-back,.auction-rule-button{padding:8px 9px;font-size:10px!important}.auction-rule-button span{display:none}.auction-layout{grid-template-columns:1fr;gap:25px}.auction-players{max-width:650px;width:100%;box-sizing:border-box;margin:auto}.auction-account-list{display:grid;grid-template-columns:1fr 1fr;gap:6px;max-height:280px}.auction-account{margin:0}.auction-roster{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:none}.auction-player{margin:0}.auction-checkout{margin-top:15px}.auction-game-area{grid-row:2}.auction-center-art{width:75px;height:75px}.auction-center-art span{font-size:50px}.auction-tile b{font-size:clamp(10px,2vw,16px)}.auction-tile small{font-size:clamp(8px,1.4vw,10px)}.auction-center-kicker{margin-top:13px}.auction-board-center h2{font-size:32px}.auction-board-center>p{font-size:11px}.auction-dimension button{font-size:11px!important;padding:8px}.auction-center-bottom{bottom:22px}.auction-header{max-width:650px}.auction-general-dialog{width:365px}}
@media(max-width:480px){.auction-page{padding:20px 12px 75px}.auction-heading h1{font-size:24px;letter-spacing:3px}.auction-heading>span{font-size:7px}.auction-board{padding:6px;gap:3px;border-radius:12px}.auction-tile{border-radius:3px!important;gap:3px}.auction-card-seal{display:none}.auction-prize-symbol{font-size:14px}.auction-tile b{font-size:10px}.auction-tile small{font-size:8px}.auction-mode-tabs{top:16px}.auction-mode-tabs button{padding:8px 12px;font-size:10px!important}.auction-center-art{width:45px;height:45px;margin-top:34px}.auction-center-art span{font-size:34px}.auction-center-kicker{font-size:7px;margin-top:3px;letter-spacing:1px}.auction-board-center{gap:4px;padding:7px}.auction-board-center h2{font-size:25px;letter-spacing:3px}.auction-board-center>p{font-size:9px;margin:0}.auction-dimension{margin:2px 0 0}.auction-dimension>small{font-size:8px;letter-spacing:1px}.auction-dimension>div{gap:3px;margin-top:5px}.auction-dimension button{padding:5px 6px;font-size:9px!important}.auction-center-hint{font-size:8px;margin-top:2px}.auction-center-bottom{bottom:12px;font-size:7px;gap:5px;letter-spacing:0}.auction-spin-button{width:150px;margin-top:6px;padding:10px 14px;font-size:11px!important}.auction-result{gap:4px;margin:0 0 15px}.auction-result>b{font-size:25px}.auction-result>strong{font-size:10px}.auction-result>span{font-size:11px}.auction-result>small{font-size:8px}.auction-odds{gap:10px 14px}.auction-odds>span{width:100%;text-align:center}.auction-odds{font-size:9px}.auction-odds b{font-size:15px}.auction-board-caption{font-size:9px;letter-spacing:0}.auction-roster{gap:6px}.auction-player{padding:8px 6px}.auction-player-top{gap:5px}.auction-player-top b{font-size:11px}.auction-player-top img{width:28px;height:33px}.auction-arm{font-size:9px!important;padding:3px}.auction-mines{margin-left:32px;gap:5px}.auction-mines button{width:31px;height:30px}.auction-general-dialog{padding:30px 23px 21px}.auction-modal{padding:18px}.auction-general-heading h2{font-size:29px}.auction-general-heading{gap:12px}}
@media(prefers-reduced-motion:reduce){.auction-page *{animation:none!important;transition:none!important}}
.auction-sound-toggle{padding:0;border:0;background:none;color:#bba779!important;font-size:10px!important;margin-left:auto;white-space:nowrap}
.auction-preview-buttons{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:13px}.auction-preview-buttons>span{font-size:11px;color:#b7a477}.auction-preview-buttons button,.auction-preview-exit{border:1px solid #aa8b4d88;background:#1c201b;color:#e0c489!important;font-size:11px!important;padding:8px 12px}
.auction-marquee{position:absolute;inset:0;pointer-events:none;z-index:5}.auction-marquee i{position:absolute;width:5px;height:5px;border-radius:50%;background:#71603f;box-shadow:0 0 2px #ffe4a977;left:calc(3% + mod(var(--lamp),7)*15.6%);top:3px}.auction-marquee i:nth-child(n+8):nth-child(-n+14){top:auto;bottom:3px}.auction-marquee i:nth-child(n+15):nth-child(-n+21){left:3px;top:calc(3% + mod(var(--lamp),7)*15.6%)}.auction-marquee i:nth-child(n+22){left:auto;right:3px;top:calc(3% + mod(var(--lamp),7)*15.6%)}
.is-spinning .auction-marquee i,.is-celebrating .auction-marquee i{background:#ffecaf;box-shadow:0 0 9px #ffd66b,0 0 14px #f99c22;animation:auction-lamp .48s infinite alternate;animation-delay:calc(var(--lamp)*-.09s)}
.auction-tile.is-trail{background:#f5dba3!important;box-shadow:0 0 17px #e9af3555;filter:brightness(1.12)}.auction-tile.is-bonus-hit{background:#ffdd83!important;border-color:#fff0b4;box-shadow:0 0 0 2px #ca8539,0 0 25px #ffbc4d;animation:auction-hit .5s infinite alternate}.auction-tile.is-main-hit{border-color:#fffce3;animation:auction-hit .65s infinite alternate}.auction-bonus-coin{position:absolute;inset:auto 0 5px;font-size:15px;line-height:1.2;font-weight:700;color:#924420;text-shadow:0 1px #fff4cc;font-style:normal;animation:auction-coin-in .5s ease-out;z-index:4}.is-bonus-hit .auction-prize-symbol{opacity:.4}
.auction-board.bonus-four{animation:auction-board-flash .55s infinite alternate}.auction-board.bonus-three{box-shadow:0 0 45px #aa7bc455,0 0 0 5px #0d141c}.auction-center-art.is-bonus{animation:auction-art-pulse .45s infinite alternate}.auction-win-title{text-shadow:0 0 18px #e6b84b88;animation:auction-title-in .55s ease-out}
.auction-fireworks{position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden}.auction-fireworks i{position:absolute;width:5px;height:14px;left:50%;top:48%;border-radius:2px;background:var(--spark-color);opacity:0;transform:rotate(calc(var(--spark)*15deg));animation:auction-spark 2.6s ease-out infinite;animation-delay:calc(mod(var(--spark),3)*.15s)}.auction-fireworks>span{position:absolute;left:50%;top:48%;width:20px;height:20px;border:2px solid #ecca7888;border-radius:50%;animation:auction-ring 2.6s ease-out infinite}.auction-fireworks>span:last-child{animation-delay:.25s}.auction-board-center>*:not(.auction-fireworks){z-index:1}
.auction-result{gap:6px;margin-bottom:23px;z-index:1}.auction-stone-counter{animation:auction-title-in .65s ease-out}.auction-confirm-award{padding:11px 20px;margin-top:5px;font-size:12px!important;width:220px;max-width:100%}.auction-result>small.auction-pending-label{color:#edc880}.auction-result>small.auction-reward-breakdown{color:#a89a75}.auction-bonus-progress{display:flex;gap:7px;justify-content:center;margin-top:4px}.auction-bonus-progress span{display:flex;flex-direction:column;border:1px solid #b3985755;padding:7px;gap:5px;color:#867b5d;font-size:10px}.auction-bonus-progress b{font-weight:400;font-size:12px}.auction-bonus-progress .is-lit{color:#ffe5a4;background:#554020;border-color:#ddb663;box-shadow:0 0 12px #ffc14d44}.auction-new.is-pending{background:#46351c;color:#f1d192!important}
.auction-lucky-chances{display:flex;justify-content:center;flex-wrap:wrap;align-items:center;gap:9px 20px;font-size:10px;color:#b7a27c;margin-top:14px}.auction-lucky-chances b{font-weight:400;color:#dfb66f}.auction-lucky-chances small{font-size:9px;color:#889087}.auction-lucky-chances button{font-size:10px!important;background:none;border:0;color:#c1a269!important;padding:0}
.auction-general-emblem{letter-spacing:3px;font-size:16px}.auction-general-emblem small{margin-left:10px;letter-spacing:0;color:#b6ceb8;font-size:11px}.auction-general-emblem.is-six-star{color:#ffdc87;text-shadow:0 0 14px #ffc05c}.auction-general-emblem.is-six-star small{color:#ffdc87}.auction-winner-options,.auction-host-winner>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:5px}.auction-winner-options button,.auction-host-winner button{border:1px solid #ae8a4b;background:#272619;color:#f0d49c!important;font-size:11px!important;padding:8px 5px;overflow-wrap:anywhere}.auction-host-winner{z-index:2;font-size:12px;color:#efd091;max-width:100%}
.auction-fireworks{opacity:.45}.auction-fireworks i,.auction-fireworks>span{top:27%}.auction-result,.auction-win-title{position:relative;z-index:2}
.auction-side-column{display:flex;flex-direction:column;gap:18px;min-width:0}.auction-turn-dice{border:1px solid #9c80525c;background:linear-gradient(145deg,#19211fe8,#0c1317ee);padding:17px;box-shadow:inset 0 0 0 3px #070d12}.auction-dice-heading{display:flex;align-items:center;justify-content:space-between;gap:7px}.auction-dice-heading>span{font:22px 'KaiTi',serif;color:#efdaa4;letter-spacing:2px}.auction-dice-heading>small{font-size:9px;color:#9d9e8b}.auction-dice-controls{display:flex;align-items:end;gap:9px;margin-top:15px}.auction-dice-controls label{display:flex;flex-direction:column;gap:6px;font-size:10px;color:#b4a783;flex:1;min-width:0}.auction-dice-controls select{width:100%;border:1px solid #8d7446;background:#0f1919;color:#ecd3a1;padding:8px 5px;font:11px 'Microsoft YaHei',sans-serif}.auction-dice-controls button{border:1px solid #c6a765;background:#3a321e;color:#f6d797!important;padding:9px 7px;font-size:10px!important;white-space:nowrap}.auction-dice-controls button:disabled{opacity:.55}.auction-dice-display{display:flex;align-items:center;gap:16px;margin-top:17px;min-height:84px}.auction-dice-face{width:75px;height:75px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(140deg,#f4dea0,#bc8d3f);border:2px solid #d6ba77;color:#282013;box-shadow:inset 0 0 0 5px #9c7432,0 9px 16px #0005;clip-path:polygon(13% 0,87% 0,100% 13%,100% 87%,87% 100%,13% 100%,0 87%,0 13%)}.auction-dice-face small{font-size:9px;letter-spacing:2px}.auction-dice-face b{font:40px Georgia,'KaiTi',serif;line-height:1.15}.auction-dice-display p{margin:0;display:flex;flex-direction:column;gap:5px;min-width:0}.auction-dice-display p>b{font:20px 'KaiTi',serif;color:#e5c782}.auction-dice-display p>strong{font-size:15px;color:#efe4c5;overflow-wrap:anywhere}.auction-dice-display p small,.auction-dice-display p>span{font-size:10px;line-height:1.5;color:#9da893}.auction-turn-dice.is-rolling .auction-dice-face{animation:auction-dice-shake .24s linear infinite}
@keyframes auction-dice-shake{0%,100%{transform:rotate(-9deg) translateY(1px)}50%{transform:rotate(10deg) translateY(-6px)}}
@media(max-width:780px){.auction-side-column{max-width:650px;width:100%;margin:auto}.auction-turn-dice{padding:16px 20px}.auction-dice-controls{margin-top:11px}.auction-dice-controls label{max-width:180px}.auction-dice-controls button{padding:9px 15px}.auction-dice-display{min-height:76px}.auction-dice-face{width:68px;height:68px}}
.auction-tile.tile-legendary-stones{background:linear-gradient(130deg,#ccae70,#fae7bb,#b88436)}.auction-tile.tile-legendary-stones .auction-prize-symbol{color:#936019}.auction-tile.tile-stones-mid{background:linear-gradient(145deg,#e3d3a5,#f9edc7,#bfa876)}.auction-tile.tile-stones-high{background:linear-gradient(135deg,#c79543,#f4d67c,#b88132)}.auction-tile.tile-stones-high .auction-prize-symbol{color:#8b4b12}
.auction-demo-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:18px 0 13px;padding-top:15px;border-top:1px solid #bb98564d}.auction-demo-controls label{font-size:11px;color:#d9bf88;display:flex;align-items:center;gap:9px}.auction-demo-controls select{padding:8px 10px;border:1px solid #9b814e;background:#171b17;color:#ecd9ac;font:inherit}.auction-demo-controls button,.auction-demo-entry,.auction-demo-result-actions button{border:1px solid #ae8d4d;background:#242719;color:#f1d58d!important;padding:9px 13px;font-size:11px!important}.auction-demo-controls small{font-size:10px;color:#c0b18f}.auction-demo-entry{margin-top:5px}.auction-demo-result-actions{display:flex;justify-content:center;gap:8px}.auction-odds>span{width:100%;text-align:center}.auction-odds{gap:12px 23px}
@media(max-width:480px){.auction-demo-controls{gap:10px}.auction-demo-controls small{width:100%}.auction-demo-entry{padding:5px 10px;font-size:9px!important;margin-top:0}.auction-demo-result-actions{gap:4px}.auction-demo-result-actions button{padding:5px 7px;font-size:8px!important}.auction-odds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 8px;text-align:center}.auction-odds>span{grid-column:1/-1}.auction-odds p{white-space:nowrap}.auction-tile.tile-epic small,.auction-tile.tile-legendary-stones small{font-size:7px}}
@keyframes auction-lamp{to{opacity:.3}}@keyframes auction-hit{to{filter:brightness(1.22);transform:scale(1.045)}}@keyframes auction-board-flash{to{box-shadow:0 0 50px #ffb33277,0 0 0 5px #0d141c}}@keyframes auction-art-pulse{to{filter:brightness(1.6);box-shadow:0 0 30px #ffc76566}}@keyframes auction-title-in{from{opacity:0;transform:scale(.7) translateY(8px)}to{opacity:1;transform:none}}@keyframes auction-coin-in{from{opacity:0;transform:translateY(12px) scale(.5)}to{opacity:1;transform:none}}@keyframes auction-spark{5%{opacity:1}65%{opacity:.8}100%{opacity:0;transform:rotate(calc(var(--spark)*15deg)) translateY(-220px) rotate(150deg)}}@keyframes auction-ring{from{opacity:.8;transform:translate(-50%,-50%) scale(1)}to{opacity:0;transform:translate(-50%,-50%) scale(20)}}
@media(max-width:1050px){.auction-confirm-award{width:175px;padding:9px 12px}.auction-result{gap:5px;margin-bottom:20px}.auction-bonus-progress{gap:4px}.auction-bonus-progress span{padding:5px}.auction-board-center:has(.auction-result) .auction-center-art{width:47px;height:47px;margin-top:45px}.auction-board-center:has(.auction-result) .auction-center-art span{font-size:34px}.auction-board-center:has(.auction-host-winner) .auction-center-art{display:none}.auction-host-winner{margin-top:25px}}
@media(max-width:480px){.auction-sound-toggle{font-size:8px!important}.auction-board-caption{gap:6px}.auction-lucky-chances{gap:7px 12px}.auction-confirm-award{width:155px;font-size:10px!important;padding:8px}.auction-result{gap:4px;margin-bottom:0}.auction-board-center:has(.auction-result) .auction-center-art{width:28px;height:28px;margin-top:36px}.auction-board-center:has(.auction-result) .auction-center-art span{font-size:22px}.auction-board-center:has(.auction-result) h2{font-size:21px}.auction-bonus-progress span{font-size:8px;padding:3px}.auction-bonus-progress b{font-size:9px}.auction-bonus-coin{font-size:11px;bottom:2px}.auction-host-winner{font-size:10px}.auction-host-winner button{font-size:9px!important;padding:4px}.auction-general-dialog:has(.auction-winner-options){margin-top:auto;margin-bottom:auto}.auction-winner-options button{padding:6px;font-size:10px!important}}
@media(max-width:480px){.auction-center-bottom{display:none}.auction-center-hint{margin-top:5px}.auction-dimension>div{margin-top:5px}.auction-roster.is-compact .auction-mines{margin-left:0;justify-content:center}.auction-roster.is-compact .auction-player{margin-bottom:0;padding:8px 6px}}
.auction-general-actions{flex-wrap:wrap}.auction-general-actions .auction-general-dismiss{flex-basis:100%}
.auction-winner-overlay{z-index:1600}.auction-winner-dialog{text-align:center;width:420px;max-width:100%;box-sizing:border-box}.auction-winner-dialog>small{font-size:11px;letter-spacing:4px;color:#bfa36a}.auction-winner-dialog h2{font:25px 'STKaiti','KaiTi',serif;color:#f1d89a;margin:18px 0}.auction-winner-dialog>strong{display:block;font:32px 'STKaiti','KaiTi',serif;color:#ffe7ac;overflow-wrap:anywhere}.auction-winner-dialog>p{font-size:12px;line-height:1.9;color:#bbb29a}.auction-winner-dialog .auction-general-actions{display:grid;grid-template-columns:1fr 1fr;margin-top:24px}.auction-winner-dialog .auction-general-actions button:last-child{background:linear-gradient(135deg,#a2823e,#e7ca83);color:#211c12!important;border-color:#dfc487}.auction-arm:disabled{opacity:.6}.auction-player.is-winner .auction-arm{opacity:1}

/* Keep the shared draw pool above all host and player controls. */
.auction-layout{display:flex;flex-direction:column;gap:32px;max-width:1120px}
.auction-game-area{order:0;align-self:center;width:100%;max-width:820px}
.auction-side-column{order:1;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;width:100%;max-width:none;margin:0;align-items:start}
.auction-side-column .auction-players{width:100%;max-width:none;box-sizing:border-box;margin:0}
.auction-roster,.auction-roster.is-compact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:none;overflow:visible;padding:0}
.auction-roster .auction-player,.auction-roster.is-compact .auction-player{margin:0;padding:11px;min-width:0}
.auction-account-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:300px}
.auction-account-list .auction-account{margin:0}
.auction-roster-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.auction-roster-tools>span{font-size:11px;color:#9ba69e}
.auction-roster-tools>button{padding:8px 14px;border:1px solid #b69b6380;background:#25291f;color:#e8d0a0;font-size:12px}
.auction-member-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
.auction-member-remove{border:1px solid #765b4a88;background:#201c19;color:#be9c84!important;padding:4px 6px;font-size:10px!important}
.auction-member-remove:hover{border-color:#ba8d6f;color:#e4bca0!important}
.auction-add-players{padding:13px;background:#0a1218;border:1px solid #7f76544d;margin-bottom:16px}
.auction-add-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:210px;overflow:auto;margin-top:10px;scrollbar-width:thin}
.auction-add-list>button{display:flex;align-items:center;gap:8px;min-width:0;padding:8px;border:1px solid #525e6255;background:#141f25;text-align:left;font-size:12px}
.auction-add-list img{width:27px;height:31px;object-fit:cover;object-position:top}
.auction-add-list span{flex:1;min-width:0;overflow-wrap:anywhere}
.auction-add-list small{font-size:10px;color:#d6bb80}
.auction-add-list button:disabled{opacity:.35}
.auction-add-players>p,.auction-roster-minimum{font-size:11px;line-height:1.8;color:#d2b67e}
.auction-pool-note{font-size:11px!important;color:#c7ac6f!important;letter-spacing:3px;margin-top:16px!important}
.auction-rules .auction-odds{padding:17px 0 10px;border-top:1px solid #a2885455;border-bottom:1px solid #a2885430;margin-top:18px}
@media(max-width:780px){.auction-game-area{order:0;max-width:650px}.auction-side-column{grid-template-columns:1fr;max-width:650px;align-self:center}.auction-layout{gap:26px}.auction-side-column .auction-turn-dice{width:100%;box-sizing:border-box}}
@media(max-width:480px){.auction-roster,.auction-roster.is-compact{grid-template-columns:1fr}.auction-roster .auction-player,.auction-roster.is-compact .auction-player{padding:10px}.auction-member-actions{gap:8px}.auction-member-actions button{padding:6px 10px!important}.auction-add-list{grid-template-columns:1fr}.auction-roster-tools>span{font-size:10px}.auction-pool-note{font-size:9px!important;letter-spacing:1px;margin-top:7px!important}}

.ranking-reward-dialog { max-width:760px; max-height:calc(100dvh - 48px); overflow:auto; }
.ranking-summary-strip.is-travel > .ranking-travel-actions { grid-column:3/-1; display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; padding:8px 0; border:0; }
.ranking-travel-actions button { display:flex; align-items:center; justify-content:center; gap:7px; min-height:40px; padding:8px 12px; border:1px solid #a87834; color:#f0d399; background:#342616; font-size:13px; cursor:pointer; }
.ranking-travel-actions button:disabled { opacity:.45; cursor:not-allowed; }
.ranking-reward-tabs { display:flex; gap:0; margin:20px 0; border-bottom:1px solid #755628; }
.ranking-reward-tabs button { flex:1; padding:12px; border:0; border-bottom:2px solid transparent; background:transparent; color:#bcaa87; cursor:pointer; }
.ranking-reward-tabs button[aria-selected="true"] { border-bottom-color:#e1bd6e; color:#f3d99d; background:rgba(166,119,43,.15); }
.ranking-reward-dialog .ranking-player-picker { grid-template-columns:110px minmax(0,1fr); }
.ranking-reward-dialog .ranking-player-picker > div { grid-template-columns:minmax(0,1fr); }
.ranking-reward-pagination button { padding:8px 12px; border:1px solid #70542e; background:#1c160e; color:#d6c29b; cursor:pointer; overflow-wrap:anywhere; }
.ranking-reward-dialog button:disabled { opacity:.45; cursor:not-allowed; }
.ranking-reward-dialog button:focus-visible,.ranking-reward-dialog input:focus-visible,.ranking-reward-dialog select:focus-visible { outline:2px solid #e1bd6e; outline-offset:2px; }
.ranking-reward-account-picker > p { font-size:13px; line-height:1.6; }
.ranking-reward-package { display:flex; align-items:center; flex-wrap:wrap; gap:20px; margin:20px 0 0; padding:18px 0; border-block:1px solid #70542e; }
.ranking-reward-package > span { font-size:13px; color:#bcaa87; }
.ranking-reward-package strong { font-size:25px; color:#f1d18a; }
.ranking-reward-package small { font-size:14px; }
.ranking-reward-history h3 { display:flex; justify-content:space-between; align-items:center; font-size:16px; }
.ranking-reward-history h3 small { font-size:12px; font-weight:400; }
.ranking-reward-history article { padding:14px 0; border-bottom:1px solid #594329; }
.ranking-reward-history article header { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.ranking-reward-history time,.ranking-reward-history p { color:#c2b291; font-size:13px; line-height:1.6; }
.ranking-reward-history code { display:block; color:#9d8c6f; font-size:11px; overflow-wrap:anywhere; }
.ranking-reward-pagination { display:flex; align-items:center; justify-content:flex-end; gap:12px; margin-top:14px; font-size:12px; }
.ranking-reward-success { color:#95c5a4; font-size:14px; line-height:1.6; }
@media (max-width:820px) {
  .ranking-summary-strip.is-travel > .ranking-travel-actions { grid-column:1/-1; justify-content:flex-start; }
  .ranking-travel-actions button { flex:1 1 100px; }
  .ranking-reward-dialog { padding:22px 16px; }
  .ranking-reward-dialog .ranking-player-picker { grid-template-columns:1fr; }
  .ranking-reward-history article header { flex-direction:column; }
  .ranking-reward-package { gap:12px; }
}

.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="精良"] { --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="稀有"] { --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="史诗"] { --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="传说"] { --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="稀有"] .title-rim,.equipped-title[data-quality="史诗"] .title-rim,.equipped-title[data-quality="传说"] .title-rim { display:block; }
.equipped-title[data-quality="史诗"] .title-wing,.equipped-title[data-quality="传说"] .title-wing,.equipped-title[data-quality="史诗"] .title-sparks,.equipped-title[data-quality="传说"] .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="史诗"]::after,.equipped-title[data-quality="传说"]::after { animation:titleSweep 3.4s ease-in-out infinite; }
.equipped-title[data-quality="传说"] .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="史诗"] .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; }
@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="史诗"],.equipped-title[data-quality="传说"] { 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; } }
