:root {
  color-scheme: dark;
  --bg: #0d0b09;
  --bg-soft: #17130e;
  --panel: #1d1812;
  --panel-strong: #2b2419;
  --text: #e8dcc4;
  --text-bright: #f4eddc;
  --muted: #a3937a;
  --line: rgba(138, 107, 58, 0.42);
  --red: #a8402f;
  --red-bright: #d4573f;
  --gold: #ddb365;
  --gold-bright: #f2d48e;
  --bronze: #8a6b3a;
  --blue: #74a7e0;
  --blue-deep: #2f5fa8;
  --green: #7c8a4e;
  --green-bright: #a6c065;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

main p a:not([class]),
main li a:not([class]),
main dd a:not([class]) {
  color: var(--blue);
  text-decoration-color: rgba(116, 167, 224, 0.5);
  text-underline-offset: 0.16em;
}

main p a:not([class]):hover,
main li a:not([class]):hover,
main dd a:not([class]):hover {
  color: var(--gold-bright);
  text-decoration-color: currentColor;
}

main code {
  display: inline;
  padding: 0.18em 0.46em 0.22em;
  border: 1px solid rgba(116, 167, 224, 0.34);
  border-radius: 5px;
  background: linear-gradient(145deg, rgba(47, 95, 168, 0.2), rgba(13, 11, 9, 0.88));
  box-shadow: inset 0 1px 0 rgba(232, 220, 196, 0.05);
  color: var(--gold-bright);
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  font-variant-ligatures: none;
  line-height: 1.65;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(13, 11, 9, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand,
.site-header nav a {
  font: 700 0.88rem/1 Arial, Helvetica, sans-serif;
  text-decoration: none;
}

.brand {
  color: var(--gold);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
}

.site-header nav a {
  color: var(--muted);
}

.site-header nav .discord-nav-link {
  margin-top: -7px;
  margin-bottom: -7px;
  padding: 7px 12px;
  border: 1px solid rgba(88, 101, 242, 0.8);
  border-radius: 6px;
  background: rgba(88, 101, 242, 0.2);
  color: var(--text);
}

.site-header nav a:hover,
.brand:hover {
  color: var(--gold-bright);
}

.site-header nav .discord-nav-link:hover {
  border-color: #8b95ff;
  background: rgba(88, 101, 242, 0.38);
}

.banner-hero {
  min-height: clamp(430px, 56vh, 620px);
  display: grid;
  align-items: center;
  padding: clamp(42px, 7vw, 90px) clamp(20px, 6vw, 90px);
  background:
    linear-gradient(180deg, rgba(13, 11, 9, 0.03), rgba(13, 11, 9, 0.12) 48%, rgba(13, 11, 9, 0.72) 84%, var(--bg)),
    linear-gradient(90deg, rgba(13, 11, 9, 0.92), rgba(13, 11, 9, 0.38) 46%, rgba(13, 11, 9, 0.04) 78%),
    url("./assets/veles-rise-of-the-damned-banner-1.webp");
  background-size: cover;
  background-position: center;
}

.home-hero {
  min-height: clamp(540px, 72vh, 760px);
  align-items: end;
  padding-bottom: clamp(48px, 7vw, 82px);
  background:
    linear-gradient(180deg, rgba(13, 11, 9, 0.04), rgba(13, 11, 9, 0.18) 46%, rgba(13, 11, 9, 0.84) 88%, var(--bg)),
    linear-gradient(90deg, rgba(13, 11, 9, 0.96), rgba(13, 11, 9, 0.48) 50%, rgba(13, 11, 9, 0.08) 82%),
    url("./assets/veles-rise-of-the-damned-banner-1.webp");
  background-size: cover;
  background-position: center;
}

.launch-news {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(280px, 0.76fr);
  gap: clamp(22px, 4vw, 58px);
  align-items: center;
  padding: clamp(58px, 8vw, 104px) 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 42%, rgba(124, 138, 78, 0.12), transparent 32%),
    radial-gradient(circle at 72% 48%, rgba(168, 64, 47, 0.15), transparent 36%);
  background-size: cover;
  background-position: center;
}

.launch-news--codex,
.launch-news--trials {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background:
    radial-gradient(circle at 18% 42%, rgba(47, 95, 168, 0.2), transparent 34%),
    radial-gradient(circle at 78% 48%, rgba(221, 179, 101, 0.15), transparent 38%);
}

.launch-news--trials {
  background:
    radial-gradient(circle at 18% 42%, rgba(168, 64, 47, 0.22), transparent 34%),
    radial-gradient(circle at 78% 48%, rgba(221, 179, 101, 0.15), transparent 38%);
}

.launch-news--codex .home-launch-copy,
.launch-news--trials .home-launch-copy {
  grid-column: 1 / -1;
}

.launch-news--codex .launch-title span:first-child {
  color: var(--blue);
  text-shadow: 0 0 34px rgba(47, 95, 168, 0.36);
}

.launch-news--codex .launch-title span:last-child,
.launch-news--trials .launch-title span:last-child {
  color: var(--gold);
  text-shadow: 0 0 34px rgba(221, 179, 101, 0.25);
}

.launch-news--trials .launch-title span:first-child {
  color: var(--red-bright);
  text-shadow: 0 0 34px rgba(212, 87, 63, 0.34);
}

.launch-news--disciplines {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background:
    radial-gradient(circle at 18% 42%, rgba(124, 138, 78, 0.2), transparent 34%),
    radial-gradient(circle at 78% 48%, rgba(221, 179, 101, 0.16), transparent 38%);
}

.launch-news--disciplines .home-launch-copy {
  grid-column: 1 / -1;
}

.launch-news--disciplines .launch-title span:first-child {
  color: var(--green-bright);
  text-shadow: 0 0 34px rgba(166, 192, 101, 0.3);
}

.launch-news--disciplines .launch-title span:last-child {
  color: var(--gold);
  text-shadow: 0 0 34px rgba(221, 179, 101, 0.25);
}

.greeting {
  width: min(720px, 100%);
  margin: 0;
  padding: 0;
  text-align: left;
}

.home-hero__copy {
  width: min(840px, 100%);
}

.home-launch-copy {
  width: min(920px, 100%);
}

.launch-title {
  margin-top: 4px;
  font-size: clamp(3.25rem, 5.8vw, 5.5rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.launch-title span {
  display: block;
}

.launch-title span:first-child {
  color: var(--green-bright);
  text-shadow: 0 0 34px rgba(166, 192, 101, 0.28);
}

.launch-title span:last-child {
  color: var(--red-bright);
  text-shadow: 0 0 34px rgba(212, 87, 63, 0.3);
}

.home-launch-copy > p:not(.eyebrow) {
  max-width: 700px;
  margin-top: 18px;
  color: var(--text);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.update-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.update-highlight-grid article {
  min-height: 118px;
  padding: 17px 18px;
  border: 1px solid rgba(221, 179, 101, 0.26);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(221, 179, 101, 0.09), rgba(13, 11, 9, 0.58));
}

.update-highlight-grid strong,
.update-highlight-grid span {
  display: block;
}

.update-highlight-grid strong {
  color: var(--text);
  font: 700 1rem/1.2 Arial, Helvetica, sans-serif;
}

.update-highlight-grid span {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font: 700 0.82rem/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--text-bright);
  letter-spacing: 0;
  line-height: 1;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.1rem, 4.6vw, 4.6rem);
  text-wrap: balance;
}

p {
  color: var(--muted);
  font-size: 1.08rem;
  text-wrap: pretty;
}

.text-keep {
  white-space: nowrap;
}

.greeting p {
  max-width: 650px;
  margin: 22px 0 0;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action,
.text-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 6px;
  font: 700 0.88rem/1 Arial, Helvetica, sans-serif;
  text-decoration: none;
}

.primary-action {
  border: 1px solid rgba(221, 179, 101, 0.86);
  background: rgba(221, 179, 101, 0.22);
  color: var(--text);
}

.secondary-action,
.text-action {
  border: 1px solid var(--line);
  background: rgba(232, 220, 196, 0.05);
  color: var(--muted);
}

.primary-action:hover,
.secondary-action:hover,
.text-action:hover {
  color: var(--text);
  border-color: var(--gold);
  background: rgba(221, 179, 101, 0.16);
}

.text-action {
  margin-top: 14px;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  width: min(860px, 100%);
  margin-top: 34px;
}

.home-stats a {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(13, 11, 9, 0.58);
  color: var(--muted);
  font: 700 0.72rem/1.25 Arial, Helvetica, sans-serif;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-stats a:hover {
  border-color: rgba(221, 179, 101, 0.72);
  background: rgba(221, 179, 101, 0.12);
  color: var(--text);
}

.home-stats strong {
  color: var(--text);
  font: 700 1.6rem/1 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.home-platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.home-platform-links a,
.home-platform-links span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(232, 220, 196, 0.05);
  color: var(--muted);
  font: 700 0.78rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-platform-links a:hover {
  border-color: var(--gold);
  background: rgba(221, 179, 101, 0.14);
  color: var(--text);
}

.home-platform-links span {
  border-color: transparent;
}

.home-launch-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(760px, 100%);
  margin-top: 24px;
}

.store-button {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 11, 9, 0.68);
  text-decoration: none;
}

.store-button span {
  color: var(--muted);
  font: 700 0.72rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-button strong {
  color: var(--text);
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  line-height: 1;
}

.store-button--android {
  border-color: rgba(125, 210, 86, 0.55);
  background: linear-gradient(145deg, rgba(62, 147, 45, 0.22), rgba(13, 11, 9, 0.76));
}

.store-button--steam {
  border-color: rgba(255, 94, 58, 0.52);
  background: linear-gradient(145deg, rgba(170, 48, 32, 0.24), rgba(13, 11, 9, 0.76));
}

.store-button--ios {
  border-color: rgba(75, 183, 255, 0.58);
  background: linear-gradient(145deg, rgba(22, 111, 174, 0.24), rgba(13, 11, 9, 0.76));
}

.store-button:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.launch-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(760px, 100%);
  margin-top: 10px;
}

.launch-status-grid a {
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(232, 220, 196, 0.04);
  text-decoration: none;
}

.launch-status-grid span,
.launch-status-grid strong {
  display: block;
}

.launch-status-grid span {
  color: var(--muted);
  font: 700 0.68rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.launch-status-grid strong {
  margin-top: 8px;
  color: var(--text);
  font: 700 1rem/1.1 Arial, Helvetica, sans-serif;
}

.launch-status-grid a:nth-child(1) strong,
.launch-status-grid a:nth-child(2) strong {
  color: var(--green-bright);
}

.launch-poster-wall {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 18px);
  align-items: start;
  min-width: 0;
}

.launch-poster {
  overflow: hidden;
  border: 1px solid rgba(221, 179, 101, 0.36);
  border-radius: 8px;
  background: #090705;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

.launch-poster img {
  width: 100%;
  height: min(560px, 58vh);
  object-fit: cover;
  object-position: center;
}

.launch-poster--ios {
  margin-top: 0;
}

.launch-poster--android {
  margin-top: min(140px, 14.5vh);
}

.launch-poster--steam {
  margin-top: min(280px, 29vh);
}

.codex-release-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(116, 167, 224, 0.46);
  border-radius: 10px;
  background: #090705;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5);
}

.codex-release-visual > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.codex-release-visual figcaption {
  min-height: 128px;
  padding: 20px 22px 22px;
  border-top: 1px solid rgba(116, 167, 224, 0.28);
  background: linear-gradient(150deg, rgba(47, 95, 168, 0.2), rgba(13, 11, 9, 0.98));
}

.codex-release-visual strong,
.codex-release-visual span {
  display: block;
}

.codex-release-visual strong {
  color: var(--text);
  font-size: clamp(1.2rem, 2.1vw, 1.75rem);
}

.codex-release-visual span {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.45;
}

.trials-release-visual {
  border-color: rgba(212, 87, 63, 0.42);
}

.trials-release-visual figcaption {
  border-top-color: rgba(212, 87, 63, 0.26);
  background: linear-gradient(150deg, rgba(168, 64, 47, 0.2), rgba(13, 11, 9, 0.98));
}

.disciplines-release-visual {
  border-color: rgba(124, 138, 78, 0.44);
}

.disciplines-release-visual--wide {
  grid-column: 1 / -1;
}

.disciplines-release-visual figcaption {
  border-top-color: rgba(124, 138, 78, 0.28);
  background: linear-gradient(150deg, rgba(124, 138, 78, 0.2), rgba(13, 11, 9, 0.98));
}

.discipline-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 1fr;
  gap: clamp(6px, 1.2vw, 12px);
  aspect-ratio: 16 / 9;
  padding: clamp(14px, 2.6vw, 26px);
  background:
    radial-gradient(circle at 28% 40%, rgba(124, 138, 78, 0.22), transparent 60%),
    #090705;
}

.discipline-board img {
  width: 100%;
  height: 100%;
  padding: 6px;
  border: 1px solid rgba(138, 107, 58, 0.34);
  border-radius: 6px;
  background: rgba(13, 11, 9, 0.62);
  object-fit: contain;
}

.gem-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: center;
  margin: 0;
  padding: clamp(14px, 2.6vw, 26px);
  list-style: none;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 30% 42%, rgba(221, 179, 101, 0.16), transparent 60%),
    #090705;
}

.gem-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(138, 107, 58, 0.32);
  border-left: 3px solid rgba(124, 138, 78, 0.5);
  border-radius: 5px;
  background: rgba(13, 11, 9, 0.62);
}

.gem-legend img {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  object-fit: contain;
}

.gem-legend span {
  color: var(--text-bright);
  font: 700 0.78rem/1.2 Arial, Helvetica, sans-serif;
}

.gem-legend em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font: 400 0.72rem/1.25 Arial, Helvetica, sans-serif;
  font-style: normal;
}

.trial-ladder {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 26px);
  aspect-ratio: 16 / 9;
  padding: clamp(16px, 2.6vw, 28px);
  background:
    radial-gradient(circle at 26% 46%, rgba(168, 64, 47, 0.24), transparent 58%),
    #090705;
}

.trial-ladder__emblem {
  width: clamp(88px, 13vw, 148px);
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 0 26px rgba(168, 64, 47, 0.42));
}

.trial-ladder__list {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.trial-ladder__list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 10px;
  padding: 8px 12px;
  border: 1px solid rgba(138, 107, 58, 0.34);
  border-left: 3px solid rgba(212, 87, 63, 0.5);
  border-radius: 5px;
  background: rgba(13, 11, 9, 0.62);
}

.trial-ladder__list li.is-final {
  border-color: rgba(221, 179, 101, 0.44);
  border-left-color: var(--gold);
  background: rgba(221, 179, 101, 0.1);
}

.trial-ladder__list span {
  color: var(--text-bright);
  font: 700 0.84rem/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.trial-ladder__list em {
  grid-column: 1;
  color: var(--muted);
  font: 400 0.76rem/1.2 Arial, Helvetica, sans-serif;
  font-style: normal;
}

.trial-ladder__list b {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--gold);
  font: 700 0.84rem/1.2 Arial, Helvetica, sans-serif;
  white-space: nowrap;
}

.trial-ladder__list li.is-final b {
  color: var(--gold-bright);
}

.codex-release-visual figcaption a {
  color: var(--gold);
  text-underline-offset: 3px;
}

.codex-release-visual figcaption a:hover {
  color: var(--gold-bright);
}

.update-release-visual {
  position: relative;
  grid-column: 1 / -1;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(221, 179, 101, 0.38);
  border-radius: 10px;
  background: #090705;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5);
}

.update-release-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.update-release-visual figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 42px) clamp(20px, 4vw, 38px);
  background: linear-gradient(180deg, transparent, rgba(13, 11, 9, 0.96));
}

.update-release-visual strong,
.update-release-visual span {
  display: block;
}

.update-release-visual strong {
  color: var(--text);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
}

.update-release-visual span {
  max-width: 760px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 1rem;
}

.home-directory,
.home-showcase,
.home-systems,
.home-release {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 104px) 0;
}

.home-section-heading {
  max-width: 760px;
}

.home-section-heading p {
  max-width: 680px;
}

.home-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.home-link-card {
  min-height: 176px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 8px 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(33, 27, 19, 0.72), rgba(13, 11, 9, 0.96));
  text-decoration: none;
}

.home-link-card:hover {
  border-color: rgba(221, 179, 101, 0.62);
  background: linear-gradient(145deg, rgba(55, 47, 39, 0.72), rgba(13, 11, 9, 0.96));
}

.home-link-card img {
  grid-row: 1 / 3;
  width: 82px;
  height: 100px;
  object-fit: contain;
  border-radius: 6px;
}

.home-link-card[href="levels.html"] img,
.home-link-card[href="changelog.html"] img {
  object-fit: cover;
}

.home-link-card span {
  color: var(--gold);
  font: 700 0.74rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-link-card strong {
  align-self: start;
  color: var(--text);
  font-size: 1.03rem;
  line-height: 1.34;
}

.home-loop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.home-loop-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.home-loop-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.home-loop-grid div {
  padding: 18px;
}

.home-loop-grid span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(221, 179, 101, 0.5);
  border-radius: 50%;
  color: var(--gold);
  font: 700 0.8rem/1 Arial, Helvetica, sans-serif;
}

.home-loop-grid h3 {
  margin: 14px 0 0;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.15;
}

.home-loop-grid p {
  margin: 12px 0 0;
  font-size: 0.98rem;
}

.home-systems {
  padding-top: clamp(24px, 5vw, 58px);
}

.system-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.system-feature {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(33, 27, 19, 0.76), rgba(13, 11, 9, 0.96));
}

/* ── Minigame card: IMAGE · CONTENT · IMAGE layout ── */
.minigame-card {
  flex-direction: row;
  gap: 0;
  padding: 0;
  min-height: 340px;
}

.minigame-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  min-width: 0;
}

.minigame-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.minigame-heading .eyebrow {
  margin-top: 8px;
}

.minigame-icon {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border: 1px solid rgba(221, 179, 101, 0.34);
  border-radius: 8px;
  background: radial-gradient(circle at center, rgba(221, 179, 101, 0.16), rgba(13, 11, 9, 0.88));
  object-fit: contain;
  padding: 6px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.minigame-shot {
  width: 24%;
  flex-shrink: 0;
  overflow: hidden;  /* clips the scaleY crop */
}

.minigame-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  /* 167 % scale → overflow:hidden clips exactly 20 % from each side */
  transform: scaleY(1.667);
}

.minigame-shot--contain {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(221, 179, 101, 0.12), rgba(13, 11, 9, 0.94));
}

.minigame-shot--contain img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  transform: none;
}

.system-feature--wide {
  grid-column: span 2;
}

.system-feature h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  line-height: 1.08;
}

.system-feature p {
  margin: 0;
  font-size: 0.98rem;
}

.system-feature .text-action {
  width: fit-content;
  margin-top: auto;
}

.system-icon-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(46px, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.system-icon-row img {
  width: 100%;
  max-width: 72px;
  aspect-ratio: 1;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 11, 9, 0.68);
  object-fit: contain;
}

.system-shot {
  width: 100%;
  height: 154px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #000;
}

.difficulty-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.difficulty-stack span {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: 700 0.86rem/1 Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.difficulty-stack span:nth-child(1) {
  background: rgba(124, 138, 78, 0.14);
}

.difficulty-stack span:nth-child(2) {
  background: rgba(221, 179, 101, 0.14);
}

.difficulty-stack span:nth-child(3) {
  background: rgba(168, 64, 47, 0.16);
}

.passive-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.passive-chip-list span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(124, 138, 78, 0.11);
  color: var(--muted);
  font: 700 0.7rem/1 Arial, Helvetica, sans-serif;
}

.modifier-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 16px;
}

.modifier-summary-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.modifier-summary-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font: 700 0.86rem/1.2 Arial, Helvetica, sans-serif;
}

.modifier-summary-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.modifier-level-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.modifier-row-group {
  margin-top: 24px;
}

.modifier-score-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border: 1px solid rgba(221, 179, 101, 0.38);
  border-radius: 3px;
  background: rgba(221, 179, 101, 0.11);
  color: var(--gold);
  font: 700 0.62rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.modifier-level-effect {
  min-height: 52px;
  margin: 0;
  color: var(--text);
  font-size: 0.74rem;
  line-height: 1.35;
}

.modifier-recipe-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-release {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-release h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

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

.release-platform-card {
  min-height: 218px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(33, 27, 19, 0.78), rgba(13, 11, 9, 0.96));
  text-decoration: none;
}

.release-platform-card:hover {
  border-color: var(--gold);
}

.release-platform-card span {
  color: var(--muted);
  font: 700 0.75rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.release-platform-card strong {
  display: block;
  margin-top: 16px;
  color: var(--text);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.08;
}

.release-platform-card p {
  margin: auto 0 0;
  font-size: 0.95rem;
}

.release-platform-card--live {
  border-color: rgba(124, 138, 78, 0.42);
}

.release-platform-card--live span {
  color: var(--green);
}

/* ── Video section ── */
.video-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 104px) 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 48px);
  margin-top: 32px;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.video-card p {
  margin: 0;
  font-size: 0.95rem;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  max-height: 520px;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 620px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.social-row,
.store-row,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 30px;
}

.footer-links {
  justify-content: center;
}

.social-row {
  margin-top: 26px;
}

.social-row--footer {
  justify-content: center;
}

.social-row a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 11px 15px;
  border: 1px solid rgba(221, 179, 101, 0.58);
  border-radius: 6px;
  background: rgba(221, 179, 101, 0.12);
  color: var(--text);
  font: 700 0.9rem/1 Arial, Helvetica, sans-serif;
  text-decoration: none;
}

.social-row a:hover {
  border-color: var(--gold);
  background: rgba(221, 179, 101, 0.2);
}

.store-row span,
.footer-links span,
.footer-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(232, 220, 196, 0.04);
  color: var(--muted);
  font: 700 0.88rem/1 Arial, Helvetica, sans-serif;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
  border-color: var(--gold);
}

.footer-links span {
  border-color: transparent;
}

.footer-links--legal {
  justify-content: center;
}

.feature-row,
.detail-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 104px) 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(26px, 5vw, 76px);
  align-items: center;
}

.feature-row--reverse {
  grid-template-columns: minmax(320px, 1.1fr) minmax(0, 0.9fr);
}

.feature-copy p,
.detail-copy p {
  max-width: 620px;
}

.feature-art {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(33, 27, 19, 0.76), rgba(13, 11, 9, 0.94)),
    url("./assets/bg_random2-v2.webp");
  background-size: cover;
  background-position: center;
  text-decoration: none;
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.36);
}

.feature-art > span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(13, 11, 9, 0.72);
  color: var(--text);
  font: 700 0.82rem/1 Arial, Helvetica, sans-serif;
}

.hero-collage {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.hero-collage img {
  max-height: 410px;
  object-fit: contain;
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.72));
}

.hero-collage img:nth-child(2) {
  margin-left: -28%;
}

.item-grid {
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  gap: 18px;
  background:
    linear-gradient(145deg, rgba(33, 27, 19, 0.84), rgba(13, 11, 9, 0.94)),
    url("./assets/bg_tavern-v2.webp");
  background-size: cover;
  background-position: center;
}

.item-grid img {
  width: min(120px, 22vw);
  margin: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 11, 9, 0.66);
}

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

.level-stack img {
  height: 300px;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.gameplay-panel {
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
}

.gameplay-panel > img {
  max-height: 320px;
  object-fit: contain;
}

.ability-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ability-row img {
  width: 64px;
  height: 64px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 11, 9, 0.68);
}

.page-hero {
  min-height: 50vh;
  display: grid;
  align-content: center;
  padding: clamp(70px, 10vw, 126px) clamp(20px, 6vw, 90px);
  background:
    linear-gradient(180deg, rgba(13, 11, 9, 0) 45%, rgba(13, 11, 9, 0.72) 84%, var(--bg)),
    linear-gradient(90deg, rgba(13, 11, 9, 0.94), rgba(13, 11, 9, 0.54)),
    url("./assets/veles-rise-of-the-damned-banner-1-no-text.webp");
  background-size: cover;
  background-position: center;
}

.page-hero--banner-clean {
  background-image:
    linear-gradient(180deg, rgba(13, 11, 9, 0) 45%, rgba(13, 11, 9, 0.72) 84%, var(--bg)),
    linear-gradient(90deg, rgba(13, 11, 9, 0.94), rgba(13, 11, 9, 0.5)),
    url("./assets/veles-rise-of-the-damned-banner-1-no-text.webp");
}

.page-hero--banner-clean-two {
  background-image:
    linear-gradient(180deg, rgba(13, 11, 9, 0) 45%, rgba(13, 11, 9, 0.72) 84%, var(--bg)),
    linear-gradient(90deg, rgba(13, 11, 9, 0.94), rgba(13, 11, 9, 0.5)),
    url("./assets/veles-rise-of-the-damned-banner-2-no-text.webp");
}

.page-hero--tavern {
  background-image:
    linear-gradient(180deg, rgba(13, 11, 9, 0) 45%, rgba(13, 11, 9, 0.72) 84%, var(--bg)),
    linear-gradient(90deg, rgba(13, 11, 9, 0.94), rgba(13, 11, 9, 0.54)),
    url("./assets/bg_tavern-v2.webp");
}

.page-hero p {
  max-width: 720px;
}

.hero-gallery,
.item-showcase,
.level-gallery,
.inventory-screens,
.info-panels {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 0;
  display: grid;
  gap: 18px;
}

.inventory-screens {
  grid-template-columns: minmax(0, 0.55fr) minmax(320px, 1.45fr);
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
}

.inventory-screens--reverse {
  grid-template-columns: minmax(320px, 1.45fr) minmax(0, 0.55fr);
}

.hero-gallery {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.item-showcase {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.page-subnav {
  width: min(900px, 100%);
  margin-top: clamp(22px, 3vw, 34px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-subnav.is-stuck {
  position: fixed;
  top: var(--sticky-subnav-top, 88px);
  left: clamp(18px, 6vw, 90px);
  right: clamp(18px, 6vw, 90px);
  z-index: 19;
  width: auto;
  margin-top: 0;
  padding: 10px 0;
  background: rgba(13, 11, 9, 0.9);
  backdrop-filter: blur(12px);
}

.page-subnav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font: 700 0.72rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  background: rgba(13, 11, 9, 0.62);
}

.page-subnav a:hover {
  color: var(--text);
  border-color: rgba(221, 179, 101, 0.55);
  background: rgba(221, 179, 101, 0.12);
}

.page-subnav img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.page-subnav--heroes a {
  min-height: 46px;
}

.page-subnav--heroes img {
  object-position: top center;
}

.page-subnav-placeholder {
  display: block;
  width: min(900px, 100%);
  height: 0;
}

.page-subnav-placeholder.is-active {
  display: block;
  margin-top: clamp(22px, 3vw, 34px);
}

.hero-detail-list,
.stats-reference,
.ascension-summary {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-detail-list {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vw, 54px);
  padding: clamp(26px, 5vw, 64px) 0;
}

.hero-detail {
  display: grid;
  grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  scroll-margin-top: 160px;
}

.hero-detail--reverse {
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
}

.hero-detail--reverse figure {
  order: 2;
}

.hero-detail figure {
  min-height: 420px;
  margin: 0;
  display: grid;
  place-items: end center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(13, 11, 9, 0.06), rgba(13, 11, 9, 0.96)),
    url("./assets/bg_tavern-v2.webp");
  background-size: cover;
  background-position: center;
}

.hero-detail figure img {
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.72));
}

.hero-detail-copy {
  min-width: 0;
}

.hero-detail-copy h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.hero-detail-copy > p {
  max-width: 720px;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.hero-stat-grid span {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font: 700 0.72rem/1.25 Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.03);
}

.hero-stat-grid strong {
  color: var(--text);
  font: 700 1.05rem/1.15 Georgia, "Times New Roman", serif;
  text-transform: none;
  letter-spacing: 0;
}

.hero-ultimate {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: rgba(221, 179, 101, 0.08);
}

.hero-ultimate::before {
  content: "ULTIMATE";
  color: var(--gold);
  font: 700 0.64rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
}

.hero-disciplines {
  margin-top: 4px;
  padding: 14px 16px;
  border-left: 3px solid var(--green-bright);
  background: rgba(124, 138, 78, 0.09);
}

.hero-disciplines::before {
  content: "DISCIPLINES";
  display: block;
  margin-bottom: 12px;
  color: var(--green-bright);
  font: 700 0.64rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
}

.hero-disciplines ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-disciplines li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.hero-disciplines img {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(13, 11, 9, 0.6);
  object-fit: contain;
}

.hero-disciplines strong {
  display: block;
  color: var(--text);
  font: 700 1rem/1.2 Georgia, "Times New Roman", serif;
}

.hero-disciplines span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.hero-unlocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.hero-unlocks li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  background: var(--panel);
}

.stats-reference {
  padding: clamp(44px, 7vw, 82px) 0;
}

.stats-reference .table-wrap {
  margin-top: 22px;
}

.stats-reference-visual {
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid rgba(221, 179, 101, 0.38);
  border-radius: 10px;
  background: #090705;
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.48);
}

.stats-reference-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.stats-reference-visual figcaption {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.stats-reference__table-heading {
  margin-top: clamp(44px, 7vw, 76px);
}

.ascension-summary {
  display: grid;
  grid-template-columns: minmax(320px, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding: clamp(36px, 6vw, 76px) 0 clamp(58px, 8vw, 104px);
}

.dev-log-summary,
.dev-log-board,
.dev-log-next {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.ascension-summary .screenshot-grid {
  grid-template-columns: 1fr;
}

.update-release-note {
  width: min(1180px, calc(100% - 36px));
  margin: clamp(42px, 6vw, 72px) auto 0;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(221, 179, 101, 0.42);
  border-radius: 10px;
  background:
    radial-gradient(circle at 88% 12%, rgba(168, 64, 47, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(33, 27, 19, 0.9), rgba(13, 11, 9, 0.98));
}

.update-release-note--previous {
  margin-top: clamp(-12px, -1vw, -4px);
  border-color: rgba(154, 144, 128, 0.22);
  background:
    linear-gradient(155deg, rgba(20, 22, 25, 0.9), rgba(11, 12, 14, 0.98)),
    var(--bg-soft);
}

.update-release-note--previous .update-version-badge {
  border-color: rgba(154, 144, 128, 0.4);
  color: var(--muted);
  background: rgba(232, 220, 196, 0.04);
}

.update-release-note__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.update-release-note__heading h2 {
  font-size: clamp(2.4rem, 5vw, 5rem);
}

.update-version-badge {
  flex: 0 0 auto;
  padding: 11px 14px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--gold);
  font: 700 0.86rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
}

.update-release-note__intro {
  max-width: 850px;
  margin: 22px 0 0;
  color: var(--text);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.update-release-note__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.update-release-note__grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 11, 9, 0.58);
}

.update-release-note__grid h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
}

.update-release-note__grid p {
  margin: 9px 0 0;
  font-size: 0.96rem;
}

.dev-log-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(42px, 6vw, 72px) 0 0;
}

.dev-log-summary article,
.dev-log-column,
.dev-log-next {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(33, 27, 19, 0.78), rgba(13, 11, 9, 0.96));
}

.dev-log-summary article {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
  padding: 18px;
}

.dev-log-summary h2,
.dev-log-column h2,
.dev-log-next h2 {
  font-size: clamp(1.7rem, 3vw, 3rem);
}

.dev-log-summary p,
.dev-roadmap p,
.dev-log-next p {
  margin: 0;
}

.status-pill {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 3px;
  color: var(--text);
  font: 700 0.62rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
}

.status-pill--done {
  background: rgba(124, 138, 78, 0.28);
}

.status-pill--active {
  background: rgba(221, 179, 101, 0.24);
}

.status-pill--next {
  background: rgba(116, 167, 224, 0.18);
}

.progress-meter {
  height: 9px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--green));
}

.progress-meter--green span {
  background: linear-gradient(90deg, var(--green), var(--green-bright));
}

.progress-meter--yellow span {
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}

.progress-meter--dark-orange span {
  background: linear-gradient(90deg, var(--bronze), var(--red-bright));
}

.pillar-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 0;
}

.pillar-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.pillar-meta dt {
  color: var(--muted);
  font: 700 0.62rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pillar-meta dd {
  margin: 0;
  color: var(--text);
  font-size: 0.86rem;
  text-align: right;
}

.pillar-meta .meta-complete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-bright);
  font-weight: 700;
}

.pillar-meta .meta-complete::before {
  content: "✓";
  color: var(--green-bright);
  font-weight: 700;
}

.dev-log-board {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  padding: clamp(24px, 5vw, 56px) 0;
}

.dev-log-column,
.dev-log-next {
  padding: clamp(22px, 3vw, 34px);
}

.dev-checklist,
.dev-roadmap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.dev-checklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 0.96rem;
}

.checkmark {
  padding: 3px 6px;
  border-radius: 3px;
  color: var(--text);
  font: 700 0.58rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(124, 138, 78, 0.28);
}

.dev-roadmap li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.dev-roadmap li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.dev-log-next {
  margin-bottom: clamp(54px, 8vw, 96px);
}

/* ── Item Catalog ─────────────────────────────────────────── */
.item-catalog {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
  scroll-margin-top: 160px;
}

.item-catalog-header {
  max-width: 640px;
}

.inventory-codex {
  position: relative;
}

.inventory-codex::before {
  content: "";
  position: absolute;
  inset: 0 50% auto;
  width: 100vw;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(116, 167, 224, 0.5), transparent);
}

.inventory-codex__intro {
  max-width: 800px;
}

.inventory-codex-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.item-family {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.item-family-heading {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.item-family-heading--blessed {
  color: #c9a84c;
}

.item-family-heading--damned {
  color: #b83c3c;
}

.item-family-heading--common {
  color: #a0a0a0;
}

.item-family-heading--uncommon {
  color: #50b4e6;
}

.item-family-heading--rare {
  color: #3cc864;
}

.item-family-heading--epic {
  color: #a050dc;
}

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

.item-card-grid--3 {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.item-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-align: center;
}

.item-card--blessed {
  border-top: 2px solid rgba(201, 168, 76, 0.55);
}

.item-card--damned {
  border-top: 2px solid rgba(184, 60, 60, 0.55);
}

.item-card img {
  width: 72px;
  object-fit: contain;
}

.item-card strong {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.3;
}

.item-card > p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.item-card--common {
  border-top: 2px solid rgba(160, 160, 160, 0.55);
}

.item-card--uncommon {
  border-top: 2px solid rgba(116, 167, 224, 0.65);
}

.item-card--rare {
  border-top: 2px solid rgba(60, 200, 100, 0.65);
}

.item-card--epic {
  border-top: 2px solid rgba(160, 80, 220, 0.65);
}

.item-card--legendary {
  border-top: 2px solid rgba(226, 156, 58, 0.72);
}

.rarity-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 3px;
}

.rarity-tag--common {
  color: #a0a0a0;
  background: rgba(160, 160, 160, 0.12);
}

.rarity-tag--uncommon {
  color: #50b4e6;
  background: rgba(116, 167, 224, 0.12);
}

.rarity-tag--rare {
  color: #3cc864;
  background: rgba(60, 200, 100, 0.12);
}

.rarity-tag--epic {
  color: #a050dc;
  background: rgba(160, 80, 220, 0.12);
}

.rarity-tag--legendary {
  color: #e29c3a;
  background: rgba(226, 156, 58, 0.13);
}

.item-stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}

.item-stat-list li {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
}

.item-stats {
  display: flex;
  gap: 14px;
  margin: 0;
  justify-content: center;
}

.item-stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.item-stats dt {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.65rem;
}

.item-stats dd {
  margin: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ── Item row layout (equipment) ──────────────────────────────── */
.item-row-group {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
}

.item-row {
  min-width: 0;
  border: 1px solid var(--line);
  border-top-width: 2px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.item-row--common {
  border-top-color: rgba(160, 160, 160, 0.55);
}

.item-row--uncommon {
  border-top-color: rgba(116, 167, 224, 0.65);
}

.item-row--rare {
  border-top-color: rgba(60, 200, 100, 0.65);
}

.item-row--epic {
  border-top-color: rgba(160, 80, 220, 0.65);
}

.item-row--legendary {
  border-top-color: rgba(226, 156, 58, 0.72);
}

.item-row:hover,
.item-row:focus-visible,
.item-row.is-open {
  border-color: rgba(221, 179, 101, 0.52);
  background: var(--panel-strong);
}

.item-row:focus-visible {
  outline: 2px solid rgba(221, 179, 101, 0.7);
  outline-offset: 3px;
}

.item-row.is-open {
  grid-column: 1 / -1;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.item-row-header {
  min-height: 188px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 14px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.item-row-header::after {
  content: "View details";
  margin-top: 2px;
  color: var(--muted);
  font: 700 0.62rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.item-row.is-open .item-row-header {
  min-height: 118px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  justify-content: start;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.item-row.is-open .item-row-header::after {
  content: "Hide details";
  grid-column: 2;
  margin-top: 0;
}

.item-row-header img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}

.item-title-group,
.comp-title-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}

.item-title-group {
  flex: 1;
  align-items: center;
}

.version-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border: 1px solid rgba(221, 179, 101, 0.38);
  border-radius: 999px;
  background: rgba(221, 179, 101, 0.1);
  color: var(--gold);
  font: 700 0.58rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.item-row-header strong {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.item-row.is-open .item-title-group {
  align-items: flex-start;
}

.item-row.is-open .item-row-header strong {
  font-size: 1.05rem;
}

.item-levels {
  display: none;
  grid-template-columns: repeat(5, 1fr);
}

.item-row.is-open .item-levels {
  display: grid;
}

.item-level-card {
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.item-level-card:last-child {
  border-right: none;
}

.level-num {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold);
  margin-bottom: 2px;
}

.item-level-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.item-level-stats li {
  font-size: 0.72rem;
  color: var(--text);
  line-height: 1.3;
}

.item-level-recipe {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.recipe-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.item-level-recipe span:not(.recipe-label) {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.3;
}

/* ── Component list layout ────────────────────────────────────── */
.component-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
}

.component-row {
  min-width: 0;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-top-width: 2px;
  border-radius: 8px;
  background: var(--panel);
  text-align: center;
}

.component-row:nth-child(even) {
  background: var(--panel);
}

.component-row img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.comp-name {
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.comp-desc {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ── Potion rows ──────────────────────────────────────────────── */
.potion-row {
  min-width: 0;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-top: 2px solid rgba(221, 179, 101, 0.36);
  border-radius: 8px;
  background: var(--panel);
  text-align: center;
}

.potion-row:nth-child(even) {
  background: var(--panel);
}

.potion-row img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.potion-row strong {
  font-size: 0.88rem;
}


.tier-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 3px;
}

.tier-tag--weak {
  color: #a0a0a0;
  background: rgba(160, 160, 160, 0.12);
}

.tier-tag--normal {
  color: #50b4e6;
  background: rgba(116, 167, 224, 0.12);
}

.tier-tag--strong {
  color: #3cc864;
  background: rgba(60, 200, 100, 0.12);
}

/* ── Rarity title colours ─────────────────────────────────────── */
.item-row--common    .item-row-header strong,
.component-row--common   .comp-name { color: #a0a0a0; }

.item-row--uncommon  .item-row-header strong,
.component-row--uncommon .comp-name { color: #50b4e6; }

.item-row--rare      .item-row-header strong,
.component-row--rare     .comp-name { color: #3cc864; }

.item-row--epic      .item-row-header strong,
.component-row--epic     .comp-name { color: #a050dc; }

.item-row--legendary .item-row-header strong,
.component-row--legendary .comp-name { color: #e29c3a; }

@media (max-width: 860px) {
  .dev-log-summary,
  .dev-log-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .item-row-group,
  .component-list {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .item-card-grid {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .inventory-codex-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .dev-log-summary,
  .dev-log-board {
    grid-template-columns: 1fr;
  }

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

  .modifier-summary-grid {
    grid-template-columns: 1fr;
  }

  .item-row-group,
  .component-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .item-levels {
    grid-template-columns: repeat(3, 1fr);
  }

  .component-row {
    grid-template-columns: 80px minmax(0, auto) minmax(0, 1fr);
  }

}

@media (max-width: 540px) {
  .item-levels {
    grid-template-columns: repeat(2, 1fr);
  }

  .component-row {
    grid-template-columns: 64px minmax(76px, auto) minmax(0, 1fr);
    gap: 10px;
    padding-inline: 10px;
  }

  .component-row img {
    width: 56px;
    height: 56px;
  }
}

.level-gallery {
  grid-template-columns: repeat(5, minmax(130px, 1fr));
}

.info-panels {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  padding-top: 0;
}

.info-panels article {
  /* Grid items default to min-width:auto, so a wide table inside would stretch
     the track past the viewport instead of letting .table-wrap scroll. */
  min-width: 0;
  min-height: 260px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(33, 27, 19, 0.84), rgba(13, 11, 9, 0.94)),
    url("./assets/bg_random2-v2.webp");
  background-size: cover;
  background-position: center;
}

.info-panels h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

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

.inventory-screens .screenshot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faded-shot {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42);
}

.faded-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.02) 18%, rgba(0, 0, 0, 0.02) 82%, rgba(0, 0, 0, 0.78)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.02) 18%, rgba(0, 0, 0, 0.02) 82%, rgba(0, 0, 0, 0.78));
}

.faded-shot img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
}

.faded-shot figcaption {
  position: relative;
  z-index: 1;
  min-height: 66px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.level-select-showcase {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) 0;
}

.level-select-showcase__copy {
  max-width: 780px;
  margin-bottom: 28px;
}

.level-select-showcase__copy p:last-child {
  max-width: 720px;
}

.level-select-showcase figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(221, 179, 101, 0.38);
  border-radius: 10px;
  background: #090705;
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.5);
}

.level-select-showcase img {
  display: block;
  width: 100%;
  height: auto;
}

.level-select-showcase figcaption {
  padding: 15px 18px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.faded-shot--wide img {
  height: min(560px, 56vw);
}

.hero-gallery article,
.item-showcase article,
.level-gallery article,
.info-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.hero-gallery article,
.item-showcase article {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 18px;
}

.hero-gallery img {
  height: 330px;
  object-fit: contain;
}

.item-showcase img {
  width: 130px;
  object-fit: contain;
}

.level-gallery img {
  width: 100%;
  aspect-ratio: 1 / 2;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.hero-gallery h2,
.item-showcase h2,
.level-gallery h2 {
  margin: 12px 0 0;
  font-size: 1.2rem;
  text-align: center;
}

.level-gallery h2 {
  padding: 0 16px 18px;
}

.level-detail-list {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(38px, 6vw, 74px);
}

.level-detail {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  scroll-margin-top: 140px;
}

.level-detail--reverse {
  grid-template-columns: minmax(0, 1.38fr) minmax(260px, 0.62fr);
}

.level-detail--reverse figure {
  order: 2;
}

.level-detail figure {
  min-height: 430px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42);
}

.level-detail figure img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.level-detail-copy {
  min-width: 0;
}

.level-detail-copy h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.level-detail-copy .table-wrap {
  margin-top: 22px;
}

.level-detail-copy .data-table {
  margin-top: 0;
}

.boss-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
}

.boss-cell img {
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 11, 9, 0.72);
}

.unit-cell-img {
  /* Fixed box in a table cell: without the min/max pair the auto table layout
     shrinks the width while the height stays put, which squashes the art. */
  width: 56px;
  min-width: 56px;
  max-width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 3px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(13, 11, 9, 0.72);
  margin: auto;
}

.level-stats {
  width: min(580px, 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(29, 24, 18, 0.76), rgba(13, 11, 9, 0.62));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.level-stat {
  padding: 10px 11px 11px;
}

.level-stat--wide {
  width: 100%;
}

.level-stat__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.level-stat__heading > span {
  font: 700 0.6rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.level-stat__heading > strong {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: right;
}

.level-stat__bar {
  height: 8px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(232, 220, 196, 0.08);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.5);
}

.level-stat__bar > span {
  display: block;
  width: var(--stat-fill);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-deep), var(--gold));
  box-shadow: 0 0 12px rgba(221, 179, 101, 0.22);
}

.level-stat > p {
  margin: 7px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.level-stat--penalty .level-stat__heading > strong {
  color: var(--red-bright);
}

.level-stat--penalty .level-stat__bar > span {
  background: linear-gradient(90deg, var(--red), var(--red-bright));
  box-shadow: 0 0 12px rgba(207, 63, 53, 0.22);
}

.gameplay-art img {
  width: 100%;
  max-height: 470px;
  object-fit: contain;
}

.ability-row--large {
  justify-content: flex-start;
  margin-top: 22px;
}

.ability-row--large img {
  width: 76px;
  height: 76px;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list div {
  padding: 18px;
}

.info-list span,
.info-list strong {
  display: block;
  overflow-wrap: anywhere;
}

.info-list span {
  color: var(--muted);
  font: 700 0.78rem/1.2 Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.info-list strong {
  margin-top: 6px;
  font-size: 1.15rem;
}

.legal-document {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 84px) 0;
}

.legal-document h2 {
  margin-top: 36px;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.legal-document p {
  color: var(--muted);
  font-size: 1.03rem;
}

.legal-document a {
  color: var(--gold);
}

/* ── Minigame cards ── */
.minigame-type {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 3px;
  font: 700 0.62rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.minigame-type--rescue   { color: var(--green);  background: rgba(124, 138, 78, 0.18); }
.minigame-type--collect  { color: var(--gold);   background: rgba(221, 179, 101, 0.18); }
.minigame-type--cleanse  { color: #c084fc;       background: rgba(192, 132, 252, 0.14); }
.minigame-type--survival { color: #f87171;       background: rgba(248, 113, 113, 0.14); }
.minigame-type--kill     { color: #fb923c;       background: rgba(251, 146, 60, 0.14); }
.minigame-type--chase    { color: #60a5fa;       background: rgba(96, 165, 250, 0.14); }
.minigame-type--escort   { color: #93c5fd;       background: rgba(147, 197, 253, 0.14); }
.minigame-type--purge    { color: #fb7185;       background: rgba(251, 113, 133, 0.14); }
.minigame-type--economy  { color: var(--gold);   background: rgba(221, 179, 101, 0.18); }
.minigame-type--debuff   { color: #c084fc;       background: rgba(192, 132, 252, 0.14); }
.minigame-type--assault  { color: var(--red);    background: rgba(168, 64, 47, 0.14); }
.minigame-type--ritual   { color: #a78bfa;       background: rgba(167, 139, 250, 0.14); }

.minigame-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 6px 0 0;
}

.minigame-stat-row span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font: 700 0.66rem/1 Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.minigame-reward {
  margin-top: auto;
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  background: rgba(124, 138, 78, 0.08);
}

.minigame-reward--gold {
  border-color: var(--gold);
  background: rgba(221, 179, 101, 0.08);
}

.minigame-reward--paragon {
  border-color: #60a5fa;
  background: rgba(96, 165, 250, 0.08);
}

.minigame-reward--aoe {
  border-color: #fb7185;
  background: rgba(251, 113, 133, 0.08);
}

.minigame-reward::before {
  content: "COMPLETION REWARD";
  display: block;
  color: var(--green);
  font: 700 0.6rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.minigame-reward--gold::before {
  color: var(--gold);
}

.minigame-reward--paragon::before {
  color: #60a5fa;
}

.minigame-reward--aoe::before {
  color: #fb7185;
}

.minigame-reward p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

/* ── Ability icon cell inside tables ── */
.ability-icon-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  white-space: nowrap;
}

.ability-icon-cell img {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(13, 11, 9, 0.68);
  padding: 4px;
}

/* ── Data tables ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
}

.data-table th {
  padding: 10px 14px;
  border-bottom: 2px solid var(--line);
  background: var(--panel-strong);
  color: var(--gold);
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.data-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: rgba(232, 220, 196, 0.03);
}

.data-table--centered th,
.data-table--centered td {
  text-align: center;
  vertical-align: middle;
}

.data-table--centered .boss-cell {
  justify-content: center;
}

.resist-strip {
  min-width: 192px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.damage-strip {
  min-width: 150px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.resist-chip {
  --resist-color: var(--gold);
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 6px;
  border: 1px solid color-mix(in srgb, var(--resist-color) 56%, transparent);
  border-radius: 5px;
  background: color-mix(in srgb, var(--resist-color) 12%, rgba(13, 11, 9, 0.82));
  color: color-mix(in srgb, var(--resist-color) 84%, #fff);
  font: 700 0.68rem/1 Arial, Helvetica, sans-serif;
  white-space: nowrap;
}

.resist-chip--physical { --resist-color: #c7ccd2; }
.resist-chip--magic { --resist-color: #b778ff; }
.resist-chip--fire { --resist-color: #ff684f; }
.resist-chip--cold { --resist-color: #66b7ff; }
.resist-chip--lightning { --resist-color: #ffd84d; }
.resist-chip--poison { --resist-color: #69d982; }

.resist-chip--weak {
  border-color: rgba(105, 217, 130, 0.92);
  box-shadow: inset 0 -2px 0 rgba(105, 217, 130, 0.72);
}

.resist-chip--immune {
  box-shadow: inset 0 -2px 0 rgba(255, 104, 79, 0.74);
}

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

/* ── Health warning callout (compact banner on guide.html) ── */
.warning-callout {
  width: min(920px, calc(100% - 36px));
  margin: clamp(32px, 5vw, 56px) auto 0;
  padding: 20px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(168, 64, 47, 0.55);
  border-radius: 8px;
  background: rgba(168, 64, 47, 0.08);
}

.warning-callout strong {
  flex: 1 1 auto;
  color: var(--text);
  font: 700 0.92rem/1.4 Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.warning-callout p {
  flex: 99 1 260px;
  margin: 0;
  font-size: 0.95rem;
}

.warning-callout a {
  flex-shrink: 0;
  padding: 9px 16px;
  border: 1px solid rgba(168, 64, 47, 0.55);
  border-radius: 6px;
  background: rgba(168, 64, 47, 0.14);
  color: var(--text);
  font: 700 0.84rem/1 Arial, Helvetica, sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.warning-callout a:hover {
  background: rgba(168, 64, 47, 0.26);
  border-color: rgba(168, 64, 47, 0.8);
}

/* ── Health cards (health-manual.html) ── */
.health-intro {
  width: min(920px, calc(100% - 36px));
  margin: clamp(48px, 7vw, 80px) auto 0;
}

.health-intro p {
  max-width: 780px;
}

.health-cards {
  width: min(920px, calc(100% - 36px));
  margin: clamp(28px, 4vw, 44px) auto clamp(56px, 8vw, 100px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.health-card {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(168, 64, 47, 0.45);
  border-radius: 8px;
  background: var(--panel-strong);
}

.health-card .eyebrow {
  color: #c86057;
}

.health-card h2 {
  margin-top: 10px;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
}

.health-card p {
  margin-top: 14px;
  font-size: 1rem;
}

/* ── Guide sections ── */
.guide-section {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(38px, 5.5vw, 66px) 0;
  border-bottom: 1px solid var(--line);
}

.guide-section:last-of-type {
  border-bottom: none;
}

.guide-section h2 {
  margin-top: 10px;
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
}

.guide-section p {
  max-width: 780px;
  margin-top: 16px;
}

.guide-section .ability-row {
  justify-content: flex-start;
  margin-top: 22px;
}

.guide-section .ability-row img {
  width: 72px;
  height: 72px;
}

.guide-nav {
  width: min(920px, calc(100% - 36px));
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(24px, 4vw, 42px) auto 0;
}

.guide-nav a {
  padding: 9px 13px;
  border: 1px solid rgba(221, 179, 101, 0.26);
  border-radius: 999px;
  background: rgba(221, 179, 101, 0.08);
  color: var(--text);
  font: 800 0.78rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guide-nav a:hover {
  border-color: rgba(221, 179, 101, 0.62);
  color: var(--gold);
}

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

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

.guide-card,
.guide-note-card,
.guide-step,
.guide-feature {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(33, 27, 19, 0.76), rgba(13, 11, 9, 0.96));
}

.guide-card {
  padding: 18px;
}

.guide-card img {
  width: 70px;
  height: 70px;
  display: block;
  object-fit: contain;
  padding: 6px;
  border: 1px solid rgba(221, 179, 101, 0.26);
  border-radius: 8px;
  background: radial-gradient(circle at center, rgba(221, 179, 101, 0.16), rgba(13, 11, 9, 0.88));
}

.guide-card h3,
.guide-note-card h3,
.guide-step h3,
.guide-feature h3 {
  margin: 14px 0 0;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.15;
}

.guide-card p,
.guide-note-card p,
.guide-step p,
.guide-feature p {
  margin-top: 10px;
  font-size: 0.96rem;
}

.guide-section--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 24px;
  align-items: center;
}

.discord-callout {
  width: min(1180px, calc(100% - 36px));
  margin: clamp(40px, 6vw, 72px) auto 0;
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(88, 101, 242, 0.52);
  border-radius: 10px;
  background:
    linear-gradient(120deg, rgba(88, 101, 242, 0.2), rgba(29, 24, 18, 0.94) 58%),
    var(--panel);
}

main > .discord-callout:last-child {
  margin-bottom: clamp(40px, 6vw, 72px);
}

.discord-callout h2 {
  margin: 4px 0 8px;
}

.discord-callout p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.discord-action {
  min-height: 48px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid #8b95ff;
  border-radius: 7px;
  background: #5865f2;
  color: #fff;
  font: 700 0.9rem/1 Arial, Helvetica, sans-serif;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.discord-action:hover {
  background: #6975f5;
  transform: translateY(-1px);
}

.guide-section--split .eyebrow,
.guide-section--split h2,
.guide-section--split p {
  grid-column: auto;
}

.guide-note-card {
  padding: 22px;
}

.guide-note-card h3 {
  margin-top: 0;
}

.guide-step-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.guide-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.guide-step span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(221, 179, 101, 0.4);
  border-radius: 999px;
  background: rgba(221, 179, 101, 0.12);
  color: var(--gold);
  font: 900 1rem/1 Arial, Helvetica, sans-serif;
}

.guide-step h3 {
  margin-top: 0;
}

.guide-icon-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.guide-icon-stack img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  padding: 8px;
  border: 1px solid rgba(221, 179, 101, 0.28);
  border-radius: 8px;
  background: radial-gradient(circle at center, rgba(221, 179, 101, 0.14), rgba(13, 11, 9, 0.9));
}

.guide-wide-link {
  grid-column: 1 / -1;
}

.guide-feature {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 24px;
  padding: 22px;
}

.guide-feature img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.guide-feature h3 {
  margin-top: 0;
}

.guide-checklist {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.guide-checklist li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(33, 27, 19, 0.42);
  color: var(--muted);
  line-height: 1.6;
}

.guide-checklist strong {
  color: var(--text);
}

.changelog-hero {
  min-height: clamp(360px, 50vh, 560px);
}

.changelog-hero > p:last-child {
  max-width: 760px;
}

.changelog-shell {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(210px, 0.3fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: start;
  padding: clamp(58px, 8vw, 108px) 0;
}

.changelog-rail {
  position: sticky;
  top: 126px;
  min-width: 0;
}

.changelog-timeline {
  position: relative;
  height: min(620px, calc(100vh - 220px));
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 10px 0;
}

.changelog-timeline::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 28px;
  bottom: 28px;
  left: 17px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue), var(--gold) 48%, var(--bronze));
  box-shadow: 0 0 20px rgba(47, 95, 168, 0.22);
}

.changelog-timeline__entry {
  position: relative;
  z-index: 1;
  min-height: 78px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
}

.changelog-timeline__dot {
  width: 22px;
  height: 22px;
  margin-left: 8px;
  border: 3px solid var(--bronze);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 6px rgba(13, 11, 9, 0.92);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.changelog-timeline__entry > span:last-child {
  min-width: 0;
  padding: 12px 12px 12px 0;
}

.changelog-timeline__entry time,
.changelog-timeline__entry strong,
.changelog-timeline__entry small {
  display: block;
}

.changelog-timeline__entry time {
  color: var(--muted);
  font: 700 0.64rem/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.changelog-timeline__entry strong {
  margin-top: 5px;
  color: var(--text);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  line-height: 1.05;
}

.changelog-timeline__entry small {
  margin-top: 5px;
  color: var(--muted);
  font: 700 0.72rem/1.2 Arial, Helvetica, sans-serif;
}

.changelog-timeline__entry:hover strong,
.changelog-timeline__entry.is-active strong {
  color: var(--gold-bright);
}

.changelog-timeline__entry.is-active .changelog-timeline__dot {
  border-color: var(--gold-bright);
  background: var(--blue-deep);
  box-shadow:
    0 0 0 6px rgba(13, 11, 9, 0.94),
    0 0 24px rgba(116, 167, 224, 0.65);
  transform: scale(1.16);
}

.changelog-feed {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(70px, 10vw, 132px);
}

.changelog-release {
  position: relative;
  scroll-margin-top: 132px;
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(circle at 92% 6%, rgba(221, 179, 101, 0.1), transparent 26%),
    linear-gradient(150deg, rgba(29, 24, 18, 0.96), rgba(13, 11, 9, 0.98));
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.38);
}

.changelog-release::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), transparent 78%);
}

.changelog-release--latest {
  border-color: rgba(116, 167, 224, 0.48);
  background:
    radial-gradient(circle at 90% 4%, rgba(47, 95, 168, 0.24), transparent 30%),
    radial-gradient(circle at 12% 18%, rgba(221, 179, 101, 0.08), transparent 28%),
    linear-gradient(150deg, rgba(29, 24, 18, 0.97), rgba(13, 11, 9, 0.99));
}

.changelog-release--latest::before {
  background: linear-gradient(180deg, var(--blue), var(--gold) 54%, transparent 92%);
}

.changelog-release__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.changelog-release__header time {
  display: block;
  margin: 0 0 10px;
  color: var(--muted);
  font: 700 0.76rem/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.changelog-release__header h2 {
  max-width: 720px;
  font-size: clamp(2.6rem, 5.5vw, 5.8rem);
}

.changelog-version-badge {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(221, 179, 101, 0.56);
  border-radius: 999px;
  background: rgba(221, 179, 101, 0.1);
  color: var(--gold-bright);
  font: 700 0.84rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
}

.changelog-release--latest .changelog-version-badge {
  border-color: rgba(116, 167, 224, 0.58);
  background: rgba(47, 95, 168, 0.18);
  color: var(--blue);
}

.changelog-release__intro {
  max-width: 820px;
  margin: 22px 0 0;
  color: var(--text);
  font-size: clamp(1.08rem, 1.8vw, 1.34rem);
  line-height: 1.65;
}

.changelog-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.changelog-highlight-grid article {
  min-height: 154px;
  padding: 19px;
  border: 1px solid rgba(138, 107, 58, 0.34);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(43, 36, 25, 0.72), rgba(13, 11, 9, 0.64));
}

.changelog-highlight-grid strong {
  display: block;
  color: var(--text-bright);
  font: 700 1rem/1.25 Arial, Helvetica, sans-serif;
}

.changelog-highlight-grid p {
  margin: 9px 0 0;
  font-size: 0.94rem;
  line-height: 1.55;
}

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

.changelog-subhead {
  margin: 34px 0 0;
  color: var(--gold);
  font: 700 0.78rem/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.changelog-change-list {
  max-width: 880px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.changelog-change-list li {
  position: relative;
  padding: 0 0 0 20px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.changelog-change-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 2px;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(221, 179, 101, 0.62);
  background: rgba(221, 179, 101, 0.22);
  transform: rotate(45deg);
}

.changelog-change-list strong {
  color: var(--text-bright);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.94rem;
}

.changelog-media-grid figure,
.changelog-feature-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(138, 107, 58, 0.48);
  border-radius: 8px;
  background: var(--bg);
}

.changelog-release--latest .changelog-media-grid figure {
  border-color: rgba(116, 167, 224, 0.36);
}

.changelog-media-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.changelog-media-grid .discipline-board img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

.changelog-media-grid .gem-legend img {
  width: 30px;
  height: 30px;
  aspect-ratio: auto;
  object-fit: contain;
}

.changelog-media-grid figcaption,
.changelog-feature-figure figcaption {
  min-height: 104px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(43, 36, 25, 0.68), rgba(13, 11, 9, 0.96));
}

.changelog-media-grid figcaption strong,
.changelog-media-grid figcaption span,
.changelog-feature-figure figcaption strong,
.changelog-feature-figure figcaption span {
  display: block;
}

.changelog-media-grid figcaption strong,
.changelog-feature-figure figcaption strong {
  color: var(--text-bright);
  font-size: 1.12rem;
}

.changelog-media-grid figcaption span,
.changelog-feature-figure figcaption span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.changelog-release .home-launch-actions {
  width: 100%;
  margin-top: 30px;
}

.changelog-feature-figure {
  margin-top: 30px;
}

.changelog-feature-figure > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.changelog-feature-figure--origin > img {
  aspect-ratio: 2 / 1;
}

@media (max-width: 920px) {
  .changelog-shell {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .changelog-rail {
    position: static;
  }

  .changelog-timeline {
    height: auto;
    min-height: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
    justify-content: initial;
    gap: 18px;
    overflow-x: auto;
    padding: 0 0 16px;
  }

  .changelog-timeline::before {
    top: 16px;
    right: 18px;
    bottom: auto;
    left: 18px;
    width: auto;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--gold) 48%, var(--bronze));
  }

  .changelog-timeline__entry {
    min-height: 126px;
    grid-template-columns: 1fr;
    grid-template-rows: 36px auto;
    gap: 8px;
    align-items: start;
  }

  .changelog-timeline__dot {
    margin: 7px 0 0 8px;
  }

  .changelog-timeline__entry > span:last-child {
    padding: 0 12px 0 8px;
  }
}

@media (max-width: 620px) {
  .changelog-shell {
    width: min(100% - 24px, 1280px);
    padding-top: 42px;
  }

  .changelog-release {
    padding: 22px 16px;
  }

  .changelog-release__header {
    flex-direction: column-reverse;
    gap: 18px;
  }

  .changelog-release__header h2 {
    font-size: clamp(2.5rem, 13vw, 4.5rem);
  }

  .changelog-highlight-grid,
  .changelog-media-grid {
    grid-template-columns: 1fr;
  }

  .changelog-highlight-grid article {
    min-height: 0;
  }

  .changelog-feature-figure--origin > img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 620px) {
  .health-cards {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  padding: clamp(50px, 8vw, 90px) clamp(20px, 6vw, 90px);
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  text-align: center;
}

.site-footer h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.footer-contact-copy span {
  display: block;
}

.copyright {
  margin: 28px 0 0;
  font: 700 0.84rem/1.4 Arial, Helvetica, sans-serif;
}

@media (max-width: 920px) {
  .launch-news {
    grid-template-columns: 1fr;
  }

  .launch-news--codex,
  .launch-news--trials,
  .launch-news--disciplines {
    grid-template-columns: 1fr;
  }

  .trial-ladder {
    aspect-ratio: auto;
  }

  .discipline-board,
  .gem-legend {
    aspect-ratio: auto;
  }

  .launch-poster-wall {
    max-width: 760px;
  }

  .launch-poster img {
    height: min(520px, 68vh);
  }

  .launch-poster--android {
    margin-top: min(130px, 17vh);
  }

  .launch-poster--steam {
    margin-top: min(260px, 34vh);
  }

  .home-stats,
  .home-link-grid,
  .home-loop-grid,
  .guide-card-grid,
  .guide-card-grid--four,
  .system-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .system-feature--wide {
    grid-column: span 2;
  }

  .home-release {
    grid-template-columns: 1fr;
  }

  .modifier-columns {
    grid-template-columns: 1fr;
  }

  .feature-row,
  .feature-row--reverse,
  .detail-section {
    grid-template-columns: 1fr;
  }

  .feature-row--reverse .feature-copy {
    order: -1;
  }

  .hero-gallery,
  .item-showcase,
  .inventory-screens,
  .info-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .level-gallery {
    grid-template-columns: repeat(5, minmax(110px, 1fr));
    overflow-x: auto;
    padding-bottom: 18px;
  }

  .inventory-screens {
    grid-template-columns: 1fr;
  }

  .inventory-screens--reverse {
    grid-template-columns: 1fr;
  }

  .hero-detail,
  .hero-detail--reverse,
  .level-detail,
  .level-detail--reverse,
  .ascension-summary {
    grid-template-columns: 1fr;
  }

  .hero-detail--reverse figure,
  .level-detail--reverse figure {
    order: 0;
  }

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

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

@media (max-width: 620px) {
  .site-header nav {
    justify-content: flex-start;
    gap: 10px 14px;
  }

  .site-header nav .discord-nav-link {
    margin-top: -5px;
    margin-bottom: -5px;
    padding: 5px 9px;
  }

  .discord-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-nav {
    gap: 8px;
  }

  .guide-nav a {
    padding: 8px 10px;
    font-size: 0.72rem;
  }

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

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

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

  .banner-hero {
    min-height: 360px;
  }

  .home-hero {
    min-height: 520px;
  }

  .launch-title {
    font-size: clamp(3.1rem, 15vw, 5.6rem);
  }

  .update-highlight-grid,
  .update-release-note__grid,
  .inventory-screens .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .update-release-note__heading {
    flex-direction: column;
  }

  .update-release-visual figcaption {
    position: static;
    padding: 18px;
    background: rgba(13, 11, 9, 0.96);
  }

  .home-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-launch-actions,
  .launch-status-grid {
    grid-template-columns: 1fr;
  }

  .launch-poster-wall {
    grid-template-columns: 1fr;
  }

  .launch-poster img {
    height: auto;
  }

  .launch-poster--android,
  .launch-poster--steam {
    margin-top: 0;
  }

  .home-stats,
  .home-link-grid,
  .home-loop-grid,
  .system-feature-grid,
  .release-card-grid {
    grid-template-columns: 1fr;
  }

  .system-feature--wide {
    grid-column: auto;
  }

  .home-link-card {
    grid-template-columns: 70px minmax(0, 1fr);
    min-height: 150px;
  }

  .home-link-card img {
    width: 70px;
    height: 88px;
  }

  .home-loop-grid img,
  .system-shot {
    height: 190px;
  }

  .minigame-card {
    flex-direction: column;
  }

  .minigame-shot {
    width: 100%;
    height: 160px;
  }

  .feature-art {
    min-height: 320px;
  }

  .hero-collage img {
    max-height: 300px;
  }

  .level-stack {
    grid-template-columns: 1fr;
  }

  .level-stack img {
    height: 150px;
  }

  .hero-gallery,
  .item-showcase,
  .inventory-screens,
  .screenshot-grid,
  .info-panels {
    grid-template-columns: 1fr;
  }

  .hero-detail figure {
    min-height: 340px;
  }

  .hero-detail figure img {
    max-height: 350px;
  }

  .level-detail figure {
    min-height: 260px;
  }

  .hero-stat-grid,
  .hero-unlocks {
    grid-template-columns: 1fr;
  }

  .level-gallery {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
  }

  .faded-shot img {
    height: auto;
  }
}

/* Damage type swatches — generated by python/sync_website_ability_damage_types.py */
.dmg-type {
  --dmg-color: var(--gold);
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: 2px 2px 2px 0;
  padding: 3px 6px;
  border: 1px solid color-mix(in srgb, var(--dmg-color) 56%, transparent);
  border-radius: 5px;
  background: color-mix(in srgb, var(--dmg-color) 12%, rgba(13, 11, 9, 0.82));
  color: color-mix(in srgb, var(--dmg-color) 84%, #fff);
  font: 700 0.68rem/1 Arial, Helvetica, sans-serif;
  white-space: nowrap;
}

.dmg-type,
.resist-chip {
  /* Single-letter tags: keep every badge the same width so the Damage and
     Resists columns read as one aligned system. */
  min-width: 26px;
  justify-content: center;
}

.damage-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 18px;
}

.damage-legend__name {
  margin-right: 10px;
  color: var(--muted);
  font: 700 0.72rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.damage-legend-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.dmg-type--physical { --dmg-color: #c7ccd2; }
.dmg-type--magical { --dmg-color: #b778ff; }
.dmg-type--fire { --dmg-color: #ff684f; }
.dmg-type--cold { --dmg-color: #66b7ff; }
.dmg-type--lightning { --dmg-color: #ffd84d; }
.dmg-type--poison { --dmg-color: #69d982; }
.dmg-type--elemental { --dmg-color: #73e6f2; }
.dmg-split {
  color: var(--muted, #9a9a9a);
  font: 700 0.7rem/1 Arial, Helvetica, sans-serif;
  white-space: nowrap;
}
