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

body {
  font-family: 'Fredoka', sans-serif;
  background: linear-gradient(135deg, #0a4d3c 0%, #1a0033 100%);
  color: #000;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* SNOWFLAKES */
.snowflake {
  position: fixed;
  top: -20px;
  font-size: 24px;
  color: #fff;
  animation: fall linear infinite;
  z-index: 0;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes fall {
  to {
    transform: translateY(100vh) rotate(360deg);
  }
}

/* HEADER */
.header {
  background: #FF0000;
  border: 6px solid #000;
  padding: 40px 20px;
  margin-bottom: 30px;
  box-shadow: 12px 12px 0px #000;
  transform: rotate(-1deg);
  text-align: center;
}

.title {
  font-family: 'Black Ops One', cursive;
  font-size: clamp(24px, 6vw, 72px);
  color: #FFFF00;
  text-shadow: 
    4px 4px 0px #000,
    -2px -2px 0px #00FF00;
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.subtitle {
  font-size: clamp(16px, 3vw, 32px);
  color: #fff;
  font-weight: 900;
  text-shadow: 3px 3px 0px #000;
}

/* PROGRESS */
.progress-container {
  background: #FFFF00;
  border: 5px solid #000;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 8px 8px 0px #FF69B4;
  transform: rotate(0.5deg);
}

.progress-label {
  font-size: 24px;
  font-weight: 900;
  color: #000;
  text-align: center;
  margin-bottom: 15px;
}

.progress-bar {
  height: 40px;
  background: #fff;
  border: 4px solid #000;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #00FF00;
  border-right: 4px solid #000;
  transition: width 0.5s ease;
}

/* CALENDAR GRID */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .calendar-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

/* CALENDAR BOX */
.calendar-box {
  aspect-ratio: 1;
  border: 5px solid #000;
  font-size: 48px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 8px 8px 0px #000;
  cursor: pointer;
}

.calendar-box:hover:not(.locked) {
  transform: rotate(0deg) scale(1.05) !important;
  box-shadow: 12px 12px 0px #000;
}

.calendar-box.current {
  animation: pulse 2s infinite;
  box-shadow: 
    8px 8px 0px #000,
    0 0 20px rgba(255, 255, 0, 0.8);
}

.calendar-box.opened {
  opacity: 0.7;
}

.calendar-box.locked {
  opacity: 0.5;
  filter: grayscale(50%);
}

.day-number {
  position: relative;
  z-index: 2;
  color: #000;
  text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
}

.lock-icon,
.check-icon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 24px;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 4px solid #FFFF00;
  border-radius: 0;
  animation: pulse-ring 2s infinite;
  transform: translate(-50%, -50%);
}

@keyframes pulse {
  0%, 100% { transform: rotate(var(--rotation, 0deg)) scale(1); }
  50% { transform: rotate(var(--rotation, 0deg)) scale(1.05); }
}

@keyframes pulse-ring {
  0% {
    width: 100%;
    height: 100%;
    opacity: 1;
  }
  100% {
    width: 120%;
    height: 120%;
    opacity: 0;
  }
}

/* MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: #FF69B4;
  border: 6px solid #000;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  box-shadow: 16px 16px 0px #000;
  position: relative;
  animation: slideIn 0.4s ease;
  transform: rotate(-1deg);
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #FF0000;
  border: 4px solid #000;
  width: 50px;
  height: 50px;
  font-size: 32px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 4px 4px 0px #000;
  color: #fff;
  transition: all 0.2s ease;
}

.close-button:hover {
  transform: rotate(90deg);
  background: #FFFF00;
  color: #000;
}

.day-badge {
  background: #000;
  color: #FFFF00;
  padding: 10px 20px;
  font-size: 20px;
  font-weight: 900;
  display: inline-block;
  margin-bottom: 20px;
  border: 4px solid #FFFF00;
  transform: rotate(2deg);
}

.modal-title {
  font-family: 'Black Ops One', cursive;
  font-size: 36px;
  color: #fff;
  text-shadow: 4px 4px 0px #000;
  margin-bottom: 20px;
}

.modal-text {
  background: #fff;
  border: 4px solid #000;
  padding: 25px;
  font-size: 18px;
  line-height: 1.6;
  color: #000;
  white-space: pre-wrap;
  margin-bottom: 20px;
}

.content-type {
  background: #00FF00;
  color: #000;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 900;
  display: inline-block;
  border: 3px solid #000;
  box-shadow: 4px 4px 0px #000;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -20px;
  animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
  to {
    transform: translateY(120vh) rotate(720deg);
    opacity: 0;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    transform: rotate(-1deg) translateY(-50px);
    opacity: 0;
  }
  to {
    transform: rotate(-1deg) translateY(0);
    opacity: 1;
  }
}

/* FOOTER */
.footer {
  background: #0000FF;
  border: 5px solid #000;
  padding: 30px;
  text-align: center;
  box-shadow: 10px 10px 0px #FF0000;
  transform: rotate(1deg);
  margin-top: 40px;
}

.footer p {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  margin: 10px 0;
}

.footer-link {
  color: #FFFF00;
  text-decoration: none;
  border-bottom: 4px solid #FFFF00;
  transition: all 0.2s ease;
}

.footer-link:hover {
  background: #FFFF00;
  color: #000;
  padding: 2px 8px;
}

.footer-tagline {
  font-size: 24px;
  color: #00FF00;
  text-shadow: 3px 3px 0px #000;
  margin-top: 15px;
}

@media (max-width: 768px) {
  .header {
    padding: 20px 15px;
    margin-bottom: 20px;
  }
  
  .modal-content {
    padding: 25px;
  }
  
  .modal-title {
    font-size: 28px;
  }
  
  .modal-text {
    font-size: 16px;
    padding: 20px;
  }
}