:root {
  color-scheme: dark;
  --bg: #140d23;
  --panel: #211537;
  --panel-2: #2d1d48;
  --line: #553b7a;
  --text: #f7f2ff;
  --muted: #bba8d7;
  --good: #51e68d;
  --ok: #8fc8ff;
  --bad: #ffd05a;
  --counter: #ff6b7a;
  --accent: #9a5cff;
  --cyan: #4dd8e8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(77, 216, 232, 0.18), transparent 28rem),
    linear-gradient(135deg, #130b20 0%, #1e1232 48%, #0c1726 100%);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a {
  color: #9de7ff;
}

.page {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero {
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 28px 0 22px;
}

.kicker {
  color: var(--cyan);
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

h1,
h2 {
  letter-spacing: 0;
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
}

h2 {
  font-size: 1.25rem;
}

.lead {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.legend {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(33, 21, 55, 0.82);
}

.legend span {
  white-space: nowrap;
  color: var(--muted);
  font-weight: 700;
}

.legend b {
  margin-right: 6px;
}

.section {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(126, 88, 178, 0.72);
  border-radius: 8px;
  background: rgba(23, 14, 39, 0.72);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.24);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  margin-bottom: 14px;
}

.section-head p,
.small {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.table-wrap {
  overflow: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #130c22;
}

table {
  width: 100%;
  min-width: 1220px;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  min-width: 86px;
  padding: 10px 8px;
  text-align: center;
  border-right: 1px solid rgba(85, 59, 122, 0.72);
  border-bottom: 1px solid rgba(85, 59, 122, 0.72);
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #2b1a47;
  color: #f3eaff;
  font-size: 0.82rem;
}

th:first-child,
td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 178px;
  text-align: left;
  background: #25173d;
}

td:first-child {
  font-weight: 800;
}

td[data-level] {
  cursor: pointer;
  font-weight: 900;
  font-size: 1.15rem;
}

.good {
  color: var(--good);
}

.ok {
  color: var(--ok);
}

.bad {
  color: var(--bad);
}

.counter {
  color: var(--counter);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.counter-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.counter-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(85, 59, 122, 0.72);
  border-radius: 8px;
  background: rgba(33, 21, 55, 0.82);
}

.counter-row b {
  color: #fff;
}

.effect-label {
  display: inline-grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  max-width: 100%;
  line-height: 1.15;
}

.effect-label img {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(137, 98, 190, 0.5);
}

.effect-label span {
  overflow-wrap: anywhere;
}

.effect-label-small {
  grid-template-columns: 30px minmax(0, 1fr);
  justify-items: center;
  text-align: center;
  gap: 6px;
}

.effect-label-small img {
  width: 30px;
  height: 30px;
}

.counter-row .effect-label {
  grid-template-columns: 36px minmax(0, 1fr);
}

.counter-row .effect-label img {
  width: 36px;
  height: 36px;
}

.effect-chip,
.hero-chip,
.weapon-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 30px;
  padding: 4px 7px 4px 5px;
  border: 1px solid rgba(126, 88, 178, 0.7);
  border-radius: 999px;
  background: rgba(33, 21, 55, 0.86);
  color: #f7f2ff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
}

.effect-chip img,
.hero-chip img,
.weapon-chip img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  image-rendering: pixelated;
  border-radius: 5px;
}

.hero-chip img,
.weapon-chip img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #160d25;
}

.weapon-chip img {
  border-radius: 6px;
}

.related-heroes {
  min-width: 220px;
  text-align: left;
}

.related-heroes .hero-chip {
  margin: 2px;
}

.muted {
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
}

.weapon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
}

.pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
}

.enemy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 8px;
}

.build-guide {
  display: grid;
  gap: 18px;
}

.guide-feature {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(81, 230, 141, 0.5);
  border-radius: 8px;
  background: rgba(18, 38, 38, 0.78);
}

.guide-icons {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
}

.guide-icons img,
.guide-pets img {
  width: 52px;
  height: 52px;
  image-rendering: pixelated;
  border-radius: 8px;
  background: #160d25;
  box-shadow: 0 0 0 1px rgba(126, 88, 178, 0.56);
}

.guide-feature h3,
.guide-card h4,
.guide-subhead {
  margin: 0;
}

.guide-feature p,
.guide-card p {
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.55;
}

.guide-feature ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #e8dcff;
  line-height: 1.55;
}

.guide-pets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.guide-card {
  padding: 14px;
  border: 1px solid rgba(126, 88, 178, 0.62);
  border-radius: 8px;
  background: rgba(33, 21, 55, 0.72);
}

.guide-card b {
  display: block;
  color: #f7f2ff;
  line-height: 1.45;
  font-size: 0.88rem;
}

.blessing-guide {
  display: grid;
  gap: 18px;
}

.blessing-feature {
  border-color: rgba(255, 196, 77, 0.58);
  background: rgba(42, 31, 18, 0.78);
}

.blessing-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #ffe7ad;
  font-size: 0.76rem;
  font-weight: 800;
  background: rgba(255, 196, 77, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 77, 0.36);
}

.blessing-common-grid,
.blessing-hero-grid,
.blessing-class-grid {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.blessing-common-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blessing-hero-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.blessing-class-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blessing-common-card,
.blessing-hero-card,
.blessing-class-card {
  padding: 12px;
  border: 1px solid rgba(126, 88, 178, 0.58);
  border-radius: 8px;
  background: rgba(24, 22, 38, 0.78);
}

.blessing-common-head,
.blessing-hero-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blessing-rank {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #101014;
  font-size: 0.76rem;
  font-weight: 900;
  background: #f4c15d;
}

.blessing-rank-ss {
  background: #60e59a;
}

.blessing-rank-s {
  background: #92d4ff;
}

.blessing-rank-aplus,
.blessing-rank-a {
  background: #f4c15d;
}

.blessing-rank-bplus {
  background: #b5a7cf;
}

.blessing-common-card h4,
.blessing-hero-card h4,
.blessing-class-card h4 {
  margin: 0;
  font-size: 0.98rem;
}

.blessing-common-card b,
.blessing-class-card b {
  display: block;
  margin-top: 2px;
  color: #fbe3a0;
  font-size: 0.82rem;
}

.blessing-common-card p,
.blessing-hero-card p,
.blessing-class-card p,
.blessing-class-card span {
  display: block;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.blessing-hero-head img {
  width: 44px;
  height: 44px;
  image-rendering: pixelated;
  border-radius: 8px;
  background: #160d25;
  box-shadow: 0 0 0 1px rgba(126, 88, 178, 0.56);
}

.blessing-hero-head span {
  display: block;
  margin-top: 2px;
  color: #fbe3a0;
  font-size: 0.82rem;
  font-weight: 700;
}

.blessing-picks {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #f7f2ff;
  font-size: 0.88rem;
  line-height: 1.45;
}

.blessing-picks li + li {
  margin-top: 4px;
}

.hero-card {
  padding: 14px;
  border: 1px solid rgba(126, 88, 178, 0.72);
  border-radius: 8px;
  background: rgba(33, 21, 55, 0.82);
}

.combo-card {
  padding: 14px;
  border: 1px solid rgba(126, 88, 178, 0.72);
  border-radius: 8px;
  background: rgba(19, 12, 34, 0.86);
}

.combo-icon-button {
  position: relative;
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  gap: 6px;
  padding: 18px 8px 8px;
  border: 1px solid rgba(126, 88, 178, 0.72);
  border-radius: 8px;
  background: rgba(19, 12, 34, 0.86);
  cursor: pointer;
}

.combo-icon-button:hover,
.combo-icon-button:focus-visible {
  border-color: rgba(81, 230, 141, 0.78);
  background: rgba(25, 35, 43, 0.94);
  outline: none;
}

.combo-icon-best {
  border-color: rgba(81, 230, 141, 0.72);
  background: rgba(18, 38, 38, 0.86);
}

.combo-icon-button > span {
  position: absolute;
  top: 5px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(81, 230, 141, 0.14);
  color: var(--good);
  font-size: 0.68rem;
  font-weight: 900;
}

.combo-icon-button img {
  width: 42px;
  height: 42px;
  image-rendering: pixelated;
}

.combo-best {
  grid-column: span 2;
  border-color: rgba(81, 230, 141, 0.72);
  background: rgba(18, 38, 38, 0.86);
}

.combo-rank {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(81, 230, 141, 0.14);
  color: var(--good);
  font-size: 0.78rem;
  font-weight: 900;
}

.combo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.combo-pair div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(85, 59, 122, 0.72);
  border-radius: 8px;
  background: rgba(33, 21, 55, 0.66);
}

.combo-pair img {
  width: 48px;
  height: 48px;
  display: block;
  margin-bottom: 8px;
  image-rendering: pixelated;
  border-radius: 8px;
  background: #160d25;
}

.combo-pair strong,
.combo-pair span {
  display: block;
  overflow-wrap: anywhere;
}

.combo-pair strong {
  color: #fff;
  line-height: 1.2;
}

.combo-pair span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.combo-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.combo-card p {
  margin: 0;
  color: #e8dcff;
  line-height: 1.55;
  font-size: 0.9rem;
}

.hero-icon-button,
.weapon-icon-button,
.pet-icon-button,
.gear-icon-button {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(126, 88, 178, 0.56);
  border-radius: 8px;
  background: rgba(33, 21, 55, 0.82);
  cursor: pointer;
}

.weapon-icon-button {
  border-color: rgba(77, 216, 232, 0.32);
  background: rgba(20, 24, 43, 0.82);
}

.pet-icon-button {
  border-color: rgba(255, 208, 90, 0.34);
  background: rgba(36, 27, 22, 0.82);
}

.gear-icon-button {
  border-color: rgba(154, 92, 255, 0.44);
  background: rgba(30, 20, 46, 0.82);
}

.hero-icon-button:hover,
.hero-icon-button:focus-visible,
.weapon-icon-button:hover,
.weapon-icon-button:focus-visible,
.pet-icon-button:hover,
.pet-icon-button:focus-visible,
.gear-icon-button:hover,
.gear-icon-button:focus-visible {
  border-color: rgba(81, 230, 141, 0.78);
  background: rgba(25, 35, 43, 0.94);
  outline: none;
}

.hero-icon-button img,
.weapon-icon-button img,
.pet-icon-button img,
.gear-icon-button img {
  width: min(58px, 82%);
  height: min(58px, 82%);
  image-rendering: pixelated;
}

.weapon-card {
  padding: 14px;
  border: 1px solid rgba(77, 216, 232, 0.32);
  border-radius: 8px;
  background: rgba(20, 24, 43, 0.82);
}

.enemy-card {
  padding: 14px;
  border: 1px solid rgba(143, 200, 255, 0.28);
  border-radius: 8px;
  background: rgba(16, 19, 33, 0.86);
}

.enemy-icon-button {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(143, 200, 255, 0.28);
  border-radius: 8px;
  background: rgba(16, 19, 33, 0.86);
  cursor: pointer;
}

.enemy-icon-button:hover,
.enemy-icon-button:focus-visible {
  border-color: rgba(81, 230, 141, 0.78);
  background: rgba(25, 35, 43, 0.94);
  outline: none;
}

.enemy-icon-button img {
  width: min(54px, 82%);
  height: min(54px, 82%);
  image-rendering: pixelated;
}

.enemy-card-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.enemy-portrait {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #160d25;
  image-rendering: pixelated;
  box-shadow: 0 0 0 1px rgba(143, 200, 255, 0.34);
}

.enemy-card h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.2;
}

.enemy-card-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.enemy-detail {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100% - 28px));
  max-height: min(82vh, 720px);
  overflow: auto;
  padding: 16px 46px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #110b1d;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  z-index: 10;
}

.entity-detail {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100% - 28px));
  max-height: min(82vh, 720px);
  overflow: auto;
  padding: 16px 46px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #110b1d;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  z-index: 10;
}

.entity-detail > button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  color: white;
  font-size: 1.2rem;
}

.entity-detail-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.entity-detail h3 {
  margin: 0;
  font-size: 1.15rem;
}

.entity-detail-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.entity-detail ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.entity-detail dl {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.entity-detail dt {
  color: #f7f2ff;
  font-weight: 900;
}

.entity-detail dd {
  margin: 0 0 8px;
}

.enemy-detail > button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  color: white;
  font-size: 1.2rem;
}

.enemy-detail-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.enemy-detail h3 {
  margin: 0;
  font-size: 1.15rem;
}

.enemy-detail-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.enemy-effects,
.enemy-needs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.enemy-traits {
  min-height: 42px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.enemy-picks {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(85, 59, 122, 0.72);
}

.enemy-picks > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.enemy-picks strong,
.enemy-needs strong {
  flex: 0 0 46px;
  color: #fff;
  font-size: 0.82rem;
}

.enemy-needs {
  align-items: center;
  margin-bottom: 0;
}

.hero-card-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.weapon-card-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.hero-portrait {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: #160d25;
  image-rendering: pixelated;
  box-shadow: 0 0 0 1px rgba(137, 98, 190, 0.5);
}

.weapon-portrait {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: #160d25;
  image-rendering: pixelated;
  box-shadow: 0 0 0 1px rgba(77, 216, 232, 0.38);
}

.pet-portrait {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: #160d25;
  image-rendering: pixelated;
  box-shadow: 0 0 0 1px rgba(255, 208, 90, 0.42);
}

.gear-portrait {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: #160d25;
  image-rendering: pixelated;
  box-shadow: 0 0 0 1px rgba(154, 92, 255, 0.5);
}

.hero-card h3 {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.2;
}

.weapon-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
}

.hero-card-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.weapon-card-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  font-weight: 800;
}

.hero-legendary .hero-card-head p span {
  color: #ffd05a;
}

.hero-epic .hero-card-head p span {
  color: #c89cff;
}

.hero-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.weapon-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.pet-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.gear-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.weapon-card dl {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.88rem;
}

.weapon-card dt {
  color: #f7f2ff;
  font-weight: 900;
}

.weapon-card dd {
  margin: 0 0 8px;
}

.hero-card li + li {
  margin-top: 6px;
}

.hero-note {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(85, 59, 122, 0.72);
  color: #e8dcff;
  line-height: 1.55;
  font-size: 0.9rem;
}

.counter-row span,
.notes p,
.sources,
.small {
  color: var(--muted);
}

.notes {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.notes p {
  margin: 0;
  line-height: 1.65;
}

.notes strong {
  color: #fff;
}

.sources {
  line-height: 1.8;
  margin: 12px 0;
}

.detail {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100% - 28px));
  max-height: min(82vh, 720px);
  overflow: auto;
  padding: 16px 46px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #110b1d;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.detail button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  color: white;
  font-size: 1.2rem;
}

.detail p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 760px) {
  .hero,
  .split,
  .section-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .legend {
    grid-template-columns: repeat(4, auto);
    overflow-x: auto;
  }

  .counter-row {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  }

  .recommendation-grid {
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  }

  .enemy-grid {
    grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
  }

  .guide-feature {
    grid-template-columns: 1fr;
  }

  .guide-card-grid {
    grid-template-columns: 1fr;
  }

  .blessing-common-grid,
  .blessing-hero-grid,
  .blessing-class-grid {
    grid-template-columns: 1fr;
  }

  .weapon-grid {
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  }

  .pet-grid {
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  }

  .gear-grid {
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  }

  .section {
    padding: 14px;
  }
}
