/* MilleRace - Revamped Landing Page Styles (Figma Web1 & Web2 Reference) */

#screen-landing.landing-scrollable {
  background-color: #16141C;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-behavior: smooth;
  position: relative;
}

/* SECTION 1: HERO SECTION - 100% SCREEN HEIGHT */
.landing-hero-section {
  width: 100%;
  max-width: 1440px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 34px 80px 48px 80px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  z-index: 2;
}

/* Top Nav Bar */
.landing-top-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  gap: 20px;
  flex-shrink: 0;
}

/* Hero Content */
.hero-content {
  margin-top: auto;
  margin-bottom: auto;
  padding: 30px 0;
  max-width: 680px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1.25;
  color: #FFFFFF;
  letter-spacing: 2px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  margin: 0;
}

.hero-subtitle {
  font-family: 'Cutive Mono', monospace;
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.5;
  color: #E2E8F0;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Start the Test Button (Figma SVG Asset with Ellipse Transition) */
.start-test-svg-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.hero-start-btn {
  align-self: flex-end;
  margin-top: 0;
  margin-bottom: 24px;
  z-index: 10;
  flex-shrink: 0;
}

.start-test-svg-btn .btn-svg-base {
  height: 66px;
  width: auto;
  display: block;
}

.start-test-svg-btn .btn-svg-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  clip-path: ellipse(150% 0% at 50% 0%);
  opacity: 0;
  transition: clip-path 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.start-test-svg-btn:hover .btn-svg-hover {
  clip-path: ellipse(150% 150% at 50% 50%);
  opacity: 1;
}

.start-test-svg-btn:hover {
  transform: scale(1.06) translateY(-2px);
  filter: drop-shadow(0 8px 22px rgba(46, 158, 133, 0.55));
}

.start-test-svg-btn:active {
  transform: scale(0.98);
}

.start-btn-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bona Nova', serif;
  font-size: 1.25rem;
  color: #16141C;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  z-index: 5;
}

.start-test-svg-btn:hover .start-btn-text {
  color: #FFFFFF;
}

/* SECTION 2: HOW TO PLAY SECTION */
.how-to-play-section {
  width: 100%;
  background: #854EB4;
  padding: 30px 20px 0 20px;
  height: 368px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-bottom: 160px;
  /* Space for the overhanging cards */
}

.how-to-play-banner-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: -65px;
  /* Overlaps hero section boundary */
  z-index: 20;
}

.how-to-play-banner-bg {
  height: 56px;
  width: auto;
}

.how-to-play-title {
  position: absolute;
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: #16141C;
  font-weight: 400;
  letter-spacing: 2px;
}

/* 3 Step Cards Grid */
.steps-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 32px;
  width: 100%;
  max-width: 1180px;
  margin-top: 50px;
  z-index: 10;
}

.step-card {
  position: relative;
  width: 332px;
  max-width: 100%;
  height: 444px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.32));
  transition: transform var(--transition-fast), filter var(--transition-fast);
  flex-shrink: 0;
}

.step-card:hover {
  transform: translateY(-8px);
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.45));
}

.step-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 1;
}

.step-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 38px 24px 20px 24px;
  gap: 20px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.step-num {
  font-family: 'Bona Nova', serif;
  font-size: 2rem;
  line-height: 1.2;
  color: #16141C;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin: 0;
}

.step-text {
  font-family: 'Cutive Mono', monospace;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #16141C;
  margin: 0;
  max-width: 290px;
}

/* Triple Dots Glowing Row (Under How To Play, Right-aligned under Step 3) */
.triple-dots-row {
  width: 100%;
  max-width: 1060px;
  display: flex;
  justify-content: flex-end;
  padding: 50px 0 0 0;
  z-index: 5;
  box-sizing: border-box;
}

.triple-dots-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.triple-dots-wrapper img {
  width: 110px;
  height: auto;
  display: block;
}

/* SECTION 3: WHAT IS MILLERACE? */
.what-is-section {
  width: 100%;
  max-width: 1120px;
  padding: 80px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.what-is-left {
  flex: 1;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: right;
  align-items: flex-end;
}

.what-is-title {
  font-family: 'Bona Nova', serif;
  font-size: 2.5rem;
  color: #FFFFFF;
  font-weight: 400;
  text-align: right;
  margin: 0;
}

.what-is-text {
  font-family: 'Cutive Mono', monospace;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #CBD5E1;
  text-align: right;
  margin: 0;
}

/* Interactive Game Preview Slideshow */
.what-is-right-frame {
  width: 540px;
  max-width: 100%;
  height: 350px;
  background: #16141C;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
  position: relative;
  display: block;
}

.slideshow-track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slideshow-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-out;
  transform: scale(1.03);
  z-index: 1;
  cursor: zoom-in;
}

.slideshow-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(22, 20, 28, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  user-select: none;
}

.slideshow-arrow:hover {
  background: rgba(133, 78, 180, 0.85);
  color: var(--color-yellow);
  border-color: var(--color-yellow);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 12px rgba(243, 205, 80, 0.4);
}

.slideshow-arrow.prev {
  left: 14px;
}

.slideshow-arrow.next {
  right: 14px;
}

.slideshow-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.slideshow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slideshow-dot:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.2);
}

.slideshow-dot.active {
  width: 24px;
  border-radius: 6px;
  background: var(--color-yellow);
  box-shadow: 0 0 10px rgba(243, 205, 80, 0.8);
}

/* Slideshow Lightbox Modal (Enlarge Image Feature) */
.slideshow-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.slideshow-lightbox-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: zoom-out;
}

.lightbox-content-wrap {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  contain: layout;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.18);
  object-fit: contain;
  transform: scale(0.94);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  display: block;
}

.slideshow-lightbox-modal.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close-btn {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #16141C;
  border: 2px solid var(--color-yellow);
  color: var(--color-yellow);
  font-size: 1.3rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  z-index: 10;
  will-change: transform;
}

.lightbox-close-btn:hover {
  transform: scale(1.12);
  background: var(--color-yellow);
  color: #16141C;
  box-shadow: 0 0 20px rgba(243, 205, 80, 0.6);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(22, 20, 28, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  will-change: transform;
}

.lightbox-nav-btn:hover {
  background: rgba(133, 78, 180, 0.95);
  color: var(--color-yellow);
  border-color: var(--color-yellow);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 0 16px rgba(243, 205, 80, 0.5);
}

.lightbox-nav-btn.prev {
  left: -24px;
}

.lightbox-nav-btn.next {
  right: -24px;
}

@media (max-width: 768px) {
  .lightbox-close-btn {
    top: 8px;
    right: 8px;
  }

  .lightbox-nav-btn.prev {
    left: 8px;
  }

  .lightbox-nav-btn.next {
    right: 8px;
  }
}

/* SECTION 4: MEET YOUR CHARACTER MATCH */
.meet-characters-section {
  width: 100%;
  max-width: 1160px;
  padding: 90px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.meet-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: #FFFFFF;
  text-align: center;
  font-weight: 400;
  letter-spacing: 1px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  margin-bottom: 16px;
}

.meet-desc {
  font-family: 'Cutive Mono', monospace;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.6;
  color: #CBD5E1;
  text-align: center;
  max-width: 850px;
  margin-bottom: 60px;
}

/* 4 Characters Intro Grid */
.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 36px;
  width: 100%;
}

.character-intro-card {
  display: flex;
  align-items: center;
  gap: 30px;
  background: linear-gradient(145deg, rgba(30, 24, 45, 0.72) 0%, rgba(22, 20, 28, 0.88) 100%);
  border-radius: 32px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.character-intro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--card-accent, #F3CD50), transparent);
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

.character-intro-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-accent-border, rgba(243, 205, 80, 0.5));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.58), var(--card-glow, 0 0 30px rgba(243, 205, 80, 0.25));
}

.character-intro-card:hover::before {
  opacity: 1;
}

/* Character Specific Theme Accents */
.char-card-miller {
  --card-accent: #F3CD50;
  --card-accent-border: rgba(243, 205, 80, 0.6);
  --card-glow: 0 0 32px rgba(243, 205, 80, 0.28);
  --portal-bg: linear-gradient(180deg, #3A2C18 0%, #20170A 100%);
  --portal-aura-color: radial-gradient(circle at 50% 30%, rgba(243, 205, 80, 0.45) 0%, rgba(243, 205, 80, 0.1) 60%, transparent 80%);
}

.char-card-jen {
  --card-accent: #00D2FF;
  --card-accent-border: rgba(0, 210, 255, 0.6);
  --card-glow: 0 0 32px rgba(0, 210, 255, 0.28);
  --portal-bg: linear-gradient(180deg, #0C2C3E 0%, #061822 100%);
  --portal-aura-color: radial-gradient(circle at 50% 30%, rgba(0, 210, 255, 0.5) 0%, rgba(0, 210, 255, 0.12) 60%, transparent 80%);
}

.char-card-aidan {
  --card-accent: #10B981;
  --card-accent-border: rgba(16, 185, 129, 0.6);
  --card-glow: 0 0 32px rgba(16, 185, 129, 0.28);
  --portal-bg: linear-gradient(180deg, #0E3524 0%, #061C12 100%);
  --portal-aura-color: radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.5) 0%, rgba(16, 185, 129, 0.12) 60%, transparent 80%);
}

.char-card-lizzy {
  --card-accent: #EC4899;
  --card-accent-border: rgba(236, 72, 153, 0.6);
  --card-glow: 0 0 32px rgba(236, 72, 153, 0.28);
  --portal-bg: linear-gradient(180deg, #3B1428 0%, #1E0A14 100%);
  --portal-aura-color: radial-gradient(circle at 50% 30%, rgba(236, 72, 153, 0.5) 0%, rgba(236, 72, 153, 0.12) 60%, transparent 80%);
}

/* REVAMPED ARCHED MYSTIC DOOR PORTAL */
.char-door-wrapper {
  width: 180px;
  height: 330px;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  z-index: 5;
}

.char-door-backdrop {
  position: absolute;
  inset: 0;
  background: var(--portal-bg, linear-gradient(180deg, #2A2438 0%, #16141C 100%));
  border-radius: 90px 90px 24px 24px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55), inset 0 0 0 1.5px var(--card-accent, #F3CD50), 0 0 18px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

/* Outer Arch Rim Glow */
.char-door-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 90px 90px 24px 24px;
  border: 1.5px solid var(--card-accent, #F3CD50);
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
  z-index: 3;
}

.character-intro-card:hover .char-door-backdrop::after {
  opacity: 1;
  box-shadow: inset 0 0 16px var(--card-accent, #F3CD50), 0 0 20px var(--card-accent, #F3CD50);
}

.character-intro-card:hover .char-door-backdrop {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), inset 0 0 0 1.5px var(--card-accent, #F3CD50), 0 0 22px var(--card-accent, #F3CD50);
}

/* Portal Inner Glow Aura */
.char-portal-aura {
  position: absolute;
  inset: 0;
  background: var(--portal-aura-color, radial-gradient(circle at 50% 30%, rgba(243, 205, 80, 0.4) 0%, transparent 70%));
  opacity: 0.85;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 2;
}

.character-intro-card:hover .char-portal-aura {
  opacity: 1;
  transform: scale(1.1);
}

/* Character Portrait Image with 3D Pop Effect in Front of Door */
.char-still-img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scale(1);
  transform-origin: bottom center;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  z-index: 10;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
  pointer-events: none;
}

.character-intro-card:hover .char-still-img {
  transform: translateX(-50%) scale(1.05) translateY(-5px);
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 12px var(--card-accent));
}

.char-door-img {
  width: 75%;
  height: auto;
  object-fit: contain;
  opacity: 0.85;
}

/* Character Info & Typography */
.char-intro-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  z-index: 2;
}

.char-stage-badge {
  display: inline-flex;
  align-self: flex-start;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--card-accent, #F3CD50);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-accent-border, rgba(243, 205, 80, 0.35));
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 2px;
}

.char-intro-name {
  font-family: 'Cinzel', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 1.5px;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.char-quote-box {
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--card-accent, #F3CD50);
  border-radius: 0 14px 14px 0;
  padding: 12px 16px;
  margin-top: 4px;
}

.char-intro-quote {
  font-family: 'Cutive Mono', monospace;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #E2E8F0;
  margin: 0;
}

/* SECTION 5: TAKE YOUR TEST NOW */
.take-test-section {
  width: 100%;
  max-width: 1200px;
  padding: 80px 40px 100px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.take-test-title {
  font-family: 'Bona Nova', serif;
  font-size: clamp(2.4rem, 4.5vw, 3.2rem);
  font-weight: 400;
  color: #FFFFFF;
  letter-spacing: 1.5px;
  margin: 0;
}

.take-test-subtitle {
  font-family: 'Cutive Mono', monospace;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #CBD5E1;
  max-width: 650px;
  margin: 0 0 12px 0;
}

.take-test-section .start-test-svg-btn {
  align-self: center;
  margin: 0;
}

/* FOOTER: PURPLE CONTAINER WITH ROUNDED CORNERS */
.landing-footer-wrapper {
  width: 100%;
  max-width: 1400px;
  padding: 0 30px 40px 30px;
  box-sizing: border-box;
}

.landing-footer-container {
  width: 100%;
  background: #854EB4;
  border-radius: 46px;
  padding: 48px 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand .logo-square,
.footer-brand .logo-circle {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-dark-bg);
  border: 1.5px solid var(--color-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.footer-brand .logo-square img,
.footer-brand .logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-brand .logo-brand-text {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-brand .logo-brand-text span {
  color: #F3CD50;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav-item {
  background: none;
  border: none;
  color: #FAF8F4;
  font-family: 'Bona Nova', serif;
  font-size: 1.05rem;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 12px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.footer-nav-item:hover {
  color: #F3CD50;
  background: rgba(255, 255, 255, 0.12);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-desc,
.footer-copyright {
  font-family: 'Cutive Mono', monospace;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* REGISTRATION MODAL USING `name-and-age-input.svg` DESIGN */
.reg-modal-wrapper {
  position: relative;
  width: 100%;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.reg-modal-bg-svg {
  width: 100%;
  height: auto;
  display: block;
}

.reg-modal-form-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: 50px 100px 10px 100px;
}

.reg-input-name {
  width: 100%;
  max-width: 520px;
  height: 38px;
  background: rgba(217, 217, 217, 0.95);
  border: none;
  border-radius: 20px;
  padding: 0 20px;
  font-family: 'Bona Nova', serif;
  font-size: 1.1rem;
  color: #16141C;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.reg-input-age {
  width: 100%;
  max-width: 520px;
  height: 38px;
  background: rgba(217, 217, 217, 0.95);
  border: none;
  border-radius: 20px;
  padding: 0 20px;
  font-family: 'Bona Nova', serif;
  font-size: 1.1rem;
  color: #16141C;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.reg-submit-btn {
  position: relative;
  background: #F3CD50;
  color: #16141C;
  border: none;
  padding: 10px 36px;
  font-family: 'Bona Nova', serif;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  border-radius: 24px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, color 0.3s ease;
}

.reg-submit-btn::before {
  content: '';
  position: absolute;
  top: -120%;
  left: -20%;
  width: 140%;
  height: 240%;
  background: #2E9E85;
  border-radius: 50%;
  transform: translateY(-50%) scale(0.6);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  z-index: -1;
  pointer-events: none;
}

.reg-submit-btn:hover::before {
  transform: translateY(28%) scale(1.1);
  opacity: 1;
}

.reg-submit-btn:hover {
  transform: translateY(-2px) scale(1.04);
  color: #FFFFFF;
  box-shadow: 0 8px 25px rgba(46, 158, 133, 0.6);
}

.reg-submit-btn:active {
  transform: translateY(1px) scale(0.98);
}

/* Responsive adjustments */
@media (max-width: 1100px) {
  .triple-dots-row {
    padding-right: 40px;
  }
}

@media (max-width: 768px) {
  .landing-hero-section {
    padding: 24px 20px 32px 20px;
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: space-between;
  }

  .hero-content {
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 10px 0;
  }

  .hero-start-btn {
    align-self: flex-start;
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 16px;
  }

  .how-to-play-section {
    padding: 20px;
    height: auto;
    margin-bottom: 20px;
  }

  .steps-grid {
    gap: 24px;
    margin-top: 40px;
  }

  .triple-dots-row {
    justify-content: center;
    padding-right: 0;
    margin-top: 15px;
    margin-bottom: 30px;
  }

  .characters-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .character-intro-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
    gap: 20px;
  }

  .char-door-wrapper {
    width: 165px;
    height: 300px;
  }

  .char-door-backdrop {
    border-radius: 80px 80px 20px 20px;
  }

  .char-door-backdrop::after {
    border-radius: 80px 80px 20px 20px;
  }

  .character-intro-card:hover .char-still-img {
    transform: translateX(-50%) scale(1.05) translateY(-5px);
  }

  .char-stage-badge {
    align-self: center;
  }

  .char-quote-box {
    border-left: none;
    border-top: 2px solid var(--card-accent, #F3CD50);
    border-radius: 0 0 14px 14px;
    padding: 12px 14px;
  }

  .take-test-section {
    padding: 60px 20px 80px 20px;
  }

  .landing-footer-wrapper {
    padding: 0 16px 24px 16px;
  }

  .landing-footer-container {
    padding: 32px 24px;
    border-radius: 28px;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .reg-modal-form-overlay {
    padding: 20px 30px;
  }
}

@media (max-width: 400px) {
  .char-door-wrapper {
    width: 135px;
    height: 250px;
  }

  .char-door-backdrop {
    border-radius: 65px 65px 18px 18px;
  }

  .char-door-backdrop::after {
    border-radius: 65px 65px 18px 18px;
  }

  .step-card {
    width: 290px;
    height: 388px;
  }

  .step-card-content {
    padding: 30px 16px 15px 16px;
    gap: 14px;
  }

  .step-num {
    font-size: 1.65rem;
  }

  .step-text {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .triple-dots-wrapper img {
    width: 95px;
  }
}