﻿@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");

:root {
  color-scheme: dark;
  --bg: #060303;
  --panel: rgba(16, 9, 8, 0.78);
  --red: #b42018;
  --red-bright: #ff3c2e;
  --gold: #d7aa52;
  --gold-soft: #f0cf82;
  --ash: #b9ada0;
  --text: #fff6e8;
  --muted: #d0b9a0;
  --line: rgba(215, 170, 82, 0.22);
  --shadow: rgba(0, 0, 0, 0.58);
  --content-max: 1040px;
  --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;
}

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);
}

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: 72px;
  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: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 206, 138, 0.2);
  border-radius: 50%;
  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: 0.72rem;
  font-weight: 800;
}

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

.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__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.is-muted {
  color: rgba(255, 246, 232, 0.68);
}

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

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

.home-hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.98), rgba(6, 3, 3, 0.72) 34%, rgba(6, 3, 3, 0.76) 64%, rgba(0, 0, 0, 0.98)),
    linear-gradient(180deg, rgba(5, 2, 2, 0.34), rgba(5, 2, 2, 0.68) 58%, #080303 100%),
    url("./assets/sanctuary-hero.png") center top / cover no-repeat;
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--gold-soft);
  font-size: 0.78rem;
  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;
}

.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 {
  margin: 0;
  color: rgba(255, 246, 232, 0.84);
  font-size: 0.96rem;
  font-weight: 900;
}

.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 span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #ffcf8b;
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  font-weight: 900;
}

.countdown-clock strong {
  color: #ff8a24;
  font-size: clamp(0.95rem, 2.4vw, 1.75rem);
  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);
}

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

.shortcut-card {
  display: grid;
  min-height: 84px;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(33, 36, 45, 0.08);
  border-radius: 8px;
  padding: 12px 16px;
  color: #171a22;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.shortcut-card:hover {
  will-change: transform;
  transform: translateY(-3px);
  border-color: rgba(180, 32, 24, 0.34);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.36);
}

.shortcut-card__icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  color: #fff7e8;
  background: linear-gradient(180deg, #2d313c, #171a22);
  font-weight: 900;
}

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

.shortcut-card small {
  overflow: hidden;
  margin-bottom: 4px;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.shortcut-card strong {
  font-family: var(--font-display);
  color: #181b23;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.3;
}

.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 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.video-card {
  min-height: 292px;
  overflow: hidden;
  border: 1px solid rgba(33, 36, 45, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(22, 24, 30, 0.08);
}

.video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(180, 32, 24, 0.42), rgba(10, 4, 4, 0.34)),
    var(--thumb-image) center / cover;
}

.video-card__thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(5, 2, 2, 0.72));
}

.video-card__play {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 246, 232, 0.48);
  border-radius: 50%;
  background: rgba(180, 32, 24, 0.74);
}

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

.video-card__body {
  padding: 16px;
}

.video-card__channel {
  margin-bottom: 8px;
  color: #9a1612;
  font-size: 0.84rem;
  font-weight: 900;
}

.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;
}

.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;
  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 {
  display: grid;
  width: min(var(--content-max), calc(100% - 40px));
  justify-items: center;
  margin: 0 auto;
  padding: 70px 0 30px;
  text-align: center;
}

.subpage-hero h1,
.subpage-hero h2 {
  color: var(--text);
}

.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;
}

.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;
}

.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: 34px 0 72px;
}

.patch-toc,
.patch-summary,
.patch-section {
  border: 1px solid rgba(33, 36, 45, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

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

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

.patch-toc ol {
  display: grid;
  grid-template-columns: repeat(3, 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(180, 32, 24, 0.16);
  border-radius: 8px;
  padding: 8px 10px;
  color: #2d313c;
  background: #fff9f0;
  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(180, 32, 24, 0.28);
  background: #fff3df;
}

.patch-toc a::before {
  content: counter(toc);
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff8e7;
  background: #9a1612;
  font-size: 0.78rem;
}

.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: #242832;
}

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

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

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

.patch-section strong {
  color: #171a22;
}

.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(33, 36, 45, 0.08);
  border-radius: 8px;
  padding: 12px;
  background: #fbf7f1;
}

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

.comparison-grid p,
.fix-grid p {
  margin: 0;
  color: #4b5563;
  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(180, 32, 24, 0.14);
  border-radius: 8px;
  padding: 12px;
  background: #fff9f0;
}

.change-item span:first-child {
  color: #5f6673;
  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: #5f6673;
  background: #eef0f3;
}

.new-value.up {
  color: #0f7a3a;
  background: #e6f7ed;
}

.new-value.down {
  color: #a21712;
  background: #ffe8e5;
}

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

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(33, 36, 45, 0.08);
  border-radius: 8px;
  scrollbar-color: rgba(180, 32, 24, 0.76) rgba(255, 249, 240, 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(255, 249, 240, 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: #fff;
}

.change-table th,
.change-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(33, 36, 45, 0.08);
  text-align: left;
}

.change-table th {
  color: #fff8e7;
  background: #171a22;
  font-size: 0.88rem;
}

.change-table td {
  color: #303644;
  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: #4b5563;
  line-height: 1.72;
}

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

.note-box,
.warning-section {
  border-color: rgba(180, 32, 24, 0.28);
  background: #fff7ec;
}

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

.item-page {
  display: grid;
  gap: 16px;
  padding-top: 34px;
}

.item-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(240, 207, 130, 0.2);
  border-radius: 8px;
  padding: clamp(18px, 2.4vw, 24px);
  color: #fff8e7;
  background:
    linear-gradient(135deg, rgba(180, 32, 24, 0.24), transparent 38%),
    rgba(14, 8, 7, 0.9);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.item-toolbar h2 {
  color: #fff8e7;
}

.item-search {
  display: block;
  width: min(360px, 100%);
}

.item-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(240, 207, 130, 0.28);
  border-radius: 6px;
  padding: 0 14px;
  color: #fff8e7;
  background: rgba(255, 255, 255, 0.08);
  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);
}

.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: 14px;
  border: 1px solid rgba(215, 170, 82, 0.16);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
}

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

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

.filter-chip {
  min-height: 38px;
  border: 1px solid rgba(240, 207, 130, 0.24);
  border-radius: 6px;
  padding: 0 12px;
  color: #fff8e7;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
}

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

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

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

.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;
}

.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;
}

.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: 28px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 0 9px;
  color: #1a1110;
  background: #ffce8a;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.item-badge--sub {
  min-height: 22px;
  padding: 0 7px;
  font-size: 0.68rem;
}

.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;
}

.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;
}

.page-jump {
  position: fixed;
  right: clamp(14px, 2vw, 26px);
  bottom: clamp(18px, 4vh, 34px);
  z-index: 18;
}

.page-jump__button {
  display: inline-grid;
  min-width: 54px;
  min-height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 206, 138, 0.3);
  border-radius: 999px;
  padding: 0 13px;
  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.72rem;
  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: 0.72rem;
  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 p {
  margin: 0;
}

.legal-hero {
  min-height: 300px;
}

.legal-page {
  color: #f2dfbe;
  line-height: 1.78;
}

.legal-page h2 {
  margin: 30px 0 10px;
  color: #fff8e7;
  font-size: 1.22rem;
}

.legal-page p {
  margin: 0 0 14px;
}

.legal-page a {
  color: #ffce8a;
}

@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;
  }

  .home-hero {
    padding-top: 118px;
  }

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

  .video-grid,
  .info-grid,
  .item-grid,
  .patch-toc ol,
  .fix-grid,
  .summary-points {
    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: 116px;
  }

  .home-hero__inner {
    width: min(100% - 32px, var(--content-max));
    min-height: 610px;
    padding: 38px 0;
  }

  .shortcut-grid,
  .video-grid,
  .info-grid,
  .item-grid,
  .item-stats,
  .patch-toc ol,
  .comparison-grid,
  .fix-grid,
  .change-list,
  .summary-points {
    grid-template-columns: 1fr;
  }

  .shortcut-card {
    min-height: 82px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .item-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .item-search {
    width: 100%;
  }

  .page-jump {
    right: 12px;
    bottom: 16px;
  }

  .page-jump__button {
    min-width: 50px;
    min-height: 34px;
    padding-inline: 11px;
  }

  .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;
  }
}
