/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Jelly Dash 3D - Thematic CSS Variables */
:root {
  /* Color Palette - Extreme Moto Stunt Theme */
  --jelly-pink: #ff0022; /* Vibrant danger red for crashes */
  --jelly-purple: #7d00ff; /* Deep purple for night rides */
  --jelly-blue: #00a3ff; /* Sky blue for ramp highlights */
  --jelly-yellow: #ffd700; /* Gold for premium stunts */
  --jelly-green: #00cc44; /* Grass green for landing zones */
  --jelly-orange: #ff6600; /* Flaming orange for explosions */

  /* Animation Variables */
  --slide-speed: 0.3s;
  --jelly-glow: 0 0 20px rgba(255, 107, 157, 0.5);
  --stretch-power: 1.05;
  --bounce-height: 10px;
  --squish-factor: 0.95;

  /* Spacing Variables */
  --gel-padding: 1rem;
  --squish-margin: 2rem;
  --bounce-radius: 15px;

  /* Typography */
  --dash-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --bounce-weight: 700;
  --slide-weight: 400;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--dash-font);
  line-height: 1.6;
  color: var(--jelly-purple);
  background: linear-gradient(135deg, var(--jelly-purple), var(--jelly-blue));
  min-height: 100vh;
}

/* Container Styles */
.squish-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gel-padding);
}

/* Header and Footer Placeholders */
#squish-header,
#squish-footer {
  min-height: 80px;
}

/* Main Content */
.dash-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Hero Section */
.bounce-hero {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  margin-bottom: 25px;
  text-align: left;
}

/* Updates Page Hero - Smaller Height */
.updates-hero {
  min-height: 40vh;
}

/* Contact Page Hero - Smaller Height */
.contact-hero {
  min-height: 40vh;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-image.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(255, 107, 157, 0.7),
    rgba(168, 85, 247, 0.7),
    rgba(59, 130, 246, 0.7)
  );
  z-index: 2;
}

.bounce-hero .squish-container {
  position: relative;
  z-index: 3;
  text-align: center;
}

.dash-title {
  font-size: 4rem;
  font-weight: var(--bounce-weight);
  color: white;
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: titleBounce 2s ease-in-out infinite;
  text-align: left;
}

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

.slide-subtitle {
  font-size: 1.5rem;
  color: white;
  text-align: center;
  margin-bottom: 2rem;
  opacity: 0.9;
  text-align: left;
}

.launch-gel {
  background: linear-gradient(45deg, var(--jelly-yellow), var(--jelly-orange));
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: var(--bounce-weight);
  border-radius: var(--bounce-radius);
  cursor: pointer;
  transition: all var(--slide-speed) ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.launch-gel:hover {
  transform: scale(var(--stretch-power));
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Section Headings */
.bounce-heading {
  font-size: 2.5rem;
  font-weight: var(--bounce-weight);
  text-align: center;
  margin-bottom: 2rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Stretchy Features */
.stretch-features {
  padding: var(--squish-margin) 0;
  background: linear-gradient(135deg, var(--jelly-green), var(--jelly-blue));
}

.feature-flex {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 400px;
}

.speed-bubble,
.agility-bubble,
.obstacle-bubble {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: var(--bounce-radius);
  text-align: center;
  transition: all var(--slide-speed) ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.speed-bubble:hover,
.agility-bubble:hover,
.obstacle-bubble:hover {
  transform: translateY(-5px) scale(var(--stretch-power));
  box-shadow: var(--jelly-glow);
}

.speed-bubble h3,
.agility-bubble h3,
.obstacle-bubble h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.speed-bubble p,
.agility-bubble p,
.obstacle-bubble p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.4;
}

.feature-text {
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.feature-text h3 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: var(--bounce-weight);
}

.feature-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.feature-text p:last-child {
  margin-bottom: 0;
}

/* How to Slide */
.slide-guide {
  padding: var(--squish-margin) 0;
  background: linear-gradient(135deg, var(--jelly-purple), var(--jelly-pink));
}

.guide-content {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row-reverse;
  gap: 2rem;
  justify-content: center;
}

.slide-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2.5rem 2rem;
  border-radius: var(--bounce-radius);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all var(--slide-speed) ease;
  flex: 1;
  min-width: 300px;
  max-width: calc(50% - 1rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.slide-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--jelly-pink),
    var(--jelly-purple),
    var(--jelly-blue)
  );
  opacity: 0;
  transition: opacity var(--slide-speed) ease;
}

.slide-item:hover {
  transform: translateY(-10px) scale(var(--stretch-power));
  box-shadow: var(--jelly-glow);
}

.slide-item:hover::before {
  opacity: 1;
}

.slide-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.1);
  }
}

.slide-item h3 {
  color: white;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  font-weight: var(--bounce-weight);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.slide-item p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  line-height: 1.7;
  font-size: 1.1rem;
  font-weight: var(--slide-weight);
}

.slide-item ul {
  color: rgba(255, 255, 255, 0.9);
  padding-left: 1.5rem;
  text-align: left;
  margin-top: 0;
  list-style: none;
}

.slide-item li {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.slide-item li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: var(--jelly-yellow);
  font-size: 0.8rem;
  top: 0.1rem;
}

/* Gamer Echoes */
.echo-chamber {
  padding: var(--squish-margin) 0;
  background: linear-gradient(135deg, var(--jelly-orange), var(--jelly-yellow));
}

.echo-grid {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row-reverse;
  gap: 2.5rem;
  justify-content: center;
  align-items: stretch;
}

/* Jelly Tracks */
.track-gallery {
  padding: var(--squish-margin) 0;
  background: linear-gradient(135deg, var(--jelly-blue), var(--jelly-green));
}

.track-flex {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.track-image {
  width: 100%;
  max-width: 500px;
  border-radius: var(--bounce-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all var(--slide-speed) ease;
}

.track-image:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.track-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: all var(--slide-speed) ease;
}

.track-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 500px;
}

.straight-track,
.winding-track,
.obstacle-track {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--bounce-radius);
  text-align: center;
  transition: all var(--slide-speed) ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.straight-track:hover,
.winding-track:hover,
.obstacle-track:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--jelly-glow);
}

.straight-track h3,
.winding-track h3,
.obstacle-track h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: var(--bounce-weight);
}

.straight-track p,
.winding-track p,
.obstacle-track p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.5;
}

/* Color Boosts */
.boost-zone {
  padding: var(--squish-margin) 0;
  background: linear-gradient(135deg, var(--jelly-pink), var(--jelly-orange));
}

.boost-showcase {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row-reverse;
  gap: 2rem;
  justify-content: center;
}

.color-shift,
.speed-burst,
.life-bonus {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.05)
  );
  backdrop-filter: blur(15px);
  padding: 1.8rem 1.5rem;
  border-radius: var(--bounce-radius);
  flex: 1;
  min-width: 250px;
  text-align: center;
  transition: all var(--slide-speed) ease;
  border: 2px solid rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.color-shift::before,
.speed-burst::before,
.life-bonus::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.color-shift:hover::before,
.speed-burst:hover::before,
.life-bonus:hover::before {
  transform: translateX(100%);
}

.color-shift:hover,
.speed-burst:hover,
.life-bonus:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), var(--jelly-glow);
  border-color: rgba(255, 255, 255, 0.4);
}

.boost-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  animation: boostPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

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

.color-shift h3,
.speed-burst h3,
.life-bonus h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  font-weight: var(--bounce-weight);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.color-shift p,
.speed-burst p,
.life-bonus p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.boost-features {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: auto;
}

.boost-tag {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: var(--slide-weight);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all var(--slide-speed) ease;
}

.boost-tag:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* Header Styles */
.squish-header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  gap: 1rem;
}

.logo-bounce {
  display: flex;
  align-items: center;
}

.dash-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  font-weight: var(--bounce-weight);
  font-size: 1.5rem;
  transition: all var(--slide-speed) ease;
}

.dash-logo:hover {
  transform: scale(var(--stretch-power));
}

.jelly-icon {
  font-size: 2rem;
  margin-right: 0.5rem;
  animation: jellyWiggle 2s ease-in-out infinite;
}

@keyframes jellyWiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  75% {
    transform: rotate(-5deg);
  }
}

.logo-text {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Navigation */
.nav-squish {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: var(--slide-weight);
  transition: all var(--slide-speed) ease;
  padding: 0.5rem 1rem;
  border-radius: var(--bounce-radius);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Footer Styles */
.squish-footer {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  padding: 2rem 0 1rem;
  margin-top: auto;
}

.footer-flex {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-heading {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: var(--bounce-weight);
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
}

.footer-links li {
  margin-bottom: 0;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all var(--slide-speed) ease;
}

.footer-link:hover {
  color: white;
  transform: translateX(5px);
}

.contact-info {
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column-reverse;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.contact-icon {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.contact-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all var(--slide-speed) ease;
}

.contact-link:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  text-align: center;
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Echo Bubble Styles */
.echo-bubble {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.05)
  );
  backdrop-filter: blur(15px);
  padding: 2.5rem 2rem;
  border-radius: var(--bounce-radius);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: all var(--slide-speed) ease;
  flex: 1;
  min-width: 320px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.echo-avatar {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--jelly-pink), var(--jelly-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  z-index: 3;
  transition: all var(--slide-speed) ease;
}

.avatar-letter {
  color: white;
  font-size: 1.5rem;
  font-weight: var(--bounce-weight);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.echo-bubble:hover .echo-avatar {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.echo-bubble::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.1);
  font-family: serif;
  line-height: 1;
}

.echo-bubble:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), var(--jelly-glow);
  border-color: rgba(255, 255, 255, 0.4);
}

.echo-bubble h4 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: var(--bounce-weight);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.echo-bubble p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.5rem;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  position: relative;
  z-index: 2;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.echo-rating {
  color: var(--jelly-yellow);
  font-size: 1.4rem;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
  animation: ratingGlow 2s ease-in-out infinite alternate;
}

@keyframes ratingGlow {
  0% {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }
  100% {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
      0 0 30px rgba(255, 215, 0, 0.4);
  }
}

/* Slide Item Styles */
.slide-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: var(--bounce-radius);
  border: 2px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 1rem;
  transition: all var(--slide-speed) ease;
}

.slide-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--jelly-glow);
}

.slide-item h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.slide-item p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.slide-item ul {
  color: rgba(255, 255, 255, 0.8);
  padding-left: 1.5rem;
}

.slide-item li {
  margin-bottom: 0.5rem;
}

/* Updates Page Styles */
.dash-changes {
  padding: var(--squish-margin) 0;
  background: linear-gradient(135deg, var(--jelly-green), var(--jelly-blue));
  padding-left: 1rem;
  padding-right: 1rem;
}

.changes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  justify-content: center;
  max-width: 100%;
}

.change-bubble {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.05)
  );
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  width: 100%;
  min-height: 200px;
  will-change: transform;
}

.change-bubble::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
  pointer-events: none;
}

.change-bubble:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 30px rgba(255, 107, 157, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.change-bubble:focus-within {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15),
    0 0 25px rgba(255, 107, 157, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.change-bubble:hover::before {
  left: 100%;
}

.change-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  position: relative;
  flex-wrap: wrap;
  gap: 1rem;
}

.change-meta {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
}

.change-type {
  padding: 0.35em 1em;
  font-size: 0.95rem;
  min-width: 80px;
  text-align: center;
  line-height: 1.2;
  position: static;
  top: auto;
  right: auto;
  margin-left: 0;
  margin-top: 0;
  white-space: nowrap;
}

.change-header h3 {
  color: white;
  font-size: 1.4rem;
  font-weight: var(--bounce-weight);
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: color 0.3s ease;
  flex: 1;
  min-width: 200px;
}

.change-bubble:hover .change-header h3 {
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.change-date {
  padding: 0.35em 1em;
  font-size: 0.95rem;
  min-width: 110px;
  text-align: center;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  border-radius: 15px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.change-bubble:hover .change-date {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.change-description {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1rem;
  position: relative;
  padding-left: 1rem;
  word-wrap: break-word;
  hyphens: auto;
}

.change-description::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 3px;
  height: calc(100% - 1rem);
  background: linear-gradient(180deg, var(--jelly-pink), var(--jelly-purple));
  border-radius: 2px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.change-bubble:hover .change-description::before {
  opacity: 1;
}

.change-details {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 3px solid var(--jelly-green);
  transition: all 0.3s ease;
  word-wrap: break-word;
}

.change-bubble:hover .change-details {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: var(--jelly-yellow);
  transform: translateX(5px);
}

.change-details li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.6;
}

.change-details li::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--jelly-yellow);
  font-size: 0.8rem;
  animation: pulse 2s infinite;
}

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

.change-type.major {
  background: linear-gradient(135deg, var(--jelly-orange), #ff8a4c);
  color: white;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.change-type.update {
  background: linear-gradient(135deg, var(--jelly-blue), #60a5fa);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.change-type.feature {
  background: linear-gradient(135deg, var(--jelly-green), #34d399);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.change-type.beta {
  background: linear-gradient(135deg, var(--jelly-purple), #a855f7);
  color: white;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.change-bubble:hover .change-type {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Goo Diaries */
.goo-diaries {
  padding: var(--squish-margin) 0;
  background: linear-gradient(135deg, var(--jelly-orange), var(--jelly-yellow));
}

.diaries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-content: center;
  max-width: 100%;
}

.diary-bubble {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.05)
  );
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  width: 100%;
  min-height: 300px;
  will-change: transform;
}

.diary-bubble::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
  pointer-events: none;
}

.diary-bubble:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 30px rgba(255, 107, 157, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.diary-bubble:hover::before {
  left: 100%;
}

.diary-bubble:focus-within {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15),
    0 0 25px rgba(255, 107, 157, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.diary-image {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.diary-bubble:hover .diary-image {
  transform: scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.diary-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: all 0.3s ease;
}

.diary-bubble:hover .diary-image img {
  transform: scale(1.05);
}

.diary-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  position: relative;
  flex-wrap: wrap;
  gap: 1rem;
}

.diary-header h3 {
  color: white;
  font-size: 1.4rem;
  font-weight: var(--bounce-weight);
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: color 0.3s ease;
  flex: 1;
  min-width: 200px;
}

.diary-bubble:hover .diary-header h3 {
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.diary-author {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-style: italic;
  padding: 0.35em 1em;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.diary-bubble:hover .diary-author {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.diary-content {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1rem;
  position: relative;
  padding-left: 1rem;
  word-wrap: break-word;
  hyphens: auto;
}

.diary-content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 3px;
  height: calc(100% - 1rem);
  background: linear-gradient(180deg, var(--jelly-orange), var(--jelly-yellow));
  border-radius: 2px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.diary-bubble:hover .diary-content::before {
  opacity: 1;
}

.diary-tips {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--jelly-orange);
  transition: all 0.3s ease;
  word-wrap: break-word;
}

.diary-bubble:hover .diary-tips {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: var(--jelly-yellow);
  transform: translateX(5px);
}

.diary-tips h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  font-weight: var(--bounce-weight);
}

.diary-tips ul {
  color: rgba(255, 255, 255, 0.9);
  padding-left: 0;
  list-style: none;
}

.diary-tips li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.6;
}

.diary-tips li::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--jelly-yellow);
  font-size: 0.8rem;
  animation: pulse 2s infinite;
}

.diary-date {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-align: right;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 1rem;
}

.diary-bubble:hover .diary-date {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

/* Contact Page Styles */
.contact-zone {
  padding: var(--squish-margin) 0;
  background: linear-gradient(135deg, var(--jelly-purple), var(--jelly-pink));
}

.contact-top-flex {
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto 4rem auto;
}

.contact-info-section {
  flex: 1 1 350px;
  max-width: 420px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.map-section {
  flex: 1 1 350px;
  max-width: 520px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.map-container {
  width: 100%;
  min-height: 320px;
  max-width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--bounce-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-top: 1.5rem;
}

.contact-form-zone {
  padding: var(--squish-margin) 0;
  background: linear-gradient(135deg, var(--jelly-green), var(--jelly-blue));
}

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

.centered-form {
  width: 100%;
  max-width: 500px;
}

.contact-details {
  display: flex;
  flex-direction: column-reverse;
  gap: 1.5rem;
}

.contact-item-bubble {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: var(--bounce-radius);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all var(--slide-speed) ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item-bubble:hover {
  transform: translateY(-5px) scale(var(--stretch-power));
  box-shadow: var(--jelly-glow);
}

.contact-icon-bubble {
  font-size: 2rem;
  flex-shrink: 0;
}

.contact-details-bubble h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contact-details-bubble p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.contact-link-bubble {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: var(--bounce-weight);
  transition: all var(--slide-speed) ease;
}
.contact-link-bubble:hover {
  color: white;
  transform: translateX(5px);
}

/* Form Styles */
.squish-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--bounce-radius);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  color: white;
  font-weight: var(--bounce-weight);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--bounce-radius);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-family: var(--dash-font);
  transition: all var(--slide-speed) ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--jelly-yellow);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
  transform: scale(1.02);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.submit-gel {
  background: linear-gradient(45deg, var(--jelly-yellow), var(--jelly-orange));
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: var(--bounce-weight);
  border-radius: var(--bounce-radius);
  cursor: pointer;
  transition: all var(--slide-speed) ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.submit-gel:hover {
  transform: scale(var(--stretch-power));
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Map Section */
.map-section {
  display: flex;
  flex-direction: column;
}

.map-container {
  border-radius: var(--bounce-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all var(--slide-speed) ease;
  flex: 1;
}

.map-container:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Legal Pages Styles */
.legal-zone {
  padding: var(--squish-margin) 0;
  background: linear-gradient(135deg, var(--jelly-green), var(--jelly-blue));
}

.legal-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--bounce-radius);
  border: 2px solid rgba(255, 255, 255, 0.2);
  max-width: 800px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.legal-section h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: var(--bounce-weight);
}

.legal-section p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.legal-section ul {
  color: rgba(255, 255, 255, 0.8);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.legal-section strong {
  color: white;
  font-weight: var(--bounce-weight);
}

/* Mobile First Responsive Design */
@media (max-width: 360px) {
  .bounce-hero {
    min-height: 60vh;
  }

  .updates-hero {
    min-height: 35vh;
  }

  .contact-hero {
    min-height: 35vh;
  }

  .dash-title {
    font-size: 2.5rem;
  }

  .slide-subtitle {
    font-size: 1.2rem;
  }

  .bounce-heading {
    font-size: 2rem;
  }

  .squish-container {
    padding: 0 1rem;
  }

  .feature-flex {
    flex-direction: column;
    gap: 2rem;
  }

  .feature-cards {
    order: 1;
    max-width: 100%;
  }

  .feature-text {
    order: 2;
    max-width: 100%;
  }

  .feature-grid,
  .track-showcase,
  .boost-showcase {
    flex-direction: column;
  }

  .speed-bubble,
  .agility-bubble,
  .obstacle-bubble,
  .straight-track,
  .winding-track,
  .obstacle-track,
  .boost-track,
  .color-shift,
  .speed-burst,
  .life-bonus {
    min-width: 100%;
  }

  /* Mobile Navigation */
  .nav-list {
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  .footer-flex {
    flex-direction: column-reverse;
    text-align: left;
  }

  .footer-links {
    flex-direction: column-reverse;
  }

  .slide-item {
    max-width: 100%;
    min-width: 100%;
  }

  .echo-bubble {
    min-width: 100%;
    padding: 2rem 1.5rem;
  }

  .echo-bubble h4 {
    font-size: 1.2rem;
  }

  .echo-bubble p {
    font-size: 1rem;
  }

  .echo-bubble::before {
    font-size: 3rem;
    top: 0.5rem;
    left: 1rem;
  }

  .echo-avatar {
    width: 3rem;
    height: 3rem;
    top: 1rem;
    right: 1rem;
  }

  .avatar-letter {
    font-size: 1.2rem;
  }

  .track-flex {
    flex-direction: column;
    gap: 2rem;
  }

  .track-image {
    max-width: 100%;
  }

  .track-cards {
    max-width: 100%;
  }

  .iframe-container {
    max-width: 100%;
    margin: 0 1rem;
  }

  .color-shift,
  .speed-burst,
  .life-bonus {
    min-width: 100%;
    padding: 1.5rem 1.2rem;
  }

  .boost-icon {
    font-size: 2rem;
  }

  .boost-tag {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }

  .iframe-container iframe {
    aspect-ratio: 4/3;
    min-height: 300px;
  }

  /* Dash Changes Mobile Optimizations */
  .dash-changes {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .changes-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .change-bubble {
    padding: 1.5rem;
    min-height: auto;
  }

  .change-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .change-header h3 {
    font-size: 1.2rem;
    min-width: auto;
  }

  .change-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .change-type,
  .change-date {
    font-size: 0.85rem;
    padding: 0.25em 0.8em;
  }

  .change-description {
    font-size: 0.95rem;
    padding-left: 0.8rem;
  }

  .change-details {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .change-details li {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
  }

  /* Goo Diaries Mobile Optimizations */
  .diaries-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .diary-bubble {
    padding: 1.5rem;
    min-height: auto;
  }

  .diary-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .diary-header h3 {
    font-size: 1.2rem;
    min-width: auto;
  }

  .diary-author {
    font-size: 0.85rem;
    padding: 0.25em 0.8em;
  }

  .diary-content {
    font-size: 0.95rem;
    padding-left: 0.8rem;
  }

  .diary-tips {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .diary-tips li {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
  }

  .diary-image img {
    height: 150px;
  }

  /* Contact Page Mobile Optimizations */
  .contact-top-flex {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 100%;
  }

  .contact-info-section,
  .map-section {
    max-width: 100%;
    min-width: 0;
    align-items: center;
  }

  .contact-form-zone {
    padding: 2rem 0;
  }

  .form-center-container {
    max-width: 100%;
  }

  .centered-form {
    max-width: 100%;
  }

  @media (max-width: 480px) {
    .iframe-container iframe {
      aspect-ratio: 3/4;
      min-height: 400px;
    }
  }
}

@media (min-width: 768px) {
  .bounce-hero {
    min-height: 60vh;
  }

  .updates-hero {
    min-height: 45vh;
  }

  .contact-hero {
    min-height: 45vh;
  }

  .dash-title {
    font-size: 5rem;
  }

  .slide-subtitle {
    font-size: 1.8rem;
  }

  .bounce-heading {
    font-size: 3rem;
  }

  .feature-flex {
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
  }

  .feature-cards {
    order: 1;
    flex: 1;
    max-width: 400px;
  }

  .feature-text {
    order: 2;
    flex: 1;
    max-width: 500px;
    text-align: left;
  }

  .slide-item {
    max-width: calc(50% - 1rem);
  }

  .feature-grid,
  .track-showcase,
  .boost-showcase {
    gap: 3rem;
  }

  /* Desktop Navigation */
  .nav-list {
    gap: 2rem;
  }

  .contact-top-flex {
    flex-direction: row;
  }

  .contact-form-zone {
    padding: 3rem 0;
  }

  .form-center-container {
    max-width: 600px;
  }

  .centered-form {
    max-width: 500px;
  }

  .footer-links {
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 1.5rem;
  }

  .changes-grid,
  .diaries-grid {
    gap: 2rem;
  }

  .diary-bubble {
    padding: 2rem;
  }

  .diary-header h3 {
    font-size: 1.3rem;
  }

  .diary-image img {
    height: 180px;
  }

  .change-bubble {
    min-width: 350px;
    padding: 2rem;
  }

  .change-header h3 {
    font-size: 1.3rem;
  }

  .change-type {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .track-flex {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3rem;
  }

  .track-image {
    flex: 1;
    max-width: 500px;
  }

  .track-cards {
    flex: 1;
    max-width: 350px;
  }

  .iframe-container iframe {
    aspect-ratio: 16/10;
    min-height: 350px;
  }
}

@media (min-width: 1280px) {
  .bounce-hero {
    min-height: 80vh;
  }

  .updates-hero {
    min-height: 50vh;
  }

  .contact-hero {
    min-height: 50vh;
  }

  .dash-title {
    font-size: 6rem;
  }

  .slide-subtitle {
    font-size: 2rem;
  }

  .bounce-heading {
    font-size: 3.5rem;
  }

  .squish-container {
    padding: 0 2rem;
  }

  /* Desktop section padding */
  .stretch-features,
  .slide-guide,
  .echo-chamber,
  .track-gallery,
  .game-demo,
  .boost-zone {
    padding: 4rem 0;
  }

  .feature-flex {
    gap: 4rem;
  }

  .feature-cards {
    max-width: 450px;
  }

  .feature-text {
    max-width: 550px;
  }

  .slide-item {
    max-width: calc(50% - 1.5rem);
  }

  .legal-content {
    max-width: 900px;
  }

  .contact-top-flex {
    gap: 4rem;
  }

  .contact-form-zone {
    padding: 4rem 0;
  }

  .form-center-container {
    max-width: 700px;
  }

  .centered-form {
    max-width: 600px;
  }

  .changes-grid,
  .diaries-grid {
    gap: 3rem;
  }

  .diary-bubble {
    padding: 3rem;
  }

  .diary-header h3 {
    font-size: 1.5rem;
  }

  .diary-content {
    font-size: 1.1rem;
  }

  .diary-tips li {
    font-size: 1rem;
  }

  .diary-image img {
    height: 220px;
  }

  .change-bubble {
    min-width: 400px;
    padding: 3rem;
  }

  .change-header h3 {
    font-size: 1.5rem;
  }

  .change-description {
    font-size: 1.1rem;
  }

  .change-details li {
    font-size: 1rem;
  }

  .echo-grid {
    gap: 3rem;
  }

  .echo-bubble {
    min-width: 350px;
  }

  .echo-avatar {
    width: 4rem;
    height: 4rem;
  }

  .avatar-letter {
    font-size: 1.8rem;
  }

  .track-flex {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4rem;
  }

  .track-image {
    flex: 1;
    max-width: 600px;
  }

  .track-cards {
    flex: 1;
    max-width: 400px;
  }

  .boost-showcase {
    gap: 3rem;
  }

  .color-shift,
  .speed-burst,
  .life-bonus {
    min-width: 280px;
  }

  .boost-icon {
    font-size: 2.8rem;
  }

  .footer-links {
    gap: 2rem;
  }
}

/* Game Demo */
.game-demo {
  padding: var(--squish-margin) 0;
  background: linear-gradient(135deg, var(--jelly-purple), var(--jelly-pink));
}

.iframe-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  border-radius: var(--bounce-radius);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  transition: all var(--slide-speed) ease;
}

.iframe-container:hover {
  transform: scale(1.01);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.iframe-container iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

@media (max-width: 768px) {
  .changes-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .change-bubble {
    padding: 2rem;
  }

  .change-header {
    gap: 0.8rem;
  }

  .change-header h3 {
    font-size: 1.25rem;
  }

  .change-meta {
    gap: 0.5rem;
  }

  .change-type,
  .change-date {
    font-size: 0.9rem;
  }

  .diaries-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .diary-bubble {
    padding: 2rem;
  }

  .diary-header h3 {
    font-size: 1.25rem;
  }

  .diary-image img {
    height: 160px;
  }

  /* Contact Page Tablet Optimizations */
  .contact-top-flex {
    gap: 2rem;
  }

  .contact-form-zone {
    padding: 2.5rem 0;
  }

  .form-center-container {
    max-width: 600px;
  }

  .centered-form {
    max-width: 500px;
  }
}

@media (max-width: 480px) {
  .changes-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .change-bubble {
    padding: 1.5rem;
  }

  .change-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .change-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .diaries-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .diary-bubble {
    padding: 1.5rem;
  }

  .diary-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .diary-image img {
    height: 140px;
  }
}

/* --- CONTACT PAGE ADAPTIVE FIXES (THEMATIC CLASSES) --- */

.squish-contact-row {
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 4rem auto;
}

.contact-info-section {
  flex: 1 1 350px;
  max-width: 420px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.squish-map-zone {
  flex: 1 1 350px;
  max-width: 520px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.map-container {
  width: 100%;
  min-height: 320px;
  max-width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--bounce-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-top: 1.5rem;
}

.bounce-heading {
  font-size: 2.2rem;
  text-align: left;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .squish-contact-row {
    gap: 1.5rem;
    max-width: 900px;
  }
  .contact-info-section,
  .squish-map-zone {
    max-width: 380px;
  }
  .bounce-heading {
    font-size: 1.7rem;
  }
}

@media (max-width: 768px) {
  .squish-contact-row {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 100%;
  }
  .contact-info-section,
  .squish-map-zone {
    max-width: 100%;
    min-width: 0;
    align-items: center;
  }
  .map-container {
    min-height: 220px;
    aspect-ratio: 1.5/1;
    margin-top: 1rem;
  }
  .bounce-heading {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
  }
  .squish-form-zone {
    padding: 2rem 0;
  }
  .squish-form-center {
    max-width: 100%;
  }
  .squish-form-centered {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .squish-contact-row {
    gap: 1rem;
  }
  .map-container {
    min-height: 160px;
    aspect-ratio: 1/1;
  }
  .bounce-heading {
    font-size: 1.1rem;
  }
}
/* --- END CONTACT PAGE ADAPTIVE FIXES (THEMATIC CLASSES) --- */

/* --- CONTACT CARD LINK COLOR FIX --- */
.contact-link-bubble {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: var(--bounce-weight);
  transition: all var(--slide-speed) ease;
}
.contact-link-bubble:hover {
  color: white;
  transform: translateX(5px);
}

/* --- CONTACT SECTION PADDING FIXES --- */
.contact-zone,
.squish-form-zone {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (max-width: 1024px) {
  .contact-zone,
  .squish-form-zone {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}
@media (max-width: 600px) {
  .contact-zone,
  .squish-form-zone {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

/* --- SQUISH FORM INTERACTION STYLES --- */
.input-error {
  border-color: #ff4d6d !important;
  background: rgba(255, 77, 109, 0.08) !important;
  box-shadow: 0 0 0 2px rgba(255, 77, 109, 0.15);
  transition: border 0.2s, background 0.2s;
}

.squish-overlay {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(40, 16, 60, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: squishFadeIn 0.3s;
}

@keyframes squishFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.squish-spinner {
  width: 64px;
  height: 64px;
  border: 6px solid rgba(255, 255, 255, 0.25);
  border-top: 6px solid var(--jelly-pink);
  border-radius: 50%;
  animation: squishSpin 1s linear infinite;
  background: transparent;
}
@keyframes squishSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.squish-toast {
  position: fixed;
  left: 50%;
  bottom: 2.5rem;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(90deg, var(--jelly-green), var(--jelly-blue));
  color: #fff;
  font-weight: var(--bounce-weight);
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 0 20px rgba(16, 185, 129, 0.3);
  opacity: 0;
  pointer-events: none;
  z-index: 10000;
  transition: opacity 0.3s, transform 0.4s;
  min-width: 180px;
  max-width: 90vw;
  text-align: center;
  word-break: break-word;
  white-space: pre-line;
  border: 2px solid var(--jelly-yellow);
}
.squish-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
@media (max-width: 600px) {
  .squish-toast {
    font-size: 1rem;
    padding: 1rem 1.5rem;
    bottom: 1.2rem;
    min-width: 0;
    max-width: 95vw;
    width: auto;
    left: 1rem;
    right: 1rem;
    transform: translateX(0) translateY(100px);
  }
  .squish-toast.show {
    transform: translateX(0) translateY(0);
  }
  .squish-spinner {
    width: 44px;
    height: 44px;
    border-width: 4px;
  }
}
/* --- END SQUISH FORM INTERACTION STYLES --- */

/* --- LEGAL HERO & LEGAL PAGE STYLES --- */
.legal-hero {
  min-height: 40vh;
}
@media (max-width: 1024px) {
  .legal-hero {
    min-height: 35vh;
  }
}
@media (max-width: 600px) {
  .legal-hero {
    min-height: 30vh;
  }
}

.legal-zone {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: linear-gradient(135deg, var(--jelly-purple), var(--jelly-blue));
}
.legal-content {
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
  padding: 2.5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
}
.bounce-heading {
  font-size: 2.1rem;
  color: var(--jelly-yellow);
  margin-bottom: 2.2rem;
  text-align: center;
  letter-spacing: 0.01em;
}
.legal-section {
  margin-bottom: 2.2rem;
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.07);
  border-left: 4px solid var(--jelly-pink);
  transition: box-shadow 0.2s;
}
.legal-section:last-child {
  margin-bottom: 0;
}
.legal-section h3 {
  color: var(--jelly-yellow);
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
  font-weight: var(--bounce-weight);
  letter-spacing: 0.01em;
}
.legal-section p,
.legal-section ul {
  color: rgba(255, 255, 255, 0.93);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.7rem;
}
.legal-section ul {
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
}
.legal-section li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.1rem;
}
.legal-section li::before {
  content: "•";
  color: var(--jelly-yellow);
  position: absolute;
  left: 0;
  font-size: 1.1em;
  top: 0.1em;
}
@media (max-width: 600px) {
  .legal-content {
    padding: 1.2rem 0.5rem;
    border-radius: 14px;
  }
  .legal-section {
    padding: 1rem 0.5rem 0.7rem 0.7rem;
    border-radius: 10px;
  }
  .bounce-heading {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
  }
  .legal-section h3 {
    font-size: 1.05rem;
  }
  .legal-section p,
  .legal-section ul {
    font-size: 0.98rem;
  }
}
/* --- END LEGAL HERO & LEGAL PAGE STYLES --- */

/* Scroll To Top Button */
.scroll-to-top {
  position: fixed;
  right: 2rem;
  bottom: 2.5rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--jelly-green), var(--jelly-blue));
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  display: flex;
  outline: none;
  justify-content: center;
  font-size: 2rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-to-top:hover {
  background: linear-gradient(135deg, var(--jelly-yellow), var(--jelly-orange));
  transform: scale(1.1);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--jelly-purple), var(--jelly-blue));
  color: white;
  padding: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
  border-top: 3px solid var(--jelly-green);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.95;
}

.cookie-text strong {
  color: var(--jelly-yellow);
  font-weight: 600;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.accept-cookies {
  background: linear-gradient(45deg, var(--jelly-green), var(--jelly-blue));
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
}

.accept-cookies:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: linear-gradient(45deg, var(--jelly-yellow), var(--jelly-orange));
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .cookie-text {
    font-size: 0.9rem;
  }

  .accept-cookies {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 1rem;
  }

  .cookie-text {
    font-size: 0.85rem;
  }

  .accept-cookies {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}
