:root {
  --bg-0: #0f1512;
  --bg-1: #08100d;
  --text: #f1efe8;

  --accent: #2870bd;
  --accentText: #ffffff;

  --line: rgba(180, 173, 156, 0.22);

  --max: 1120px;
  --tap: 44px;

  --radius: 18px;

  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.28);

  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-border: rgba(255, 255, 255, 0.16);
  --btn-text: rgba(255, 255, 255, 0.92);

  --hero-maxw: 1400px;
  --hero-top-pad: clamp(28px, 4vh, 46px);
  --hero-bottom-pad: clamp(18px, 4vh, 56px);

  /*THIS IS THE VALUE THAT MOVES SECTIONS (MOST IMPORTANTLY THE TRAILER - DOWN SO IT WONT OVERLAP WITH THE NAVBAR*/
  --header-h: 42px;
}

/* -------------------------
   Base / Reset
-------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  /*USED WHEN I WANTED TO PUSH THE BG DOWN BELOW THE BAR*/
  /* padding-top: var(--header-h); */
  position: relative;

  color: var(--text);
  background: var(--bg-0);
  font: 16px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: 0.2px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, var(--bg-0), var(--bg-1));
}

body.no-scroll {
  overflow: hidden;
  touch-action: none;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

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

/* Skip link */
.skip-link {
  position: absolute;
  top: 10px;
  left: -999px;
  z-index: 9999;

  padding: 10px 12px;
  border-radius: 10px;

  background: rgba(0, 0, 0, 0.85);
  color: #fff;
}

.skip-link:focus {
  left: 12px;
}

/* -------------------------
   Top nav
-------------------------- */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;

  background: rgba(10, 14, 12, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(
    rgba(12,18,15,0.92),
    rgba(10,14,12,0.92)
  );
  /* backdrop-filter: saturate(140%) blur(10px); */
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand,
.studio-logo {
  display: flex;
  align-items: center;
}

.studio-logo a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.studio-logo img {
  width: auto;
  height: 60px;
  opacity: 1;
  filter:
    brightness(0) invert(1)
    sepia(0.15)
    saturate(0.6)
    hue-rotate(-5deg)
    brightness(0.92);
  transition: opacity 0.2s ease;
}

.studio-logo img:hover {
  opacity: 0.7;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.navlinks a {
  opacity: 0.9;
}

.navlinks a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* -------------------------
   Buttons
-------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: var(--tap);
  padding: 12px 16px;
  border: 1px solid var(--btn-border);
  border-radius: 999px;

  background: var(--btn-bg);
  color: var(--btn-text);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;

  font-size: 14px;
  font-weight: 600;

  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.btn.primary {
  background: var(--accent);
  color: var(--accentText);
  border-color: transparent;
}

.btn.primary:hover {
  background: #4f8edc;
}

/* -------------------------
   Hero
-------------------------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;

  background: url("../img/wyldheart-scene.png") center 56% / cover no-repeat;
  filter: saturate(1.05) contrast(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background:
    radial-gradient(120% 85% at 50% 35%, rgba(15, 21, 18, 0.08), rgba(15, 21, 18, 0.84)),
    linear-gradient(180deg, rgba(15, 21, 18, 0.06), rgba(15, 21, 18, 0.92));
}

.hero-inner {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;

  width: min(var(--hero-maxw), calc(100% - 48px));
  min-height: calc(100svh - var(--header-h));
  margin-inline: auto;
  padding-top: calc(var(--hero-top-pad) + var(--header-h));
  padding-bottom: var(--hero-bottom-pad);

  text-align: center;
}

@supports (min-height: 100dvh) {
  .hero-inner {
    min-height: calc(100dvh - var(--header-h));
  }
}

/* -------------------------
   Hero trailer + wishlist
-------------------------- */
.trailer-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.trailer-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
}

.hero-info-box {
  max-width: 980px;
  /* max-width: 100%; */
  padding: 16px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(15,21,18,0.75);
  backdrop-filter: blur(10px);
  box-shadow:
    0 18px 48px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.hero-info-box h1 {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.3;
  font-weight: 700;
  text-align: left;
}

.hero-info-box p {
  margin: 8px 0 0;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.4;
  text-align: left;
  color: rgba(255,255,255,0.88);
}

.heart {
  color: #ff6b6b;
  text-shadow: 0 0 6px rgba(255,107,107,0.5);
}

.heart {
  color: #2870bd;
  font-size: 23px;
  display: inline-block;
  margin-left: 4px;
  animation: wyldheartPulse 2.2s ease-in-out infinite;
}

@keyframes wyldheartPulse {
  0% {
    transform: scale(1);
    color: #2870bd;
    text-shadow: 0 0 0 rgba(40,112,189,0);
  }

  40% {
    transform: scale(1.18);
    color: #4f8edc;
    text-shadow: 0 0 10px rgba(40,112,189,0.6);
  }

  70% {
    transform: scale(1.05);
    text-shadow: 0 0 6px rgba(40,112,189,0.35);
  }

  100% {
    transform: scale(1);
    color: #2870bd;
    text-shadow: 0 0 0 rgba(40,112,189,0);
  }
}

.video-wrap-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: translateZ(0);

  flex: 1 1 900px;
  max-width: 980px;
  min-width: 0;
  aspect-ratio: 16 / 9;

  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 40px rgba(72, 143, 199, 0.16);
}

.video-wrap-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;

  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04), transparent 14%, transparent 86%, rgba(0, 0, 0, 0.22)),
    radial-gradient(circle at 50% 50%, transparent 72%, rgba(0, 0, 0, 0.18));
}

#player {
  position: absolute;
  inset: 0;
  z-index: 1;
  visibility: visible;
  width: 100%;
  height: 100%;
}

#player iframe,
.video-iframe-hero,
.video-iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;

  background: black;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.video-fade.is-visible {
  opacity: 1;
}

/* -------------------------
   Wishlist buttons
-------------------------- */
.wishlist-buttons {
  position: relative;
  z-index: 5;
  align-self: center;

  display: flex;
  flex: 0 0 230px;
  flex-direction: column;
  gap: 18px;

  margin-left: -42px;
}

.btn-epic,
.btn-steam {
  display: inline-flex;
  align-items: center;
  gap: 14px;

  min-height: 64px;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;

  color: #fff;
  text-decoration: none;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    filter 0.18s ease;
}

.btn-epic {
  background: linear-gradient(180deg, #1a1a1a, #0f0f0f);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-epic:hover,
.btn-epic:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #2b2b2b, #151515);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.42),
    0 0 0 6px rgba(255, 255, 255, 0.05);
  outline: none;
}

.btn-steam {
  background: linear-gradient(180deg, #1b2838 0%, #171a21 100%);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-steam:hover,
.btn-steam:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.42),
    0 0 0 6px rgba(59, 130, 246, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  outline: none;
}

.btn-steam:active,
.btn-epic:active {
  transform: translateY(0);
}

/* Shared for both Epic and Steam and KS*/
.btn-steam__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-steam__icon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.btn-steam__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.btn-steam__text strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.btn-steam__text small {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.btn-epic.kickstarter-mobile {
    background: #05CE78;
    /* color: rgba(241, 239, 232, 0.72); */
    color:#151515;
  }

  .btn-epic.discord-mobile {
    background:  #7785cc;
    /* color: rgba(241, 239, 232, 0.72); */
  }

/* -------------------------
   Hero bottom chips
-------------------------- */
.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2vh, 18px);

  width: 100%;
  margin-top: clamp(1rem, 2vw, 2rem);
}

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

  font-size: 13px;
  color: rgba(255, 255, 255, 0.74);
}

.chip {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0.9;
}

/* -------------------------
   Shared layout
-------------------------- */
.divider {
  height: 1px;
  margin: 0;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

section:not(.hero) {
  padding: clamp(40px, 6vw, 84px) 0;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0.2px;
}

.section-sub {
  max-width: 66ch;
  margin: 0 0 22px;
  color: rgba(241, 239, 232, 0.72);
}

.cta-row,
.cta-row-left,
.cta-row-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.cta-row {
  justify-content: flex-start;
}

.cta-row-left {
  justify-content: flex-start;
}

.cta-row-right {
  justify-content: flex-end;
}

/* -------------------------
   Gameplay / panels
-------------------------- */
.grid-2 {
  display: grid;
  /* grid-template-columns: 1.2fr 0.8fr; */
  grid-template-columns: 1.35fr 0.65fr;
  align-items: stretch;
  gap: 18px;
}

.panel {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.panel-pad {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px;
}

.panel-title {
  margin: 0 0 10px;
  font-size: 16px;
}

.panel-pad .cta-row {
  margin-top: auto;
}

.bullets {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.bullets li {
  margin: 10px 0;
}

.bullets strong {
  color: rgba(255, 255, 255, 0.88);
}

.hero-description {
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1.6;
  color: rgba(241, 239, 232, 0.82);
}


/* -------------------------
   About  / panels
-------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 28px;
}

.about-card h3 {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-card {
  margin: 0;
}

.about-card img {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;

  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow-soft);
}

.about-card figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

/* -------------------------
   Video panel
-------------------------- */
.panel--video {
  display: flex;
  padding: 0;
  transition: opacity 0.4s ease;
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.35);
}

/* -------------------------
   Social icons
-------------------------- */
.social-bar {
  display: flex;
  gap: 16px;
  font-size: 28px;
}

.social-bar a {
  color: #fff;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-bar a:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}

/* -------------------------
   Carousel
-------------------------- */
.carousel {
  position: relative;
  margin-top: 28px;
}

.carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 10px;

  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.shot {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  transform: translateZ(0);
  text-align: left !important;

  width: min(420px, 78vw);
  height: 0;
  padding-top: 56.25%; /* 16:9 fallback */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;

  scroll-snap-align: start;
  cursor: pointer;

  background-color: rgba(0, 0, 0, 0.25);
  background-image:
    var(--shot-image),
    radial-gradient(120% 100% at 30% 20%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45));
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  appearance: none;
  -webkit-appearance: none;

  min-width: 0;
  min-height: 0;
}

@supports (aspect-ratio: 16 / 9) {
  .shot {
    height: auto;
    padding-top: 0;
    aspect-ratio: 16 / 9;
  }
}

.shot::after {
  content: attr(data-cap);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  padding: 10px 14px;

  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);

  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);

  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;

  background: rgba(15, 21, 18, 0.45);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  user-select: none;
  opacity: 0.85;
}

.carousel-btn:hover {
  opacity: 1;
  background: rgba(15, 21, 18, 0.65);
  border-color: rgba(255, 255, 255, 0.24);
}

.carousel-btn.prev {
  left: -10px;
}

.carousel-btn.next {
  right: -10px;
}

@media (hover: none) {
  .carousel-btn {
    display: none;
  }
}

/* ------------------------
  VINDSVEPT
   ----------------------- */

  .vindsvept{
      padding: 18px 22px;
      border-radius: 16px;

      background: rgba(15,21,18,0.92);
      border: 1px solid rgba(255,255,255,0.14);

      color: var(--text);
      text-align: center;

      box-shadow: 0 20px 60px rgba(0,0,0,0.5);
      backdrop-filter: blur(10px);
  }

  #vindsvept {
    position: relative;
    inset: 0;
    display: grid;
    place-items: center;
  }

  .vindsvept-panel {
    position: relative;
    width: min(820px, 100%);
    padding: 34px 42px 30px;
    border-radius: 28px;
    text-align: center;

    background:
      linear-gradient(180deg, rgba(12,19,17,0.96), rgba(8,12,11,0.94)),
      radial-gradient(circle at top, rgba(200,170,110,0.08), transparent 45%);
    border: 1px solid rgba(214,184,129,0.18);
    box-shadow:
      0 30px 80px rgba(0,0,0,0.55),
      0 0 0 1px rgba(255,255,255,0.03) inset,
      0 0 30px rgba(183,145,78,0.08);
    backdrop-filter: blur(14px);

  }

  .vindsvept-player-frame {
    margin-top: 22px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  }

  .vindsvept-player-frame iframe {
    display: block;
    width: 100%;
    border: 0;
  }

  .vindsvept-runes {
    margin-bottom: 18px;
    color: rgba(255,245,220,0.85);
    font-size: 1.8rem;
    letter-spacing: 0.2em;
    text-align: center;
    opacity: 0.9;
  }

  .vindsvept-subtitle {
    margin: 0 0 22px;
    color: rgba(220,214,194,0.72);
    font-size: 0.98rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

/* -------------------------
   Press 
-------------------------- */
.press-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.card-sub {
  margin: 0 0 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.facts {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.patch-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.patch-title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  color: rgba(241, 239, 232, 0.95);
}

.patch-date {
  white-space: nowrap;

  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.06);
  color: rgba(241, 239, 232, 0.72);
  font-size: 12px;
}

.patch ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.patch li {
  margin: 4px 0;
}

/* -------------------------
   Image viewer
-------------------------- */
.img-viewer {
  position: fixed;
  inset: 0;
  z-index: 2000;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;

  touch-action: pan-y;
}

.img-viewer.active {
  opacity: 1;
  pointer-events: auto;
}

.img-viewer img {
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 14px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-user-drag: none;
  cursor: pointer;
}

.img-viewer .carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2001;
  transform: translateY(-50%);
}

.img-viewer .carousel-btn.prev {
  left: 16px;
}

.img-viewer .carousel-btn.next {
  right: 16px;
}

/* -------------------------
   Footer
-------------------------- */
footer {
  padding: 36px 0 54px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links span {
  opacity: 0.5;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

/* -------------------------
   Responsive
-------------------------- */

@media (max-width: 720px) {
  .studio-logo img {
    height: 32px;
  }
}

@media (max-width: 640px) {
  .wishlist-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn-epic,
  .btn-steam {
    width: 100%;
    min-height: 52px;
    padding: 10px 14px;
    border-radius: 14px;
  }

  .btn-steam__icon {
    width: 36px;
    height: 36px;
  }

  .btn-steam__icon img {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-row {
    gap: 10px;
  }

  .social-bar {
    gap: 12px;
    font-size: 20px;
  }

  .topbar-inner {
    gap: 10px;
  }
}

@media (max-width: 900px) {

  .hero-info-box {
    position: static;
    max-width: 100%;
  }

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

  .hero-inner {
    width: min(94vw, 760px);
    min-height: auto;
  }

  .video-wrap-hero {
    flex: none;
    max-width: 100%;
  }

  .wishlist-buttons {
    flex: none;
    flex-direction: row;
    width: 100%;
    gap: 14px;
    margin-left: 0;
  }

  .btn-epic,
  .btn-steam {
    flex: 1 1 0;
    min-height: 64px;
    padding: 14px 16px;
    border-radius: 18px;
  }

  .hero-bottom {
    margin-top: 1rem;
  }

  .navlinks {
    display: none;
  }

  .trailer-main {
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  }

  .video-wrap-hero {
    width: 100%;
    max-width: 100%;
    flex: none;
    aspect-ratio: 16 / 9;
    min-height: 220px;
  }

  #player,
  .video-iframe-hero {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .wishlist-buttons {
    width: 100%;
    margin-left: 0;
    align-self: stretch;
    flex-wrap: wrap;
  }


  .btn-epic.wishlist-mobile {
    display:none;
  }

  .btn-epic.kickstarter-mobile {
    flex-basis: 100%;
  }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 520px) {
  .trailer-row {
    display: grid;
    grid-template-columns: minmax(240px, 36%) 1fr;
    grid-template-areas:
      "info video"
      "buttons buttons";
    align-items: stretch;
    gap: 14px;
    width: 100%;
  }

  .trailer-main {
    display: contents;
  }

  .hero-info-box {
    grid-area: info;
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
  }

  .video-wrap-hero {
    grid-area: video;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
  }

  #player,
  #player iframe {
    width: 100%;
    height: 100%;
  }

  .wishlist-buttons {
    grid-area: buttons;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 14px;
    margin-left: 0;
    align-self: stretch;
  }

  .btn-epic,
  .btn-steam {
    width: 100%;
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  :root {
    --header-h: 64px;
  }

  .topbar-inner {
    min-height: var(--header-h);
    padding: 6px 0;
  }

  .studio-logo img {
    height: 40px;
  }

  .social-bar {
    font-size: 22px;
    gap: 14px;
  }

  .cards,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  #gameplay .video-wrap {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%;
    overflow: hidden;
    background: #000;
  }

  #gameplay .video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    border: 0;
    transform: none;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding-bottom: 32px;
  }

  .wishlist-buttons {
    gap: 12px;
    margin-top: 6px;
  }

  .btn-epic,
  .btn-steam {
    min-height: 60px;
    border-radius: 16px;

    display: flex;
    align-items: center;
    gap: 16px;

    box-shadow:
      0 10px 22px rgba(0,0,0,0.35),
      inset 0 1px 0 rgba(255,255,255,0.06);
  }

  .btn-steam__icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .btn-steam__icon img {
    width: 22px;
    height: 22px;
  }

  .btn-steam__text strong {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
  }

  .btn-steam__text small {
    font-size: 11px;
    opacity: 0.8;
  }

  /* press feedback */
  .btn-epic:active,
  .btn-steam:active {
    transform: scale(0.98);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* -------------------------
   Gameplay section: mobile landscape omg patches
-------------------------- */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 520px) {
  #gameplay .grid-2 {
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    gap: 14px;
    align-items: start;
  }

  #gameplay .panel--video,
  #gameplay .panel {
    min-width: 0;
  }

  #gameplay .video-wrap {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    background: #000;
  }

  #gameplay .video-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }

  #gameplay .panel-pad {
    padding: 14px;
  }

  #gameplay .panel-title {
    margin: 0 0 8px;
    font-size: 15px;
  }

  #gameplay .bullets {
    font-size: 13px;
    line-height: 1.4;
  }

  #gameplay .bullets li {
    margin: 6px 0;
  }

  #gameplay .cta-row {
    margin-top: 10px;
  }

  #gameplay .btn {
    width: auto;
  }
}

@media (min-width: 1600px) {
  .hero {
    padding-inline: 2vw;
  }

  .hero-inner {
    width: 96vw;
    max-width: none;
    padding-top: 120px;
    padding-bottom: 20px;
  }

  .trailer-row {
    display: grid;
    grid-template-columns: 32vw 56vw;
    gap: 3vw;
    align-items: center;
    width: 100%;
    max-width: none;
  }

  .hero-info-box {
    max-width: none;
    text-align: left;
  }

  .hero-info-box h1 {
    font-size: clamp(2.2rem, 2.6vw, 4.2rem);
    line-height: 1.05;
  }

  .hero-info-box p {
    font-size: clamp(1.05rem, 1.1vw, 1.5rem);
    line-height: 1.45;
    max-width: 42ch;
  }

  .trailer-main {
    width: 100%;
    max-width: none;
  }

  .video-wrap-hero {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .video-iframe-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .wishlist-buttons {
    width: 100%;
    max-width: none;
    gap: 16px;
  }

  .btn-epic,
  .btn-steam {
    min-height: 64px;
    font-size: 1.05rem;
    padding: 16px 22px;
  }

  .hero-bottom {
    width: 100%;
    max-width: none;
  }

  .meta-row {
    gap: 12px;
  }

  .chip {
    font-size: 0.95rem;
    padding: 8px 14px;
  }
}

@media (min-width: 1600px) {
  .topbar-inner{
    padding: clamp(18px, 1.2vw, 28px) 0;
  }

  .studio-logo img{
    height: 38px; /* was 30px */
  }

  .navlinks{
    font-size: 15px;
    gap: 24px;
  }

  .social-bar{
    font-size: 28px;
    gap: 18px;
  }
}