
:root {
  --primary: #ff6f91;
  --secondary: #e63946;
  --bg-start: #f6d365;
  --bg-end: #fda085;
  --card-bg: #ffffff;
  --text-color: #333333;
  --error-color: #e74c3c;
}

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

body {
  height: 100vh;
  background: #0000;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
}

.card {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-inner {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  width: 320px;
  text-align: center;
}

.card h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-group input {
  width: 100%;
  padding: 0.75rem;
  padding-left: 2.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.input-group .icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #aaa;
}

button {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

#error-msg {
  margin-top: 1rem;
  color: var(--error-color);
  font-size: 0.9rem;
}

#sahne {
  display: none;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background: white;
}

.character {
  position: absolute;
  bottom: 40px;
  width: 20vw;
  max-width: 120px;
  height: auto;
}

.boy {
  left: -150px;
}

.girl {
  right: -150px;
}

.character.move {
  animation-duration: 4s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-in-out;
}

.boy.move {
  animation-name: moveBoy;
}

.girl.move {
  animation-name: moveGirl;
}

@keyframes moveBoy {
  from { left: -150px; }
  to { left: 42%; }
}

@keyframes moveGirl {
  from { right: -150px; }
  to { right: 42%; }
}

@media (max-width: 600px) {
  @keyframes moveBoy {
    to {
      left: 30%;
    }
  }

  @keyframes moveGirl {
    to {
      right: 30%;
    }
  }
}

.message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  font-size: 6vw;
  font-weight: bold;
  color: #e91e63;
  opacity: 0;
  z-index: 5;
  animation: fadeInText 2s ease forwards;
  animation-delay: 7s;
  text-align: center;
}

@keyframes fadeInText {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

#explosionVideo {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 20;
  display: none;
  filter: blur(0.6px) brightness(1.1) contrast(1.1);
}

#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 15;
  display: none;
}

@media (max-width: 600px) {
  .character {
    width: 25vw;
  }

  .message {
    font-size: 8vw;
  }
}
