body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
  background: black;
}
body {
  isolation: isolate;
}

.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;
}

.stripe-background {
  --stripe-color-1: #01aeed;
  --stripe-color-2: #1e89b6;
  position: fixed;
  inset: 60px 0;
  z-index: 1;
  display: flex;
  overflow: hidden;
  pointer-events: none;
  background: var(--stripe-color-2);
  transition: background-color 0.5s ease;
}

.stripe-half {
  width: 50%;
  height: calc(100% + 160px);
  margin-top: -160px;
  animation: stripes-down 3.5s linear infinite;
  transition: background-image 0.5s ease;
}

.stripe-left {
  background-image: repeating-linear-gradient(
    35deg,
    var(--stripe-color-1) 0,
    var(--stripe-color-1) 64px,
    var(--stripe-color-2) 64px,
    var(--stripe-color-2) 128px
  );
}

.stripe-right {
  background-image: repeating-linear-gradient(
    -35deg,
    var(--stripe-color-1) 0,
    var(--stripe-color-1) 64px,
    var(--stripe-color-2) 64px,
    var(--stripe-color-2) 128px
  );
}

@keyframes stripes-down {
  to { transform: translateY(156.27px); }
}

/* The blue screen and game preview share the exact same 4:3 frame. */
#gameplay-video,
#vcr-screen {
  position: fixed;
  inset: 60px 0;
  margin: auto;
  aspect-ratio: 4 / 3;
  width: min(100vw, calc((100dvh - 120px) * 4 / 3));
  height: min(calc(100dvh - 120px), 75vw);
  object-fit: contain;
}

#gameplay-video {
  z-index: 3;
}

/* Header + Footer */
.header-bar, .footer-bar {
  position: fixed;
  left: 0;
  width: 100%;
  height: 60px;
  background: black;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
  box-sizing: border-box;
}

.header-bar { top: 0; }
.footer-bar { bottom: 0; }

.header-left, .header-center, .header-right,
.footer-left, .footer-center, .footer-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.header-left, .footer-left { justify-content: flex-start; }
.header-center, .footer-center { justify-content: center; }
.header-right, .footer-right { justify-content: flex-end; }

/* HEADER LOGOS */
.header-bar img {
  height: clamp(20px, 5vh, 50px);
  width: auto;
}

/* FOOTER ICONS */
.footer-center img {
  height: clamp(16px, 3vh, 30px);
  margin: 0 8px;
  transition: transform 0.2s ease;
}
.footer-center img:hover {
  transform: scale(1.2);
}

/* ESRB */
.footer-right img {
  height: clamp(30px, 5vh, 55px);
  margin-left: 1vw;
}

/* Footer left text */
.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-left p {
  font-size: clamp(12px, 1vw, 16px);
  margin: 0;
}
.footer-left a {
  color: white;
  text-decoration: none;
}
.footer-left a:hover {
  text-decoration: underline;
}

/* Main game logos */
.main-logo {
  width: clamp(220px, 52vw, 950px);
  height: auto;
  max-width: 92%;
  object-fit: contain;
  flex: 0 0 auto;
  margin-bottom: clamp(4px, 1dvh, 10px);
  opacity: 0;
  transform: translateY(2vh);
  transition: opacity 1s ease, transform 1s ease;
}
.section.visible .main-logo {
  opacity: 1;
  transform: translateY(0);
}

/* Content */
.content {
  position: fixed;
  top: 60px;
  bottom: 60px;
  left: 0;
  right: 0;
  z-index: 4;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

/* Sections */
.section {
  height: 100%;
  min-height: 100%;
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(10px, 3dvh, 28px) 5%;
  overflow: hidden;
  color: white;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.9);
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Game description */
.game-description {
  position: relative;
  z-index: 2;
  max-width: min(82%, 740px);
  margin: clamp(3px, 1dvh, 10px) auto;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(12px, min(1.1vw, 1.7dvh), 15px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: 0.01em;
  color: #f7f7f7;
  text-align: left;
  padding: clamp(6px, 1.2dvh, 12px) clamp(10px, 2vw, 28px);
}
.game-description::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.55) 15%,
    rgba(0,0,0,0.82) 50%,
    rgba(0,0,0,0.55) 85%,
    rgba(0,0,0,0) 100%);
  z-index: -1;
  overflow: hidden;
}
.game-description p {
  margin: 0 0 clamp(6px, 1dvh, 10px) 0;
}
.game-description ul {
  margin: clamp(6px, 1dvh, 10px) 0 0 22px;
  padding: 0;
}
.game-description li {
  margin-bottom: clamp(2px, .45dvh, 4px);
}

/* MINI LOGOS */
.mini-logos {
  position: relative;
  flex: 0 0 auto;
  margin-top: clamp(3px, 1dvh, 10px);
  padding: clamp(4px, 1dvh, 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.mini-logos a {
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-logos::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;      /* ✅ no negative offset */
  right: 0;     /* ✅ no negative offset */
  bottom: 0;
  background: linear-gradient(to right,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.7) 50%,
    rgba(0,0,0,0) 100%);
  z-index: -1;
  overflow: hidden;
}
.mini-logos img {
  width: clamp(45px, min(8vw, 10dvh), 100px);
  transition: transform 0.2s ease;
  display: block;
}
.mini-logos img:hover {
  transform: scale(1.2);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .game-description {
    max-width: 90%;
    font-size: clamp(10px, 1.45dvh, 12px);
    line-height: 1.25;
    padding: 6px 10px;
  }
  .game-description::before {
    left: 0;
    right: 0;

  }
}

/* Keep longer descriptions comfortably inside short browser windows. */
@media (max-height: 700px) {
  .game-description {
    font-size: clamp(10px, 1.7dvh, 12px);
    line-height: 1.2;
    margin-block: 2px;
    padding-block: 5px;
  }

  .mini-logos {
    margin-top: 2px;
    padding-block: 3px;
  }
}

/* HEADER LOGOS — force scaling */
.header-logo {
  height: clamp(10px, 2.25vh, 40px) !important;
  width: auto !important;
}

#vcr-screen {
  z-index: 2;
  pointer-events: none;
}
