/* =============================================
   OMNISCENSION — Glue Crew Website Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Bangers&family=M+PLUS+Rounded+1c:wght@400;700;800&display=swap');

/* ─── CSS Variables ─── */
:root {
  --clr-bg:         #0d0b1a;
  --clr-surface:    #16112b;
  --clr-surface-2:  #1f1840;
  --clr-border:     #3a2f6e;

  --clr-pink:       #ff4fa3;
  --clr-pink-light: #ff9fd4;
  --clr-purple:     #b56cff;
  --clr-gold:       #ffd84a;
  --clr-cyan:       #3cf0e0;
  --clr-red:        #ff3c5a;

  --clr-text:       #f0e8ff;
  --clr-muted:      #9b8ec4;

  --font-display:   'Bangers', 'Impact', cursive;
  --font-body:      'M PLUS Rounded 1c', 'Segoe UI', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--clr-pink-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--clr-gold);
}

ul {
  list-style: none;
}

/* ─── Typography ─── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); color: var(--clr-text); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); color: var(--clr-pink); }
h3 { font-size: clamp(1.3rem, 3vw, 2rem); color: var(--clr-gold); }

p {
  font-size: 1rem;
  color: var(--clr-text);
  max-width: 65ch;
}

/* ─── Layout Utility ─── */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

section {
  padding: 5rem 0;
}

/* ─── Accent Divider ─── */
.accent-line {
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-pink), var(--clr-purple), var(--clr-cyan));
  border: none;
  margin: 0;
}

/* ═══════════════════════════════
   HEADER & NAVIGATION
═══════════════════════════════ */

header {
  background-color: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Top bar: studio logo + top-level nav */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 5%;
}

.studio-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--clr-gold);
  text-decoration: none;
}

.studio-logo:hover {
  color: var(--clr-pink);
}

/* Top-right nav: Games / News / Store */
.nav-top {
  display: flex;
  gap: 2rem;
}

.nav-top li {
  position: relative;
}

.nav-top a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--clr-text);
  padding: 0.4rem 0;
  transition: color 0.2s;
}

.nav-top a:hover {
  color: var(--clr-pink);
}

/* Dropdown */
.nav-top li ul {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  z-index: 200;
  margin-top: 8px;
}

.nav-top li:hover ul {
  display: block;
}

.nav-top li ul li a {
  display: block;
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
  color: var(--clr-muted);
  border-bottom: 1px solid var(--clr-border);
  transition: background 0.15s, color 0.15s;
}

.nav-top li ul li:last-child a {
  border-bottom: none;
}

.nav-top li ul li a:hover {
  background: var(--clr-border);
  color: var(--clr-pink-light);
}

/* Sub-nav: game page links */
.nav-sub {
  background: var(--clr-bg);
  border-top: 1px solid var(--clr-border);
  display: flex;
  justify-content: center;
  gap: 0;
}

.nav-sub a {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--clr-muted);
  padding: 0.55rem 1.4rem;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-sub a:hover,
.nav-sub a.active {
  color: var(--clr-pink);
  border-bottom-color: var(--clr-pink);
}

/* ═══════════════════════════════
   HERO SECTION
═══════════════════════════════ */

.hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  background: var(--clr-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.hero > img,
.hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* Overlay gradient at the bottom so sections below blend in */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    var(--clr-bg) 100%
  );
  pointer-events: none;
}

/* Placeholder label when no image is available */
.hero-placeholder {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--clr-muted);
  letter-spacing: 0.08em;
  text-align: center;
}

/* Hero overlay content */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-logo {
  width: clamp(200px, 40vw, 480px);
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.7));
}

.hero-btn {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  letter-spacing: 0.1em;
  color: var(--clr-bg);
  background: var(--clr-pink);
  padding: 0.6rem 2.5rem;
  border-radius: var(--radius-md);
  border: 3px solid var(--clr-pink-light);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
  box-shadow: 0 0 20px rgba(255, 79, 163, 0.5);
}

.hero-btn:hover {
  background: var(--clr-gold);
  border-color: var(--clr-gold);
  color: var(--clr-bg);
  transform: scale(1.05);
}

/* ═══════════════════════════════
   FEATURED GAME SECTION
═══════════════════════════════ */

.featured-game {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.featured-game .container {
  display: block;
}

.featured-game-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: stretch;
}

.featured-game-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.featured-game-left .carousel {
  margin-top: 0;
  flex: 1;
}

.featured-game-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.featured-game-info .game-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.featured-game-info .game-logo img {
  height: 48px;
  width: auto;
}

.featured-game-info h2 {
  border-bottom: 3px solid var(--clr-pink);
  padding-bottom: 0.3rem;
  display: inline-block;
}

.featured-game-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  margin-bottom: 2rem;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.platform-tag {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-purple);
  color: var(--clr-purple);
  background: transparent;
}

.cover-art {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: var(--clr-surface-2);
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-muted);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.cover-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══════════════════════════════
   CAROUSEL
═══════════════════════════════ */

.carousel {
  width: 100%;
  margin-top: 2.5rem;
  position: relative;
}

.carousel-track-wrapper {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  background: var(--clr-bg);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-slide {
  min-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-bg);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Prev / Next buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13, 11, 26, 0.75);
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 2;
}

.carousel-btn:hover {
  background: var(--clr-pink);
  border-color: var(--clr-pink);
}

.carousel-btn.prev { left: -22px; }
.carousel-btn.next { right: -22px; }

/* Dot indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-border);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}

.carousel-dot.active {
  background: var(--clr-pink);
  transform: scale(1.3);
}

/* ═══════════════════════════════
   GAME DESCRIPTION SECTION
═══════════════════════════════ */

.game-description {
  background: var(--clr-bg);
}

.game-description .container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: center;
}

.game-description h2 {
  margin-bottom: 1.5rem;
}

.game-description p {
  max-width: none;
  font-size: 1.05rem;
  color: var(--clr-text);
  margin-bottom: 1rem;
}

.character-art {
  width: 320px;
  height: 380px;
  background: var(--clr-surface);
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-muted);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.character-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══════════════════════════════
   STAY CONNECTED SECTION
═══════════════════════════════ */

.stay-connected {
  background: var(--clr-surface);
  text-align: center;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.stay-connected h2 {
  margin-bottom: 0.75rem;
}

.stay-connected p {
  max-width: none;
  color: var(--clr-muted);
  margin: 0 auto 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  background: var(--clr-surface-2);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.social-links a:hover {
  border-color: var(--clr-pink);
  color: var(--clr-pink);
  background: rgba(255, 79, 163, 0.08);
}

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */

footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 3rem 0 2rem;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

/* Language selector */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--clr-muted);
}

.lang-selector select {
  background: var(--clr-surface-2);
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.6rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
}

/* Footer studio logo */
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  color: var(--clr-gold);
  text-decoration: none;
}

.footer-logo:hover {
  color: var(--clr-pink);
}

/* Platform links */
.platform-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.platform-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--clr-muted);
  transition: color 0.2s;
}

.platform-links a:hover {
  color: var(--clr-cyan);
}

/* Footer divider */
.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--clr-border);
}

/* Footer fine print */
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--clr-muted);
}

.footer-legal a {
  color: var(--clr-muted);
}

.footer-legal a:hover {
  color: var(--clr-pink-light);
}

/* ═══════════════════════════════
   STORY SECTION
═══════════════════════════════ */

.story-hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background: var(--clr-surface);
}

.story-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.story-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 11, 26, 0.75);
  z-index: 1;
}

.story-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
}

.story-text h2 {
  margin-bottom: 1.5rem;
}

.story-text p {
  max-width: none;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.story-illustration {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--clr-border);
  box-shadow: 0 0 40px rgba(181, 108, 255, 0.2);
}

.story-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════
   CHARACTERS SECTION
═══════════════════════════════ */

.characters {
  background: var(--clr-bg);
  padding: 5rem 0;
}

.characters h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* Character selector buttons */
.character-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.char-btn {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.char-btn:hover {
  border-color: var(--clr-purple);
  color: var(--clr-purple);
}

.char-btn.active {
  border-color: var(--clr-pink);
  color: var(--clr-pink);
  background: rgba(255, 79, 163, 0.1);
}

/* Character detail panel */
.character-panel {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: center;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  transition: opacity 0.2s ease;
}

.character-panel.fade-out {
  opacity: 0;
}

.character-info h3 {
  margin-bottom: 1.2rem;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.character-info p {
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.8;
}

.character-portrait {
  width: 340px;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--clr-border);
  box-shadow: 0 0 30px rgba(255, 79, 163, 0.15);
  flex-shrink: 0;
}

.character-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════
   GAME / MECHANICS SECTION
═══════════════════════════════ */

.mechanics {
  background: var(--clr-bg);
  padding: 5rem 0;
}

.mechanics h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* Mechanic selector buttons */
.mechanic-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.mechanic-btn {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.mechanic-btn:hover {
  border-color: var(--clr-purple);
  color: var(--clr-purple);
}

.mechanic-btn.active {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
  background: rgba(255, 216, 74, 0.08);
}

/* Mechanic detail panel */
.mechanic-panel {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: opacity 0.2s ease;
}

.mechanic-panel.fade-out {
  opacity: 0;
}

.mechanic-video-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  background: #000;
  aspect-ratio: 16 / 9;
}

.mechanic-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mechanic-info h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  border-bottom: 3px solid var(--clr-gold);
  padding-bottom: 0.4rem;
  display: inline-block;
}

.mechanic-info p {
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */

@media (max-width: 768px) {
  .featured-game-layout {
    grid-template-columns: 1fr;
  }

  .cover-art {
    width: 100%;
    min-height: 300px;
    height: 300px;
  }

  .featured-game-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cover-art {
    width: 200px;
    height: 250px;
    margin: 0 auto;
  }

  .game-description .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .character-art {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .nav-sub {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 1rem;
  }

  .nav-sub a {
    white-space: nowrap;
    padding: 0.55rem 1rem;
  }

  .header-top {
    padding: 0 1rem;
  }

  .nav-top {
    gap: 1rem;
  }

  .mechanic-panel {
    grid-template-columns: 1fr;
  }

  .story-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .story-illustration {
    max-width: 320px;
    margin: 0 auto;
  }

  .character-panel {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem;
    gap: 2rem;
  }

  .character-portrait {
    width: 100%;
    max-width: 280px;
    height: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  section {
    padding: 3rem 0;
  }

  .nav-top {
    gap: 0.6rem;
  }

  .nav-top a {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .nav-sub a {
    font-size: 1.2rem;
    padding: 0.8rem 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
}