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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #1a1a2e;
  color: #eee;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.8);
  text-align: center;
  z-index: 100;
}

h1 {
  font-size: 1.5rem;
  color: #fff;
}

main {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#camera-container {
  position: relative;
  width: 640px;
  max-width: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

video {
  width: 100%;
  display: block;
  transform: scaleX(-1); /* Mirror effect */
}

#emoji-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.emoji {
  position: absolute;
  font-size: 4rem;
  transition: opacity 0.3s ease-out;
  opacity: 0;
}

.emoji.visible {
  opacity: 1;
}

.status {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.error {
  color: #ff6b6b;
}

.hidden {
  display: none;
}
