/* ==========================================================================
   FARTNERSHIP.IO - CLEAN INDIE ARCADE STYLES
   ========================================================================== */

@font-face {
  font-family: 'Lilita One';
  src: url('../game/fonts/lilita-one.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('../game/fonts/nunito-600.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('../game/fonts/nunito-800.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('../game/fonts/nunito-900.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-deep: #080612;
  --bg-dark: #100c22;
  --bg-card: rgba(22, 17, 44, 0.7);
  --bg-card-hover: rgba(32, 25, 62, 0.85);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-active: rgba(255, 255, 255, 0.22);

  --lime: #b8f522;
  --lime-hover: #cbfd43;
  --pink: #ff3870;
  --sky: #2ed0ff;
  --purple: #8655ff;
  --gold: #ffc82c;
  --orange: #ff8b26;

  --text-main: #ffffff;
  --text-muted: #9f9ab5;
  --text-dim: #655f7c;

  --font-display: 'Lilita One', system-ui, -apple-system, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  --shadow-comic: 0 6px 0 rgba(0, 0, 0, 0.5);
  --shadow-comic-sm: 0 4px 0 rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Ambient glow & backdrop */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 15% 15%, rgba(134, 85, 255, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(46, 208, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(184, 245, 34, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY & UTILS
   -------------------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.text-gradient-lime {
  background: linear-gradient(135deg, #e4ff70 0%, var(--lime) 50%, #8ae000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-sky {
  background: linear-gradient(135deg, #8eedff 0%, var(--sky) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   NAVBAR & BRAND
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  z-index: 100;
  background: rgba(14, 10, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  height: 66px;
  background: rgba(10, 7, 20, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-3d-emblem {
  height: 46px;
  width: auto;
  max-width: 58px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(184, 245, 34, 0.35)) drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.brand:hover .brand-3d-emblem {
  transform: scale(1.14) rotate(-4deg);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
}

.brand-name .part-fart {
  color: #ffffff;
}

.brand-name .part-nership {
  color: #c8c2e4;
}

.brand-tld-badge {
  font-size: 11px;
  font-weight: 900;
  background: var(--lime);
  color: #0d0a1c;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  letter-spacing: 0.05em;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-text-mobile {
  display: none;
}
.nav-text-desktop {
  display: inline;
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  border: 2px solid #000;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
  box-shadow: var(--shadow-comic-sm);
  user-select: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.btn-lime {
  background: var(--lime);
  color: #120e24;
}

.btn-sky {
  background: var(--sky);
  color: #0b1a2e;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: none;
}

@media (hover: hover) {
  .btn-lime:hover {
    background: var(--lime-hover);
    box-shadow: 0 5px 0 #000, 0 0 20px rgba(184, 245, 34, 0.4);
  }
  .btn-sky:hover {
    background: #5fe0ff;
    box-shadow: 0 5px 0 #000, 0 0 20px rgba(46, 208, 255, 0.4);
  }
  .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
  }
}

.btn-lg {
  font-size: 19px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-comic);
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  padding-top: 130px;
  padding-bottom: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: url('../img/hero-cinematic-raw.png') center 28% / cover no-repeat;
  opacity: 0.16;
  filter: saturate(1.1) brightness(0.95);
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(ellipse at center 45%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 75%);
  -webkit-mask-image: radial-gradient(ellipse at center 45%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 75%);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184, 245, 34, 0.1);
  border: 1px solid rgba(184, 245, 34, 0.25);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.95;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.hero-subtitle {
  font-size: clamp(18px, 2.8vw, 24px);
  font-weight: 800;
  color: var(--sky);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero-desc {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   ARCADE RIG (EMBEDDED GAME CONTAINER)
   -------------------------------------------------------------------------- */
.arcade-section {
  padding: 10px 0 80px;
}

.arcade-rig {
  background: linear-gradient(180deg, #181230 0%, #0e0a1e 100%);
  border: 2px solid #28204d;
  border-radius: var(--radius-lg);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(134, 85, 255, 0.15);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.arcade-rig.theater-mode {
  position: fixed;
  inset: 12px;
  z-index: 9999;
  border-radius: var(--radius-md);
  margin: 0;
  height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
}

.arcade-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(12, 8, 22, 0.92);
  border-bottom: 2px solid #231b45;
  user-select: none;
}

.rig-lights {
  display: flex;
  gap: 7px;
}

.rig-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.rig-dot.red { background: #ff5264; }
.rig-dot.yellow { background: #ffc42c; }
.rig-dot.green { background: #58db48; }

.rig-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.05em;
  color: #fff;
}

.rig-title .live-tag {
  background: var(--lime);
  color: #0b1a2e;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
}

.rig-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.tool-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.arcade-screen-container {
  position: relative;
  width: 100%;
  height: 720px;
  background: #000;
  overflow: hidden;
}

.arcade-rig.theater-mode .arcade-screen-container {
  flex: 1;
  height: 100%;
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.arcade-screen-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at center, rgba(14, 10, 26, 0.85) 0%, rgba(8, 6, 16, 0.98) 100%),
    url('../img/screenshot-title.png') center / cover no-repeat;
  background-blend-mode: multiply;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.arcade-screen-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.overlay-play-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--lime);
  color: #120e24;
  font-family: var(--font-display);
  font-size: 24px;
  padding: 16px 42px;
  border-radius: var(--radius-md);
  border: 3px solid #000;
  box-shadow: 0 8px 0 #000, 0 0 40px rgba(184, 245, 34, 0.7);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.overlay-play-btn:hover {
  transform: scale(1.04);
}

.arcade-bottombar {
  padding: 14px 20px;
  background: rgba(12, 8, 22, 0.95);
  border-top: 2px solid #231b45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.control-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ctrl-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.keycap {
  display: inline-block;
  background: #231c42;
  color: var(--lime);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 900;
  font-size: 11px;
  border-bottom: 2px solid #140f29;
}

/* --------------------------------------------------------------------------
   INTERACTIVE SOUND CONSOLE (PRO AUDIO DECK / SYNTHESIS)
   -------------------------------------------------------------------------- */
.soundboard-section {
  padding: 80px 0;
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--sky);
  text-transform: uppercase;
  margin-bottom: 10px;
  background: rgba(46, 208, 255, 0.08);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 44px);
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.section-desc {
  max-width: 580px;
  margin: 0 auto;
  font-size: 16px;
  color: var(--text-muted);
}

/* Audio Deck Container */
.audio-deck {
  max-width: 960px;
  margin: 0 auto;
  background: linear-gradient(180deg, #181330 0%, #0f0a20 100%);
  border: 2px solid #2d2454;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.7),
    0 0 35px rgba(184, 245, 34, 0.08);
}

/* OLED Screen Display & Live Canvas Oscilloscope */
.deck-screen {
  background: #06040b;
  border: 2px solid #241c46;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
}

.screen-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.screen-channel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
  font-size: 12px;
  color: var(--lime);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-blink {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

.screen-track-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: #fff;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.1;
}

.screen-spec {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-dim);
}

.screen-visualizer {
  height: 64px;
  background: rgba(184, 245, 34, 0.03);
  border: 1px solid rgba(184, 245, 34, 0.15);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

#scopeCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* MPC / Drum Pad Grid */
.deck-pads {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.deck-pad {
  background: #15102a;
  border: 2px solid #2a2150;
  border-radius: var(--radius-md);
  padding: 16px 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 105px;
  user-select: none;
}

.deck-pad:hover {
  background: #20183e;
  border-color: rgba(184, 245, 34, 0.4);
  transform: translateY(-2px);
}

.deck-pad:active,
.deck-pad.active {
  background: #2b1f52;
  border-color: var(--lime);
  box-shadow: 0 0 20px rgba(184, 245, 34, 0.4);
  transform: translateY(1px);
}

.pad-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: monospace;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
}

.pad-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #392e62;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.deck-pad.active .pad-indicator {
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}

.pad-name {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.03em;
  color: #fff;
  margin-top: 6px;
  line-height: 1.1;
}

.pad-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
}

.pad-meta {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
}

.pad-freq {
  font-family: monospace;
  font-size: 10px;
  color: var(--lime);
}

/* --------------------------------------------------------------------------
   GAME MODES SHOWCASE
   -------------------------------------------------------------------------- */
.modes-section {
  padding: 80px 0;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.mode-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.mode-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: #fff;
}

.mode-icon-box svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.mode-card.coop .mode-icon-box { background: linear-gradient(135deg, var(--lime), #589900); color: #0f0a1c; }
.mode-card.race .mode-icon-box { background: linear-gradient(135deg, var(--sky), #0077b6); }
.mode-card.sumo .mode-icon-box { background: linear-gradient(135deg, var(--pink), #a4133c); }
.mode-card.ball .mode-icon-box { background: linear-gradient(135deg, var(--gold), #d97706); color: #0f0a1c; }

.mode-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  color: #fff;
}

.mode-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.mode-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 800;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   COURSES & WORLDS GALLERY
   -------------------------------------------------------------------------- */
.courses-section {
  padding: 80px 0;
  background: rgba(14, 10, 26, 0.4);
}

.courses-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.course-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-dark);
  border: 1px solid var(--border-glass);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.course-card:hover {
  transform: translateY(-6px);
  border-color: var(--lime);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(184, 245, 34, 0.15);
}

.course-img-wrap {
  width: 100%;
  height: 190px;
  overflow: hidden;
  position: relative;
}

.course-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-card:hover .course-img {
  transform: scale(1.08);
}

.course-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(10, 8, 20, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(184, 245, 34, 0.4);
  color: var(--lime);
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.22s ease;
  pointer-events: none;
}

.course-card:hover .course-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.course-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.course-tier {
  color: var(--sky);
  font-weight: 700;
}

.course-flow-stat {
  font-size: 11px;
  font-weight: 700;
  color: var(--lime);
  background: rgba(184, 245, 34, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
}

.course-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(12, 8, 22, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--lime);
  text-transform: uppercase;
}

.course-content {
  padding: 20px;
}

.course-title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  color: #fff;
}

.course-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   CHARACTERS & GAGS
   -------------------------------------------------------------------------- */
.characters-section {
  padding: 80px 0;
}

.char-banner {
  background: linear-gradient(135deg, rgba(32, 22, 64, 0.5) 0%, rgba(20, 14, 40, 0.8) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.char-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.char-item-card {
  background: rgba(14, 10, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
}

.char-item-card:hover {
  transform: translateY(-5px);
  border-color: var(--lime);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 16px rgba(184, 245, 34, 0.2);
}

.char-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.char-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.char-item-card:hover .char-img-wrap img {
  transform: scale(1.05);
}

.char-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 10, 26, 0.6);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  color: var(--lime);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.char-item-card:hover .char-zoom-overlay {
  opacity: 1;
}

.char-item-title {
  font-family: var(--font-display);
  font-size: 15px;
  margin-top: 10px;
  color: #fff;
}

.char-item-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   CONTROLS 1-2-3-4
   -------------------------------------------------------------------------- */
.step-num {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--lime);
}

/* --------------------------------------------------------------------------
   FAQS
   -------------------------------------------------------------------------- */
.faq-section {
  padding: 70px 0;
}

.faq-grid {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 22px;
}

.faq-q {
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.faq-a {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: #05040a;
  border-top: 1px solid var(--border-glass);
  padding: 50px 0 26px;
  margin-top: 50px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 340px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
}

.footer-links-group {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .char-banner { grid-template-columns: 1fr; }
  .arcade-screen-container { height: 520px; }
  .deck-pads { grid-template-columns: repeat(2, 1fr); }
  .deck-screen { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  .navbar {
    height: 64px;
  }
  .navbar .container {
    padding: 0 14px;
  }
  .brand {
    gap: 8px;
  }
  .brand-3d-emblem {
    height: 38px;
    max-width: 44px;
  }
  .brand-name {
    font-size: 19px;
  }
  .brand-tld-badge {
    font-size: 10px;
    padding: 2px 4px;
    margin-left: 3px;
  }
  .nav-text-desktop {
    display: none;
  }
  .nav-text-mobile {
    display: inline;
  }
  .nav-play-btn {
    padding: 6px 14px !important;
    font-size: 13px !important;
    height: 32px !important;
    min-height: 32px !important;
    border-radius: var(--radius-pill) !important;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5) !important;
    letter-spacing: 0.05em !important;
    white-space: nowrap !important;
  }
  .hero {
    padding-top: 96px;
    padding-bottom: 24px;
  }
  .hero-pill {
    font-size: 11px;
    padding: 5px 12px;
    margin-bottom: 14px;
  }
  .hero-title {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.02;
    margin-bottom: 12px;
  }
  .hero-subtitle {
    font-size: 18px;
    margin-bottom: 14px;
  }
  .hero-desc {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
    padding: 0 4px;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 32px;
    gap: 10px;
  }
  .hero-cta .btn {
    width: 100%;
    font-size: 15px;
    padding: 12px 20px;
  }
  .arcade-screen-container { height: 380px; }
  .arcade-topbar {
    padding: 10px 14px;
    gap: 8px;
  }
  .rig-lights {
    display: none;
  }
  .rig-title {
    font-size: 13px;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .rig-title .live-tag {
    font-size: 10px;
    padding: 2px 5px;
  }
  .rig-tools {
    gap: 6px;
    flex-shrink: 0;
  }
  #btnTheater {
    display: none;
  }
  .tool-btn {
    padding: 5px 9px;
    font-size: 11px;
    white-space: nowrap;
  }
  .arcade-bottombar {
    padding: 10px 14px;
  }
  .footer-links-group { gap: 28px; }
}

/* --------------------------------------------------------------------------
   INTERACTIVE GAME MODAL (TRACK & GEAR LIGHTBOX)
   -------------------------------------------------------------------------- */
.game-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
}

.game-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 14, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.game-modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  background: #0f0a20;
  border: 1px solid rgba(184, 245, 34, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(184, 245, 34, 0.15);
  border-radius: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  transform: scale(0.92) translateY(14px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-modal-overlay.active .game-modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--lime);
  color: #0b0716;
  border-color: var(--lime);
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 480px;
}

@media (max-width: 860px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
}

.modal-media-col {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #000;
}

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

.modal-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-nav-btn:hover {
  background: rgba(184, 245, 34, 0.15);
  border-color: var(--lime);
  color: var(--lime);
}

.modal-counter {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.modal-info-col {
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
}

.modal-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-right: 42px;
}

.modal-theme-badge {
  font-family: var(--font-display);
  font-size: 11px;
  text-transform: uppercase;
  background: rgba(184, 245, 34, 0.15);
  color: var(--lime);
  border: 1px solid rgba(184, 245, 34, 0.35);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
}

.modal-difficulty-badge {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--sky);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 6px;
}

.modal-quote {
  font-style: italic;
  font-size: 13.5px;
  color: #a49fc5;
  margin-bottom: 16px;
  border-left: 2px solid var(--lime);
  padding-left: 10px;
}

.modal-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.modal-specs-box {
  background: rgba(20, 15, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.spec-label {
  color: var(--text-muted);
  font-weight: 600;
}

.spec-value {
  color: #fff;
  font-weight: 700;
}

.modal-pro-tip {
  background: rgba(46, 208, 255, 0.08);
  border: 1px solid rgba(46, 208, 255, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 24px;
}

.pro-tip-tag {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--sky);
  margin-bottom: 4px;
}

.modal-pro-tip p {
  font-size: 13px;
  color: #d1ecf9;
  line-height: 1.5;
  margin: 0;
}

.modal-actions {
  margin-top: auto;
}

.modal-actions .btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
   3D WINDING RIVER BACKDROP
   -------------------------------------------------------------------------- */
.river-backdrop-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.river-backdrop-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.river-eddy {
  transform-origin: center;
  animation: eddyRotate 28s linear infinite;
}

.river-eddy.eddy-2 {
  animation: eddyRotateReverse 36s linear infinite;
}

@keyframes eddyRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes eddyRotateReverse {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* --------------------------------------------------------------------------
   3D ARTISTIC AMBIENT JUNGLE & RIVER LAYER (SPACED & SCULPTED)
   -------------------------------------------------------------------------- */
.ambient-fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 35;
  overflow: hidden;
  perspective: 1400px;
}

.ambient-fx-item {
  position: absolute;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
  transform-style: preserve-3d;
  opacity: 0;
}

.ambient-fx-layer.ready .ambient-fx-item {
  transition: opacity 0.35s ease-out;
}

.ambient-fx-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Sculpted 3D Leaf: Soft ambient occlusion and subtle green bounce glow */
.ambient-fx-item.fx-leaf img {
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 16px rgba(100, 240, 50, 0.12));
}

/* 3D Mascot Character (Crocodile & Hippo & Capybara): Warm party game lighting */
.ambient-fx-item.fx-mascot {
  z-index: 40;
  pointer-events: none;
  cursor: pointer;
  touch-action: manipulation;
}
.ambient-fx-item.fx-mascot img {
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 25px rgba(120, 255, 80, 0.25));
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

.ambient-fx-item.fx-mascot:hover img {
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 32px rgba(135, 255, 60, 0.65)) brightness(1.08);
}

/* Mascot Recoil Wiggle on Fart Easter Egg */
@keyframes mascotFartJiggle {
  0% { transform: scale(1) rotate(0deg); }
  20% { transform: scale(1.18, 0.88) rotate(-7deg); }
  45% { transform: scale(0.92, 1.15) rotate(6deg); }
  70% { transform: scale(1.08, 0.95) rotate(-3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.ambient-fx-item.mascot-farting img {
  animation: mascotFartJiggle 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) !important;
}

/* Comic Neon Green Fart Gas Bubble Particle */
.fart-gas-particle {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #dbff54, #6ae81c 55%, #2a8809 100%);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 16px rgba(135, 255, 50, 0.9), inset 0 2px 4px rgba(255, 255, 255, 0.8);
  z-index: 100;
  will-change: transform, opacity;
  animation: floatPopFart 0.75s ease-out forwards;
}

@keyframes floatPopFart {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.2);
  }
  20% {
    opacity: 1;
    transform: translate(var(--tx-mid), var(--ty-mid)) scale(1.15);
  }
  75% {
    opacity: 0.85;
    transform: translate(var(--tx-end), var(--ty-end)) scale(0.9);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx-end), calc(var(--ty-end) - 15px)) scale(1.35);
  }
}

/* 3D Floating Raft Tube with Fart Bubbles: Floating water glow */
.ambient-fx-item.fx-tube {
  z-index: 38;
}
.ambient-fx-item.fx-tube img {
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 24px rgba(255, 130, 30, 0.25));
}

/* Organic Water Splash: Screen blend for authentic luminous fluid integration */
.ambient-fx-item.fx-water img {
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 25px rgba(46, 208, 255, 0.55)) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
}

@media (max-width: 1100px) {
  .ambient-fx-item {
    opacity: 0.6 !important;
  }
}

@media (max-width: 768px) {
  .ambient-fx-layer {
    display: none;
  }
}
