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

body {
  font-family: 'Bricolage Grotesque', sans-serif;
  background: linear-gradient(135deg, #ff6b8a 0%, #8b5cf6 50%, #3b82f6 100%);
  min-height: 100vh;
  color: #fff;
  overflow-x: hidden;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  text-align: center;
  padding: 30px 0;
  position: relative;
}

.sparkle-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: sparkle-float 3s infinite ease-in-out;
}

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

.title {
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.3s ease;
  user-select: none;
}

.title:hover {
  transform: scale(1.02);
}

.subtitle {
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 300;
  margin-top: 10px;
  opacity: 0.9;
}

/* Main Content */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
  flex: 1;
}

/* Input Section */
.input-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.notepad {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 25px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

textarea {
  width: 100%;
  height: 100px;
  padding: 20px;
  font-size: 1.1rem;
  font-family: 'Space Grotesk', sans-serif;
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a2e;
  resize: none;
  outline: none;
  transition: box-shadow 0.3s ease;
}

textarea:focus {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

textarea::placeholder {
  color: #888;
  font-style: italic;
}

.button-row {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn {
  flex: 1;
  min-width: 150px;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 54px;
}

.btn-primary {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #1a1a2e;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

.btn-primary.pulse {
  animation: btn-pulse 0.5s ease;
}

@keyframes btn-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* Game Types */
.game-types {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.type-btn {
  width: 60px;
  height: 60px;
  font-size: 1.8rem;
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 3px solid transparent;
}

.type-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.type-btn.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: #FFD700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* Game Section */
.game-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.canvas-wrapper {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 24px;
  padding: 10px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.3);
  border: 3px solid rgba(255, 255, 255, 0.1);
}

canvas {
  display: block;
  border-radius: 16px;
  max-width: 100%;
  touch-action: none;
}

.score-display {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.instructions {
  background: rgba(255, 255, 255, 0.15);
  padding: 12px 24px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

.instruction-text {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Social Proof */
.social-proof {
  text-align: center;
  padding: 25px 0;
}

.ticker-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.ticker {
  display: flex;
  gap: 30px;
  animation: ticker-scroll 20s linear infinite;
  width: max-content;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  white-space: nowrap;
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.8;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.social-text {
  margin-top: 15px;
  font-weight: 500;
  opacity: 0.9;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 0;
  margin-top: auto;
}

.strawberry-animation {
  font-size: 2rem;
  animation: bounce 2s infinite;
  display: inline-block;
  margin-bottom: 10px;
}

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

.footer p {
  margin: 8px 0;
  font-size: 0.95rem;
}

.footer a {
  color: #FFD700;
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.3s ease;
}

.footer a:hover {
  opacity: 0.8;
}

.cta {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Easter Eggs */
.rainbow-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(45deg, 
    rgba(255,0,0,0.2), 
    rgba(255,165,0,0.2), 
    rgba(255,255,0,0.2), 
    rgba(0,128,0,0.2), 
    rgba(0,0,255,0.2), 
    rgba(128,0,128,0.2)
  );
  background-size: 400% 400%;
  animation: rainbow-shift 2s ease infinite;
  transition: opacity 0.5s ease;
  z-index: 1000;
}

.rainbow-overlay.active {
  opacity: 1;
}

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

.easter-egg-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: #FFD700;
  color: #1a1a2e;
  padding: 30px 50px;
  border-radius: 20px;
  font-size: 2rem;
  font-weight: 800;
  z-index: 2000;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.easter-egg-popup.show {
  transform: translate(-50%, -50%) scale(1);
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .container {
    padding: 15px;
  }
  
  .header {
    padding: 20px 0;
  }
  
  .notepad {
    padding: 15px;
  }
  
  textarea {
    height: 80px;
    padding: 15px;
    font-size: 1rem;
  }
  
  .button-row {
    flex-direction: column;
  }
  
  .btn {
    min-width: 100%;
  }
  
  .type-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .score-display {
    font-size: 0.9rem;
    top: 15px;
    left: 15px;
    right: 15px;
  }
}