@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Raleway", sans-serif;
  color: #2d3436;
  overflow-x: hidden;
  min-height: 100vh;
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  position: relative;
}

.container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
}
@media (min-width: 768px) {
  .container {
    padding: 2rem 0;
  }
}

.content {
  position: relative;
  z-index: 10;
  width: 95%;
  max-width: 900px;
  text-align: center;
}
@media (min-width: 768px) {
  .content {
    width: 90%;
  }
}

.intro-screen {
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.intro-screen.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.main-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  color: #ff6b9d;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  animation: fadeInDown 1s ease;
  letter-spacing: 1px;
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #c06c84;
  margin-bottom: 3rem;
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease 0.3s backwards;
  line-height: 1.6;
}

.btn-start,
.btn-restart {
  background: linear-gradient(135deg, #ff6b9d, #c06c84);
  color: #ffffff;
  border: none;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-family: "Raleway", sans-serif;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
  animation: fadeInUp 1s ease 0.6s backwards;
  letter-spacing: 0.5px;
}
.btn-start:hover,
.btn-restart:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 107, 157, 0.4);
}
.btn-start:active,
.btn-restart:active {
  transform: translateY(-1px);
}

.btn-restart {
  margin-top: 2rem;
  animation: fadeInUp 1s ease 1.2s backwards;
}

.puzzle-screen {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.puzzle-screen.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}

.puzzle-header {
  margin-bottom: 2rem;
}

.progress-bar {
  width: 100%;
  max-width: 400px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  margin: 0 auto 1rem;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff6b9d, #c06c84);
  border-radius: 10px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

.progress-text {
  font-size: 0.95rem;
  color: #c06c84;
  font-weight: 500;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 1.5rem auto;
  max-width: 1000px;
  perspective: 1000px;
}
@media (min-width: 600px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin: 1.5rem auto;
  }
}
@media (min-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin: 2rem auto;
  }
}

.card {
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}
.card.flipped {
  transform: rotateY(180deg);
}
.card.flipped .card-front {
  pointer-events: none;
}
.card.flipped .card-back {
  pointer-events: all;
}
.card:hover:not(.flipped) .card-front {
  transform: translateZ(0) scale(1.05);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card-front {
  background: linear-gradient(135deg, #ff6b9d, #c06c84);
  color: white;
  font-size: 2rem;
}
.card-front .card-icon {
  font-size: 2.5rem;
  animation: pulse 2s ease infinite;
}

.card-back {
  background: white;
  transform: rotateY(180deg);
  pointer-events: none;
}
.card-back .card-word {
  font-family: "Raleway", sans-serif;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 600;
  color: #2d3436;
  text-align: center;
  line-height: 1.4;
  word-break: break-word;
}

.hint {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(192, 108, 132, 0.8);
  font-style: italic;
  animation: fadeIn 1s ease 1s backwards;
}

.final-screen {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.final-screen.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}

.message-reveal {
  max-width: 700px;
  margin: 0 auto;
}

.heart-pulse {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: heartbeat 1.5s ease infinite;
  display: inline-block;
}

.final-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #ff6b9d;
  margin-bottom: 2rem;
  animation: fadeInDown 1s ease;
  line-height: 1.3;
}

.final-message {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  line-height: 1.9;
  color: #2d3436;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.3s backwards;
}
.final-message p {
  margin-bottom: 1rem;
}
.final-message p:last-child {
  margin-bottom: 0;
}

.signature {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  color: #c06c84;
  font-style: italic;
  animation: fadeInUp 1s ease 0.6s backwards;
}

.signature--mini {
  font-size: 0.8rem;
  display: block;
  margin-top: 0.5rem;
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 107, 157, 0.3);
  border-radius: 50%;
  animation: float linear infinite;
}
.particle.heart-particle {
  width: 8px;
  height: 8px;
  background: transparent;
}
.particle.heart-particle::before {
  content: "❤";
  position: absolute;
  font-size: 12px;
  color: rgba(255, 107, 157, 0.4);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}
@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  10%, 30% {
    transform: scale(1.15);
  }
  20%, 40% {
    transform: scale(1);
  }
}
@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}
@media (max-width: 600px) {
  .puzzle-header {
    margin-bottom: 1rem;
  }
  .progress-text {
    font-size: 0.85rem;
  }
  .card-front .card-icon {
    font-size: 1.8rem;
  }
  .card-front,
  .card-back {
    padding: 0.5rem;
    border-radius: 12px;
  }
  .card-back .card-word {
    font-size: clamp(0.75rem, 3vw, 0.9rem);
    line-height: 1.3;
  }
  .hint {
    font-size: 0.8rem;
    margin-top: 1rem;
  }
  .main-title {
    margin-bottom: 1rem;
  }
  .subtitle {
    margin-bottom: 2rem;
  }
}
@media (max-width: 380px) {
  .cards-grid {
    gap: 0.5rem;
  }
  .card-back .card-word {
    font-size: 0.7rem;
  }
  .progress-bar {
    height: 6px;
  }
}
@media (min-width: 900px) {
  .card-front .card-icon {
    font-size: 2.5rem;
  }
}
@media (min-width: 1200px) {
  .cards-grid {
    gap: 1.2rem;
  }
}

/*# sourceMappingURL=main.css.map */
