*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --header-bg: #1a1a1a;
  --hero-bg: #2a2a2a;
  --white: #ffffff;
  --light-grey: #b0b0b0;
  --nav-hover: #ffffff;
  --frame-purple: #4E12DA;
  --header-height: 80px;
  --nav-panel-inset-right: 6px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

html.is-scripted-scroll {
  scroll-behavior: auto;
}

body {
  font-family: 'Nunito', sans-serif;
  background: #111;
  overflow-x: hidden;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 12px 24px;
  background-color: #0099FF;
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  top: 0;
}

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-image: url('../images/header.png');
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  z-index: 100;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.header-company-logo {
  position: absolute;
  z-index: 102;
  top: -4px;
  left: clamp(14px, 2vw, 30px);
  width: clamp(96px, 7vw, 124px);
  line-height: 0;
  opacity: 0.9;
  filter: drop-shadow(0 4px 9px rgba(0, 0, 0, 0.48));
  transform-origin: top center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-company-logo img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.header-company-logo:hover {
  opacity: 1;
  transform: scale(1.055);
}

.header-company-logo:focus-visible {
  outline: 2px solid #0099FF;
  outline-offset: 4px;
  border-radius: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(3px, 0.7vw, 6px);
}

.nav::before,
.nav::after,
.nav-divider {
  content: '';
  display: block;
  height: clamp(16px, 2.25vw, 30px);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  flex: 0 0 auto;
}

.nav::before,
.nav::after {
  width: clamp(32px, 4.5vw, 60px);
  background-image: url('../images/nav_outer.png');
}

.nav::after {
  transform: scaleX(-1);
}

.nav > .nav-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  position: relative;
}

.nav > .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: #0099FF;
  box-shadow: 0 0 7px rgba(0, 153, 255, 0.55);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s ease;
}

.nav > .nav-link:hover::after,
.nav > .nav-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-divider {
  width: clamp(35px, 5vw, 66px);
  background-image: url('../images/nav_divider.png');
  pointer-events: none;
  user-select: none;
}

.nav-expander-wrap {
  position: absolute;
  top: 50%;
  right: clamp(20px, 2vw, 36px);
  transform: translateY(-50%);
  z-index: 101;
}

.nav-expander {
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(0deg);
  transition: transform 0.35s ease;
}

.site-header.is-nav-expanded .nav-expander {
  transform: rotate(90deg);
}

.nav-expander img {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.nav-expander:hover {
  opacity: 0.9;
}

.nav-expander:focus-visible {
  outline: 2px solid #0099FF;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Expandable Panel art */
.nav-expand-panel {
  position: absolute;
  top: 100%;
  right: var(--nav-panel-inset-right);
  width: 260px;
  min-height: 220px;
  padding: 28px 20px 22px;
  background-image: url('../images/header_expand_panel.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  transform: scaleY(0);
  transform-origin: top right;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.35s ease,
    opacity 0.3s ease,
    visibility 0.35s ease;
}

.site-header.is-nav-expanded .nav-expand-panel {
  transform: scaleY(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-expand-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.nav-expand-menu .nav-link {
  font-size: 18px;
  text-align: center;
  white-space: nowrap;
}

.nav-expand-spacer {
  flex: 1;
  min-height: 0;
}

.nav-link {
  background: linear-gradient(
    to bottom,
    #ffffff 0 34%,
    #0099ff 66% 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 1;
}

.nav > .nav-link[aria-current='page'] {
  opacity: 1;
  text-shadow: 0 0 14px rgba(0, 153, 255, 0.36);
}

.nav-link:focus-visible {
  opacity: 1;
  outline: 2px solid #4E12DA;
  outline-offset: 4px;
  border-radius: 2px;
}

.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

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

.site-header.is-section-transitioning {
  transform: translateY(0);
  opacity: 1;
}

/* ── HERO ── */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a1a1a;
  background-image:
    linear-gradient(rgba(8, 7, 18, 0.68), rgba(8, 7, 18, 0.78)),
    url('/images/New_homeBG2.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-gif {
  --hero-parallax-y: 0px;
  position: absolute;
  width: 300px;
  height: 300px;
  top: 600px;
  left: 50%;
  transform: translateX(-50%) translateY(var(--hero-parallax-y));
  background-image: url('../images/worker.gif');
  background-size: 100% 100%;
  will-change: transform;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hero_banner.png');
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 3;
}

.game-intro {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100vh;
  margin-top: -100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(96px, 12vh, 150px) 24px clamp(110px, 18vh, 190px);
  background: transparent;
  text-align: center;
}

.game-intro-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.game-title {
  line-height: 0;
}

.hero-title-img {
  width: min(1000px, 88vw);
  height: auto;
}

.wishlist-text {
  margin-top: clamp(-72px, -5.5vw, -26px);
  padding-bottom: 0.85em;
  font-family: 'Nunito', sans-serif;
  font-size: clamp(22px, 3.4vw, 52px);
  font-weight: 300;
  color: var(--light-grey);
  letter-spacing: -0.01em;
}

.wishlist-correction {
  position: relative;
  display: inline-block;
  line-height: 1.15;
  white-space: nowrap;
}

.wishlist-now {
  position: relative;
  display: inline-block;
  color: rgba(210, 210, 218, 0.7);
  text-decoration: none;
}

.wishlist-now::after {
  content: '';
  position: absolute;
  top: 53%;
  right: -0.08em;
  left: -0.08em;
  height: max(2px, 0.055em);
  border-radius: 999px;
  background: #b9dbff;
  transform: rotate(-7deg);
}

.wishlist-soon {
  position: absolute;
  top: 100%;
  left: 50%;
  color: #b9dbff;
  font-family: 'Segoe Print', 'Comic Sans MS', cursive;
  font-size: 0.76em;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transform: translateX(-50%) rotate(-10deg);
}

.steam-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 48px;
  background-color: #0099FF;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 153, 255, 0.28);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.steam-btn::before {
  content: '';
  position: absolute;
  inset: 2px;
  z-index: 0;
  border-radius: 8px;
  background: #202229;
  pointer-events: none;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 0.55s cubic-bezier(0.22, 0.75, 0.24, 1);
}

.steam-btn-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  transform: translateY(-1px);
}

.steam-btn-content {
  position: relative;
  z-index: 1;
  display: inline-grid;
}

.steam-btn-content-layer {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-block: 1px;
  margin-block: -1px;
  white-space: nowrap;
}

.steam-btn:hover {
  transform: scale(1.08);
  color: #0099FF;
  box-shadow:
    inset 0 0 0 2px #0099FF,
    0 10px 22px rgba(0, 153, 255, 0.38);
}

.steam-btn:hover::before {
  clip-path: polygon(0 0, 120% 0, 105% 100%, 0 100%);
}

.steam-btn:focus-visible {
  outline: 2px solid #0099FF;
  outline-offset: 4px;
}

/* ── MEDIA SECTION ── */
.media-section {
  --media-fade-mid: clamp(68px, 10vh, 110px);
  --media-fade-end: clamp(150px, 22vh, 240px);
  position: relative;
  z-index: 4;
  isolation: isolate;
  overflow: hidden;
  background-color: transparent;
  background-image: linear-gradient(
    to bottom,
    rgba(17, 17, 17, 0) 0,
    rgba(17, 17, 17, 0.78) var(--media-fade-mid),
    #111111 var(--media-fade-end),
    #111111 100%
  );
  width: 100%;
  min-height: calc(100vh + var(--media-fade-end) + 90px);
  padding: var(--media-fade-end) 0 90px;
  display: flex;
  flex-direction: column;
  gap: clamp(34px, 5vh, 58px);
  align-items: center;
  justify-content: center;
}

.media-section::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  background: url('../images/MediaBG.png') center / cover no-repeat;
  opacity: 0.7;
  filter: saturate(0.78) contrast(0.9);
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 var(--media-fade-end),
    #000 calc(100% - 150px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 var(--media-fade-end),
    #000 calc(100% - 150px),
    transparent 100%
  );
  pointer-events: none;
}

.game-intro .steam-btn {
  margin-top: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 72px 24px 24px;
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(92vw, 1600px);
  max-height: 86vh;
}

.lightbox-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 86vh;
  border-radius: 8px;
  object-fit: contain;
}

/* ── MEDIA CAROUSEL ── */
.media-heading {
  position: relative;
  z-index: 21;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
}

.media-label {
  color: #0099FF;
  font-family: 'Nunito', sans-serif;
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 700;
  letter-spacing: 0.28em;
  line-height: 1;
  text-transform: uppercase;
}

.media-title {
  position: relative;
  min-width: 11ch;
  min-height: 1em;
  background: linear-gradient(
    to bottom,
    #ffffff 0 34%,
    #0099FF 66% 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Nunito', sans-serif;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.media-carousel {
  --slide-width: min(880px, 62vw);
  --slide-height: min(495px, 34.875vw);
  --slide-half-width: min(440px, 31vw);
  --slide-half-height: min(247.5px, 17.4375vw);
  --media-frame-width: min(928px, 65.3818vw);
  --border-corner-extension: min(100px, 8vw);
  --border-corner-solid: calc(min(44px, 3.1vw) + var(--border-corner-extension));
  --border-corner-fade-end: calc(min(88px, 6.2vw) + var(--border-corner-extension));
  --media-carousel-y: clamp(22px, 3vh, 32px);
  --carousel-arrow-gap: clamp(2px, 0.5vw, 8px);
  --carousel-drag-x: 0px;
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 1728px;
  padding: 0 clamp(44px, 5vw, 78px);
}

.media-carousel::before {
  content: '';
  position: absolute;
  z-index: 4;
  top: calc(var(--media-carousel-y) + var(--slide-half-height));
  left: 50%;
  width: var(--media-frame-width);
  height: auto;
  aspect-ratio: 928 / 543;
  background: url('../images/Media_bg.gif') center / contain no-repeat;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.media-viewport {
  position: relative;
  width: 100%;
  height: clamp(300px, 37vw, 560px);
  overflow: visible;
  transform: translateY(var(--media-carousel-y));
  touch-action: pan-y;
  cursor: grab;
}

.media-viewport:focus-visible {
  outline: 2px solid #0099FF;
  outline-offset: 6px;
}

.media-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: start center;
  transform: translateX(var(--carousel-drag-x));
  transition: transform 0.26s cubic-bezier(0.22, 0.75, 0.24, 1);
  will-change: transform;
}

.media-carousel.is-dragging .media-track {
  transition: none;
}

.media-slide {
  grid-area: 1 / 1;
  width: var(--slide-width);
  aspect-ratio: 16 / 9;
  border: 3px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(rgba(8, 4, 18, 0.9), rgba(8, 4, 18, 0.9)) padding-box,
    linear-gradient(
      to right,
      #0099FF 0 var(--border-corner-solid),
      #4E12DA var(--border-corner-fade-end) calc(100% - var(--border-corner-fade-end)),
      #0099FF calc(100% - var(--border-corner-solid)) 100%
    ) top / 100% 3px no-repeat border-box,
    linear-gradient(
      to right,
      #0099FF 0 var(--border-corner-solid),
      #4E12DA var(--border-corner-fade-end) calc(100% - var(--border-corner-fade-end)),
      #0099FF calc(100% - var(--border-corner-solid)) 100%
    ) bottom / 100% 3px no-repeat border-box,
    linear-gradient(
      to bottom,
      #0099FF 0 var(--border-corner-solid),
      #4E12DA var(--border-corner-fade-end) calc(100% - var(--border-corner-fade-end)),
      #0099FF calc(100% - var(--border-corner-solid)) 100%
    ) left / 3px 100% no-repeat border-box,
    linear-gradient(
      to bottom,
      #0099FF 0 var(--border-corner-solid),
      #4E12DA var(--border-corner-fade-end) calc(100% - var(--border-corner-fade-end)),
      #0099FF calc(100% - var(--border-corner-solid)) 100%
    ) right / 3px 100% no-repeat border-box,
    linear-gradient(#0099FF, #0099FF) border-box;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(7%) scale(0.78);
  filter: brightness(0.42) saturate(0.7);
  transition:
    transform 0.45s ease,
    filter 0.45s ease,
    opacity 0.45s ease,
    visibility 0.45s ease;
}

.media-slide.is-active {
  z-index: 3;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) translateY(0) scale(1);
  filter: none;
}

.media-slide.is-previous,
.media-slide.is-next {
  z-index: 1;
  opacity: 0.78;
  visibility: visible;
  transform: translateX(0) translateY(0) scale(1);
}

.media-carousel.is-revealed .media-slide.is-previous,
.media-carousel.is-revealed .media-slide.is-next {
  pointer-events: auto;
}

.media-carousel.is-revealed .media-slide.is-previous {
  transform: translateX(-49%) translateY(0) scale(0.82);
}

.media-carousel.is-revealed .media-slide.is-next {
  transform: translateX(49%) translateY(0) scale(0.82);
}

.media-carousel.is-revealing .media-slide {
  transition-duration: 1.15s;
  transition-timing-function: cubic-bezier(0.22, 0.75, 0.24, 1);
}

.media-carousel.is-dragging .media-slide {
  transition-duration: 0.32s;
  transition-timing-function: cubic-bezier(0.22, 0.75, 0.24, 1);
}

.media-carousel.is-revealed .media-slide.is-previous:hover,
.media-carousel.is-revealed .media-slide.is-next:hover {
  filter: brightness(0.55) saturate(0.82);
}

.media-open {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 9px;
  overflow: hidden;
  background: transparent;
  cursor: grab;
  user-select: none;
}

.media-slide:not(.is-active) .media-open {
  cursor: grab;
}

.media-open:focus-visible {
  outline: 3px solid #0099FF;
  outline-offset: -6px;
}

.media-open .feature-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
}

.media-carousel.is-dragging .media-viewport,
.media-carousel.is-dragging .media-open,
.media-carousel.is-dragging .feature-img {
  cursor: grabbing;
}

.media-open .feature-img.media-contain {
  object-fit: contain;
  padding: clamp(14px, 3vw, 34px);
}

.carousel-arrow {
  position: absolute;
  top: calc(50% - 18px + var(--media-carousel-y));
  transform: translateY(-50%);
  z-index: 5;
  width: clamp(58px, 6vw, 76px);
  height: clamp(76px, 8vw, 96px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.carousel-arrow-icon {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
  pointer-events: none;
  transition: filter 0.18s ease;
}

.carousel-arrow-prev .carousel-arrow-icon {
  transform: scaleX(-1);
}

.carousel-arrow:hover .carousel-arrow-icon {
  filter: brightness(1.4) drop-shadow(0 0 5px rgba(0, 153, 255, 0.4));
}

.carousel-arrow:focus-visible {
  outline: 2px solid #0099FF;
  outline-offset: 4px;
}

.carousel-arrow-prev {
  right: calc(50% + var(--slide-half-width) + var(--carousel-arrow-gap));
  left: auto;
}

.carousel-arrow-next {
  right: auto;
  left: calc(50% + var(--slide-half-width) + var(--carousel-arrow-gap));
}

.carousel-arrow-next:active .carousel-arrow-icon {
  animation: arrow-bump-right 0.16s ease-out;
}

.carousel-arrow-prev:active .carousel-arrow-icon {
  animation: arrow-bump-left 0.16s ease-out;
}

@keyframes arrow-bump-right {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

@keyframes arrow-bump-left {
  0%, 100% { transform: scaleX(-1) translateX(0); }
  50% { transform: scaleX(-1) translateX(5px); }
}

.carousel-dots {
  position: absolute;
  z-index: 6;
  top: calc(var(--media-carousel-y) + var(--slide-height) + 34px);
  left: 50%;
  width: 192px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 18px;
  margin: 0;
  background: url('../images/media_dot_container.png') center / contain no-repeat;
  transform: translate(-50%, -50%);
}

.carousel-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid #646b74;
  border-radius: 50%;
  background: #2d3238;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.carousel-dot:hover {
  border-color: #8a929c;
}

.carousel-dot.is-active {
  border-color: #0099FF;
  background: #0099FF;
  box-shadow: 0 0 9px rgba(0, 153, 255, 0.5);
  transform: scale(1.08);
}

.carousel-dot:focus-visible {
  outline: 2px solid #0099FF;
  outline-offset: 4px;
}

.lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  line-height: 0;
  transform: translate(48%, -48%);
  cursor: pointer;
}

.lightbox-close-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover .lightbox-close-icon {
  filter: brightness(1.18);
  transform: scale(1.05);
}

.lightbox-close:active .lightbox-close-icon {
  transform: scale(0.94);
}

.lightbox-close:focus-visible {
  outline: 2px solid #0099FF;
  outline-offset: 3px;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .lightbox-close {
    transform: translate(20%, -42%);
  }

  .game-intro {
    padding: 90px 18px 86px;
  }

  .game-intro-top {
    gap: 0;
  }

  .hero-title-img {
    width: min(760px, 94vw);
  }

  .wishlist-text {
    font-size: clamp(20px, 7vw, 34px);
  }

  .game-intro .steam-btn {
    padding: 14px 36px;
    font-size: 22px;
  }

  .steam-btn-icon {
    width: 25px;
    height: 25px;
  }

  .media-section {
    min-height: calc(100vh + var(--media-fade-end) + 70px);
    padding: var(--media-fade-end) 0 70px;
    gap: 28px;
  }

  .media-title {
    font-size: clamp(32px, 11vw, 48px);
  }

  .media-carousel {
    --slide-width: calc(100vw - 108px);
    --slide-height: calc(56.25vw - 60.75px);
    --slide-half-width: calc(50vw - 54px);
    --slide-half-height: calc(28.125vw - 30.375px);
    --media-frame-width: calc(105.4545vw - 113.8909px);
    --border-corner-solid: calc(5vw - 5.4px + var(--border-corner-extension));
    --border-corner-fade-end: calc(10vw - 10.8px + var(--border-corner-extension));
    --media-carousel-y: 20px;
    padding-inline: 46px;
  }

  .media-viewport {
    height: clamp(220px, 56vw, 360px);
  }

  .media-slide {
    border-radius: 8px;
  }

  .media-open {
    border-radius: 5px;
  }

  .carousel-arrow {
    width: 44px;
    height: 62px;
  }

  .carousel-arrow-icon {
    width: 32px;
    height: 32px;
  }

}

@media (max-width: 420px) {
  .media-carousel {
    --slide-width: calc(100vw - 92px);
    --slide-height: calc(56.25vw - 51.75px);
    --slide-half-width: calc(50vw - 46px);
    --slide-half-height: calc(28.125vw - 25.875px);
    --media-frame-width: calc(105.4545vw - 97.0182px);
    --border-corner-solid: calc(5vw - 4.6px + var(--border-corner-extension));
    --border-corner-fade-end: calc(10vw - 9.2px + var(--border-corner-extension));
    padding-inline: 40px;
  }

  .media-viewport {
    height: clamp(190px, 56vw, 250px);
  }

  .media-open .feature-img.media-contain {
    padding: 10px;
  }
}

/* ── FOOTER ── */
.footer {
  position: relative;
  z-index: 5;
  isolation: isolate;
  background-color: #111111;
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  padding: 60px 80px 30px;
  border-top: 1px solid #2a2a2a;
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 80px;
  margin-bottom: 40px;
  position: relative;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-socials {
  display: flex;
  gap: 20px;
  align-items: center;
}

.social-icon {
  color: var(--white);
  opacity: 0.75;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.social-icon:hover,
.social-icon:focus-visible {
  color: #0099FF;
  opacity: 1;
}

.social-icon:focus-visible {
  opacity: 1;
  outline: 2px solid #0099FF;
  outline-offset: 4px;
  border-radius: 4px;
}

.footer-steam-label {
  font-size: 18px;
  font-weight: 700;
  opacity: 0.75;
  padding-left: 4px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-heading {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.footer-link {
  color: var(--light-grey);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--white);
}

.footer-link:focus-visible {
  color: var(--white);
  outline: 2px solid #0099FF;
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-logo-img {
  width: 200px;
  object-fit: contain;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

@media (min-width: 901px) {
  .footer-left,
  .footer-col {
    transform: translateY(-8px);
  }
}

@media (max-width: 900px) {
  .footer-logo-img {
    position: static;
    margin: 0 auto;
    display: block;
    top: unset;
    transform: none;
  }

  .footer-main {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--light-grey);
  opacity: 0.6;
  line-height: 1.8;
}

/* ── LEGAL / PRIVACY PAGE ── */
.about-section.legal-page {
  height: auto;
  min-height: 100vh;
  padding-bottom: 80px;
}

.legal-box {
  width: 860px;
  padding: 40px;
  background-image: url('../images/legalbox.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.legal-box .about-text + .about-text,
.legal-box .legal-heading + .about-text {
  margin-top: 16px;
}

.legal-updated {
  opacity: 0.75;
  margin-bottom: 8px;
}

.legal-heading {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-top: 28px;
}

.legal-link {
  color: #0099FF;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-link:hover {
  color: var(--white);
}

.legal-link:focus-visible {
  outline: 2px solid #0099FF;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── NEWS ── */
.news-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
  background-color: #161616;
  background-image: url('../images/homeBG.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px;
}

.news-section::before,
.news-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.news-section::before {
  z-index: 1;
  background-image: url('../images/homeBG3.png');
}

.news-section::after {
  z-index: 10;
  background-image: url('../images/homeBG2.png');
}

.news-container {
  position: relative;
  z-index: 20;
  text-align: center;
}

.news-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(32px, 6vw, 80px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.news-subtitle {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  color: var(--light-grey);
}

@media (max-width: 720px) {
  .header-company-logo {
    display: none;
  }
}

@media (max-width: 600px) {
  .news-section {
    background-attachment: scroll;
  }

  .site-header {
    justify-content: flex-start;
    padding-left: 12px;
  }

  .nav {
    gap: 7px;
  }

  .nav::before,
  .nav::after,
  .nav-divider {
    display: none;
  }

  .nav > .nav-link {
    font-size: clamp(10px, 3.2vw, 12px);
    letter-spacing: 0.08em;
  }
}

/* ── ABOUT ── */
.about-section {
  width: 100%;
  height: 100vh;
  background-color: #161616;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  padding: 120px 20px 0;
}

.about-section.contact-scene-background,
.error-section.contact-scene-background {
  background:
    linear-gradient(180deg, rgba(19, 18, 35, 0.6), rgba(22, 22, 22, 0.96)),
    url('../images/homeBG.png') center / cover fixed;
}

.about-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
}

.about-section.legal-page > .about-title {
  background: linear-gradient(
    to bottom,
    #ffffff 0 34%,
    #0099FF 66% 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-box {
  width: 860px;
  background-image: url('../images/personalbox.png');
  background-size: 100% 100%;
  padding: 40px;
}

.about-text {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--light-grey);
  line-height: 1.8;
}

/* -- DEVELOPERS -- */
.about-box p + p {
  margin-top: 16px;
}

.dev-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dev-box .about-text {
  width: 860px;
  font-size: 24px;
  background-image: url('../images/devbox.png');
  background-size: 100% 100%;
  padding: 40px;
}

/* ── 404 ERROR PAGE ── */
.error-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 80px;
  background: linear-gradient(180deg, #121212 0%, #181818 60%, #111 100%);
}

.error-container {
  text-align: center;
  max-width: 1200px;
  width: 100%;
  padding: 84px 48px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 36px;
  background: rgba(20, 20, 20, 0.95);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.35);
}

.error-grid {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 40px;
  align-items: center;
}

.error-image {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-image img {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
  border-radius: 24px;
}

.error-copy-panel {
 grid-column: 2;
}

.error-copy-panel p,
.error-copy-panel h1 {
  width: 100%;
}

.error-subtitle {
  color: var(--light-grey);
  font-size: 20px;
  line-height: 1.8;
  margin: 0;
}

.error-code {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(72px, 14vw, 138px);
  font-weight: 900;
  color: #0099FF;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.error-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(26px, 4vw, 28px);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 18px;
}

.error-copy {
  color: var(--light-grey);
  font-size: 17px;
  line-height: 1.9;
  margin: 0 auto 30px;
  max-width: 540px;
}

.error-btn {
  display: inline-block;
  padding: 16px 44px;
  margin-bottom: 28px;
  background-color: #0099FF;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.error-btn:hover,
.error-btn:focus-visible {
  transform: scale(1.08);
}

.error-btn > span {
  position: relative;
  z-index: 1;
}

.error-suggestion {
  color: var(--light-grey);
  margin-bottom: 18px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.error-links a {
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 12px 20px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.error-links a:hover,
.error-links a:focus-visible {
  background-color: rgba(0, 153, 255, 0.12);
  color: #0099FF;
}

@media (max-width: 700px) {
  .contact-scene-background {
    background-attachment: scroll;
  }

  .error-grid {
    grid-template-columns: 1fr;
  }
  .error-image {
    grid-column: 1;
  }
  .error-copy-panel {
    grid-column: 1;
  }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header {
    transition: none;
  }

  .nav-link,
  .nav > .nav-link::after,
  .nav-expander,
  .nav-expand-panel,
  .nav-expand-menu .nav-link,
  .carousel-arrow,
  .carousel-arrow-icon,
  .carousel-dot,
  .media-track,
  .media-slide,
  .lightbox-close-icon,
  .steam-btn,
  .steam-btn::before,
  .submit-btn,
  .social-icon,
  .footer-link {
    transition: none;
  }

  .site-header.is-nav-expanded .nav-expander {
    transform: rotate(90deg);
  }

  .nav-expand-panel {
    transform: none;
    opacity: 0;
    visibility: hidden;
  }

  .site-header.is-nav-expanded .nav-expand-panel {
    opacity: 1;
    visibility: visible;
  }

  .steam-btn:hover,
  .submit-btn:hover {
    transform: none;
  }

  .carousel-arrow:hover {
    transform: translateY(-50%);
  }

  .lightbox-close:hover .lightbox-close-icon,
  .lightbox-close:active .lightbox-close-icon {
    transform: none;
  }

  .carousel-arrow-next:active .carousel-arrow-icon,
  .carousel-arrow-prev:active .carousel-arrow-icon {
    animation: none;
  }
}
