:root {
  color-scheme: dark;
  --bg: #080916;
  --bg-deep: #050611;
  --bg-blue: #0b1640;
  --panel: rgba(18, 18, 38, 0.78);
  --panel-strong: rgba(12, 10, 26, 0.92);
  --stone: #37313d;
  --stone-light: #5f5265;
  --text: #fff5de;
  --text-soft: #d9d2e8;
  --muted: #a99fbf;
  --violet: #a642ff;
  --violet-deep: #5b1db6;
  --blue: #2557d8;
  --cyan: #45d8ff;
  --gold: #f4b53f;
  --gold-dark: #9b631b;
  --orange: #ff8138;
  --line: rgba(244, 181, 63, 0.28);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --header-height: 86px;
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(5, 6, 17, 0.35), rgba(5, 6, 17, 0.92) 42%, #070813),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 92px),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-150%);
  border-radius: 6px;
  background: var(--gold);
  color: #1a1006;
  font-weight: 800;
  padding: 0.65rem 0.9rem;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  transition: height 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  height: 68px;
  background: rgba(5, 6, 17, 0.7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.navbar {
  width: min(100% - 48px, 1320px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(244, 181, 63, 0.18);
}

.brand,
.footer-brand {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 96px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(166, 66, 255, 0.45));
  transition: width 220ms ease, height 220ms ease;
}

.site-header.is-scrolled .brand img {
  width: 78px;
  height: 46px;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  text-shadow: 0 0 16px rgba(166, 66, 255, 0.9);
}

.nav-toggle {
  display: none;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid rgba(244, 181, 63, 0.62);
  border-radius: 6px;
  padding: 0.85rem 1.25rem;
  color: var(--text);
  font-weight: 900;
  text-transform: uppercase;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(255, 129, 56, 0.2), transparent 38%),
    linear-gradient(180deg, rgba(244, 181, 63, 0.24), rgba(91, 29, 182, 0.24)),
    rgba(10, 9, 22, 0.92);
}

.btn::after {
  content: "";
  position: absolute;
  inset: auto 18% 0;
  height: 2px;
  z-index: -1;
  background: var(--cyan);
  opacity: 0.65;
  box-shadow: 0 0 22px var(--cyan);
  transition: opacity 180ms ease, transform 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 223, 134, 0.88);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42), 0 0 30px rgba(166, 66, 255, 0.28);
}

.btn:hover::after,
.btn:focus-visible::after {
  opacity: 1;
  transform: scaleX(1.18);
}

.btn-primary::before {
  background:
    linear-gradient(180deg, #ffe08e, #f4b53f 48%, #a96419),
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 38%);
}

.btn-primary {
  color: #251405;
}

.btn-secondary::before {
  background:
    linear-gradient(135deg, rgba(69, 216, 255, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(68, 36, 111, 0.94), rgba(13, 18, 54, 0.94));
}

.btn-steam::before {
  background:
    linear-gradient(135deg, rgba(69, 216, 255, 0.16), transparent 42%),
    linear-gradient(180deg, #20395e, #111b31 48%, #0a0d18);
}

.btn-small {
  min-height: 42px;
  padding: 0.65rem 0.95rem;
  font-size: 0.78rem;
}

.btn-large {
  min-width: 238px;
}

.section {
  position: relative;
  padding: 112px 0;
}

.section-inner {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  color: var(--text);
  font-size: 3rem;
  text-shadow: 0 0 24px rgba(166, 66, 255, 0.28);
}

h3 {
  font-size: 1.1rem;
}

p {
  color: var(--text-soft);
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 112px 24px 72px;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(180deg, rgba(5, 6, 17, 0.12), rgba(5, 6, 17, 0.42) 48%, rgba(5, 6, 17, 0.92)),
    linear-gradient(90deg, rgba(5, 6, 17, 0.7), transparent 24%, transparent 76%, rgba(5, 6, 17, 0.7)),
    url("assets/backgrounds/misfits-dungeons-background.png");
  background-position: center center;
  background-size: cover;
  transform: scale(1.03);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg) 80%);
}

.particle-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 232, 156, 0.82);
  box-shadow: 0 0 14px rgba(166, 66, 255, 0.82);
  opacity: 0.55;
  animation: drift 12s linear infinite;
}

.hero-inner {
  width: min(100%, 860px);
  text-align: center;
  display: grid;
  justify-items: center;
  margin-top: 0.4rem;
}

.hero-logo {
  width: min(500px, 86vw);
  margin: -0.5rem auto 0.3rem;
  filter: drop-shadow(0 0 24px rgba(166, 66, 255, 0.65)) drop-shadow(0 20px 34px rgba(0, 0, 0, 0.58));
  transform-origin: 50% 54%;
  will-change: transform, filter;
  animation:
    logoFloat 5.8s ease-in-out infinite,
    logoGlow 3.6s ease-in-out infinite;
}

.hero-kicker {
  margin: 0.2rem 0 0;
  color: var(--text);
  font-family: Cinzel, Georgia, serif;
  font-size: 1.55rem;
  font-weight: 800;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.85);
}

.hero-copy {
  width: min(100%, 640px);
  margin: 1rem auto 0;
  color: #f0e8ff;
  font-size: 1.08rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.86);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 26px;
  left: 50%;
  width: 24px;
  height: 38px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 245, 222, 0.5);
  border-radius: 999px;
  opacity: 0.75;
}

.scroll-indicator span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  transform: translateX(-50%);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

.about-section,
.gameplay-section,
.steam-section {
  background:
    linear-gradient(180deg, rgba(8, 9, 22, 0), rgba(8, 9, 22, 0.82) 22%, rgba(8, 9, 22, 0.92)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 18px);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(420px, 1.16fr);
  align-items: center;
  gap: 4rem;
}

.section-copy p {
  max-width: 610px;
  font-size: 1.06rem;
}

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.about-highlights span {
  border: 1px solid rgba(244, 181, 63, 0.28);
  border-radius: 999px;
  background: rgba(15, 13, 31, 0.72);
  color: var(--text);
  padding: 0.48rem 0.78rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.art-panel {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(244, 181, 63, 0.26);
  border-radius: var(--radius);
  background: rgba(9, 8, 22, 0.75);
  box-shadow: var(--shadow);
}

.art-panel::before,
.gameplay-showcase::before,
.feature-card::before,
.steam-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(244, 181, 63, 0.16);
  border-radius: 5px;
  pointer-events: none;
}

.art-panel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.art-panel figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  border: 1px solid rgba(244, 181, 63, 0.2);
  border-radius: 6px;
  background: rgba(5, 6, 17, 0.72);
  color: var(--text-soft);
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
  backdrop-filter: blur(10px);
}

.feature-section {
  background:
    linear-gradient(180deg, rgba(8, 9, 22, 0.94), rgba(11, 22, 64, 0.66), rgba(8, 9, 22, 0.96)),
    repeating-linear-gradient(0deg, rgba(244, 181, 63, 0.028) 0 1px, transparent 1px 70px);
}

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

.feature-card {
  position: relative;
  min-height: 286px;
  padding: 1.25rem;
  border: 1px solid rgba(244, 181, 63, 0.23);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(42, 26, 73, 0.72), rgba(12, 11, 29, 0.88)),
    rgba(12, 11, 29, 0.78);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 181, 63, 0.55);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.36), 0 0 30px rgba(166, 66, 255, 0.16);
}

.feature-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(244, 181, 63, 0.45);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(244, 181, 63, 0.2), rgba(91, 29, 182, 0.28)),
    rgba(5, 6, 17, 0.72);
  box-shadow: inset 0 0 18px rgba(166, 66, 255, 0.22), 0 0 24px rgba(166, 66, 255, 0.15);
}

.feature-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  color: var(--text);
  margin-bottom: 0.65rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-soft);
}

.gameplay-showcase {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 640px;
  padding: 6rem 7rem;
  border: 1px solid rgba(244, 181, 63, 0.23);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(45, 23, 82, 0.55), rgba(8, 12, 32, 0.86)),
    rgba(8, 9, 22, 0.8);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gameplay-image {
  width: min(100%, 780px);
  border: 1px solid rgba(244, 181, 63, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.45), 0 0 42px rgba(69, 216, 255, 0.12);
}

.gameplay-callout {
  position: absolute;
  width: 245px;
  border: 1px solid rgba(244, 181, 63, 0.25);
  border-radius: var(--radius);
  background: rgba(8, 8, 22, 0.78);
  padding: 1rem;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.gameplay-callout h3 {
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 1rem;
}

.gameplay-callout p {
  margin: 0;
  font-size: 0.9rem;
}

.callout-top {
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.callout-right {
  top: 34%;
  right: 2rem;
}

.callout-bottom {
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.callout-left {
  top: 34%;
  left: 2rem;
}

.screenshot-section {
  background:
    linear-gradient(180deg, rgba(8, 9, 22, 0.98), rgba(17, 12, 40, 0.84), rgba(8, 9, 22, 0.98)),
    repeating-linear-gradient(90deg, rgba(69, 216, 255, 0.02) 0 1px, transparent 1px 96px);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 170px;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  display: block;
  grid-column: span 3;
  border: 1px solid rgba(244, 181, 63, 0.24);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #0b0d1d;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.gallery-wide {
  grid-column: span 4;
  grid-row: span 2;
}

.gallery-tall {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 220ms ease, filter 220ms ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(5, 6, 17, 0.88));
  pointer-events: none;
}

.gallery-item span {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.85rem;
  z-index: 1;
  color: var(--text);
  font-weight: 900;
  text-align: left;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.055);
  filter: saturate(1.12) brightness(1.05);
}

.community-section {
  overflow: hidden;
  min-height: 540px;
  display: grid;
  align-items: center;
  isolation: isolate;
}

.community-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(5, 6, 17, 0.94), rgba(5, 6, 17, 0.62) 50%, rgba(5, 6, 17, 0.9)),
    linear-gradient(180deg, rgba(5, 6, 17, 0.22), rgba(5, 6, 17, 0.88)),
    url("assets/backgrounds/misfits-dungeons-background.png");
  background-position: center bottom;
  background-size: cover;
}

.community-inner {
  max-width: 710px;
  margin-left: max(24px, calc((100vw - var(--container)) / 2));
}

.community-inner p {
  max-width: 610px;
  font-size: 1.08rem;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.steam-section {
  padding-top: 88px;
}

.steam-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 181, 63, 0.26);
  border-radius: var(--radius);
  padding: 4rem;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(69, 216, 255, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(34, 28, 57, 0.88), rgba(9, 11, 26, 0.94));
  box-shadow: var(--shadow);
}

.steam-panel h2,
.steam-panel p {
  margin-left: auto;
  margin-right: auto;
}

.steam-panel p {
  margin-bottom: 1.8rem;
}

.site-footer {
  border-top: 1px solid rgba(244, 181, 63, 0.18);
  background: #050611;
  padding: 2.5rem 0;
}

.footer-inner {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem 2rem;
}

.footer-brand img {
  width: 120px;
  height: 76px;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 5rem 5rem 3rem;
  background: rgba(3, 4, 12, 0.9);
  backdrop-filter: blur(12px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-content {
  width: min(100%, 1120px);
  margin: 0;
}

.lightbox-content img {
  width: 100%;
  max-height: 78svh;
  object-fit: contain;
  border: 1px solid rgba(244, 181, 63, 0.28);
  border-radius: var(--radius);
  background: #050611;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.lightbox-content figcaption {
  margin-top: 0.85rem;
  color: var(--text);
  font-weight: 900;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 181, 63, 0.36);
  border-radius: 6px;
  background: rgba(10, 10, 24, 0.78);
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(244, 181, 63, 0.78);
  background: rgba(34, 20, 62, 0.9);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 52px;
  height: 64px;
  transform: translateY(-50%);
  font-size: 3rem;
  line-height: 1;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  transform: translateY(-50%) translateY(-2px);
}

.lightbox-prev {
  left: 1.4rem;
}

.lightbox-next {
  right: 1.4rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }

  38% {
    transform: translateY(-8px) scale(1.012) rotate(-0.4deg);
  }

  70% {
    transform: translateY(4px) scale(0.997) rotate(0.25deg);
  }
}

@keyframes logoGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 24px rgba(166, 66, 255, 0.62)) drop-shadow(0 20px 34px rgba(0, 0, 0, 0.58));
  }

  50% {
    filter: drop-shadow(0 0 34px rgba(166, 66, 255, 0.88)) drop-shadow(0 0 18px rgba(69, 216, 255, 0.34)) drop-shadow(0 22px 38px rgba(0, 0, 0, 0.62));
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(34px, -92px, 0);
  }
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0;
    transform: translate(-50%, 0);
  }

  40% {
    opacity: 1;
  }

  70% {
    opacity: 0.45;
    transform: translate(-50%, 14px);
  }
}

@media (max-width: 1199px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .gameplay-showcase {
    padding: 5rem 3rem;
  }

  .gameplay-callout {
    position: static;
    width: auto;
  }

  .gameplay-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .gameplay-image {
    grid-column: 1 / -1;
  }

  .callout-top,
  .callout-bottom {
    transform: none;
  }

  h2 {
    font-size: 2.45rem;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 74px;
  }

  .navbar {
    width: min(100% - 32px, 1320px);
  }

  .nav-toggle {
    display: inline-grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 1px solid rgba(244, 181, 63, 0.28);
    border-radius: 6px;
    background: rgba(5, 6, 17, 0.66);
    color: var(--text);
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 1rem;
    justify-items: stretch;
    padding: 1rem;
    border: 1px solid rgba(244, 181, 63, 0.24);
    border-radius: var(--radius);
    background: rgba(7, 8, 19, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease, visibility 180ms ease;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links {
    display: grid;
    gap: 0.2rem;
  }

  .nav-links a,
  .nav-menu .btn {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .section {
    padding: 84px 0;
  }

  .section-inner {
    width: min(100% - 32px, var(--container));
  }

  .hero {
    padding: 96px 16px 76px;
  }

  .hero-logo {
    width: min(430px, 88vw);
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 190px;
  }

  .gallery-item,
  .gallery-wide,
  .gallery-tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .brand img {
    width: 76px;
    height: 48px;
  }

  .hero-art {
    background-position: center top;
  }

  .hero {
    padding: 88px 16px 72px;
  }

  .hero-logo {
    width: min(360px, 86vw);
  }

  .hero-kicker {
    font-size: 1.28rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .community-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .community-actions .btn {
    width: 100%;
  }

  h2 {
    font-size: 2rem;
  }

  .feature-grid,
  .gameplay-showcase,
  .gallery {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .gameplay-showcase {
    min-height: 0;
    padding: 1rem;
  }

  .gameplay-image {
    margin-bottom: 0.4rem;
  }

  .art-panel figcaption {
    position: static;
    border-width: 1px 0 0;
    border-radius: 0;
    background: rgba(5, 6, 17, 0.92);
  }

  .gallery {
    grid-auto-rows: auto;
  }

  .gallery-item {
    aspect-ratio: 16 / 10;
  }

  .community-section {
    min-height: 470px;
  }

  .community-inner {
    margin-left: auto;
  }

  .steam-panel {
    padding: 2rem 1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .lightbox {
    padding: 4.25rem 1rem 1.25rem;
  }

  .lightbox-nav {
    top: auto;
    bottom: 1rem;
    width: 48px;
    height: 48px;
    font-size: 2.2rem;
    transform: none;
  }

  .lightbox-nav:hover,
  .lightbox-nav:focus-visible {
    transform: translateY(-2px);
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }

  .lightbox-content img {
    max-height: 64svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-logo {
    animation: none;
  }
}
