:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --bg-soft: #14181c;
  --panel: #181c21;
  --panel-strong: #22272e;
  --text: #f4eee3;
  --muted: #c8beae;
  --line: rgba(244, 238, 227, 0.18);
  --red: #b93b34;
  --gold: #d9aa5f;
  --green: #7d9876;
}

* {
  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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(13, 15, 18, 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-end;
  gap: 16px;
}

.site-header nav a {
  color: var(--muted);
}

.site-header nav a:hover,
.brand:hover {
  color: var(--text);
}

.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, 15, 18, 0.03), rgba(13, 15, 18, 0.12) 48%, rgba(13, 15, 18, 0.72) 84%, var(--bg)),
    linear-gradient(90deg, rgba(13, 15, 18, 0.92), rgba(13, 15, 18, 0.38) 46%, rgba(13, 15, 18, 0.04) 78%),
    url("./assets/veles-rise-of-the-damned-banner-1.webp");
  background-size: cover;
  background-position: center;
}

.greeting {
  width: min(720px, 100%);
  margin: 0;
  padding: 0;
  text-align: left;
}

.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;
  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;
}

.greeting p {
  max-width: 650px;
  margin: 22px 0 0;
}

.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(217, 170, 95, 0.58);
  border-radius: 6px;
  background: rgba(217, 170, 95, 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(217, 170, 95, 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(244, 238, 227, 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--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(34, 39, 46, 0.76), rgba(13, 15, 18, 0.94)),
    url("./assets/bg_random2.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, 15, 18, 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(34, 39, 46, 0.84), rgba(13, 15, 18, 0.94)),
    url("./assets/bg_tavern.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, 15, 18, 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, 15, 18, 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, 15, 18, 0) 45%, rgba(13, 15, 18, 0.72) 84%, var(--bg)),
    linear-gradient(90deg, rgba(13, 15, 18, 0.94), rgba(13, 15, 18, 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, 15, 18, 0) 45%, rgba(13, 15, 18, 0.72) 84%, var(--bg)),
    linear-gradient(90deg, rgba(13, 15, 18, 0.94), rgba(13, 15, 18, 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, 15, 18, 0) 45%, rgba(13, 15, 18, 0.72) 84%, var(--bg)),
    linear-gradient(90deg, rgba(13, 15, 18, 0.94), rgba(13, 15, 18, 0.5)),
    url("./assets/veles-rise-of-the-damned-banner-2-no-text.webp");
}

.page-hero--tavern {
  background-image:
    linear-gradient(180deg, rgba(13, 15, 18, 0) 45%, rgba(13, 15, 18, 0.72) 84%, var(--bg)),
    linear-gradient(90deg, rgba(13, 15, 18, 0.94), rgba(13, 15, 18, 0.54)),
    url("./assets/bg_tavern.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));
}

.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 {
  min-height: 260px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(34, 39, 46, 0.84), rgba(13, 15, 18, 0.94)),
    url("./assets/bg_random2.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;
}

.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--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;
}

.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);
}

.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);
}

.copyright {
  margin: 28px 0 0;
  font: 700 0.84rem/1.4 Arial, Helvetica, sans-serif;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .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;
  }
}

@media (max-width: 620px) {
  .site-header nav {
    justify-content: flex-start;
    gap: 10px 14px;
  }

  .banner-hero {
    min-height: 360px;
  }

  .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;
  }

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