/* =========================================================
   ROLLER COASTER ENGINEERS - Presentation Styles
   ========================================================= */

:root {
  --pink: #ff3d8b;
  --pink-dark: #d11868;
  --yellow: #ffd23f;
  --yellow-dark: #f0b500;
  --blue: #00bfff;
  --blue-dark: #0090cc;
  --purple: #8a4eff;
  --green: #2ecc71;
  --cream: #fff8e7;
  --dark: #1a1a3e;
  --shadow-thick: 6px 6px 0 var(--dark);
  --shadow-mega: 10px 10px 0 var(--dark);
}

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

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Fredoka', sans-serif;
  background: linear-gradient(135deg, #ffe4f1 0%, #fff8e7 50%, #d4f1ff 100%);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
}

/* ===== Background Decorations ===== */
.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.cloud, .star {
  position: absolute;
  font-size: 3rem;
  opacity: 0.6;
}

.cloud-1 { top: 8%; left: 5%; font-size: 4rem; animation: float 8s ease-in-out infinite; }
.cloud-2 { top: 15%; right: 8%; font-size: 3rem; animation: float 10s ease-in-out infinite 1s; }
.cloud-3 { bottom: 20%; left: 12%; font-size: 3.5rem; animation: float 9s ease-in-out infinite 2s; }
.star-1 { top: 25%; left: 18%; animation: twinkle 3s ease-in-out infinite; }
.star-2 { top: 70%; right: 15%; animation: twinkle 4s ease-in-out infinite 1s; }
.star-3 { top: 55%; left: 8%; animation: twinkle 3.5s ease-in-out infinite 0.5s; }
.star-4 { top: 12%; right: 25%; animation: twinkle 4.5s ease-in-out infinite 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-20px) translateX(10px); }
}

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

/* ===== Progress Bar ===== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--yellow), var(--blue));
  width: 10%;
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Slide Counter ===== */
.slide-counter {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--dark);
  color: var(--cream);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  z-index: 100;
  box-shadow: 4px 4px 0 var(--pink);
}

/* ===== Slides Container ===== */
.slides {
  position: relative;
  width: 100%;
  height: 100vh;
  z-index: 10;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 80px 60px 120px;
  text-align: center;
  animation: slideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow-y: auto;
}

.slide.active {
  display: flex;
}

@keyframes slideIn {
  0% { opacity: 0; transform: translateY(40px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== Common Headings ===== */
.slide-h2 {
  font-family: 'Bowlby One', cursive;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 40px;
  text-shadow: 4px 4px 0 rgba(255, 255, 255, 0.7);
  letter-spacing: -1px;
  flex-shrink: 0;
}

.hl-pink { color: var(--pink); }
.hl-yellow { color: var(--yellow-dark); }
.hl-blue { color: var(--blue-dark); }

/* ===== Slide 1: Title ===== */
.slide-title {
  background: radial-gradient(circle at center, #ffe4f1 0%, transparent 70%);
  justify-content: center;
}

.title-wrap {
  position: relative;
}

.floating-coaster {
  font-size: clamp(5rem, 12vw, 9rem);
  margin-bottom: 20px;
  display: inline-block;
  animation: bounce-coaster 2s ease-in-out infinite;
}

@keyframes bounce-coaster {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.big-title {
  font-family: 'Bowlby One', cursive;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 30px;
  line-height: 0.95;
}

.title-line {
  font-size: clamp(3rem, 9vw, 7rem);
  letter-spacing: -2px;
  text-shadow: 6px 6px 0 var(--dark);
  display: inline-block;
  animation: titleDrop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.line-1 { color: var(--pink); animation-delay: 0.1s; transform: rotate(-3deg); }
.line-2 { color: var(--yellow-dark); animation-delay: 0.3s; transform: rotate(2deg); }
.line-3 { color: var(--blue-dark); animation-delay: 0.5s; transform: rotate(-2deg); }

@keyframes titleDrop {
  0% { opacity: 0; transform: translateY(-100px) rotate(-15deg); }
  100% { opacity: 1; }
}

.subtitle {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--dark);
  margin: 20px 0;
  font-weight: 700;
}

.badge-pill {
  display: inline-block;
  background: var(--dark);
  color: var(--cream);
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 var(--yellow);
  margin-top: 20px;
}

/* ===== Slide 2: Question ===== */
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 700px;
  margin: 30px 0;
}

.emoji-card {
  background: white;
  padding: 30px 20px;
  border-radius: 24px;
  border: 4px solid var(--dark);
  box-shadow: var(--shadow-thick);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  transition: transform 0.3s;
  animation: cardPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.emoji-card:nth-child(1) { animation-delay: 0.1s; background: #ffe4f1; }
.emoji-card:nth-child(2) { animation-delay: 0.2s; background: #fff4d6; }
.emoji-card:nth-child(3) { animation-delay: 0.3s; background: #d4f1ff; }
.emoji-card:nth-child(4) { animation-delay: 0.4s; background: #e0d4ff; }

@keyframes cardPop {
  0% { opacity: 0; transform: scale(0.5) rotate(-10deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

.emoji-card:hover { transform: translateY(-5px) rotate(-2deg); }

.big-emoji {
  font-size: 4rem;
}

.emoji-label {
  font-family: 'Bowlby One', cursive;
  font-size: 1.5rem;
  color: var(--dark);
}

.prompt-text {
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  color: var(--pink-dark);
  font-weight: 700;
  margin-top: 20px;
}

/* ===== Slide 3: The Secret ===== */
.secret-box {
  background: white;
  border: 5px solid var(--dark);
  border-radius: 30px;
  padding: 40px 50px;
  box-shadow: var(--shadow-mega);
  max-width: 800px;
  transform: rotate(-1deg);
}

.secret-text {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  margin: 15px 0;
}

.big-emoji-solo {
  font-size: clamp(5rem, 10vw, 8rem);
  margin: 20px 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.secret-mega {
  font-family: 'Bowlby One', cursive;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--dark);
  margin-top: 20px;
}

/* ===== Slides 4 & 5: Energy ===== */
.energy-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
  max-width: 1100px;
  width: 100%;
}

.energy-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 280px;
  position: relative;
}

.hill-graphic {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hill {
  width: 240px;
  height: 200px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border: 5px solid var(--dark);
  border-radius: 50% 50% 0 0 / 80% 80% 0 0;
  box-shadow: var(--shadow-thick);
}

.hill-down {
  background: linear-gradient(225deg, var(--pink) 0%, var(--pink-dark) 100%);
  transform: scaleX(-1);
}

.marble-on-hill {
  position: absolute;
  font-size: 3.5rem;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(3px 3px 0 var(--dark));
  animation: marbleWiggle 2s ease-in-out infinite;
}

@keyframes marbleWiggle {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

.marble-rolling {
  position: absolute;
  font-size: 3.5rem;
  top: 15px;
  left: 30%;
  filter: drop-shadow(3px 3px 0 var(--dark));
  animation: marbleRoll 2.5s ease-in infinite;
}

@keyframes marbleRoll {
  0% { top: 15px; left: 30%; transform: rotate(0deg); }
  100% { top: 70%; left: 75%; transform: rotate(720deg); }
}

.arrow-up {
  position: absolute;
  font-size: 2.5rem;
  top: -10px;
  left: 75%;
  animation: bounceUp 1.5s ease-in-out infinite;
}

@keyframes bounceUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.speed-lines {
  position: absolute;
  bottom: 30px;
  left: 5%;
  font-size: 1.8rem;
  animation: speedFade 1s ease-in-out infinite;
}

@keyframes speedFade {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(20px); }
}

.energy-text {
  text-align: left;
}

.kid-def {
  font-family: 'Bowlby One', cursive;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 15px;
  color: var(--dark);
}

.explainer {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  margin-bottom: 12px;
  font-weight: 500;
}

.like-this {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--pink-dark);
  font-weight: 700;
  margin: 15px 0;
}

.rule {
  background: var(--yellow);
  border: 3px solid var(--dark);
  border-radius: 16px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  display: inline-block;
  box-shadow: 4px 4px 0 var(--dark);
  margin-top: 15px;
}

/* ===== Slide 6: Golden Rule ===== */
.slide-rule {
  background: radial-gradient(circle at center, #fff4d6 0%, transparent 70%);
}

.trophy {
  font-size: clamp(5rem, 10vw, 8rem);
  margin-bottom: 20px;
  animation: trophy-shine 2s ease-in-out infinite;
}

@keyframes trophy-shine {
  0%, 100% { transform: rotate(-5deg) scale(1); filter: drop-shadow(0 0 0 var(--yellow)); }
  50% { transform: rotate(5deg) scale(1.05); filter: drop-shadow(0 0 30px var(--yellow)); }
}

.golden-h2 {
  text-shadow: 5px 5px 0 var(--yellow);
}

.rule-banner {
  background: var(--dark);
  color: var(--cream);
  padding: 30px 40px;
  border-radius: 24px;
  border: 5px solid var(--yellow);
  box-shadow: var(--shadow-mega);
  max-width: 800px;
  margin: 20px 0;
  transform: rotate(-1deg);
}

.rule-banner p {
  font-family: 'Bowlby One', cursive;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.3;
}

.rule-why {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 600;
  margin-top: 25px;
}

.try-it {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--pink-dark);
  font-weight: 700;
  margin-top: 15px;
}

/* ===== Slide 7: Friction ===== */
.friction-box {
  background: white;
  border: 5px solid var(--dark);
  border-radius: 30px;
  padding: 40px 50px;
  box-shadow: var(--shadow-mega);
  max-width: 800px;
}

.friction-line {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 600;
  margin: 15px 0;
}

.friction-emojis {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 25px 0;
  letter-spacing: 10px;
}

.friction-tip {
  background: var(--yellow);
  border: 4px solid var(--dark);
  border-radius: 20px;
  padding: 18px 25px;
  margin-top: 25px;
  box-shadow: 5px 5px 0 var(--dark);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tip-label {
  font-family: 'Bowlby One', cursive;
  color: var(--pink-dark);
  font-size: 1.3rem;
}

.friction-tip span:last-child {
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
}

/* ===== Slide 8: Mindset ===== */
.mindset-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1000px;
  margin-top: 20px;
}

.mindset-card {
  background: white;
  border: 5px solid var(--dark);
  border-radius: 24px;
  padding: 30px 25px;
  box-shadow: var(--shadow-thick);
  text-align: left;
}

.mindset-card.card-1 { background: #ffe4f1; transform: rotate(-1.5deg); }
.mindset-card.card-2 { background: #d4f1ff; transform: rotate(1.5deg); }

.mindset-emoji {
  font-size: 4rem;
  margin-bottom: 15px;
}

.mindset-card h3 {
  font-family: 'Bowlby One', cursive;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin-bottom: 15px;
  color: var(--dark);
}

.mindset-card p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 500;
  line-height: 1.5;
}

/* ===== Slide 9: Build Challenge ===== */
.slide-challenge {
  background: linear-gradient(135deg, #ffe4f1 0%, #fff4d6 100%);
}

.challenge-header {
  margin-bottom: 30px;
}

.challenge-tag {
  display: inline-block;
  background: var(--pink);
  color: white;
  font-family: 'Bowlby One', cursive;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 1.2rem;
  margin-bottom: 15px;
  border: 3px solid var(--dark);
  box-shadow: 4px 4px 0 var(--dark);
  animation: tagWiggle 1.5s ease-in-out infinite;
}

@keyframes tagWiggle {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

.challenge-title {
  font-family: 'Bowlby One', cursive;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--dark);
  text-shadow: 5px 5px 0 var(--yellow);
  letter-spacing: -1px;
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 30px 0;
  width: 100%;
}

.goal-card {
  background: white;
  border: 5px solid var(--dark);
  border-radius: 24px;
  padding: 25px 20px;
  box-shadow: var(--shadow-thick);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.goal-num {
  width: 60px;
  height: 60px;
  background: var(--pink);
  color: white;
  border: 4px solid var(--dark);
  border-radius: 50%;
  font-family: 'Bowlby One', cursive;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0 var(--dark);
}

.goal-card:nth-child(2) .goal-num { background: var(--yellow); color: var(--dark); }
.goal-card:nth-child(3) .goal-num { background: var(--blue); }

.goal-card p {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 500;
}

.timer-box {
  background: var(--dark);
  color: var(--cream);
  padding: 20px 35px;
  border-radius: 20px;
  font-family: 'Bowlby One', cursive;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  box-shadow: 6px 6px 0 var(--pink);
}

.big-num {
  color: var(--yellow);
  font-size: 1.3em;
}

/* ===== Slide 10: End ===== */
.slide-end {
  background: radial-gradient(circle at center, #fff4d6 0%, transparent 70%);
}

.end-confetti {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 15px;
  margin-bottom: 20px;
  animation: confettiBounce 1s ease-in-out infinite;
}

@keyframes confettiBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.end-title {
  font-family: 'Bowlby One', cursive;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  margin-bottom: 30px;
  color: var(--dark);
  text-shadow: 6px 6px 0 var(--pink);
  letter-spacing: -2px;
}

.recap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 700px;
  margin: 20px 0;
}

.recap-item {
  background: white;
  border: 4px solid var(--dark);
  border-radius: 16px;
  padding: 12px 15px;
  font-weight: 600;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  box-shadow: 4px 4px 0 var(--dark);
}

.recap-item:nth-child(1) { background: #ffe4f1; }
.recap-item:nth-child(2) { background: #fff4d6; }
.recap-item:nth-child(3) { background: #d4f1ff; }
.recap-item:nth-child(4) { background: #e0d4ff; }
.recap-item:nth-child(5) { background: #d4ffd9; }
.recap-item:nth-child(6) { background: #ffd4d4; }

.end-question {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--pink-dark);
  font-weight: 700;
  margin-top: 25px;
}

/* ===== Navigation Controls ===== */
.nav-controls {
  position: fixed;
  bottom: 25px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  pointer-events: none;
  z-index: 100;
}

.nav-btn {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 4px solid var(--dark);
  background: white;
  color: var(--dark);
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--dark);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.nav-btn:hover {
  background: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--dark);
}

.nav-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--dark);
}

.nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .slide {
    padding: 60px 25px 100px;
  }

  .nav-controls {
    padding: 0 15px;
    bottom: 15px;
  }

  .energy-split,
  .mindset-cards {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .energy-visual {
    height: 200px;
  }

  .hill {
    width: 180px;
    height: 150px;
  }

  .goals-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .recap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .emoji-grid {
    gap: 15px;
  }

  .secret-box,
  .friction-box {
    padding: 25px 25px;
  }

  .nav-btn {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
  }

  .cloud, .star {
    font-size: 2rem;
  }
}
