*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #0a0a12;
  --bg-panel: #12121f;
  --neon-red: #ff2d55;
  --neon-orange: #ff9500;
  --neon-yellow: #ffd60a;
  --neon-blue: #00d4ff;
  --neon-purple: #bf5af2;
  --text: #f0f0f5;
  --text-dim: #8888aa;
  --border: #2a2a44;
  --glow-red: 0 0 20px rgba(255, 45, 85, 0.6);
  --glow-yellow: 0 0 30px rgba(255, 214, 10, 0.5);
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Russo One', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  user-select: none;
}

.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 1000;
}

.vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
  z-index: 999;
}

.screen {
  display: none;
  height: 100vh;
  flex-direction: column;
  position: relative;
}

.screen.active {
  display: flex;
}

#game-screen {
  position: relative;
  overflow: hidden;
}

#game-screen.active {
  display: block;
}

.game-ui {
  position: relative;
  z-index: 10;
  height: 100vh;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.game-ui > * {
  pointer-events: auto;
}

/* ===== LOGIN ===== */
#login-screen {
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 45, 85, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    var(--bg-dark);
}

.login-box {
  text-align: center;
  padding: 3rem 2.5rem;
  background: var(--bg-panel);
  border: 3px solid var(--neon-red);
  box-shadow: var(--glow-red), inset 0 0 60px rgba(255, 45, 85, 0.05);
  max-width: 480px;
  width: 90%;
  animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: var(--neon-red); box-shadow: var(--glow-red); }
  50% { border-color: var(--neon-orange); box-shadow: 0 0 25px rgba(255, 149, 0, 0.5); }
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}

.logo-top {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(1rem, 4vw, 1.4rem);
  color: var(--neon-yellow);
  text-shadow: 0 0 10px var(--neon-yellow);
  letter-spacing: 2px;
}

.logo-bottom {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.7rem, 3vw, 1rem);
  color: var(--neon-red);
  text-shadow: 0 0 10px var(--neon-red);
}

.login-sub {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

#username-input {
  width: 100%;
  padding: 1rem;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.75rem;
  background: #0d0d18;
  border: 2px solid var(--border);
  color: var(--neon-blue);
  text-align: center;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#username-input:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

#username-input::placeholder {
  color: #444466;
}

.arcade-btn {
  margin-top: 1.5rem;
  width: 100%;
  padding: 1.2rem;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.8rem;
  background: linear-gradient(180deg, var(--neon-red) 0%, #cc0033 100%);
  border: none;
  color: white;
  cursor: pointer;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 0 #990022, 0 0 20px rgba(255, 45, 85, 0.4);
  transition: transform 0.1s, box-shadow 0.1s;
}

.arcade-btn:hover {
  filter: brightness(1.1);
}

.arcade-btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #990022, 0 0 20px rgba(255, 45, 85, 0.4);
}

.login-hint {
  margin-top: 1rem;
  font-size: 0.7rem;
  color: #555577;
}

.login-error {
  margin-top: 1rem;
  font-size: 0.7rem;
  color: var(--neon-red);
  text-shadow: 0 0 8px rgba(255, 45, 85, 0.4);
}

.login-error.hidden {
  display: none;
}

/* ===== GAME HUD ===== */
.hud {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, rgba(10, 10, 18, 0.85) 0%, rgba(10, 10, 18, 0.4) 100%);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(42, 42, 68, 0.6);
  gap: 1rem;
}

.hud-left, .hud-center, .hud-right {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hud-center {
  align-items: center;
}

.hud-right {
  align-items: flex-end;
}

.hud-label {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.5rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.hud-value {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.9rem, 3vw, 1.3rem);
}

.player-name {
  color: var(--neon-blue);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.score {
  color: var(--neon-yellow);
  text-shadow: var(--glow-yellow);
  font-size: clamp(1.2rem, 4vw, 1.8rem);
}

.score-secret {
  cursor: pointer;
}

.score-secret:active {
  transform: scale(0.95);
}

.counter {
  color: var(--neon-orange);
}

/* ===== COMBO ZONE ===== */
.combo-zone {
  position: relative;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 20;
  pointer-events: none;
}

.combo-display {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  animation: combo-pop 0.3s ease-out;
}

.combo-display.hidden {
  display: none;
}

.combo-count {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(2rem, 8vw, 4rem);
  color: var(--neon-yellow);
  text-shadow: var(--glow-yellow), 0 4px 20px rgba(0, 0, 0, 0.9);
}

.combo-text {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.8rem, 3vw, 1.2rem);
  color: var(--neon-orange);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.multiplier-display {
  position: absolute;
  top: 10px;
  right: 2rem;
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(1rem, 4vw, 1.5rem);
  color: var(--neon-purple);
  text-shadow: 0 0 15px rgba(191, 90, 242, 0.7), 0 2px 10px rgba(0, 0, 0, 0.9);
  animation: multiplier-pulse 0.5s ease-out;
}

.multiplier-display.hidden {
  display: none;
}

.hit-text {
  position: absolute;
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.7rem, 2.5vw, 1rem);
  color: var(--neon-red);
  text-shadow: 0 0 10px var(--neon-red), 0 2px 10px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  animation: hit-float 0.8s ease-out forwards;
  white-space: nowrap;
}

@keyframes combo-pop {
  0% { transform: scale(1.5); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes multiplier-pulse {
  0% { transform: scale(2); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes hit-float {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-60px) scale(1.3); opacity: 0; }
}

/* ===== FULLSCREEN PHOTO ===== */
.photo-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.photo-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-dark);
  transition: box-shadow 0.15s, filter 0.15s;
}

.target-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.15s ease-out, filter 0.15s;
}

.target-photo.hidden,
.photo-placeholder.hidden,
.photo-counter.hidden {
  display: none;
}

.target-photo.photo-swap {
  animation: photo-swap 0.2s ease-out;
}

@keyframes photo-swap {
  0% { transform: scale(1.08) rotate(2deg); filter: brightness(1.5); }
  100% { transform: scale(1) rotate(0); filter: brightness(1); }
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  text-align: center;
  color: var(--text-dim);
  background: var(--bg-dark);
}

.placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.5;
}

.placeholder-text {
  font-size: 0.7rem;
  line-height: 1.6;
}

.placeholder-text code {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.45rem;
  color: var(--neon-blue);
}

.photo-flash {
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.photo-flash.flash-active {
  animation: photo-flash 0.25s ease-out;
}

@keyframes photo-flash {
  0% { opacity: 0.7; }
  100% { opacity: 0; }
}

.combo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.8rem, 3vw, 1.2rem);
  color: white;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9), 0 0 20px var(--neon-yellow);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  background: rgba(0, 0, 0, 0.25);
}

.combo-overlay.overlay-show {
  animation: overlay-pop 0.5s ease-out;
}

@keyframes overlay-pop {
  0% { opacity: 0; transform: scale(0.5); }
  30% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.2); }
}

.photo-counter {
  position: fixed;
  bottom: 5.5rem;
  left: 1rem;
  z-index: 15;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.45rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  background: rgba(10, 10, 18, 0.5);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* Combo efekt seviyeleri — tam ekran */
.photo-frame.fx-hit {
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.8);
  animation: fx-shake-sm 0.2s ease-out;
}

.photo-frame.fx-hit .target-photo {
  filter: brightness(1.3) contrast(1.1);
}

.photo-frame.fx-good {
  box-shadow: inset 0 0 0 5px var(--neon-yellow), inset 0 0 60px rgba(255, 214, 10, 0.3);
  animation: fx-shake-sm 0.25s ease-out;
}

.photo-frame.fx-good .target-photo {
  transform: scale(1.03);
  filter: saturate(1.3);
}

.photo-frame.fx-great {
  box-shadow: inset 0 0 0 6px var(--neon-orange), inset 0 0 80px rgba(255, 149, 0, 0.35);
  animation: fx-punch 0.3s ease-out;
}

.photo-frame.fx-great .target-photo {
  transform: scale(1.05) rotate(-2deg);
  filter: saturate(1.5) hue-rotate(10deg);
}

.photo-frame.fx-excellent {
  box-shadow: inset 0 0 0 8px var(--neon-red), inset 0 0 100px rgba(255, 45, 85, 0.4);
  animation: fx-shake-md 0.35s ease-out;
}

.photo-frame.fx-excellent .target-photo {
  transform: scale(1.08);
  filter: saturate(1.8) contrast(1.2);
}

.photo-frame.fx-amazing {
  box-shadow: inset 0 0 0 8px var(--neon-purple), inset 0 0 120px rgba(191, 90, 242, 0.45);
  animation: fx-glitch 0.4s ease-out;
}

.photo-frame.fx-amazing .target-photo {
  animation: fx-hue-spin 0.4s ease-out;
}

.photo-frame.fx-incredible {
  box-shadow:
    inset 0 0 0 10px var(--neon-yellow),
    inset 0 0 0 14px var(--neon-red),
    inset 0 0 140px rgba(255, 214, 10, 0.35);
  animation: fx-shake-md 0.4s ease-out, fx-rainbow-border 0.6s linear;
}

.photo-frame.fx-incredible .target-photo {
  transform: scale(1.1);
  filter: saturate(2) contrast(1.3);
}

.photo-frame.fx-unstoppable {
  box-shadow:
    inset 0 0 0 10px var(--neon-yellow),
    inset 0 0 80px rgba(255, 214, 10, 0.5),
    inset 0 0 160px rgba(255, 45, 85, 0.3);
  animation: fx-shake-lg 0.5s ease-out, fx-pulse-glow 0.5s ease-out;
}

.photo-frame.fx-unstoppable .target-photo {
  transform: scale(1.12) rotate(3deg);
  filter: saturate(2.5) brightness(1.2);
}

.photo-frame.fx-godlike {
  box-shadow:
    inset 0 0 0 12px white,
    inset 0 0 100px rgba(191, 90, 242, 0.5),
    inset 0 0 180px rgba(255, 45, 85, 0.4);
  animation: fx-shake-lg 0.55s ease-out, fx-godlike-spin 0.55s ease-out;
}

.photo-frame.fx-godlike .target-photo {
  transform: scale(1.15);
  filter: saturate(3) brightness(1.3) drop-shadow(0 0 8px var(--neon-yellow));
}

.photo-frame.fx-suleyman {
  box-shadow:
    inset 0 0 0 14px var(--neon-red),
    inset 0 0 120px rgba(255, 45, 85, 0.6),
    inset 0 0 200px rgba(255, 149, 0, 0.4);
  animation: fx-shake-lg 0.6s ease-out, fx-suleyman-chaos 0.6s ease-out;
}

.photo-frame.fx-suleyman .target-photo {
  animation: fx-suleyman-photo 0.6s ease-out;
}

@keyframes fx-shake-sm {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px); }
  75% { transform: translate(2px, -1px); }
}

@keyframes fx-shake-md {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  20% { transform: translate(-5px, 3px) rotate(-1deg); }
  40% { transform: translate(5px, -3px) rotate(1deg); }
  60% { transform: translate(-3px, -2px) rotate(-0.5deg); }
  80% { transform: translate(3px, 2px) rotate(0.5deg); }
}

@keyframes fx-shake-lg {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  10% { transform: translate(-8px, 4px) rotate(-2deg); }
  30% { transform: translate(8px, -4px) rotate(2deg); }
  50% { transform: translate(-6px, -3px) rotate(-1deg); }
  70% { transform: translate(6px, 3px) rotate(1deg); }
  90% { transform: translate(-3px, 1px) rotate(0); }
}

@keyframes fx-punch {
  0% { transform: scale(1); }
  40% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

@keyframes fx-glitch {
  0%, 100% { transform: translate(0); filter: hue-rotate(0); }
  20% { transform: translate(-4px, 0); filter: hue-rotate(90deg); }
  40% { transform: translate(4px, 0); filter: hue-rotate(180deg); }
  60% { transform: translate(-2px, 2px); filter: hue-rotate(270deg); }
  80% { transform: translate(2px, -2px); filter: hue-rotate(360deg); }
}

@keyframes fx-hue-spin {
  0% { filter: hue-rotate(0deg) saturate(1.8); }
  100% { filter: hue-rotate(180deg) saturate(2); }
}

@keyframes fx-rainbow-border {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

@keyframes fx-pulse-glow {
  0%, 100% { box-shadow: inset 0 0 0 10px var(--neon-yellow), inset 0 0 80px rgba(255, 214, 10, 0.5); }
  50% { box-shadow: inset 0 0 0 12px var(--neon-red), inset 0 0 120px rgba(255, 45, 85, 0.6); }
}

@keyframes fx-godlike-spin {
  0% { transform: rotate(0) scale(1); }
  50% { transform: rotate(1deg) scale(1.02); }
  100% { transform: rotate(0) scale(1); }
}

@keyframes fx-suleyman-chaos {
  0% { transform: scale(1) rotate(0); }
  25% { transform: scale(1.05) rotate(-3deg); }
  50% { transform: scale(0.98) rotate(3deg); }
  75% { transform: scale(1.08) rotate(-2deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes fx-suleyman-photo {
  0% { transform: scale(1) rotate(0); filter: saturate(1); }
  25% { transform: scale(1.2) rotate(-5deg); filter: saturate(3) hue-rotate(45deg); }
  50% { transform: scale(0.9) rotate(5deg); filter: saturate(2) hue-rotate(-45deg); }
  75% { transform: scale(1.15) rotate(-3deg); filter: saturate(4) brightness(1.4); }
  100% { transform: scale(1) rotate(0); filter: saturate(1); }
}

body.mega-flash::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: 998;
  animation: mega-flash 0.3s ease-out;
}

@keyframes mega-flash {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* ===== ARENA (buton overlay) ===== */
.arena {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  min-height: 0;
  padding-bottom: 1.5rem;
  pointer-events: none;
}

.arena .smash-btn {
  pointer-events: auto;
}

.smash-btn {
  position: relative;
  width: clamp(130px, 30vw, 170px);
  height: clamp(130px, 30vw, 170px);
  border-radius: 50%;
  border: 5px solid var(--neon-red);
  background: radial-gradient(circle at 35% 35%, #ff4466 0%, #cc0033 50%, #880022 100%);
  cursor: pointer;
  box-shadow:
    0 0 40px rgba(255, 45, 85, 0.5),
    0 8px 32px rgba(0, 0, 0, 0.6),
    inset 0 -8px 20px rgba(0, 0, 0, 0.4),
    inset 0 8px 20px rgba(255, 255, 255, 0.1);
  transition: transform 0.08s, box-shadow 0.08s;
  z-index: 20;
}

.smash-btn:hover {
  filter: brightness(1.15);
  box-shadow:
    0 0 60px rgba(255, 45, 85, 0.7),
    0 8px 32px rgba(0, 0, 0, 0.6),
    inset 0 -8px 20px rgba(0, 0, 0, 0.4),
    inset 0 8px 20px rgba(255, 255, 255, 0.15);
}

.smash-btn:active,
.smash-btn.pressed {
  transform: scale(0.92);
  box-shadow:
    0 0 20px rgba(255, 45, 85, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.5),
    inset 0 4px 15px rgba(0, 0, 0, 0.5);
}

.smash-btn.shake {
  animation: btn-shake 0.15s ease-out;
}

@keyframes btn-shake {
  0%, 100% { transform: translate(0, 0) scale(0.92); }
  25% { transform: translate(-4px, 2px) scale(0.92); }
  75% { transform: translate(4px, -2px) scale(0.92); }
}

.smash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.smash-icon {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.smash-label {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.7rem, 2.5vw, 0.9rem);
  color: white;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

/* Screen shake */
body.screen-shake {
  animation: screen-shake 0.2s ease-out;
}

@keyframes screen-shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3px, 2px); }
  40% { transform: translate(3px, -2px); }
  60% { transform: translate(-2px, -1px); }
  80% { transform: translate(2px, 1px); }
}

/* ===== LEADERBOARD ===== */
.leaderboard-panel {
  background: rgba(18, 18, 31, 0.88);
  backdrop-filter: blur(10px);
  border-top: 2px solid rgba(42, 42, 68, 0.6);
  padding: 1rem 1.5rem;
  max-height: 160px;
  overflow-y: auto;
}

.panel-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.65rem;
  color: var(--neon-yellow);
  margin-bottom: 0.75rem;
  text-align: center;
}

.leaderboard-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.leaderboard-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--border);
  font-size: 0.8rem;
  transition: background 0.2s;
}

.leaderboard-list li.current-player {
  background: rgba(0, 212, 255, 0.08);
  border-left-color: var(--neon-blue);
}

.leaderboard-list li .rank {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.55rem;
  color: var(--text-dim);
  min-width: 2rem;
}

.leaderboard-list li .rank.gold { color: #ffd700; }
.leaderboard-list li .rank.silver { color: #c0c0c0; }
.leaderboard-list li .rank.bronze { color: #cd7f32; }

.leaderboard-list li .name {
  flex: 1;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-list li .pts {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.6rem;
  color: var(--neon-yellow);
}

.leaderboard-empty {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.75rem;
  padding: 0.5rem;
}

/* ===== FOOTER ===== */
.game-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(10, 10, 18, 0.88);
  backdrop-filter: blur(8px);
}

.ghost-btn {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.5rem;
  padding: 0.6rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.ghost-btn:hover {
  color: var(--text);
  border-color: var(--text-dim);
}

/* Score pop animation */
.score-pop {
  animation: score-pop 0.2s ease-out;
}

@keyframes score-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ===== EASTER EGG ===== */
.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2000;
  display: none;
}

.confetti-canvas.active {
  display: block;
}

.easter-egg {
  position: fixed;
  inset: 0;
  z-index: 1999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: easter-fade-in 0.4s ease-out;
}

.easter-egg.hidden {
  display: none;
}

@keyframes easter-fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.easter-egg-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
}

.easter-egg-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  max-width: 90vw;
  animation: easter-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes easter-pop {
  0% { transform: scale(0.3) rotate(-10deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.easter-egg-img {
  max-width: min(420px, 85vw);
  max-height: 55vh;
  border-radius: 12px;
  border: 4px solid var(--neon-yellow);
  box-shadow:
    0 0 30px rgba(255, 214, 10, 0.6),
    0 0 60px rgba(255, 45, 85, 0.4);
  object-fit: contain;
}

.easter-egg-title {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.7rem, 3vw, 1rem);
  color: var(--neon-yellow);
  text-shadow: var(--glow-yellow);
  text-align: center;
}

.easter-egg-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
}

.easter-egg-close {
  margin-top: 0.5rem;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.55rem;
  padding: 0.8rem 1.2rem;
  background: var(--neon-red);
  border: none;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 0 #990022;
  transition: transform 0.1s;
}

.easter-egg-close:hover {
  filter: brightness(1.1);
}

.easter-egg-close:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #990022;
}

body.easter-egg-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 600px) {
  .hud {
    padding: 0.75rem 1rem;
  }

  .multiplier-display {
    right: 1rem;
    top: 5px;
  }

  .leaderboard-panel {
    max-height: 120px;
  }

  .photo-counter {
    bottom: 5rem;
    left: 0.75rem;
  }

  .arena {
    padding-bottom: 1rem;
  }
}
