@font-face {
  font-family: 'Lemon Days';
  src: url('Lemon Days.ttf') format('truetype');
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  background: #f0f2f5;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cta {
  text-align: center;
  font-size: 3.5rem;
  font-family: 'Lemon Days', system-ui;
  color: #1a73e8;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  margin: 1rem auto;
  line-height: 1.2;
  position: relative;
  z-index: 2;
}

.avatar-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  margin: 0;
  padding: 0;
}

.game-mode .avatar-container {
  display: block;
  padding: 0;
  margin: 0;
}

.game-avatar {
  display: inline-block;
  position: absolute;
  text-decoration: none;
  line-height: 0;
}

.floating-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  animation: spin 10s linear infinite backwards;
  animation-delay: -0.3s;
  margin: 2px;
}

.floating-avatar:hover {
  transform: scale(1.2);
  z-index: 100;
  animation-play-state: paused;
}

.thumbnail-mode .avatar-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.thumbnail-mode .floating-avatar {
  position: absolute;
}

.thumbnail-mode .cta {
  font-size: 5rem;
  position: relative;
  z-index: 10;
}

.controls-container {
  position: fixed;
  bottom: 20px;
  right: 230px;
  left: auto;
  transform: none;
  background: rgba(255,255,255,0.9);
  padding: 15px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.audio-controls {
  display: flex;
  gap: 10px;
}

.control-button {
  padding: 10px 20px;
  font-size: 1.2rem;
  border: none;
  border-radius: 25px;
  background: #1a73e8;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.control-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.control-button:active {
  transform: translateY(0);
}

.small-button {
  font-size: 1rem;
  padding: 8px 16px;
}

.bounce-arrow {
  position: fixed;
  top: 20px;
  right: 95px;
  transform: translateX(50%);
  animation: bounce 1s ease-in-out infinite;
  width: 30px;
  height: 30px;
  z-index: 2;
}

main {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.command-list {
  background: rgba(255, 255, 255, 0.8);
  padding: 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  margin-top: 10px;
  display: none;
}

.command-list h2 {
  margin: 0 0 0.5rem 0;
}

.command-list ul {
  list-style: disc inside;
  padding: 0;
  margin: 0;
}

.emoji-command-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-bottom: 10px;
}

.emoji-command-list button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.emoji-command-list button:hover {
  transform: scale(1.2);
}

.add-person {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 500px;
}

.add-person input[type="text"] {
  flex: 1;
  padding: 5px;
  font-size: 1rem;
}

.comment-form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 500px;
}

.comment-form input[type="text"] {
  flex: 1;
  padding: 5px;
  font-size: 1rem;
}

.comment-form button {
  padding: 5px 10px;
  font-size: 1rem;
}

.timer {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(26, 115, 232, 0.9);
  color: white;
  padding: 15px 25px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.recording-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 0, 0, 0.1);
  pointer-events: all;
  z-index: 999;
  cursor: crosshair;
}

.path-point {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(26, 115, 232, 0.5);
  border: 2px solid rgba(26, 115, 232, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  pointer-events: none;
}

.speech-bubble {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
  border-radius: 8px;
  max-width: 200px;
  word-wrap: break-word;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 100;
  pointer-events: none;
  line-height: 1.4;
  font-size: 14px;
}

.speech-bubble::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent rgba(255, 255, 255, 0.9) transparent transparent;
}

.speech-bubble.left-side::before {
  left: auto;
  right: -10px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
}

.leaderboard {
  position: fixed;
  bottom: 140px;
  right: 20px;
  left: auto;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  max-width: 200px;
  z-index: 100;
  font-size: 0.9rem;
}

.leaderboard h2 {
  margin: 0 0 5px 0;
  font-size: 1rem;
  color: #1a73e8;
  text-align: center;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.2s ease;
}

.leaderboard-item:hover {
  background: rgba(26, 115, 232, 0.1);
}

.leaderboard-rank {
  font-weight: bold;
  color: #1a73e8;
  min-width: 15px;
  text-align: center;
  font-size: 0.8rem;
}

.leaderboard-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.leaderboard-username {
  flex: 1;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-count {
  font-size: 0.7rem;
  color: #666;
  min-width: 30px;
  text-align: right;
}

.leaderboard-link {
  text-decoration: none;
  color: inherit;
}

/* Add new animations for the new commands */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinning {
  animation: spin 2s linear infinite;
}

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

.waving {
  animation: wave 1s ease-in-out infinite;
}

@keyframes drift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(30px, 30px); }
  50% { transform: translate(0, 60px); }
  75% { transform: translate(-30px, 30px); }
  100% { transform: translate(0, 0); }
}

.drifting {
  animation: drift 4s ease-in-out infinite;
}

@keyframes fade {
  0% { opacity: 1; }
  50% { opacity: 0.2; }
  100% { opacity: 1; }
}

.fading {
  animation: fade 2s ease-in-out infinite;
}

/* CSS Animations */
@keyframes bounce {
  0%, 100% { transform: translateX(50%) translateY(0); }
  50% { transform: translateX(50%) translateY(-10px); }
}

@keyframes rotateCommand {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes wiggle {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}

@keyframes colorCycle {
  0%   { filter: hue-rotate(0deg); }
  50%  { filter: hue-rotate(90deg); }
  100% { filter: hue-rotate(0deg); }
}

.color-toggle {
  animation: colorCycle 1s linear infinite;
}

.wiggle-toggle {
  animation: wiggle 0.5s ease-in-out infinite;
}

@keyframes shake {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-5px, 0); }
  50% { transform: translate(5px, 0); }
  75% { transform: translate(-5px, 0); }
  100% { transform: translate(0, 0); }
}

.shake-toggle {
  animation: shake 0.5s ease infinite;
}

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

.pulse-toggle {
  animation: pulse 1s ease-in-out infinite;
}

@keyframes flash {
  0% { filter: brightness(1); }
  50% { filter: brightness(2); }
  100% { filter: brightness(1); }
}

.flash-toggle {
  animation: flash 0.5s ease-in-out infinite;
}

.effect-overlay {
  font-family: system-ui;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}

.profile-link {
  position: absolute;
  bottom: 5px;
  right: 5px;
  font-size: 12px;
  color: white;
  text-decoration: none;
  pointer-events: all;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.profile-link:hover {
  opacity: 1;
}

.rainbow-tint {
  animation: rainbowTint 2s linear infinite;
}

@keyframes rainbowTint {
  0% { filter: sepia(100%) saturate(1000%) hue-rotate(0deg); }
  100% { filter: sepia(100%) saturate(1000%) hue-rotate(360deg); }
}

/* Add new effects */
.golden-glow {
  box-shadow: 0 0 20px 10px rgba(255, 215, 0, 0.5);
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0% { box-shadow: 0 0 20px 10px rgba(255, 215, 0, 0.3); }
  50% { box-shadow: 0 0 30px 15px rgba(255, 215, 0, 0.5); }
  100% { box-shadow: 0 0 20px 10px rgba(255, 215, 0, 0.3); }
}

.heart {
  position: absolute;
  pointer-events: none;
  color: red;
  font-size: 20px;
  animation: float 1s ease-out forwards;
  z-index: 1;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), -50px) rotate(var(--rot));
    opacity: 0;
  }
}

.liker-avatar {
  position: relative;
}

.liker-avatar::after {
  content: '❤️';
  position: absolute;
  bottom: -5px;
  right: -5px;
  font-size: 12px;
  filter: drop-shadow(0 0 2px white);
}

.creator-preview {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 200px;
  height: 100px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 99;
  background: white;
}

.creator-preview iframe {
  width: 800px;
  height: 800px;
  border: none;
  transform: scale(0.4);
  transform-origin: top right;
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
  overflow: hidden;
}

.creator-preview-arrow {
  position: fixed;
  bottom: 60px;
  right: 230px;
  color: gold;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  z-index: 99;
  pointer-events: none;
  text-shadow: 1px 1px 0 #000, 
              -1px 1px 0 #000,  
               1px -1px 0 #000, 
              -1px -1px 0 #000;
  animation: attention-pulse 2s ease-in-out infinite;
}

.creator-preview-arrow .text {
  color: gold;
  font-weight: bold;
  white-space: nowrap;
  text-shadow: 2px 2px 0 #000,   
              -2px 2px 0 #000,
               2px -2px 0 #000,
              -2px -2px 0 #000,
               1px 1px 0 #000,
              -1px 1px 0 #000,
               1px -1px 0 #000,
              -1px -1px 0 #000;
}

.creator-preview-arrow svg {
  width: 24px;
  height: 24px;
  animation: arrow-point 1s ease-in-out infinite;
}

@keyframes attention-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes arrow-point {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
  100% {
    transform: translateX(0);
  }
}