/* ========== FONTS ========== */
@font-face {
  font-family: 'Pacifico';
  src: url('../fonts/Pacifico-Regular.woff2') format('woff2'),
       url('../fonts/Pacifico-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Quicksand';
  src: url('../fonts/Quicksand-Variable.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Creepster';
  src: url('../fonts/Creepster-Regular.woff2') format('woff2'),
       url('../fonts/Creepster-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ========== CSS VARIABLES ========== */
:root {
  --pink: #F5A9B8;
  --blue: #5BCEFA;
  --white: #FFFFFF;
  --hot-pink: #FF6B9D;
  --deep-pink: #E84393;
  --lavender: #DDA0DD;
  --bg: #FFF0F5;
  --text: #4A2040;
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(245, 169, 184, 0.5);
  --heading-font: 'Pacifico', cursive;
  --body-font: 'Quicksand', sans-serif;
  --sparkle-1: #FFD700;
  --sparkle-2: #FF69B4;
  --glow: rgba(245, 169, 184, 0.3);
  --hero-gradient: linear-gradient(135deg, var(--blue) 0%, var(--pink) 35%, var(--white) 50%, var(--pink) 65%, var(--blue) 100%);
  --section-accent: var(--deep-pink);
}

html.goth {
  --pink: #6A0DAD;
  --blue: #1A0A2E;
  --white: #0A0A0F;
  --hot-pink: #8B008B;
  --deep-pink: #B026FF;
  --lavender: #4A0E6B;
  --bg: #08080D;
  --text: #D4C4E0;
  --card-bg: rgba(15, 5, 25, 0.95);
  --card-border: rgba(130, 0, 200, 0.4);
  --heading-font: 'Creepster', cursive;
  --body-font: 'Quicksand', sans-serif;
  --sparkle-1: #8B008B;
  --sparkle-2: #B026FF;
  --glow: rgba(130, 0, 200, 0.35);
  --hero-gradient: linear-gradient(135deg, #0A0010 0%, #1A0A2E 30%, #08080D 50%, #1A0A2E 70%, #0A0010 100%);
  --section-accent: #B026FF;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.6s ease, color 0.6s ease;
}

/* ========== SPARKLE BACKGROUND ========== */
.sparkles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: sparkle-float linear infinite;
  opacity: 0;
}

@keyframes sparkle-float {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* ========== GOTH MODE TOGGLE ========== */
.goth-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 50px;
  padding: 10px 20px;
  cursor: pointer;
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.goth-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 20px var(--glow);
}

.goth-toggle .bat {
  font-size: 1.3rem;
  transition: transform 0.4s ease;
}

html.goth .goth-toggle .bat {
  animation: bat-flap 0.5s ease infinite alternate;
}

@keyframes bat-flap {
  from { transform: scaleY(1); }
  to { transform: scaleY(0.85) translateY(-2px); }
}

/* ========== NAVIGATION ========== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  border-bottom: 2px solid var(--card-border);
  transition: all 0.4s ease;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 15px 0;
  gap: 30px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--section-accent);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 20px 60px;
  background: var(--hero-gradient);
  background-size: 300% 300%;
  animation: gradient-shift 8s ease infinite;
  position: relative;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero h1 {
  font-family: var(--heading-font);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--text);
  text-shadow: 2px 2px 0 rgba(255,255,255,0.3);
  margin-bottom: 10px;
  transition: all 0.4s ease;
}

html.goth .hero h1 {
  text-shadow: 0 0 20px var(--sparkle-2), 0 0 40px var(--sparkle-1);
}

.hero .subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 500;
  margin-bottom: 30px;
  opacity: 0.85;
}

.hero .classified {
  display: inline-block;
  background: var(--card-bg);
  border: 2px dashed var(--section-accent);
  border-radius: 12px;
  padding: 15px 30px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: pulse-border 2s ease infinite;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 var(--glow); }
  50% { box-shadow: 0 0 0 10px transparent; }
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  animation: bounce 2s ease infinite;
  font-size: 1.5rem;
}

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

/* ========== SECTIONS ========== */
section {
  position: relative;
  z-index: 1;
  padding: 80px 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

section h2 {
  font-family: var(--heading-font);
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 50px;
  color: var(--section-accent);
  transition: all 0.4s ease;
}

html.goth section h2 {
  text-shadow: 0 0 15px var(--sparkle-2);
}

/* ========== AGENDA TIMELINE ========== */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--blue), var(--pink), var(--blue));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 25px 30px;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.timeline-item:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 30px var(--glow);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 30px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--section-accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 10px var(--glow);
}

.timeline-item .phase {
  font-weight: 700;
  color: var(--section-accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.timeline-item h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-item p {
  opacity: 0.85;
  font-size: 0.95rem;
}

/* ========== GOALS GRID ========== */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.goal-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.goal-card:hover {
  transform: translateY(-8px) rotate(1deg);
  box-shadow: 0 12px 40px var(--glow);
}

.goal-card .icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
}

.goal-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.goal-card p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ========== FAQ ========== */
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  margin-bottom: 15px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.faq-question {
  padding: 20px 25px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: var(--glow);
}

.faq-question .arrow {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

.faq-item.open .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 25px 20px;
}

.faq-answer p {
  opacity: 0.85;
  font-size: 0.95rem;
}

/* ========== PROGRESS BAR ========== */
.progress-section {
  text-align: center;
}

.progress-bar-container {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  padding: 6px;
  max-width: 600px;
  margin: 0 auto 15px;
  backdrop-filter: blur(10px);
}

.progress-bar {
  height: 30px;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--blue), var(--pink), var(--hot-pink));
  background-size: 200% 100%;
  animation: progress-shimmer 3s ease infinite;
  width: 73%;
  transition: all 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

@keyframes progress-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.progress-label {
  font-size: 0.95rem;
  opacity: 0.7;
  font-weight: 500;
}

/* ========== MARQUEE ========== */
.marquee-wrap {
  overflow: hidden;
  background: var(--card-bg);
  border-top: 2px solid var(--card-border);
  border-bottom: 2px solid var(--card-border);
  padding: 12px 0;
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
  gap: 60px;
}

.marquee span {
  white-space: nowrap;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--section-accent);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.85rem;
  opacity: 0.6;
  position: relative;
  z-index: 1;
}

footer a {
  color: var(--section-accent);
  text-decoration: none;
}

/* ========== TRANS RIGHTS BANNER ========== */
.rights-banner {
  text-align: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.rights-banner .big-text {
  font-family: var(--heading-font);
  font-size: clamp(2.5rem, 7vw, 5rem);
  background: linear-gradient(90deg, var(--blue), var(--pink), var(--hot-pink), var(--lavender), var(--blue));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

/* ========== LOGO ========== */
.logo {
  margin-bottom: 20px;
  animation: logo-float 3s ease-in-out infinite;
}

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

.logo-clipboard .flag-1 { stop-color: #5BCEFA; }
.logo-clipboard .flag-2 { stop-color: #5BCEFA; }
.logo-clipboard .flag-3 { stop-color: #F5A9B8; }
.logo-clipboard .flag-4 { stop-color: #F5A9B8; }
.logo-clipboard .flag-5 { stop-color: #FFFFFF; }
.logo-clipboard .flag-6 { stop-color: #FFFFFF; }
.logo-clipboard .flag-7 { stop-color: #F5A9B8; }
.logo-clipboard .flag-8 { stop-color: #F5A9B8; }
.logo-clipboard .flag-9 { stop-color: #5BCEFA; }
.logo-clipboard .flag-10 { stop-color: #5BCEFA; }
.logo-clipboard .clip-body { stroke: #E84393; stroke-width: 2.5; }
.logo-clipboard .clip-top { fill: #E84393; }
.logo-clipboard .clip-ring { fill: #FFF0F5; stroke: #E84393; stroke-width: 1.5; }
.logo-clipboard .clip-checks { stroke: #E84393; }
.logo-clipboard .clip-lines { stroke: #E84393; }
.logo-clipboard .clip-sparkle { fill: #FFD700; opacity: 0.9; }
.logo-clipboard .clip-sparkle-2 { fill: #FF69B4; opacity: 0.8; }

html.goth .logo-clipboard .flag-1,
html.goth .logo-clipboard .flag-2 { stop-color: #1A0A2E; }
html.goth .logo-clipboard .flag-3,
html.goth .logo-clipboard .flag-4 { stop-color: #6A0DAD; }
html.goth .logo-clipboard .flag-5,
html.goth .logo-clipboard .flag-6 { stop-color: #0A0A0F; }
html.goth .logo-clipboard .flag-7,
html.goth .logo-clipboard .flag-8 { stop-color: #6A0DAD; }
html.goth .logo-clipboard .flag-9,
html.goth .logo-clipboard .flag-10 { stop-color: #1A0A2E; }
html.goth .logo-clipboard .clip-body { stroke: #B026FF; }
html.goth .logo-clipboard .clip-top { fill: #B026FF; }
html.goth .logo-clipboard .clip-ring { fill: #0A0A0F; stroke: #B026FF; }
html.goth .logo-clipboard .clip-checks { stroke: #B026FF; }
html.goth .logo-clipboard .clip-lines { stroke: #B026FF; }
html.goth .logo-clipboard .clip-sparkle { fill: #B026FF; opacity: 0.7; }
html.goth .logo-clipboard .clip-sparkle-2 { fill: #8B008B; opacity: 0.7; }

html.goth .logo {
  filter: drop-shadow(0 0 12px rgba(176, 38, 255, 0.5));
}

/* ========== GOTH EXTRAS ========== */
html.goth body {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(100, 0, 150, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(80, 0, 120, 0.06) 0%, transparent 50%);
}

html.goth .timeline::before {
  background: linear-gradient(to bottom, #1A0A2E, #B026FF, #1A0A2E);
}

html.goth .hero {
  position: relative;
}

html.goth .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 85%, rgba(130, 0, 200, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(80, 0, 150, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

html.goth .hero::after {
  content: '🦇  🦇  🦇  🦇';
  position: absolute;
  top: 75px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  animation: bat-flap 1s ease infinite alternate;
  opacity: 0.6;
  letter-spacing: 20px;
}

html.goth .hero h1 {
  letter-spacing: 4px;
}

html.goth .classified {
  border-style: solid;
  border-color: #B026FF;
  text-shadow: 0 0 8px rgba(176, 38, 255, 0.5);
}

html.goth nav {
  border-bottom-color: rgba(130, 0, 200, 0.3);
  background: rgba(8, 8, 13, 0.95);
}

html.goth nav a {
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

html.goth .goal-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 12px 40px rgba(130, 0, 200, 0.4), 0 0 60px rgba(130, 0, 200, 0.15);
}

html.goth .timeline-item:hover {
  box-shadow: 0 8px 30px rgba(130, 0, 200, 0.3), 0 0 50px rgba(130, 0, 200, 0.1);
}

html.goth .timeline-item::before {
  box-shadow: 0 0 15px rgba(176, 38, 255, 0.6);
}

html.goth .progress-bar {
  background: linear-gradient(90deg, #1A0A2E, #6A0DAD, #B026FF);
}

html.goth .rights-banner .big-text {
  background: linear-gradient(90deg, #6A0DAD, #B026FF, #8B008B, #B026FF, #6A0DAD);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 15px rgba(176, 38, 255, 0.4));
}

html.goth .marquee-wrap {
  background: rgba(8, 8, 13, 0.95);
  border-color: rgba(130, 0, 200, 0.25);
}

html.goth .faq-question:hover {
  background: rgba(130, 0, 200, 0.15);
}

html.goth .goth-toggle {
  background: rgba(15, 5, 25, 0.95);
  border-color: #B026FF;
  box-shadow: 0 0 15px rgba(176, 38, 255, 0.3);
}

html.goth .scroll-hint {
  text-shadow: 0 0 10px rgba(176, 38, 255, 0.6);
}

html.goth footer {
  border-top: 1px solid rgba(130, 0, 200, 0.2);
}

/* ========== LIVE STATS ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 25px 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--glow);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--section-accent);
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.75;
  font-weight: 500;
}

.stat-live {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #4CAF50;
  border-radius: 50%;
  margin-right: 5px;
  animation: live-pulse 1.5s ease infinite;
}

html.goth .stat-live {
  background: #B026FF;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  border-top: 2px solid var(--card-border);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.cookie-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner p {
  font-size: 0.95rem;
  max-width: 600px;
}

.cookie-btn {
  background: var(--section-accent);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px var(--glow);
}

.cookie-btn.reject {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--card-border);
}

/* ========== KONAMI CONFETTI ========== */
@keyframes confetti-fall {
  0% { opacity: 1; transform: translateY(0) rotate(0deg); }
  100% { opacity: 0; transform: translateY(110vh) rotate(720deg); }
}

/* ========== CRACK THE EGG GAME ========== */
html.goth .egg-container svg ellipse:first-child {
  fill: #1A0A2E;
  stroke: #4A0E6B;
}

html.goth #eggQuestion {
  fill: #4A0E6B;
}

html.goth #eggCracks .crack {
  stroke: #B026FF;
}

html.goth .egg-container svg {
  filter: drop-shadow(0 8px 25px rgba(130, 0, 200, 0.4));
}

html.goth .egg-container:hover svg {
  filter: drop-shadow(0 12px 35px rgba(130, 0, 200, 0.6));
}

.egg-game {
  text-align: center;
  max-width: 1100px;
}

.egg-game .intro {
  font-size: 0.95rem;
  opacity: 0.75;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Score display */
.egg-score-display {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.egg-score-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 12px 24px;
  backdrop-filter: blur(10px);
  text-align: center;
  min-width: 140px;
}

.egg-score-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--section-accent);
  font-variant-numeric: tabular-nums;
  display: block;
}

.egg-score-label {
  font-size: 0.8rem;
  opacity: 0.65;
  font-weight: 500;
}

/* Egg area */
.egg-play-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.egg-clicker {
  flex-shrink: 0;
}

.egg-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s ease;
}

.egg-container:active {
  transform: scale(0.95);
}

.egg-container svg {
  filter: drop-shadow(0 8px 25px var(--glow));
  transition: filter 0.4s ease;
}

.egg-container:hover svg {
  filter: drop-shadow(0 12px 35px var(--glow));
}

.egg-wobble {
  animation: egg-shake 0.3s ease;
}

@keyframes egg-shake {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(8deg); }
  60% { transform: rotate(-5deg); }
  80% { transform: rotate(5deg); }
}

.egg-crack-flash {
  animation: crack-flash 0.15s ease;
}

@keyframes crack-flash {
  0% { filter: brightness(1.5) drop-shadow(0 0 20px var(--sparkle-2)); }
  100% { filter: brightness(1) drop-shadow(0 8px 25px var(--glow)); }
}

.egg-hp-bar {
  width: 140px;
  margin: 10px auto 0;
}

.egg-hp-outer {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  padding: 3px;
  height: 18px;
}

.egg-hp-inner {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--hot-pink), var(--pink));
  transition: width 0.15s ease;
  width: 100%;
}

html.goth .egg-hp-inner {
  background: linear-gradient(90deg, #B026FF, #6A0DAD);
}

.egg-hp-text {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 4px;
}

.egg-name-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--section-accent);
  margin-top: 8px;
}

/* Click damage popup */
.egg-dmg-popup {
  position: absolute;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--section-accent);
  pointer-events: none;
  animation: dmg-float 0.8s ease forwards;
  z-index: 10;
}

@keyframes dmg-float {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-50px) scale(1.3); }
}

/* Floating hatch popup */
.egg-hatch-popup {
  position: fixed;
  z-index: 1500;
  pointer-events: none;
  text-align: center;
  animation: hatch-popup-float 1.8s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
  white-space: nowrap;
}

.egg-hatch-popup-emoji {
  font-size: clamp(3rem, 8vw, 5rem);
  display: block;
  filter: drop-shadow(0 4px 12px var(--glow));
}

.egg-hatch-popup-text {
  font-family: var(--heading-font);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--section-accent);
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin-top: 4px;
  display: block;
}

html.goth .egg-hatch-popup-text {
  text-shadow: 0 0 12px rgba(176, 38, 255, 0.6);
}

@keyframes hatch-popup-float {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.3);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
  30% {
    transform: translate(-50%, -50%) scale(1);
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -120%) scale(0.8);
  }
}

/* Info area next to egg */
.egg-info {
  text-align: left;
  min-width: 200px;
  max-width: 280px;
}

.egg-info-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--card-border);
}

.egg-info-item:last-child {
  border-bottom: none;
}

.egg-info-label {
  opacity: 0.7;
}

.egg-info-value {
  font-weight: 700;
  color: var(--section-accent);
}

/* Shop */
.egg-shop {
  margin-top: 40px;
}

.egg-shop-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.egg-shop-tab {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 50px;
  padding: 8px 20px;
  font-family: var(--body-font);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.egg-shop-tab:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px var(--glow);
}

.egg-shop-tab.active {
  background: var(--section-accent);
  color: #fff;
  border-color: var(--section-accent);
}

.egg-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
}

.egg-shop-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.egg-shop-card:hover {
  box-shadow: 0 8px 25px var(--glow);
}

.egg-shop-card.owned {
  border-color: var(--section-accent);
  box-shadow: 0 0 0 1px var(--section-accent);
}

.egg-shop-card.locked {
  opacity: 0.5;
}

.egg-shop-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.egg-shop-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.egg-shop-title {
  font-weight: 700;
  font-size: 1rem;
}

.egg-shop-owned-badge {
  font-size: 0.7rem;
  background: var(--section-accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 50px;
  margin-left: auto;
  flex-shrink: 0;
}

.egg-shop-desc {
  font-size: 0.82rem;
  opacity: 0.7;
  line-height: 1.4;
}

.egg-shop-effect {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--section-accent);
}

.egg-shop-buy {
  background: var(--section-accent);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 50px;
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  margin-top: auto;
}

.egg-shop-buy:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 12px var(--glow);
}

.egg-shop-buy:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.egg-shop-panel {
  display: none;
}

.egg-shop-panel.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
}

.egg-auto-count {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 2px;
}

/* Per-second indicator */
.egg-ps-indicator {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 4px;
  font-style: italic;
}

/* ========== PRESTIGE / WELTHERRSCHAFT ========== */
.egg-prestige {
  margin-top: 40px;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.egg-prestige::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, var(--glow) 50%, transparent 60%);
  background-size: 300% 300%;
  animation: prestige-shimmer 6s ease infinite;
  pointer-events: none;
}

@keyframes prestige-shimmer {
  0%, 100% { background-position: 100% 100%; }
  50% { background-position: 0% 0%; }
}

.egg-prestige-title {
  font-family: var(--heading-font);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--section-accent);
  margin-bottom: 8px;
  position: relative;
}

.egg-prestige-level {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 15px;
  position: relative;
}

.egg-prestige-bonus {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--section-accent);
  margin-bottom: 5px;
  position: relative;
}

.egg-prestige-desc {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-bottom: 20px;
  line-height: 1.5;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.egg-prestige-next {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 15px;
  position: relative;
}

.egg-prestige-btn {
  background: linear-gradient(135deg, var(--hot-pink), var(--deep-pink));
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0.5px;
}

.egg-prestige-btn:hover:not(:disabled) {
  transform: scale(1.06);
  box-shadow: 0 6px 25px var(--glow);
}

.egg-prestige-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: var(--card-border);
}

html.goth .egg-prestige-btn {
  background: linear-gradient(135deg, #6A0DAD, #B026FF);
}

html.goth .egg-prestige-btn:disabled {
  background: rgba(130, 0, 200, 0.2);
}

.egg-prestige-milestone {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--card-border);
  position: relative;
}

.egg-prestige-milestone-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--section-accent);
  margin-bottom: 6px;
}

.egg-prestige-milestone-desc {
  font-size: 0.85rem;
  opacity: 0.7;
  font-style: italic;
}

.egg-prestige-history {
  margin-top: 15px;
  text-align: left;
  position: relative;
}

.egg-prestige-history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.82rem;
  opacity: 0.7;
  border-bottom: 1px solid var(--card-border);
}

.egg-prestige-history-item:last-child {
  border-bottom: none;
}

.egg-prestige-history-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.egg-prestige-history-check {
  color: var(--section-accent);
  font-weight: 700;
}

/* Prestige confirmation overlay */
.egg-prestige-confirm {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1002;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.egg-prestige-confirm.visible {
  display: flex;
}

.egg-prestige-confirm-box {
  background: var(--card-bg);
  border: 2px solid var(--section-accent);
  border-radius: 20px;
  padding: 35px;
  max-width: 480px;
  text-align: center;
  backdrop-filter: blur(15px);
  animation: prestige-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes prestige-pop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.egg-prestige-confirm-title {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  color: var(--section-accent);
  margin-bottom: 15px;
}

.egg-prestige-confirm-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.egg-prestige-confirm-reward {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--section-accent);
  margin-bottom: 20px;
}

.egg-prestige-confirm-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.egg-prestige-confirm-btns button {
  padding: 10px 24px;
  border-radius: 50px;
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.egg-prestige-confirm-btns button:hover {
  transform: scale(1.05);
}

.egg-prestige-confirm-yes {
  background: linear-gradient(135deg, var(--hot-pink), var(--deep-pink));
  color: #fff;
}

.egg-prestige-confirm-no {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--card-border) !important;
}

html.goth .egg-prestige-confirm-yes {
  background: linear-gradient(135deg, #6A0DAD, #B026FF);
}

/* ========== COOP MODE ========== */
.egg-mode-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.egg-mode-btn {
  padding: 8px 20px;
  border: 2px solid var(--card-border);
  border-radius: 50px;
  background: var(--card-bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}
.egg-mode-btn.active {
  background: var(--section-accent);
  color: #fff;
  border-color: var(--section-accent);
}
.egg-mode-btn:hover:not(.active) {
  border-color: var(--section-accent);
}

.coop-status {
  text-align: center;
  font-size: 0.85rem;
  margin-bottom: 10px;
  font-weight: 600;
}
.coop-status.connected { color: #48C774; }
.coop-status.connecting { color: #FFD700; }
.coop-status.disconnected { color: #FF6B6B; }

.coop-player-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
  min-height: 0;
}
.coop-player-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  font-size: 0.82rem;
  backdrop-filter: blur(10px);
}
.coop-player-item.you {
  border-color: var(--section-accent);
  font-weight: 700;
}
.coop-player-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.coop-player-dps {
  opacity: 0.6;
  font-size: 0.75rem;
}

.coop-hatch-contributions {
  font-size: 0.78rem;
  opacity: 0.7;
  margin-top: 4px;
}

.egg-dmg-popup.other-player {
  color: #5BCEFA;
  font-size: 0.7rem;
  opacity: 0.7;
}
html.goth .egg-dmg-popup.other-player {
  color: #B026FF;
}

.coop-egg-tier-label {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 6px;
}

.coop-name-input {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 4px 10px;
  color: var(--text);
  font-family: var(--body-font);
  font-size: 0.85rem;
  max-width: 180px;
  text-align: center;
  cursor: pointer;
}
.coop-name-input:focus {
  outline: none;
  border-color: var(--section-accent);
}

html.goth .egg-mode-btn.active {
  background: linear-gradient(135deg, #6A0DAD, #B026FF);
  border-color: #B026FF;
}
html.goth .coop-player-item.you {
  border-color: #B026FF;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  nav ul {
    gap: 15px;
    padding: 12px 10px;
  }

  nav a {
    font-size: 0.8rem;
  }

  .goth-toggle {
    top: auto;
    bottom: 20px;
    right: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline-item {
    padding: 20px;
  }

  section {
    padding: 60px 15px;
  }
}
