/* ==== Character V2: Stats + Ascension panels ==== */
.cv2-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 20px 0 30px;
  background: #232734f5;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  position: relative;
  z-index: 2;
}
@media (max-width: 768px) {
  .cv2-panel { grid-template-columns: 1fr; gap: 22px; }
}
.cv2-h {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 0 14px !important;
  letter-spacing: 0 !important;
  font-family: inherit !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  text-transform: none !important;
  line-height: 1.3 !important;
}
.cv2-stats__level {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.cv2-stats__lv-label { color: #cfd5e0; font-weight: 600; font-size: 14px; min-width: 60px; }
.cv2-stats__lv-label b { color: #ffcc00; }
.cv2-slider {
  flex: 1;
  -webkit-appearance: none; appearance: none;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.cv2-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px;
  background: #ff4d4d;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(255,77,77,0.5);
}
.cv2-slider::-moz-range-thumb {
  width: 16px; height: 16px;
  background: #ff4d4d;
  border-radius: 50%;
  cursor: pointer;
  border: 0;
}
.cv2-stats__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.cv2-stats__list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 14px;
  background: #1a1d27;
  border-radius: 6px;
  font-size: 14px;
}
.cv2-stat-k { color: #cfd5e0; font-weight: 600; }
.cv2-stat-v { color: #fff; font-weight: 700; font-size: 15px; }
.cv2-asc__mats {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 14px; min-height: 76px;
}
.cv2-asc__mat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 56px;
}
.cv2-asc__mat img {
  width: 52px; height: 52px;
  border-radius: 6px;
  background: linear-gradient(180deg, #2a2f3a 0%, #1a1f28 100%);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 2px;
  object-fit: contain;
}
.cv2-asc__mat .qty {
  font-size: 12px; color: #fff; font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}
.cv2-asc__label {
  color: #cfd5e0; font-size: 13px; margin-top: 8px;
  text-align: center;
}

/* ===== Two-thumb ascension range slider ===== */
.cv2-asc__range {
  position: relative;
  height: 28px;
  margin: 14px 0 6px;
}
.cv2-asc__track,
.cv2-asc__track-active {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 2px;
  pointer-events: none;
}
.cv2-asc__track {
  left: 9px;
  right: 9px;
  background: rgba(255,255,255,0.18);
}
.cv2-asc__track-active {
  background: #fff;
  left: 9px;
  right: 9px;
}
.cv2-asc__dots {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 9px;
  right: 9px;
  height: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.cv2-asc__dots span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.cv2-asc__thumb {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: none;
  outline: none;
}
.cv2-asc__thumb::-webkit-slider-runnable-track,
.cv2-asc__thumb::-moz-range-track {
  background: transparent;
  border: 0;
  height: 28px;
}
.cv2-asc__thumb::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #b5b8c0;
  border: 2px solid #6b6f78;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.cv2-asc__thumb::-moz-range-thumb {
  pointer-events: auto;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #b5b8c0;
  border: 2px solid #6b6f78;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.cv2-asc__thumb--from { z-index: 3; }
.cv2-asc__thumb--to   { z-index: 4; }
.cv2-asc__ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 6px;
  color: #6c727b;
  font-size: 13px;
  font-weight: 700;
}
.cv2-asc__ticks span {
  width: 16px;
  text-align: center;
  transition: color .15s;
}
.cv2-asc__ticks span.is-active {
  color: #fff;
}

/* ==== Light Cone V2 page ==== */
.lcv2-header {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .lcv2-header { grid-template-columns: 1fr; }
  .lcv2-header__portrait { max-width: 320px; margin: 0 auto; }
}
.lcv2-header__portrait {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lcv2-header__portrait img,
.lcv2-portrait {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.lcv2-portrait--small {
  width: auto;
  max-width: 160px;
  max-height: 160px;
}
.lcv2-header__info {
  background: #232734f5;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 20px 24px;
  position: relative;
  z-index: 2;
}
.lcv2-name {
  margin: 0 0 12px !important;
  font-size: 28px !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  text-shadow: none !important;
  letter-spacing: 0.2px !important;
  line-height: 1.25 !important;
  -webkit-text-stroke: 0 !important;
}
.lcv2-refine__name,
.lcv2-panel .cv2-h,
.lcv2-header__info h1,
.lcv2-stats .cv2-h {
  font-family: inherit !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  color: #fff !important;
  font-weight: 700 !important;
}
.lcv2-refine__name { font-size: 17px !important; }
.lcv2-stats .cv2-h { font-size: 17px !important; margin: 0 0 12px !important; }
.lcv2-ascension .cv2-h { font-size: 17px !important; }
.lcv2-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.lcv2-rarity {
  background: rgba(255,204,0,0.10);
  color: #ffcc00;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 14px;
  letter-spacing: 1px;
}
.lcv2-path {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-weight: 600;
  padding: 4px 12px 4px 8px;
  border-radius: 16px;
  font-size: 13px;
}
.lcv2-path__icon {
  width: 18px; height: 18px;
  object-fit: contain;
  display: block;
}
.lcv2-lore {
  color: #cfd5e0;
  font-size: 14px;
  line-height: 1.65;
}
.lcv2-lore p { margin: 0 0 8px; }
.lcv2-lore p:last-child { margin: 0; }

/* Stats + Refinement + Ascension panel */
.lcv2-panel {
  background: #232734f5;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.lcv2-stats__level {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.lcv2-stats__lv-label { color: #cfd5e0; font-weight: 600; font-size: 14px; min-width: 60px; }
.lcv2-stats__lv-label b { color: #ffcc00; }
.lcv2-stats__list {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: flex; flex-direction: column; gap: 4px;
}
.lcv2-stats__list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  background: #1a1d27;
  border-radius: 6px;
  font-size: 14px;
}
.lcv2-stat-k { color: #cfd5e0; font-weight: 600; }
.lcv2-stat-v { color: #fff; font-weight: 700; font-size: 16px; }

.lcv2-refine {
  background: #1a1d27;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 22px;
}
.lcv2-refine__name {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}
.lcv2-refine__desc {
  color: #d6dbe3;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.lcv2-refine__desc p { margin: 0 0 6px; }
.lcv2-refine__desc b { color: #ffcc00; font-weight: 700; }
.lcv2-refine__slider {
  margin-top: 10px;
  position: relative;
  padding: 0 8px;
  max-width: 50%;
}
@media (max-width: 768px) {
  .lcv2-refine__slider { max-width: 100%; }
}
.lcv2-refine__slider .lcv2-refine__input {
  width: 100% !important;
  display: block;
  margin: 0;
}
.lcv2-refine__ticks {
  display: flex;
  justify-content: space-between;
  padding: 6px 4px 0;
  color: #6c727b;
  font-size: 13px;
  font-weight: 700;
}
.lcv2-refine__ticks span {
  width: 16px;
  text-align: center;
  transition: color .15s;
}
.lcv2-refine__ticks span.is-active { color: #fff; }

.lcv2-ascension .cv2-h { margin-bottom: 14px; }

/* ==== Skills V2 — StarRailStation-style layout ==== */

.block--skills-v2 .skills-v2 {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #232734f5;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  position: relative;
  z-index: 2;
}

/* === Tab Navigation === */
.skills-v2__tabs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(255,128,32,0.5);
  margin-bottom: 2px;
}
.sv2-tab {
  position: relative;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  background: #1a1d24;
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  overflow: visible;
}
.sv2-tab:hover { transform: scale(1.06); border-color: rgba(255,180,80,0.5); }
.sv2-tab.is-active {
  border-color: #ff4d4d;
  box-shadow: 0 0 0 3px rgba(255,77,77,0.15), 0 0 18px rgba(255,77,77,0.6);
}
.sv2-tab img {
  width: 100%; height: 100%; object-fit: contain;
  border-radius: 50%;
  padding: 6px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}
.sv2-tab__ring {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  pointer-events: none;
}

/* === Type Label === */
.sv2-typelabel {
  color: #ffcc00;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0;
  padding: 2px 0;
  font-family: inherit;
  line-height: 1.3;
}

/* === Panels === */
.sv2-panels { position: relative; }
.sv2-panel { display: none; animation: sv2-fade .25s ease-out; }
.sv2-panel.is-active { display: block; }
@keyframes sv2-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* === Skill Card === */
.block--skills-v2 .sv2-card,
.sv2-card {
  background: #1a1d27 !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 8px !important;
  padding: 18px 20px !important;
  position: relative !important;
  color: #d6dbe3;
  font-family: inherit;
}
.sv2-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.sv2-card__icon {
  width: 56px; height: 56px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  padding: 4px;
  flex-shrink: 0;
}
.sv2-card__heading { display: flex; flex-direction: column; gap: 4px; }
.sv2-card__name { margin: 0; font-size: 18px; color: #fff; font-weight: 700; line-height: 1.3; font-family: inherit; }
.sv2-tag {
  color: #ffcc00; font-weight: 700; font-size: 13px;
  background: rgba(255,204,0,0.08);
  padding: 2px 10px;
  border-radius: 4px;
  align-self: flex-start;
  letter-spacing: 0.3px;
}

/* === Stats Bar === */
.sv2-stats {
  background: #2a2f3a;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sv2-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  gap: 12px;
  font-family: inherit;
}
.sv2-stat__k { color: #cfd5e0; font-weight: 600; flex-shrink: 0; }
.sv2-stat__v { color: #fff; font-weight: 700; text-align: right; }
.sv2-stat__v b { color: #ffcc00; }

/* === Description === */
.sv2-desc {
  color: #d6dbe3;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 16px;
  font-family: inherit;
}
.sv2-desc b { color: #ffcc00; font-weight: 700; }
.sv2-desc .dmg-fire    { color: #ff6b35; font-weight: 700; }
.sv2-desc .dmg-phys    { color: #d0d5dc; font-weight: 700; }
.sv2-desc .dmg-ice     { color: #6ec5ff; font-weight: 700; }
.sv2-desc .dmg-thunder { color: #c084fc; font-weight: 700; }
.sv2-desc .dmg-wind    { color: #6ee7b7; font-weight: 700; }
.sv2-desc .dmg-quantum { color: #a5b4fc; font-weight: 700; }
.sv2-desc .dmg-imaginary { color: #fde68a; font-weight: 700; }
.sv2-desc .dmg-elation { color: #f472b6; font-weight: 700; }

/* Also apply to any dmg-* class outside .sv2-desc (in case rendered in talent-card body) */
.dmg-fire    { color: #ff6b35 !important; font-weight: 700; }
.dmg-phys    { color: #d6dbe3 !important; font-weight: 700; }
.dmg-ice     { color: #6ec5ff !important; font-weight: 700; }
.dmg-thunder { color: #c084fc !important; font-weight: 700; }
.dmg-wind    { color: #6ee7b7 !important; font-weight: 700; }
.dmg-quantum { color: #a5b4fc !important; font-weight: 700; }
.dmg-imaginary { color: #fde68a !important; font-weight: 700; }
.dmg-elation { color: #f472b6 !important; font-weight: 700; }

/* === Level Slider === */
.sv2-level {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
.sv2-level__label {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  min-width: 56px;
}
.sv2-level__label b { color: #ffcc00; font-size: 16px; }
.sv2-slider {
  flex: 1;
  -webkit-appearance: none; appearance: none;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.sv2-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px;
  background: #ff4d4d;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(255,77,77,0.5);
}
.sv2-slider::-moz-range-thumb {
  width: 16px; height: 16px;
  background: #ff4d4d;
  border-radius: 50%;
  cursor: pointer;
  border: 0;
}

/* === Level Up Cost === */
.sv2-cost {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sv2-cost__title { font-size: 14px; font-weight: 700; color: #fff; margin: 0 0 12px; font-family: inherit; }
.sv2-cost__mats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
  min-height: 70px;
}
.sv2-cost__mat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 56px;
}
.sv2-cost__mat img {
  width: 52px; height: 52px;
  border-radius: 6px;
  background: linear-gradient(180deg, #2a2f3a 0%, #1a1f28 100%);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 2px;
  object-fit: contain;
}
.sv2-cost__mat .qty {
  font-size: 12px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}
.sv2-cost__lvl {
  color: #cfd5e0; font-size: 13px; margin-top: 6px; font-family: inherit;
  text-align: center;
}
.sv2-cost__lvl b { color: #ffcc00; font-size: 14px; }
.sv2-slider--cost::-webkit-slider-thumb { background: #ffcc00; box-shadow: 0 0 8px rgba(255,204,0,0.5); }
.sv2-slider--cost::-moz-range-thumb { background: #ffcc00; }

/* Responsive */
@media (max-width: 600px) {
  .sv2-tab { width: 52px; height: 52px; }
  .sv2-tab img { padding: 4px; }
  .sv2-card { padding: 14px 14px; }
  .sv2-card__icon { width: 44px; height: 44px; }
  .sv2-card__name { font-size: 16px; }
}

/* =====================================================================
   TRACES V2 — full trace tree visualization
   ===================================================================== */
.tv2-block { background: #232734f5 !important; border-radius: 10px; padding: 20px !important; margin-bottom: 24px; }
.tv2-block .block__head { margin-bottom: 18px; }
.tv2-block .block__head__title { color: #fff; font-weight: 700 !important; text-shadow: none !important; -webkit-text-stroke: 0 !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 22px; padding-bottom: 10px; }
.tv2-block .block__content { background: transparent !important; padding: 0 !important; margin-top: 8px; }

.tv2-wrap {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(420px, 1fr);
  gap: 20px;
  align-items: start;
}

/* === Tree === */
.tv2-tree {
  background: #1a1d27;
  border-radius: 10px;
  padding: 22px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 38px;
  overflow-x: auto;
}
.tv2-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  min-height: 76px;
  white-space: nowrap;
}
.tv2-row--orphan { gap: 32px; padding-top: 14px; margin-top: 8px; border-top: 1px dashed #2f3447; }

/* Branching subtree */
.tv2-branches { display: inline-flex; flex-direction: column; gap: 32px; vertical-align: middle; }
.tv2-branch { display: inline-flex; flex-direction: row; align-items: center; gap: 4px; }

/* Connector lines */
.tv2-link {
  flex: 0 0 22px;
  height: 2px;
  background: linear-gradient(90deg, #4a5169, #6b7290);
  border-radius: 2px;
  display: inline-block;
}

/* === Node button === */
.tv2-node {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #2a2f3e;
  border: 2px solid #3a4156;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  flex: 0 0 auto;
}
.tv2-node:hover { transform: scale(1.06); border-color: #ffcc00; }
.tv2-node.is-active { border-color: #ffcc00; box-shadow: 0 0 0 3px rgba(255, 204, 0, .25), 0 0 14px rgba(255, 204, 0, .35); }
.tv2-node__ico { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; }
.tv2-node__ico img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }

.tv2-node__val {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  color: #ffd54a;
  background: #1a1d27;
  padding: 1px 7px;
  border-radius: 8px;
  white-space: nowrap;
  text-shadow: none;
  -webkit-text-stroke: 0;
  line-height: 1.4;
  z-index: 2;
  pointer-events: none;
}
.tv2-node.is-active { z-index: 3; }
.tv2-node.is-active .tv2-node__val { background: #2a2f3e; box-shadow: 0 0 0 1px rgba(255,204,0,.4); }

.tv2-node__asc {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ffcc00;
  color: #1a1d27;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  line-height: 1.3;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

/* Main traces — bigger, gold accent */
.tv2-node--main { width: 72px; height: 72px; background: #2f2a1d; border-color: #6b5827; }
.tv2-node--main .tv2-node__ico { width: 54px; height: 54px; }
.tv2-node--main:hover { border-color: #ffcc00; }
.tv2-node--main.is-active { border-color: #ffcc00; }

/* === Detail panel === */
.tv2-detail {
  background: #1a1d27;
  border-radius: 10px;
  padding: 16px;
  position: sticky;
  top: 80px;
  align-self: start;
}
.tv2-detail__head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #2f3447; }
.tv2-detail__icowrap { flex: 0 0 56px; width: 56px; height: 56px; background: #2a2f3e; border: 2px solid #3a4156; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 6px; }
.tv2-detail__ico { width: 100%; height: 100%; object-fit: contain; }
.tv2-detail__title { flex: 1; min-width: 0; }
.tv2-detail__name { font-size: 16px; font-weight: 700 !important; color: #fff; margin: 0 0 4px; text-shadow: none !important; -webkit-text-stroke: 0 !important; text-transform: none !important; letter-spacing: 0 !important; }
.tv2-detail__meta { display: flex; gap: 6px; font-size: 12px; color: #b6bcd1; }
.tv2-detail__asc { background: #2a2f3e; padding: 2px 8px; border-radius: 6px; color: #ffd54a; font-weight: 700; }
.tv2-detail__asc:empty { display: none; }

.tv2-detail__desc { color: #d6dae7; font-size: 13px; line-height: 1.55; min-height: 60px; }
.tv2-detail__desc b { color: #ffd54a; }
.tv2-detail__desc:empty::before { content: 'Chọn một nút Vết Tích để xem chi tiết.'; color: #6b7290; font-style: italic; }

.tv2-detail__matswrap { margin-top: 14px; padding-top: 12px; border-top: 1px solid #2f3447; }
.tv2-detail__matshead { font-size: 12px; font-weight: 700; color: #b6bcd1; margin-bottom: 8px; text-transform: none; letter-spacing: 0; }
.tv2-detail__mats { display: flex; flex-wrap: wrap; gap: 8px; }

.tv2-detail__mats .tv2-mat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2a2f3e;
  border-radius: 8px;
  padding: 4px 8px 4px 4px;
  font-size: 12px;
  color: #d6dae7;
  text-decoration: none !important;
  border-left: 3px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}
a.tv2-detail__mats .tv2-mat:hover, .tv2-detail__mats a.tv2-mat:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.tv2-detail__mats .tv2-mat img { width: 28px; height: 28px; object-fit: contain; border-radius: 4px; background: #1a1d27; }
.tv2-detail__mats .tv2-mat b { color: #ffd54a; font-weight: 700; }

/* Rarity left-border color */
.tv2-mat--r1 { border-left-color: #8b8b8b; }
.tv2-mat--r2 { border-left-color: #5db365; }
.tv2-mat--r3 { border-left-color: #4a90d9; }
.tv2-mat--r4 { border-left-color: #b06fd9; }
.tv2-mat--r5 { border-left-color: #e7b04b; }

/* =====================================================================
   SITE-WIDE STAR BACKGROUND IMAGES (canonical assets in /wp-content/uploads/)
   ===================================================================== */
.hb-star-bg--1 { background: url("/wp-content/uploads/1-sao-bg.webp") center/100% 100% no-repeat !important; }
.hb-star-bg--2 { background: url("/wp-content/uploads/2-sao-bg.webp") center/100% 100% no-repeat !important; }
.hb-star-bg--3 { background: url("/wp-content/uploads/3-sao-bg.webp") center/100% 100% no-repeat !important; }
.hb-star-bg--4 { background: url("/wp-content/uploads/4-star-bg.png")  center/100% 100% no-repeat !important; }
.hb-star-bg--5 { background: url("/wp-content/uploads/5-star-bg.webp") center/100% 100% no-repeat !important; }

/* === Totals === */
.tv2-totals {
  margin-top: 18px;
  background: #1a1d27;
  border-radius: 10px;
  padding: 14px 18px;
}
.tv2-totals__head { font-size: 14px; font-weight: 700 !important; color: #ffd54a; margin-bottom: 10px; text-shadow: none !important; -webkit-text-stroke: 0 !important; text-transform: none !important; letter-spacing: 0 !important; }
.tv2-totals__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.tv2-totals__item { display: inline-flex; align-items: center; gap: 8px; background: #2a2f3e; padding: 6px 12px; border-radius: 8px; font-size: 13px; }
.tv2-totals__k { color: #b6bcd1; }
.tv2-totals__v { color: #ffd54a; font-weight: 700; }

@media (max-width: 900px) {
  .tv2-wrap { grid-template-columns: 1fr; }
  .tv2-detail { position: static; }
}

/* =====================================================================
   Material taxonomy single page
   ===================================================================== */
.mat-page { background: #232734f5; border-radius: 10px; padding: 28px; margin-bottom: 24px; }

/* Header */
.mat-page__head { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid #2f3447; }
.mat-page__icowrap {
  flex: 0 0 170px;
  width: 170px;
  height: 170px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2a2f3e 0%, #1a1d27 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 2px solid #2f3447;
}
.mat-page__icowrap--r1 { background: url("/wp-content/uploads/1-sao-bg.webp") center/100% 100% no-repeat; border-color: #6b6b6b; }
.mat-page__icowrap--r2 { background: url("/wp-content/uploads/2-sao-bg.webp") center/100% 100% no-repeat; border-color: #5db365; }
.mat-page__icowrap--r3 { background: url("/wp-content/uploads/3-sao-bg.webp") center/100% 100% no-repeat; border-color: #4a90d9; }
.mat-page__icowrap--r4 { background: url("/wp-content/uploads/4-star-bg.png")  center/100% 100% no-repeat; border-color: #b06fd9; }
.mat-page__icowrap--r5 { background: url("/wp-content/uploads/5-star-bg.webp") center/100% 100% no-repeat; border-color: #e7b04b; }
.mat-page__icon { width: 100% !important; height: 100% !important; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }

.mat-page__info { flex: 1; min-width: 0; }
.mat-page__name { font-size: 30px; font-weight: 700 !important; color: #fff; margin: 0 0 10px; text-shadow: none !important; -webkit-text-stroke: 0 !important; text-transform: none !important; letter-spacing: 0 !important; line-height: 1.25; }
.mat-page__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.mat-page__rarity { font-size: 18px; letter-spacing: 2px; line-height: 1; }
.mat-page__rarity--r1 { color: #b0b0b0; }
.mat-page__rarity--r2 { color: #5db365; }
.mat-page__rarity--r3 { color: #4a90d9; }
.mat-page__rarity--r4 { color: #b06fd9; }
.mat-page__rarity--r5 { color: #e7b04b; text-shadow: 0 0 8px rgba(231, 176, 75, .4); }
.mat-page__tag { font-size: 12px; background: #2a2f3e; color: #ffd54a; padding: 3px 10px; border-radius: 6px; font-weight: 700; }
.mat-page__desc { color: #d6dae7; font-size: 14px; line-height: 1.6; }
.mat-page__desc p:last-child { margin-bottom: 0; }

/* Section */
.mat-sec { margin-top: 24px; padding-top: 22px; border-top: 1px solid #2f3447; }
.mat-sec:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.mat-sec__h {
  font-size: 20px;
  font-weight: 700 !important;
  color: #fff;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ffcc00;
  display: inline-block;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.mat-sec__body { color: #d6dae7; font-size: 14px; line-height: 1.6; margin: 0 0 8px; }

.mat-sec__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 12px; }
.mat-fact { background: #1a1d27; padding: 12px 14px; border-radius: 8px; display: flex; flex-direction: column; gap: 4px; }
.mat-fact__k { font-size: 11px; color: #8b91a8; text-transform: uppercase; letter-spacing: .5px; }
.mat-fact__v { font-size: 14px; color: #fff; font-weight: 700; }

/* Source list */
.mat-source-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.mat-source-list li { background: #1a1d27; padding: 10px 14px; border-radius: 8px; color: #d6dae7; font-size: 13px; display: flex; align-items: center; gap: 10px; }
.mat-source__bullet { flex: 0 0 6px; width: 6px; height: 6px; background: #ffcc00; border-radius: 50%; }

/* Synthesizer / craft chain */
.mat-craft { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mat-craft__item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #1a1d27;
  border-radius: 10px;
  padding: 12px;
  text-decoration: none !important;
  color: #d6dae7;
  border: 2px solid transparent;
  min-width: 130px;
  max-width: 180px;
  transition: transform .15s ease, border-color .15s ease;
}
a.mat-craft__item:hover { transform: translateY(-2px); border-color: rgba(255,204,0,.6); }
.mat-craft__item.is-current { border-color: #ffcc00; box-shadow: 0 0 0 1px rgba(255,204,0,.25), 0 0 14px rgba(255,204,0,.2); }
.mat-craft__ico { width: 64px; height: 64px; border-radius: 8px; padding: 6px; display: flex; align-items: center; justify-content: center; border: 1px solid #2f3447; }
.mat-craft__ico img { width: 100%; height: 100%; object-fit: contain; }
.mat-craft__name { font-size: 12px; font-weight: 700; color: #fff; text-align: center; line-height: 1.3; }
.mat-craft__rarity { font-size: 13px; line-height: 1; letter-spacing: 1px; }
.mat-craft__arrow { font-size: 22px; color: #ffcc00; font-weight: 700; }

/* Light cones list (under "Nón Ánh Sáng Dùng…") */
.mat-lc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mat-lc { display: flex; align-items: center; gap: 10px; background: #1a1d27; border-radius: 8px; padding: 8px; text-decoration: none !important; color: #d6dae7; border-left: 3px solid transparent; transition: transform .12s ease, border-color .12s ease; }
.mat-lc:hover { transform: translateX(2px); }
.mat-lc--r3 { border-left-color: #4a90d9; }
.mat-lc--r4 { border-left-color: #b06fd9; }
.mat-lc--r5 { border-left-color: #e7b04b; }
.mat-lc__ico { flex: 0 0 48px; width: 48px; height: 48px; background: #2a2f3e; border-radius: 6px; overflow: hidden; }
.mat-lc__ico img { width: 100%; height: 100%; object-fit: cover; }
.mat-lc__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.mat-lc__name { color: #fff; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mat-lc__rarity { font-size: 12px; line-height: 1; letter-spacing: 1px; }

@media (max-width: 700px) {
  .mat-page { padding: 18px; }
  .mat-page__head { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .mat-page__icowrap { flex-basis: 140px; width: 140px; height: 140px; }
  .mat-page__name { font-size: 22px; }
  .mat-page__meta { justify-content: center; }
  .mat-craft__item { min-width: 110px; }
}

/* =====================================================================
   Material archive (/nguyen-lieu) — grid of clickable cards
   ===================================================================== */
.mat-archive { background: #232734f5; border-radius: 10px; padding: 24px; margin-bottom: 24px; }

.mat-archive__filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; align-items: center; }
.mat-archive__search {
  background: #1a1d27 !important;
  border: 1px solid #2f3447 !important;
  color: #fff !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  min-width: 220px;
  flex: 1;
  box-shadow: none !important;
  height: auto !important;
  margin: 0 !important;
}
.mat-archive__search::placeholder { color: #6b7290; }
.mat-archive__search:focus { border-color: #ffcc00 !important; outline: none !important; }

.mat-archive__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mat-chip {
  background: #1a1d27;
  border: 1px solid #2f3447;
  color: #d6dae7;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  font-weight: 600;
  text-shadow: none;
  -webkit-text-stroke: 0;
}
.mat-chip:hover { border-color: #ffcc00; transform: translateY(-1px); }
.mat-chip.is-active { background: #ffcc00; color: #1a1d27 !important; border-color: #ffcc00; }
.mat-chip--r1 { color: #b0b0b0; }
.mat-chip--r2 { color: #5db365; }
.mat-chip--r3 { color: #4a90d9; }
.mat-chip--r4 { color: #b06fd9; }
.mat-chip--r5 { color: #e7b04b; }
.mat-chip--r2.is-active { background: #5db365; border-color: #5db365; color: #fff !important; }
.mat-chip--r3.is-active { background: #4a90d9; border-color: #4a90d9; color: #fff !important; }
.mat-chip--r4.is-active { background: #b06fd9; border-color: #b06fd9; color: #fff !important; }
.mat-chip--r5.is-active { background: #e7b04b; border-color: #e7b04b; color: #1a1d27 !important; }

.mat-archive__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.mat-archive__item {
  display: flex;
  flex-direction: column;
  background: #1a1d27;
  border-radius: 10px;
  padding: 12px;
  text-decoration: none !important;
  color: #d6dae7;
  border-top: 3px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
  /* Browser skips rendering offscreen cards — huge perf win for 3000+ items */
  content-visibility: auto;
  contain-intrinsic-size: 0 220px;
}
.mat-archive__item.is-hidden { display: none !important; }
.mat-archive__count { margin-left: auto; color: #8b91a8; font-size: 12px; align-self: center; }
.mat-archive__item:hover { transform: translateY(-3px); box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.mat-archive__item--r1 { border-top-color: #8b8b8b; }
.mat-archive__item--r2 { border-top-color: #5db365; }
.mat-archive__item--r3 { border-top-color: #4a90d9; }
.mat-archive__item--r4 { border-top-color: #b06fd9; }
.mat-archive__item--r5 { border-top-color: #e7b04b; }
.mat-archive__item--r5:hover { box-shadow: 0 4px 16px rgba(231,176,75,.3); }

.mat-archive__icowrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #2f3447;
}
.mat-archive__ico { width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain !important; }

.mat-archive__body { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; min-width: 0; }
.mat-archive__name { font-size: 12.5px; font-weight: 700 !important; color: #fff; line-height: 1.3; word-break: break-word; text-shadow: none !important; -webkit-text-stroke: 0 !important; }
.mat-archive__rarity { font-size: 12px; letter-spacing: 1px; line-height: 1; }
.mat-archive__sub { font-size: 10px; color: #ffd54a; line-height: 1.3; padding: 2px 7px; background: rgba(255, 204, 0, .1); border-radius: 4px; margin-top: 2px; }

.mat-archive__empty { color: #8b91a8; text-align: center; padding: 30px 20px; font-size: 14px; }

@media (max-width: 600px) {
  .mat-archive { padding: 16px; }
  .mat-archive__grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
  .mat-archive__name { font-size: 11.5px; }
  .mat-archive__item { padding: 10px; }
}

/* =====================================================================
   TEAM COMPS PAGE — /doi-hinh
   ===================================================================== */
.tc-page { padding-top: 6px; }
.tc-page__title { font-size: 30px; font-weight: 700 !important; color: #fff; margin: 0 0 18px; text-shadow: none !important; -webkit-text-stroke: 0 !important; text-transform: none !important; letter-spacing: 0 !important; }
.tc-empty { color: #8b91a8; padding: 30px; background: #1a1d27; border-radius: 10px; text-align: center; }

/* Sticky element nav bar */
.tc-elements-bar {
  position: sticky;
  top: 60px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  background: #1a1d27;
  border-radius: 10px;
  margin-bottom: 22px;
  border: 1px solid #2f3447;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.tc-elchip {
  background: #2a2f3e;
  color: #d6dae7;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
  text-shadow: none;
  -webkit-text-stroke: 0;
}
.tc-elchip:hover { border-color: #ffcc00; color: #ffcc00; }

/* Element section */
.tc-element { margin-bottom: 30px; scroll-margin-top: 80px; }
.tc-element__title {
  font-size: 24px;
  font-weight: 700 !important;
  color: #fff;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid #ffcc00;
  display: inline-block;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* DPS Group */
.tc-group {
  background: #232734f5;
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 18px;
}
.tc-group__title {
  font-size: 20px;
  font-weight: 700 !important;
  color: #ffd54a;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.tc-group__title::before { content: ''; width: 5px; height: 22px; background: #ffcc00; border-radius: 3px; display: inline-block; }
.tc-group__name { line-height: 1; }
.tc-group__desc { color: #b6bcd1; font-size: 13.5px; line-height: 1.55; margin: 0 0 16px; }
.tc-group__desc p { margin: 0 0 6px; }
.tc-group__desc p:last-child { margin-bottom: 0; }

/* Teams row */
.tc-teams {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 14px;
}
.tc-team {
  background: #1a1d27;
  border-radius: 10px;
  padding: 14px;
  border-top: 3px solid #2f3447;
}
.tc-team--f2p { border-top-color: #5db365; }
.tc-team--premium, .tc-team--hypercarry { border-top-color: #e7b04b; }
.tc-team--dual-dps, .tc-team--double-dps { border-top-color: #b06fd9; }
.tc-team--super-break, .tc-team--break-effect, .tc-team--break-team { border-top-color: #ff7a45; }
.tc-team--mono-quantum, .tc-team--mono-fire, .tc-team--mono-ice { border-top-color: #4a90d9; }

.tc-team__label { margin-bottom: 12px; }
.tc-team__chip {
  display: inline-block;
  background: #2a2f3e;
  color: #ffd54a;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: .3px;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

/* 4 character columns */
.tc-team__chars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.tc-char {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none !important;
  color: #d6dae7;
  padding: 6px 4px;
  border-radius: 8px;
  transition: transform .15s ease, background .15s ease;
}
.tc-char:hover { transform: translateY(-2px); background: rgba(255,204,0,.06); }

.tc-char__portrait {
  position: relative;
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2f3e 0%, #1a1d27 100%);
  border: 2px solid #2f3447;
}
.tc-char--star-5 .tc-char__portrait { border-color: #e7b04b; background: url("/wp-content/uploads/5-star-bg.webp") center/100% 100% no-repeat; }
.tc-char--star-4 .tc-char__portrait { border-color: #b06fd9; background: url("/wp-content/uploads/4-star-bg.png")  center/100% 100% no-repeat; }
.tc-char--star-3 .tc-char__portrait { border-color: #4a90d9; background: url("/wp-content/uploads/3-sao-bg.webp") center/100% 100% no-repeat; }

.tc-char__img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }
.tc-char__elem {
  position: absolute !important;
  top: 4px !important;
  left: 4px !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 4px;
  background: rgba(0,0,0,.5);
  padding: 2px;
}

.tc-char__name {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.25;
  text-shadow: none;
  -webkit-text-stroke: 0;
  word-break: break-word;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tc-char__role {
  font-size: 10px;
  color: #ffd54a;
  background: rgba(255,204,0,.08);
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.3;
  white-space: nowrap;
}
.tc-char--sat-thuong .tc-char__role { color: #ff7a45; background: rgba(255,122,69,.12); }
.tc-char--phu-sat-thuong .tc-char__role { color: #b06fd9; background: rgba(176,111,217,.12); }
.tc-char--ho-tro .tc-char__role { color: #4a90d9; background: rgba(74,144,217,.12); }
.tc-char--chong-chiu .tc-char__role { color: #5db365; background: rgba(93,179,101,.12); }

@media (max-width: 700px) {
  .tc-teams { grid-template-columns: 1fr; }
  .tc-group { padding: 16px; }
  .tc-team__chars { gap: 6px; }
  .tc-char__name { font-size: 10.5px; min-height: 24px; }
  .tc-page__title { font-size: 22px; }
  .tc-element__title { font-size: 20px; }
}
@media (max-width: 480px) {
  .tc-team { padding: 10px; }
}

/* =====================================================================
   CHARACTER PAGE — "Đội Hình Mạnh Nhất Của <X>" (same look as /doi-hinh)
   Overrides .block_teams_characters__item to mirror .tc-char design.
   ===================================================================== */
.block--teams-group .block_teams { background: transparent; }
.block--teams-group .block_team {
  background: #1a1d27;
  border-radius: 10px;
  padding: 14px !important;
  margin-bottom: 14px;
  border-top: 3px solid #ffcc00;
}

.block--teams-group .block_teams_characters {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 8px !important;
  align-items: start;
}

.block--teams-group .block_teams_characters__item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 4px !important;
  border-radius: 8px !important;
  background: transparent !important;
  text-decoration: none !important;
  color: #d6dae7;
  transition: transform .15s ease, background .15s ease;
  min-height: 0 !important;
  height: auto !important;
  width: auto !important;
  border: 0 !important;
  box-shadow: none !important;
}
.block--teams-group .block_teams_characters__item:hover {
  transform: translateY(-2px);
  background: rgba(255,204,0,.06) !important;
}

/* Portrait box with star-rarity image bg */
.block--teams-group .block_teams_characters__item .bt-portrait {
  position: relative;
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #2f3447;
  background: linear-gradient(135deg, #2a2f3e 0%, #1a1d27 100%);
  display: block;
}
.block--teams-group .block_teams_characters__item.star-5 .bt-portrait {
  border-color: #e7b04b;
  background: url("/wp-content/uploads/5-star-bg.webp") center/100% 100% no-repeat;
}
.block--teams-group .block_teams_characters__item.star-4 .bt-portrait {
  border-color: #b06fd9;
  background: url("/wp-content/uploads/4-star-bg.png") center/100% 100% no-repeat;
}
.block--teams-group .block_teams_characters__item.star-3 .bt-portrait {
  border-color: #4a90d9;
  background: url("/wp-content/uploads/3-sao-bg.webp") center/100% 100% no-repeat;
}

.block--teams-group .block_teams_characters__item .bt-portrait .bt-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  position: static !important;
}

/* Element icon overlay (top-left of portrait) */
.block--teams-group .block_teams_characters__item .bt-portrait .elemental-image {
  position: absolute !important;
  top: 4px !important;
  left: 4px !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 4px;
  background: rgba(0,0,0,.5);
  padding: 2px;
  z-index: 2;
}

/* Name (white, centered) */
.block--teams-group .block_teams_characters__item .name {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #fff !important;
  text-align: center;
  line-height: 1.25;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  word-break: break-word;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  background: transparent !important;
  padding: 0 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Role chip with color — under name, NOT absolute (override legacy style.css) */
.block--teams-group .block_teams_characters__item .role {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #ffd54a !important;
  background: rgba(255,204,0,.08) !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  line-height: 1.3 !important;
  white-space: nowrap;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  display: inline-block !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border: 0 !important;
  width: auto !important;
  height: auto !important;
  box-shadow: none !important;
  align-self: center;
}
.block--teams-group .block_teams_characters__item.role-sat-thuong .role {
  color: #ff7a45 !important;
  background: rgba(255,122,69,.12) !important;
}
.block--teams-group .block_teams_characters__item.role-phu-sat-thuong .role {
  color: #b06fd9 !important;
  background: rgba(176,111,217,.12) !important;
}
.block--teams-group .block_teams_characters__item.role-ho-tro .role {
  color: #4a90d9 !important;
  background: rgba(74,144,217,.12) !important;
}
.block--teams-group .block_teams_characters__item.role-chong-chiu .role {
  color: #5db365 !important;
  background: rgba(93,179,101,.12) !important;
}

@media (max-width: 700px) {
  .block--teams-group .block_teams_characters { gap: 6px !important; }
  .block--teams-group .block_teams_characters__item .name { font-size: 11px !important; min-height: 24px; }
}

/* =====================================================================
   CHARACTER LIST PAGE — /nhan-vat (gs_characters shortcode)
   Optimizations: square portraits, bigger element icon, hover effect.
   ===================================================================== */
.character-list .character-item {
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  border: 1px solid #2f3447 !important;
}
.character-list .character-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
.character-list .character-item.star-5:hover { box-shadow: 0 6px 22px rgba(231,176,75,.35); border-color: #e7b04b !important; }
.character-list .character-item.star-4:hover { box-shadow: 0 6px 22px rgba(176,111,217,.35); border-color: #b06fd9 !important; }

/* Box image — square with star bg */
.character-item .box-img {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 1 !important;
  margin: 0 auto !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  position: relative !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Character image — square not circle, fills the box */
.character-item .character-image {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background: transparent !important;
  display: block !important;
  position: static !important;
}

/* Element icon — bigger, top-left */
.character-item .box-img .elemental-image {
  width: 38px !important;
  height: 38px !important;
  position: absolute !important;
  top: 6px !important;
  left: 6px !important;
  right: auto !important;
  border-radius: 8px !important;
  background: rgba(0, 0, 0, .55) !important;
  padding: 4px !important;
  z-index: 2 !important;
  border: 0 !important;
}

/* Name */
.character-item .character-name {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #fff !important;
  display: block !important;
  margin-top: 4px;
  line-height: 1.3 !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}

/* Hide ".line" decorative span between image and name */
.character-list .character-item .line { display: none !important; }

/* Filter bar refinements */
.hk-filter {
  background: #1a1d27 !important;
  border-radius: 10px !important;
  padding: 14px !important;
}
.hk-filter #filter__input {
  background: #232734 !important;
  border: 1px solid #2f3447 !important;
  color: #fff !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
}
.hk-filter #filter__input::placeholder { color: #6b7290; }
.hk-filter #filter__input:focus { border-color: #ffcc00 !important; outline: none !important; }
.hk-filter .filter__link {
  background: #232734;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: border-color .12s ease, background .12s ease;
  cursor: pointer;
}
.hk-filter .filter__link:hover { border-color: rgba(206,174,126,.5); }
.hk-filter .filter__link img { width: 22px; height: 22px; vertical-align: middle; }
/* .active color giữ nguyên màu gốc của site (#ceae7e tan) từ style.css */

@media (max-width: 600px) {
  .character-list { grid-gap: 10px !important; }
  .character-item { padding: 6px !important; }
  .character-item .box-img .elemental-image { width: 30px !important; height: 30px !important; }
  .character-item .character-name { font-size: 12px !important; }
}

/* Filter system — items without .active are hidden (override flex !important) */
.filter__item:not(.active) { display: none !important; }

/* =====================================================================
   LIGHT CONE LIST PAGE — /non-anh-sang (gs_weapons shortcode)
   ===================================================================== */
.weapon-list .weapon-item {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  padding: 10px !important;
  background: #232734f5 !important;
  border: 1px solid #2f3447 !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
}
.weapon-list .weapon-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
.weapon-list .weapon-item.star-5:hover { box-shadow: 0 6px 22px rgba(231,176,75,.35); border-color: #e7b04b !important; }
.weapon-list .weapon-item.star-4:hover { box-shadow: 0 6px 22px rgba(176,111,217,.35); border-color: #b06fd9 !important; }
.weapon-list .weapon-item.star-3:hover { box-shadow: 0 6px 22px rgba(74,144,217,.30); border-color: #4a90d9 !important; }

/* Box wrapping star bg */
.weapon-list .weapon-item .box-img {
  width: 100% !important;
  aspect-ratio: 1 !important;
  display: block !important;
  position: relative !important;
  margin: 0 !important;
}

/* Inner span carries the star background image */
.weapon-list .weapon-item .weapon__item {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 2px solid #2f3447;
}
.weapon-list .weapon-item.star-5 .weapon__item { border-color: #e7b04b; }
.weapon-list .weapon-item.star-4 .weapon__item { border-color: #b06fd9; }
.weapon-list .weapon-item.star-3 .weapon__item { border-color: #4a90d9; }

/* LC image — fill the box, no circle */
.weapon-list .weapon-item .img-border {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background: transparent !important;
  display: block !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}

/* Name */
.weapon-list .weapon-item .weapon-name {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-top: 8px;
  line-height: 1.3 !important;
  text-align: center;
  display: block !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}

/* Hide decorative line spacer */
.weapon-list .weapon-item .line { display: none !important; }

/* Path/type badge — small icon top-left of card */
.weapon-list .weapon-item::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
  background-color: rgba(0,0,0,.55);
  border-radius: 6px;
  padding: 2px;
}
.weapon-list .weapon-item.type-truphu::before  { background-image: url('/wp-content/themes/flatsome-child/dist/images/tru-phu.webp');  background-size: 80%; }
.weapon-list .weapon-item.type-trithuc::before { background-image: url('/wp-content/themes/flatsome-child/dist/images/tri-thuc.webp'); background-size: 80%; }
.weapon-list .weapon-item.type-sanban::before  { background-image: url('/wp-content/themes/flatsome-child/dist/images/san-ban.webp');  background-size: 80%; }
.weapon-list .weapon-item.type-huydiet::before { background-image: url('/wp-content/themes/flatsome-child/dist/images/huy-diet.webp'); background-size: 80%; }
.weapon-list .weapon-item.type-huvo::before    { background-image: url('/wp-content/themes/flatsome-child/dist/images/hu-vo.webp');    background-size: 80%; }
.weapon-list .weapon-item.type-hoahop::before  { background-image: url('/wp-content/themes/flatsome-child/dist/images/hoa-hop.webp');  background-size: 80%; }
.weapon-list .weapon-item.type-baoho::before   { background-image: url('/wp-content/themes/flatsome-child/dist/images/bao-ho.webp');   background-size: 80%; }
.weapon-list .weapon-item.type-kyuc::before    { background-image: url('/wp-content/themes/flatsome-child/dist/images/ky-uc.webp');    background-size: 80%; }
.weapon-list .weapon-item.type-vuive::before   { background-image: url('/wp-content/themes/flatsome-child/dist/images/vui-ve.webp');   background-size: 80%; }

@media (max-width: 600px) {
  .weapon-list .weapon-item { padding: 8px !important; }
  .weapon-list .weapon-item::before { width: 20px; height: 20px; top: 10px; left: 10px; }
  .weapon-list .weapon-item .weapon-name { font-size: 11.5px !important; }
}

/* =====================================================================
   RELIC ARCHIVE — /di-vat (gs_aggregates)
   ===================================================================== */
.relic-archive { background: #232734f5; border-radius: 10px; padding: 24px; margin-bottom: 24px; }
.relic-archive__intro {
  color: #d6dae7;
  font-size: 14px;
  line-height: 1.7;
  background: #1a1d27;
  border-left: 3px solid #ffcc00;
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 18px;
}
.relic-archive__intro p { margin: 0; }
.relic-archive__intro strong { color: #ffd54a; }

.relic-archive__filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.relic-archive__search {
  background: #1a1d27 !important;
  border: 1px solid #2f3447 !important;
  color: #fff !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  min-width: 220px;
  flex: 1;
  height: auto !important;
  margin: 0 !important;
  box-shadow: none !important;
}
.relic-archive__search::placeholder { color: #6b7290; }
.relic-archive__search:focus { border-color: #ffcc00 !important; outline: none !important; }
.relic-archive__chips { display: flex; flex-wrap: wrap; gap: 6px; }

.relic-archive__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.relic-archive__item {
  display: flex;
  flex-direction: column;
  background: #1a1d27;
  border-radius: 10px;
  padding: 12px;
  text-decoration: none !important;
  color: #d6dae7;
  border-top: 3px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.relic-archive__item:hover { transform: translateY(-3px); box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.relic-archive__item--r3 { border-top-color: #4a90d9; }
.relic-archive__item--r4 { border-top-color: #b06fd9; }
.relic-archive__item--r5 { border-top-color: #e7b04b; }
.relic-archive__item--r5:hover { box-shadow: 0 4px 16px rgba(231,176,75,.3); }
.relic-archive__item--r4:hover { box-shadow: 0 4px 16px rgba(176,111,217,.3); }

.relic-archive__icowrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #2f3447;
}
.relic-archive__ico { width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain !important; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.relic-archive__body { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; min-width: 0; }
.relic-archive__name { font-size: 12.5px; font-weight: 700 !important; color: #fff; line-height: 1.3; word-break: break-word; text-shadow: none !important; -webkit-text-stroke: 0 !important; }
.relic-archive__rarity { font-size: 12px; letter-spacing: 1px; line-height: 1; }
.relic-archive__empty { color: #8b91a8; text-align: center; padding: 30px 20px; font-size: 14px; }

@media (max-width: 600px) {
  .relic-archive { padding: 16px; }
  .relic-archive__grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
  .relic-archive__name { font-size: 11.5px; }
}

/* =====================================================================
   RELIC DETAIL PAGE — /di-vat/<slug> (taxonomy-aggregate.php)
   ===================================================================== */
.relic-page { background: #232734f5; border-radius: 10px; padding: 28px; margin-bottom: 24px; }

/* Header */
.relic-page__head { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid #2f3447; }
.relic-page__icowrap {
  flex: 0 0 180px;
  width: 180px;
  height: 180px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 2px solid #2f3447;
}
.relic-page__icon { width: 100% !important; height: 100% !important; object-fit: contain !important; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.relic-page__info { flex: 1; min-width: 0; }
.relic-page__name { font-size: 30px; font-weight: 700 !important; color: #fff; margin: 0 0 10px; text-shadow: none !important; -webkit-text-stroke: 0 !important; text-transform: none !important; letter-spacing: 0 !important; line-height: 1.25; }
.relic-page__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.relic-page__rarity { font-size: 18px; letter-spacing: 2px; line-height: 1; }
.relic-page__type {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  text-shadow: none;
  -webkit-text-stroke: 0;
  border: 1px solid;
}
.relic-page__type--cavern { color: #ffd54a; border-color: #ffd54a; background: rgba(255,204,0,.08); }
.relic-page__type--planar { color: #b06fd9; border-color: #b06fd9; background: rgba(176,111,217,.10); }
.relic-page__desc { color: #d6dae7; font-size: 14px; line-height: 1.6; }

/* Sections */
.relic-sec { margin-top: 24px; padding-top: 22px; border-top: 1px solid #2f3447; }
.relic-sec:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.relic-sec__h {
  font-size: 20px;
  font-weight: 700 !important;
  color: #fff;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ffcc00;
  display: inline-block;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* Bonus cards (2-pc / 4-pc) */
.relic-bonuses { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.relic-bonus {
  background: #1a1d27;
  border-radius: 10px;
  padding: 16px;
  border-left: 4px solid #ffcc00;
}
.relic-bonus__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.relic-bonus__qty {
  background: #ffcc00;
  color: #1a1d27;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: .5px;
  flex: 0 0 auto;
  text-shadow: none;
  -webkit-text-stroke: 0;
}
.relic-bonus__stats { display: flex; flex-wrap: wrap; gap: 6px; }
.relic-bonus__stat {
  background: #2a2f3e;
  color: #d6dae7;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 6px;
}
.relic-bonus__stat b { color: #ffd54a; font-weight: 700; }
.relic-bonus__text { color: #d6dae7; font-size: 14px; line-height: 1.6; }
.relic-bonus__text p:last-child { margin-bottom: 0; }
.relic-bonus__text p:first-child { margin-top: 0; }

/* Pieces */
.relic-pieces { display: flex; flex-direction: column; gap: 12px; }
.relic-piece {
  display: flex;
  gap: 16px;
  background: #1a1d27;
  border-radius: 10px;
  padding: 14px;
  align-items: flex-start;
}
.relic-piece__icowrap {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid #2f3447;
}
.relic-piece__ico { width: 100% !important; height: 100% !important; object-fit: contain !important; }
.relic-piece__body { flex: 1; min-width: 0; }
.relic-piece__name { font-size: 16px; font-weight: 700 !important; color: #fff; margin: 0 0 4px; text-shadow: none !important; -webkit-text-stroke: 0 !important; }
.relic-piece__sub { font-size: 12px; color: #ffd54a; margin-bottom: 8px; font-style: italic; }
.relic-piece__desc { color: #b6bcd1; font-size: 13px; line-height: 1.55; }
.relic-piece__desc p { margin: 0 0 6px; }
.relic-piece__desc p:last-child { margin-bottom: 0; }

/* Stories (lore) */
.relic-stories { display: flex; flex-direction: column; gap: 10px; }
.relic-story {
  background: #1a1d27;
  border-radius: 10px;
  border-left: 3px solid #2f3447;
  overflow: hidden;
  transition: border-color .15s ease;
}
.relic-story[open] { border-left-color: #ffcc00; }
.relic-story__head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}
.relic-story__head::-webkit-details-marker { display: none; }
.relic-story__head::after {
  content: '+';
  margin-left: auto;
  font-size: 20px;
  color: #ffcc00;
  font-weight: 700;
  transition: transform .15s ease;
}
.relic-story[open] .relic-story__head::after { content: '−'; }
.relic-story__icon { width: 48px !important; height: 48px !important; border-radius: 6px; }
.relic-story__title { font-size: 15px; font-weight: 700; color: #fff; }
.relic-story__body { padding: 0 16px 16px 76px; color: #b6bcd1; font-size: 13.5px; line-height: 1.65; }
.relic-story__body p { margin: 0 0 8px; }

@media (max-width: 700px) {
  .relic-page { padding: 18px; }
  .relic-page__head { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .relic-page__icowrap { flex-basis: 140px; width: 140px; height: 140px; }
  .relic-page__name { font-size: 22px; }
  .relic-page__meta { justify-content: center; }
  .relic-page__desc { text-align: left; }
  .relic-piece { gap: 12px; }
  .relic-piece__icowrap { flex-basis: 60px; width: 60px; height: 60px; padding: 6px; }
  .relic-story__body { padding-left: 16px; }
}

/* =====================================================================
   BANNER HISTORY — /buoc-nhay/nhan-vat + /buoc-nhay/non-anh-sang
   Overrides the legacy .gs-bh / .gs-wbh inline styles with site palette.
   ===================================================================== */
.gs-bh, .gs-wbh {
  background: #1a1d27 !important;
  padding: 18px !important;
  border-radius: 12px !important;
  margin-bottom: 24px;
}

.gs-bh__title, .gs-wbh__title {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 0 18px !important;
  padding-bottom: 10px;
  border-bottom: 2px solid #ffcc00;
  display: inline-block;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.gs-bh__list, .gs-wbh__list { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex !important; flex-direction: column; gap: 14px; }

.gs-bh__item, .gs-wbh__item {
  display: grid !important;
  grid-template-columns: minmax(0, 280px) 1fr !important;
  gap: 22px !important;
  padding: 18px !important;
  background: #232734f5 !important;
  border: 1px solid #2f3447;
  border-left: 4px solid #ffcc00;
  border-bottom: 0 !important;
  border-radius: 10px !important;
  align-items: center !important;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gs-bh__item:hover, .gs-wbh__item:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.3); }

/* Meta column */
.gs-bh__meta, .gs-wbh__meta { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; min-width: 0 !important; }
.gs-bh__name, .gs-wbh__name {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  letter-spacing: 0 !important;
  max-width: 100% !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* Chips */
.gs-bh__chips, .gs-wbh__chips { display: flex !important; gap: 6px !important; flex-wrap: wrap !important; overflow: visible !important; padding: 0 !important; }
.gs-bh .chip, .gs-wbh .chip {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  min-height: 0 !important;
  white-space: nowrap !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  letter-spacing: 0 !important;
}
.gs-bh .chip--date, .gs-wbh .chip--date { background: #1a1d27 !important; color: #4a90d9 !important; border: 1px solid #2f3447; }
.gs-bh .chip--time, .gs-wbh .chip--time { background: #1a1d27 !important; color: #b6bcd1 !important; border: 1px solid #2f3447; }
.gs-bh .chip--ver, .gs-wbh .chip--ver { background: #ffcc00 !important; color: #1a1d27 !important; }
.gs-bh .chip--cd, .gs-wbh .chip--cd { background: #1a1d27 !important; color: #5db365 !important; border: 1px solid #5db365; }
.gs-bh .chip--cd.ended, .gs-wbh .chip--cd.ended { color: #8b91a8 !important; border-color: #4a4a4a; opacity: .8; background: #1a1d27 !important; }

/* Phases */
.gs-bh__phases, .gs-wbh__phases { display: flex !important; flex-wrap: wrap !important; gap: 18px !important; justify-content: flex-start !important; align-items: center !important; }
.gs-bh__phase, .gs-wbh__phase { display: flex !important; flex-direction: column !important; gap: 8px !important; }
.gs-bh__phase-title, .gs-wbh__phase-title { font-size: 11px !important; font-weight: 700 !important; color: #ffd54a !important; text-transform: uppercase !important; letter-spacing: .04em !important; text-shadow: none !important; -webkit-text-stroke: 0 !important; }

/* Avatars */
.gs-bh__avatars, .gs-wbh__avatars { display: flex !important; gap: 8px !important; flex-wrap: wrap !important; justify-content: flex-start !important; }

.gs-bh .avatar, .gs-wbh .w-avatar { display: block; line-height: 0; transition: transform .15s ease; }
.gs-bh .avatar:hover, .gs-wbh .w-avatar:hover { transform: translateY(-3px); }

.gs-bh .avatar__img, .gs-wbh .w-avatar__img {
  width: 64px !important;
  height: 64px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  display: block !important;
  background: linear-gradient(135deg, #2a2f3e 0%, #1a1d27 100%) !important;
  border: 2px solid #2f3447;
  box-shadow: none !important;
  position: relative;
}
.gs-bh .avatar__img img, .gs-wbh .w-avatar__img img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }

/* Rarity tint per star — use canonical site backgrounds */
.gs-bh .avatar__img.star-5,
.gs-wbh .w-avatar__img.star-5 {
  background: url("/wp-content/uploads/5-star-bg.webp") center/100% 100% no-repeat !important;
  border-color: #e7b04b;
}
.gs-bh .avatar__img.star-4,
.gs-wbh .w-avatar__img.star-4 {
  background: url("/wp-content/uploads/4-star-bg.png") center/100% 100% no-repeat !important;
  border-color: #b06fd9;
}
.gs-bh .avatar__img.star-3,
.gs-wbh .w-avatar__img.star-3 {
  background: url("/wp-content/uploads/3-sao-bg.webp") center/100% 100% no-repeat !important;
  border-color: #4a90d9;
}

.gs-bh .avatar__placeholder, .gs-wbh .w-avatar__placeholder { color: #fff !important; font-weight: 700; font-size: 22px; opacity: .8; text-shadow: none !important; -webkit-text-stroke: 0 !important; }

@media (max-width: 900px) {
  .gs-bh__item, .gs-wbh__item { grid-template-columns: 1fr !important; gap: 14px !important; }
  .gs-bh .avatar__img, .gs-wbh .w-avatar__img { width: 56px !important; height: 56px !important; }
}
@media (max-width: 480px) {
  .gs-bh__item, .gs-wbh__item { padding: 14px !important; }
  .gs-bh__name, .gs-wbh__name { font-size: 16px !important; }
  .gs-bh .avatar__img, .gs-wbh .w-avatar__img { width: 50px !important; height: 50px !important; }
}

/* Banner summary page /buoc-nhay */
.bh-summary { display: flex; flex-direction: column; gap: 24px; }
.bh-summary__section { background: transparent; }
.bh-summary__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; flex-wrap: wrap; }
.bh-summary__h {
  font-size: 24px;
  font-weight: 700 !important;
  color: #fff;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 3px solid #ffcc00;
  display: inline-block;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.bh-summary__more {
  color: #ffcc00 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  padding: 6px 12px;
  border: 1px solid #ffcc00;
  border-radius: 6px;
  transition: background .15s ease, color .15s ease;
}
.bh-summary__more:hover { background: #ffcc00; color: #1a1d27 !important; }
.bh-summary__section .gs-bh__title, .bh-summary__section .gs-wbh__title { display: none !important; }
.bh-summary__foot { text-align: center; margin-top: 14px; }
.bh-summary__btn {
  display: inline-block;
  background: #ffcc00;
  color: #1a1d27 !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease;
  text-shadow: none;
  -webkit-text-stroke: 0;
}
.bh-summary__btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(255,204,0,.4); background: #ffd54a; }

/* =====================================================================
   Active banners on homepage — [gs_active_banners]
   ===================================================================== */
.gs-active-banners {
  background: #232734f5;
  border: 1px solid #2f3447;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 28px;
}
.gs-active-banners__head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.gs-active-banners__h {
  font-size: 20px;
  font-weight: 700 !important;
  color: #fff;
  margin: 0;
  padding-left: 12px;
  position: relative;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.gs-active-banners__h::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 4px;
  background: linear-gradient(180deg, #ffcc00 0%, #ff7a45 100%);
  border-radius: 3px;
}
.gs-active-banners__h::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #5db365;
  border-radius: 50%;
  margin-left: 10px;
  box-shadow: 0 0 0 3px rgba(93,179,101,.25);
  animation: gs-pulse 1.6s ease-in-out infinite;
}
@keyframes gs-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(93,179,101,.25); }
  50%      { box-shadow: 0 0 0 8px rgba(93,179,101,.0); }
}
.gs-active-banners__more {
  font-size: 13px;
  color: #ffd54a !important;
  text-decoration: none !important;
  font-weight: 700;
  padding: 5px 12px;
  border: 1px solid #2f3447;
  border-radius: 6px;
  transition: background .12s ease, border-color .12s ease;
}
.gs-active-banners__more:hover { border-color: #ffcc00; background: rgba(255,204,0,.08); }

.gs-active-banners__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.gs-active {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #1a1d27;
  border-radius: 10px;
  padding: 14px;
  text-decoration: none !important;
  color: #d6dae7;
  border-left: 4px solid #ffcc00;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.gs-active:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.gs-active--lc { border-left-color: #4a90d9; }

.gs-active__type { font-size: 11px; font-weight: 700; color: #ffd54a; text-transform: uppercase; letter-spacing: .5px; }
.gs-active--lc .gs-active__type { color: #4a90d9; }
.gs-active__title { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.3; text-shadow: none; -webkit-text-stroke: 0; }
.gs-active__avatars { display: flex; gap: 10px; flex-wrap: wrap; }
.gs-active__avatar {
  width: 110px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid #2f3447;
  background: linear-gradient(135deg, #2a2f3e 0%, #1a1d27 100%);
  flex: 0 0 110px;
  display: block;
}
.gs-active__avatar.star-5 { border-color: #e7b04b; background: url("/wp-content/uploads/5-star-bg.webp") center/100% 100% no-repeat; }
.gs-active__avatar.star-4 { border-color: #b06fd9; background: url("/wp-content/uploads/4-star-bg.png")  center/100% 100% no-repeat; }
.gs-active__avatar.star-3 { border-color: #4a90d9; background: url("/wp-content/uploads/3-sao-bg.webp") center/100% 100% no-repeat; }
.gs-active__avatar img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block; }

.gs-active__countdown {
  font-size: 12px;
  font-weight: 700;
  color: #5db365;
  background: rgba(93,179,101,.1);
  padding: 4px 10px;
  border-radius: 6px;
  align-self: flex-start;
  font-variant-numeric: tabular-nums;
}
.gs-active__countdown.ended { color: #8b91a8; background: rgba(139,145,168,.1); }

@media (max-width: 600px) {
  .gs-active-banners { padding: 14px; }
  .gs-active-banners__grid { grid-template-columns: 1fr; }
  .gs-active__avatar { width: 80px; height: 80px; flex-basis: 80px; }
}
@media (max-width: 600px) {
  .tv2-node { width: 52px; height: 52px; }
  .tv2-node__ico { width: 38px; height: 38px; }
  .tv2-node--main { width: 60px; height: 60px; }
  .tv2-node--main .tv2-node__ico { width: 46px; height: 46px; }
  .tv2-link { flex-basis: 14px; }
}

/* =====================================================================
   FILTER VISIBILITY — must win against any `display: flex !important` etc.
   Place at end of file so source-order tiebreaker also favors hiding.
   ===================================================================== */
.weapon-list .weapon-item.filter__item:not(.active),
.character-list .character-item.filter__item:not(.active),
.relic-archive .relic-archive__item.filter__item:not(.active),
.mat-archive .mat-archive__item.filter__item:not(.active),
.filter__item:not(.active) {
  display: none !important;
}

/* =====================================================================
   VŨ TRỤ MÔ PHỎNG — /vu-tru-mo-phong (page-simuniverse.php)
   ===================================================================== */
.su-page { background: #232734f5; border-radius: 10px; padding: 24px; margin-bottom: 24px; }
.su-page__title { font-size: 32px; font-weight: 700 !important; color: #fff; margin: 0 0 14px; text-align: center; text-shadow: 0 2px 6px rgba(0,0,0,.4); -webkit-text-stroke: 0 !important; letter-spacing: 0 !important; text-transform: none !important; }
.su-page__intro { background: #1a1d27; border-left: 3px solid #ffcc00; padding: 12px 16px; border-radius: 0 8px 8px 0; color: #d6dae7; font-size: 14px; line-height: 1.65; margin-bottom: 20px; }
.su-page__intro p:last-child { margin: 0; }
.su-page__empty { background: #1a1d27; border-radius: 8px; padding: 20px; color: #b6bcd1; text-align: center; }

.su-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }

/* LEFT — sidebar list */
.su-list { display: flex; flex-direction: column; gap: 8px; background: #1a1d27; padding: 12px; border-radius: 10px; }
.su-list__item {
  display: flex; align-items: center; gap: 10px;
  background: transparent;
  border: 2px solid transparent;
  color: #d6dae7;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-weight: 600;
  font-size: 14px;
  transition: border-color .12s ease, background .12s ease;
  text-shadow: none;
  -webkit-text-stroke: 0;
}
.su-list__item:hover { background: rgba(255,255,255,.04); }
.su-list__item.is-active { border-color: #ffcc00; background: rgba(255,204,0,.08); color: #ffd54a; }
.su-list__thumb {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  border-radius: 6px;
  overflow: hidden;
  background: #2a2f3e;
  display: flex; align-items: center; justify-content: center;
}
.su-list__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.su-list__name { flex: 1; min-width: 0; line-height: 1.3; }

/* RIGHT — panels */
.su-panels { background: #1a1d27; border-radius: 10px; padding: 20px; min-height: 400px; }
.su-panel { display: none; }
.su-panel.is-active { display: block; animation: su-fadein .2s ease; }
@keyframes su-fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.su-panel__head { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #2f3447; margin-bottom: 16px; }
.su-panel__icon {
  flex: 0 0 80px; width: 80px; height: 80px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2a2f3e 0%, #1a1d27 100%);
  border: 1px solid #2f3447;
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.su-panel__icon img { width: 100%; height: 100%; object-fit: contain; }
.su-panel__title { flex: 1; min-width: 0; }
.su-panel__name { font-size: 22px; font-weight: 700 !important; color: #fff; margin: 0 0 4px; text-shadow: none !important; -webkit-text-stroke: 0 !important; letter-spacing: 0 !important; text-transform: none !important; }
.su-panel__level { color: #ffd54a; font-size: 14px; font-weight: 700; }
.su-panel__desc { color: #d6dae7; font-size: 14px; line-height: 1.6; margin-bottom: 16px; }

/* SECTIONS inside panel */
.su-section { margin-top: 18px; }
.su-section__h { font-size: 16px; font-weight: 700 !important; color: #fff; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 2px solid #ffcc00; display: inline-block; text-shadow: none !important; -webkit-text-stroke: 0 !important; letter-spacing: 0 !important; text-transform: none !important; }

/* Rewards row */
.su-rewards { display: flex; flex-wrap: wrap; gap: 10px; }
.su-reward {
  position: relative;
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #2a2f3e 0%, #1a1d27 100%);
  border: 1px solid #2f3447;
  border-radius: 8px;
  padding: 6px;
  display: flex; align-items: center; justify-content: center;
}
.su-reward__img { width: 100%; height: 100%; object-fit: contain; }
.su-reward__qty {
  position: absolute; bottom: 2px; right: 4px;
  background: rgba(0,0,0,.7); color: #fff; font-size: 11px; font-weight: 700;
  padding: 1px 5px; border-radius: 4px; line-height: 1.3;
  text-shadow: none; -webkit-text-stroke: 0;
}

/* Bosses */
.su-bosses { display: flex; flex-direction: column; gap: 10px; }
.su-boss { display: flex; gap: 14px; background: #232734; border-radius: 8px; padding: 10px 14px; align-items: center; }
.su-boss__icowrap {
  position: relative;
  flex: 0 0 64px; width: 64px; height: 64px;
  background: #2a2f3e; border: 1px solid #2f3447; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.su-boss__img { width: 100%; height: 100%; object-fit: cover; }
.su-boss__lvl {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.7); color: #fff; font-size: 10px; font-weight: 700;
  padding: 1px 0; text-align: center; line-height: 1.4;
  text-shadow: none; -webkit-text-stroke: 0;
}
.su-boss__body { flex: 1; min-width: 0; }
.su-boss__name { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; text-shadow: none; -webkit-text-stroke: 0; }
.su-boss__weakness { display: flex; gap: 6px; }
.su-boss__el {
  width: 26px; height: 26px;
  background: rgba(0,0,0,.4);
  border-radius: 6px;
  padding: 3px;
  display: flex; align-items: center; justify-content: center;
}
.su-boss__el img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 800px) {
  .su-layout { grid-template-columns: 1fr; }
  .su-list { flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 8px; }
  .su-list__item { width: auto; flex: 1 1 calc(50% - 6px); }
  .su-list__name { font-size: 13px; }
}
@media (max-width: 480px) {
  .su-page { padding: 14px; }
  .su-panels { padding: 14px; }
  .su-panel__icon { flex-basis: 56px; width: 56px; height: 56px; }
  .su-panel__name { font-size: 18px; }
}

/* =====================================================================
   SU Page TABS + Blessings + Curios
   ===================================================================== */
.su-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 18px; }
.su-tab {
  background: #1a1d27;
  color: #d6dae7;
  border: 1px solid #2f3447;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
  text-shadow: none;
  -webkit-text-stroke: 0;
}
.su-tab:hover { border-color: #ceae7e; }
.su-tab.is-active { background: #ceae7e; color: #1a1d27; border-color: #ceae7e; }
.su-tab__count {
  background: rgba(0,0,0,.25);
  color: inherit;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 700;
}
.su-tab.is-active .su-tab__count { background: rgba(255,255,255,.25); color: #1a1d27; }

.su-tabpane { display: none; }
.su-tabpane.is-active { display: block; animation: su-fadein .2s ease; }

/* Blessing/Curio filters */
.su-bc-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center; }
.su-bc-search {
  background: #1a1d27 !important;
  border: 1px solid #2f3447 !important;
  color: #fff !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  min-width: 240px;
  flex: 1;
  max-width: 360px;
  height: auto !important;
  margin: 0 !important;
  box-shadow: none !important;
}
.su-bc-search::placeholder { color: #6b7290; }
.su-bc-search:focus { border-color: #ceae7e !important; outline: none !important; }
.su-bc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.su-bc-chip {
  background: #1a1d27;
  color: #d6dae7;
  border: 1px solid #2f3447;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
  text-shadow: none;
  -webkit-text-stroke: 0;
}
.su-bc-chip:hover { border-color: #ceae7e; }
.su-bc-chip.is-active { background: #ceae7e; color: #1a1d27; border-color: #ceae7e; }

/* Grid layouts */
.su-bc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.su-bc-grid--curio { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Card — Blessing */
.su-bc-card--blessing {
  background: #1a1d27;
  border-radius: 8px;
  padding: 14px;
  border-left: 3px solid #ffcc00;
  transition: transform .12s ease;
}
.su-bc-card--blessing:hover { transform: translateY(-2px); }
.su-bc-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.su-bc-card__name { font-size: 14px; font-weight: 700 !important; color: #fff; flex: 1; min-width: 0; text-shadow: none !important; -webkit-text-stroke: 0 !important; }
.su-bc-card__tag {
  background: rgba(255,204,0,.12);
  color: #ffd54a;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  flex: 0 0 auto;
}
.su-bc-card__desc { color: #d6dae7; font-size: 13px; line-height: 1.55; }
.su-bc-card__desc p { margin: 0 0 6px; }
.su-bc-card__desc p:last-child { margin-bottom: 0; }

/* Card — Curio (collapsible) */
.su-bc-card--curio {
  background: #1a1d27;
  border-radius: 8px;
  border-left: 3px solid #b06fd9;
  overflow: hidden;
  transition: border-color .12s ease;
}
.su-bc-card--curio[open] { border-left-color: #ceae7e; }
.su-bc-card--curio summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}
.su-bc-card--curio summary::-webkit-details-marker { display: none; }
.su-bc-card--curio summary::after {
  content: '+';
  margin-left: auto;
  font-size: 18px;
  color: #ceae7e;
  font-weight: 700;
}
.su-bc-card--curio[open] summary::after { content: '−'; }
.su-bc-card__ico { width: 44px !important; height: 44px !important; border-radius: 6px; background: #2a2f3e; padding: 4px; object-fit: contain; }
.su-bc-card__lore { padding: 0 14px 14px; color: #8b91a8; font-size: 12.5px; line-height: 1.6; font-style: italic; border-top: 1px dashed #2f3447; margin: 8px 14px 0; padding-top: 10px; }
.su-bc-card--curio .su-bc-card__desc { padding: 0 14px 12px; color: #d6dae7; font-size: 13px; line-height: 1.55; }

.su-bc-empty { text-align: center; color: #8b91a8; padding: 30px 20px; font-size: 14px; }

@media (max-width: 600px) {
  .su-tabs { gap: 6px; }
  .su-tab { padding: 6px 12px; font-size: 13px; }
  .su-bc-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   KE DICH (Enemy) — detail + archive
   ===================================================================== */
.enemy-page { background: #232734f5; border-radius: 10px; padding: 28px; margin-bottom: 24px; }
.enemy-page__head { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid #2f3447; }
.enemy-page__icowrap {
  flex: 0 0 180px; width: 180px; height: 180px; border-radius: 12px;
  background: linear-gradient(135deg, #2a2f3e 0%, #1a1d27 100%);
  border: 2px solid #2f3447;
  display: flex; align-items: center; justify-content: center; padding: 8px;
}
.enemy-page__icon { width: 100% !important; height: 100% !important; object-fit: contain !important; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.enemy-page__info { flex: 1; min-width: 0; }
.enemy-page__name { font-size: 30px; font-weight: 700 !important; color: #fff; margin: 0 0 10px; text-shadow: none !important; -webkit-text-stroke: 0 !important; text-transform: none !important; letter-spacing: 0 !important; line-height: 1.25; }
.enemy-page__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.enemy-page__type { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 6px; text-shadow: none; -webkit-text-stroke: 0; border: 1px solid; }
.enemy-page__type--normal { color: #b6bcd1; border-color: #b6bcd1; background: rgba(182,188,209,.08); }
.enemy-page__type--elite  { color: #4a90d9; border-color: #4a90d9; background: rgba(74,144,217,.10); }
.enemy-page__type--boss   { color: #ff7a45; border-color: #ff7a45; background: rgba(255,122,69,.10); }
.enemy-page__type--weekly { color: #b06fd9; border-color: #b06fd9; background: rgba(176,111,217,.10); }
.enemy-page__lvl  { color: #ffd54a; font-size: 13px; font-weight: 700; background: #1a1d27; padding: 4px 12px; border-radius: 6px; }
.enemy-page__area { color: #d6dae7; font-size: 13px; background: #1a1d27; padding: 4px 12px; border-radius: 6px; }
.enemy-page__desc { color: #d6dae7; font-size: 14px; line-height: 1.6; }

.enemy-sec { margin-top: 24px; padding-top: 22px; border-top: 1px solid #2f3447; }
.enemy-sec:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.enemy-sec__h { font-size: 20px; font-weight: 700 !important; color: #fff; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid #ceae7e; display: inline-block; text-shadow: none !important; -webkit-text-stroke: 0 !important; text-transform: none !important; letter-spacing: 0 !important; }

.enemy-weakness { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.enemy-weakness__el { display: inline-flex; align-items: center; gap: 8px; background: #1a1d27; padding: 6px 12px; border-radius: 8px; border: 1px solid #2f3447; }
.enemy-weakness__el img { width: 28px; height: 28px; }
.enemy-weakness__el span { color: #d6dae7; font-size: 13px; }
.enemy-weakness__tough { color: #d6dae7; font-size: 13px; background: #1a1d27; padding: 6px 14px; border-radius: 8px; border: 1px solid #2f3447; }
.enemy-weakness__tough b { color: #ffd54a; }

.enemy-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.enemy-stat { display: flex; flex-direction: column; gap: 4px; background: #1a1d27; padding: 12px 14px; border-radius: 8px; }
.enemy-stat__k { font-size: 11px; color: #8b91a8; text-transform: uppercase; letter-spacing: .5px; }
.enemy-stat__v { font-size: 16px; color: #fff; font-weight: 700; }

.enemy-skills { display: flex; flex-direction: column; gap: 10px; }
.enemy-skill { background: #1a1d27; padding: 14px 16px; border-radius: 8px; border-left: 3px solid #ceae7e; }
.enemy-skill__name { font-size: 15px; font-weight: 700 !important; color: #fff; margin: 0 0 6px; text-shadow: none !important; -webkit-text-stroke: 0 !important; }
.enemy-skill__desc { color: #d6dae7; font-size: 13.5px; line-height: 1.6; }

.enemy-drops {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.enemy-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #1a1d27;
  border-radius: 8px;
  padding: 8px;
  text-decoration: none !important;
  color: #d6dae7;
  border-top: 3px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-align: center;
}
.enemy-drop:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.enemy-drop--r1 { border-top-color: #8b8b8b; }
.enemy-drop--r2 { border-top-color: #5db365; }
.enemy-drop--r3 { border-top-color: #4a90d9; }
.enemy-drop--r4 { border-top-color: #b06fd9; }
.enemy-drop--r5 { border-top-color: #e7b04b; }
.enemy-drop--r5:hover { box-shadow: 0 4px 14px rgba(231,176,75,.3); }
.enemy-drop--r4:hover { box-shadow: 0 4px 14px rgba(176,111,217,.3); }

.enemy-drop__ico {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 1px solid #2f3447;
}
.enemy-drop__ico img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
}
.enemy-drop__qty {
  position: absolute;
  bottom: 2px;
  right: 4px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 5px;
  line-height: 1.3;
  text-shadow: none;
  -webkit-text-stroke: 0;
}
.enemy-drop__name {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: none;
  -webkit-text-stroke: 0;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.enemy-drop__rate { font-size: 10px; color: #ffd54a; font-weight: 700; }

@media (max-width: 600px) {
  .enemy-drops { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
  .enemy-drop__ico { width: 60px; height: 60px; }
  .enemy-drop__name { font-size: 10.5px; }
}

.enemy-tips { color: #d6dae7; font-size: 14px; line-height: 1.65; background: #1a1d27; padding: 14px 18px; border-radius: 8px; border-left: 3px solid #ffcc00; }
.enemy-tips p:last-child { margin: 0; }

.enemy-lore { color: #b6bcd1; font-size: 13.5px; line-height: 1.65; font-style: italic; }

@media (max-width: 700px) {
  .enemy-page { padding: 18px; }
  .enemy-page__head { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .enemy-page__icowrap { flex-basis: 140px; width: 140px; height: 140px; }
  .enemy-page__name { font-size: 22px; }
  .enemy-page__meta { justify-content: center; }
}

/* ENEMY ARCHIVE */
.enemy-archive { background: #232734f5; border-radius: 10px; padding: 24px; margin-bottom: 24px; }
.enemy-archive__intro { background: #1a1d27; border-left: 3px solid #ceae7e; padding: 12px 16px; border-radius: 0 8px 8px 0; color: #d6dae7; font-size: 14px; line-height: 1.65; margin-bottom: 16px; }
.enemy-archive__intro strong { color: #ffd54a; }
.enemy-archive__filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center; }
.enemy-archive__search {
  background: #1a1d27 !important; border: 1px solid #2f3447 !important; color: #fff !important;
  padding: 8px 14px !important; border-radius: 8px !important; font-size: 14px !important;
  min-width: 220px; flex: 1; max-width: 360px; height: auto !important; margin: 0 !important; box-shadow: none !important;
}
.enemy-archive__search::placeholder { color: #6b7290; }
.enemy-archive__search:focus { border-color: #ceae7e !important; outline: none !important; }
.enemy-archive__chips { display: flex; flex-wrap: wrap; gap: 6px; }

.enemy-archive__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.enemy-archive__item {
  display: flex; flex-direction: column;
  background: #1a1d27; border-radius: 10px; padding: 12px;
  text-decoration: none !important; color: #d6dae7;
  border-top: 3px solid #2f3447;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.enemy-archive__item:hover { transform: translateY(-3px); box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.enemy-archive__item--elite  { border-top-color: #4a90d9; }
.enemy-archive__item--elite:hover  { box-shadow: 0 4px 16px rgba(74,144,217,.30); }
.enemy-archive__item--boss   { border-top-color: #ff7a45; }
.enemy-archive__item--boss:hover   { box-shadow: 0 4px 16px rgba(255,122,69,.30); }
.enemy-archive__item--weekly { border-top-color: #b06fd9; }
.enemy-archive__item--weekly:hover { box-shadow: 0 4px 16px rgba(176,111,217,.30); }

.enemy-archive__icowrap {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  border-radius: 8px;
  background: linear-gradient(135deg, #2a2f3e 0%, #1a1d27 100%);
  border: 1px solid #2f3447;
  display: flex !important;
  align-items: center; justify-content: center;
  padding: 8px;
  margin-bottom: 10px;
  overflow: hidden !important;
  position: relative;
}
.enemy-archive__ico {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
}

.enemy-archive__body { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; }
.enemy-archive__name { font-size: 13px; font-weight: 700 !important; color: #fff; line-height: 1.3; text-shadow: none !important; -webkit-text-stroke: 0 !important; word-break: break-word; }
.enemy-archive__type { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-shadow: none; -webkit-text-stroke: 0; }
.enemy-archive__type--normal { color: #b6bcd1; background: rgba(182,188,209,.10); }
.enemy-archive__type--elite  { color: #4a90d9; background: rgba(74,144,217,.10); }
.enemy-archive__type--boss   { color: #ff7a45; background: rgba(255,122,69,.10); }
.enemy-archive__type--weekly { color: #b06fd9; background: rgba(176,111,217,.10); }
.enemy-archive__empty { color: #8b91a8; text-align: center; padding: 30px 20px; font-size: 14px; }

/* =====================================================================
   VAT PHAM TUI (Item) — archive + detail
   ===================================================================== */
.item-archive { background: #232734f5; border-radius: 10px; padding: 24px; margin-bottom: 24px; }
.item-archive__intro { background: #1a1d27; border-left: 3px solid #ceae7e; padding: 12px 16px; border-radius: 0 8px 8px 0; color: #d6dae7; font-size: 14px; line-height: 1.65; margin-bottom: 16px; }
.item-archive__intro strong { color: #ffd54a; }
.item-archive__filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center; }
.item-archive__search {
  background: #1a1d27 !important; border: 1px solid #2f3447 !important; color: #fff !important;
  padding: 8px 14px !important; border-radius: 8px !important; font-size: 14px !important;
  min-width: 220px; flex: 1; max-width: 360px; height: auto !important; margin: 0 !important; box-shadow: none !important;
}
.item-archive__search::placeholder { color: #6b7290; }
.item-archive__search:focus { border-color: #ceae7e !important; outline: none !important; }
.item-archive__chips { display: flex; flex-wrap: wrap; gap: 6px; }

.item-archive__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.item-archive__item {
  display: flex; flex-direction: column;
  background: #1a1d27; border-radius: 10px; padding: 10px;
  text-decoration: none !important; color: #d6dae7;
  border-top: 3px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.item-archive__item:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.item-archive__item--r1 { border-top-color: #8b8b8b; }
.item-archive__item--r2 { border-top-color: #5db365; }
.item-archive__item--r3 { border-top-color: #4a90d9; }
.item-archive__item--r4 { border-top-color: #b06fd9; }
.item-archive__item--r5 { border-top-color: #e7b04b; }
.item-archive__icowrap {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 8px; margin-bottom: 8px;
  border: 1px solid #2f3447;
  overflow: hidden;
}
.item-archive__ico { width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain !important; }
.item-archive__body { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; min-width: 0; }
.item-archive__name { font-size: 12px; font-weight: 700 !important; color: #fff; line-height: 1.3; word-break: break-word; text-shadow: none !important; -webkit-text-stroke: 0 !important; }
.item-archive__type { font-size: 10px; color: #ffd54a; line-height: 1.3; padding: 1px 6px; background: rgba(255,204,0,.08); border-radius: 4px; margin-top: 2px; }
.item-archive__empty { color: #8b91a8; text-align: center; padding: 30px 20px; font-size: 14px; }

@media (max-width: 600px) {
  .item-archive { padding: 16px; }
  .item-archive__grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
  .item-archive__name { font-size: 11px; }
}
