/* -------------------------------------------------------------
   ODDBALLS DESIGN SYSTEM & CUSTOM STYLING
------------------------------------------------------------- */

/* Google Font Import handles within index.html, but variables here */
:root {
  --font-primary: 'Fredoka', sans-serif;
  --font-secondary: 'Quicksand', sans-serif;
  --font-mono: 'Courier Prime', monospace;

  /* Theme Colors */
  --color-bg-dark: #0b091a;
  --color-bg-medium: #191436;
  --color-bg-light: #fffcf5;
  --color-text-dark: #1e1b24;
  --color-text-light: #fefefe;
  --color-text-muted: #8b8599;

  /* Accent Colors */
  --color-pink: #ef476f;
  --color-yellow: #ffd166;
  --color-robinhood: #ccff00;
  --color-green: #06d6a0;
  --color-blue: #118ab2;
  --color-orange: #f38d49;

  /* Shadows and Borders */
  --shadow-cozy: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-cosmic: 0 10px 40px rgba(239, 71, 111, 0.15);
  --shadow-neon: 0 0 20px rgba(204, 255, 0, 0.42);
  --shadow-robinhood: 0 0 24px rgba(204, 255, 0, 0.42);
  --border-hand-drawn: 3px solid #1e1b24;
  
  /* Transition durations */
  --transition-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-fast: all 0.2s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  overflow-x: hidden;
  position: relative;
}

/* Preloader styling */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
}

.preloader-doodle-container {
  width: 320px;
  height: 120px;
  margin: 0 auto 25px;
  animation: preloader-bounce 2s infinite ease-in-out;
}

.preloader-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preloader-title {
  font-family: var(--font-primary);
  color: var(--color-robinhood);
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.preloader-bar-container {
  width: 200px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-pink), var(--color-robinhood));
  border-radius: 10px;
  animation: preloader-fill 2s forwards cubic-bezier(0.1, 0.8, 0.2, 1);
}

@keyframes preloader-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(8deg); }
}

@keyframes preloader-fill {
  to { width: 100%; }
}

/* Scroll Path Container */
.doodle-scroll-path-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* Typography elements */
h1, h2, h3, h4 {
  font-family: var(--font-primary);
  font-weight: 700;
}

p {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.highlight-text {
  color: var(--color-pink);
  position: relative;
  font-weight: 600;
  display: inline-block;
}

.highlight-text::after {
  content: none;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-robinhood);
  color: var(--color-text-dark);
  box-shadow: 0 4px 18px rgba(204, 255, 0, 0.26);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 28px rgba(204, 255, 0, 0.45);
  background-color: #d9ff33;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-text-light);
  border: 2px solid rgba(255, 255, 255, 0.15);
  margin-left: 15px;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-bounce:active {
  transform: translateY(2px) scale(0.98);
}

/* Control Panel Toggles */
.control-panel {
  display: flex;
  gap: 12px;
  z-index: 2;
}

.control-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 30px;
  background: rgba(25, 20, 54, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-light);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-cozy);
  transition: var(--transition-smooth);
}

.control-btn:hover {
  background: rgba(25, 20, 54, 0.95);
  border-color: var(--color-robinhood);
  transform: translateY(-2px);
}

.control-btn svg {
  transition: transform 0.3s ease;
}

.control-btn:hover svg {
  transform: scale(1.1);
}

.control-label-text {
  display: inline-block;
}

/* Header & Navigation */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 32px;
  z-index: 1200;
  background: rgba(11, 9, 26, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.logo:hover {
  transform: scale(1.05) rotate(-2deg);
}

.logo-img {
  height: 52px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex: 1;
  min-width: 0;
}

.nav-link {
  font-family: var(--font-primary);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition-fast);
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-robinhood);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text-light);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.nav-social,
.mobile-social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-social::before,
.mobile-social::before {
  content: '';
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-light);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-toggle:hover,
.main-header.menu-open .mobile-menu-toggle {
  border-color: var(--color-robinhood);
  box-shadow: var(--shadow-robinhood);
}

.mobile-menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-header.menu-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.main-header.menu-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.main-header.menu-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

/* Section Common Settings */
.section {
  position: relative;
  width: 100%;
  padding: 100px 50px;
  overflow: hidden;
}

.section-divider {
  position: absolute;
  left: 0;
  width: 100%;
  height: 82px;
  line-height: 0;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.section-divider svg {
  display: block;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  margin-left: -1px;
  transform: translateY(1px);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tagline {
  font-family: var(--font-primary);
  color: var(--color-robinhood);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: var(--color-text-dark);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-text-dark);
  opacity: 0.8;
}

/* -------------------------------------------------------------
   HERO SECTION
------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 30%, var(--color-bg-medium), var(--color-bg-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 150px;
  z-index: 10;
}

/* Background Stars */
.stars-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.star {
  position: absolute;
  background-color: #fff;
  border-radius: 50%;
  animation: star-twinkle var(--duration) infinite ease-in-out;
  opacity: 0.7;
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Fireflies / Ember particles */
.fireflies-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.firefly {
  position: absolute;
  background: radial-gradient(circle, var(--color-yellow) 0%, rgba(255, 209, 102, 0) 70%);
  border-radius: 50%;
  opacity: 0;
  animation: firefly-drift var(--duration) infinite ease-in-out;
}

@keyframes firefly-drift {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }
  15% {
    opacity: 0.7;
  }
  85% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(1);
  }
}

.hero-content {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-character-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-floating-oddball {
  width: 260px;
  height: auto;
  object-fit: contain;
  border: 4px solid #1e1b24;
  border-radius: 12px 18px 10px 14px / 14px 10px 18px 12px;
  box-shadow: 8px 8px 0px #1e1b24;
  animation: float-y 5s infinite ease-in-out;
}

.type-left {
  animation-duration: 6s;
  animation-delay: 0.5s;
}

.type-right {
  animation-duration: 5.5s;
  animation-delay: 1.2s;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(4deg); }
}

.hero-text-block {
  text-align: center;
  padding: 0 20px;
}

.hero-sub {
  font-family: var(--font-primary);
  color: var(--color-robinhood);
  font-size: 0.9rem;
  letter-spacing: 3px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(204, 255, 0, 0.24);
}

.hero-title {
  font-size: 5.5rem;
  margin-bottom: 25px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--color-text-light) 0%, var(--color-robinhood) 50%, var(--color-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
  line-height: 1;
}

.hero-lead {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 35px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-divider {
  bottom: -1px;
}

/* -------------------------------------------------------------
   ABOUT SECTION
------------------------------------------------------------- */
.about-section {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  z-index: 9;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}

.pillar-card {
  background: #fff;
  border: 4px solid #1e1b24;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 10px 10px 0px #1e1b24;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.pillar-card:hover {
  transform: translateY(-6px) translateX(-6px) rotate(1deg);
  box-shadow: 14px 14px 0px #1e1b24;
}

.pillar-img-wrapper {
  width: 100%;
  aspect-ratio: 3 / 2;
  margin: 0 auto 25px;
  background-color: var(--color-bg-light);
  border: 3px solid #1e1b24;
  border-radius: 16px 8px 12px 10px / 10px 12px 8px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: 4px 4px 0px #1e1b24;
}

.pillar-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.pillar-card:hover .pillar-avatar {
  transform: scale(1.15) rotate(-5deg);
}

.pillar-title {
  font-size: 1.5rem;
  color: var(--color-text-dark);
  margin-bottom: 15px;
}

.pillar-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* Quote Section */
.quote-block {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  position: relative;
}

.quote-symbol {
  font-family: var(--font-primary);
  font-size: 8rem;
  line-height: 1;
  color: rgba(239, 71, 111, 0.1);
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  user-select: none;
}

.quote-text {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text-dark);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.quote-author {
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-pink);
  letter-spacing: 1px;
}

/* -------------------------------------------------------------
   SUMMONER SECTION (WHIM DECK)
------------------------------------------------------------- */
.summoner-section {
  background: radial-gradient(circle at 50% 100%, var(--color-bg-medium), var(--color-bg-dark));
  z-index: 8;
}

.light-header .section-title {
  color: var(--color-text-light);
}

.light-header .section-subtitle {
  color: var(--color-text-muted);
}

.summoner-container {
  max-width: 1200px;
  margin: 0 auto;
}

.summoner-interactive-workspace {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
  min-height: 550px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  padding: 60px;
}

/* Deck area */
.deck-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.deck-pile {
  position: relative;
  width: 220px;
  height: 300px;
  cursor: pointer;
  margin-bottom: 30px;
}

.deck-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, top 0.3s ease, left 0.3s ease;
}

/* Standard back for cards */
.card-back {
  background: linear-gradient(135deg, var(--color-bg-medium) 0%, #201a47 100%);
  border: 3px solid var(--color-yellow);
  background-image: 
    radial-gradient(var(--color-pink) 2px, transparent 2px),
    radial-gradient(var(--color-blue) 2px, transparent 2px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-back::after {
  content: '*';
  font-size: 3rem;
  color: var(--color-yellow);
  text-shadow: var(--shadow-neon);
}

/* Offset stack effects */
.card-offset-1 { transform: rotate(-4deg); z-index: 10; }
.card-offset-2 { transform: rotate(1deg) translate(3px, -2px); z-index: 9; }
.card-offset-3 { transform: rotate(-1deg) translate(-2px, 4px); z-index: 8; }
.card-offset-4 { transform: rotate(3deg) translate(5px, 2px); z-index: 7; }

/* Deck pile hover animations */
.deck-pile:hover .card-offset-1 { transform: rotate(-8deg) translate(-5px, -5px); }
.deck-pile:hover .card-offset-2 { transform: rotate(3deg) translate(8px, -4px); }
.deck-pile:hover .card-offset-3 { transform: rotate(-3deg) translate(-4px, 8px); }

/* Summon button in middle of deck */
.summon-trigger-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background-color: var(--color-robinhood);
  border: 4px solid var(--color-bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
  padding: 10px;
}

.deck-pile:hover .summon-trigger-btn {
  transform: translate(-50%, -50%) scale(1.05) rotate(5deg);
  background-color: #f6ffd9;
  box-shadow: var(--shadow-robinhood);
}

.draw-btn-logo {
  width: 88%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}

.summon-trigger-btn:hover .draw-btn-logo {
  transform: scale(1.05);
}

.deck-hint {
  font-family: var(--font-primary);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* Stage Area / Polaroid card Deal target */
.stage-area {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

.polaroid-holder {
  width: 320px;
  min-height: 440px;
  background-color: #fff;
  color: var(--color-text-dark);
  padding: 20px;
  border: 4px solid #1e1b24;
  border-radius: 16px 24px 12px 20px / 20px 12px 24px 16px;
  box-shadow: 12px 12px 0px #1e1b24;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Empty state styling */
.polaroid-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  color: var(--color-text-muted);
  border: 2px dashed rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background-color: #faf9f6;
  width: 100%;
}

.cozy-outline-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--color-text-muted);
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  animation: pulse-slow 3s infinite ease-in-out;
}

.polaroid-empty-state p {
  font-size: 0.95rem;
  color: #6c637a;
  line-height: 1.5;
}

/* Dealt Polaroid Card */
.polaroid-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.polaroid-img-frame {
  width: 100%;
  height: 240px;
  background-color: var(--color-bg-light);
  border: 3px solid #1e1b24;
  border-radius: 8px 12px 6px 10px / 10px 6px 12px 8px;
  box-shadow: inset 2px 2px 5px rgba(0,0,0,0.1), 4px 4px 0px #1e1b24;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.polaroid-img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.polaroid-card:hover .polaroid-img {
  transform: scale(1.08) rotate(2deg);
}

.polaroid-info {
  margin-top: 15px;
  text-align: center;
}

.polaroid-name {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  color: var(--color-text-dark);
  margin-bottom: 5px;
}

.polaroid-role {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-pink);
  margin-bottom: 12px;
  font-weight: bold;
}

.polaroid-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  padding-top: 12px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.stat-name {
  color: #666;
  font-weight: 500;
}

.stat-track {
  width: 140px;
  height: 6px;
  background-color: #eae6db;
  border-radius: 10px;
  overflow: hidden;
}

.stat-bar {
  height: 100%;
  border-radius: 10px;
  width: 0; /* Animated in JS */
  transition: width 1s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.stat-bar.pink { background-color: var(--color-pink); }
.stat-bar.yellow { background-color: var(--color-yellow); }
.stat-bar.blue { background-color: var(--color-blue); }

.summoner-divider {
  bottom: -1px;
}

/* -------------------------------------------------------------
   VISION SECTION
------------------------------------------------------------- */
.vision-section {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  z-index: 7;
  padding: 140px 50px;
}

/* Infinite Horizontal Image Tickers */
.image-ticker-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.04; /* Subtly overlaid in the background */
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  z-index: 1;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 50px;
}

.ticker-item {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.track-left {
  animation: ticker-scroll-left 45s linear infinite;
}

.track-right {
  animation: ticker-scroll-right 45s linear infinite;
}

@keyframes ticker-scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes ticker-scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.vision-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.vision-text-card {
  background-color: #fff;
  padding: 50px;
  border-radius: 30px;
  border: var(--border-hand-drawn);
  box-shadow: var(--shadow-cozy);
}

.card-badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: rgba(204, 255, 0, 0.14);
  color: var(--color-text-dark);
  border: 1px solid rgba(204, 255, 0, 0.45);
  border-radius: 20px;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.card-main-title {
  font-size: 2.3rem;
  color: var(--color-text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.vision-description {
  font-size: 1.1rem;
  color: #4a4552;
  margin-bottom: 35px;
}

.stats-checklist {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.checklist-item {
  display: flex;
  gap: 15px;
}

.check-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-robinhood);
  color: var(--color-text-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.checklist-item h4 {
  font-size: 1.1rem;
  color: var(--color-text-dark);
  margin-bottom: 5px;
}

.checklist-item p {
  font-size: 0.95rem;
  color: #666;
}

/* Feature showcase (Rebel layout) */
.vision-feature-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.featured-oddball-container {
  width: 320px;
  height: 380px;
  border-radius: 30px 15px 40px 20px / 20px 40px 15px 30px;
  background: linear-gradient(145deg, #fff3d6, #ffe0b3);
  border: 4px solid #1e1b24;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 12px 12px 0px #1e1b24;
  transform: rotate(3deg);
  transition: var(--transition-smooth);
}

.featured-oddball-container:hover {
  transform: rotate(-2deg) scale(1.03) translate(-4px, -4px);
  box-shadow: 16px 16px 0px #1e1b24;
}

.featured-oddball-img {
  width: 85%;
  height: 80%;
  object-fit: contain;
}

.badge-tag {
  background-color: var(--color-text-dark);
  color: var(--color-yellow);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 12px;
  position: absolute;
  bottom: -15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.doodle-floating-bubble {
  position: absolute;
  top: -40px;
  right: -20px;
  width: 200px;
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  border: 2px solid var(--color-robinhood);
  padding: 15px;
  border-radius: 18px;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  box-shadow: var(--shadow-robinhood);
  animation: bubble-float 4s infinite ease-in-out;
}

.doodle-floating-bubble p {
  color: var(--color-text-light);
}

.bubble-arrow {
  position: absolute;
  bottom: -10px;
  left: 30px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--color-robinhood);
}

@keyframes bubble-float {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-10px) rotate(-2deg); }
}

.vision-divider {
  bottom: -1px;
}

/* -------------------------------------------------------------
   FOOTER CAMPSITE SECTION
------------------------------------------------------------- */
.campsite-section {
  background: radial-gradient(circle at 50% 100%, #1e1333 0%, var(--color-bg-dark) 100%);
  padding: 120px 50px 80px;
  z-index: 6;
}

.campsite-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Campfire Scene Styling */
.campground-clearing {
  width: 100%;
  height: 380px;
  margin-bottom: 50px;
  position: relative;
  background-color: rgba(255, 255, 255, 0.02);
  border: 3px dashed rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  cursor: crosshair;
  box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.campground-clearing:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Footer Form and Text */
.footer-cta {
  text-align: center;
  max-width: 650px;
  z-index: 10;
}

.footer-title {
  font-size: 2.8rem;
  margin-bottom: 15px;
  color: var(--color-robinhood);
  text-shadow: var(--shadow-robinhood);
}

.footer-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

.signup-form {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: var(--border-hand-drawn);
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 8px;
  margin-bottom: 50px;
  box-shadow: var(--shadow-cozy);
  transition: border-color 0.3s ease;
}

.signup-form:focus-within {
  border-color: var(--color-robinhood);
}

.signup-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 20px;
  color: var(--color-text-light);
  font-family: var(--font-secondary);
  font-size: 1rem;
}

.signup-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.signup-btn {
  font-size: 0.95rem;
  padding: 12px 24px;
}

.footer-bottom-quote {
  font-family: var(--font-primary);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--color-pink);
  margin-bottom: 40px;
}

.footer-social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-light);
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.social-link::before {
  content: '';
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.opensea-link::before {
  background-image: url('../assets/social/opensea-logo.webp');
}

.x-link::before {
  background-image: url('../assets/social/x-logo.webp');
}

.social-icon {
  display: none;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  border-color: var(--color-robinhood);
}

.copyright-info {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  width: 100%;
}

/* Cleaned up layout (Corporate mode and campfire sound controls removed) */

/* Cartoon sticker-outline border effect for summoned transparent character in Polaroid card */
.polaroid-img {
  filter: drop-shadow(3px 0 0 white) drop-shadow(-3px 0 0 white) drop-shadow(0 3px 0 white) drop-shadow(0 -3px 0 white) drop-shadow(0 8px 12px rgba(0,0,0,0.22));
}

/* Dynamic Floating Logo Elements */
.logo-star-element {
  position: absolute;
  pointer-events: none;
  opacity: 0.85;
  z-index: 2;
  animation: logo-star-twinkle var(--duration) infinite ease-in-out;
}

.logo-drift-element {
  position: absolute;
  pointer-events: none;
  opacity: 0.15; /* Subtle background visual texture */
  z-index: 1;
  animation: logo-drift var(--duration) infinite ease-in-out;
}

@keyframes logo-star-twinkle {
  0%, 100% { 
    transform: scale(0.8) rotate(0deg); 
    opacity: 0.4;
  }
  50% { 
    transform: scale(1.25) rotate(180deg); 
    opacity: 0.95;
  }
}

@keyframes logo-drift {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(0.95);
  }
  50% {
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1.15);
  }
  100% {
    transform: translate(0, 0) rotate(360deg) scale(0.95);
  }
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN
------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-character-wrapper.left,
  .hero-character-wrapper.right {
    grid-row: 2;
    display: inline-flex;
    width: 45%;
  }
  
  .hero-character-wrapper.left { justify-content: flex-end; }
  .hero-character-wrapper.right { justify-content: flex-start; }

  .hero-floating-oddball {
    width: 200px;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .summoner-interactive-workspace {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 30px;
  }

  .vision-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .vision-feature-showcase {
    grid-row: 1;
  }
  
  .main-header {
    padding: 14px 18px;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu {
    display: grid;
    max-width: 1300px;
    margin: 12px auto 0;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  .main-header.menu-open .mobile-menu {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-light);
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 600;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 60px 20px;
  }

  .doodle-scroll-path-container {
    display: none;
  }

  .section-divider {
    height: 58px;
  }

  .hero-section {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 86px;
  }

  .about-section {
    padding-top: 82px;
    padding-bottom: 76px;
  }

  .summoner-section,
  .vision-section {
    padding-top: 82px;
    padding-bottom: 92px;
  }

  .campsite-section {
    padding-top: 86px;
    padding-bottom: 70px;
  }
  
  .main-header {
    padding: 10px 12px;
  }

  .header-container {
    gap: 10px;
  }

  .logo-img {
    height: 40px;
    max-width: 138px;
  }

  .control-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 14px;
  }

  .control-label-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .mobile-menu-toggle {
    width: 42px;
    height: 42px;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-floating-oddball {
    width: 150px;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .quote-text {
    font-size: 1.3rem;
  }

  .signup-form {
    flex-direction: column;
    border-radius: 20px;
    padding: 15px;
  }

  .signup-btn {
    width: 100%;
  }

  .campfire-scene-wrapper {
    gap: 20px;
    height: 180px;
  }

  .campsite-tent {
    height: 80%;
  }

  .campsite-tent svg {
    width: 130px;
    height: 100px;
  }

  .tent-sleeper {
    left: 20px;
    width: 50px;
  }

  .campfire-element {
    width: 80px;
    height: 80px;
  }

  .flames-container {
    width: 40px;
    height: 60px;
  }

  .guest-oddball {
    width: 70px;
  }
  
  .polaroid-holder {
    width: 280px;
  }
}

/* Dynamic Campfire Ring & Campers Styles */
#campers-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10;
}

.dynamic-camper {
  position: absolute;
  width: 72px;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  filter: drop-shadow(3px 0 0 white) drop-shadow(-3px 0 0 white) drop-shadow(0 3px 0 white) drop-shadow(0 -3px 0 white) drop-shadow(0 6px 12px rgba(0,0,0,0.25));
  animation: float-y 4.5s infinite ease-in-out;
  pointer-events: auto;
  cursor: pointer;
}

.dynamic-camper:hover {
  transform: scale(1.15) rotate(5deg) !important;
}

/* Custom speech bubble for campers */
.camper-speech-bubble {
  position: absolute;
  background-color: #fff;
  border: 2px solid #1e1b24;
  border-radius: 12px;
  padding: 8px 12px;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  color: var(--color-text-dark);
  max-width: 140px;
  text-align: center;
  box-shadow: 4px 4px 0px #1e1b24;
  z-index: 30;
  animation: pop-bubble 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  transform-origin: bottom center;
  pointer-events: auto;
}

/* Speech bubble pointer arrow */
.camper-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: #fff transparent;
  display: block;
  width: 0;
  z-index: 31;
}

.camper-speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 9px 9px 0;
  border-style: solid;
  border-color: #1e1b24 transparent;
  display: block;
  width: 0;
  z-index: 30;
}

@keyframes pop-bubble {
  from { transform: scale(0) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
