﻿:root {
  --bg: #000000;
  --nav-bg: rgba(0, 0, 0, 0.6);
  --nav-blur: blur(10px);
}

html, body {
  margin: 0;
  height: 100%;
  font-family: 'Bruno Ace', system-ui, sans-serif;
  color: white;
}

body {
  min-height: 100%;
  overflow-x: hidden;

  /* SOLID BACKGROUND + GRID LINES */
  background-color: #051013; /* solid base color */
}


/* ---------------- NAVIGATION ---------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background-color: transparent;
  backdrop-filter: none;
  z-index: 10000;
  transition: background-color 0.5s ease, opacity 3s ease-in-out;
  opacity: 1;
}

.navbar.scrolled {
  background-color: #000000;
}

.navbar.visible {
  opacity: 1;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  height: 36px;
  width: auto;
}

.site-name {
  font-size: 1.25rem;
  font-weight: 600;
}

.nav-right {
  --nav-separator-offset: -0.75rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-right a {
  position: relative;
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.nav-right > a:not(.nav-last-section):not(.nav-steam-button)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: var(--nav-separator-offset);
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-50%);
  pointer-events: none;
}

.nav-right a:hover,
.nav-right a:focus-visible {
  color: #ff9138;
}

.nav-right .nav-steam-button {
  --nav-button-cut: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  color: #050505;
  background: #ff9138;
  border-radius: 0;
  clip-path: polygon(
    0 0,
    calc(100% - var(--nav-button-cut)) 0,
    100% var(--nav-button-cut),
    100% 100%,
    var(--nav-button-cut) 100%,
    0 calc(100% - var(--nav-button-cut))
  );
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-right .nav-steam-button:hover,
.nav-right .nav-steam-button:focus-visible {
  color: #050505;
  background: #ffad66;
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 10005;
}

.hamburger::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: #54FAFF;
  box-shadow: 0 8px 0 #54FAFF, 0 -8px 0 #54FAFF;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hamburger.active::before {
  content: "X";
  width: auto;
  height: auto;
  color: #ff9138;
  background: transparent;
  box-shadow: none;
  font: 600 1.8rem/1 Arial, sans-serif;
}

@media (max-width: 900px) {
  .nav-right {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-right.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    min-height: 100dvh;
    height: 100dvh;
    padding: 6rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(0.75rem, 2.2vh, 1.4rem);
    background: rgba(0, 0, 0, 0.98);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 10002;
    text-align: center;
    overflow-y: auto;
    box-sizing: border-box;
  }

  .nav-right.fullscreen.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-right.fullscreen::before {
    content: "";
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: url('images/logo.png') no-repeat center center;
    background-size: 64px auto;
    width: 64px;
    height: 64px;
    opacity: 0;
    animation: fadeInLogo 0.8s ease forwards 0.3s;
    z-index: 10003;
  }

  @keyframes fadeInLogo {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
  }

  .nav-right.fullscreen a {
    font-size: 1.4rem;
    color: #54FAFF;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    z-index: 10004;
  }

  .nav-right.fullscreen > a::after {
    display: none;
  }

  .nav-right.fullscreen a:hover,
  .nav-right.fullscreen a:focus-visible {
    color: #ff9138;
  }

  .nav-right.fullscreen .nav-steam-button {
    padding: 0.8rem 1.35rem;
    color: #050505;
    background: #ff9138;
  }

  .nav-right.fullscreen .nav-steam-button:hover,
  .nav-right.fullscreen .nav-steam-button:focus-visible {
    color: #050505;
    background: #ffad66;
  }

  body.nav-open .hero {
    opacity: 0;
    transition: opacity 0.3s ease;
  }
}

body.nav-open {
  overflow: hidden;
}

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background: #000000;
  opacity: 1;
  transition: opacity 1.5s ease-in-out;
  display: grid;
  place-items: center;
  text-align: center;
  z-index: 1;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(140px, 22vh, 200px);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.68) 0%,
    rgba(0, 0, 0, 0.32) 45%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
  z-index: 0;
}

.hero.visible {
  opacity: 1;
}

.hero-content {
  position: absolute;
  bottom: 8%;
  left: 50%;
  display: flex;
  width: min(980px, calc(100% - 2rem));
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  transform: translateX(-50%);
  z-index: 10;
}

.hero-game-logo {
  display: block;
  width: clamp(384px, 45.6vw, 576px);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 5px 4px rgba(0, 0, 0, 0.95));
  user-select: none;
}

.hero-description {
  max-width: 940px;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1rem, 1.55vw, 1.35rem);
  line-height: 1.55;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 3px 5px rgba(0, 0, 0, 1);
}

@media (min-width: 901px) and (max-width: 1100px) {
  .navbar {
    padding: 0 1rem;
  }

  .nav-right {
    --nav-separator-offset: -0.375rem;
    gap: 0.75rem;
  }

  .nav-right a {
    font-size: 0.82rem;
  }

  .nav-right .nav-steam-button {
    padding: 0.6rem 0.85rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 900px) {
  .hero-content {
    width: min(640px, calc(100% - 2rem));
    bottom: 7%;
    gap: 0.75rem;
  }

}
/* ==========================
   PAGE / SCROLL ANIMATIONS
========================== */
@keyframes navDropIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.reveal-ready .navbar {
  animation: navDropIn 0.8s ease both;
}

/* ==========================
   ABOUT SECTION (VIDEO ONLY)
========================== */

.about {
  position: relative;
  min-height: 100vh;
  padding: 0rem 2rem;

  background-color: #000000;

  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* About Section Title */
.about .section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* INNER CONTAINER */
.about-inner {
  max-width: 1240px;
  width: 100%;

  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

/* SCROLL REVEAL */
.about.visible .about-inner {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================
   VIDEO WRAPPER
========================== */

.about-video-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;

  aspect-ratio: 16 / 9;
  overflow: hidden;

  background: #050b0e;
  border: 0;
  border-radius: 0px;

  /*box-shadow:
    0 0 50px rgba(84, 250, 255, 0.25),
    inset 0 0 40px rgba(0, 0, 0, 0.65); */
}

/* VIDEO */
.about-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

/* ==========================
   CINEMATIC OVERLAY
========================== */

.about-video-wrapper::after {
  display: none;
}

/* ==========================
   MOBILE
========================== */

@media (max-width: 768px) {
  .about {
    padding: 4rem 1.5rem;
  }

  .about-video-wrapper {
    aspect-ratio: 4 / 5;
    border-radius: 12px;
  }
}



@keyframes gridDrift {
  from { background-position: 0 0, 0 0, center; }
  to { background-position: 100px 100px, 100px 100px, center; }
}

/* ==========================
   FEATURES SECTION
========================== */
.features {
  padding: 4rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;

  background-image:
    linear-gradient(to right, rgba(84, 250, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(84, 250, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #000000 0%, #022228 100%);

  background-size:
    100px 100px,
    100px 100px,
    cover;

  /* One position per background layer */
  background-position:
    0 0,
    0 0,
    center;

  animation: gridMove 20s linear infinite;
}


/* ==========================
   SECTION TITLE
========================== */
.features-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 4px;
  color: #54FAFF;
}

/* ==========================
   FEATURES GRID
========================== */
.features-inner {
  width: 100%;
  max-width: 1400px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5rem;

  justify-items: center;
}

/* ==========================
   FEATURE BORDER WRAPPER
========================== */
.feature-wrap {
  width: 100%;
  max-width: 420px;

  position: relative;
  padding: 2px; /* BORDER THICKNESS */
  background: linear-gradient(135deg, #54FAFF, #ff9138);

  clip-path: polygon(
    0 0,
    calc(100% - 40px) 0,
    100% 40px,
    100% 100%,
    40px 100%,
    0 calc(100% - 40px)
  );

  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-wrap:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(84, 250, 255, 0.6);
}

/* ==========================
   FEATURE BOX (SQUARE)
========================== */
.feature-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* PRESERVE 600x600 */
  background: #051013;
  overflow: hidden;

  clip-path: polygon(
    0 0,
    calc(100% - 38px) 0,
    100% 38px,
    100% 100%,
    38px 100%,
    0 calc(100% - 38px)
  );
}

/* ==========================
   GIF HANDLING
========================== */
.feature-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease;
}

.feature-wrap:hover img {
  transform: scale(1.05);
}

/* ==========================
   TOP LEFT TITLE
========================== */
.feature-title {
  position: absolute;
  top: 1.6rem;
  left: 1.5rem;

  font-size: 1.8rem;
  letter-spacing: 2px;
  color: #54FAFF;

  z-index: 2;
  pointer-events: none;
}

/* ==========================
   BOTTOM RIGHT HP BAR
========================== */
.feature-bar {
  position: absolute;
  bottom: 35px;
  right: 30px;

  display: flex;
  align-items: center;
  gap: 20px;

  font-size: rem;
  color: #ff9138;
}

/* Number */
.feature-bar-value {
  width: 32px;
  text-align: right;
  opacity: 0.9;
}

/* Dark base bar */
.feature-bar-track {
  width: 260px;
  height: 18px;
  background: rgba(255, 175, 84, 0.25);
  overflow: hidden;
}

/* Bright animated fill (JS-controlled) */
.feature-bar-fill {
  height: 100%;
  width: 0%;
  background: #ff9138;
}

/* ==========================
   FOOTER TEXT
========================== */
.features-footer {
  max-width: 1200px;
  margin: 5rem auto 0;
  text-align: center;
}

.features-description {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #ffffff;
  opacity: 0.9;
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 900px) {
  .features-inner {
    grid-template-columns: 1fr;
  }

  .feature-wrap {
    max-width: 100%;
  }
}


/* ==========================
   HOVER FEEDBACK
========================== */
.feature-wrap {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  padding:4px;
  background: #54FAFF; /* cyan */
}

.feature-wrap:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgb(84, 249, 255);
}

/* ==========================
   MOBILE
========================== */
@media (max-width: 900px) {
  .features-inner {
    grid-template-columns: 1fr;
  }
}


/* ==========================
   CHARACTERS INFO SECTION
========================== */

.characters-info {
  padding: 16rem 2rem;
  background: #000000;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

.characters-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ==========================
   GRID LAYOUT
========================== */

.characters-content {
  display: grid;
  grid-template-columns: 1fr 2fr; /* left accordion, right video */
  gap: 4rem;
  align-items: center;
}

/* ==========================
   ACCORDION (LEFT SIDE)
========================== */

.characters-accordion {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Individual item */
.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.178);
  padding-bottom: 1.5rem;
}

/* Remove border for the last item */
.accordion-item:last-child {
  border-bottom: none;
}

/* Header layout */
.accordion-header {
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  padding: 0;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/*
.accordion-header::after {
  content: "";
  width: 10px;
  height: 10px;

  border-right: 3px solid #54f9ff2c;
  border-bottom: 3px solid #54f9ff2c;

  transform: rotate(45deg); 
  transition: transform 0.3s ease, border-color 0.3s ease; 
} 
*/

/* When open = UP */
.accordion-item.active .accordion-header::after {
  transform: rotate(-135deg); /* Up arrow */
  border-color: #54FAFF;
}

/* Title */
.accordion-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.6rem;
  letter-spacing: 2px;
  font-family: 'Bruno Ace', system-ui, sans-serif;
  color: #54FAFF;
  margin: 0;
  transition: color 0.3s ease;
}

/* Active state color */
.accordion-item.active h2 {
  color: #54FAFF;
}

/* Content container */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* Expanded state */
.accordion-item.active .accordion-content {
  max-height: 300px;
  opacity: 1;
  margin-top: 1rem;
}

/* Paragraph styling */
.accordion-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #ffffff;
  opacity: 0.9;
}

/* ==========================
   VIDEO (RIGHT SIDE)
========================== */

.character-video-border {
  padding: 4px;
  background: #54FAFF;
  clip-path: polygon(
    0 0,
    calc(100% - 32px) 0,
    100% 32px,
    100% 100%,
    32px 100%,
    0 calc(100% - 32px)
  );
}

.class-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: contain;
}

.character-video-wrapper {
 position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 0;

  /* CUT top-right and bottom-left corners */
  clip-path: polygon(
    0 0,                    /* top-left stays */
    calc(100% - 34px) 0,    /* top-right cut starts here */
    100% 34px,              /* top-right corner cut */
    100% 100%,              /* bottom-right stays */
    34px 100%,              /* bottom-left cut starts here */
    0 calc(100% - 34px)     /* bottom-left corner cut */
  );
}

/* Stack videos */
.character-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Only active visible */
.character-video.active {
  opacity: 1;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 900px) {
  .characters-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .characters-accordion {
    text-align: center;
  }

  .accordion-header {
    text-align: center;
  }
}


/* ---------------- GAME LOOP SECTION ---------------- */

.game-loop {
  position: relative;
  min-height: 100svh;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  align-items: center;

  background-image:
    linear-gradient(to right, rgba(84, 250, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(84, 250, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #000000 0%, #022228 100%);

  background-size:
    100px 100px,
    100px 100px,
    100% 100%;

  background-repeat:
    repeat,
    repeat,
    no-repeat;

  background-position:
    0 0,
    0 0,
    0 0;

  animation: gridMove 20s linear infinite;
}


.game-loop .section-title {
  display: block;
  margin: 3rem auto 2rem auto; /* more space above */
  letter-spacing: 2px;
  color: #54FAFF;
  text-align: center;
}


.game-loop > *:not(.game-loop-mask) {
  position: relative;
  z-index: 1;
}


.hex-description {
  max-width: 1260px;
  margin: 2rem auto 4rem auto;
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: center;
  color: #ffffff;
  opacity: 0.9;
  transition: opacity 1s ease, transform 1s ease;
}

/* ---------------- HEX FIELD ---------------- */
.hex-field {
  width: 100%;
  max-width: 1600px; /* adjust to taste */
  min-height: 70vh;
  position: relative;
  margin: 0 auto;
}

.hex-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Hex nodes */
.hex {
  position: absolute;
  width: 110px;
  height: 95px;
  z-index: 1;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  transition: transform 0.3s ease;
}

/* PNG images inside hex (pulse animation) */
.hex img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  animation: pulse 2.5s ease-in-out infinite;
}

.hex:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px #000000);
}

@keyframes pulse {
  0%, 100% { transform: scale(0.8); }
  50% { transform: scale(1.0); }
}

/* Tooltip */
.hex::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #ff9138;
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  border-radius: 6px;
  border: 2px solid #ff9138;
  
  /* ADD INNER SHADOW */
  box-shadow: inset 0 0px 10px rgb(255, 146, 56);
  
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10005; /* ensure above everything */
}


.hex::before {
  content: "";
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(84, 250, 255, 0.85);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}

.hex-field {
  padding-top: 2rem;
}

.hex:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* Remove the arrow completely */
.hex::before {
  display: none;
}


/* ---------------- ENEMIES ---------------- */
.enemies {
  min-height: 100vh;
  padding: 4rem 2rem;
  background: #000000;
  display: flex;
  justify-content: center;
}

.enemies-inner {
  max-width: 1200px;
  width: 100%;
}

/* Shared row layout */
.enemies-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  margin-bottom: 2rem;
}

/* Text */
.enemies-text h2,
.enemies-text h3 {
  font-size: 2.4rem;
  letter-spacing: 2px;
  color: #ff9138;
  margin-bottom: 1.2rem;
}


.enemies-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  opacity: 1;
}

/* Image */
.enemies-image img {
  width: 100%;
  max-width: 531px;
  display: block;
  margin: 0 auto;
  transition: transform 0.25s ease;
}

.enemies-image img:hover {
  transform: scale(1.03);
}

/* ---------------- ENEMIES TITLE BLINK RECT ---------------- */
.enemies-text h3 {
  display: flex;
  align-items: center;
  gap: 1rem; /* space between rectangle and text */
  position: relative;
}

.enemies-text h3::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: #ff9138; /* same as title color */
  display: inline-block;
  animation: blink-rect 1s steps(1) infinite; /* instant blink with delay */
}

@keyframes blink-rect {
  0%, 40% { opacity: 1; }    /* visible for 40% of the animation */
  41%, 100% { opacity: 0; }  /* hidden for the remaining 60% */
}


/* ---------------- MOBILE ---------------- */
@media (max-width: 768px) {
  .enemies-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .enemies-row.bottom .enemies-image {
    order: -1;
  }
}

/* ==========================
   CARD SHOWCASE SECTION
========================== */

.card-showcase {
  position: relative;
  padding: 8rem 2rem;
  display: flex;
  justify-content: center;
  overflow: hidden;

  background-image:
    linear-gradient(to right, rgba(84, 250, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(84, 250, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #000000 0%, #022228 100%);

  background-size:
    100px 100px,
    100px 100px,
    cover;

  background-position:
    0 0,
    0 0,
    center;

  animation: gridMove 20s linear infinite;
}

.card-showcase-inner {
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-showcase .section-title {
  margin: 0 0 5rem;
  text-align: center;
}

.card-showcase-description {
  max-width: 1200px;
  margin: 5rem auto 0;
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: center;
  color: #ffffff;
  opacity: 0.9;
}

/* Three-card layout */
.card-showcase-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
  justify-items: center;
}

/* PNG card wrapper */
.game-card {
  width: 100%;
  max-width: 360px;
  display: flex;
  justify-content: center;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.game-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Small amount of feedback when hovering */
.game-card:hover {
  transform: translateY(-10px) scale(1.03);
  filter: drop-shadow(0 0 20px rgba(84, 250, 255, 0.35));
}



/* ==========================
   GIF FEATURE SECTION
========================== */
.gif-feature-section {
  padding: 6rem 2rem;
  background: #000000;
  display: flex;
  justify-content: center;
}

.gif-feature-inner {
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gif-feature-section .section-title {
  margin: 0 0 1rem;
}

.gif-feature-media {
  width: min(1400px, 100%);
  overflow: hidden;
  background: #050b0e;
}

.gif-feature-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gif-feature-description {
  max-width: 900px;
  margin: 1rem auto 0;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #ffffff;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .gif-feature-section {
    padding: 6rem 1.5rem;
  }

  .gif-feature-section .section-title {
    margin-bottom: 3rem;
  }

  .gif-feature-description {
    margin-top: 2rem;
  }
}

/* ==========================
   LIMIT SYSTEM SECTION
========================== */

.limit-system-section {
  padding: 10rem 2rem;
  display: flex;
  justify-content: center;
  background: #000000;
}

.limit-system-inner {
  width: 100%;
  max-width: 1250px;

  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 6rem;
  align-items: center;
}

/* ==========================
   TEXT
========================== */

.limit-system-text .section-title {
  margin: 0 0 2.5rem;
  text-align: left;
}

.limit-system-text p {
  max-width: 760px;
  font-size: 1.2rem;
  line-height: 1.9;
  color: #ffffff;
  opacity: 0.9;
}

.limit-system-text .limit-system-ending {
  margin-top: 2rem;
  color: #ff3838;
}

/* ==========================
   STRAIN CARD
========================== */

.strain-card-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
}

.strain-card-showcase img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;

  transition: transform 0.4s ease, filter 0.4s ease;
}

.strain-card-showcase img:hover {
  transform: translateY(-10px) scale(1.03);
  filter: drop-shadow(0 0 24px rgba(255, 56, 56, 0.35));
}




/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 900px) {
  .limit-system-section {
    padding: 7rem 1.5rem;
  }

  .limit-system-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .limit-system-text .section-title {
    text-align: center;
  }

  .limit-system-text p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==========================
   CALL UPS SECTION
========================== */
.call-ups-section {
  background-image:
    linear-gradient(to right, rgba(84, 250, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(84, 250, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #000000 0%, #022228 100%);
  background-size:
    100px 100px,
    100px 100px,
    cover;
  background-position:
    0 0,
    0 0,
    center;
  animation: gridMove 20s linear infinite;
  padding: 110px 24px;
}

.call-ups-inner {
  width: min(1320px, 100%);
  margin: 0 auto;
  text-align: center;
}

.call-ups-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 400px));
  justify-content: center;
  gap: 60px;
  margin-top: 56px;
}

.call-up-media {
  width: 100%;
  aspect-ratio: 400 / 568;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.58), 0 0 24px rgba(0, 0, 0, 0.48);
  background: #050b0e;
}

.call-up-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.call-up-item {
  width: 100%;
}

.call-up-button {
  display: none;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 24px 0 0;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.58)) drop-shadow(0 0 24px rgba(0, 0, 0, 0.48));
}

.call-ups-description {
  display: block;
  max-width: 1000px;
  margin: 44px auto 0;
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .call-ups-grid {
    grid-template-columns: minmax(0, 400px);
  }
}

@media (max-width: 768px) {
  .call-ups-section {
    padding: 5rem 0;
    overflow: hidden;
  }

  .call-ups-inner {
    width: 100%;
  }

  .call-ups-section .section-title {
    width: calc(100% - 2rem);
  }

  .call-ups-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(82vw, 340px);
    justify-content: start;
    margin-top: 40px;
    gap: 1rem;
    padding: 0 max(1rem, calc((100vw - min(82vw, 340px)) / 2)) 1.25rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(1rem, calc((100vw - min(82vw, 340px)) / 2));
    scrollbar-width: none;
  }

  .call-ups-grid::-webkit-scrollbar {
    display: none;
  }

  .call-up-item {
    min-width: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .call-up-media {
    border-radius: 18px;
  }

  .call-up-button {
    width: 88%;
    margin: 1rem auto 0;
  }

  .call-ups-description {
    width: calc(100% - 2rem);
    margin-top: 2rem;
    font-size: 1rem;
    line-height: 1.65;
  }
}

/* --------------------- SCREENSHOTS SECTION --------------------- */
.screenshots {
  padding: 6.4rem 2rem 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;

  background-image:
    linear-gradient(to right, rgba(84, 250, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(84, 250, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #000000 0%, #022228 100%);

  background-size:
    100px 100px,
    100px 100px,
    cover;

  /* Align grids to top-left to remove fake border */
  background-position:
    0 0,
    0 0,
    center;

  animation: gridMove 20s linear infinite;
}


.screenshots .section-title {
  color: #54FAFF;
  margin-bottom: 3.5rem;
  letter-spacing: 2px;
}

/* --------------------- GRID --------------------- */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1480px;
  width: 100%;
  justify-items: center; /* center items in their columns */
}

/* --------------------- CARD / ITEM --------------------- */
.screenshot-item {
  width: 100%;
  aspect-ratio: 16 / 9; /* keeps a 16:9 ratio */
  overflow: hidden;
  border: 3px solid #54FAFF;
  cursor: pointer;
  border-radius: 0px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* keeps image ratio but crops edges if needed */
}

.screenshot-item:hover {
  transform: scale(1.05);
  /* box-shadow: 0 0 20px rgba(84,250,255,0.6); */
}

/* --------------------- PREVIEW --------------------- */
.screenshot-preview {
  position: absolute;
  top: 50%;
  right: 5%;
  width: 500px;
  max-width: 40%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.screenshot-preview img {
  width: 100%;
  border: 2px solid #54FAFF;
  border-radius: 12px;
}

/* --------------------- RESPONSIVE --------------------- */
@media (max-width: 1024px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .screenshot-preview {
    width: 300px;
  }
}

@media (max-width: 768px) {
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
  .screenshot-preview {
    position: static;
    width: 100%;
    margin-top: 2rem;
    transform: none;
  }
}

/* LIGHTBOX OVERLAY */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.99);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;

  opacity: 1;
  transition: opacity 0.3s ease;
}

.lightbox.hidden {
  opacity: 0;
  pointer-events: none;
}

/* IMAGE */
.lightbox-image {
  max-width: 85%;
  max-height: 85%;
  border-radius: 12px;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.lightbox.show .lightbox-image {
  transform: scale(1);
}

/* CLOSE BUTTON */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
}

/* NAV BUTTONS */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 1rem;
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }


/* ==========================
   WISHLIST GAME LOGO
========================== */

.wishlist-inner {
  width: 100%;
  max-width: 900px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.wishlist-game-logo {
  display: flex;
  justify-content: center;

  width: 100%;
  margin-bottom: 3.5rem;
}

.wishlist-game-logo img {
  display: block;

  width: min(746px, 78vw);
  height: auto;

  object-fit: contain;

}



/* Wishlist Section */
.wishlist {
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background-color: black;
  border-top: 2px solid;
  border-image: linear-gradient(
    to right,
    #54f9ff00 0%,
    #000000 50%,
    #54f9ff00 100%
  ) 1;
}

/* Wishlist box */
.wishlist-box {
  position: relative; /* reference for floating footer */
  display: flex;
  flex-direction: column; /* stack title above row */
  gap: 1rem;
  background-color: #323945;
  border-top: 1px solid #505661;
  border-radius: 4px;
  padding: 1rem 1rem 2rem; /* extra bottom padding for floating box */
  max-width: 900px;
  width: 100%;
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.2s, box-shadow 0.2s;
}


/* Title */
.wishlist-title {
  margin: 0 0 0 0;
  font-size: 1.5rem;
  color: #ffffffb0;
  font-weight: 300; /* "on Steam" weight */
}

.wishlist-title .game-name {
  font-weight: 700; /* bolder for "Voidswarm" */
  color: #ffffff;   /* optional, same color or different */
}

.wishlist-box + .wishlist-box {
  margin-top: 3rem;
}

/* Image + Info Row */
.wishlist-content-row {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  align-items: flex-start;
}

/* Banner image */
.wishlist-image img {
  width: 180px;
  height: auto;
  border-radius: 2px;
}

/* Game info */
.wishlist-info {
  flex: 1;
  text-align: left;
}

.wishlist-info p {
  margin: 0;
  font-size: 1rem;
  color: #cfcfcf;
  line-height: 1.4;
}

/* Floating bottom-right box (overlaps bottom border) */
.wishlist-footer-floating {
  position: absolute;
  bottom: 0; /* aligns with bottom edge */
  right: 15px; /* distance from right side */
  transform: translateY(50%); /* move half the height down to sit on border */
  background-color: #334a1e;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  border: 1px solid #0000007e;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 10;
}

.wishlist-footer-floating .available {
  color: #c2f382;
  font-size: 1.2rem;
  font-weight: medium;
}

.wishlist-footer-floating .wishlist-button {
  background-color: #4f8819;
  color: #d0ff92;
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  font-size: 1rem;
  font-weight: 500; /* use numeric weight instead of 'medium' */
  cursor: pointer;
  transition: background-color 0.2s;

  border: none;   /* remove default button border */
  outline: none;  /* remove default focus outline */
  box-shadow: none; /* remove any browser-added shadow */
}

.wishlist-footer-floating .wishlist-button:hover {
  background-color: #7cc037;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .wishlist-box {
    flex-direction: column;
    gap: 1rem;
  }

  .wishlist-content-row {
    flex-direction: column;
    gap: 1rem;
  }

  .wishlist-image img {
    width: 100%;
  }

  .wishlist-footer-floating {
    right: 10px;
  }
}



/* ==========================
   SITE FOOTER
========================== */

.site-footer {
  background-color: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: #fff;
  padding: 20px 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 1780px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  height: 30px;
  width: auto;
}

.footer-socials a {
  color: #0fefff;
  display: inline-flex;       /* ensures proper alignment */
  align-items: center;        /* centers icon vertically */
  justify-content: center;
  margin: 0 10px;              /* spacing between icons */
  text-decoration: none;      /* remove underline */
  line-height: 1;             /* prevents extra spacing */
  font-size: 1.6rem;
  transition: color 0.2s ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: #ff9138;
}

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-copy {
  justify-self: end;
  margin: 0;
  text-align: right;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .footer-logo,
  .footer-copy {
    justify-self: center;
  }

  .footer-copy {
    text-align: center;
  }
}


@keyframes gridMove {
  0% {
    background-position: 0 0, 0 0, center;
  }
  100% {
    background-position: 100px 100px, 100px 100px, center;
  }
}

/* ==========================
   COMPLETE MOBILE LAYOUT
========================== */
*, *::before, *::after { box-sizing: border-box; }
img, video { max-width: 100%; }

@media (max-width: 768px) {
  .navbar {
    position: fixed;
    height: 64px;
    padding: 0 1rem;
  }

  .logo { height: 30px; }
  .site-name { font-size: 1rem; }

  .nav-right.fullscreen {
    min-height: 100dvh;
    height: 100dvh;
    padding: 6rem 1.5rem 2rem;
    gap: clamp(1rem, 3vh, 1.75rem);
    overflow-y: auto;
  }

  .nav-right.fullscreen a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  .hero {
    min-height: 620px;
    height: 100svh;
  }

  .hero-video {
    object-position: 58% center;
  }

  .hero-content {
    bottom: 6%;
    width: calc(100% - 2rem);
    flex-direction: column;
  }

  .hero-description {
    max-width: 360px;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .hero-game-logo {
    width: min(360px, 100%);
  }

  .section-title {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.65rem, 8vw, 2.35rem);
    line-height: 1.25;
    letter-spacing: 2px;
    overflow-wrap: anywhere;
  }

  .about {
    min-height: auto;
    padding: 5rem 1rem;
  }

  .about .section-title,
  .features-header,
  .card-showcase .section-title,
  .screenshots .section-title {
    margin-bottom: 2.5rem;
  }

  .features,
  .characters-info,
  .enemies,
  .card-showcase,
  .gif-feature-section,
  .limit-system-section,
  .screenshots,
  .wishlist {
    padding: 5rem 1rem;
  }

  .features-inner {
    gap: 2rem;
  }

  .feature-wrap {
    max-width: 430px;
  }

  .feature-title {
    top: 1rem;
    left: 1rem;
    font-size: clamp(1.1rem, 6vw, 1.55rem);
  }

  .feature-bar {
    right: 1rem;
    bottom: 1.25rem;
    left: 1rem;
    gap: .75rem;
  }

  .feature-bar-track {
    width: auto;
    height: 14px;
    flex: 1;
  }

  .features-footer,
  .card-showcase-description {
    margin-top: 2.5rem;
  }

  .features-description,
  .hex-description,
  .card-showcase-description,
  .gif-feature-description,
  .limit-system-text p,
  .enemies-text p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .characters-content {
    gap: 2rem;
  }

  .characters-accordion {
    gap: 1.25rem;
    text-align: left;
  }

  .accordion-header {
    min-height: 44px;
    text-align: left;
  }

  .accordion-header h2 { font-size: 1.3rem; }

  .class-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .accordion-content p { font-size: 1rem; line-height: 1.6; }

  .game-loop {
    min-height: auto;
    padding: 2rem 1rem 4rem;
  }

  .game-loop .section-title { margin: 2rem auto; }

  .hex-field {
    width: 100%;
    min-height: 0;
    padding-top: 1rem;
  }

  .hex { touch-action: manipulation; }

  .hex::after {
    max-width: min(240px, 75vw);
    white-space: normal;
    text-align: center;
    font-size: .8rem;
  }

  .hex:focus-visible::after,
  .hex:active::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
  }

  .hex-description { margin: 2rem auto 0; }

  .enemies {
    min-height: auto;
  }

  .enemies-row {
    gap: 1.5rem;
    margin-bottom: 4rem;
  }

  .enemies-row:last-child { margin-bottom: 0; }
  .enemies-row .enemies-image { order: -1; }

  .enemies-text h3 {
    justify-content: center;
    font-size: 1.8rem;
  }

  .enemies-text p br { display: none; }

  .card-showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .game-card { max-width: 300px; }
  .gif-feature-section .section-title { margin-bottom: 2rem; }
  .limit-system-inner { gap: 2.5rem; }
  .strain-card-showcase img { max-width: 280px; }
  .screenshots-grid { gap: 1.25rem; }
  .screenshot-preview { display: none; }

  .lightbox-image {
    max-width: calc(100% - 2rem);
    max-height: 78vh;
    border-radius: 4px;
  }

  .lightbox-close {
    top: max(8px, env(safe-area-inset-top));
    right: 10px;
    padding: .5rem;
    font-size: 2.5rem;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: max(.5rem, env(safe-area-inset-bottom));
    width: 50%;
    min-height: 52px;
    transform: none;
    font-size: 2.25rem;
  }

  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }

  .wishlist-game-logo { margin-bottom: 2.5rem; }
  .wishlist-game-logo img { width: min(100%, 520px); }

  .wishlist-box {
    padding: 1rem;
  }

  .wishlist-title { font-size: 1.25rem; }

  .wishlist-footer-floating {
    position: static;
    width: 100%;
    margin-top: .5rem;
    padding: .75rem;
    transform: none;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .wishlist-footer-floating .available { font-size: 1rem; }
  .wishlist-footer-floating .wishlist-button { min-height: 44px; }

  .site-footer { padding: 2rem 1rem; }

  .footer-socials {
    flex-wrap: wrap;
    gap: .5rem;
  }

  .footer-socials a {
    width: 44px;
    height: 44px;
    margin: 0;
  }
}

@media (max-width: 380px) {
  .site-name { display: none; }
  .wishlist-footer-floating { flex-direction: column; }
  .wishlist-footer-floating .wishlist-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 900px) {
  .feature-wrap {
    clip-path: polygon(
      0 0,
      calc(100% - 24px) 0,
      100% 24px,
      100% 100%,
      24px 100%,
      0 calc(100% - 24px)
    );
  }

  .feature-box {
    clip-path: polygon(
      0 0,
      calc(100% - 21px) 0,
      100% 21px,
      100% 100%,
      21px 100%,
      0 calc(100% - 21px)
    );
  }

  .character-video-border {
    clip-path: polygon(
      0 0,
      calc(100% - 20px) 0,
      100% 20px,
      100% 100%,
      20px 100%,
      0 calc(100% - 20px)
    );
  }

  .character-video-wrapper {
    clip-path: polygon(
      0 0,
      calc(100% - 22px) 0,
      100% 22px,
      100% 100%,
      22px 100%,
      0 calc(100% - 22px)
    );
  }
}












