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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0f;
  font-family: 'Courier New', monospace;
  overflow: hidden;
  color: #e0e0e0;
}

.container {
  text-align: center;
  user-select: none;
}

/* Crab avatar */
.crab-wrapper {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

.crab-wrapper:hover {
  transform: scale(1.08);
}

.crab-wrapper:active {
  transform: scale(0.95);
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: drop-shadow(0 0 20px rgba(232, 65, 60, 0.3));
  object-fit: cover;
}

/* Title */
.title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f0f0f0;
}

.dot {
  color: #e8413c;
}

.tagline {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: #666;
  letter-spacing: 0.15em;
  text-transform: lowercase;
}

/* Float animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Click counter feedback */
.crab-wrapper.clicked {
  animation: none;
  transform: rotate(10deg) scale(1.1);
  transition: transform 0.15s;
}

/* Sweat mode — getting nervous */
.crab-wrapper.sweating .avatar {
  filter: drop-shadow(0 0 25px rgba(232, 65, 60, 0.6));
}

/* ====== BATH EASTER EGG ====== */

.bath-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s, background 0.8s;
  z-index: 100;
}

.bath-overlay.active {
  opacity: 1;
  pointer-events: all;
  background: rgba(0, 0, 0, 0.92);
}

.bath-scene {
  text-align: center;
  position: relative;
}

.bath-tub {
  width: 220px;
  height: 120px;
  background: #ddd;
  border-radius: 0 0 50% 50%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border: 4px solid #bbb;
  border-top: none;
}

.water {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 85%;
  background: linear-gradient(180deg, #5bc0eb 0%, #3a9bc5 100%);
  animation: water-wave 2s ease-in-out infinite;
}

.bath-crab {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  z-index: 2;
  animation: bath-bobble 1.5s ease-in-out infinite;
}

/* Steam */
.steam {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.5);
  position: absolute;
  animation: steam-rise 2s ease-out infinite;
}

.steam-1 { left: 30%; top: -20px; animation-delay: 0s; }
.steam-2 { left: 50%; top: -25px; animation-delay: 0.6s; }
.steam-3 { left: 70%; top: -18px; animation-delay: 1.2s; }

.homer-quote {
  margin-top: 2rem;
  font-size: 1.3rem;
  color: #e8413c;
  font-style: italic;
  animation: fade-in 1s 0.5s both;
}

.homer-quote-2 {
  margin-top: 0.8rem;
  font-size: 1rem;
  color: #999;
  font-style: italic;
  animation: fade-in 1s 2s both;
}

.close-bath {
  margin-top: 2rem;
  background: none;
  border: 1px solid #555;
  color: #999;
  padding: 0.5rem 1.2rem;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  animation: fade-in 1s 3s both;
}

.close-bath:hover {
  border-color: #e8413c;
  color: #e8413c;
}

/* Konami hint */
.konami-hint {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 0.65rem;
  color: #1a1a1a;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.1em;
  transition: color 0.3s;
  cursor: default;
}

.konami-hint:hover {
  color: #333;
}

/* Animations */
@keyframes steam-rise {
  0% { transform: translateY(0) scale(1); opacity: 0.6; }
  100% { transform: translateY(-50px) scale(1.5); opacity: 0; }
}

@keyframes bath-bobble {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-5deg); }
  50% { transform: translateX(-50%) translateY(-5px) rotate(5deg); }
}

@keyframes water-wave {
  0%, 100% { height: 85%; }
  50% { height: 88%; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Temperature text */
.temp-indicator {
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: #e8413c;
  white-space: nowrap;
  animation: fade-in 0.3s both;
}

/* Responsive */
@media (max-width: 480px) {
  .crab-wrapper {
    width: 140px;
    height: 140px;
  }
  .title {
    font-size: 2rem;
  }
  .bath-tub {
    width: 180px;
    height: 100px;
  }
}
