@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap");

:root {
  --primary-color: #a876aa;
  --gradient-start: #cbd5ff;
  --gradient-end: #902680;
}

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

body {
  font-family: "Montserrat", sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 30px;
}

.header h1 {
  font-size: 60px;
  margin-bottom: 10px;
  animation: pulse 2s ease infinite;
}

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

.header h2 {
  font-size: 28px;
  color: var(--primary-color);
  font-weight: 700;
}

/* Contador de días */
.days-counter {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.counter-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.counter-number {
  color: white;
  font-size: 48px;
  font-weight: 700;
  margin: 10px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.counter-date {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  margin-top: 10px;
}

/* Contenedor de botones */
.buttons-container {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.btn-nav {
  flex: 1;
  display: block;
  color: white;
  text-decoration: none;
  padding: 18px 15px;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-felicitacion {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 5px 20px rgba(245, 87, 108, 0.3);
}

.btn-wordle {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.btn-nav:hover,
.btn-nav:active {
  transform: translateY(-2px);
}

.btn-felicitacion:hover,
.btn-felicitacion:active {
  box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

.btn-wordle:hover,
.btn-wordle:active {
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Sección de rasca y gana */
.scratch-home-section {
  text-align: center;
}

.scratch-home-section h3 {
  color: #333;
  font-size: 22px;
  margin-bottom: 8px;
}

.scratch-subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.scratch-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  margin: 0 auto 15px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.prize-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  padding: 20px;
}

.message-text {
  color: #333;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  padding: 10px;
  max-height: 100%;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

#scratchCanvas {
  position: absolute;
  top: 0;
  left: 0;
  cursor: crosshair;
  width: 100%;
  height: 100%;
}

.progress-container {
  margin-top: 15px;
}

.progress-bar {
  width: 100%;
  height: 25px;
  background: #e0e0e0;
  border-radius: 15px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  width: 0%;
  transition: width 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 20px;
    border-radius: 20px;
  }

  .header h1 {
    font-size: 50px;
  }

  .header h2 {
    font-size: 24px;
  }

  .counter-number {
    font-size: 40px;
  }

  .btn-nav {
    font-size: 14px;
    padding: 15px 10px;
    align-items: center;
    display: flex;
    justify-content: center;
  }

  .scratch-home-section h3 {
    font-size: 20px;
  }

  .message-text {
    font-size: 14px;
  }
}
