:root {
  --primary-glow: #f5deb3; /* Wheat / Light Gold */
  --secondary-glow: #d4af37; /* Rich Gold */
  --glass-bg: transparent;
  --glass-border: transparent;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Cormorant Garamond', serif;
  --font-accent: 'Playfair Display', serif;
  --font-ui: 'Plus Jakarta Sans', sans-serif;
}

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

body, html {
  width: 100%; height: 100vh;
  font-family: var(--font-body);
  background-color: #000; 
  color: #fff;
  overflow: hidden; 
  cursor: none; /* Hide default cursor */
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: #000;
  z-index: 9999999999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loading-text {
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--primary-glow);
  text-transform: uppercase;
}

.loading-bar-container {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loading-bar {
  width: 0%;
  height: 100%;
  background: var(--secondary-glow);
  box-shadow: 0 0 10px var(--secondary-glow);
  transition: width 0.2s ease-out;
}


/* Custom Cursor */
#custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 20px; height: 20px;
  background: var(--secondary-glow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s, box-shadow 0.3s, border-radius 0.3s, opacity 0.3s;
  box-shadow: 0 0 15px var(--secondary-glow);
}

/* Custom Cursor Hover State (Pure Heart - NO circle around it) */
#custom-cursor.hovering {
  width: 48px;
  height: 48px;
  background: transparent url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23f5deb3"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>') center/contain no-repeat !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  filter: none !important;
}

button, a {
  cursor: none !important;
}

/* Mobile Adjustments */
@media (pointer: coarse) {
  /* Hide custom cursor completely on touch devices */
  #custom-cursor { display: none !important; }
  body, html, button, a { cursor: auto !important; }
}

/* Cinematic Gradient Top Line */
body::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 20;
  background: linear-gradient(90deg, transparent, var(--primary-glow), var(--secondary-glow), var(--primary-glow), transparent);
}

#canvas-container {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
}

.content {
  position: absolute; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 10; pointer-events: none;
}

.card-section {
  position: absolute; top: 0; left: 0; width: 100vw; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5vw; pointer-events: auto;
  visibility: hidden; opacity: 0;
}

/* Absolute anchoring for corners */
.card-section.left { justify-content: flex-start; align-items: flex-end; padding: 0 0 10vh 5vw; }
.card-section.right { justify-content: flex-end; align-items: center; padding-right: 5vw; }
.card-section.center { justify-content: center; }

#sec-reveal { min-height: 50vh; }

.glass-card {
  background: transparent;
  border: none; border-radius: 0; padding: 0;
  max-width: 500px; box-shadow: none;
  opacity: 0; transform: translateY(40px);
}

.subtitle {
  font-family: var(--font-body);
  font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.35em;
  color: rgba(245, 222, 179, 0.7); margin-bottom: 1.5rem;
  padding-left: 1.4rem; position: relative;
  font-weight: 500;
}

.subtitle::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1rem; height: 1px; background: rgba(245, 222, 179, 0.4);
}

.right .subtitle { padding: 0 1.4rem 0 0; text-align: right; }
.right .subtitle::before { left: auto; right: 0; }

.glass-card h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary-glow);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.5rem;
}

.right .glass-card h1 {
  text-align: right;
  color: var(--secondary-glow);
}

.glass-card h1 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: none;
}

.right .glass-card h1 em {
  color: #fff;
}

.glass-card p,
.story-letter {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 300;
  letter-spacing: 0.02em;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.story-highlight {
  color: var(--primary-glow);
  font-style: normal;
  white-space: nowrap;
  font-weight: 500;
  text-shadow: 0 0 10px rgba(245, 222, 179, 0.4);
}

.right .glass-card p { text-align: right; }

.video-wrapper {
  margin-top: 2.5rem; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(245, 222, 179, 0.25); box-shadow: 0 15px 40px rgba(0,0,0,0.7);
  background: #000;
}
.video-wrapper video { width: 100%; display: block; border-radius: 12px; }

/* LeetCode Button in Video Card */
.video-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.leetcode-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 161, 22, 0.35);
  border-radius: 20px;
  color: #f5deb3;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: none;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.leetcode-btn .leetcode-svg {
  color: #FFA116;
  transition: transform 0.35s ease, filter 0.35s ease;
  display: block;
}

.leetcode-btn:hover {
  background: rgba(255, 161, 22, 0.12);
  border-color: rgba(255, 161, 22, 0.85);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 161, 22, 0.3);
}

.leetcode-btn:hover .leetcode-svg {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px #FFA116);
}

@media (hover: none) and (pointer: coarse) {
  .leetcode-btn {
    cursor: pointer;
  }
}

/* The Final Reveal */
.final-message { max-width: 820px; text-align: center; }
.final-message h1 {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 1.4rem;
  color: var(--primary-glow);
}
.final-message p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.8;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
  text-align: center;
}

/* The Planet K Tooltip Text Box */
.planet-tooltip {
  position: absolute; right: 8vw; top: 35vh; max-width: 450px;
  text-align: right;
}
.planet-tooltip p { 
  font-size: 1.6rem; font-family: var(--font-accent); font-style: italic; 
  color: var(--secondary-glow); margin-bottom: 0.8rem; 
}
.planet-tooltip h2 { 
  font-family: var(--font-heading); font-size: 2.6rem; color: var(--primary-glow); text-transform: uppercase;
  font-weight: 700; letter-spacing: 0.12em;
}

/* Cinematic Button (like Gear 5 'Set Sail') */
.cinematic-btn {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  padding: 14px 28px; background: transparent; color: rgba(245, 222, 179, 0.8); border: 1px solid rgba(245, 222, 179, 0.4);
  cursor: pointer; overflow: hidden; isolation: isolate;
  pointer-events: auto; border-radius: 2px;
  transition: all 0.4s ease;
  /* Adjust left padding to counteract trailing letter-spacing */
  padding-left: calc(28px + 0.3em);
}
.cinematic-btn::after {
  content: ''; position: absolute; inset: 0; background: rgba(245, 222, 179, 0.05);
  transform: translateX(-105%); transition: transform .4s ease; z-index: -1;
}
.cinematic-btn:hover { border-color: var(--primary-glow); color: var(--primary-glow); }
.cinematic-btn:hover::after { transform: translateX(0); }

@media (max-width: 768px) {
  .card-section.left, .card-section.right { justify-content: center; align-items: center; padding: 0 5vw; }
  .right .subtitle, .right .glass-card h1, .right .glass-card p { text-align: left; }
  .right .subtitle { padding-left: 1.4rem; padding-right: 0; }
  .right .subtitle::before { left: 0; right: auto; background: var(--secondary-glow); }
  .glass-card h1 { font-size: 3.5rem; }
  .final-message h1 { font-size: 4.5rem; }
  .final-message p { font-size: 1.5rem; }
  
  /* Upscale and adjust D-pad on mobile */
  #dpad-container {
    bottom: 90px; right: 20px;
    transform: scale(1.15);
    transform-origin: bottom right;
  }
}

/* --- DOORS (LOGIN) --- */
.door-container {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 200;
  display: block;
  pointer-events: none; /* Let clicks pass through except on the lock */
}

.door {
  position: absolute; top: 0; width: 50vw; height: 100vh;
  /* Dark transparent glass effect so stars faintly shine through */
  background: rgba(2, 6, 15, 0.65);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 201;
  pointer-events: auto;
}

.door-left {
  left: 0;
  border-right: 2px solid var(--primary-glow);
  box-shadow: inset -30px 0 60px rgba(0, 191, 255, 0.2), inset 0 0 20px rgba(255, 140, 0, 0.05);
}

.door-right {
  right: 0;
  border-left: 2px solid var(--primary-glow);
  box-shadow: inset 30px 0 60px rgba(0, 191, 255, 0.2), inset 0 0 20px rgba(255, 140, 0, 0.05);
}

.door-inner {
  position: absolute; inset: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: 
    linear-gradient(90deg, rgba(0, 191, 255, 0.03) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(rgba(0, 191, 255, 0.03) 1px, transparent 1px) 0 0 / 40px 40px;
}

@keyframes floatLock {
  0% { transform: translate(-50%, -50%) translateY(0px); }
  50% { transform: translate(-50%, -50%) translateY(-10px); }
  100% { transform: translate(-50%, -50%) translateY(0px); }
}

@keyframes lockGlow {
  0% { box-shadow: 0 0 30px rgba(245, 222, 179, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.05); }
  50% { box-shadow: 0 0 50px rgba(245, 222, 179, 0.25), inset 0 0 30px rgba(255, 255, 255, 0.1); }
  100% { box-shadow: 0 0 30px rgba(245, 222, 179, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.05); }
}

.door-lock {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 202;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 4.5rem 3.5rem; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
  width: 90%; max-width: 480px;
  pointer-events: auto;
  box-shadow: 0 0 30px rgba(245, 222, 179, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.05);
}

/* --- FINALE / THANK YOU SCREEN --- */
.thankyou-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: rgba(2, 6, 15, 0.85);
  opacity: 0;
  pointer-events: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  text-align: center;
  color: #f5deb3;
  padding: 20px;
}

.finale-card {
  position: relative;
  width: 90%;
  max-width: 680px;
  padding: 3.5rem 3rem;
  background: rgba(10, 14, 25, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(245, 222, 179, 0.3);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  pointer-events: auto;
}

.finale-badge {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(245, 222, 179, 0.75);
  padding: 5px 16px;
  border-radius: 16px;
  border: 1px solid rgba(245, 222, 179, 0.25);
  background: rgba(245, 222, 179, 0.04);
  margin-bottom: 1.5rem;
}

.finale-kicker {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.finale-headline {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: #f5deb3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 25px rgba(245, 222, 179, 0.3);
}

.finale-subtext {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 300;
  color: var(--primary-glow);
  line-height: 1.5;
  margin-bottom: 1.8rem;
  letter-spacing: 0.02em;
  text-shadow: 0 0 20px rgba(245, 222, 179, 0.4);
}

.finale-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 1.5rem auto 2rem auto;
  max-width: 320px;
}

.finale-divider .divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 222, 179, 0.4), transparent);
}

.finale-divider .divider-gem {
  color: rgba(245, 222, 179, 0.85);
  font-size: 12px;
  text-shadow: 0 0 10px rgba(245, 222, 179, 0.8);
}

.finale-waiting-text {
  font-size: 1.2rem;
  letter-spacing: 2px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  min-height: 30px;
  color: rgba(212, 175, 55, 0.95);
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.finale-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: #d4af37;
  vertical-align: middle;
  margin-left: 4px;
  animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes breathingGlow {
  0%, 100% { box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 50px rgba(245, 222, 179, 0.15), inset 0 0 35px rgba(245, 222, 179, 0.05); }
  50% { box-shadow: 0 35px 85px rgba(0, 0, 0, 0.9), 0 0 80px rgba(245, 222, 179, 0.35), inset 0 0 45px rgba(245, 222, 179, 0.15); }
}

@media (max-width: 768px) {
  .finale-card {
    padding: 3rem 1.8rem;
    width: 92%;
  }
  .finale-headline {
    font-size: 2.5rem;
  }
  .finale-subtext {
    font-size: 1.25rem;
  }
}

.door-lock::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0) 50%, rgba(245,222,179,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.door-lock h1 {
  font-family: var(--font-heading); 
  font-size: 2.6rem; 
  font-weight: 700;
  color: #fff; 
  margin-bottom: 0.5rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 40px rgba(245, 222, 179, 0.3);
}

.door-lock h1 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: rgba(245, 222, 179, 0.95);
  text-transform: none;
}

.door-lock .subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2rem;
  padding: 0;
  text-transform: none;
}
.door-lock .subtitle::before { display: none; }

.password-container { margin: 2.5rem 0; }

#password-input, #second-password-input {
  background: transparent; border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff; font-size: 1.8rem; text-align: center;
  padding: 0.5rem; outline: none; letter-spacing: 0.4em;
  width: 100%; font-family: var(--font-body);
  transition: all 0.4s ease;
}

#password-input:focus, #second-password-input:focus {
  border-bottom-color: rgba(245, 222, 179, 0.9);
  text-shadow: 0 0 15px rgba(245, 222, 179, 0.8);
  box-shadow: 0 15px 15px -15px rgba(245, 222, 179, 0.5);
  transform: scale(1.05);
}

#password-input::placeholder, #second-password-input::placeholder { color: rgba(255, 255, 255, 0.15); }

.error-text {
  color: #ff4a4a;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  margin-top: 1.5rem;
  min-height: 1.5rem;
  text-shadow: 0 0 8px rgba(255, 74, 74, 0.6);
}

/* --- TIMELINE --- */
.timeline-section {
  align-items: flex-start;
  overflow-y: auto;
  padding: 5vh 5vw 10vh 5vw;
  scroll-behavior: smooth;
}

.timeline-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--secondary-glow);
  transform: translateX(-50%);
}

.timeline-node {
  position: relative;
  width: 50%;
  margin-bottom: 3rem;
}

.timeline-node.left {
  left: 0;
  padding-right: 3rem;
  text-align: right;
}

.timeline-node.right {
  left: 50%;
  padding-left: 3rem;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--primary-glow);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-node.left .timeline-dot {
  right: -6px;
}

.timeline-node.right .timeline-dot {
  left: -6px;
}

.timeline-date {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--primary-glow);
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.timeline-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  font-weight: 300;
}

@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
  }
  .timeline-node {
    width: 100%;
    padding-left: 50px !important;
    padding-right: 0 !important;
    text-align: left !important;
    left: 0 !important;
  }
  .timeline-node.left .timeline-dot,
  .timeline-node.right .timeline-dot {
    left: 14px;
    right: auto;
  }
}


#login-btn, #second-login-btn {
  margin: 1.5rem auto 0 auto;
  width: 180px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 222, 179, 0.4);
  color: rgba(245, 222, 179, 0.9);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: all 0.4s ease;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 0.3em;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

#login-btn::before, #second-login-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 222, 179, 0.2), transparent);
  transition: all 0.6s ease;
}

#login-btn:hover, #second-login-btn:hover {
  background: rgba(245, 222, 179, 0.15);
  color: #fff;
  border-color: rgba(245, 222, 179, 0.8);
  box-shadow: 0 0 20px rgba(245, 222, 179, 0.3);
  transform: translateY(-2px);
}

#login-btn:hover::before, #second-login-btn:hover::before {
  left: 100%;
}

.timer-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  color: var(--secondary-glow);
  letter-spacing: 0.15em;
  margin-top: 2rem;
  text-shadow: 0 0 10px rgba(255, 119, 0, 0.6);
  text-transform: uppercase;
}

/* --- D-PAD --- */
#dpad-container {
  position: fixed; bottom: 120px; right: 30px;
  width: max-content;
  z-index: 100000;
  display: grid;
  grid-template-columns: repeat(3, 45px);
  grid-template-rows: repeat(3, 45px);
  gap: 8px;
  pointer-events: auto;
}
.dpad-btn {
  width: 45px; height: 45px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(245, 222, 179, 0.2);
  color: rgba(245, 222, 179, 0.6);
  font-family: 'Cormorant Garamond', serif;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s;
}
.dpad-btn:hover, .dpad-btn:active {
  background: rgba(245, 222, 179, 0.1);
  border-color: var(--primary-glow);
  color: var(--primary-glow);
}
#dpad-left { grid-column: 1; grid-row: 2; }
#dpad-reset { grid-column: 2; grid-row: 2; font-size: 1.5rem; }
#dpad-right { grid-column: 3; grid-row: 2; }

/* NEXT button sits below the D-pad */
.dpad-next-btn {
  position: absolute; bottom: 0; left: 0; right: 0;
  width: 100%; height: 36px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.6);
  color: #ffd700; border-radius: 8px; cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  backdrop-filter: blur(5px);
  transition: all 0.3s;
}
.dpad-next-btn:hover { background: rgba(255, 215, 0, 0.35); }

/* CSS open class removed. Managed by GSAP for smoother animation */

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(25, 25, 25, 0.9);
    border: 1px solid rgba(255, 223, 176, 0.4);
    color: #f5deb3;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mute Button */
.mute-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #f5deb3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: none; 
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}
.mute-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.8);
}