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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
  color: #fff;
  line-height: 1.6;
}

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

h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-align: center;
}

p {
  margin-bottom: 15px;
  text-align: center;
}

.photo {
  width: 100%;
  max-width: 400px;
  border-radius: 15px;
  margin: 20px auto;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.btn {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 20px auto;
  padding: 15px 30px;
  background: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

.btn:active {
  transform: translateY(0);
}

input[type="text"] {
  width: 100%;
  max-width: 300px;
  padding: 15px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 1.1rem;
  text-align: center;
  margin: 10px auto;
  display: block;
}

input[type="text"]::placeholder {
  color: rgba(255,255,255,0.5);
}

input[type="text"]:focus {
  outline: none;
  border-color: #e94560;
}

.error {
  color: #ff6b6b;
  text-align: center;
  margin: 10px 0;
}

.success {
  color: #6bff6b;
  text-align: center;
  margin: 10px 0;
}

.hint {
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 15px;
  margin: 20px 0;
  text-align: center;
  border-left: 4px solid #e94560;
}

.emoji {
  font-size: 3rem;
  text-align: center;
  margin: 20px 0;
}

.step-indicator {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* Rebus styles */
.rebus {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
  font-size: 3rem;
}

/* Scratch card */
.scratch-container {
  position: relative;
  width: 300px;
  height: 150px;
  margin: 20px auto;
  border-radius: 15px;
  overflow: hidden;
}

.scratch-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
  font-size: 1.2rem;
  padding: 20px;
  text-align: center;
}

#scratchCanvas {
  position: absolute;
  top: 0;
  left: 0;
  cursor: crosshair;
}

/* Puzzle */
.puzzle-container {
  width: 300px;
  height: 300px;
  margin: 20px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  background: rgba(0,0,0,0.3);
  padding: 3px;
  border-radius: 10px;
}

.puzzle-piece {
  background-size: 300px 300px;
  cursor: pointer;
  transition: transform 0.1s;
  border-radius: 5px;
}

.puzzle-piece:hover {
  transform: scale(1.05);
}

.puzzle-piece.empty {
  background: rgba(255,255,255,0.1);
}

/* Timer */
.timer {
  font-size: 4rem;
  text-align: center;
  font-family: monospace;
  color: #e94560;
  margin: 30px 0;
}

.typewriter {
  font-size: 1.3rem;
  line-height: 1.8;
  text-align: center;
  min-height: 100px;
  padding: 20px;
}

/* Shake instruction */
.shake-instruction {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Final page */
.final-reveal {
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 10px #e94560; }
  to { text-shadow: 0 0 30px #e94560, 0 0 50px #ff6b6b; }
}

.hearts {
  font-size: 2rem;
  animation: float 3s ease-in-out infinite;
}

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

/* Charade */
.charade-line {
  margin: 15px 0;
  padding: 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
}

/* Audio player */
audio {
  width: 100%;
  max-width: 300px;
  margin: 20px auto;
  display: block;
}

/* Mail instruction */
.mail-link {
  color: #e94560;
  font-weight: bold;
  word-break: break-all;
}
