:root {
  font-family: "Microsoft YaHei UI", "PingFang SC", Inter, system-ui, sans-serif;
  color: #f4f1fa;
  background: #08090d;
  font-synthesis: none;
  --panel: rgba(19, 19, 27, 0.9);
  --panel-soft: #111219;
  --line: rgba(255, 255, 255, 0.08);
  --muted: #9995a8;
  --purple: #a77be9;
  --purple-strong: #7d4cc6;
  --green: #86d5a5;
}

* { box-sizing: border-box; }

html { background: #08090d; }
html:has(body.drawer-open), body.drawer-open { overflow: hidden; }

body {
  margin: 0;
  min-width: 1100px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 24% -10%, rgba(113, 63, 161, 0.18), transparent 30%),
    radial-gradient(circle at 95% 10%, rgba(41, 106, 88, 0.12), transparent 24%),
    #08090d;
}

button, input, select { font: inherit; }
button, select { cursor: pointer; }

button:focus-visible, input:focus-visible, select:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 192px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(9, 10, 14, 0.94);
  backdrop-filter: blur(24px);
}

.brand-mark {
  display: flex;
  height: 116px;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand-rune {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(184, 139, 245, 0.35);
  border-radius: 14px;
  color: #d6b7ff;
  background: linear-gradient(145deg, rgba(158, 95, 231, 0.25), rgba(90, 45, 139, 0.08));
  box-shadow: inset 0 0 24px rgba(150, 90, 228, 0.14);
}

.side-nav { display: grid; gap: 8px; padding: 26px 14px; }

.nav-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 13px;
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #858290;
  background: transparent;
  text-align: left;
  transition: 160ms ease;
}

.nav-item:hover { color: #e9e3f1; background: rgba(255,255,255,.035); }
.nav-item.active { color: #efe5ff; border-color: rgba(165, 112, 235, .18); background: linear-gradient(90deg, rgba(135, 77, 207, .2), rgba(135, 77, 207, .04)); }
.nav-icon { width: 24px; color: #b894e7; font-size: 19px; text-align: center; }

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 22px 24px 28px;
  color: #6f6d78;
  font-size: 12px;
}

.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(134, 213, 165, .75); }

.main-content { width: calc(100% - 192px); margin-left: 192px; padding: 48px clamp(34px, 4vw, 70px) 80px; }
.view { display: none; }
.view.active { display: block; animation: view-in .28s ease; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }

.page-header { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; margin-bottom: 34px; }
.eyebrow { margin-bottom: 10px; color: #9f71dd; font-size: 11px; font-weight: 800; letter-spacing: .22em; }
h1 { margin: 0; font-size: clamp(36px, 4vw, 56px); line-height: 1.04; letter-spacing: -.045em; }
.page-subtitle { max-width: 660px; margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.header-metrics { display: flex; gap: 10px; }
.metric-card {
  display: grid;
  grid-template-columns: auto auto;
  gap: 1px 7px;
  min-width: 124px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(20, 20, 29, .62);
}
.metric-card.compact { min-width: 148px; }
.metric-card .metric-label { grid-column: 1 / -1; margin-bottom: 3px; color: #6e6a77; font-size: 10px; letter-spacing: .09em; }
.metric-card strong { font-size: 21px; }
.metric-card.compact strong { grid-column: 1 / -1; font-size: 14px; }
.metric-card span:last-child { align-self: end; color: #8f8a97; font-size: 11px; }

.filter-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(23, 23, 32, .92), rgba(13, 14, 20, .88));
  box-shadow: 0 22px 70px rgba(0,0,0,.12);
}

.filter-topline { display: grid; grid-template-columns: minmax(300px, 1fr) 174px 104px; gap: 10px; margin-bottom: 17px; }
.search-box { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 15px; color: #85818e; font-size: 23px; transform: translateY(-1px); }
.search-box input {
  width: 100%; height: 44px; padding: 0 48px 0 46px;
  border: 1px solid rgba(255,255,255,.09); border-radius: 11px;
  color: #f6f2fa; background: rgba(5,6,9,.5); outline: none;
}
.search-box input:focus { border-color: rgba(167, 123, 233, .52); box-shadow: 0 0 0 3px rgba(167, 123, 233, .08); }
.search-box kbd { position: absolute; right: 12px; min-width: 23px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; color: #716d78; background: #111219; font-size: 10px; text-align: center; }

.sort-select, .ghost-button {
  height: 44px; border: 1px solid var(--line); border-radius: 11px; color: #bab4c2; background: #111219; outline: none;
}
.sort-select { padding: 0 12px; }
.ghost-button { padding: 0 13px; }
.ghost-button:hover, .sort-select:hover { border-color: rgba(167, 123, 233, .28); color: #eee8f5; }

.filter-groups { display: grid; gap: 10px; }
.filter-row { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 10px; }
.filter-label { color: #746f7e; font-size: 12px; }
.chip-scroll { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: thin; scrollbar-color: #34303b transparent; }
.filter-chip { flex: none; padding: 7px 11px; border: 1px solid transparent; border-radius: 8px; color: #8f8a97; background: transparent; font-size: 12px; white-space: nowrap; }
.filter-chip:hover { color: #ded7e8; background: rgba(255,255,255,.04); }
.filter-chip.active { border-color: rgba(179, 131, 240, .25); color: #e8d8ff; background: rgba(137, 80, 207, .19); }

.result-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 22px 2px 14px; color: #77727f; font-size: 12px; }
.result-toolbar strong { color: #e5dced; font-size: 15px; }
.active-summary { max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hero-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.hero-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #111219;
  box-shadow: 0 14px 32px rgba(0,0,0,.18);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.hero-card:hover { transform: translateY(-4px); border-color: rgba(173, 127, 235, .28); box-shadow: 0 22px 48px rgba(0,0,0,.3), 0 0 0 1px rgba(126, 74, 191, .05); }
.portrait-wrap { position: relative; height: 216px; overflow: hidden; background: #17151f; }
.hero-portrait { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .45s ease; }
.hero-card:hover .hero-portrait { transform: scale(1.035); }
.portrait-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 36%, rgba(10,10,14,.28) 58%, #111219 100%); }
.cost-badge { position: absolute; top: 13px; left: 13px; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid color-mix(in srgb, var(--cost-color) 58%, white); border-radius: 9px; color: white; background: color-mix(in srgb, var(--cost-color) 60%, #111 40%); box-shadow: 0 4px 20px rgba(0,0,0,.35); font-size: 13px; font-weight: 800; }
.portrait-title { position: absolute; right: 17px; bottom: 10px; left: 17px; }
.portrait-title span { color: #b5adbb; font-size: 10px; letter-spacing: .09em; }
.portrait-title h2 { margin: 3px 0 0; font-size: 24px; letter-spacing: -.025em; }

.hero-card-body { padding: 13px 15px 15px; }
.trait-line { display: flex; min-height: 26px; flex-wrap: wrap; gap: 5px; }
.trait-line span { padding: 4px 7px; border: 1px solid rgba(130, 199, 153, .12); border-radius: 6px; color: #9ac9ab; background: rgba(77, 137, 97, .08); font-size: 10px; }
.role-line { display: flex; align-items: center; gap: 7px; margin: 8px 0 11px; color: #817c89; font-size: 11px; }
.role-dot { width: 5px; height: 5px; border-radius: 50%; background: #9b76d0; }

.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,255,255,.055); border-radius: 9px; background: rgba(5,6,9,.28); }
.mini-stats div { display: grid; gap: 2px; padding: 8px 6px; text-align: center; }
.mini-stats div + div { border-left: 1px solid rgba(255,255,255,.055); }
.mini-stats span { color: #625e69; font-size: 9px; }
.mini-stats strong { color: #d7d1dc; font-size: 11px; font-weight: 650; }

.skill-preview { margin-top: 11px; padding: 10px; border-radius: 10px; background: rgba(5,6,9,.34); }
.skill-preview-head { display: flex; align-items: center; gap: 9px; }
.skill-preview-head img { width: 32px; height: 32px; border: 1px solid rgba(179, 126, 241, .22); border-radius: 7px; object-fit: cover; }
.skill-preview-head div { display: grid; gap: 1px; }
.skill-preview-head span { color: #736d7a; font-size: 9px; }
.skill-preview-head strong { color: #dcd3e6; font-size: 12px; }
.skill-preview p { display: -webkit-box; overflow: hidden; margin: 8px 0 0; color: #7c7784; font-size: 10px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.card-action { display: flex; justify-content: space-between; margin-top: 12px; color: #7d7585; font-size: 10px; }
.card-action span { color: #ad81e5; font-size: 15px; line-height: 8px; }

.empty-state { padding: 90px 20px; border: 1px dashed rgba(255,255,255,.09); border-radius: 18px; color: var(--muted); text-align: center; }
.empty-glyph { color: #9d76d2; font-size: 46px; }
.empty-state h2 { margin: 10px 0 8px; color: #e8e1ed; }
.empty-state p { margin: 0 0 22px; font-size: 13px; }
.hidden { display: none !important; }

.primary-button { padding: 10px 16px; border: 1px solid rgba(178, 126, 241, .28); border-radius: 10px; color: #f1e7ff; background: linear-gradient(135deg, #7545b1, #583684); }
.primary-button:hover { filter: brightness(1.1); }

.quiet-view { max-width: 1050px; padding-top: 40px; }
.archive-empty { display: grid; max-width: 610px; justify-items: start; margin-top: 44px; padding: 38px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.archive-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 16px; color: #c198f2; background: rgba(142, 85, 211, .16); font-size: 25px; }
.archive-empty h2 { margin: 24px 0 7px; }
.archive-empty p { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 42px; }
.note-card { min-height: 220px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.note-card > span { color: #7954aa; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.note-card h2 { margin: 46px 0 9px; font-size: 18px; }
.note-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.source-link { display: inline-block; margin-top: 24px; color: #bb8cf4; font-size: 12px; text-decoration: none; }
.source-link-secondary { margin-left: 20px; }

.round-filter {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 10px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.round-filter-heading { display: flex; align-items: center; gap: 12px; }
.round-mode-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: rgba(5,6,9,.35); }
.round-mode { padding: 5px 9px; border: 0; border-radius: 6px; color: #77727f; background: transparent; font-size: 10px; }
.round-mode.active { color: #eadcff; background: rgba(137, 80, 207, .24); }
.round-controls { display: flex; min-height: 36px; align-items: center; gap: 9px; color: #77727f; font-size: 11px; }
.round-select { height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: #d2cbd9; background: #111219; outline: none; }
.round-select:hover { border-color: rgba(167, 123, 233, .28); }
.round-separator { color: #5f5a67; }

.charm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.charm-card {
  position: relative;
  display: flex;
  min-height: 300px;
  overflow: hidden;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background:
    radial-gradient(circle at 7% 2%, color-mix(in srgb, var(--charm-tone) 17%, transparent), transparent 36%),
    linear-gradient(145deg, #151620, #101117);
  box-shadow: 0 14px 32px rgba(0,0,0,.18);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.charm-card::after { position: absolute; inset: auto 0 0; height: 2px; content: ""; background: linear-gradient(90deg, transparent, var(--charm-tone), transparent); opacity: .45; }
.charm-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--charm-tone) 38%, transparent); box-shadow: 0 22px 48px rgba(0,0,0,.3); }
.charm-card-top { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.charm-glyph { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid color-mix(in srgb, var(--charm-tone) 34%, transparent); border-radius: 14px; color: var(--charm-tone); background: color-mix(in srgb, var(--charm-tone) 12%, #111219); box-shadow: inset 0 0 20px color-mix(in srgb, var(--charm-tone) 9%, transparent); }
.charm-glyph span { font-size: 20px; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--charm-tone) 65%, transparent)); }
.charm-card-identity { min-width: 0; }
.charm-card-identity > span { color: #74707c; font-size: 9px; letter-spacing: .08em; }
.charm-card-identity h2 { overflow: hidden; margin: 4px 0 0; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.charm-cost { display: grid; min-width: 44px; padding: 7px 9px; border: 1px solid rgba(228,187,98,.17); border-radius: 9px; color: #e5bd66; background: rgba(163,119,38,.09); text-align: center; }
.charm-cost strong { font-size: 16px; }
.charm-cost span { color: #8d784e; font-size: 8px; }
.charm-availability { display: flex; justify-content: space-between; gap: 14px; margin: 17px 0 12px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.055); border-radius: 8px; background: rgba(5,6,9,.28); font-size: 9px; }
.charm-availability span { color: #65616d; }
.charm-availability strong { overflow: hidden; color: #a9a3af; font-weight: 500; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.charm-effect { display: -webkit-box; overflow: hidden; margin: 0; color: #aaa4b0; font-size: 11px; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.charm-card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 17px; }
.charm-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.charm-badge { padding: 4px 7px; border: 1px solid rgba(180,132,240,.16); border-radius: 6px; color: #c9a5ec; background: rgba(125,75,179,.11); font-size: 9px; }
.charm-badge.muted { border-color: var(--line); color: #66616d; background: rgba(255,255,255,.02); }
.charm-badge.prismatic { border-color: rgba(108,198,190,.22); color: #8ed9d0; background: rgba(58,132,126,.1); }
.charm-card-action { flex: none; color: color-mix(in srgb, var(--charm-tone) 80%, white); font-size: 9px; }

.detail-charm { height: 100%; overflow-y: auto; background: radial-gradient(circle at 16% 0, color-mix(in srgb, var(--charm-tone) 17%, transparent), transparent 30%), #0d0e13; }
.charm-detail-hero { display: flex; min-height: 250px; align-items: center; gap: 28px; padding: 62px 56px 38px; border-bottom: 1px solid var(--line); }
.charm-detail-rune { position: relative; display: grid; width: 126px; height: 126px; flex: none; place-items: center; border: 1px solid color-mix(in srgb, var(--charm-tone) 38%, transparent); border-radius: 38px; color: var(--charm-tone); background: color-mix(in srgb, var(--charm-tone) 11%, #111219); box-shadow: inset 0 0 45px color-mix(in srgb, var(--charm-tone) 10%, transparent), 0 24px 60px rgba(0,0,0,.28); transform: rotate(7deg); }
.charm-detail-rune::before { position: absolute; inset: 10px; border: 1px solid color-mix(in srgb, var(--charm-tone) 20%, transparent); border-radius: 30px; content: ""; }
.charm-detail-rune span { font-size: 48px; filter: drop-shadow(0 0 16px color-mix(in srgb, var(--charm-tone) 58%, transparent)); transform: rotate(-7deg); }
.charm-detail-title > span { color: color-mix(in srgb, var(--charm-tone) 72%, #aaa); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.charm-detail-title h2 { margin: 8px 0 16px; font-size: 40px; letter-spacing: -.04em; }
.charm-detail-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.charm-detail-tags span { padding: 6px 9px; border: 1px solid color-mix(in srgb, var(--charm-tone) 20%, transparent); border-radius: 7px; color: #bdb5c4; background: rgba(10,10,14,.34); font-size: 9px; }
.charm-detail-scroll { padding: 34px 56px 60px; }
.charm-effect-block { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: rgba(17,18,25,.82); }
.charm-effect-block + .charm-effect-block { margin-top: 10px; }
.charm-effect-block.upgraded { border-color: rgba(175,124,235,.2); background: rgba(123,73,180,.075); }
.charm-effect-block.prismatic { border-color: rgba(103,202,191,.2); background: rgba(55,134,126,.07); }
.charm-effect-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.charm-effect-heading > div { display: grid; gap: 3px; }
.charm-effect-heading span { color: #706a77; font-size: 8px; letter-spacing: .1em; }
.charm-effect-heading h4 { margin: 0; font-size: 13px; }
.charm-effect-heading > strong { flex: none; padding: 5px 8px; border-radius: 7px; color: #d3ae61; background: rgba(169,124,40,.1); font-size: 9px; }
.charm-effect-block .skill-description { margin-bottom: 0; }
.charm-detail-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.charm-detail-info > div { display: grid; gap: 6px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #111219; }
.charm-detail-info span { color: #68636f; font-size: 9px; }
.charm-detail-info strong { color: #d4ceda; font-size: 11px; }
.charm-requirements { margin-top: 10px; padding: 13px; border: 1px dashed rgba(255,255,255,.1); border-radius: 10px; }
.charm-requirements span { color: #68636f; font-size: 9px; }
.charm-requirements p { margin: 6px 0 0; color: #aaa4b0; font-size: 11px; line-height: 1.7; }

.detail-backdrop { position: fixed; z-index: 100; inset: 0; visibility: hidden; background: rgba(0,0,0,0); transition: .25s ease; }
.detail-backdrop.open { visibility: visible; background: rgba(1,2,4,.7); backdrop-filter: blur(8px); }
.detail-drawer { position: absolute; inset: 0 0 0 auto; width: 82vw; min-width: 760px; max-width: 1000px; overflow: hidden; overscroll-behavior: contain; border-left: 1px solid rgba(255,255,255,.09); background: #0d0e13; box-shadow: -30px 0 90px rgba(0,0,0,.42); transform: translateX(102%); transition: transform .3s cubic-bezier(.22,.8,.24,1); }
.detail-backdrop.open .detail-drawer { transform: translateX(0); }
.detail-close { position: absolute; z-index: 4; top: 18px; right: 20px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; color: white; background: rgba(7,8,11,.7); font-size: 24px; backdrop-filter: blur(12px); }
#detail-content { height: 100%; min-height: 0; overflow: hidden; }
.detail-hero { display: grid; height: 100%; min-height: 0; grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.detail-cover { position: relative; overflow: hidden; background: #16131d; }
.detail-cover > img { width: 100%; height: 100%; object-fit: cover; object-position: 47% center; }
.detail-cover-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,8,14,.06), rgba(10,8,14,.2) 45%, #0d0e13 96%); }
.detail-cost { position: absolute; top: 24px; left: 22px; padding: 7px 10px; border: 1px solid color-mix(in srgb, var(--cost-color) 65%, white); border-radius: 9px; background: color-mix(in srgb, var(--cost-color) 55%, #0c0c10 45%); font-size: 12px; font-weight: 800; }
.detail-identity { position: absolute; right: 22px; bottom: 36px; left: 22px; }
.detail-identity > span { color: #b6acbb; font-size: 10px; letter-spacing: .08em; }
.detail-identity h2 { margin: 5px 0 8px; font-size: 35px; letter-spacing: -.04em; }
.detail-role { display: inline-flex; padding: 5px 8px; border: 1px solid rgba(183, 134, 241, .2); border-radius: 7px; color: #d0afea; background: rgba(115, 70, 164, .2); font-size: 10px; }
.detail-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 58px 32px 50px; }
.detail-scroll, .detail-hero, .detail-charm { scrollbar-color: #77549d #17141d; scrollbar-width: thin; }
.detail-section + .detail-section { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.section-heading span { color: #74519f; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.section-heading h3 { margin: 5px 0 16px; font-size: 17px; }
.detail-traits { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-traits > div { display: grid; min-width: 104px; gap: 2px; padding: 10px 12px; border: 1px solid rgba(113, 181, 135, .12); border-radius: 9px; background: rgba(53, 102, 69, .08); }
.detail-traits small { color: #5f7466; font-size: 8px; }
.detail-traits strong { color: #b7d4c0; font-size: 11px; }
.detail-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.detail-stat { display: grid; gap: 6px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #111219; }
.detail-stat span { color: #696572; font-size: 9px; }
.detail-stat strong { overflow: hidden; color: #d6d0dc; font-size: 11px; text-overflow: ellipsis; }
.detail-skill-head { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #111219; }
.detail-skill-head img { width: 48px; height: 48px; border: 1px solid rgba(176, 126, 238, .25); border-radius: 10px; object-fit: cover; }
.detail-skill-head > div:nth-child(2) { display: grid; gap: 3px; }
.detail-skill-head span { color: #716b79; font-size: 9px; }
.detail-skill-head h4 { margin: 0; font-size: 14px; }
.mana-pill { margin-left: auto; padding: 6px 8px; border-radius: 7px; color: #9aaee5; background: rgba(68,91,148,.13); font-size: 10px; }
.skill-description { margin-top: 13px; color: #aaa4b0; font-size: 12px; line-height: 1.85; }
.skill-description .magic-damage { color: #b98ef3; }
.skill-description .physical-damage { color: #edb064; }
.skill-description .health-value { color: #76c596; }
.skill-description .keyword, .skill-description .rules { color: #e0d6ec; }
.skill-description .skill-divider { height: 1px; margin: 14px 0; background: var(--line); }
.skill-description .skill-flex { display: flex; justify-content: space-between; gap: 18px; padding: 3px 0; }
.skill-description .skill-text-white2 { color: #6d6873; }
.skill-description .skill-text-white1 { color: #d9d2df; }
.update-empty { display: flex; align-items: flex-start; gap: 13px; padding: 16px; border: 1px dashed rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.018); }
.update-empty > span { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 9px; color: #9f76d1; background: rgba(134,82,196,.12); }
.update-empty strong { font-size: 12px; }
.update-empty p { margin: 5px 0 0; color: #6f6b75; font-size: 10px; line-height: 1.6; }
.rating-badge { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; min-width: 42px; padding: 5px 7px; border: 1px solid currentColor; border-radius: 9px; background: rgba(8, 9, 14, .85); font-size: 20px; font-weight: 900; line-height: 1; text-align: center; box-shadow: 0 6px 20px #0008; }
.rating-badge small { margin-top: 3px; font-size: 8px; font-weight: 700; letter-spacing: .02em; }
.grade-S { color: #ffcf71; }
.grade-A { color: #d69cfa; }
.grade-B { color: #87c7ff; }
.grade-C { color: #a6d9ad; }
.grade-D { color: #9c9aa5; }
.snapshot-warning, .rating-method { margin: 0 0 14px; padding: 11px 12px; border-left: 2px solid #a77be9; border-radius: 0 7px 7px 0; color: #b6aabe; background: #a77be914; font-size: 10px; line-height: 1.65; }
.update-section .section-heading h3 { font-size: 21px; }
.update-summary { margin: -3px 0 17px; color: #a99bb7; font-size: 11px; line-height: 1.6; }
.update-section .patch-entry { border-left: 3px solid #a77be9; }
.patch-entry { margin: 10px 0; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #111219; }
.patch-entry-head { display: flex; align-items: baseline; gap: 10px; }
.patch-entry-head strong { color: #d7b5ff; font-size: 13px; }
.patch-entry-head time { color: #817b88; font-size: 10px; }
.patch-entry-head a { margin-left: auto; color: #9f83c1; font-size: 10px; text-decoration: none; }
.patch-entry ul, .archive-traits ul { margin: 10px 0 0; padding-left: 19px; color: #c0b8c8; font-size: 11px; line-height: 1.7; }
.patch-entry li + li, .archive-traits li + li { margin-top: 5px; }
.rating-timeline { display: grid; gap: 5px; }
.rating-row { display: grid; grid-template-columns: 50px 28px minmax(0, 1fr); align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; color: #958f9d; background: #111219; font-size: 11px; }
.rating-row.current { border-color: #b78af666; background: #a77be915; }
.rating-row .rating-letter { font-size: 17px; font-weight: 900; }
.rating-row small { color: #88818e; font-size: 9px; line-height: 1.5; }
.patch-archive { display: grid; gap: 14px; margin-top: 26px; }
.archive-patch { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #111219; }
.archive-patch-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.archive-patch-head h2 { margin: 5px 0 0; font-size: 23px; }
.archive-patch-head > a { color: #b68de7; font-size: 11px; text-decoration: none; }
.archive-counts, .archive-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.archive-counts span { padding: 5px 7px; border-radius: 6px; color: #9a91a3; background: #ffffff0b; font-size: 10px; }
.archive-links button { padding: 6px 9px; border: 1px solid #ffffff16; border-radius: 7px; color: #d5c8e0; background: #ffffff0a; cursor: pointer; font-size: 10px; }
.archive-links button:hover { border-color: #b58ae7; color: #fff; }
.archive-traits { margin-top: 17px; color: #a497b3; font-size: 11px; }
.archive-traits summary { cursor: pointer; }
.archive-traits > div { margin-top: 13px; }
.archive-traits strong { color: #d5c9e3; }

@media (max-width: 1250px) {
  .sidebar { width: 158px; }
  .main-content { width: calc(100% - 158px); margin-left: 158px; padding-right: 30px; padding-left: 30px; }
  .hero-grid { grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); }
  .charm-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .header-metrics { display: none; }
}
