@import url("https://fonts.googleapis.com/css2?family=Hahmlet:wght@600;700;800;900&family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&display=swap");

:root {
  color-scheme: dark;
  --bg: #060303;
  --panel: rgba(16, 9, 8, 0.78);
  --red: #b42018;
  --red-bright: #ff3c2e;
  --gold: #d7aa52;
  --gold-soft: #f0cf82;
  --item-color-set: #00c400;
  --item-color-unique: #c7a866;
  --ash: #b9ada0;
  --text: #fff6e8;
  --muted: #d0b9a0;
  --line: rgba(215, 170, 82, 0.22);
  --shadow: rgba(0, 0, 0, 0.58);
  --content-max: 1040px;
  --site-header-height: 72px;
  --subpage-hero-min-height: 264px;
  --subpage-hero-padding-top: 48px;
  --subpage-hero-padding-bottom: 54px;
  --subpage-content-padding-top: 50px;
  --subpage-hero-image-size: cover;
  --font-readable-body: 1rem;
  --font-readable-control: 0.94rem;
  --font-readable-small: 0.82rem;
  --control-readable-min-height: 40px;
  --chip-readable-min-height: 38px;
  --badge-readable-min-height: 26px;
  --font-body: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Hahmlet", "Noto Serif KR", "Noto Sans KR", "Malgun Gothic", serif;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  scrollbar-color: rgba(215, 170, 82, 0.72) rgba(12, 8, 7, 0.86);
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-width: 320px;
  background: #080403;
  color: var(--text);
  font-size: var(--font-readable-body);
  line-height: 1.65;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  min-height: var(--site-header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(18px, 5vw, 76px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 12, 16, 0.96);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  min-width: 280px;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  display: block;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 206, 138, 0.2);
  border-radius: 12px;
  object-fit: cover;
  filter: drop-shadow(0 0 14px rgba(255, 90, 32, 0.34));
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 900;
  white-space: nowrap;
}

.brand small {
  margin-top: 4px;
  color: var(--gold-soft);
  font-size: var(--font-readable-small);
  font-weight: 800;
}

.top-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 24px);
}

.top-nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.top-nav__link {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 0;
  padding: 0 4px;
  color: #fff6e8;
  background: transparent;
  font-size: 0.96rem;
  font-weight: 800;
  white-space: nowrap;
}

.top-nav__button {
  cursor: pointer;
  font-family: inherit;
}

.top-nav__link--new {
  gap: 6px;
  padding-left: 4px;
}

.top-nav__link--new::after {
  left: 4px;
}

.top-nav__link::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.top-nav__link:hover::after {
  background: var(--red-bright);
}

.top-nav__link.is-active::after {
  background: var(--red-bright);
}

.top-nav__link--coming-soon,
.top-nav__link[href$="builds/index.html"] {
  color: rgba(255, 246, 232, 0.52);
}

.top-nav__link--coming-soon:hover,
.top-nav__link[href$="builds/index.html"]:hover {
  color: rgba(255, 246, 232, 0.72);
}

.nav-new-badge {
  display: none;
}

@keyframes new-badge-glint {
  0%,
  100% {
    filter: brightness(1);
    transform: translateY(0);
  }

  50% {
    filter: brightness(1.25);
    transform: translateY(-1px);
  }
}

.top-nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  display: grid;
  width: 104px;
  min-width: 0;
  max-width: none;
  gap: 4px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  border: 1px solid rgba(240, 207, 130, 0.24);
  border-radius: 8px;
  padding: 6px;
  background: rgba(10, 8, 8, 0.98);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.top-nav__dropdown a {
  display: flex;
  min-height: var(--chip-readable-min-height);
  align-items: center;
  border-radius: 6px;
  padding: 0 9px;
  color: #fff6e8;
  font-size: var(--font-readable-control);
  font-weight: 900;
  white-space: nowrap;
}

.top-nav__dropdown a:hover,
.top-nav__dropdown a:focus-visible {
  color: #17110c;
  background: #ffce8a;
  outline: none;
}

.top-nav__item:hover .top-nav__dropdown,
.top-nav__item:focus-within .top-nav__dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.page-shell:has(> .random-tip-banner-host) {
  overflow: visible;
}

body > main.page-shell:not(.subpage) {
  position: relative;
  background-color: #080303;
  background:
    linear-gradient(180deg, rgba(8, 3, 3, 0.02) 0%, rgba(8, 3, 3, 0.32) 42%, rgba(8, 3, 3, 0.78) 100%),
    radial-gradient(circle at 50% 48%, rgba(180, 32, 24, 0.2), transparent 56%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(34, 7, 6, 0.48) 34%, rgba(34, 7, 6, 0.48) 66%, rgba(0, 0, 0, 0.82)),
    url("./assets/sanctuary-hero.png") center top / cover no-repeat;
  background-blend-mode: normal, color, multiply, normal;
}

.home-hero {
  position: relative;
  min-height: 310px;
  padding-top: 18px;
  isolation: isolate;
}

.home-hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: #050202;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(6, 3, 3, 0.28) 34%, rgba(6, 3, 3, 0.28) 64%, rgba(0, 0, 0, 0.78)),
    linear-gradient(180deg, rgba(5, 2, 2, 0.1), rgba(5, 2, 2, 0.34) 58%, rgba(8, 3, 3, 0.88) 100%),
    url("./assets/diablo-boss-hero.png");
  background-position: center top, center top, center -72px;
  background-repeat: no-repeat;
  background-size: cover, cover, 85.8% auto;
}

.home-hero__inner {
  display: grid;
  width: min(var(--content-max), calc(100% - 40px));
  min-height: 274px;
  align-content: center;
  gap: 18px;
  margin: 0 auto;
  padding: 12px 0;
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--gold-soft);
  font-size: var(--font-readable-small);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: var(--font-display);
  margin-bottom: 0;
  font-size: clamp(2.55rem, 6.6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 900;
  text-shadow: 0 18px 44px var(--shadow), 0 0 30px rgba(180, 32, 24, 0.24);
}

h2 {
  font-family: var(--font-display);
  margin-bottom: 0;
  color: #10131a;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.16;
  letter-spacing: 0;
  font-weight: 900;
}

.home-game-title {
  display: grid;
  max-width: 100%;
  justify-items: center;
  margin: 0 auto;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: initial;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: none;
}

.home-game-title__main {
  display: block;
  color: #d5a25d;
  font-size: clamp(3.2rem, 5.2vw, 4.4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #ffe0a0 4%, #c77b32 35%, #6f2c14 56%, #e7a14d 78%, #7b2d13 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.7px rgba(255, 151, 52, 0.78);
  filter:
    drop-shadow(0 2px 1px rgba(0, 0, 0, 0.95))
    drop-shadow(0 0 5px rgba(255, 105, 22, 0.78))
    drop-shadow(0 0 16px rgba(177, 42, 15, 0.58));
}

.home-game-title__sub {
  display: block;
  margin-top: 10px;
  color: #c9ad89;
  font-size: clamp(1rem, 2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  text-shadow:
    0 2px 2px rgba(0, 0, 0, 0.96),
    0 0 6px rgba(255, 92, 20, 0.52);
}

.home-game-title__sub::after {
  content: "";
  display: block;
  width: 72%;
  height: 2px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, transparent, #8e3214 18%, #ff8f28 50%, #8e3214 82%, transparent);
  box-shadow: 0 0 7px rgba(255, 92, 20, 0.72);
}

.hero__summary {
  width: min(680px, 100%);
  margin: 0 auto;
  color: var(--ash);
  font-size: clamp(1rem, 1.7vw, 1.14rem);
  line-height: 1.7;
}

.countdown-stage {
  position: relative;
  display: grid;
  gap: 10px;
  justify-items: center;
  margin: 2px 0 8px;
  padding: 12px 22px 14px;
  isolation: isolate;
}

.countdown-stage::before {
  content: "";
  position: absolute;
  inset: 2px 50%;
  z-index: -1;
  width: min(520px, calc(100vw - 44px));
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center, rgba(255, 111, 28, 0.18), rgba(55, 10, 5, 0.18) 48%, transparent 72%),
    rgba(0, 0, 0, 0.22);
  filter: blur(5px);
}

.countdown-stage__label {
  display: flex;
  align-items: baseline;
  margin: 0;
  color: #dcc6aa;
  font-size: 1rem;
  font-weight: 900;
}

.countdown-stage__label strong {
  color: #fff8e7;
  font-size: clamp(1.32rem, 2.2vw, 1.62rem);
  letter-spacing: 0.04em;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(255, 206, 138, 0.78),
    0 0 24px rgba(255, 92, 20, 0.62);
  animation: ladder-open-glow 1.8s ease-in-out infinite;
}

.countdown-clock {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 2vw, 22px);
  color: #ffce8a;
  text-shadow:
    0 2px 7px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(255, 102, 30, 0.62),
    0 0 24px rgba(255, 64, 18, 0.34);
}

.countdown-clock__plus {
  align-self: baseline;
  color: #fff8e7;
  font-size: clamp(1.45rem, 3.3vw, 2.42rem);
  line-height: 0.95;
  text-shadow:
    0 3px 9px rgba(0, 0, 0, 0.82),
    0 0 14px rgba(255, 127, 36, 0.76);
}

.countdown-clock span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #ffd497;
  font-size: clamp(1.07rem, 1.43vw, 1.24rem);
  font-weight: 900;
}

.countdown-clock strong {
  color: #ff963a;
  font-size: clamp(1.24rem, 3.12vw, 2.28rem);
  line-height: 0.95;
  text-shadow:
    0 3px 9px rgba(0, 0, 0, 0.82),
    0 0 12px rgba(255, 127, 36, 0.62),
    0 0 24px rgba(255, 58, 16, 0.34);
}

@keyframes ladder-open-glow {
  0%,
  100% {
    filter: brightness(0.98);
  }

  50% {
    filter: brightness(1.2);
    text-shadow:
      0 2px 8px rgba(0, 0, 0, 0.9),
      0 0 14px rgba(255, 224, 170, 0.92),
      0 0 32px rgba(255, 92, 20, 0.82);
  }
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  margin-top: 6px;
}

.shortcut-card {
  position: relative;
  display: grid;
  min-height: 54px;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 138, 36, 0.28);
  border-radius: 8px;
  padding: 9px 14px;
  color: #fff3dc;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 138, 36, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(36, 26, 20, 0.94), rgba(14, 11, 10, 0.9));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 220, 164, 0.12);
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.shortcut-card::after {
  content: "";
  position: absolute;
  inset: -80% -45%;
  z-index: 0;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 245, 205, 0.08) 45%,
    rgba(255, 207, 139, 0.42) 50%,
    rgba(255, 245, 205, 0.08) 55%,
    transparent 62%
  );
  opacity: 0;
  transform: translateX(-70%) rotate(0deg);
  pointer-events: none;
}

.shortcut-card:hover,
.shortcut-card:focus-visible {
  will-change: transform;
  transform: translateY(-3px);
  border-color: rgba(255, 158, 62, 0.72);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 138, 36, 0.26), transparent 40%),
    linear-gradient(135deg, rgba(48, 32, 22, 0.96), rgba(18, 12, 10, 0.92));
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.48),
    0 0 22px rgba(255, 92, 24, 0.16),
    inset 0 1px 0 rgba(255, 220, 164, 0.18);
  outline: none;
}

.shortcut-card:hover::after,
.shortcut-card:focus-visible::after {
  animation: shortcut-card-shine 820ms ease-out;
}

@keyframes shortcut-card-shine {
  0% {
    opacity: 0;
    transform: translateX(-70%);
  }

  22%,
  68% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(70%);
  }
}

.shortcut-card > span {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.shortcut-card small,
.shortcut-card strong {
  display: block;
}

.shortcut-card small {
  overflow: hidden;
  margin-bottom: 3px;
  color: #d8b891;
  font-size: var(--font-readable-small);
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.shortcut-card strong {
  font-family: var(--font-display);
  color: #fff7e8;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
}

.content-band {
  width: min(var(--content-max), calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 86px;
  color: #151821;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.more-link,
.ghost-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(180, 32, 24, 0.28);
  border-radius: 6px;
  padding: 0 18px;
  color: #7a120f;
  background: rgba(180, 32, 24, 0.06);
  font-weight: 900;
}

.video-grid {
  overflow: hidden;
}

.video-track {
  display: flex;
  gap: 16px;
  transform: translate3d(0, 0, 0);
  transition: transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.video-track.is-resetting {
  transition: none;
}

.home-info-section {
  padding-top: 54px;
}

.home-info-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(215, 170, 82, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 0%, rgba(180, 32, 24, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(16, 10, 9, 0.98), rgba(6, 4, 4, 0.96));
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 220, 164, 0.07);
}

.home-info-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 100%;
  padding: clamp(18px, 3vw, 28px);
}

.home-info-panel + .home-info-panel {
  border-left: 1px solid rgba(215, 170, 82, 0.12);
}

.home-info-panel .section-heading {
  margin-bottom: 0;
}

.home-info-panel .section-heading h2 {
  color: #fff7e9;
  font-size: clamp(1.16rem, 1.8vw, 1.52rem);
  text-shadow:
    0 3px 12px rgba(0, 0, 0, 0.86),
    0 0 18px rgba(255, 206, 138, 0.18);
}

.home-info-panel .more-link {
  min-height: 38px;
  border-color: rgba(240, 207, 130, 0.4);
  color: #ffe4ad;
  background: rgba(240, 207, 130, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.home-info-panel .more-link:hover,
.home-info-panel .more-link:focus-visible {
  border-color: rgba(255, 228, 173, 0.72);
  color: #fff7e9;
  background: rgba(180, 32, 24, 0.2);
  outline: none;
}

.home-tip-list,
.home-drop-list {
  display: grid;
  gap: 0;
}

#recommended .section-heading h2 {
  color: #fff7e9;
  text-shadow:
    0 3px 12px rgba(0, 0, 0, 0.86),
    0 0 18px rgba(255, 206, 138, 0.2);
}

#recommended .more-link {
  border-color: rgba(240, 207, 130, 0.46);
  color: #ffe4ad;
  background: rgba(240, 207, 130, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

#recommended .more-link:hover,
#recommended .more-link:focus-visible {
  border-color: rgba(255, 228, 173, 0.72);
  color: #fff7e9;
  background: rgba(180, 32, 24, 0.2);
  outline: none;
}

body > main.page-shell:not(.subpage) .section-heading .more-link {
  min-height: var(--chip-readable-min-height);
  border-color: rgba(240, 207, 130, 0.44);
  border-radius: 7px;
  padding: 5px 14px;
  color: #ffe4ad;
  background: rgba(15, 8, 7, 0.5);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.24);
  font-size: var(--font-readable-control);
  line-height: 1;
}

body > main.page-shell:not(.subpage) .section-heading .more-link:hover,
body > main.page-shell:not(.subpage) .section-heading .more-link:focus-visible {
  border-color: rgba(255, 228, 173, 0.72);
  color: #fff7e9;
  background: rgba(30, 13, 10, 0.72);
  outline: none;
}

.home-tip-card,
.home-drop-list a {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 0;
  border: 0;
  border-bottom: 1px solid rgba(215, 170, 82, 0.1);
  border-radius: 0;
  padding: 10px 8px 10px 22px;
  color: #fff7e9;
  background: transparent;
  box-shadow: none;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.45;
  word-break: keep-all;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.home-tip-card::before,
.home-drop-list a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  width: 5px;
  height: 5px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #ffce8a;
  box-shadow: 0 0 10px rgba(255, 138, 36, 0.42);
}

.home-tip-card:hover,
.home-tip-card:focus-visible,
.home-drop-list a:hover,
.home-drop-list a:focus-visible {
  color: #ffce8a;
  background: rgba(255, 255, 255, 0.035);
  outline: none;
}

.home-drop-list a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
}

.home-drop-list span {
  display: block;
  color: #ffce8a;
  font-family: var(--font-body);
  font-size: var(--font-readable-small);
  font-weight: 900;
}

.home-drop-list strong {
  display: block;
  overflow: hidden;
  color: inherit;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-drop-carousel {
  position: relative;
  display: grid;
  min-height: 322px;
  align-items: center;
  padding: 4px 42px 2px;
}

.home-drop-carousel__stage {
  position: relative;
  height: 310px;
  overflow: hidden;
  perspective: 920px;
}

.home-drop-carousel__card {
  --card-x: 0px;
  --card-y: 16px;
  --card-scale: 0.72;
  --card-opacity: 0;
  --card-blur: 2px;
  --card-z: 0;
  position: absolute;
  top: 0;
  left: 50%;
  z-index: var(--card-z);
  display: block;
  width: 190px;
  height: 282px;
  overflow: hidden;
  border: 1px solid rgba(240, 207, 130, 0.2);
  border-radius: 8px;
  background: rgba(15, 8, 7, 0.88);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  color: #fff7e9;
  opacity: var(--card-opacity);
  pointer-events: none;
  text-decoration: none;
  transform: translate3d(calc(-50% + var(--card-x)), var(--card-y), 0) scale(var(--card-scale));
  transform-origin: center bottom;
  filter: blur(var(--card-blur)) saturate(0.78) brightness(0.72);
  transition:
    transform 640ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 640ms ease,
    filter 640ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.home-drop-carousel__card[data-offset="-2"] {
  --card-x: -188px;
  --card-y: -72px;
  --card-scale: 0.55;
  --card-opacity: 0.32;
  --card-z: 1;
}

.home-drop-carousel__card[data-offset="-1"] {
  --card-x: -110px;
  --card-y: -46px;
  --card-scale: 0.68;
  --card-opacity: 0.58;
  --card-blur: 1px;
  --card-z: 2;
}

.home-drop-carousel__card[data-offset="0"] {
  --card-x: 0px;
  --card-y: 0px;
  --card-scale: 1;
  --card-opacity: 1;
  --card-blur: 0;
  --card-z: 5;
  border-color: rgba(255, 228, 173, 0.56);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(255, 228, 173, 0.08);
  filter: none;
  pointer-events: auto;
}

.home-drop-carousel__card[data-offset="1"] {
  --card-x: 110px;
  --card-y: -46px;
  --card-scale: 0.68;
  --card-opacity: 0.58;
  --card-blur: 1px;
  --card-z: 2;
}

.home-drop-carousel__card[data-offset="2"] {
  --card-x: 188px;
  --card-y: -72px;
  --card-scale: 0.55;
  --card-opacity: 0.32;
  --card-z: 1;
}

.home-drop-carousel__card[data-offset="hidden"] {
  visibility: hidden;
}

.home-drop-carousel__card:hover,
.home-drop-carousel__card:focus-visible {
  border-color: rgba(255, 228, 173, 0.82);
  box-shadow:
    0 30px 62px rgba(0, 0, 0, 0.54),
    0 0 0 1px rgba(255, 228, 173, 0.28),
    0 0 34px rgba(255, 190, 96, 0.2);
  outline: none;
}

.home-drop-carousel__card::before {
  position: absolute;
  top: -26%;
  bottom: -26%;
  left: -58%;
  z-index: 2;
  width: 24%;
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      rgba(255, 246, 220, 0.03) 26%,
      rgba(255, 232, 173, 0.3) 47%,
      rgba(255, 255, 255, 0.54) 50%,
      rgba(255, 210, 118, 0.18) 62%,
      transparent 100%
    );
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-110%) rotate(18deg);
}

.home-drop-carousel__card[data-offset="0"]:hover::before,
.home-drop-carousel__card[data-offset="0"]:focus-visible::before {
  animation: home-drop-card-shine 760ms ease-out;
}

@keyframes home-drop-card-shine {
  0% {
    opacity: 0;
    transform: translateX(-115%) rotate(18deg);
  }

  24% {
    opacity: 0.55;
  }

  54% {
    opacity: 0.46;
  }

  100% {
    opacity: 0;
    transform: translateX(760%) rotate(18deg);
  }
}

.home-drop-carousel__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.home-drop-carousel__card[data-difficulty="normal"][data-boss="pindleskin"] .home-drop-carousel__image {
  object-fit: contain;
  object-position: center 38%;
  transform: scale(1.16) translateY(22px);
}

.home-drop-carousel__card[data-difficulty="hell"][data-boss="pindleskin"] .home-drop-carousel__image {
  object-fit: contain;
  object-position: center 38%;
  transform: scale(1.18) translateY(22px);
}

.home-drop-carousel__card[data-difficulty="hell"][data-boss="mephisto"] .home-drop-carousel__image {
  transform: scale(0.87);
}

.home-drop-carousel__card::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68) 34%, rgba(0, 0, 0, 0.96));
  content: "";
}

.home-drop-carousel__badge {
  display: inline-flex;
  min-height: var(--badge-readable-min-height);
  align-items: center;
  justify-self: start;
  border: 1px solid rgba(255, 228, 173, 0.46);
  border-radius: 999px;
  padding: 0 9px;
  color: #fff7e9;
  background: rgba(0, 0, 0, 0.74);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
  font-size: var(--font-readable-small);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.86);
}

.home-drop-carousel__card[data-difficulty="nightmare"] .home-drop-carousel__badge {
  border-color: rgba(255, 170, 82, 0.56);
  color: #ffb458;
}

.home-drop-carousel__card[data-difficulty="hell"] .home-drop-carousel__badge {
  border-color: rgba(255, 83, 64, 0.56);
  color: #ff5947;
}

.home-drop-carousel__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  gap: 6px;
  min-height: 72px;
  align-content: center;
  padding: 12px 12px 13px;
  background: rgba(0, 0, 0, 0.72);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.78);
}

.home-drop-carousel__meta {
  color: #ffce8a;
  font-size: var(--font-readable-small);
  font-weight: 900;
  line-height: 1;
}

.home-drop-carousel__title {
  overflow: hidden;
  color: #fff7e9;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-drop-carousel__nav {
  position: absolute;
  top: 50%;
  z-index: 8;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(240, 207, 130, 0.44);
  border-radius: 50%;
  color: #ffe4ad;
  background: rgba(15, 8, 7, 0.64);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
}

.home-drop-carousel__nav--prev {
  left: 6px;
}

.home-drop-carousel__nav--next {
  right: 6px;
}

.home-drop-carousel__nav:hover,
.home-drop-carousel__nav:focus-visible {
  border-color: rgba(255, 228, 173, 0.76);
  color: #fff7e9;
  background: rgba(30, 13, 10, 0.82);
  outline: none;
}

.video-card {
  display: block;
  flex: 0 0 calc((100% - 48px) / 4);
  max-width: calc((100% - 48px) / 4);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(240, 207, 130, 0.18);
  border-radius: 8px;
  background: rgba(15, 8, 7, 0.86);
  box-shadow: 0 18px 44px rgba(22, 24, 30, 0.08);
  color: inherit;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.video-card:hover,
.video-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(240, 207, 130, 0.38);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.18);
  outline: none;
}

.video-card:focus-visible {
  box-shadow:
    0 0 0 3px rgba(240, 207, 130, 0.22),
    0 24px 54px rgba(0, 0, 0, 0.18);
}

.video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--thumb-image) center / cover;
}

.video-card__thumb::before {
  content: none;
}

.video-card__play {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 246, 232, 0.48);
  border-radius: 50%;
  background: rgba(180, 32, 24, 0.7);
}

.video-card__play::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid #fff8e7;
}

.video-card__body {
  min-height: var(--control-readable-min-height);
  padding: 8px 10px;
  background: rgba(10, 5, 4, 0.94);
}

.video-card__channel {
  overflow: hidden;
  margin: 0;
  color: #ffe4ad;
  font-size: var(--font-readable-small);
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-card__title {
  font-family: var(--font-display);
  margin-bottom: 10px;
  color: #171a22;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 900;
}

.video-card__meta {
  margin-bottom: 0;
  color: #667085;
  font-size: 0.88rem;
  line-height: 1.55;
}

.section-count {
  display: inline-flex;
  min-height: var(--chip-readable-min-height);
  align-items: center;
  border: 1px solid rgba(240, 207, 130, 0.24);
  border-radius: 999px;
  padding: 0 12px;
  color: rgba(255, 228, 173, 0.84);
  background: rgba(15, 8, 7, 0.56);
  font-size: var(--font-readable-control);
  font-weight: 900;
  white-space: nowrap;
}

.video-library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.video-library-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(240, 207, 130, 0.18);
  border-radius: 8px;
  background: rgba(15, 8, 7, 0.88);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.video-library-card:hover,
.video-library-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(240, 207, 130, 0.42);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.32);
  outline: none;
}

.video-library-card:focus-visible {
  box-shadow:
    0 0 0 3px rgba(240, 207, 130, 0.22),
    0 24px 54px rgba(0, 0, 0, 0.32);
}

.video-library-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--thumb-image) center / cover;
}

.video-library-card__thumb::before {
  content: none;
}

.video-library-card .video-card__play {
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-color: rgba(255, 246, 232, 0.48);
  border-radius: 50%;
}

.video-library-card__body {
  padding: 12px;
}

.video-library-card__channel {
  margin: 0 0 7px;
  color: #55e897;
  font-size: var(--font-readable-small);
  font-weight: 900;
}

.video-library-card h2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0;
  color: #fff7e9;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.42;
}

.video-library-card span {
  display: block;
  margin-top: 8px;
  color: rgba(240, 207, 130, 0.76);
  font-size: var(--font-readable-small);
  font-weight: 800;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal.is-open {
  display: grid;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.modal__panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(680px, calc(100vh - 40px));
  overflow: auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(215, 170, 82, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(180, 32, 24, 0.22), transparent 38%),
    rgba(13, 7, 6, 0.96);
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.68);
}

.modal__panel h2 {
  color: #fff8e7;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(215, 170, 82, 0.26);
  border-radius: 50%;
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.04);
}

.patch-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.patch-list li {
  padding: 14px 16px;
  border-left: 3px solid var(--red-bright);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ash);
  line-height: 1.65;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.subpage {
  position: relative;
  overflow: visible;
  padding-top: 72px;
  background:
    linear-gradient(180deg, rgba(5, 2, 2, 0.92), rgba(6, 3, 3, 0.78) 360px, rgba(5, 2, 2, 0.9) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.28) 48%, rgba(0, 0, 0, 0.84)),
    url("./assets/patch-inferno-bg.png") top center / cover fixed no-repeat;
  color: var(--text);
}

.subpage-hero {
  position: relative;
  display: grid;
  width: min(var(--content-max), calc(100% - 40px));
  min-height: var(--subpage-hero-min-height);
  align-content: center;
  justify-items: center;
  overflow: hidden;
  margin: 0 auto;
  border-bottom: 1px solid rgba(215, 170, 82, 0.12);
  padding: var(--subpage-hero-padding-top) clamp(18px, 4vw, 46px) var(--subpage-hero-padding-bottom);
  text-align: center;
  isolation: isolate;
}

.subpage-hero:not(.drop-home-hero)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(5, 2, 2, 0.58), rgba(5, 2, 2, 0.22) 42%, rgba(5, 2, 2, 0.7) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.08) 48%, rgba(0, 0, 0, 0.58)),
    var(--subpage-hero-image, url("./assets/patch-inferno-bg.png")) var(--subpage-hero-image-position, center center) / var(--subpage-hero-image-size) no-repeat;
}

.subpage-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(8, 3, 3, 0.82) 88%);
}

.patch-hero {
  --subpage-hero-image: url("./assets/hero/ladder-14-patch.png");
}

.patch-hero--season15 {
  --subpage-hero-image: url("./assets/patch-inferno-bg.png");
}

.item-hero {
  --subpage-hero-image: url("./assets/hero/item-index.png");
}

.tips-hero {
  --subpage-hero-image: url("./assets/hero/tips-info.png");
  --subpage-hero-mobile-image-position: 49% 42%;
}

.skills-hero {
  --subpage-hero-image: url("./assets/hero/skill-simulator.png");
}

.dopamine-hero {
  --subpage-hero-image: url("./assets/hero/item-index.png");
}

.subpage-hero h1,
.subpage-hero h2 {
  color: var(--text);
  text-shadow:
    0 3px 12px rgba(0, 0, 0, 0.96),
    0 12px 34px rgba(0, 0, 0, 0.78);
}

.subpage-hero h1 {
  max-width: 920px;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.08;
}

.subpage-hero .hero__summary {
  width: min(760px, 100%);
  margin-top: 12px;
  font-size: clamp(0.96rem, 1.25vw, 1.06rem);
  line-height: 1.65;
  text-shadow:
    0 2px 9px rgba(0, 0, 0, 0.95),
    0 8px 24px rgba(0, 0, 0, 0.74);
}

.drop-detail-hero {
  padding: var(--subpage-hero-padding-top) clamp(18px, 4vw, 46px) var(--subpage-hero-padding-bottom);
}

.single-column {
  width: min(var(--content-max), calc(100% - 40px));
  margin: 0 auto;
}

.placeholder-panel {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(215, 170, 82, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.placeholder-panel:has(.placeholder-panel__mascot) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 220px);
  align-items: center;
  column-gap: clamp(18px, 4vw, 48px);
}

.placeholder-panel__mascot {
  grid-column: 2;
  grid-row: 1 / span 3;
  width: min(220px, 30vw);
  justify-self: end;
  border-radius: 8px;
  opacity: 0.86;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.36));
}

.placeholder-panel h2 {
  margin-bottom: 12px;
  color: #fff7e9;
}

.placeholder-panel p:last-child {
  margin-bottom: 0;
  color: var(--ash);
  line-height: 1.7;
}

.link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.link-grid a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid rgba(215, 170, 82, 0.26);
  border-radius: 8px;
  padding: 0 14px;
  color: #fff6e8;
  background: rgba(255, 255, 255, 0.045);
  font-size: var(--font-readable-control);
  font-weight: 900;
}

.link-grid a:hover,
.link-grid a:focus-visible {
  border-color: rgba(255, 206, 138, 0.66);
  color: #17110c;
  background: #ffce8a;
  outline: none;
}

.tips-board {
  color: var(--text);
}

.tips-board .section-heading h2 {
  color: #fff7e9;
}

.random-tip-banner-host {
  width: min(var(--content-max), calc(100% - 40px));
  margin: 0 auto;
}

.random-tip-banner-host:empty {
  display: none;
}

.random-tip-banner-host[data-variant="sticky"] {
  position: sticky;
  top: 72px;
  z-index: 15;
}

.random-tip-banner {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(62, 207, 128, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(42, 142, 87, 0.18), transparent 58%),
    rgba(11, 12, 12, 0.9);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
  animation: random-tip-banner-pulse 3.6s ease-in-out infinite;
}

.random-tip-banner--sticky {
  margin: 0 0 18px;
}

.random-tip-banner--inline {
  margin: 18px 0;
}

.random-tip-banner:hover,
.random-tip-banner:focus-within {
  border-color: rgba(85, 232, 151, 0.46);
  background-color: rgba(17, 21, 18, 0.94);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
}

.random-tip-banner__content {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  padding: 0 14px;
  color: #f6ead9;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  transition: opacity 180ms ease, transform 180ms ease;
}

a.random-tip-banner__content:focus-visible {
  outline: 2px solid rgba(85, 232, 151, 0.82);
  outline-offset: 3px;
}

.random-tip-banner.is-changing .random-tip-banner__content {
  opacity: 0;
  transform: translateY(2px);
}

.random-tip-banner__label {
  flex: 0 0 auto;
  color: #55e897;
  font-weight: 900;
  white-space: nowrap;
}

.random-tip-banner__text {
  min-width: 0;
  overflow: hidden;
  color: #f4e5cf;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.random-tip-banner__click {
  flex: 0 0 auto;
  color: rgba(240, 207, 130, 0.82);
  font-size: 0.82rem;
  white-space: nowrap;
}

@keyframes random-tip-banner-pulse {
  0%,
  100% {
    border-color: rgba(62, 207, 128, 0.22);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
    filter: brightness(0.92);
  }

  50% {
    border-color: rgba(85, 232, 151, 0.52);
    box-shadow:
      0 12px 34px rgba(0, 0, 0, 0.24),
      0 0 24px rgba(85, 232, 151, 0.16);
    filter: brightness(1.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .countdown-stage__label strong,
  .random-tip-banner {
    animation: none;
  }

  .video-track {
    transition: none;
  }
}

.tip-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tip-hub-featured {
  margin: 0 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
}

.tip-hub-featured__head {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.tip-hub-featured__head h3 {
  margin: 0;
  color: #f1e4d1;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  font-weight: 900;
}

.tip-hub-featured__head p {
  margin: 0;
  color: #cbbba6;
  font-size: 0.9rem;
  line-height: 1.6;
}

.tip-hub-featured__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tip-hub-featured__link {
  display: inline-flex;
  min-height: var(--control-readable-min-height);
  align-items: center;
  border: 1px solid rgba(215, 170, 82, 0.22);
  border-radius: 4px;
  padding: 7px 10px;
  color: #e6d4bc;
  background: rgba(255, 255, 255, 0.035);
  font-size: var(--font-readable-control);
  font-weight: 750;
  line-height: 1.35;
}

.tip-hub-featured__link:hover,
.tip-hub-featured__link:focus-visible {
  border-color: rgba(240, 207, 130, 0.42);
  color: #fff7e9;
  background: rgba(215, 170, 82, 0.1);
}

.tip-category-card {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(215, 170, 82, 0.14);
  border-radius: 4px;
  padding: 14px;
  background: rgba(15, 9, 8, 0.72);
  box-shadow: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.tip-category-card:hover {
  border-color: rgba(240, 207, 130, 0.3);
  background: rgba(18, 12, 10, 0.82);
}

.tip-category-card span {
  color: #d7aa52;
  font-size: var(--font-readable-small);
  font-weight: 900;
}

.tip-category-card__title {
  color: #fff7e9;
  font-family: var(--font-display);
  font-size: clamp(1.04rem, 1.7vw, 1.28rem);
  font-weight: 900;
  line-height: 1.3;
  word-break: keep-all;
}

.tip-category-card__title:hover,
.tip-category-card__title:focus-visible {
  color: #ffcf8b;
}

.tip-category-card p {
  margin: 0;
  color: #d8c2aa;
  font-size: var(--font-readable-body);
  line-height: 1.62;
}

.tip-category-card__preview {
  display: grid;
  gap: 5px;
  margin: 4px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  list-style: none;
}

.tip-category-card__preview li {
  position: relative;
  padding-left: 12px;
  line-height: 1.42;
}

.tip-category-card__preview li::before {
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(215, 170, 82, 0.75);
  content: "";
}

.tip-category-card__preview a {
  color: #e6d4bc;
  font-size: var(--font-readable-control);
  font-weight: 700;
}

.tip-category-card__preview a:hover,
.tip-category-card__preview a:focus-visible {
  color: #ffcf8b;
}

.tip-category-card__more {
  justify-self: start;
  margin-top: 4px;
  color: #d7aa52;
  font-size: var(--font-readable-small);
  font-weight: 900;
}

.tip-category-card__more:hover,
.tip-category-card__more:focus-visible {
  color: #fff7e9;
}

.tip-category {
  margin-top: 34px;
  scroll-margin-top: 110px;
}

.tip-category:first-child {
  margin-top: 0;
}

.tip-category__title {
  margin: 0 0 14px;
  color: #ffcf8b;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2.2vw, 1.55rem);
  font-weight: 900;
}

.tip-accordion-list {
  display: grid;
  gap: 10px;
}

.tip-accordion {
  overflow: hidden;
  border: 1px solid rgba(215, 170, 82, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(180, 32, 24, 0.12), transparent 42%),
    rgba(15, 9, 8, 0.9);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
  scroll-margin-top: 116px;
}

.tip-accordion__summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  color: #fff7e9;
  font-weight: 900;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
  word-break: keep-all;
}

.tip-accordion__summary::-webkit-details-marker {
  display: none;
}

.tip-accordion__summary::after {
  content: "+";
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--gold-soft);
  font-size: 1.2rem;
  font-weight: 900;
}

.tip-accordion[open] .tip-accordion__summary::after {
  content: "-";
}

.tip-accordion__body {
  border-top: 1px solid rgba(215, 170, 82, 0.16);
  padding: 16px 18px 18px;
  color: #e4d0b8;
  font-size: 0.95rem;
  line-height: 1.75;
}

.tip-accordion__body p {
  margin: 0 0 10px;
}

.tip-accordion__body p:last-child {
  margin-bottom: 0;
}

.tip-accordion__lead {
  color: #ffd08f;
  font-weight: 800;
}

.tips-board .tip-accordion-list {
  gap: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding-inline: clamp(10px, 1.6vw, 18px);
  border-top: 0;
}

.tips-board .tip-accordion {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.tips-board .tip-accordion:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tips-board .tip-accordion__summary {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  gap: 12px;
  padding: 12px 4px;
  color: #f1e4d1;
  font-size: var(--font-readable-body);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.tips-board .tip-accordion__summary:hover {
  background: rgba(255, 255, 255, 0.025);
}

.tips-board .tip-accordion__summary:focus-visible {
  border-radius: 2px;
  outline: 2px solid rgba(215, 170, 82, 0.42);
  outline-offset: 2px;
}

.tips-board .tip-accordion__summary::after {
  color: rgba(240, 207, 130, 0.82);
  font-size: 1rem;
}

.tips-board .tip-accordion__body {
  box-sizing: border-box;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 4px 14px 16px;
  color: #d9c8b1;
  background: transparent;
  font-size: var(--font-readable-body);
  line-height: 1.72;
}

.tips-board .tip-accordion__lead {
  color: #e4bd75;
  font-weight: 750;
}

.builds-board {
  color: var(--text);
}

.builds-board .section-heading h2 {
  color: #fff7e9;
}

.build-class-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.build-class-card,
.build-guide-intro,
.build-guide-section {
  border: 1px solid rgba(215, 170, 82, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(180, 32, 24, 0.16), transparent 44%),
    rgba(15, 9, 8, 0.9);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.build-class-card {
  display: grid;
  min-height: 176px;
  align-content: start;
  gap: 10px;
  padding: 18px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.build-class-card:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 207, 130, 0.42);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.34);
}

.build-class-card span,
.build-class-card small {
  color: #ffcf8b;
  font-size: var(--font-readable-small);
  font-weight: 900;
}

.build-class-card strong {
  color: #fff7e9;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 900;
  line-height: 1.3;
}

.build-class-card p {
  margin: 0;
  color: #d8c2aa;
  font-size: 0.92rem;
  line-height: 1.65;
}

.build-guide-intro,
.build-guide-section {
  padding: 18px;
}

.build-guide-intro {
  margin-bottom: 14px;
}

.build-guide-intro h2,
.build-guide-section h3 {
  margin: 0;
  color: #fff7e9;
  font-family: var(--font-display);
  font-weight: 900;
}

.build-guide-intro h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.build-guide-intro p:last-child {
  margin: 10px 0 0;
  color: #d8c2aa;
  line-height: 1.7;
}

.build-guide-section {
  margin-top: 12px;
}

.build-guide-section h3 {
  font-size: 1.08rem;
}

.build-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.build-list li {
  position: relative;
  padding-left: 18px;
  color: #e4d0b8;
  font-size: 0.94rem;
  line-height: 1.65;
}

.build-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-soft);
}

.skills-board {
  color: var(--text);
}

.skills-index-page .skills-board {
  padding-top: var(--subpage-content-padding-top);
}

.skills-board .section-heading h2 {
  color: #fff7e9;
}

.skill-hero-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2.09 / 1;
  border: 1px solid rgba(215, 170, 82, 0.28);
  border-radius: 8px;
  background: rgba(15, 9, 8, 0.9);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.36);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.skill-hero-link:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 207, 130, 0.52);
  box-shadow: 0 30px 82px rgba(0, 0, 0, 0.44);
}

.skill-hero-link__label {
  position: absolute;
  z-index: 2;
  top: clamp(14px, 2.2vw, 28px);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 22px 10px;
  border: 1px solid rgba(255, 211, 128, 0.54);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(27, 17, 10, 0.88), rgba(92, 48, 15, 0.78));
  color: #fff4d7;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.72);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.44);
  pointer-events: none;
  white-space: nowrap;
}

.skill-hero-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.skill-entry-modal {
  cursor: pointer;
}

.skill-entry-modal__panel {
  max-width: min(620px, 100%);
  padding: clamp(24px, 4vw, 38px);
  text-align: center;
  background:
    linear-gradient(155deg, rgba(58, 151, 100, 0.16), transparent 42%),
    linear-gradient(22deg, rgba(185, 72, 22, 0.18), transparent 46%),
    rgba(12, 8, 7, 0.97);
}

.skill-entry-modal__panel h2 {
  margin: 4px 0 18px;
  color: #fff7e6;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.12;
}

.skill-entry-modal__panel p {
  margin: 0;
  color: rgba(255, 242, 218, 0.84);
  font-size: var(--font-readable-body);
  font-weight: 700;
  line-height: 1.72;
  word-break: keep-all;
}

.skill-entry-modal__panel p + p {
  margin-top: 14px;
}

.skill-entry-modal__panel .skill-entry-modal__note {
  color: rgba(255, 139, 116, 0.88);
}

.skill-entry-modal__hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px 10px;
  border: 1px solid rgba(255, 211, 128, 0.42);
  border-radius: 999px;
  background: rgba(240, 207, 130, 0.12);
  color: #ffe2a3;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 2.4vw, 1.34rem);
  line-height: 1.2;
  text-align: center;
}

.skill-tree-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.skill-tree-image-grid img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(215, 170, 82, 0.24);
  border-radius: 8px;
  background: rgba(15, 9, 8, 0.9);
  box-shadow: 0 22px 66px rgba(0, 0, 0, 0.32);
}

.warlock-skills-page .subpage-hero,
.amazon-skills-page .subpage-hero {
  padding-bottom: var(--subpage-hero-padding-bottom);
}

.warlock-skills-page .skills-board,
.amazon-skills-page .skills-board {
  padding-top: var(--subpage-content-padding-top);
}

.skill-selector-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(215, 170, 82, 0.2);
  border-radius: 8px;
  padding: 16px;
  background: rgba(15, 9, 8, 0.9);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

.skill-selector-label {
  color: #ffcf8b;
  font-size: 0.9rem;
  font-weight: 900;
}

.skill-class-select {
  width: min(320px, 100%);
  min-height: 44px;
  border: 1px solid rgba(215, 170, 82, 0.28);
  border-radius: 6px;
  padding: 0 12px;
  color: #fff7e9;
  background: #120b09;
  font: inherit;
  font-weight: 800;
}

.skill-class-grid,
.skill-tree-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.skill-class-card,
.skill-sim-summary,
.skill-tree {
  border: 1px solid rgba(215, 170, 82, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(180, 32, 24, 0.16), transparent 44%),
    rgba(15, 9, 8, 0.9);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.skill-class-card {
  display: grid;
  min-height: 150px;
  align-content: start;
  gap: 10px;
  padding: 18px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.skill-class-card:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 207, 130, 0.42);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.34);
}

.skill-class-card--disabled {
  opacity: 0.72;
  cursor: default;
}

.skill-class-card--disabled:hover {
  transform: none;
  border-color: rgba(215, 170, 82, 0.2);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.skill-class-card span {
  color: #ffcf8b;
  font-size: var(--font-readable-small);
  font-weight: 900;
}

.skill-class-card strong {
  color: #fff7e9;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 900;
  line-height: 1.3;
}

.skill-class-card p {
  margin: 0;
  color: #d8c2aa;
  font-size: var(--font-readable-body);
  line-height: 1.65;
}

.skill-sim-summary {
  margin-bottom: 14px;
  padding: 18px;
}

.skill-sim-summary h2,
.skill-tree h3 {
  margin: 0;
  color: #fff7e9;
  font-family: var(--font-display);
  font-weight: 900;
}

.skill-sim-summary p {
  margin: 10px 0 0;
  color: #d8c2aa;
  line-height: 1.7;
}

.skill-counter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.skill-counter-row span,
.skill-reset-button {
  display: inline-flex;
  min-height: var(--control-readable-min-height);
  align-items: center;
  border: 1px solid rgba(215, 170, 82, 0.22);
  border-radius: 6px;
  padding: 0 12px;
  color: #fff7e9;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 900;
}

.skill-counter-row strong {
  margin-left: 5px;
  color: var(--gold-soft);
}

.skill-reset-button {
  cursor: pointer;
}

.skill-tree {
  padding: 16px;
}

.skill-tree h3 {
  margin-bottom: 14px;
  font-size: 1.08rem;
}

.skill-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border-top: 1px solid rgba(215, 170, 82, 0.12);
  padding: 9px 0;
}

.skill-row strong {
  color: #e4d0b8;
  font-size: 0.94rem;
  line-height: 1.35;
}

.skill-row__controls {
  display: grid;
  grid-template-columns: 38px 40px 38px;
  align-items: center;
  gap: 6px;
}

.skill-row__controls button,
.skill-row__controls span {
  display: grid;
  min-height: var(--chip-readable-min-height);
  place-items: center;
  border: 1px solid rgba(215, 170, 82, 0.22);
  border-radius: 6px;
  color: #fff7e9;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 900;
}

.skill-row__controls button {
  cursor: pointer;
}

.skill-row__controls button:hover,
.skill-reset-button:hover {
  border-color: rgba(240, 207, 130, 0.46);
  background: rgba(180, 32, 24, 0.18);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.info-card {
  min-height: 180px;
  padding: 18px;
  border: 1px solid rgba(215, 170, 82, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.info-card h3 {
  font-family: var(--font-display);
  margin: 0 0 12px;
  color: #fff7e9;
  font-size: 1.05rem;
}

.info-card p {
  margin-bottom: 0;
  color: var(--ash);
  line-height: 1.65;
}

.patch-page {
  display: grid;
  gap: 16px;
}

.content-band.patch-page {
  padding: var(--subpage-content-padding-top) 0 72px;
}

.patch-toc,
.patch-summary,
.patch-section {
  border: 1px solid rgba(240, 207, 130, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(180, 32, 24, 0.12), transparent 42%),
    rgba(14, 8, 7, 0.92);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.patch-toc {
  padding: clamp(16px, 2vw, 22px);
}

.patch-toc h2,
.patch-summary h2,
.patch-section h2 {
  color: #fff8e7;
}

.patch-toc ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.patch-toc li {
  counter-increment: toc;
}

.patch-toc a {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(240, 207, 130, 0.18);
  border-radius: 8px;
  padding: 8px 10px;
  color: #fff1d7;
  background: rgba(255, 255, 255, 0.055);
  font-weight: 900;
  line-height: 1.35;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.patch-toc a:hover {
  will-change: transform;
  transform: translateY(-1px);
  border-color: rgba(255, 206, 138, 0.42);
  background: rgba(255, 206, 138, 0.14);
}

.patch-toc a::before {
  content: counter(toc);
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #2a1400;
  background: linear-gradient(180deg, #ffdf87, #d49a35);
  font-size: var(--font-readable-small);
}

.patch-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: clamp(20px, 2.5vw, 28px);
  color: #fff8e7;
  background:
    linear-gradient(135deg, rgba(255, 125, 36, 0.18), transparent 40%),
    linear-gradient(180deg, #26100c, #120605);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.18),
    0 4px 6px -4px rgba(0, 0, 0, 0.18);
}

.patch-summary h2 {
  color: #fff8e7;
}

.patch-summary p {
  margin: 10px 0 0;
  color: #d9c6ae;
  line-height: 1.8;
}

.summary-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.summary-points li {
  display: grid;
  min-height: 112px;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(240, 207, 130, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.summary-points strong {
  color: #ffce8a;
  font-size: 1rem;
}

.summary-points span {
  color: #d9c6ae;
  font-size: 0.92rem;
  line-height: 1.55;
}

.patch-article {
  display: grid;
  gap: 14px;
}

.patch-section {
  padding: clamp(18px, 2.5vw, 24px);
  color: #d9c6ae;
}

.patch-section h2 {
  margin-bottom: 10px;
}

.patch-section h3 {
  font-family: var(--font-display);
  margin: 20px 0 10px;
  color: #ffce8a;
  font-size: 1.08rem;
}

.patch-section p {
  color: #d9c6ae;
  line-height: 1.78;
}

.patch-section strong {
  color: #fff8e7;
}

.comparison-grid,
.fix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

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

.comparison-grid > div,
.fix-grid > div {
  border: 1px solid rgba(240, 207, 130, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.comparison-grid h3,
.fix-grid h3 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  color: #ffce8a;
  font-size: 1rem;
}

.comparison-grid p,
.fix-grid p {
  margin: 0;
  color: #d9c6ae;
  line-height: 1.65;
}

.change-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 4px;
}

.change-item {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(240, 207, 130, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.change-item span:first-child {
  color: #d9c6ae;
  font-size: 0.9rem;
  font-weight: 800;
}

.change-item strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 1.08rem;
}

.old-value,
.new-value {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 2px 7px;
  font-weight: 900;
  white-space: nowrap;
}

.old-value {
  color: #d7dce7;
  background: rgba(255, 255, 255, 0.1);
}

.new-value.up {
  color: #8ff0b0;
  background: rgba(47, 150, 84, 0.22);
}

.new-value.down {
  color: #ff9b91;
  background: rgba(180, 32, 24, 0.24);
}

.arrow {
  color: #d9822b;
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(240, 207, 130, 0.16);
  border-radius: 8px;
  scrollbar-color: rgba(180, 32, 24, 0.76) rgba(15, 9, 8, 0.88);
  scrollbar-width: thin;
}

.table-wrap::-webkit-scrollbar,
.top-nav::-webkit-scrollbar {
  height: 8px;
}

.table-wrap::-webkit-scrollbar-track,
.top-nav::-webkit-scrollbar-track {
  background: rgba(15, 9, 8, 0.88);
  border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-thumb,
.top-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(180, 32, 24, 0.76);
}

.change-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: rgba(10, 6, 5, 0.94);
}

.change-table th,
.change-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(240, 207, 130, 0.12);
  text-align: left;
}

.change-table th {
  color: #fff8e7;
  background: rgba(23, 26, 34, 0.94);
  font-size: 0.88rem;
}

.change-table td {
  color: #e7d7c2;
  font-weight: 800;
}

.change-table tr:last-child td {
  border-bottom: 0;
}

.detail-list,
.source-list {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: #d9c6ae;
  line-height: 1.72;
}

.source-list a {
  color: #ffce8a;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.note-box,
.warning-section {
  border-color: rgba(180, 32, 24, 0.28);
  background:
    linear-gradient(135deg, rgba(180, 32, 24, 0.18), transparent 48%),
    rgba(19, 10, 8, 0.94);
}

.note-box {
  margin: 14px 0 0;
  border-left: 4px solid #b42018;
  border-radius: 8px;
  padding: 12px 14px;
}

.patch-page--wiki {
  gap: 12px;
}

.previous-patch-row {
  display: flex;
  justify-content: flex-end;
}

.previous-patch-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(255, 206, 138, 0.34);
  border-radius: 6px;
  padding: 7px 12px;
  color: #ffce8a;
  background: rgba(20, 11, 8, 0.88);
  font-size: 0.9rem;
  font-weight: 900;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.previous-patch-link:hover,
.previous-patch-link:focus-visible {
  border-color: rgba(255, 206, 138, 0.72);
  background: rgba(255, 206, 138, 0.11);
}

.patch-page--wiki .patch-toc {
  border-radius: 6px;
  padding: 16px 18px;
  box-shadow: none;
}

.patch-page--wiki .patch-toc ol {
  margin-top: 10px;
}

.patch-page--wiki .patch-toc a {
  min-height: 38px;
  border-radius: 5px;
  padding-block: 6px;
}

.patch-page--wiki .patch-article {
  gap: 0;
  border: 1px solid rgba(240, 207, 130, 0.18);
  border-radius: 6px;
  background: rgba(12, 7, 6, 0.94);
}

.wiki-patch-section {
  padding: 18px 20px 20px;
  color: #dcc6aa;
}

.wiki-patch-section + .wiki-patch-section {
  border-top: 1px solid rgba(240, 207, 130, 0.18);
}

.wiki-patch-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.wiki-patch-heading .section-kicker {
  margin: 0 0 2px;
  order: 2;
  white-space: nowrap;
}

.wiki-patch-heading h2 {
  margin: 0;
  color: #fff8e7;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
}

.section-note {
  margin: 0 0 10px;
  color: #dcc6aa;
  font-size: 0.92rem;
  line-height: 1.55;
}

.wiki-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  table-layout: fixed;
  background: rgba(9, 6, 5, 0.96);
}

.wiki-table th,
.wiki-table td {
  border-right: 1px solid rgba(240, 207, 130, 0.1);
  border-bottom: 1px solid rgba(240, 207, 130, 0.12);
  padding: 8px 10px;
  color: #e7d7c2;
  line-height: 1.42;
  vertical-align: middle;
}

.wiki-table th:last-child,
.wiki-table td:last-child {
  border-right: 0;
}

.wiki-table tbody tr:last-child td {
  border-bottom: 0;
}

.wiki-table th {
  color: #ffce8a;
  background: rgba(39, 25, 18, 0.98);
  font-size: 0.88rem;
  font-weight: 900;
  text-align: center;
}

.wiki-table td {
  font-size: 0.92rem;
}

.wiki-table tbody tr:hover {
  background: rgba(255, 206, 138, 0.045);
}

.wiki-table strong {
  color: #fff8e7;
}

.wiki-item-link {
  font-weight: 900;
}

.wiki-item-link.item-link--unique {
  color: var(--item-color-unique);
}

.wiki-item-link.item-link--set {
  color: var(--item-color-set);
}

.wiki-item-link.item-link--runeword {
  color: var(--gold-soft);
}

.wiki-item-link:hover,
.wiki-item-link:focus-visible {
  filter: brightness(1.2);
}

.wiki-item-search-link {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-left: 5px;
  border: 1px solid rgba(255, 206, 138, 0.22);
  border-radius: 5px;
  color: #d7aa52;
  background: rgba(255, 255, 255, 0.035);
  vertical-align: middle;
  cursor: pointer;
}

.wiki-item-search-link::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.wiki-item-search-link::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 6px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.wiki-item-search-link:hover,
.wiki-item-search-link:focus-visible {
  border-color: rgba(255, 206, 138, 0.62);
  color: #ffce8a;
  background: rgba(255, 206, 138, 0.1);
  outline: none;
}

.schedule-table .col-label { width: 22%; }
.schedule-table .col-date { width: 31%; }
.schedule-table td:first-child,
.schedule-table td:nth-child(2) { text-align: center; white-space: nowrap; }
.schedule-table td:last-child { text-align: left; }

.wiki-table .is-key-row {
  background: rgba(180, 32, 24, 0.16);
}

.wiki-table .is-key-row td,
.wiki-table .is-key-row strong {
  color: #fff1d7;
}

.summary-table th:first-child,
.summary-table td:first-child { width: 16%; text-align: center; white-space: nowrap; }
.summary-table th:nth-child(2),
.summary-table td:nth-child(2) { width: 48%; text-align: left; }
.summary-table th:last-child,
.summary-table td:last-child { text-align: left; }

.runeword-table .col-name { width: 18%; }
.runeword-table .col-runes { width: 52%; }
.runeword-table .col-slot { width: 30%; }
.runeword-table td { text-align: center; white-space: nowrap; }

.item-change-table .col-item { width: 22%; }
.item-change-table .col-change { width: 49%; }
.item-change-table .col-use { width: 29%; }
.item-change-table td:first-child { text-align: center; white-space: nowrap; }
.item-change-table td:nth-child(2),
.item-change-table td:last-child { text-align: left; }

.set-change-table th:first-child,
.set-change-table td:first-child { width: 28%; }
.set-change-table th:nth-child(2),
.set-change-table td:nth-child(2) { width: 25%; }
.set-change-table td { text-align: center; }

.farming-change-table .col-target { width: 23%; }
.farming-change-table .col-change { width: 48%; }
.farming-change-table .col-result { width: 29%; }
.farming-change-table td:first-child { text-align: center; }
.farming-change-table td:nth-child(2),
.farming-change-table td:last-child { text-align: left; }

.bug-fix-table .col-category { width: 20%; }
.bug-fix-table td:first-child { text-align: center; white-space: nowrap; }
.bug-fix-table td:last-child { text-align: left; }

.wiki-callout,
.wiki-warning-inline {
  margin: 10px 0 0;
  border-left: 3px solid #d9822b;
  padding: 8px 10px;
  color: #f4e5c8;
  background: rgba(217, 130, 43, 0.08);
  font-size: 0.92rem;
  line-height: 1.55;
}

.wiki-warning-inline {
  margin: 0 0 10px;
  border-left-color: #b42018;
  background: rgba(180, 32, 24, 0.11);
}

.change-badge {
  display: inline-block;
  min-width: 38px;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.change-badge.is-up {
  color: #9af3b7;
  background: rgba(47, 150, 84, 0.22);
}

.change-badge.is-down {
  color: #ffaaa2;
  background: rgba(180, 32, 24, 0.24);
}

.change-badge.is-same {
  color: #d7dce7;
  background: rgba(255, 255, 255, 0.1);
}

.stash-alert {
  border-left: 4px solid #b42018;
  background: linear-gradient(90deg, rgba(180, 32, 24, 0.15), transparent 45%);
}

.stash-deadline {
  margin: 0 0 4px;
  color: #ffce8a;
  font-size: 1.08rem;
  font-weight: 900;
}

.wiki-patch-section .detail-list,
.wiki-patch-section .source-list {
  margin-top: 8px;
}

.item-page {
  display: grid;
  gap: 14px;
  padding-top: var(--subpage-content-padding-top);
}

.item-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px 16px;
  border: 1px solid rgba(215, 170, 82, 0.16);
  border-radius: 6px;
  padding: clamp(16px, 1.8vw, 22px);
  color: #fff8e7;
  background: rgba(13, 10, 9, 0.78);
  box-shadow: none;
}

.item-toolbar > div:first-child {
  min-width: 0;
}

.item-toolbar__controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.item-toolbar h2 {
  margin: 3px 0 0;
  color: #fff8e7;
  font-size: clamp(1.55rem, 2.7vw, 2.3rem);
  line-height: 1.12;
}

.item-view-switch {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(240, 207, 130, 0.26);
  border-radius: 6px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.035);
}

.view-toggle {
  display: inline-flex;
  min-width: 70px;
  min-height: var(--chip-readable-min-height);
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  padding: 0 12px;
  color: rgba(255, 248, 231, 0.7);
  background: transparent;
  font-size: var(--font-readable-control);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.view-toggle:hover {
  color: #fff8e7;
  background: rgba(255, 255, 255, 0.08);
}

.view-toggle.is-active {
  color: #16100d;
  background: #ffce8a;
}

.item-search {
  display: block;
  flex: 0 1 540px;
  width: min(540px, 100%);
}

.item-search input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(215, 170, 82, 0.22);
  border-radius: 6px;
  padding: 0 12px;
  color: #fff8e7;
  background: rgba(0, 0, 0, 0.22);
  font: inherit;
  font-weight: 800;
  outline: none;
}

.item-search input::placeholder {
  color: rgba(255, 248, 231, 0.58);
}

.item-search input:focus {
  border-color: rgba(255, 206, 138, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 206, 138, 0.14);
}

.result-count {
  min-width: 92px;
  min-height: var(--chip-readable-min-height);
  border: 1px solid rgba(215, 170, 82, 0.18);
  border-radius: 6px;
  padding: 7px 11px;
  color: #e7d8c3;
  background: rgba(255, 255, 255, 0.035);
  font-size: var(--font-readable-control);
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.item-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.item-stats div {
  min-height: 96px;
  border: 1px solid rgba(215, 170, 82, 0.16);
  border-radius: 8px;
  padding: 16px;
  color: #fff8e7;
  background: rgba(255, 255, 255, 0.07);
}

.item-stats span,
.item-stats strong {
  display: block;
}

.item-stats span {
  color: #ffce8a;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 900;
}

.item-stats strong {
  margin-top: 8px;
  color: #d9c6ae;
  font-size: 0.9rem;
}

.filter-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(215, 170, 82, 0.16);
  border-radius: 6px;
  padding: 12px;
  background: rgba(13, 10, 9, 0.66);
  box-shadow: none;
}

.filter-panel p {
  margin: 0 0 5px;
  color: var(--gold-soft);
  font-size: var(--font-readable-small);
  font-weight: 900;
  text-transform: uppercase;
}

.filter-panel > div + div {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 4px;
}

.filter-panel > div:first-child p {
  color: #ffe4ad;
}

.filter-panel > div:nth-child(2) p {
  color: #d8c8b2;
}

.filter-panel > div:nth-child(3) p {
  color: #b9d8e8;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-row--sub {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.filter-chip {
  min-height: var(--chip-readable-min-height);
  border: 1px solid rgba(215, 170, 82, 0.18);
  border-radius: 6px;
  padding: 0 11px;
  color: #d8c8b2;
  background: rgba(255, 255, 255, 0.04);
  font-size: var(--font-readable-control);
  font-weight: 900;
}

.filter-panel > div:first-child .filter-chip {
  min-height: 40px;
  border-color: rgba(215, 170, 82, 0.28);
  color: #f0dfc5;
  background: rgba(255, 255, 255, 0.055);
}

.filter-panel > div:nth-child(2) .filter-chip {
  border-color: rgba(215, 170, 82, 0.16);
  background: rgba(255, 255, 255, 0.035);
  font-weight: 850;
}

.filter-panel > div:nth-child(3) .filter-chip {
  border-color: rgba(185, 230, 255, 0.14);
  color: #c3ddec;
  background: rgba(185, 230, 255, 0.035);
  font-weight: 800;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: rgba(255, 206, 138, 0.72);
  color: #1b1110;
  background: #ffce8a;
}

.filter-panel > div:nth-child(2) .filter-chip.is-active {
  border-color: rgba(255, 206, 138, 0.52);
  color: #f7d992;
  background: rgba(215, 170, 82, 0.13);
}

.filter-panel > div:nth-child(3) .filter-chip.is-active {
  border-color: rgba(185, 230, 255, 0.42);
  color: #dff5ff;
  background: rgba(185, 230, 255, 0.09);
}

.item-format-note {
  margin: 0;
  border-left: 4px solid #ffce8a;
  border-radius: 8px;
  padding: 10px 13px;
  color: #e4d2ba;
  background: rgba(0, 0, 0, 0.24);
  line-height: 1.55;
}

.subtle-doc-link {
  color: #f0cf82;
  font-weight: 900;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.subtle-doc-link:hover,
.subtle-doc-link:focus-visible {
  color: #fff1c4;
  outline: none;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.item-db-content {
  display: grid;
  gap: 16px;
  padding-top: 30px;
  color: var(--text);
}

.item-db-header {
  border-bottom: 1px solid rgba(215, 170, 82, 0.16);
  padding-bottom: 14px;
}

.item-db-header h1 {
  margin: 4px 0 8px;
  color: #fff8e7;
  font-size: clamp(2.05rem, 5vw, 3.4rem);
  line-height: 1.08;
}

.item-db-header p:last-child {
  max-width: 720px;
  margin: 0;
  color: #d9c6ae;
  font-size: 1.02rem;
  line-height: 1.65;
}

.item-db-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  border-block: 1px solid rgba(215, 170, 82, 0.16);
  padding: 10px 0;
}

.item-db-search {
  order: 2;
  flex: 1 1 320px;
  min-width: min(100%, 260px);
  width: 100%;
  max-width: none;
}

.item-db-select {
  order: 2;
  flex: 0 1 158px;
  min-width: 150px;
}

.item-db-sort-wrap {
  order: 2;
}

.item-db-select select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(215, 170, 82, 0.22);
  border-radius: 6px;
  padding: 0 10px;
  color: #fff8e7;
  background-color: #171313;
  color-scheme: dark;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.item-db-select select option,
.item-db-select select optgroup {
  color: #fff8e7;
  background-color: #171313;
}

.item-db-select select option:disabled {
  color: #8f8170;
}

.item-db-select select:focus-visible {
  border-color: rgba(255, 206, 138, 0.72);
  outline: 2px solid rgba(255, 206, 138, 0.32);
  outline-offset: 1px;
}

.item-db-filters {
  order: 1;
  flex: 1 0 100%;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.item-db-filters .filter-chip {
  flex: 0 0 auto;
  min-height: 36px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0 9px;
  color: #d8c8b2;
  background: transparent;
}

.item-db-filters .filter-chip:hover,
.item-db-filters .filter-chip:focus-visible {
  border-bottom-color: rgba(255, 206, 138, 0.46);
  color: #fff1c4;
  background: rgba(255, 255, 255, 0.035);
}

.item-db-filters .filter-chip.is-active {
  border-bottom-color: #ffce8a;
  color: #ffce8a;
  background: transparent;
}

.item-db-count {
  order: 2;
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #d9c6ae;
  background: transparent;
  font-size: 0.94rem;
  font-weight: 800;
}

.item-db-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.82fr) minmax(400px, 1.18fr);
  gap: 16px;
  align-items: start;
}

.item-db-results,
.item-db-detail {
  min-width: 0;
  border: 1px solid rgba(215, 170, 82, 0.16);
  border-radius: 3px;
  background: rgba(10, 8, 8, 0.56);
}

.item-db-results {
  padding: 0;
}

.item-db-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 11px 14px 10px;
}

.item-db-list-head h2 {
  margin: 0;
  color: #fff8e7;
  font-size: 1.08rem;
}

.item-db-list-head p {
  margin: 0;
  color: #bca98f;
  font-size: 0.95rem;
}

.item-db-list {
  display: grid;
  gap: 0;
}

.item-db-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  min-height: 62px;
  gap: 7px 14px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  padding: 10px 14px;
  color: #efe4d3;
  background: transparent;
  font: inherit;
  text-align: left;
}

.item-db-row:hover,
.item-db-row:focus-visible {
  background: rgba(255, 255, 255, 0.055);
  outline: none;
}

.item-db-row.is-active {
  border-color: rgba(255, 206, 138, 0.35);
  color: #fff8e7;
  background: rgba(215, 170, 82, 0.11);
}

.item-db-row__main,
.item-db-row__meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 9px;
  overflow-wrap: anywhere;
}

.item-db-row__main strong {
  color: inherit;
  font-size: 1rem;
  line-height: 1.35;
}

.item-db-item-name[data-item-rarity="set"] {
  color: var(--item-color-set);
}

.item-db-item-name[data-item-rarity="unique"] {
  color: var(--item-color-unique);
}

.item-db-row__main small {
  color: #bca98f;
  font-size: 0.95rem;
  line-height: 1.35;
}

.item-db-row__base {
  color: #9f9383;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.item-db-row__meta span {
  color: #b9d8e8;
  font-size: 0.94rem;
  line-height: 1.35;
}

.item-db-row__meta span:first-child {
  color: #ffce8a;
}

.item-db-row__meta {
  justify-content: flex-end;
  text-align: right;
}

.item-db-row__level {
  color: #d9c6ae !important;
  font-variant-numeric: tabular-nums;
}

.item-db-empty {
  margin-top: 12px;
  padding: 18px;
  color: var(--text);
}

.item-db-detail {
  padding: 14px;
}

.item-db-detail h2 {
  margin: 4px 0 6px;
  color: #fff8e7;
  font-size: 1.55rem;
  line-height: 1.18;
}

.item-db-detail p {
  color: #d9c6ae;
  line-height: 1.65;
}

.item-db-detail__head {
  display: flex;
  min-width: 0;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 10px;
}

.item-db-detail__image {
  width: 96px;
  height: 96px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  object-fit: contain;
  flex: 0 0 auto;
}

.item-db-detail__head > div {
  min-width: 0;
}

.item-db-detail__title-row {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

.item-db-detail__title-row h2 {
  min-width: 0;
}

.item-db-set-bonus {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  align-items: center;
}

.item-db-set-bonus__trigger {
  appearance: none;
  max-width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(0, 196, 0, 0.45);
  border-radius: 0;
  padding: 1px 0;
  color: var(--item-color-set);
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.item-db-set-bonus__trigger:hover,
.item-db-set-bonus__trigger[aria-expanded="true"] {
  color: #20df20;
  border-bottom-color: currentColor;
}

.item-db-set-bonus__trigger:focus-visible {
  outline: 2px solid #ffce8a;
  outline-offset: 3px;
}

.item-db-set-popover {
  position: fixed;
  z-index: 18;
  visibility: hidden;
  width: min(350px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(0, 196, 0, 0.55);
  border-radius: 3px;
  padding: 11px 12px;
  color: #e7d8c3;
  background: rgba(9, 11, 8, 0.96);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
}

.item-db-set-popover.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.item-db-set-popover__name,
.item-db-set-popover__label {
  display: block;
}

.item-db-set-popover__name {
  color: var(--item-color-set);
  font-size: 0.98rem;
  line-height: 1.35;
}

.item-db-set-popover__label {
  margin-top: 2px;
  color: #bca98f;
  font-size: 0.8rem;
  font-weight: 700;
}

.item-db-set-popover__stages {
  display: grid;
  gap: 9px;
  margin-top: 9px;
}

.item-db-set-popover__stage {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 7px;
}

.item-db-set-popover__stage h4 {
  margin: 0 0 4px;
  color: #ffce8a;
  font-size: 0.88rem;
  line-height: 1.35;
}

.item-db-set-popover__stage h4 span {
  color: var(--item-color-set);
}

.item-db-set-popover__stage ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding-left: 18px;
  color: #e7d8c3;
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.item-db-en {
  margin: 0;
  color: #bca98f;
  font-weight: 800;
}

.item-db-detail-meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 2px 0;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 9px 0 8px;
  color: #dcc6aa;
  font-size: 0.94rem;
  line-height: 1.4;
  list-style: none;
  overflow-wrap: anywhere;
}

.item-db-detail-meta li {
  min-width: 0;
}

.item-db-detail-meta li:not(:last-child)::after {
  content: "·";
  margin: 0 7px;
  color: rgba(255, 206, 138, 0.58);
}

.item-db-stat-summary {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 3px 0;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 8px 0;
}

.item-db-stat {
  display: inline-flex;
  min-width: 0;
  align-items: baseline;
  color: #efe4d3;
  font-size: 0.96rem;
  line-height: 1.4;
}

.item-db-stat:not(:last-child)::after {
  content: "·";
  margin: 0 8px;
  color: rgba(255, 206, 138, 0.5);
}

.item-db-stat dt,
.item-db-stat dd {
  margin: 0;
  min-width: 0;
}

.item-db-stat dt {
  margin-right: 5px;
  color: #ffce8a;
  font-weight: 800;
}

.item-db-stat dd {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.item-db-detail-section {
  margin-top: 12px;
}

.item-db-detail-section h3 {
  margin: 0 0 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 4px;
  color: #fff8e7;
  font-size: 0.96rem;
}

.item-db-options {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  color: #e7d8c3;
  font-size: 1rem;
  line-height: 1.45;
  list-style: none;
  overflow-wrap: anywhere;
}

.item-db-notes {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 20px;
  color: #e7d8c3;
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.item-db-option-random {
  color: #83c9f4;
  font-size: 0.92em;
  font-weight: 800;
}

.item-db-option-tail {
  white-space: nowrap;
}

.item-db-option-pool-note {
  margin: -2px 16px 8px;
  color: #dcc6aa;
  font-size: 0.78rem;
  line-height: 1.4;
}

.item-db-option-pool {
  font-weight: 750;
}

.item-db-option-pool--offense {
  color: #ff9b85;
}

.item-db-option-pool--mobility {
  color: #7fdcff;
}

.item-db-option-pool--resource {
  color: #8ee59b;
}

.item-db-option-pool--wealth {
  color: #ffd36a;
}

.item-db-option-pool--defense {
  color: #c9a7ff;
}

.item-db-option-pool .item-db-option-random {
  color: inherit;
}

.item-db-muted {
  margin: 0;
  color: #bca98f;
}

@media (max-width: 980px) {
  .item-db-layout {
    grid-template-columns: 1fr;
  }

  .item-db-detail {
    order: 2;
  }

  .item-db-layout:has(.item-db-detail__head) .item-db-detail {
    order: -1;
  }
}

@media (max-width: 640px) {
  .item-db-content {
    width: calc(100% - 28px);
    padding-top: 44px;
  }

  .item-db-controls {
    align-items: stretch;
    gap: 8px;
  }

  .item-db-filters {
    flex: 1 1 100%;
    order: 1;
    padding-bottom: 2px;
  }

  .item-db-search {
    flex-basis: 100%;
    order: 2;
  }

  .item-db-select {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    order: 3;
  }

  .item-db-type-wrap[hidden] + .item-db-sort-wrap {
    flex-basis: 100%;
  }

  .item-db-count {
    flex: 1 1 100%;
    order: 4;
    margin-left: 0;
    padding-top: 2px;
    text-align: left;
  }

  .item-db-list-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .item-db-row {
    min-height: 64px;
    grid-template-columns: 1fr;
    padding: 11px 12px;
  }

  .item-db-row__meta {
    justify-content: flex-start;
    text-align: left;
  }

  .item-db-detail {
    padding: 14px;
  }

  .item-db-detail__head {
    align-items: flex-start;
  }

  .item-db-stat-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 12px;
  }

  .item-db-stat {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 5px;
  }

  .item-db-stat--wide {
    grid-column: 1 / -1;
  }

  .item-db-stat:not(:last-child)::after {
    display: none;
  }

  .item-db-stat dt {
    margin-right: 0;
  }
}

/* Item database category and family browser */
.item-db-page .item-db-content {
  gap: 12px;
}

.item-db-page .item-db-header {
  padding-bottom: 10px;
}

.item-db-primary-nav {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid rgba(215, 170, 82, 0.22);
}

.item-db-primary-nav__tab {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0 13px;
  color: #dcc6aa;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.item-db-primary-nav__tab small {
  color: #9f9383;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.item-db-primary-nav__tab:hover,
.item-db-primary-nav__tab:focus-visible {
  color: #fff8e7;
  background: rgba(255, 255, 255, 0.035);
}

.item-db-primary-nav__tab:focus-visible {
  outline: 2px solid rgba(255, 206, 138, 0.72);
  outline-offset: -3px;
}

.item-db-primary-nav__tab.is-active {
  border-bottom-color: #ffce8a;
  color: #ffce8a;
}

.item-db-primary-nav__tab.is-active small {
  color: #e8c58b;
}

.item-db-page .item-db-controls {
  border-top: 0;
  padding: 6px 0 8px;
}

.item-db-browse-controls {
  display: grid;
  gap: 7px;
  border-bottom: 1px solid rgba(215, 170, 82, 0.16);
  padding-bottom: 9px;
}

.item-db-browse-controls[hidden] {
  display: none;
}

.item-db-subfilter,
.item-db-set-modes {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 3px;
}

.item-db-subfilter__button,
.item-db-set-modes button,
.item-db-set-selector button {
  min-height: 34px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  padding: 5px 10px;
  color: #d7c5ad;
  background: rgba(255, 255, 255, 0.025);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.25;
  cursor: pointer;
}

.item-db-subfilter__button:hover,
.item-db-subfilter__button:focus-visible,
.item-db-set-modes button:hover,
.item-db-set-modes button:focus-visible,
.item-db-set-selector button:hover,
.item-db-set-selector button:focus-visible {
  color: #fff8e7;
  background: rgba(255, 255, 255, 0.065);
  outline: none;
}

.item-db-subfilter__button:focus-visible,
.item-db-set-modes button:focus-visible,
.item-db-set-selector button:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 206, 138, 0.62);
}

.item-db-subfilter__button.is-active,
.item-db-set-modes button.is-active,
.item-db-set-selector button.is-active {
  border-bottom-color: #ffce8a;
  color: #ffce8a;
  background: rgba(215, 170, 82, 0.09);
}

.item-db-subfilter--secondary {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 7px;
}

.item-db-subfilter--secondary::before {
  content: attr(data-label);
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 7px 0 1px;
  color: #bca98f;
  font-size: 0.82rem;
  font-weight: 800;
}

.item-db-set-modes {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 6px;
}

.item-db-set-selector {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
}

.item-db-set-selector button {
  display: grid;
  min-width: 0;
  align-content: center;
  justify-items: start;
  text-align: left;
}

.item-db-set-selector button span,
.item-db-set-selector button small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-db-set-selector button span {
  color: var(--item-color-set);
  font-weight: 800;
}

.item-db-set-selector button:hover span,
.item-db-set-selector button:focus-visible span,
.item-db-set-selector button.is-active span {
  color: #20df20;
}

.item-db-set-selector button small {
  color: #988b7b;
  font-size: 0.7rem;
  font-weight: 600;
}

.item-db-page .item-db-layout {
  display: block;
}

.item-db-page .item-db-results {
  border-radius: 0;
  background: rgba(10, 8, 8, 0.42);
}

.item-db-page .item-db-list-head {
  padding: 9px 11px 8px;
}

.item-db-page .item-db-list {
  display: block;
}

.item-db-family,
.item-db-nontiered {
  margin: 0;
  border-top: 1px solid rgba(215, 170, 82, 0.22);
  padding: 0;
}

.item-db-family:first-child,
.item-db-nontiered:first-child {
  border-top: 0;
}

.item-db-family > h3,
.item-db-nontiered > h3,
.item-db-result-heading {
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 10px;
  color: #fff8e7;
  background: rgba(215, 170, 82, 0.055);
  font-size: 0.94rem;
  line-height: 1.35;
}

.item-db-result-heading--set {
  display: flex;
  align-items: center;
}

.item-db-set-bonus--heading {
  display: flex;
  width: 100%;
}

.item-db-set-bonus__trigger--heading {
  width: fit-content;
  color: var(--item-color-set);
  font-size: 0.94rem;
  font-weight: 800;
}

.item-db-family__tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.item-db-family__tier {
  min-width: 0;
}

.item-db-family__tier:not(:first-child) {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.item-db-family__tier > h4 {
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 5px 9px;
  color: #ffce8a;
  background: rgba(0, 0, 0, 0.12);
  font-size: 0.78rem;
  line-height: 1.3;
  text-align: center;
}

.item-db-family__cards {
  display: grid;
  min-height: 100%;
  align-content: start;
}

.item-db-family__empty {
  margin: 0;
  padding: 16px 10px;
  color: #8f8170;
  font-size: 0.82rem;
  text-align: center;
}

.item-db-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.item-db-card {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(96px, 34%);
  gap: 10px;
  align-content: start;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  padding: 11px;
  color: #efe4d3;
  background: rgba(11, 9, 9, 0.94);
  outline: none;
}

.item-db-card-grid > .item-db-card {
  border-bottom: 0;
}

.item-db-card-grid:has(> .item-db-card--runeword) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.item-db-card:hover,
.item-db-card:focus-visible,
.item-db-card:focus-within,
.item-db-card.is-active {
  background: rgba(215, 170, 82, 0.075);
}

.item-db-card:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 206, 138, 0.7);
}

.item-db-card.is-active {
  box-shadow: inset 3px 0 0 rgba(255, 206, 138, 0.72);
}

.item-db-card__image {
  width: 100%;
  height: auto;
  max-height: 156px;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.2);
  object-fit: contain;
}

.item-db-card--compact-icon .item-db-card__image {
  width: min(100%, 96px);
  max-height: 96px;
  justify-self: end;
}

.item-db-card__body {
  display: grid;
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
  align-content: start;
  gap: 3px;
}

.item-db-card:not(:has(.item-db-card__image)) .item-db-card__body {
  grid-column: 1 / -1;
}

.item-db-card__eyebrow,
.item-db-card__stats,
.item-db-card__requirements {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 2px 8px;
}

.item-db-card__eyebrow {
  color: #ffce8a;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.3;
}

.item-db-card__eyebrow span:not(:last-child)::after,
.item-db-card__stats span:not(:last-child)::after,
.item-db-card__requirements span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: rgba(255, 206, 138, 0.42);
}

.item-db-card__body > strong {
  min-width: 0;
  color: #fff8e7;
  font-size: 1rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.item-db-card__name-row {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.item-db-card__name-row > strong {
  min-width: 0;
  color: #fff8e7;
  font-size: 1rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.item-db-card__rune-count {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 1px solid rgba(255, 206, 138, 0.45);
  border-radius: 2px;
  color: #ffce8a;
  background: rgba(215, 170, 82, 0.08);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
}

.item-db-card__type-row {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.item-db-card--runeword {
  grid-template-columns: minmax(118px, 0.55fr) minmax(0, 1.45fr);
}

.item-db-card--runeword:not(:has(.item-db-card__image)) .item-db-card__body,
.item-db-card--runeword:not(:has(.item-db-card__image)) .item-db-card__actions {
  grid-column: 1;
}

.item-db-card__runes {
  display: flex;
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  align-items: start;
  gap: 12px;
  overflow-x: auto;
  margin: 0;
  padding: 1px 2px 5px;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 206, 138, 0.28) transparent;
}

.item-db-card__rune {
  position: relative;
  display: grid;
  width: 46px;
  flex: 0 0 46px;
  justify-items: center;
  gap: 2px;
  text-align: center;
}

.item-db-card__rune:not(:last-child)::after {
  content: "›";
  position: absolute;
  top: 22px;
  left: calc(100% + 3px);
  color: rgba(255, 206, 138, 0.5);
  font-size: 1rem;
  line-height: 1;
}

.item-db-card__rune img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.item-db-card__rune > span {
  display: grid;
  gap: 1px;
}

.item-db-card__rune strong,
.item-db-card__rune small {
  color: #dcc6aa;
  font-size: 0.65rem;
  line-height: 1.2;
  white-space: nowrap;
}

.item-db-card__rune small {
  color: #a99479;
  font-size: 0.61rem;
  font-variant-numeric: tabular-nums;
}

.item-db-card__type-icons {
  display: flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
}

.item-db-card__type-icon {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(215, 170, 82, 0.28);
  border-radius: 2px;
  background: rgba(215, 170, 82, 0.055);
}

.item-db-card__type-icon img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.item-db-card__en,
.item-db-card__base,
.item-db-card__stats,
.item-db-card__requirements {
  color: #bca98f;
  font-size: 0.73rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.item-db-card__en--inline {
  white-space: nowrap;
}

.item-db-card__facts {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-top: 2px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.item-db-card__facts > span {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 2px 8px;
}

.item-db-card__facts > span:not(:last-child)::after {
  content: "·";
  color: rgba(255, 206, 138, 0.42);
}

.item-db-card__options {
  display: grid;
  gap: 2px;
  margin: 3px 0 0;
  padding: 0;
  color: #f4e5c8;
  font-size: 0.79rem;
  line-height: 1.38;
  list-style: none;
  overflow-wrap: anywhere;
}

.item-db-card__options--runeword {
  width: 100%;
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 1px;
}

.item-db-card__stats {
  color: #d9c6ae;
}

.item-db-card__requirements {
  font-variant-numeric: tabular-nums;
}

.item-db-card__actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 4px;
}

.item-db-card__actions button,
.item-db-detail__toolbar button {
  min-height: 27px;
  border: 1px solid rgba(215, 170, 82, 0.2);
  border-radius: 2px;
  padding: 3px 7px;
  color: #dcc6aa;
  background: rgba(255, 255, 255, 0.025);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.item-db-card__actions button:hover,
.item-db-card__actions button:focus-visible,
.item-db-detail__toolbar button:hover,
.item-db-detail__toolbar button:focus-visible {
  border-color: rgba(255, 206, 138, 0.65);
  color: #fff8e7;
  outline: none;
}

.item-db-small-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.item-db-small-tile {
  display: grid;
  min-width: 0;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 5px 8px;
  align-items: center;
  padding: 8px;
  color: #efe4d3;
  background: rgba(11, 9, 9, 0.96);
  outline: none;
}

.item-db-small-tile:hover,
.item-db-small-tile:focus-visible,
.item-db-small-tile:focus-within {
  background: rgba(215, 170, 82, 0.075);
}

.item-db-small-tile:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 206, 138, 0.68);
}

.item-db-small-tile img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.item-db-rune-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.item-db-small-tile > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.item-db-small-tile__title {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px;
}

.item-db-small-tile strong {
  color: #fff8e7;
  font-size: 0.82rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.item-db-small-tile .item-db-rune-number {
  flex: 0 0 auto;
  color: #ffce8a;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.item-db-small-tile small {
  color: #9f9383;
  font-size: 0.67rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.item-db-preview {
  position: fixed;
  z-index: 22;
  visibility: hidden;
  width: min(370px, calc(100vw - 20px));
  max-height: min(480px, calc(100vh - 20px));
  overflow: auto;
  border: 1px solid rgba(255, 206, 138, 0.42);
  border-radius: 3px;
  padding: 10px 11px;
  color: #e7d8c3;
  background: rgba(9, 8, 8, 0.97);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
}

.item-db-preview.is-open {
  visibility: visible;
  opacity: 1;
}

.item-db-preview > strong,
.item-db-preview > small,
.item-db-preview__label {
  display: block;
}

.item-db-preview > strong {
  color: #fff8e7;
  font-size: 0.95rem;
  line-height: 1.3;
}

.item-db-preview > small {
  margin-top: 1px;
  color: #a99984;
  font-size: 0.76rem;
}

.item-db-preview__label {
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 5px;
  color: #ffce8a;
  font-size: 0.72rem;
  font-weight: 800;
}

.item-db-preview ul {
  display: grid;
  gap: 2px;
  margin: 5px 0 0;
  padding: 0;
  color: #e7d8c3;
  font-size: 0.84rem;
  line-height: 1.4;
  list-style: none;
  overflow-wrap: anywhere;
}

.item-db-preview p {
  margin: 5px 0 0;
  color: #bca98f;
  font-size: 0.82rem;
}

.item-db-page .item-db-detail {
  grid-column: 1 / -1;
  width: auto;
  margin: 1px 0;
  border-color: rgba(255, 206, 138, 0.34);
  border-radius: 0;
  background: rgba(15, 11, 10, 0.98);
}

.item-db-page .item-db-detail[hidden] {
  display: none;
}

.item-db-detail__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin: -5px 0 10px;
  padding-bottom: 6px;
  color: #ffce8a;
  font-size: 0.76rem;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .item-db-set-selector {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .item-db-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .item-db-small-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .item-db-rune-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .item-db-primary-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .item-db-primary-nav__tab {
    min-width: 0;
    min-height: 40px;
    padding-inline: 6px;
  }

  .item-db-set-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .item-db-family__tiers {
    grid-template-columns: 1fr;
  }

  .item-db-family__tier:not(:first-child) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }

  .item-db-family__tier > h4 {
    text-align: left;
  }

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

  .item-db-small-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .item-db-rune-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .item-db-page .item-db-content {
    width: calc(100% - 20px);
    gap: 10px;
    padding-top: 38px;
  }

  .item-db-page .item-db-controls {
    gap: 6px;
  }

  .item-db-page .item-db-search,
  .item-db-page .item-db-select,
  .item-db-page .item-db-count {
    flex: 1 1 100%;
  }

  .item-db-primary-nav__tab {
    font-size: 0.84rem;
  }

  .item-db-primary-nav__tab small {
    font-size: 0.64rem;
  }

  .item-db-subfilter__button,
  .item-db-set-modes button {
    flex: 1 1 calc(25% - 3px);
    min-width: 72px;
  }

  .item-db-set-selector button span,
  .item-db-set-selector button small {
    white-space: normal;
  }

  .item-db-small-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .item-db-rune-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .item-db-small-tile {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 7px 6px;
  }

  .item-db-small-tile img {
    width: 36px;
    height: 36px;
  }

  .item-db-card {
    grid-template-columns: minmax(0, 1fr) minmax(82px, 31%);
    padding: 8px;
  }

  .item-db-card__image {
    width: 100%;
    height: auto;
    max-height: 124px;
  }

  .item-db-card--compact-icon .item-db-card__image {
    width: min(100%, 82px);
    max-height: 82px;
  }

  .item-db-card--runeword {
    grid-template-columns: minmax(0, 1fr);
  }

  .item-db-card--runeword:not(:has(.item-db-card__image)) .item-db-card__body,
  .item-db-card--runeword:not(:has(.item-db-card__image)) .item-db-card__actions,
  .item-db-card--runeword .item-db-card__runes {
    grid-column: 1;
  }

  .item-db-card--runeword .item-db-card__runes {
    grid-row: auto;
    overflow-x: visible;
  }

  .item-db-card--runeword .item-db-card__options--runeword {
    grid-column: 1;
    grid-row: auto;
  }

  .item-db-card__runes {
    gap: 9px;
  }

  .item-db-card__rune {
    width: 40px;
    flex-basis: 40px;
  }

  .item-db-card__rune img {
    width: 38px;
    height: 38px;
  }

  .item-db-page .item-db-detail {
    padding: 11px;
  }
}

.expensive-card {
  position: relative;
  display: grid;
  min-height: 252px;
  align-content: start;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(215, 170, 82, 0.16);
  border-radius: 8px;
  padding: 16px;
  color: #fff8e7;
  background:
    linear-gradient(145deg, rgba(255, 125, 36, 0.08), transparent 40%),
    rgba(16, 9, 8, 0.92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.expensive-card:target {
  border-color: rgba(255, 206, 138, 0.88);
  box-shadow:
    0 0 0 3px rgba(255, 206, 138, 0.16),
    0 24px 70px rgba(0, 0, 0, 0.32);
}

.expensive-card.has-art .expensive-card__head,
.expensive-card.has-art h2,
.expensive-card.has-art .item-meta {
  padding-right: 78px;
}

.expensive-card.has-large-art .expensive-card__head,
.expensive-card.has-large-art h2,
.expensive-card.has-large-art .item-meta {
  padding-right: 102px;
}

.item-art {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 7px;
  padding: 5px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 206, 138, 0.16), transparent 68%),
    rgba(0, 0, 0, 0.18);
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.42));
  opacity: 0.9;
  pointer-events: none;
}

.item-art--large {
  width: 81px;
  height: 81px;
}

.expensive-card__head {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.badge-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.item-badge {
  display: inline-flex;
  min-height: var(--badge-readable-min-height);
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 0 9px;
  color: #1a1110;
  background: #ffce8a;
  font-size: var(--font-readable-small);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.item-badge--sub {
  min-height: var(--badge-readable-min-height);
  padding: 0 7px;
  font-size: var(--font-readable-small);
}

.item-badge--unique {
  color: #1a1208;
  background: linear-gradient(180deg, #e3b96a, #a8792e);
  border-color: rgba(255, 218, 141, 0.5);
}

.item-badge--set {
  color: #06190d;
  background: linear-gradient(180deg, #7be08f, #228a42);
  border-color: rgba(150, 255, 174, 0.42);
}

.item-badge--magic {
  color: #edf5ff;
  background: linear-gradient(180deg, #366fda, #18398f);
  border-color: rgba(111, 166, 255, 0.5);
}

.item-badge--rare {
  color: #231d02;
  background: linear-gradient(180deg, #ffe36f, #c79a16);
  border-color: rgba(255, 235, 125, 0.56);
}

.item-badge--charm {
  color: #111827;
  background: linear-gradient(180deg, #b9f2df, #48a890);
  border-color: rgba(185, 242, 223, 0.48);
}

.item-badge--jewel {
  color: #fff8fb;
  background: linear-gradient(180deg, #d75d8b, #843454);
  border-color: rgba(255, 153, 190, 0.48);
}

.item-badge--new {
  color: #fff8e7;
  background: linear-gradient(180deg, #d23b2e, #7f1712);
  border-color: rgba(255, 119, 86, 0.5);
}

.item-badge--runeword {
  color: #10131a;
  background: linear-gradient(180deg, #f1f5f9, #94a3b8);
  border-color: rgba(226, 232, 240, 0.54);
}

.item-badge--material {
  color: #fff8e7;
  background: linear-gradient(180deg, #7b61d1, #40307d);
  border-color: rgba(177, 157, 255, 0.5);
}

.item-badge--condition {
  color: #fff8e7;
  background: linear-gradient(180deg, #6b7280, #2d313c);
  border-color: rgba(255, 246, 232, 0.24);
}

.item-stars {
  display: inline-flex;
  min-width: 96px;
  justify-content: flex-start;
  gap: 1px;
  color: rgba(255, 255, 255, 0.2);
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.item-stars .is-filled {
  color: #ffd25e;
  text-shadow: 0 0 11px rgba(255, 170, 48, 0.38);
}

.expensive-card h2 {
  color: #fff8e7;
  font-size: 1.08rem;
  line-height: 1.35;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  color: #d9c6ae;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.45;
}

.item-meta span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 6px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.07);
}

.item-points {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: #d4c0a8;
  font-size: 0.93rem;
  line-height: 1.58;
  list-style: none;
}

.item-points li {
  position: relative;
  padding-left: 14px;
}

.item-points li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffce8a;
}

.detail-separator {
  color: #55e897;
  font-weight: 950;
}

.item-empty {
  margin: 0;
  color: #d4c0a8;
  line-height: 1.6;
}

.item-anchor {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  color: rgba(255, 206, 138, 0.72);
  font-weight: 900;
}

.item-anchor:hover {
  color: #1a1110;
  background: #ffce8a;
}

.item-empty-state {
  color: #fff8e7;
}

.item-list-view {
  display: grid;
  gap: 14px;
}

.list-nav-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(215, 170, 82, 0.16);
  border-radius: 8px;
  padding: 14px;
  color: #fff8e7;
  background:
    linear-gradient(135deg, rgba(54, 111, 218, 0.14), transparent 40%),
    rgba(10, 10, 12, 0.72);
}

.list-view-intro {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 124px;
}

.list-view-intro__copy {
  display: grid;
  min-width: 0;
  flex: 1 1 420px;
  gap: 8px;
}

.list-view-intro h2 {
  margin: 0;
  color: #fff8e7;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.56vw, 3.78rem);
  line-height: 1.05;
}

.list-view-intro p {
  max-width: 620px;
  margin: 0;
  color: #d8c8b2;
  font-size: var(--font-readable-body);
  font-weight: 650;
  line-height: 1.65;
}

.list-category-portrait {
  display: flex;
  width: clamp(132px, 11vw, 168px);
  height: 106px;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: visible;
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 50% 88%, rgba(255, 206, 138, 0.16), transparent 56%),
    radial-gradient(ellipse at 50% 86%, rgba(185, 230, 255, 0.1), transparent 64%);
}

.list-category-portrait[hidden] {
  display: none;
}

.list-category-portrait.is-all {
  width: min(100%, clamp(340px, 38vw, 500px));
  height: 106px;
}

.list-category-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 10px 13px rgba(0, 0, 0, 0.52));
  transform: scale(1.08);
  transform-origin: center bottom;
}

.list-category-portrait.is-all img {
  transform: none;
}

.list-category-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.list-nav-label {
  display: flex;
  flex-basis: 100%;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  color: #ffdf9f;
  font-size: var(--font-readable-small);
  font-weight: 900;
  letter-spacing: 0;
}

.list-nav-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 206, 138, 0.14);
}

.list-category-link {
  position: relative;
  display: flex;
  min-height: var(--control-readable-min-height);
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(240, 207, 130, 0.16);
  border-radius: 8px;
  padding: 0 12px;
  color: #f4e5c8;
  background: rgba(0, 0, 0, 0.22);
  font-size: var(--font-readable-control);
  font-weight: 900;
}

.list-category-title,
.list-toc__button span,
.list-topic-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-category-title {
  max-width: 100%;
  text-align: center;
}

.list-category-link:hover,
.list-category-link:focus-visible {
  border-color: rgba(255, 206, 138, 0.64);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.list-category-link.is-active {
  border-color: rgba(255, 206, 138, 0.92);
  color: #17110c;
  background: #ffce8a;
}

.list-category-link small {
  position: absolute;
  right: 10px;
  display: inline-flex;
  min-width: 30px;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 7px;
  color: #111827;
  background: rgba(255, 248, 231, 0.82);
  font-size: var(--font-readable-small);
  line-height: 1.1;
}

.list-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid rgba(215, 170, 82, 0.12);
  padding-top: 10px;
}

.list-toc__button {
  display: inline-flex;
  min-height: var(--chip-readable-min-height);
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(240, 207, 130, 0.18);
  border-radius: 6px;
  padding: 0 13px;
  color: #fff4dc;
  background: rgba(0, 0, 0, 0.18);
  font-size: var(--font-readable-control);
  font-weight: 900;
}

.list-toc__button:hover,
.list-toc__button:focus-visible,
.list-toc__button.is-active {
  border-color: rgba(255, 206, 138, 0.74);
  color: #16100d;
  background: #ffce8a;
  outline: none;
}

.list-toc__button small {
  display: inline-flex;
  min-width: 24px;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 6px;
  color: #111827;
  background: rgba(255, 248, 231, 0.78);
  font-size: var(--font-readable-small);
  line-height: 1.1;
}

.list-topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid rgba(185, 230, 255, 0.1);
  padding-top: 10px;
}

.list-topic-link {
  display: inline-flex;
  min-height: var(--chip-readable-min-height);
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(185, 230, 255, 0.2);
  border-radius: 6px;
  padding: 0 9px;
  color: #cbefff;
  background: rgba(255, 255, 255, 0.04);
  font-size: var(--font-readable-control);
  font-weight: 900;
}

.list-topic-link:hover,
.list-topic-link:focus-visible,
.list-topic-link.is-active {
  border-color: rgba(185, 230, 255, 0.72);
  color: #07131a;
  background: #b9e6ff;
  outline: none;
}

.list-topic-link small {
  display: inline-flex;
  min-width: 22px;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 6px;
  color: #111827;
  background: rgba(255, 248, 231, 0.82);
  font-size: var(--font-readable-small);
  line-height: 1.1;
}

.narrative-list {
  display: grid;
  gap: 18px;
}

.narrative-category,
.narrative-page {
  display: grid;
  gap: 13px;
  scroll-margin-top: 112px;
  border: 1px solid rgba(215, 170, 82, 0.18);
  border-radius: 8px;
  padding: clamp(16px, 2vw, 22px);
  background:
    linear-gradient(145deg, rgba(180, 32, 24, 0.1), transparent 34%),
    rgba(12, 8, 8, 0.86);
}

.narrative-category__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border-bottom: 1px solid rgba(215, 170, 82, 0.14);
  padding-bottom: 10px;
}

.narrative-category h3,
.narrative-page h3,
.narrative-section h4,
.narrative-subsection h5,
.narrative-tier h6 {
  margin: 0;
  color: #fff8e7;
  letter-spacing: 0;
}

.narrative-category h3,
.narrative-page h3 {
  font-family: var(--font-display);
  font-size: clamp(1.38rem, 2.6vw, 2rem);
  line-height: 1.16;
}

.narrative-section {
  display: grid;
  gap: 10px;
  scroll-margin-top: 112px;
  border-top: 1px solid rgba(255, 206, 138, 0.14);
  padding: 14px 0 0;
}

.narrative-section h4 {
  color: #ffdf9f;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.35;
}

.narrative-section h4.narrative-section-title.has-icon {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  line-height: 1.12;
}

.narrative-section-title__icon {
  width: auto;
  height: clamp(40px, 4.2vw, 56px);
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.42));
}

.narrative-guide-note {
  margin: 0;
  border-left: 4px solid #ffce8a;
  border-radius: 8px;
  padding: 10px 13px;
  color: #e9d7bd;
  background:
    linear-gradient(90deg, rgba(255, 206, 138, 0.08), transparent 72%),
    rgba(0, 0, 0, 0.22);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
}

.narrative-subsection {
  display: grid;
  gap: 9px;
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.narrative-subsection h5 {
  color: #b9e6ff;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.38;
}

.narrative-tier {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.narrative-tier.is-prime {
  border-color: rgba(255, 210, 94, 0.34);
  background: linear-gradient(180deg, rgba(255, 210, 94, 0.09), rgba(255, 210, 94, 0.025));
}

.narrative-tier.is-strong {
  border-color: rgba(79, 190, 128, 0.3);
  background: linear-gradient(180deg, rgba(79, 190, 128, 0.08), rgba(79, 190, 128, 0.022));
}

.narrative-tier.is-mid {
  border-color: rgba(99, 168, 255, 0.32);
  background: linear-gradient(180deg, rgba(99, 168, 255, 0.08), rgba(99, 168, 255, 0.022));
}

.narrative-section.is-reference,
.narrative-subsection.is-reference,
.narrative-tier.is-reference {
  border: 1px solid rgba(185, 230, 255, 0.22);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(185, 230, 255, 0.075), transparent 52%),
    rgba(255, 255, 255, 0.025);
}

.narrative-subsection.is-reference {
  padding: 8px 12px;
}

.narrative-subsection.is-reference[open] {
  padding: 12px;
}

.narrative-section.is-reference h4,
.narrative-subsection.is-reference h5,
.narrative-tier.is-reference h6 {
  color: #b9e6ff;
}

.reference-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: #b9e6ff;
  font-weight: 900;
  list-style: none;
}

.reference-summary::-webkit-details-marker {
  display: none;
}

.reference-summary::before {
  content: "참고";
  display: inline-flex;
  min-height: var(--badge-readable-min-height);
  align-items: center;
  border: 1px solid rgba(185, 230, 255, 0.32);
  border-radius: 999px;
  padding: 1px 8px 2px;
  color: #06121a;
  background: #b9e6ff;
  font-size: var(--font-readable-small);
  line-height: 1.2;
}

.reference-title {
  flex: 1;
  min-width: 0;
  color: #b9e6ff;
  font-size: 1rem;
  line-height: 1.35;
}

.reference-toggle {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(185, 230, 255, 0.24);
  border-radius: 6px;
  color: #dff5ff;
  background: rgba(185, 230, 255, 0.07);
}

.reference-toggle::before {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.narrative-subsection.is-reference[open] .reference-toggle::before,
.narrative-tier.is-reference[open] .reference-toggle::before {
  transform: translateY(2px) rotate(225deg);
}

.reference-body {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.narrative-tier.is-reference h6 {
  border-color: rgba(185, 230, 255, 0.32);
  background: rgba(185, 230, 255, 0.08);
}

.narrative-section.is-reference h4::before,
.narrative-subsection.is-reference h5::before,
.narrative-tier.is-reference h6::before {
  content: "참고";
  display: inline-flex;
  min-height: var(--badge-readable-min-height);
  align-items: center;
  margin-right: 8px;
  border: 1px solid rgba(185, 230, 255, 0.32);
  border-radius: 999px;
  padding: 1px 7px 2px;
  color: #06121a;
  background: #b9e6ff;
  font-family: inherit;
  font-size: var(--font-readable-small);
  font-weight: 900;
  vertical-align: 0.08em;
}

.narrative-section.is-prime h4,
.narrative-subsection.is-prime h5 {
  color: #ffd25e;
}

.narrative-section.is-strong h4,
.narrative-subsection.is-strong h5 {
  color: #65d896;
}

.narrative-section.is-mid h4,
.narrative-subsection.is-mid h5 {
  color: #8dc3ff;
}

.narrative-tier.is-caution {
  border-color: rgba(255, 112, 95, 0.2);
  background: rgba(255, 255, 255, 0.035);
}

.narrative-tier h6 {
  display: inline-flex;
  width: fit-content;
  min-height: var(--badge-readable-min-height);
  align-items: center;
  border-radius: 6px;
  border: 1px solid rgba(255, 206, 138, 0.2);
  padding: 0 8px;
  color: #ffdf9f;
  background: rgba(255, 206, 138, 0.06);
  font-size: var(--font-readable-small);
  font-weight: 900;
}

.narrative-items,
.narrative-detail-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.narrative-items.is-compact-options {
  display: grid;
  gap: 8px;
}

.narrative-row {
  display: grid;
  gap: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0 0 9px;
  color: #e8d8bd;
  line-height: 1.58;
}

.narrative-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.narrative-row.is-inline-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0 0 9px;
}

.narrative-items.is-compact-options .narrative-row.is-inline-group {
  width: 100%;
}

.narrative-row.has-details {
  border-radius: 8px;
  border-bottom: 0;
  padding: 11px 12px;
  background: rgba(0, 0, 0, 0.14);
}

.narrative-row__main {
  color: #fff6e8;
  font-weight: 900;
}

.narrative-detail-list {
  gap: 6px;
  padding-left: 10px;
}

.narrative-detail-item {
  position: relative;
  padding-left: 13px;
  color: #d8cab5;
  font-size: 0.9rem;
  line-height: 1.55;
}

.narrative-detail-item::before {
  content: "";
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #63a8ff;
}

.narrative-row.is-rareCircletGroup {
  gap: 10px;
  border: 1px solid rgba(255, 210, 94, 0.16);
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(255, 210, 94, 0.06), transparent 62%),
    rgba(0, 0, 0, 0.14);
}

.rare-circlet-group,
.rare-circlet-build {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
}

.rare-circlet-group__label {
  color: #ffd25e;
  font-size: 1rem;
  font-weight: 900;
}

.rare-circlet-group__summary {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  border-radius: 999px;
  padding: 3px 9px 4px;
  color: #fff6e8;
  background: rgba(255, 210, 94, 0.1);
  font-size: var(--font-readable-small);
  font-weight: 900;
}

.narrative-detail-item.is-rareCircletBuild {
  border-radius: 7px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.035);
}

.narrative-detail-item.is-rareCircletBuild::before {
  display: none;
}

.rare-circlet-build__class {
  min-width: 52px;
  color: #b9e6ff;
  font-weight: 900;
}

.rare-circlet-build__part {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.rare-circlet-build__label {
  display: inline-flex;
  min-height: var(--badge-readable-min-height);
  align-items: center;
  border-radius: 999px;
  padding: 1px 7px 2px;
  color: #12100c;
  background: #ffce8a;
  font-size: var(--font-readable-small);
  font-weight: 900;
  line-height: 1.1;
}

.rare-circlet-build__values {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.rare-circlet-build__values > span {
  display: inline-flex;
  border-radius: 6px;
  padding: 1px 6px 2px;
  color: #fff6e8;
  background: rgba(0, 0, 0, 0.22);
  font-weight: 900;
}

.option-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 9px;
}

.option-line--group {
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 4px 8px;
}

.option-group-prefix {
  flex: 0 0 auto;
  color: #d7b46e;
  font-weight: 900;
  white-space: nowrap;
}

.option-group-prefix::after {
  content: ":";
}

.option-group-values {
  display: inline-flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  color: #fff6e8;
  white-space: normal;
}

.option-group-values span {
  display: inline;
  flex: 0 0 auto;
}

.option-separator {
  margin: 0 5px;
  color: #64d98b;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(100, 217, 139, 0.28);
}

.condition-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.condition-tag {
  display: inline-flex;
  min-height: var(--badge-readable-min-height);
  align-items: center;
  border-radius: 999px;
  padding: 1px 8px 2px;
  color: #12100c;
  background: #ffce8a;
  font-size: var(--font-readable-small);
  font-weight: 900;
  line-height: 1.2;
}

.narrative-tier.is-prime h6 {
  border-color: rgba(255, 210, 94, 0.42);
  color: #ffd25e;
  background: rgba(255, 210, 94, 0.11);
}

.narrative-tier.is-strong h6 {
  border-color: rgba(101, 216, 150, 0.36);
  color: #65d896;
  background: rgba(101, 216, 150, 0.1);
}

.narrative-tier.is-mid h6 {
  border-color: rgba(141, 195, 255, 0.36);
  color: #8dc3ff;
  background: rgba(141, 195, 255, 0.1);
}

.condition-tag.is-prime {
  color: #1a1208;
  background: #ffd25e;
}

.condition-tag.is-eth {
  color: #f6fbff;
  background: #345c9e;
}

.condition-tag.is-socket {
  color: #111827;
  background: #b9e6ff;
}

.condition-tag.is-class {
  color: #fff8e7;
  background: linear-gradient(180deg, #7b61d1, #40307d);
}

.condition-tag.is-necro {
  color: #eefdf0;
  background: linear-gradient(180deg, #328554, #1f5636);
}

.condition-tag.is-barbarian {
  color: #1d1606;
  background: linear-gradient(180deg, #ffe06c, #c99618);
}

.condition-tag.is-druid {
  color: #fff0dc;
  background: linear-gradient(180deg, #8a5d34, #4d3320);
}

.condition-tag.is-paladin {
  color: #fbf6ff;
  background: linear-gradient(180deg, #8b62cc, #55378f);
}

.condition-tag.is-sorceress {
  color: #ecfbff;
  background: linear-gradient(180deg, #267ba6, #14516f);
}

.condition-tag.is-demonist {
  color: #fff3ee;
  background: linear-gradient(180deg, #c7433f, #7f1f25);
}

.condition-tag.is-amazon {
  color: #231204;
  background: linear-gradient(180deg, #ffac45, #d06c16);
}

.condition-tag.is-assassin {
  color: #f5f5f4;
  background: linear-gradient(180deg, #5a5f66, #2f3338);
}

.condition-tag.is-warning {
  color: #fff8e7;
  background: #a93a2f;
}

.condition-tag.is-stat {
  color: #f8eedb;
  background: rgba(255, 255, 255, 0.08);
}

.option-note {
  color: #e6d1b4;
  font-size: 0.9rem;
  font-weight: 800;
}

.option-note::before {
  content: "옵션";
  display: inline-flex;
  margin-right: 6px;
  border-radius: 999px;
  padding: 1px 6px 2px;
  color: #17110c;
  background: #ffce8a;
  font-size: var(--font-readable-small);
  font-weight: 900;
  line-height: 1.1;
  vertical-align: 1px;
}

.text-key {
  border-radius: 4px;
  padding: 0 2px;
  color: #ffdf9f;
  background: rgba(255, 206, 138, 0.12);
}

.item-page:has(.item-list-view:not([hidden])) {
  gap: 14px;
}

.item-page:has(.item-list-view:not([hidden])) .item-toolbar {
  gap: 12px 16px;
  border-color: rgba(215, 170, 82, 0.16);
  border-radius: 6px;
  padding: clamp(16px, 1.8vw, 22px);
  background: rgba(13, 10, 9, 0.78);
  box-shadow: none;
}

.item-page:has(.item-list-view:not([hidden])) .item-toolbar h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.3rem);
  line-height: 1.12;
}

.item-page:has(.item-list-view:not([hidden])) .item-view-switch {
  border-color: rgba(240, 207, 130, 0.26);
  border-radius: 6px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.035);
}

.item-page:has(.item-list-view:not([hidden])) .view-toggle {
  min-width: 70px;
  min-height: var(--chip-readable-min-height);
  border-radius: 4px;
  padding-inline: 12px;
  color: rgba(255, 248, 231, 0.7);
  font-size: var(--font-readable-control);
}

.item-page:has(.item-list-view:not([hidden])) .view-toggle:hover {
  color: #f4e7d3;
  background: rgba(255, 255, 255, 0.05);
}

.item-page:has(.item-list-view:not([hidden])) .view-toggle.is-active {
  color: #16100d;
  background: #ffce8a;
}

.item-page:has(.item-list-view:not([hidden])) .item-search input {
  min-height: var(--control-readable-min-height);
  border-color: rgba(215, 170, 82, 0.22);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
}

.item-page:has(.item-list-view:not([hidden])) .result-count {
  border-color: rgba(215, 170, 82, 0.18);
  border-radius: 6px;
  padding: 7px 11px;
  color: #e7d8c3;
  background: rgba(255, 255, 255, 0.035);
}

.item-list-view {
  gap: 18px;
}

.item-list-view .list-nav-panel {
  gap: 12px;
  border-color: rgba(215, 170, 82, 0.16);
  border-radius: 6px;
  padding: 14px;
  background: rgba(13, 10, 9, 0.66);
  box-shadow: none;
}

.item-list-view .list-view-intro {
  min-height: 72px;
  gap: 16px;
  border-bottom: 1px solid rgba(215, 170, 82, 0.14);
  padding-bottom: 16px;
}

.item-list-view .list-view-intro h2 {
  border-left: 3px solid rgba(215, 170, 82, 0.82);
  margin: 0 0 8px;
  padding-left: 12px;
  color: #f7d992;
  font-size: clamp(1.75rem, 2.45vw, 2rem);
  line-height: 1.16;
}

.item-list-view .list-view-intro p {
  font-size: 1rem;
  line-height: 1.62;
}

.item-list-view .list-category-portrait {
  height: 76px;
  border-radius: 4px;
  background: transparent;
}

.item-list-view .list-category-portrait img {
  filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.38));
}

.item-list-view .list-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 7px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 11px;
}

.item-list-view .list-category-nav .list-nav-label {
  margin-bottom: 4px;
  color: #cbbba6;
  font-size: clamp(1rem, 1.1vw, 1.0625rem);
  line-height: 1.25;
}

.item-list-view .list-toc .list-nav-label {
  margin-bottom: 3px;
  color: #bfae98;
  font-size: clamp(1rem, 1.1vw, 1.0625rem);
  line-height: 1.25;
  opacity: 0.9;
}

.item-list-view .list-topic-nav .list-nav-label {
  color: #aebfca;
  font-size: clamp(1rem, 1.1vw, 1.0625rem);
  line-height: 1.25;
  opacity: 0.84;
}

.item-list-view .list-category-link,
.item-list-view .list-toc__button,
.item-list-view .list-topic-link {
  border-color: rgba(215, 170, 82, 0.18);
  border-radius: 6px;
  color: #d8c8b2;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.item-list-view .list-category-link {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  min-height: 42px;
  justify-content: flex-start;
  gap: 6px;
  border-color: rgba(215, 170, 82, 0.28);
  padding: 7px 13px;
  color: #f0dfc5;
  background: rgba(255, 255, 255, 0.055);
  font-size: var(--font-readable-control);
  font-weight: 900;
  line-height: 1.25;
}

.item-list-view .list-category-title {
  overflow: visible;
  text-align: left;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.item-list-view .list-category-link small {
  position: static;
  flex: 0 0 auto;
  min-width: var(--badge-readable-min-height);
  padding: 2px 5px;
  font-size: var(--font-readable-small);
}

.item-list-view .list-toc,
.item-list-view .list-topic-nav {
  gap: 5px;
  padding-top: 6px;
}

.item-list-view .list-toc {
  margin-top: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.item-list-view .list-toc__button {
  min-height: var(--chip-readable-min-height);
  border-color: rgba(215, 170, 82, 0.16);
  padding: 0 10px;
  color: #d6c5ad;
  background: rgba(255, 255, 255, 0.032);
  font-size: var(--font-readable-control);
  font-weight: 800;
}

.item-list-view .list-topic-nav {
  margin-top: 0;
  border-top: 1px solid rgba(185, 230, 255, 0.08);
  padding-top: 8px;
}

.item-list-view .list-topic-link {
  min-height: var(--chip-readable-min-height);
  border-color: rgba(185, 230, 255, 0.14);
  padding: 0 9px;
  color: #c3ddec;
  background: rgba(185, 230, 255, 0.035);
  font-size: var(--font-readable-control);
  font-weight: 800;
}

.item-list-view .list-category-link:hover,
.item-list-view .list-category-link:focus-visible,
.item-list-view .list-toc__button:hover,
.item-list-view .list-toc__button:focus-visible,
.item-list-view .list-topic-link:hover,
.item-list-view .list-topic-link:focus-visible {
  border-color: rgba(215, 170, 82, 0.34);
  color: #f4e7d3;
  background: rgba(255, 255, 255, 0.04);
}

.item-list-view .list-category-link.is-active {
  border-color: rgba(255, 206, 138, 0.72);
  color: #1b1110;
  background: #ffce8a;
}

.item-list-view .list-toc__button.is-active {
  border-color: rgba(255, 206, 138, 0.52);
  color: #f7d992;
  background: rgba(215, 170, 82, 0.13);
}

.item-list-view .list-topic-link.is-active {
  border-color: rgba(185, 230, 255, 0.42);
  color: #dff5ff;
  background: rgba(185, 230, 255, 0.09);
}

.item-list-view .list-category-link small,
.item-list-view .list-toc__button small,
.item-list-view .list-topic-link small {
  color: #d8c8b2;
  background: rgba(255, 255, 255, 0.08);
}

.item-list-view .list-category-link.is-active small {
  color: #1b130c;
  background: rgba(255, 248, 231, 0.48);
}

.item-list-view .list-toc__button.is-active small {
  color: #f7d992;
  background: rgba(215, 170, 82, 0.18);
}

.item-list-view .narrative-list {
  gap: 12px;
}

.item-list-view .narrative-category,
.item-list-view .narrative-page {
  gap: 10px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0;
  padding: 14px 0 0;
  background: transparent;
  box-shadow: none;
}

.item-list-view .narrative-category__head {
  border-bottom-color: rgba(215, 170, 82, 0.14);
  padding-bottom: 9px;
}

.item-list-view .narrative-category h3,
.item-list-view .narrative-page h3 {
  color: #f1e4d1;
  font-size: clamp(1.5rem, 1.9vw, 1.625rem);
  font-weight: 900;
  line-height: 1.22;
}

.item-list-view .narrative-category__head h4 {
  margin: 0;
  color: #ded0bd;
  font-size: clamp(1.25rem, 1.6vw, 1.375rem);
  font-weight: 900;
  line-height: 1.25;
}

.item-list-view .narrative-category__head h5 {
  margin: 0;
  color: #cfc3b4;
  font-size: clamp(1.125rem, 1.32vw, 1.25rem);
  font-weight: 900;
  line-height: 1.3;
}

.item-list-view .narrative-category__head h6 {
  margin: 0;
  color: #bfb1a0;
  font-size: clamp(1.0625rem, 1.18vw, 1.125rem);
  font-weight: 900;
  line-height: 1.25;
}

.item-list-view .narrative-section {
  gap: 8px;
  border-top-color: rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.item-list-view .narrative-section h4,
.item-list-view .narrative-section h4.narrative-section-title.has-icon {
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 7px;
  color: #ded0bd;
  font-size: clamp(1.25rem, 1.6vw, 1.375rem);
  font-weight: 900;
  line-height: 1.25;
}

.item-list-view .narrative-section-title__icon {
  height: clamp(30px, 3.2vw, 42px);
}

.item-list-view .narrative-guide-note {
  border-left-width: 0;
  border-radius: 0;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.025);
  font-size: var(--font-readable-body);
}

.item-list-view .narrative-subsection,
.item-list-view .narrative-tier,
.item-list-view .narrative-section.is-reference,
.item-list-view .narrative-subsection.is-reference,
.item-list-view .narrative-tier.is-reference {
  border: 0;
  border-radius: 0;
  padding: 8px 0 8px 10px;
  background: transparent;
  box-shadow: none;
}

.item-list-view .narrative-subsection h5 {
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  padding-bottom: 6px;
  color: #cfc3b4;
  font-size: clamp(1.125rem, 1.32vw, 1.25rem);
  font-weight: 900;
  line-height: 1.3;
}

.item-list-view .narrative-subsection.is-reference[open] {
  margin-bottom: 18px;
  border: 1px solid rgba(185, 230, 255, 0.18);
  border-radius: 6px;
  padding: 10px 12px 14px;
  background: rgba(185, 230, 255, 0.045);
}

.item-list-view .narrative-subsection.is-reference[open] + .narrative-subsection {
  padding-top: 10px;
}

.item-list-view .narrative-section.is-prime h4,
.item-list-view .narrative-subsection.is-prime h5 {
  color: #ffd25e;
}

.item-list-view .narrative-section.is-strong h4,
.item-list-view .narrative-subsection.is-strong h5 {
  color: #65d896;
}

.item-list-view .narrative-section.is-mid h4,
.item-list-view .narrative-subsection.is-mid h5 {
  color: #8dc3ff;
}

.item-list-view .narrative-tier h6 {
  min-height: var(--badge-readable-min-height);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  padding: 2px 8px;
  color: #bfb1a0;
  background: rgba(255, 255, 255, 0.025);
  font-size: clamp(1.0625rem, 1.18vw, 1.125rem);
  font-weight: 900;
  line-height: 1.25;
}

.item-list-view .narrative-items,
.item-list-view .narrative-detail-list {
  gap: 4px;
}

.item-list-view .narrative-row,
.item-list-view .narrative-row.is-inline-group {
  gap: 5px;
  padding-bottom: 7px;
  font-size: 1rem;
  line-height: 1.62;
}

.item-list-view .narrative-row.has-details,
.item-list-view .narrative-row.is-rareCircletGroup,
.item-list-view .narrative-detail-item.is-rareCircletBuild {
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  padding: 7px 0;
  background: transparent;
}

.item-list-view .condition-tag,
.item-list-view .rare-circlet-build__label,
.item-list-view .rare-circlet-group__summary,
.item-list-view .rare-circlet-build__values > span {
  border-radius: 3px;
  padding-inline: 6px;
}

.item-list-view .narrative-row__main,
.item-list-view .option-line,
.item-list-view .option-text,
.item-list-view .option-group-prefix,
.item-list-view .option-group-values,
.item-list-view .rare-circlet-group__label,
.item-list-view .rare-circlet-build__class,
.item-list-view .rare-circlet-build__part,
.item-list-view .narrative-detail-item {
  font-size: 1rem;
  line-height: 1.6;
}

.item-list-view .condition-tag,
.item-list-view .rare-circlet-build__label,
.item-list-view .rare-circlet-group__summary,
.item-list-view .rare-circlet-build__values > span,
.item-list-view .option-note::before {
  font-size: 0.875rem;
}

.item-list-view .option-note {
  font-size: 1rem;
  line-height: 1.6;
}

.item-list-view .narrative-subsection.is-reference .option-note::before {
  content: none;
  display: none;
}

.page-jump {
  position: fixed;
  right: clamp(14px, 2vw, 26px);
  bottom: clamp(18px, 4vh, 34px);
  z-index: 18;
  display: grid;
  gap: 5px;
  justify-items: end;
}

.page-jump__button {
  display: inline-grid;
  width: 40px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 206, 138, 0.3);
  border-radius: 999px;
  padding: 0;
  color: rgba(255, 218, 157, 0.82);
  background: rgba(15, 8, 7, 0.48);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  opacity: 0.68;
  transition: transform 150ms ease, opacity 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.page-jump__button:hover {
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(255, 206, 138, 0.62);
  background: rgba(30, 13, 10, 0.72);
}

.page-jump__button:focus-visible {
  outline: 3px solid rgba(255, 206, 138, 0.4);
  outline-offset: 3px;
}

.site-footer {
  display: flex;
  max-width: var(--content-max);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: 18px clamp(18px, 4vw, 42px) 28px;
  color: rgba(222, 196, 164, 0.42);
  font-size: var(--font-readable-small);
  letter-spacing: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: rgba(255, 206, 138, 0.9);
}

.site-footer a[href$="llms.txt"] {
  opacity: 0.34;
  font-size: var(--font-readable-small);
}

.site-footer a[href$="llms.txt"]:hover {
  opacity: 0.72;
}

.site-footer p {
  margin: 0;
}

.legal-hero {
  min-height: var(--subpage-hero-min-height);
}

.legal-page {
  color: #f2dfbe;
  line-height: 1.78;
}

.legal-boss-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 30px;
}

.legal-boss-gallery figure {
  min-height: 180px;
  overflow: hidden;
  border: 1px solid rgba(215, 170, 82, 0.22);
  border-radius: 8px;
  margin: 0;
  background: #0f0908;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.legal-boss-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.drop-hero {
  padding-bottom: var(--subpage-hero-padding-bottom);
}

.subpage > .random-tip-banner-host:first-child {
  margin-bottom: 22px;
}

.drop-hero.drop-detail-hero {
  min-height: 340px;
  padding-bottom: var(--subpage-hero-padding-bottom);
}

.page-shell:has(.drop-boss-figure--andariel) .drop-detail-hero {
  --drop-detail-boss-image: url("./assets/bosses/act1-boss-a1.png");
  --drop-detail-boss-position: center 58%;
}

.page-shell:has(.drop-boss-figure--duriel) .drop-detail-hero {
  --drop-detail-boss-image: url("./assets/bosses/act2-boss-a1.png");
  --drop-detail-boss-position: center 55%;
}

.page-shell:has(.drop-boss-figure--mephisto) .drop-detail-hero {
  --drop-detail-boss-image: url("./assets/bosses/act3-boss-a1.png");
  --drop-detail-boss-position: center 55%;
}

.page-shell:has(.drop-boss-figure--diablo) .drop-detail-hero {
  --drop-detail-boss-image: url("./assets/bosses/act4-boss-a1.png");
  --drop-detail-boss-position: center 54%;
}

.page-shell:has(.drop-boss-figure--baal) .drop-detail-hero {
  --drop-detail-boss-image: url("./assets/bosses/act5-boss-a1.png");
  --drop-detail-boss-position: center 52%;
}

.page-shell:has(.drop-boss-figure--cows) .drop-detail-hero {
  --drop-detail-boss-image: url("./assets/bosses/act1-cow-a1.png");
  --drop-detail-boss-position: center 56%;
}

.page-shell:has(.drop-boss-figure--pindleskin) .drop-detail-hero {
  --drop-detail-boss-image: url("./assets/bosses/act5-pindle-a1.png");
  --drop-detail-boss-position: center 54%;
}

.subpage-hero.drop-detail-hero::before {
  background:
    linear-gradient(180deg, rgba(5, 2, 2, 0.72), rgba(5, 2, 2, 0.28) 44%, rgba(5, 2, 2, 0.84) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.16) 48%, rgba(0, 0, 0, 0.72)),
    var(--drop-detail-boss-image, url("./assets/diablo-boss-hero.png")) var(--drop-detail-boss-position, center center) / cover no-repeat,
    url("./assets/patch-inferno-bg.png") center center / cover no-repeat;
}

.drop-detail-hero::after {
  height: 54%;
  background: linear-gradient(180deg, transparent, rgba(8, 3, 3, 0.9) 84%, #080303 100%);
}

.page-shell:has(.drop-boss-figure) .drop-article {
  padding-top: 12px;
}

.page-shell:has(.drop-boss-figure) .drop-article .drop-boss-figure {
  display: none;
}

.drop-home-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(215, 170, 82, 0.12);
  padding-bottom: var(--subpage-hero-padding-bottom);
  isolation: isolate;
}

.drop-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(5, 2, 2, 0.82), rgba(5, 2, 2, 0.48) 42%, rgba(5, 2, 2, 0.92) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.2) 48%, rgba(0, 0, 0, 0.88)),
    url("./assets/bosses/allboss.png") center bottom / cover no-repeat;
}

.drop-home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 42%;
  background: linear-gradient(180deg, transparent, #080303 88%);
}

.drop-home-board,
.drop-article {
  color: var(--text);
}

.drop-home-board {
  display: grid;
  gap: 18px;
}

.drop-home-board .section-heading h2,
.drop-difficulty-panel .section-heading h2 {
  color: #fff7e9;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}

.drop-home-board .section-kicker {
  color: #ffcf8b;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
}

.drop-difficulty-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(215, 170, 82, 0.18);
  border-radius: 8px;
  background: rgba(10, 8, 8, 0.78);
}

.drop-difficulty-tab {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 0;
  padding: 0 18px;
  color: #f6ead9;
  background: transparent;
  text-align: center;
  font-weight: 900;
}

.drop-difficulty-tab + .drop-difficulty-tab {
  border-left: 1px solid rgba(215, 170, 82, 0.22);
}

.drop-difficulty-tab:hover,
.drop-difficulty-tab:focus-visible,
.drop-difficulty-tab.is-active {
  color: #241408;
  background: #ffce8a;
  outline: none;
}

.drop-difficulty-panel {
  display: grid;
  gap: 14px;
}

.drop-boss-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.drop-boss-card {
  position: relative;
  display: grid;
  min-height: 340px;
  align-content: end;
  justify-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(215, 170, 82, 0.2);
  border-radius: 8px;
  padding: 18px;
  background: rgba(15, 9, 8, 0.9);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.drop-boss-card:hover,
.drop-boss-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(240, 207, 130, 0.46);
  box-shadow: 0 24px 66px rgba(0, 0, 0, 0.34);
  outline: none;
}

.drop-boss-card img {
  display: block;
  position: absolute;
  inset: 5%;
  z-index: 0;
  width: 90%;
  height: 90%;
  border-radius: 0;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.36);
  transition: transform 220ms ease;
}

.drop-boss-card:hover img,
.drop-boss-card:focus-visible img {
  transform: scale(1.035);
}

.drop-boss-card__copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(215, 170, 82, 0.14);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.68);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 220, 164, 0.08);
  backdrop-filter: blur(3px);
}

.drop-boss-card__copy span,
.drop-boss-card__copy strong,
.drop-boss-card__copy small {
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.92),
    0 0 14px rgba(0, 0, 0, 0.82);
}

.drop-boss-card__copy span {
  margin-top: 0;
  color: #ffcf8b;
  font-size: var(--font-readable-small);
  font-weight: 900;
}

.drop-boss-card__copy strong {
  margin-top: 0;
  color: #fff7e9;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.3;
  word-break: keep-all;
}

.drop-boss-card__copy small {
  display: block;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
  color: #d8c2aa;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.drop-article {
  display: grid;
  gap: 8px;
  padding-top: 28px;
  padding-bottom: 30px;
}

.drop-article h2,
.drop-article h3 {
  margin: 8px 0 0;
  color: #fff7e9;
  letter-spacing: 0;
}

.drop-article h2 {
  padding-top: 12px;
  border-top: 1px solid rgba(215, 170, 82, 0.16);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.drop-article h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.drop-article h3 {
  color: #ffcf8b;
  font-size: 1.04rem;
}

.drop-article h3.drop-heading--unique {
  color: #f0b95f;
}

.drop-article h3.drop-heading--set {
  color: #77d68b;
}

.drop-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #d8c2aa;
  font-size: 0.86rem;
  font-weight: 800;
}

.drop-breadcrumb a {
  color: #ffcf8b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.drop-breadcrumb span::before {
  content: "/";
  margin-right: 8px;
  color: rgba(216, 194, 170, 0.5);
}

.drop-boss-figure {
  display: grid;
  gap: 8px;
  margin: 0;
}

.drop-boss-image-box {
  display: block;
}

.drop-boss-figure img {
  display: block;
  width: 100%;
  max-height: 440px;
  aspect-ratio: 2 / 1;
  margin: 0 auto;
  border: 1px solid rgba(215, 170, 82, 0.2);
  border-radius: 8px;
  object-fit: cover;
}

.drop-boss-figure figcaption {
  color: #d8c2aa;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.drop-table-wrap {
  border-color: rgba(215, 170, 82, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.drop-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  background: rgba(12, 9, 8, 0.96);
}

.drop-table th,
.drop-table td {
  text-align: center;
  vertical-align: middle;
}

.drop-table th:first-child,
.drop-table td:first-child {
  width: 20%;
  border-right: 1px solid rgba(215, 170, 82, 0.18);
  background: transparent;
}

.drop-table th:not(:first-child),
.drop-table td:not(:first-child) {
  width: 80%;
  text-align: left;
}

.drop-table th:only-child,
.drop-table td:only-child {
  width: 100%;
}

.drop-table th {
  color: #fff8e7;
  background: #17110c;
  font-size: 0.88rem;
}

.drop-table th:first-child {
  background: #17110c;
}

.drop-table th:not(:first-child) {
  text-align: center;
}

.drop-table td {
  border-bottom-color: rgba(215, 170, 82, 0.12);
  color: #f4e5cf;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
  vertical-align: top;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.drop-table--unique td:not(:first-child) {
  color: #f0b95f;
}

.drop-table--set td:not(:first-child) {
  color: #77d68b;
}

.drop-label--unique {
  color: #f0b95f;
}

.drop-label--set {
  color: #77d68b;
}

.drop-jewel-line {
  display: inline-block;
  margin-top: 3px;
}

.drop-link-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.drop-link-buttons a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(240, 207, 130, 0.28);
  border-radius: 6px;
  padding: 0 14px;
  color: #241408;
  background: #ffce8a;
  font-weight: 900;
}

.drop-link-buttons a:hover,
.drop-link-buttons a:focus-visible {
  background: #fff1bd;
  outline: none;
}

.drop-tip-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #f4e5cf;
  font-weight: 700;
  line-height: 1.7;
}

.drop-final-summary {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid rgba(255, 207, 139, 0.32);
  border-radius: 8px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255, 191, 103, 0.14), rgba(255, 191, 103, 0.03) 42%),
    rgba(15, 10, 8, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.drop-final-summary h2 {
  margin: 0;
  border: 0;
  padding: 0;
  color: #ffcf8b;
}

.drop-summary-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.drop-summary-list li {
  position: relative;
  padding-left: 18px;
  color: #fff5e5;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.55;
}

.drop-summary-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffcf8b;
  box-shadow: 0 0 12px rgba(255, 207, 139, 0.55);
  content: "";
}

.drop-article h2 {
  margin-top: 8px;
  border-top-color: rgba(255, 255, 255, 0.08);
  padding-top: 8px;
  color: #f4e7d3;
  font-size: clamp(1.16rem, 1.6vw, 1.38rem);
  text-shadow: none;
}

.drop-article h3 {
  margin-top: 2px;
  color: #d7aa52;
  font-size: 0.98rem;
}

.drop-article h3.drop-heading--unique {
  color: #d7aa52;
}

.drop-article h3.drop-heading--set {
  color: #7ec18a;
}

.drop-article .drop-boss-figure img {
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  box-shadow: none;
}

.drop-article .drop-table-wrap {
  margin: -5px 0 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.drop-article .drop-table {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

.drop-article .drop-table th {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 9px;
  color: #f4e7d3;
  background: rgba(255, 255, 255, 0.025);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.52;
}

.drop-article .drop-table th:first-child {
  border-right-color: rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.025);
  color: #f1e4d1;
}

.drop-article .drop-table td {
  border-bottom-color: rgba(255, 255, 255, 0.055);
  padding: 8px 9px;
  color: #e3d3bd;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.55;
}

.drop-article .drop-table td:first-child {
  border-right-color: rgba(255, 255, 255, 0.055);
  color: #dac8ad;
  background: transparent;
  font-weight: 850;
}

.drop-article .drop-table--unique td:not(:first-child),
.drop-article .drop-label--unique {
  color: #cfa45b;
}

.drop-article .drop-table--set td:not(:first-child),
.drop-article .drop-label--set {
  color: #75b982;
}

.drop-article .drop-link-buttons a {
  border-color: rgba(215, 170, 82, 0.28);
  border-radius: 4px;
  color: #f4e7d3;
  background: rgba(215, 170, 82, 0.12);
  box-shadow: none;
}

.drop-article .drop-link-buttons a:hover,
.drop-article .drop-link-buttons a:focus-visible {
  color: #fff7e9;
  background: rgba(215, 170, 82, 0.18);
}

.drop-article .drop-tip-list {
  gap: 5px;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 6px;
  color: #deceb8;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.58;
}

.drop-article .drop-final-summary {
  gap: 6px;
  margin-top: 8px;
  border: 0;
  border-top: 1px solid rgba(215, 170, 82, 0.22);
  border-radius: 0;
  padding: 8px 0 0;
  background: transparent;
  box-shadow: none;
}

.drop-article .drop-final-summary h2 {
  color: #d7aa52;
}

.drop-article .drop-summary-list li {
  color: #e7d8c3;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.5;
}

.drop-article .drop-summary-list li::before {
  width: 5px;
  height: 5px;
  background: #d7aa52;
  box-shadow: none;
}

@media (max-width: 900px) {
  .drop-boss-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .drop-article {
    gap: 8px;
    padding-bottom: 28px;
  }

  .drop-article h2 {
    padding-top: 10px;
    font-size: 1.12rem;
  }

  .drop-article h3 {
    font-size: 0.96rem;
  }

  .drop-link-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .drop-link-buttons a {
    justify-content: center;
    width: 100%;
  }

  .drop-difficulty-tab {
    min-height: 48px;
    padding: 0 10px;
  }

  .drop-boss-grid {
    grid-template-columns: 1fr;
  }

  .drop-boss-card {
    min-height: 320px;
  }

  .drop-table-wrap {
    overflow: hidden;
    border: 1px solid rgba(215, 170, 82, 0.18);
    background: rgba(255, 255, 255, 0.04);
  }

  .drop-table {
    display: table;
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    background: rgba(12, 9, 8, 0.96);
  }

  .drop-table thead {
    display: table-header-group;
  }

  .drop-table tbody {
    display: table-row-group;
  }

  .drop-table tr {
    display: table-row;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
  }

  .drop-table td {
    display: table-cell;
    border-bottom: 1px solid rgba(215, 170, 82, 0.12);
    padding: 12px 9px;
    font-size: 0.95rem;
    line-height: 1.62;
    vertical-align: middle;
  }

  .drop-table th {
    padding: 12px 9px;
    font-size: 0.95rem;
    line-height: 1.58;
    text-align: center;
    vertical-align: middle;
  }

  .drop-table th:first-child {
    width: 24%;
    background: #17110c;
  }

  .drop-table th:not(:first-child) {
    width: 76%;
  }

  .drop-table td:first-child {
    width: 24%;
    border-right: 1px solid rgba(215, 170, 82, 0.2);
    background: transparent;
    color: #ffcf8b;
    font-size: 0.94rem;
    font-weight: 900;
    text-align: center;
    vertical-align: middle;
  }

  .drop-table td:not(:first-child) {
    width: 76%;
    padding-left: 10px;
    color: #f8ead6;
    text-align: left;
  }

  .drop-table--unique td:not(:first-child) {
    color: #f0b95f;
  }

  .drop-table--set td:not(:first-child) {
    color: #77d68b;
  }

  .drop-tip-list {
    gap: 6px;
    padding-left: 18px;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .drop-final-summary {
    gap: 10px;
    padding: 16px;
  }

  .drop-summary-list li {
    font-size: 0.94rem;
    line-height: 1.5;
  }
}

@media (max-width: 620px) {
  .drop-article .drop-table-wrap {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
  }

  .drop-article .drop-table {
    background: transparent;
  }

  .drop-article .drop-table th,
  .drop-article .drop-table td {
    padding: 8px;
    line-height: 1.55;
  }

  .drop-article .drop-table th:first-child,
  .drop-article .drop-table td:first-child {
    border-right-color: rgba(255, 255, 255, 0.055);
    background: transparent;
  }
}

.legal-page h2 {
  margin: 30px 0 10px;
  color: #fff8e7;
  font-size: 1.22rem;
}

.legal-page p {
  margin: 0 0 14px;
}

.legal-page ul {
  margin: 0 0 18px;
  padding-left: 1.2rem;
}

.legal-page li {
  margin: 0 0 8px;
}

.legal-page a {
  color: #ffce8a;
}

.legal-page__date {
  margin-top: 36px;
  border-top: 1px solid rgba(215, 170, 82, 0.18);
  padding-top: 14px;
  color: rgba(222, 196, 164, 0.62);
  font-size: 0.86rem;
}

@media (max-width: 1120px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .top-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .top-nav__dropdown {
    position: fixed;
    top: 132px;
    left: 16px;
    max-width: calc(100vw - 32px);
    transform: translateY(-4px);
  }

  .top-nav__item:hover .top-nav__dropdown,
  .top-nav__item:focus-within .top-nav__dropdown {
    transform: translateY(0);
  }

  .home-hero {
    padding-top: 59px;
  }

  .random-tip-banner-host[data-variant="sticky"] {
    top: 132px;
  }

  .subpage > .random-tip-banner-host:first-child {
    margin-top: 54px;
  }

  .shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-info-layout {
    grid-template-columns: 1fr;
  }

  .home-info-panel + .home-info-panel {
    border-top: 1px solid rgba(215, 170, 82, 0.12);
    border-left: 0;
  }

  .home-drop-carousel {
    min-height: 350px;
  }

  .home-drop-carousel__card {
    width: 216px;
    height: 308px;
  }

  .home-drop-carousel__card[data-offset="-2"] {
    --card-x: -232px;
  }

  .home-drop-carousel__card[data-offset="-1"] {
    --card-x: -132px;
  }

  .home-drop-carousel__card[data-offset="1"] {
    --card-x: 132px;
  }

  .home-drop-carousel__card[data-offset="2"] {
    --card-x: 232px;
  }

  .video-grid,
  .tip-category-grid,
  .build-class-grid,
  .skill-class-grid,
  .skill-tree-image-grid,
  .skill-tree-grid,
  .info-grid,
  .item-grid,
  .fix-grid,
  .summary-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-card {
    flex-basis: calc((100% - 16px) / 2);
    max-width: calc((100% - 16px) / 2);
  }

  .video-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .patch-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 116px;
    padding-inline: 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 0.94rem;
  }

  .home-hero {
    min-height: auto;
    padding-top: 58px;
  }

  .home-hero__backdrop {
    background-position: center top, center top, center 18px;
    background-size: cover, cover, 190% auto;
  }

  .home-hero__inner {
    width: min(100% - 32px, var(--content-max));
    min-height: 305px;
    padding: 19px 0;
  }

  .home-game-title {
    max-width: 100%;
  }

  .home-game-title__main {
    font-size: clamp(2.45rem, 12.5vw, 3.3rem);
    letter-spacing: 0.035em;
  }

  .home-game-title__sub {
    margin-top: 8px;
    font-size: clamp(0.72rem, 3.4vw, 0.94rem);
    letter-spacing: 0.3em;
    text-indent: 0.3em;
  }

  .subpage-hero {
    --subpage-hero-image-position: var(--subpage-hero-mobile-image-position, center center);
    --subpage-hero-image-size: var(--subpage-hero-mobile-image-size, cover);
    min-height: 270px;
    padding: 68px 18px 30px;
  }

  .random-tip-banner-host {
    width: calc(100% - 24px);
  }

  .subpage > .random-tip-banner-host:first-child {
    margin-top: 72px;
  }

  .random-tip-banner-host[data-variant="sticky"] {
    top: 149px;
  }

  .random-tip-banner--sticky {
    margin: 0 0 12px;
  }

  .random-tip-banner__content {
    min-height: var(--chip-readable-min-height);
    padding: 0 10px;
    gap: 6px;
    font-size: var(--font-readable-control);
  }

  .random-tip-banner__click {
    display: none;
  }

  .subpage-hero h1,
  .subpage-hero h2 {
    max-width: 11em;
    margin-inline: auto;
    font-size: clamp(2.1rem, 12vw, 3.25rem);
    line-height: 1.08;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .subpage-hero .hero__summary {
    max-width: 24em;
    font-size: 1rem;
    line-height: 1.62;
    word-break: keep-all;
  }

  .drop-detail-hero {
    min-height: 312px;
    padding: 112px 20px 38px;
  }

  .video-grid,
  .tip-category-grid,
  .build-class-grid,
  .skill-class-grid,
  .skill-tree-image-grid,
  .skill-tree-grid,
  .info-grid,
  .item-grid,
  .item-stats,
  .patch-toc ol,
  .comparison-grid,
  .fix-grid,
  .change-list,
  .summary-points {
    grid-template-columns: 1fr;
  }

  .video-card {
    flex-basis: 100%;
    max-width: 100%;
  }

  .shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
  }

  .home-drop-carousel {
    min-height: 286px;
    padding-inline: 32px;
  }

  .home-drop-carousel__stage {
    height: 276px;
  }

  .home-drop-carousel__card {
    width: 167px;
    height: 245px;
  }

  .home-drop-carousel__card[data-offset="-2"] {
    --card-x: -146px;
  }

  .home-drop-carousel__card[data-offset="-1"] {
    --card-x: -84px;
  }

  .home-drop-carousel__card[data-offset="1"] {
    --card-x: 84px;
  }

  .home-drop-carousel__card[data-offset="2"] {
    --card-x: 146px;
  }

  .home-drop-carousel__nav {
    width: 27px;
    height: 27px;
    font-size: 0.9rem;
  }

  .home-drop-carousel__copy {
    min-height: 66px;
    padding: 10px 10px 11px;
  }

  .home-drop-carousel__badge {
    min-height: var(--badge-readable-min-height);
    padding-inline: 8px;
    font-size: var(--font-readable-small);
  }

  .home-drop-carousel__title {
    font-size: 0.88rem;
  }

  .video-library-grid {
    grid-template-columns: 1fr;
  }

  .shortcut-card {
    min-height: 48px;
    padding: 6px 8px;
  }

  .shortcut-card small {
    margin-bottom: 1px;
    font-size: var(--font-readable-small);
  }

  .shortcut-card strong {
    font-size: 0.82rem;
    line-height: 1.18;
  }

  .tip-accordion__summary {
    min-height: 54px;
    padding: 14px 16px;
  }

  .tip-accordion__body {
    padding: 14px 16px 16px;
  }

  .tips-board .tip-accordion__summary {
    min-height: 48px;
    padding: 13px 2px;
  }

  .tips-board .tip-accordion__body {
    padding: 0 2px 13px 12px;
  }

  .tip-hub-featured {
    margin-bottom: 18px;
    padding: 14px 0;
  }

  .tip-hub-featured__list {
    gap: 7px;
  }

  .tip-hub-featured__link {
    min-height: var(--control-readable-min-height);
    padding: 7px 9px;
    font-size: var(--font-readable-control);
  }

  .tip-category-card {
    gap: 7px;
    padding: 12px;
  }

  .tip-category-card__preview a {
    font-size: var(--font-readable-control);
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .skill-selector-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .skill-class-select {
    width: 100%;
  }

  .item-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .item-toolbar > div:first-child {
    min-width: 0;
  }

  .item-toolbar__controls {
    min-width: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .item-search {
    flex: none;
    width: 100%;
  }

  .item-view-switch {
    justify-self: start;
    max-width: 100%;
    flex-wrap: wrap;
    overflow: visible;
  }

  .view-toggle {
    padding-inline: 8px;
    font-size: var(--font-readable-control);
  }

  .list-nav-panel {
    padding: 12px;
  }

  .list-view-intro,
  .narrative-category__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .list-view-intro {
    min-height: auto;
    gap: 10px;
  }

  .list-view-intro h2 {
    font-size: clamp(2.05rem, 12vw, 3rem);
  }

  .list-category-portrait,
  .list-category-portrait.is-all {
    width: 100%;
    height: 82px;
  }

  .list-category-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .list-category-link {
    min-height: var(--chip-readable-min-height);
    padding: 0 28px 0 8px;
    font-size: var(--font-readable-control);
  }

  .list-category-link small {
    right: 7px;
    min-width: 24px;
    padding-inline: 5px;
    font-size: var(--font-readable-small);
  }

  .list-toc,
  .list-topic-nav {
    gap: 6px;
  }

  .list-toc__button,
  .list-topic-link {
    min-height: var(--chip-readable-min-height);
    padding-inline: 9px;
    font-size: var(--font-readable-control);
  }

  .list-view-intro p:last-child {
    width: 100%;
  }

  .item-page:has(.item-list-view:not([hidden])) .item-toolbar {
    padding: 12px;
  }

  .item-page:has(.item-list-view:not([hidden])) .item-toolbar h2 {
    font-size: 1.42rem;
  }

  .item-list-view .list-nav-panel {
    padding: 10px;
  }

  .item-list-view .list-view-intro h2 {
    font-size: 1.75rem;
  }

  .item-list-view .list-category-portrait,
  .item-list-view .list-category-portrait.is-all {
    height: 64px;
  }

  .item-list-view .list-category-nav {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .item-list-view .list-category-link,
  .item-list-view .list-toc__button,
  .item-list-view .list-topic-link {
    min-height: var(--chip-readable-min-height);
    min-width: 0;
  }

  .item-list-view .narrative-category,
  .item-list-view .narrative-page {
    padding-top: 12px;
  }

  .item-list-view .narrative-subsection,
  .item-list-view .narrative-tier,
  .item-list-view .narrative-section.is-reference,
  .item-list-view .narrative-subsection.is-reference,
  .item-list-view .narrative-tier.is-reference {
    padding-left: 8px;
  }

  .content-band.patch-page {
    padding: var(--subpage-content-padding-top) 0 46px;
  }

  .patch-page {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .patch-toc,
  .patch-summary,
  .patch-section {
    min-width: 0;
    border-radius: 8px;
  }

  .patch-toc {
    padding: 14px;
  }

  .patch-toc h2,
  .patch-summary h2,
  .patch-section h2 {
    font-size: 1.35rem;
    line-height: 1.2;
    word-break: keep-all;
  }

  .patch-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 10px;
  }

  .patch-toc a {
    min-height: var(--chip-readable-min-height);
    gap: 8px;
    padding: 7px 9px;
    font-size: var(--font-readable-control);
  }

  .patch-toc a::before {
    width: 24px;
    height: 24px;
    font-size: var(--font-readable-small);
  }

  .patch-summary,
  .patch-section {
    padding: 15px;
  }

  .summary-points {
    gap: 8px;
  }

  .summary-points li {
    min-height: 0;
    gap: 5px;
    padding: 11px;
  }

  .summary-points strong {
    font-size: 0.92rem;
  }

  .summary-points span,
  .patch-section p,
  .detail-list li {
    font-size: var(--font-readable-body);
    line-height: 1.65;
  }

  .comparison-grid > div,
  .fix-grid > div,
  .change-item {
    padding: 10px;
  }

  .change-item strong {
    font-size: 0.98rem;
  }

  .table-wrap {
    margin-inline: -6px;
    padding-bottom: 8px;
  }

  .change-table {
    min-width: 560px;
  }

  .change-table th,
  .change-table td {
    padding: 9px 10px;
    font-size: var(--font-readable-control);
    white-space: nowrap;
  }

  .drop-table {
    min-width: 0;
  }

  .drop-table th,
  .drop-table td {
    white-space: normal;
  }

  .narrative-category,
  .narrative-page {
    scroll-margin-top: 134px;
  }

  .condition-tag,
  .option-note {
    max-width: 100%;
  }

  .result-count {
    align-self: flex-start;
  }

  .page-jump {
    right: 10px;
    bottom: 12px;
    gap: 4px;
  }

  .page-jump__button {
    width: 40px;
    height: 30px;
    padding: 0;
    font-size: 0.68rem;
  }

  .placeholder-panel:has(.placeholder-panel__mascot) {
    grid-template-columns: 1fr;
  }

  .placeholder-panel__mascot {
    grid-column: 1;
    grid-row: auto;
    width: min(190px, 56vw);
    justify-self: center;
    margin-bottom: 14px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-boss-gallery {
    grid-template-columns: 1fr;
  }
}

.item-ref {
  color: #e5c16b;
  cursor: help;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.item-ref:focus-visible {
  outline: 2px solid rgba(229, 193, 107, 0.72);
  outline-offset: 2px;
  border-radius: 4px;
}

.item-card-title-link {
  color: inherit;
  text-decoration-color: rgba(229, 193, 107, 0.42);
}

.item-card-title-link:hover,
.item-card-title-link:focus-visible {
  color: #f0c86b;
}

.dopamine-page {
  display: grid;
  gap: 18px;
}

.dopamine-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dopamine-summary-grid article,
.dopamine-level-panel,
.dopamine-card {
  border: 1px solid rgba(215, 170, 82, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(180, 32, 24, 0.1), transparent 38%),
    rgba(12, 8, 8, 0.86);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
}

.dopamine-summary-grid article {
  display: grid;
  gap: 6px;
  min-height: 112px;
  align-content: start;
  padding: 16px;
}

.dopamine-summary-grid strong,
.dopamine-card h4 {
  color: #fff8e7;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0;
}

.dopamine-summary-grid span,
.dopamine-card__head p,
.dopamine-card__verdict,
.dopamine-list,
.dopamine-table td {
  color: #dcc6aa;
}

.dopamine-level-panel {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2.4vw, 22px);
}

.dopamine-level-panel h3,
.dopamine-card h3 {
  margin: 0;
  color: #fff8e7;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.16;
}

.dopamine-route {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 8px;
}

.dopamine-route__step {
  display: grid;
  min-height: 72px;
  align-content: center;
  justify-items: center;
  border: 1px solid rgba(240, 207, 130, 0.18);
  border-radius: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.22);
  text-align: center;
}

.dopamine-route__step strong {
  color: #ffce8a;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
}

.dopamine-route__step small {
  margin-top: 6px;
  color: #f4e5c8;
  font-size: var(--font-readable-small);
  font-weight: 800;
  line-height: 1.25;
}

.dopamine-category-tabs {
  position: sticky;
  top: calc(var(--site-header-height) + 8px);
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid rgba(215, 170, 82, 0.16);
  border-radius: 8px;
  padding: 10px;
  background: rgba(8, 3, 3, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.dopamine-tab {
  display: grid;
  min-height: 58px;
  align-content: center;
  justify-items: center;
  gap: 4px;
  border: 1px solid rgba(240, 207, 130, 0.18);
  border-radius: 8px;
  padding: 7px 8px;
  color: #f4e5c8;
  background: rgba(255, 255, 255, 0.045);
  font-weight: 900;
}

.dopamine-tab:hover,
.dopamine-tab:focus-visible,
.dopamine-tab.is-active {
  border-color: rgba(255, 206, 138, 0.84);
  color: #16100d;
  background: #ffce8a;
  outline: none;
}

.dopamine-tab strong,
.dopamine-tab span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dopamine-tab span {
  font-size: var(--font-readable-small);
  line-height: 1.15;
}

.dopamine-category-detail {
  scroll-margin-top: 164px;
  min-height: 620px;
}

.dopamine-card {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.6vw, 28px);
}

.dopamine-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(215, 170, 82, 0.14);
  padding-bottom: 14px;
}

.dopamine-card__head p {
  margin: 8px 0 0;
}

.dopamine-card__level {
  display: inline-flex;
  min-width: 76px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 206, 138, 0.5);
  border-radius: 8px;
  padding: 0 12px;
  color: #ffce8a;
  background: rgba(0, 0, 0, 0.32);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  white-space: nowrap;
}

.dopamine-card__verdict {
  margin: 0;
  border-left: 3px solid rgba(255, 206, 138, 0.74);
  padding: 10px 0 10px 14px;
  background: rgba(255, 206, 138, 0.04);
  font-weight: 800;
}

.dopamine-card__columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.dopamine-card h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.dopamine-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dopamine-list li {
  position: relative;
  min-height: 38px;
  border: 1px solid rgba(215, 170, 82, 0.12);
  border-radius: 6px;
  padding: 8px 10px 8px 26px;
  background: rgba(0, 0, 0, 0.18);
  font-weight: 800;
}

.dopamine-list li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffce8a;
}

.dopamine-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(215, 170, 82, 0.14);
  border-radius: 8px;
}

.dopamine-table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
}

.dopamine-table th,
.dopamine-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(215, 170, 82, 0.1);
  text-align: left;
}

.dopamine-table tr:last-child th,
.dopamine-table tr:last-child td {
  border-bottom: 0;
}

.dopamine-table th {
  width: 78px;
  color: #ffce8a;
  background: rgba(255, 206, 138, 0.06);
  font-family: var(--font-display);
  white-space: nowrap;
}

.dopamine-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 8px;
}

.dopamine-option-grid span {
  display: grid;
  min-height: 68px;
  align-content: center;
  gap: 4px;
  border: 1px solid rgba(185, 230, 255, 0.14);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
}

.dopamine-option-grid small {
  color: #cbefff;
  font-size: var(--font-readable-small);
  font-weight: 800;
  line-height: 1.2;
}

.dopamine-option-grid strong {
  color: #fff8e7;
  font-size: 1rem;
  line-height: 1.25;
}

@media (max-width: 900px) {
  .dopamine-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dopamine-category-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    top: calc(var(--site-header-height) + 4px);
  }

  .dopamine-card__columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .dopamine-summary-grid,
  .dopamine-category-tabs {
    grid-template-columns: 1fr;
  }

  .dopamine-category-tabs {
    position: static;
  }

  .dopamine-card__head {
    display: grid;
  }

  .dopamine-card__level {
    width: max-content;
  }
}

.dopamine-hero h1 {
  color: #fff8e7;
}

.subpage-hero.dopamine-hero {
  min-height: 190px;
  padding-top: 32px;
  padding-bottom: 34px;
}

.subpage-hero.dopamine-hero::before {
  background:
    linear-gradient(180deg, rgba(5, 2, 2, 0.74), rgba(5, 2, 2, 0.38) 46%, rgba(5, 2, 2, 0.86) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.2) 52%, rgba(0, 0, 0, 0.78)),
    var(--subpage-hero-image, url("./assets/patch-inferno-bg.png")) var(--subpage-hero-image-position, center center) / var(--subpage-hero-image-size) no-repeat;
}

.subpage-hero.dopamine-hero h1 {
  color: #fff8e7;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
}

.subpage-hero.dopamine-hero .hero__summary {
  width: min(980px, 100%);
  margin-top: 8px;
  color: #f4e5c8;
}

.dopamine-hub {
  display: grid;
  gap: 12px;
}

.dopamine-hub-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dopamine-hub-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  border-radius: 8px;
  transition:
    filter 160ms ease,
    transform 160ms ease;
}

.dopamine-hub-card__image {
  display: block;
  aspect-ratio: 2 / 1;
  border: 1px solid rgba(215, 170, 82, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(5, 2, 2, 0.28), rgba(5, 2, 2, 0.76)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.08) 52%, rgba(0, 0, 0, 0.62)),
    url("./assets/hero/item-index.png") center center / cover no-repeat;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
}

.dopamine-hub-card__image--gold {
  background:
    linear-gradient(180deg, rgba(5, 2, 2, 0.02), rgba(5, 2, 2, 0.18)),
    url("./assets/dopamine/gold-gambling-card.png") center 46% / cover no-repeat;
}

.dopamine-hub-card__image--runeword {
  background:
    linear-gradient(180deg, rgba(5, 2, 2, 0.02), rgba(5, 2, 2, 0.18)),
    url("./assets/dopamine/runeword-gambling-card.png") center 48% / cover no-repeat;
}

.dopamine-hub-card__image--unidentified {
  background:
    linear-gradient(180deg, rgba(5, 2, 2, 0.02), rgba(5, 2, 2, 0.18)),
    url("./assets/dopamine/unidentified-gambling-card.png") center 48% / cover no-repeat;
}

.dopamine-hub-card__image--cube {
  background:
    linear-gradient(180deg, rgba(5, 2, 2, 0.02), rgba(5, 2, 2, 0.18)),
    url("./assets/dopamine/cube-reroll-gambling-card.png") center 48% / cover no-repeat;
}

.dopamine-hub-card__image--crafting {
  background:
    linear-gradient(180deg, rgba(5, 2, 2, 0.02), rgba(5, 2, 2, 0.18)),
    url("./assets/dopamine/crafting-card.png") center 48% / cover no-repeat;
}

.dopamine-hub-card:hover .dopamine-hub-card__image,
.dopamine-hub-card:focus-visible .dopamine-hub-card__image,
.dopamine-hub-card:active .dopamine-hub-card__image,
.dopamine-hub-card.is-selected .dopamine-hub-card__image {
  border-color: rgba(255, 206, 138, 0.7);
  filter: brightness(1.08) saturate(1.05);
}

.dopamine-hub-card:active,
.dopamine-hub-card.is-selected {
  transform: translateY(-2px);
}

.dopamine-hub-card:active .dopamine-hub-card__image,
.dopamine-hub-card.is-selected .dopamine-hub-card__image {
  border-color: rgba(255, 218, 154, 0.95);
  box-shadow:
    0 0 0 2px rgba(255, 218, 154, 0.34),
    0 0 26px rgba(255, 179, 77, 0.32),
    0 14px 32px rgba(0, 0, 0, 0.34);
  filter: brightness(1.16) saturate(1.14) contrast(1.04);
}

.dopamine-hub-card:focus-visible {
  outline: none;
}

.dopamine-hub-card strong {
  color: #fff8e7;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.dopamine-hub-card:active strong,
.dopamine-hub-card.is-selected strong {
  color: #ffce8a;
  text-shadow: 0 0 14px rgba(255, 190, 92, 0.34);
}

.gold-gambling-page {
  gap: 12px;
}

.dopamine-article-page {
  gap: 12px;
}

.gold-gambling-page .section-heading,
.dopamine-article-page .section-heading {
  margin-bottom: 0;
}

.gold-gambling-page .section-heading h2,
.dopamine-article-page .section-heading h2 {
  color: #fff8e7;
  font-size: clamp(1.24rem, 2vw, 1.58rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
}

.gold-gambling-page .section-kicker,
.dopamine-article-page .section-kicker {
  color: #ffce8a;
}

.gold-gambling-page .dopamine-summary-grid,
.dopamine-article-page .dopamine-summary-grid {
  display: block;
}

.dopamine-wiki-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(215, 170, 82, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(12, 8, 8, 0.78);
}

.dopamine-wiki-table th,
.dopamine-wiki-table td {
  border-bottom: 1px solid rgba(215, 170, 82, 0.12);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}

.dopamine-wiki-table th {
  width: 116px;
  color: #ffce8a;
  background: rgba(255, 206, 138, 0.06);
  font-family: var(--font-display);
  white-space: nowrap;
}

.dopamine-wiki-table td {
  color: #dcc6aa;
  font-weight: 700;
}

.gold-gambling-page .dopamine-wiki-table th,
.dopamine-article-page .dopamine-wiki-table th {
  width: 112px;
}

.gold-gambling-page .dopamine-wiki-table td,
.dopamine-article-page .dopamine-wiki-table td {
  width: calc((100% - 224px) / 2);
}

.dopamine-wiki-table tr:last-child th,
.dopamine-wiki-table tr:last-child td {
  border-bottom: 0;
}

.gold-gambling-page .dopamine-level-panel,
.gold-gambling-page .dopamine-card,
.dopamine-article-page .dopamine-level-panel,
.dopamine-article-page .dopamine-card {
  box-shadow: none;
}

.gold-gambling-page .dopamine-level-panel,
.dopamine-article-page .dopamine-level-panel {
  gap: 8px;
  padding: 14px;
  background: rgba(12, 8, 8, 0.72);
}

.gold-gambling-page .dopamine-level-panel h3,
.gold-gambling-page .dopamine-card h3,
.dopamine-article-page .dopamine-level-panel h3,
.dopamine-article-page .dopamine-card h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.gold-gambling-page .dopamine-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-color: rgba(215, 170, 82, 0.14);
  padding: 8px;
  background: rgba(8, 3, 3, 0.92);
  box-shadow: none;
}

.gold-gambling-page .dopamine-tab {
  min-height: 36px;
  grid-auto-flow: column;
  grid-template-columns: auto auto;
  gap: 8px;
  padding: 0 11px;
  border-radius: 6px;
}

.gold-gambling-page .dopamine-tab span {
  color: inherit;
  opacity: 0.78;
}

.gold-gambling-page .dopamine-category-detail {
  min-height: 0;
  scroll-margin-top: 132px;
}

.gold-gambling-page .dopamine-card,
.dopamine-article-page .dopamine-card {
  gap: 12px;
  padding: 14px;
  background: rgba(12, 8, 8, 0.78);
}

.gold-gambling-page .dopamine-card__head {
  align-items: center;
  gap: 12px;
  padding-bottom: 9px;
}

.gold-gambling-page .dopamine-card__head p {
  margin-top: 3px;
  font-size: 0.94rem;
  line-height: 1.35;
}

.gold-gambling-page .dopamine-card__level {
  min-width: 58px;
  min-height: 34px;
  border-radius: 6px;
  font-size: 1rem;
}

.gold-gambling-page .dopamine-card__verdict {
  padding: 7px 0 7px 10px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.gold-gambling-page .dopamine-card__columns {
  grid-template-columns: minmax(300px, 0.42fr) minmax(520px, 0.58fr);
  gap: 12px;
}

.gold-gambling-page .dopamine-card h4,
.dopamine-article-page .dopamine-card h4 {
  margin-bottom: 6px;
}

.gold-gambling-page .dopamine-list,
.dopamine-article-page .dopamine-list {
  gap: 4px;
}

.gold-gambling-page .dopamine-list li,
.dopamine-article-page .dopamine-list li {
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 2px 0 2px 18px;
  background: transparent;
  line-height: 1.4;
}

.gold-gambling-page .dopamine-list li::before,
.dopamine-article-page .dopamine-list li::before {
  top: 12px;
  left: 4px;
  width: 5px;
  height: 5px;
}

.gold-gambling-page .dopamine-table,
.dopamine-article-page .dopamine-table {
  min-width: 0;
  font-size: 0.94rem;
}

.gold-gambling-page .dopamine-table th,
.gold-gambling-page .dopamine-table td,
.dopamine-article-page .dopamine-table th,
.dopamine-article-page .dopamine-table td {
  padding: 7px 9px;
  line-height: 1.35;
  text-align: left;
  vertical-align: middle;
}

.gold-gambling-page .dopamine-table th,
.dopamine-article-page .dopamine-table th {
  width: auto;
}

.gold-gambling-page .dopamine-table,
.dopamine-article-page .dopamine-table {
  table-layout: fixed;
}

.gold-gambling-page .dopamine-table:has(thead th:nth-child(3):last-child) th:nth-child(1),
.dopamine-article-page .dopamine-table:has(thead th:nth-child(3):last-child) th:nth-child(1) {
  width: 24%;
}

.gold-gambling-page .dopamine-table:has(thead th:nth-child(3):last-child) th:nth-child(2),
.dopamine-article-page .dopamine-table:has(thead th:nth-child(3):last-child) th:nth-child(2) {
  width: 16%;
}

.gold-gambling-page .dopamine-table:has(thead th:nth-child(3):last-child) th:nth-child(2),
.gold-gambling-page .dopamine-table:has(thead th:nth-child(3):last-child) td:nth-child(2),
.dopamine-article-page .dopamine-table:has(thead th:nth-child(3):last-child) th:nth-child(2),
.dopamine-article-page .dopamine-table:has(thead th:nth-child(3):last-child) td:nth-child(2) {
  text-align: center;
  white-space: nowrap;
}

.gold-gambling-page .dopamine-table:has(thead th:nth-child(3):last-child) th:nth-child(3),
.dopamine-article-page .dopamine-table:has(thead th:nth-child(3):last-child) th:nth-child(3) {
  width: 60%;
}

.gold-gambling-page .dopamine-table:has(thead th:nth-child(4):last-child) th:nth-child(1),
.dopamine-article-page .dopamine-table:has(thead th:nth-child(4):last-child) th:nth-child(1) {
  width: 18%;
}

.gold-gambling-page .dopamine-table:has(thead th:nth-child(4):last-child) th:nth-child(2),
.dopamine-article-page .dopamine-table:has(thead th:nth-child(4):last-child) th:nth-child(2) {
  width: 34%;
}

.gold-gambling-page .dopamine-table:has(thead th:nth-child(4):last-child) th:nth-child(3),
.dopamine-article-page .dopamine-table:has(thead th:nth-child(4):last-child) th:nth-child(3) {
  width: 26%;
}

.gold-gambling-page .dopamine-table:has(thead th:nth-child(4):last-child) th:nth-child(4),
.dopamine-article-page .dopamine-table:has(thead th:nth-child(4):last-child) th:nth-child(4) {
  width: 22%;
}

.gold-gambling-page .dopamine-table:has(thead th:nth-child(5):last-child) th:nth-child(1),
.dopamine-article-page .dopamine-table:has(thead th:nth-child(5):last-child) th:nth-child(1) {
  width: 9%;
}

.gold-gambling-page .dopamine-table:has(thead th:nth-child(5):last-child) th:nth-child(1),
.gold-gambling-page .dopamine-table:has(thead th:nth-child(5):last-child) td:nth-child(1),
.dopamine-article-page .dopamine-table:has(thead th:nth-child(5):last-child) th:nth-child(1),
.dopamine-article-page .dopamine-table:has(thead th:nth-child(5):last-child) td:nth-child(1) {
  text-align: center;
  white-space: nowrap;
}

.gold-gambling-page .dopamine-table:has(thead th:nth-child(5):last-child) th:nth-child(2),
.dopamine-article-page .dopamine-table:has(thead th:nth-child(5):last-child) th:nth-child(2) {
  width: 17%;
}

.gold-gambling-page .dopamine-table:has(thead th:nth-child(5):last-child) th:nth-child(3),
.dopamine-article-page .dopamine-table:has(thead th:nth-child(5):last-child) th:nth-child(3) {
  width: 31%;
}

.gold-gambling-page .dopamine-table:has(thead th:nth-child(5):last-child) th:nth-child(4),
.dopamine-article-page .dopamine-table:has(thead th:nth-child(5):last-child) th:nth-child(4) {
  width: 22%;
}

.gold-gambling-page .dopamine-table:has(thead th:nth-child(5):last-child) th:nth-child(5),
.dopamine-article-page .dopamine-table:has(thead th:nth-child(5):last-child) th:nth-child(5) {
  width: 21%;
}

.dopamine-article-page [aria-labelledby="crafting-priority-title"] .dopamine-table th:nth-child(1) {
  width: 6%;
}

.dopamine-article-page [aria-labelledby="crafting-priority-title"] .dopamine-table th:nth-child(1),
.dopamine-article-page [aria-labelledby="crafting-priority-title"] .dopamine-table td:nth-child(1),
.dopamine-article-page [aria-labelledby="crafting-priority-title"] .dopamine-table th:nth-child(3),
.dopamine-article-page [aria-labelledby="crafting-priority-title"] .dopamine-table td:nth-child(3) {
  text-align: center;
  white-space: nowrap;
}

.dopamine-article-page [aria-labelledby="crafting-priority-title"] .dopamine-table th:nth-child(2) {
  width: 13%;
}

.dopamine-article-page [aria-labelledby="crafting-priority-title"] .dopamine-table th:nth-child(3) {
  width: 9%;
}

.dopamine-article-page [aria-labelledby="crafting-priority-title"] .dopamine-table th:nth-child(4) {
  width: 28%;
}

.dopamine-article-page [aria-labelledby="crafting-priority-title"] .dopamine-table th:nth-child(5) {
  width: 44%;
}

.dopamine-article-page [aria-labelledby="crafting-priority-title"] .dopamine-table th:nth-child(5),
.dopamine-article-page [aria-labelledby="crafting-priority-title"] .dopamine-table td:nth-child(5) {
  white-space: nowrap;
}

.dopamine-article-page [aria-labelledby="crafting-priority-title"] .dopamine-table:has(thead th:nth-child(5):last-child) th:nth-child(1) {
  width: 6%;
}

.dopamine-article-page [aria-labelledby="crafting-priority-title"] .dopamine-table:has(thead th:nth-child(5):last-child) th:nth-child(2) {
  width: 13%;
}

.dopamine-article-page [aria-labelledby="crafting-priority-title"] .dopamine-table:has(thead th:nth-child(5):last-child) th:nth-child(3) {
  width: 9%;
}

.dopamine-article-page [aria-labelledby="crafting-priority-title"] .dopamine-table:has(thead th:nth-child(5):last-child) th:nth-child(4) {
  width: 28%;
}

.dopamine-article-page [aria-labelledby="crafting-priority-title"] .dopamine-table:has(thead th:nth-child(5):last-child) th:nth-child(5) {
  width: 44%;
}

.dopamine-article-page [aria-labelledby="crafting-level-title"] .dopamine-table th:nth-child(1) {
  width: 22%;
}

.dopamine-article-page [aria-labelledby="crafting-level-title"] .dopamine-table th:nth-child(2) {
  width: 15%;
}

.dopamine-article-page [aria-labelledby="crafting-level-title"] .dopamine-table th:nth-child(3) {
  width: 63%;
}

.dopamine-article-page [aria-labelledby="crafting-level-title"] .dopamine-table th:nth-child(2),
.dopamine-article-page [aria-labelledby="crafting-level-title"] .dopamine-table td:nth-child(2) {
  text-align: center;
  white-space: nowrap;
}

.dopamine-article-page [aria-labelledby="crafting-family-title"] .dopamine-table th:nth-child(1) {
  width: 13%;
}

.dopamine-article-page [aria-labelledby="crafting-family-title"] .dopamine-table th:nth-child(2) {
  width: 15%;
}

.dopamine-article-page [aria-labelledby="crafting-family-title"] .dopamine-table th:nth-child(3) {
  width: 32%;
}

.dopamine-article-page [aria-labelledby="crafting-family-title"] .dopamine-table th:nth-child(4) {
  width: 20%;
}

.dopamine-article-page [aria-labelledby="crafting-family-title"] .dopamine-table th:nth-child(5) {
  width: 20%;
}

.dopamine-article-page [aria-labelledby="crafting-family-title"] .dopamine-table th:nth-child(1),
.dopamine-article-page [aria-labelledby="crafting-family-title"] .dopamine-table td:nth-child(1),
.dopamine-article-page [aria-labelledby="crafting-family-title"] .dopamine-table th:nth-child(2),
.dopamine-article-page [aria-labelledby="crafting-family-title"] .dopamine-table td:nth-child(2) {
  text-align: center;
  white-space: nowrap;
}

.dopamine-article-page [aria-labelledby="crafting-amulet-title"] .dopamine-table th,
.dopamine-article-page [aria-labelledby="crafting-amulet-title"] .dopamine-table td {
  text-align: center;
  white-space: nowrap;
}

.dopamine-article-page [aria-labelledby="crafting-amulet-title"] .dopamine-table th:nth-child(1) {
  width: 18%;
}

.dopamine-article-page [aria-labelledby="crafting-amulet-title"] .dopamine-table th:nth-child(2) {
  width: 24%;
}

.dopamine-article-page [aria-labelledby="crafting-amulet-title"] .dopamine-table th:nth-child(3) {
  width: 34%;
}

.dopamine-article-page [aria-labelledby="crafting-amulet-title"] .dopamine-table th:nth-child(4) {
  width: 24%;
}

.dopamine-article-page [aria-labelledby="crafting-option-title"] .dopamine-table,
.dopamine-article-page [aria-labelledby="crafting-skip-title"] .dopamine-table {
  table-layout: auto;
}

.dopamine-article-page [aria-labelledby="crafting-option-title"] .dopamine-table th,
.dopamine-article-page [aria-labelledby="crafting-skip-title"] .dopamine-table th {
  width: 190px;
}

.dopamine-article-page [aria-labelledby="runeword-grade-title"] .dopamine-table th:nth-child(1),
.dopamine-article-page [aria-labelledby="unid-grade-title"] .dopamine-table th:nth-child(1),
.dopamine-article-page [aria-labelledby="cube-grade-title"] .dopamine-table th:nth-child(1) {
  width: 7%;
}

.dopamine-article-page [aria-labelledby="runeword-grade-title"] .dopamine-table th:nth-child(1),
.dopamine-article-page [aria-labelledby="runeword-grade-title"] .dopamine-table td:nth-child(1),
.dopamine-article-page [aria-labelledby="unid-grade-title"] .dopamine-table th:nth-child(1),
.dopamine-article-page [aria-labelledby="unid-grade-title"] .dopamine-table td:nth-child(1),
.dopamine-article-page [aria-labelledby="cube-grade-title"] .dopamine-table th:nth-child(1),
.dopamine-article-page [aria-labelledby="cube-grade-title"] .dopamine-table td:nth-child(1) {
  text-align: center;
  white-space: nowrap;
}

.dopamine-article-page [aria-labelledby="runeword-grade-title"] .dopamine-table th:nth-child(2),
.dopamine-article-page [aria-labelledby="unid-grade-title"] .dopamine-table th:nth-child(2),
.dopamine-article-page [aria-labelledby="cube-grade-title"] .dopamine-table th:nth-child(2) {
  width: 18%;
}

.dopamine-article-page [aria-labelledby="runeword-grade-title"] .dopamine-table th:nth-child(3),
.dopamine-article-page [aria-labelledby="unid-grade-title"] .dopamine-table th:nth-child(3),
.dopamine-article-page [aria-labelledby="cube-grade-title"] .dopamine-table th:nth-child(3) {
  width: 30%;
}

.dopamine-article-page [aria-labelledby="runeword-grade-title"] .dopamine-table th:nth-child(4),
.dopamine-article-page [aria-labelledby="unid-grade-title"] .dopamine-table th:nth-child(4),
.dopamine-article-page [aria-labelledby="cube-grade-title"] .dopamine-table th:nth-child(4) {
  width: 20%;
}

.dopamine-article-page [aria-labelledby="runeword-grade-title"] .dopamine-table th:nth-child(5),
.dopamine-article-page [aria-labelledby="unid-grade-title"] .dopamine-table th:nth-child(5),
.dopamine-article-page [aria-labelledby="cube-grade-title"] .dopamine-table th:nth-child(5) {
  width: 25%;
}

.dopamine-article-page [aria-labelledby="cube-formula-title"] .dopamine-table th:nth-child(1) {
  width: 13%;
}

.dopamine-article-page [aria-labelledby="cube-formula-title"] .dopamine-table th:nth-child(2) {
  width: 31%;
}

.dopamine-article-page [aria-labelledby="cube-formula-title"] .dopamine-table th:nth-child(3) {
  width: 28%;
}

.dopamine-article-page [aria-labelledby="cube-formula-title"] .dopamine-table th:nth-child(4) {
  width: 28%;
}

.dopamine-article-page [aria-labelledby="cube-formula-title"] .dopamine-table th:nth-child(1),
.dopamine-article-page [aria-labelledby="cube-formula-title"] .dopamine-table td:nth-child(1) {
  text-align: center;
}

.dopamine-article-page [aria-labelledby="cube-formula-title"] .dopamine-table th:nth-child(4),
.dopamine-article-page [aria-labelledby="cube-formula-title"] .dopamine-table td:nth-child(4) {
  text-align: left;
}

.gold-gambling-page .dopamine-table--options th {
  width: 170px;
}

.dopamine-article-page .dopamine-table tbody th[scope="row"],
.gold-gambling-page .dopamine-table tbody th[scope="row"] {
  width: 150px;
}

.dopamine-article-page [aria-labelledby="runeword-priority-title"] .dopamine-table tbody th[scope="row"] {
  width: 88px;
  text-align: center;
  white-space: nowrap;
}

.dopamine-article-page [aria-labelledby="runeword-priority-title"] .dopamine-table td:nth-child(2) {
  width: 34%;
}

.dopamine-article-page [aria-labelledby="runeword-priority-title"] .dopamine-table td:nth-child(3) {
  width: calc(66% - 88px);
}

.dopamine-article-page [aria-labelledby="cube-priority-title"] .dopamine-table tbody th[scope="row"],
.dopamine-article-page [aria-labelledby="unid-check-title"] .dopamine-table tbody th[scope="row"] {
  width: 120px;
}

.gold-gambling-page .dopamine-route th[scope="col"],
.dopamine-article-page [aria-labelledby="crafting-priority-title"] .dopamine-table thead th,
.dopamine-article-page [aria-labelledby="crafting-family-title"] .dopamine-table thead th,
.dopamine-article-page [aria-labelledby="crafting-amulet-title"] .dopamine-table thead th,
.dopamine-article-page [aria-labelledby="runeword-grade-title"] .dopamine-table thead th,
.dopamine-article-page [aria-labelledby="unid-grade-title"] .dopamine-table thead th,
.dopamine-article-page [aria-labelledby="cube-grade-title"] .dopamine-table thead th {
  text-align: center;
}

.dopamine-article-page [aria-labelledby="crafting-level-title"] .dopamine-table thead th:nth-child(1),
.dopamine-article-page [aria-labelledby="crafting-level-title"] .dopamine-table thead th:nth-child(3),
.dopamine-article-page [aria-labelledby="cube-formula-title"] .dopamine-table thead th:nth-child(2),
.dopamine-article-page [aria-labelledby="cube-formula-title"] .dopamine-table thead th:nth-child(3),
.dopamine-article-page [aria-labelledby="cube-formula-title"] .dopamine-table thead th:nth-child(4) {
  text-align: left;
}

.dopamine-article-page [aria-labelledby="crafting-level-title"] .dopamine-table thead th:nth-child(2),
.dopamine-article-page [aria-labelledby="cube-formula-title"] .dopamine-table thead th:nth-child(1) {
  text-align: center;
}

.gold-gambling-page .dopamine-table tbody th[scope="row"],
.dopamine-article-page .dopamine-table tbody th[scope="row"] {
  text-align: center;
  white-space: nowrap;
}

.dopamine-article-page [aria-labelledby="crafting-priority-title"] .dopamine-table td:nth-child(1),
.dopamine-article-page [aria-labelledby="crafting-priority-title"] .dopamine-table td:nth-child(2),
.dopamine-article-page [aria-labelledby="crafting-priority-title"] .dopamine-table td:nth-child(3),
.dopamine-article-page [aria-labelledby="crafting-priority-title"] .dopamine-table td:nth-child(5) {
  text-align: center;
}

.dopamine-article-page [aria-labelledby="crafting-priority-title"] .dopamine-table td:nth-child(4) {
  text-align: left;
}

.dopamine-article-page [aria-labelledby="crafting-level-title"] .dopamine-table thead th:nth-child(1),
.dopamine-article-page [aria-labelledby="crafting-level-title"] .dopamine-table tbody td:nth-child(1) {
  text-align: center;
}

.dopamine-article-page [aria-labelledby="crafting-level-title"] .dopamine-table thead th:nth-child(3),
.dopamine-article-page [aria-labelledby="crafting-level-title"] .dopamine-table tbody td:nth-child(3) {
  text-align: left;
}

.dopamine-article-page [aria-labelledby="crafting-family-title"] .dopamine-table thead th,
.dopamine-article-page [aria-labelledby="crafting-family-title"] .dopamine-table tbody td,
.dopamine-article-page [aria-labelledby="runeword-grade-title"] .dopamine-table thead th,
.dopamine-article-page [aria-labelledby="runeword-grade-title"] .dopamine-table tbody td,
.dopamine-article-page [aria-labelledby="unid-grade-title"] .dopamine-table thead th,
.dopamine-article-page [aria-labelledby="unid-grade-title"] .dopamine-table tbody td,
.dopamine-article-page [aria-labelledby="cube-grade-title"] .dopamine-table thead th,
.dopamine-article-page [aria-labelledby="cube-grade-title"] .dopamine-table tbody td,
.dopamine-article-page [aria-labelledby="cube-formula-title"] .dopamine-table thead th,
.dopamine-article-page [aria-labelledby="cube-formula-title"] .dopamine-table tbody td {
  text-align: center;
}

.dopamine-article-page [aria-labelledby="cube-formula-title"] .dopamine-table thead th:nth-child(2),
.dopamine-article-page [aria-labelledby="cube-formula-title"] .dopamine-table thead th:nth-child(3),
.dopamine-article-page [aria-labelledby="cube-formula-title"] .dopamine-table tbody td:nth-child(2),
.dopamine-article-page [aria-labelledby="cube-formula-title"] .dopamine-table tbody td:nth-child(3) {
  text-align: center;
}

.dopamine-article-page [aria-labelledby="cube-formula-title"] .dopamine-table thead th:nth-child(4),
.dopamine-article-page [aria-labelledby="cube-formula-title"] .dopamine-table tbody td:nth-child(4) {
  text-align: left;
}

.dopamine-article-page [aria-labelledby="runeword-priority-title"] .dopamine-table td:nth-child(2) {
  text-align: center;
}

.dopamine-article-page [aria-labelledby="runeword-priority-title"] .dopamine-table td:nth-child(3),
.dopamine-article-page [aria-labelledby="cube-priority-title"] .dopamine-table td,
.dopamine-article-page [aria-labelledby="unid-check-title"] .dopamine-table td,
.dopamine-article-page [aria-labelledby="crafting-option-title"] .dopamine-table td,
.dopamine-article-page [aria-labelledby="crafting-skip-title"] .dopamine-table td {
  text-align: left;
}

.gold-gambling-page,
.dopamine-article-page {
  gap: 10px;
}

.gold-gambling-page .dopamine-level-panel,
.gold-gambling-page .dopamine-card,
.dopamine-article-page .dopamine-level-panel,
.dopamine-article-page .dopamine-card {
  border-width: 1px 0 0;
  border-radius: 0;
  padding: 13px 0 0;
  background: transparent;
  box-shadow: none;
}

.gold-gambling-page .dopamine-level-panel:first-of-type,
.gold-gambling-page .dopamine-category-detail .dopamine-card,
.dopamine-article-page .dopamine-card:first-of-type {
  margin-top: 0;
}

.gold-gambling-page .dopamine-level-panel h3,
.gold-gambling-page .dopamine-card h3,
.dopamine-article-page .dopamine-level-panel h3,
.dopamine-article-page .dopamine-card h3 {
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
}

.gold-gambling-page .dopamine-card__head,
.dopamine-article-page .dopamine-card__head {
  align-items: baseline;
  border-bottom-color: rgba(215, 170, 82, 0.1);
  padding-bottom: 7px;
}

.gold-gambling-page .dopamine-card__head p,
.dopamine-article-page .dopamine-card__head p {
  margin-top: 2px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.gold-gambling-page .dopamine-card__level,
.dopamine-article-page .dopamine-card__level {
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  font-size: 1rem;
}

.gold-gambling-page .dopamine-card__verdict,
.dopamine-article-page .dopamine-card__verdict {
  border-left-width: 2px;
  padding: 5px 0 5px 10px;
  background: transparent;
  font-size: 0.93rem;
  line-height: 1.45;
}

.gold-gambling-page .dopamine-category-tabs {
  position: static;
  gap: 0 14px;
  border-width: 1px 0;
  border-radius: 0;
  padding: 7px 0;
  background: transparent;
}

.gold-gambling-page .dopamine-tab {
  min-height: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 5px 0 4px;
  color: #dcc6aa;
  background: transparent;
}

.gold-gambling-page .dopamine-tab:hover,
.gold-gambling-page .dopamine-tab:focus-visible,
.gold-gambling-page .dopamine-tab.is-active {
  border-bottom-color: #ffce8a;
  color: #ffce8a;
  background: transparent;
}

.gold-gambling-page .dopamine-tab span {
  color: inherit;
}

.gold-gambling-page .dopamine-category-detail {
  scroll-margin-top: 96px;
}

.gold-gambling-page .dopamine-route {
  display: table;
  min-width: 920px;
  table-layout: fixed;
}

.gold-gambling-page .dopamine-route th,
.gold-gambling-page .dopamine-route td {
  width: 11.111%;
  text-align: center;
  white-space: nowrap;
  word-break: keep-all;
}

.gold-gambling-page .dopamine-route th,
.gold-gambling-page .dopamine-route td {
  border-right: 1px solid rgba(215, 170, 82, 0.12);
}

.gold-gambling-page .dopamine-route th:last-child,
.gold-gambling-page .dopamine-route td:last-child {
  border-right: 0;
}

.gold-gambling-page .dopamine-card__columns .dopamine-table {
  table-layout: auto;
}

.gold-gambling-page .dopamine-card__columns .dopamine-table th {
  width: 88px;
}

.gold-gambling-page .dopamine-table--options {
  table-layout: auto;
}

.gold-gambling-page .dopamine-table--options th {
  width: 170px;
}

.gold-gambling-page .dopamine-table-wrap,
.dopamine-article-page .dopamine-table-wrap {
  border-radius: 0;
}

.gold-gambling-page .dopamine-table,
.dopamine-article-page .dopamine-table,
.dopamine-wiki-table {
  background: rgba(8, 5, 5, 0.58);
}

.gold-gambling-page .dopamine-list li,
.dopamine-article-page .dopamine-list li {
  padding-top: 1px;
  padding-bottom: 1px;
}

@media (max-width: 760px) {
  .dopamine-hub-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dopamine-wiki-table,
  .dopamine-wiki-table tbody,
  .dopamine-wiki-table tr,
  .dopamine-wiki-table th,
  .dopamine-wiki-table td {
    display: block;
    width: 100%;
  }

  .dopamine-wiki-table th {
    border-bottom: 0;
    padding-bottom: 2px;
  }

  .dopamine-wiki-table td {
    padding-top: 2px;
  }

  .gold-gambling-page .dopamine-card__columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .dopamine-hub-list {
    grid-template-columns: 1fr;
  }
}

.item-tooltip {
  position: fixed;
  z-index: 1200;
  display: none;
  width: min(350px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  padding: 14px;
  border: 1px solid rgba(213, 174, 92, 0.46);
  border-radius: 6px;
  background: rgba(18, 16, 13, 0.78);
  color: #eee7d9;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  overflow-wrap: anywhere;
}

.item-tooltip.is-open {
  display: block;
}

.item-tooltip__close {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #d8c7a5;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.item-tooltip__close:hover,
.item-tooltip__close:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.item-tooltip__header {
  display: flex;
  gap: 10px;
  padding-right: 34px;
}

.item-tooltip__image {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  object-fit: contain;
  flex: 0 0 auto;
}

.item-tooltip__title {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.item-tooltip__name {
  color: #f0c86b;
  font-size: 1.03rem;
  line-height: 1.3;
}

.item-tooltip[data-item-rarity="unique"] .item-tooltip__name {
  color: var(--item-color-unique);
}

.item-tooltip[data-item-rarity="set"] .item-tooltip__name {
  color: var(--item-color-set);
}

.item-tooltip__en,
.item-tooltip__meta {
  color: #bdb3a0;
  font-size: 0.9rem;
  line-height: 1.35;
}

.item-tooltip__options {
  display: grid;
  gap: 5px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: #d9e6ff;
  font-size: 1rem;
  line-height: 1.45;
}

.item-tooltip__options li::before {
  content: "";
}

.item-tooltip__more {
  color: #bdb3a0;
}

.item-tooltip__note {
  margin: 10px 0 0;
  color: #d7c8ae;
  font-size: 0.95rem;
  line-height: 1.45;
}

.item-tooltip__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.item-tooltip__tag {
  padding: 3px 7px;
  border: 1px solid rgba(213, 174, 92, 0.3);
  border-radius: 999px;
  color: #ceb989;
  font-size: 0.88rem;
  line-height: 1.25;
}

@media (hover: hover) and (pointer: fine) {
  .item-tooltip {
    pointer-events: none;
  }

  .item-tooltip__close {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 640px) {
  .previous-patch-row {
    justify-content: stretch;
  }

  .previous-patch-link {
    width: 100%;
    justify-content: center;
  }

  .patch-page--wiki .patch-article {
    border-radius: 5px;
  }

  .wiki-patch-section {
    padding: 15px 12px 16px;
  }

  .wiki-patch-heading {
    display: block;
  }

  .wiki-patch-heading .section-kicker {
    margin-bottom: 3px;
  }

  .wiki-patch-heading h2 {
    font-size: 1.28rem;
  }

  .wiki-table {
    min-width: 620px;
  }

  .wiki-table th,
  .wiki-table td {
    padding: 7px 8px;
    font-size: var(--font-readable-control);
  }

  .schedule-table,
  .set-change-table {
    min-width: 560px;
  }

  .section-note,
  .wiki-callout,
  .wiki-warning-inline {
    font-size: var(--font-readable-control);
  }
}

/* Ladder 15 reference migration. Keep other routes on their existing styles. */
.ladder-reference .patch-page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  width: min(var(--content-max), calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.ladder-reference .patch-page-heading h1 {
  margin: 0;
  color: #fff8e7;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.7vw, 2.3rem);
  line-height: 1.35;
}

.ladder-reference .patch-page-heading h1 small {
  display: inline-block;
  color: var(--gold-soft);
  font-family: var(--font-body);
  font-size: var(--font-readable-control);
  font-weight: 600;
  white-space: nowrap;
}

.ladder-reference .previous-patch-link {
  width: auto;
  min-height: var(--control-readable-min-height);
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
  color: #ffce8a;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ladder-reference .content-band.patch-page {
  gap: 12px;
  padding: 12px 0 28px;
  color: var(--text);
}

.ladder-reference .patch-toc {
  display: flex;
  align-items: baseline;
  gap: 8px 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0 0 10px;
  background: none;
  box-shadow: none;
}

.ladder-reference .patch-toc h2 {
  flex: 0 0 auto;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-readable-control);
  color: #dcc6aa;
}

.ladder-reference .patch-toc ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
}

.ladder-reference .patch-toc a {
  min-height: var(--control-readable-min-height);
  border: 0;
  border-radius: 0;
  padding: 6px 0;
  background: none;
  color: #ffce8a;
  font-size: var(--font-readable-control);
  font-weight: 600;
  transform: none;
  transition: none;
  will-change: auto;
}

.ladder-reference .patch-toc a::before {
  content: none;
}

.ladder-reference .patch-toc a:hover,
.ladder-reference .previous-patch-link:hover {
  color: #fff8e7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ladder-reference .patch-toc a:focus-visible,
.ladder-reference .previous-patch-link:focus-visible,
.ladder-reference .table-wrap:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

.ladder-reference .patch-article {
  min-width: 0;
  gap: 16px;
  border: 0;
  border-radius: 0;
  background: none;
}

.ladder-reference .wiki-patch-section {
  min-width: 0;
  padding: 0;
  scroll-margin-top: 72px;
}

.ladder-reference .wiki-patch-section + .wiki-patch-section {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ladder-reference .wiki-patch-heading {
  margin-bottom: 8px;
}

.ladder-reference .wiki-patch-heading h2 {
  font-size: 1.28rem;
  line-height: 1.35;
}

.ladder-reference .table-wrap {
  margin-inline: 0;
  border: 0;
  border-radius: 0;
}

.ladder-reference .item-change-table td {
  white-space: nowrap;
}

.ladder-reference .patch-change-removed {
  color: #ff8f86;
}

.ladder-reference .patch-change-added {
  color: #79dda0;
}

.ladder-reference .schedule-table .col-label { width: 18%; }
.ladder-reference .schedule-table .col-date { width: 28%; }
.ladder-reference .farming-change-table .col-target { width: 22%; }
.ladder-reference .farming-change-table .col-change { width: 42%; }
.ladder-reference .farming-change-table .col-result { width: 36%; }

.ladder-reference .schedule-table th:last-child,
.ladder-reference .item-change-table th:nth-child(n+2),
.ladder-reference .farming-change-table th:nth-child(n+2),
.ladder-reference .bug-fix-table th:last-child {
  text-align: left;
}

.ladder-reference .wiki-callout {
  border: 0;
  padding: 0;
  background: none;
}

.ladder-reference .change-badge {
  min-width: 0;
  border-radius: 0;
  padding: 0;
  background: none;
  font-size: inherit;
}

.ladder-reference .wiki-patch-section.stash-alert {
  padding: 12px 16px;
}

@media (max-width: 640px) {
  .ladder-reference .patch-page-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .ladder-reference .patch-page-heading .previous-patch-link {
    justify-self: start;
  }
}

/* Ladder 15 patch-note reading layout. */
.patch-notes-page .patch-article {
  gap: 0;
}

.patch-notes-page .patch-note-section {
  padding: 6px 0 22px;
  color: #e7d7c2;
}

.patch-notes-page .patch-note-section + .patch-note-section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.patch-notes-page .patch-note-section h2 {
  margin: 0 0 12px;
  color: #fff8e7;
  font-size: 1.5rem;
  line-height: 1.35;
}

.patch-notes-page .patch-note-section h3 {
  margin: 22px 0 10px;
  color: #ffce8a;
  font-size: 1.08rem;
  line-height: 1.4;
}

.patch-notes-page .patch-note-section p,
.patch-notes-page .patch-note-list,
.patch-notes-page .patch-change-entry ul {
  color: #e7d7c2;
  line-height: 1.72;
}

.patch-notes-page .patch-note-section > p {
  max-width: 88ch;
  margin-bottom: 0;
}

.patch-notes-page .patch-item-link-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 0;
  padding-left: 20px;
}

.patch-notes-page .patch-change-entries {
  max-width: 88ch;
}

.patch-notes-page .patch-change-entry {
  padding: 12px 0;
  border-top: 1px solid rgba(215, 170, 82, 0.14);
}

.patch-notes-page .patch-change-entry h4 {
  margin: 0 0 5px;
  color: #fff8e7;
  font-size: 1rem;
}

.patch-notes-page .patch-change-entry ul,
.patch-notes-page .patch-note-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 22px;
}

.patch-notes-page .patch-note-source a {
  color: #ffce8a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .patch-notes-page .patch-item-link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
