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

:root { 
  --pac-yellow: #FFE600; 
  --bg-dark: #0a0a1a; 
  --neon-blue: #00F0FF;
  --neon-pink: #FF006E;
  --neon-purple: #8B00FF;
}

body { 
  font-family: 'Press Start 2P', monospace; 
  background: #000; 
  color: white; 
  min-height: 100vh; 
  overflow-x: hidden;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2a 50%, #0a1a2a 100%);
}

.scanlines { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  pointer-events: none; 
  z-index: 100; 
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.15) 0px, rgba(0,0,0,0.15) 2px, transparent 2px, transparent 4px);
  animation: scanlineMove 8s linear infinite;
}

@keyframes scanlineMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

.maze-bg { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  z-index: -1; 
  background: 
    radial-gradient(circle at 20% 30%, rgba(255,230,0,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0,240,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(139,0,255,0.03) 0%, transparent 60%),
    linear-gradient(90deg, transparent 49.5%, rgba(26,26,78,0.3) 49.5%, rgba(26,26,78,0.3) 50.5%, transparent 50.5%), 
    linear-gradient(0deg, transparent 49.5%, rgba(26,26,78,0.3) 49.5%, rgba(26,26,78,0.3) 50.5%, transparent 50.5%); 
  background-size: 100% 100%, 100% 100%, 100% 100%, 50px 50px, 50px 50px;
  animation: bgPulse 10s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% { opacity: 0.4; }
  100% { opacity: 0.7; }
}

.floating-ghosts { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  pointer-events: none; 
  z-index: 0; 
}

.ghost-svg { 
  animation: floatGhost 8s ease-in-out infinite; 
  filter: drop-shadow(0 0 20px currentColor);
}

@keyframes floatGhost { 
  0%,100%{transform:translateY(0) translateX(0) rotate(0deg)} 
  25%{transform:translateY(-30px) translateX(15px) rotate(5deg)} 
  50%{transform:translateY(-15px) translateX(-15px) rotate(-5deg)} 
  75%{transform:translateY(-35px) translateX(10px) rotate(3deg)} 
}

.app { 
  position: relative; 
  z-index: 1; 
  max-width: 1000px; 
  margin: 0 auto; 
  padding: 40px 20px; 
  opacity: 0; 
  transform: translateY(30px); 
  transition: opacity 1s ease, transform 1s ease; 
}

.app.loaded { 
  opacity: 1; 
  transform: translateY(0); 
}

header { 
  text-align: center; 
  margin-bottom: 60px; 
  position: relative;
}

.title-container { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 30px; 
  margin-bottom: 25px; 
}

h1 { 
  font-size: 3.5rem; 
  letter-spacing: 8px; 
  animation: titleGlow 3s ease-in-out infinite alternate; 
  position: relative;
  filter: drop-shadow(0 0 20px rgba(255,230,0,0.5));
}

.title-pac, .title-man { 
  color: var(--pac-yellow); 
  text-shadow: 
    0 0 8px rgba(255,230,0,0.7), 
    0 0 20px rgba(255,230,0,0.4),
    0 0 40px rgba(255,230,0,0.2); 
  background: linear-gradient(180deg, #FFE600 0%, #FFB800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-text-stroke: 0.5px rgba(255,230,0,0.3);
}

.title-dash { 
  color: white; 
  animation: dashBlink 1.2s step-end infinite; 
}

@keyframes titleGlow { 
  0%{filter: drop-shadow(0 0 15px rgba(255,230,0,0.4)) brightness(1)} 
  100%{filter: drop-shadow(0 0 30px rgba(255,230,0,0.5)) brightness(1.08)} 
}

@keyframes dashBlink { 
  0%,49%{opacity:1} 
  50%,100%{opacity:0.2} 
}

h2 { 
  font-size: 0.95rem; 
  color: var(--neon-blue); 
  letter-spacing: 5px; 
  text-shadow: 
    0 0 10px var(--neon-blue), 
    0 0 20px var(--neon-blue),
    0 0 30px rgba(0,240,255,0.5); 
  animation: subtitlePulse 4s ease-in-out infinite; 
}

@keyframes subtitlePulse { 
  0%,100%{opacity:1; transform: scale(1)} 
  50%{opacity:0.8; transform: scale(1.02)} 
}

.pacman { 
  display: inline-block; 
}

.pacman-body { 
  width: 50px; 
  height: 50px; 
  background: var(--pac-yellow); 
  border-radius: 50%; 
  position: relative; 
  animation: pacChomp 0.5s ease-in-out infinite; 
}

.pacman { 
  filter: drop-shadow(0 0 20px rgba(255,230,0,0.8)) drop-shadow(0 0 40px rgba(255,230,0,0.4)); 
}

.pacman-eye { 
  position:absolute; 
  top:10px; 
  left:18px; 
  width:8px; 
  height:8px; 
  background:var(--bg-dark); 
  border-radius:50%; 
  z-index:5; 
}

.pacman.right .pacman-body { 
  transform: scaleX(-1); 
}

@keyframes pacChomp {
  0%, 100% { clip-path: polygon(50% 50%, 100% 50%, 100% 0%, 0% 0%, 0% 100%, 100% 100%, 100% 50%); }
  50% { clip-path: polygon(50% 50%, 100% 15%, 100% 0%, 0% 0%, 0% 100%, 100% 100%, 100% 85%); }
}

.pacman-dots { 
  display:flex; 
  justify-content:center; 
  gap:15px; 
  margin-top:25px; 
  flex-wrap:wrap; 
}

.dot { 
  width:8px; 
  height:8px; 
  background: linear-gradient(135deg, #FFB897, #FF8C69); 
  border-radius:50%; 
  animation:dotAppear 0.4s ease forwards, dotPulse 2.5s ease-in-out infinite; 
  opacity:0; 
  box-shadow:0 0 10px rgba(255,184,151,0.6), 0 0 20px rgba(255,184,151,0.3); 
}

@keyframes dotAppear { 
  to{opacity:1; transform: scale(1)} 
  from{opacity:0; transform: scale(0)} 
}

@keyframes dotPulse { 
  0%,100%{transform:scale(1);opacity:0.7; box-shadow:0 0 10px rgba(255,184,151,0.6)} 
  50%{transform:scale(1.5);opacity:1; box-shadow:0 0 20px rgba(255,184,151,0.9), 0 0 30px rgba(255,184,151,0.5)} 
}

.scoreboard { 
  display:flex; 
  flex-direction:column; 
  gap:25px; 
}

.score-row { 
  display:grid; 
  grid-template-columns:220px 1fr 180px; 
  align-items:center; 
  gap:20px; 
  padding:20px 25px; 
  background: linear-gradient(135deg, rgba(26,26,62,0.7), rgba(13,13,43,0.7)); 
  border:2px solid transparent;
  background-clip: padding-box;
  border-radius:16px; 
  opacity:0; 
  transform:translateX(-80px) scale(0.95); 
  transition:all 0.7s cubic-bezier(0.16,1,0.3,1); 
  position:relative; 
  overflow:hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.score-row::before { 
  content:''; 
  position:absolute; 
  top:-2px; 
  left:-2px; 
  right:-2px; 
  bottom:-2px; 
  background: linear-gradient(135deg, rgba(100,100,200,0.3), rgba(50,50,150,0.3)); 
  border-radius:16px; 
  z-index:-1;
}

.score-row::after { 
  content:''; 
  position:absolute; 
  top:0; 
  left:-100%; 
  width:100%; 
  height:100%; 
  background:linear-gradient(90deg,transparent,rgba(255,255,255,0.08),transparent); 
  animation:shimmer 4s ease-in-out infinite; 
}

@keyframes shimmer { 
  0%{left:-100%} 
  100%{left:200%} 
}

.score-row.visible { 
  opacity:1; 
  transform:translateX(0) scale(1); 
}

.score-row:hover { 
  transform:translateX(8px) scale(1.02); 
  box-shadow: 0 12px 48px rgba(0,0,0,0.6), 0 0 40px rgba(100,100,200,0.2); 
}

.score-row.first-place { 
  background: linear-gradient(135deg, rgba(60,50,20,0.8), rgba(40,35,15,0.8)); 
  border-color: rgba(255,230,0,0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 60px rgba(255,230,0,0.2);
}

.score-row.first-place::before { 
  background: linear-gradient(135deg, rgba(255,230,0,0.3), rgba(255,180,0,0.2)); 
  animation: goldenBorder 3s ease-in-out infinite alternate; 
}

@keyframes goldenBorder { 
  0%{opacity:0.5; filter: blur(10px)} 
  100%{opacity:1; filter: blur(5px)} 
}

.player-info { 
  display:flex; 
  align-items:center; 
  gap:12px; 
}

.rank { 
  font-size:0.8rem; 
  color:#888; 
  min-width:32px; 
  text-shadow: 0 0 5px rgba(136,136,136,0.5);
}

.rank-emoji { 
  font-size:1.4rem; 
  min-width:28px; 
  animation:rankBounce 2.5s ease-in-out infinite; 
  filter: drop-shadow(0 0 10px currentColor);
}

@keyframes rankBounce { 
  0%,100%{transform:translateY(0) rotate(0deg)} 
  50%{transform:translateY(-5px) rotate(10deg)} 
}

.player-ghost { 
  font-size:1.6rem; 
  animation:ghostWobble 3.5s ease-in-out infinite; 
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.5));
}

@keyframes ghostWobble { 
  0%,100%{transform:rotate(0) scale(1)} 
  25%{transform:rotate(8deg) scale(1.1)} 
  75%{transform:rotate(-8deg) scale(1.1)} 
}

.player-name { 
  font-size:1rem; 
  color:var(--pac-yellow); 
  text-shadow:0 0 10px rgba(255,230,0,0.5), 0 0 20px rgba(255,230,0,0.3); 
  letter-spacing:2px; 
}

.bar-container { 
  height:40px; 
  background: linear-gradient(135deg, #0a0a2a, #0a0a3a); 
  border-radius:20px; 
  position:relative; 
  overflow:hidden; 
  border:2px solid #1a1a4e; 
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.bar { 
  height:100%; 
  border-radius:20px; 
  width:0%; 
  transition:width 2.5s cubic-bezier(0.16,1,0.3,1); 
  position:relative; 
  overflow:hidden; 
}

.bar-shine { 
  position:absolute; 
  top:0; 
  left:0; 
  width:100%; 
  height:60%; 
  background:linear-gradient(180deg,rgba(255,255,255,0.3),transparent); 
  border-radius:20px 20px 0 0; 
}

.bar-particles { 
  position:absolute; 
  top:0; 
  left:0; 
  width:100%; 
  height:100%; 
}

.particle { 
  position:absolute; 
  bottom:0; 
  width:4px; 
  height:4px; 
  background:rgba(255,255,255,0.9); 
  border-radius:50%; 
  animation:particleFloat 2.5s ease-in-out infinite; 
  box-shadow: 0 0 8px rgba(255,255,255,0.8);
}

@keyframes particleFloat { 
  0%{transform:translateY(0) scale(1);opacity:1} 
  50%{transform:translateY(-20px) scale(0.7);opacity:0.5} 
  100%{transform:translateY(-35px) scale(0);opacity:0} 
}

.bar-end-glow { 
  position:absolute; 
  right:-6px; 
  top:50%; 
  transform:translateY(-50%); 
  width:16px; 
  height:16px; 
  border-radius:50%; 
  animation:endGlow 2s ease-in-out infinite alternate; 
  filter:blur(4px); 
}

@keyframes endGlow { 
  0%{opacity:0.6;transform:translateY(-50%) scale(1)} 
  100%{opacity:1;transform:translateY(-50%) scale(1.8)} 
}

.score-value { 
  text-align:right; 
  display:flex; 
  flex-direction:column; 
  align-items:flex-end; 
}

.score-number { 
  font-size:1.3rem; 
  color:white; 
  text-shadow:0 0 15px rgba(255,255,255,0.7), 0 0 30px rgba(255,255,255,0.4); 
  font-variant-numeric:tabular-nums; 
}

.score-pts { 
  font-size:0.55rem; 
  color:#888; 
  letter-spacing:3px; 
  margin-top:4px; 
}

footer { 
  text-align:center; 
  margin-top:80px; 
  padding-bottom:50px; 
}

.footer-dots { 
  margin-bottom:25px; 
}

.footer-dot { 
  font-size:2.5rem; 
  color:#FFB897; 
  animation:footerDotPulse 2.5s ease-in-out infinite; 
  display:inline-block; 
  margin:0 4px; 
  filter: drop-shadow(0 0 10px rgba(255,184,151,0.6));
}

@keyframes footerDotPulse { 
  0%,100%{opacity:0.4;transform:scale(0.8)} 
  50%{opacity:1;transform:scale(1.4)} 
}

.insert-coin { 
  font-size:0.75rem; 
  color:#888; 
  letter-spacing:5px; 
  animation:insertCoin 1.8s step-end infinite; 
  cursor:default; 
  user-select:none; 
  text-shadow: 0 0 10px rgba(136,136,136,0.5);
}

@keyframes insertCoin { 
  0%,49%{opacity:1} 
  50%,100%{opacity:0} 
}

.high-score-flash { 
  margin-top:25px; 
  font-size:0.85rem; 
  color:var(--pac-yellow); 
  text-shadow:0 0 20px rgba(255,230,0,0.6), 0 0 40px rgba(255,230,0,0.3); 
  animation:highScoreFlash 2.5s ease-in-out infinite alternate; 
  letter-spacing:4px; 
}

@keyframes highScoreFlash { 
  0%{opacity:0.8; transform: scale(1)} 
  100%{opacity:1; transform: scale(1.05); text-shadow:0 0 30px var(--pac-yellow),0 0 60px rgba(255,230,0,0.5)} 
}

/* ADMIN */
.admin-overlay { 
  position:fixed; 
  top:0; 
  left:0; 
  width:100%; 
  height:100%; 
  background:rgba(0,0,0,0.9); 
  backdrop-filter: blur(10px);
  z-index:9999; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  opacity:0; 
  pointer-events:none; 
  transition:opacity 0.4s ease; 
}

.admin-overlay.open { 
  opacity:1; 
  pointer-events:all; 
}

.admin-panel { 
  background:linear-gradient(135deg,#1a1a3e,#0d0d2b); 
  border:3px solid var(--pac-yellow); 
  border-radius:20px; 
  padding:35px; 
  max-width:560px; 
  width:90%; 
  max-height:90vh; 
  overflow-y:auto; 
  box-shadow:0 0 60px rgba(255,230,0,0.3), 0 20px 80px rgba(0,0,0,0.8); 
  position:relative; 
  animation: adminPanelAppear 0.4s ease;
}

@keyframes adminPanelAppear {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.admin-panel h3 { 
  font-size:0.95rem; 
  color:var(--pac-yellow); 
  text-align:center; 
  margin-bottom:25px; 
  text-shadow: 0 0 20px rgba(255,230,0,0.5);
}

.admin-close { 
  position:absolute; 
  top:15px; 
  right:20px; 
  background:none; 
  border:none; 
  color:#FF0000; 
  font-size:1.3rem; 
  cursor:pointer; 
  font-family:'Press Start 2P',monospace; 
  transition: all 0.3s ease;
}

.admin-close:hover { 
  text-shadow:0 0 20px #FF0000; 
  transform: scale(1.2);
}

.admin-form { 
  display:flex; 
  flex-direction:column; 
  align-items:center; 
  gap:18px; 
  width:100%; 
}

.admin-input { 
  font-family:'Press Start 2P',monospace; 
  font-size:0.7rem; 
  padding:12px 16px; 
  background:#0a0a2a; 
  border:2px solid #2a2a5e; 
  border-radius:10px; 
  color:white; 
  text-align:center; 
  width:100%; 
  outline:none; 
  transition: all 0.3s ease;
}

.admin-input:focus { 
  border-color:var(--pac-yellow); 
  box-shadow:0 0 20px rgba(255,230,0,0.3); 
  transform: scale(1.02);
}

.admin-btn { 
  font-family:'Press Start 2P',monospace; 
  font-size:0.6rem; 
  padding:12px 22px; 
  background:linear-gradient(135deg,#2a2a5e,#1a1a4e); 
  border:2px solid #4a4a8e; 
  border-radius:10px; 
  color:white; 
  cursor:pointer; 
  transition:all 0.3s ease; 
}

.admin-btn:hover { 
  background:linear-gradient(135deg,#3a3a7e,#2a2a5e); 
  border-color:var(--pac-yellow); 
  box-shadow:0 0 25px rgba(255,230,0,0.3); 
  transform: translateY(-2px);
}

.admin-btn.green { 
  border-color:#00FF0066; 
}

.admin-btn.green:hover { 
  border-color:#00FF00; 
  box-shadow:0 0 25px rgba(0,255,0,0.4); 
}

.admin-btn.red { 
  border-color:#FF000066; 
}

.admin-btn.red:hover { 
  border-color:#FF0000; 
  box-shadow:0 0 25px rgba(255,0,0,0.4); 
}

.admin-error { 
  color:#FF0000; 
  font-size:0.55rem; 
  text-shadow:0 0 10px rgba(255,0,0,0.6); 
  animation:shake 0.4s ease; 
}

.admin-success { 
  color:#00FF00; 
  font-size:0.55rem; 
  text-shadow:0 0 10px rgba(0,255,0,0.6); 
  text-align:center; 
  margin-top:10px; 
}

@keyframes shake { 
  0%,100%{transform:translateX(0)} 
  25%{transform:translateX(-8px)} 
  75%{transform:translateX(8px)} 
}

.admin-players { 
  display:flex; 
  flex-direction:column; 
  gap:12px; 
  margin-bottom:20px; 
}

.admin-row { 
  display:flex; 
  align-items:center; 
  gap:8px; 
  padding:10px; 
  background:rgba(10,10,42,0.9); 
  border:2px solid #2a2a5e; 
  border-radius:10px; 
  flex-wrap:wrap; 
  transition: all 0.3s ease;
}

.admin-row:hover {
  border-color: #4a4a8e;
  transform: translateX(5px);
}

.admin-row input { 
  font-family:'Press Start 2P',monospace; 
  font-size:0.6rem; 
  padding:8px 10px; 
  background:#0a0a2a; 
  border:2px solid #2a2a5e; 
  border-radius:8px; 
  color:white; 
  outline:none; 
  transition: all 0.3s ease;
}

.admin-row input:focus { 
  border-color:var(--pac-yellow); 
  box-shadow: 0 0 15px rgba(255,230,0,0.2);
}

.admin-row .n { 
  flex:1; 
  min-width:90px; 
}

.admin-row .s { 
  width:100px; 
  text-align:right; 
}

.admin-row .e { 
  width:50px; 
  text-align:center; 
}

.admin-row .c { 
  width:40px; 
  height:32px; 
  padding:3px; 
  cursor:pointer; 
  border-radius:8px; 
  background:#0a0a2a; 
  border:2px solid #2a2a5e; 
}

.admin-del { 
  background:none; 
  border:none; 
  color:#FF000088; 
  font-size:1rem; 
  cursor:pointer; 
  padding:4px 8px; 
  transition: all 0.3s ease;
}

.admin-del:hover { 
  color:#FF0000; 
  transform: scale(1.3);
}

.admin-actions { 
  display:flex; 
  gap:12px; 
  justify-content:center; 
  flex-wrap:wrap; 
  margin-top:15px; 
}

.admin-divider { 
  border:none; 
  border-top:2px solid #2a2a5e; 
  margin:22px 0; 
}

.admin-label { 
  font-size:0.6rem; 
  color:var(--neon-blue); 
  margin-bottom:8px; 
  letter-spacing:2px; 
  text-shadow: 0 0 10px rgba(0,240,255,0.5);
}

.admin-pw-section input { 
  font-family:'Press Start 2P',monospace; 
  font-size:0.6rem; 
  padding:10px; 
  background:#0a0a2a; 
  border:2px solid #2a2a5e; 
  border-radius:8px; 
  color:white; 
  outline:none; 
  width:100%; 
  margin-bottom:8px; 
  transition: all 0.3s ease;
}

.admin-pw-section input:focus { 
  border-color:var(--pac-yellow); 
  box-shadow: 0 0 20px rgba(255,230,0,0.2);
}

@media (max-width:768px) {
  h1{font-size:2.2rem; letter-spacing: 4px;} 
  h2{font-size:0.7rem; letter-spacing: 3px;}
  .score-row{grid-template-columns:1fr;gap:12px;padding:16px 20px}
  .player-info{justify-content:center} 
  .bar-container{height:32px}
  .score-value{align-items:center;flex-direction:row;justify-content:center;gap:10px}
  .score-number{font-size:1rem}
  .pacman-body{width:40px;height:40px} 
  .pacman-eye{top:8px;left:15px;width:6px;height:6px}
  .title-container{gap:15px}
  .app{padding:30px 15px}
}

@media (max-width:480px) {
  h1{font-size:1.6rem;letter-spacing:2px} 
  .app{padding:25px 12px}
  .player-name{font-size:0.8rem} 
  .score-number{font-size:0.9rem}
  .admin-panel{padding:25px 20px}
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* NEW SECTIONS */
.stats-section, .performance-section, .features-section, .tech-section {
  margin-top: 80px;
  padding: 40px 20px;
  position: relative;
}

.section-title {
  font-size: 1.2rem;
  text-align: center;
  color: var(--pac-yellow);
  margin-bottom: 40px;
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(255,230,0,0.6), 0 0 40px rgba(255,230,0,0.3);
  animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.02); }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.stats-card {
  background: linear-gradient(135deg, rgba(26,26,62,0.8), rgba(13,13,43,0.8));
  border: 2px solid rgba(100,100,200,0.4);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.stats-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  animation: statsRotate 8s linear infinite;
}

@keyframes statsRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.stats-card:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: var(--pac-yellow);
  box-shadow: 0 12px 48px rgba(0,0,0,0.6), 0 0 40px rgba(255,230,0,0.2);
}

.stats-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 15px rgba(255,255,255,0.5));
  animation: iconFloat 3s ease-in-out infinite;
}

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

.stats-value {
  font-size: 2rem;
  color: white;
  font-weight: bold;
  margin: 15px 0;
  text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.stats-label {
  font-size: 0.6rem;
  color: #888;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.performance-card {
  background: linear-gradient(135deg, rgba(26,26,62,0.8), rgba(13,13,43,0.8));
  border: 2px solid rgba(100,100,200,0.4);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.performance-card:hover {
  transform: translateY(-10px);
  border-color: var(--neon-blue);
  box-shadow: 0 12px 48px rgba(0,0,0,0.6), 0 0 40px rgba(0,240,255,0.2);
}

.perf-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.perf-ghost {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

.perf-name {
  font-size: 0.9rem;
  color: var(--pac-yellow);
  letter-spacing: 2px;
}

.perf-ring {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

.progress-ring circle {
  transition: stroke-dashoffset 1.5s ease;
}

.perf-score {
  font-size: 0.8rem;
  color: #888;
  letter-spacing: 2px;
  margin-top: 15px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: linear-gradient(135deg, rgba(26,26,62,0.7), rgba(13,13,43,0.7));
  border: 2px solid rgba(100,100,200,0.3);
  border-radius: 16px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: left 0.5s ease;
}

.feature-card:hover::after {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--neon-purple);
  box-shadow: 0 12px 48px rgba(0,0,0,0.6), 0 0 40px rgba(139,0,255,0.2);
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 15px rgba(255,255,255,0.5));
  animation: featureIconBounce 4s ease-in-out infinite;
}

@keyframes featureIconBounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(5deg); }
}

.feature-card h4 {
  font-size: 0.75rem;
  color: var(--neon-blue);
  margin-bottom: 15px;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0,240,255,0.5);
}

.feature-card p {
  font-size: 0.55rem;
  line-height: 1.6;
  color: #aaa;
  letter-spacing: 1px;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.tech-badge {
  background: linear-gradient(135deg, rgba(139,0,255,0.3), rgba(255,0,110,0.3));
  border: 2px solid rgba(139,0,255,0.5);
  border-radius: 25px;
  padding: 12px 25px;
  font-size: 0.65rem;
  color: white;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139,0,255,0.3);
  position: relative;
  overflow: hidden;
}

.tech-badge::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.tech-badge:hover::before {
  width: 200%;
  height: 200%;
}

.tech-badge:hover {
  transform: translateY(-5px) scale(1.1);
  border-color: var(--pac-yellow);
  box-shadow: 0 8px 30px rgba(255,230,0,0.4);
  text-shadow: 0 0 10px rgba(255,230,0,0.8);
}

.tech-badge span {
  position: relative;
  z-index: 1;
}

.final-footer {
  margin-top: 40px;
  padding: 40px 20px;
  background: linear-gradient(180deg, transparent, rgba(10,10,26,0.8));
  border-top: 2px solid rgba(100,100,200,0.2);
}

.back-link {
  display: inline-block; margin-top: 20px; font-size: 0.55rem;
  color: var(--neon-blue); text-decoration: none; letter-spacing: 3px;
  transition: all 0.3s ease; border: 1px solid rgba(0,240,255,0.3);
  padding: 8px 16px; border-radius: 8px;
}
.back-link:hover { border-color: var(--pac-yellow); color: var(--pac-yellow); transform: translateY(-2px); }

.footer-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.copyright {
  font-size: 0.6rem;
  color: #666;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.made-with {
  font-size: 0.65rem;
  color: #888;
  letter-spacing: 2px;
}

.heart {
  color: #FF006E;
  animation: heartBeat 1.5s ease-in-out infinite;
  display: inline-block;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(1); }
}

.coffee {
  filter: drop-shadow(0 0 5px rgba(255,184,151,0.5));
}

@media (max-width: 768px) {
  .stats-grid, .performance-grid, .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .section-title {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }
  
  .stats-value {
    font-size: 1.5rem;
  }
  
  .feature-card h4 {
    font-size: 0.65rem;
  }
  
  .feature-card p {
    font-size: 0.5rem;
  }
  
  .tech-badge {
    font-size: 0.55rem;
    padding: 10px 20px;
  }
}
