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

body {
  background: #0a0a12;
  color: #fff;
  font-family: 'IBM Plex Sans', sans-serif;
  overflow-x: hidden;
}

/* CRT Scanline overlay */
.crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px,
    rgba(0, 0, 0, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* Breaking News Banner */
.breaking-banner {
  background: linear-gradient(90deg, #cc0000, #ff1a1a, #cc0000);
  padding: 10px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid #ff4444;
  animation: bannerPulse 2s ease-in-out infinite;
}

@keyframes bannerPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.4); }
  50% { box-shadow: 0 0 40px rgba(255, 0, 0, 0.8); }
}

.breaking-text {
  font-family: 'Bangers', cursive;
  font-size: 1.8rem;
  letter-spacing: 4px;
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  animation: flashText 1s ease-in-out infinite alternate;
}

@keyframes flashText {
  0% { opacity: 1; }
  100% { opacity: 0.85; }
}

/* News Ticker */
.ticker-wrap {
  background: #1a1a2e;
  border-top: 2px solid #ff3333;
  border-bottom: 2px solid #ff3333;
  overflow: hidden;
  padding: 8px 0;
}

.ticker {
  display: inline-block;
  white-space: nowrap;
  animation: tickerScroll 25s linear infinite;
  font-family: 'Courier Prime', monospace;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ff6666;
}

@keyframes tickerScroll {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* Cat image container */
.cat-container {
  position: relative;
  display: inline-block;
  animation: catBob 3s ease-in-out infinite;
}

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

.cat-image {
  width: 320px;
  max-width: 80vw;
  border-radius: 16px;
  border: 4px solid #333;
  box-shadow: 
    0 0 40px rgba(255, 100, 100, 0.3),
    0 0 80px rgba(255, 50, 50, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.cat-image:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 
    0 0 60px rgba(255, 100, 100, 0.5),
    0 0 100px rgba(255, 50, 50, 0.3);
}

/* Spotlight effect */
.spotlight {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,200,100,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Speech Bubbles */
.speech-bubble {
  position: relative;
  background: #fff;
  color: #1a1a2e;
  border: 3px solid #222;
  border-radius: 20px;
  padding: 16px 20px;
  max-width: 320px;
  font-family: 'Permanent Marker', cursive;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: 4px 4px 0px #222;
  transform: scale(0);
  opacity: 0;
}

.speech-bubble.visible {
  animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  80% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Bubble tails */
.bubble-tail-right::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 30px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 22px solid #fff;
  filter: drop-shadow(2px 3px 0px #222);
}

.bubble-tail-right::before {
  content: '';
  position: absolute;
  bottom: -24px;
  left: 28px;
  width: 0;
  height: 0;
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  border-top: 25px solid #222;
  z-index: -1;
}

.bubble-tail-left::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: 30px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 22px solid #fff;
  filter: drop-shadow(2px 3px 0px #222);
}

.bubble-tail-left::before {
  content: '';
  position: absolute;
  bottom: -24px;
  right: 28px;
  width: 0;
  height: 0;
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  border-top: 25px solid #222;
  z-index: -1;
}

.bubble-tail-bottom::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 22px solid #fff;
  filter: drop-shadow(0px -3px 0px #222);
}

.bubble-tail-bottom::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  border-bottom: 25px solid #222;
  z-index: -1;
}

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: #1a1a2e;
  margin-left: 2px;
  animation: blink 0.7s step-end infinite;
  vertical-align: text-bottom;
}

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

/* Migration section */
.migration-section {
  background: linear-gradient(180deg, #0a0a12 0%, #0d1117 50%, #0a0a12 100%);
}

.berrry-title {
  font-family: 'Bangers', cursive;
  font-size: 4rem;
  background: linear-gradient(135deg, #ff6b9d, #c44569, #ff6b9d, #e84393);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease infinite;
  filter: drop-shadow(0 0 30px rgba(255, 107, 157, 0.4));
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Migration arrow path */
.migration-path {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 30px 20px;
}

.path-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff4444;
  animation: pathPulse 1.5s ease-in-out infinite;
}

.path-dot:nth-child(2) { animation-delay: 0.2s; }
.path-dot:nth-child(3) { animation-delay: 0.4s; }
.path-dot:nth-child(4) { animation-delay: 0.6s; }
.path-dot:nth-child(5) { animation-delay: 0.8s; }

@keyframes pathPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); background: #ff6b9d; }
}

/* CTA Button */
.cta-button {
  background: linear-gradient(135deg, #00b894, #00cec9);
  color: #fff;
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  letter-spacing: 2px;
  padding: 18px 40px;
  border: none;
  border-radius: 60px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 184, 148, 0.4), 0 8px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 40px rgba(0, 184, 148, 0.7), 0 12px 40px rgba(0, 0, 0, 0.4);
}

.cta-button:active {
  transform: translateY(0) scale(0.98);
}

/* Replay button */
.replay-button {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #aaa;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.replay-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* Memorial section */
.memorial-card {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 2px solid #333;
  border-radius: 16px;
  padding: 30px;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), inset 0 0 60px rgba(0, 0, 0, 0.3);
}

.memorial-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 17px;
  background: linear-gradient(135deg, #444, #222);
  z-index: -1;
}

/* Timeline */
.timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  padding: 20px 0;
  gap: 0;
}

.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  position: relative;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff6b9d;
  border: 3px solid #fff;
  z-index: 2;
  box-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

.timeline-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ff6b9d, #c44569);
  margin-top: 8px;
  align-self: center;
}

.timeline-label {
  font-size: 0.75rem;
  color: #aaa;
  text-align: center;
  margin-top: 8px;
  font-family: 'IBM Plex Sans', sans-serif;
  max-width: 100px;
}

/* Falling tears / particles */
.tear {
  position: fixed;
  pointer-events: none;
  font-size: 1.2rem;
  opacity: 0.4;
  animation: fallTear linear infinite;
  z-index: 0;
}

@keyframes fallTear {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 0.4; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* Confetti */
.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  z-index: 9999;
  pointer-events: none;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Footer */
.footer-link {
  color: #ff6b9d;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-link:hover {
  color: #ff9dbd;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .breaking-text {
    font-size: 1.2rem;
    letter-spacing: 2px;
  }
  
  .cat-image {
    width: 240px;
  }
  
  .speech-bubble {
    max-width: 260px;
    font-size: 0.85rem;
    padding: 12px 16px;
  }
  
  .berrry-title {
    font-size: 2.5rem;
  }
  
  .timeline {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .timeline-line {
    display: none;
  }
}