/* Magical Underland Christmas Advent Calendar - Winter Wonderland Theme */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Winter Wonderland Color Palette */
  --ice-blue: #E3F2FD;
  --sky-blue: #90CAF9;
  --deep-blue: #1976D2;
  --royal-blue: #0D47A1;
  --winter-white: #FFFFFF;
  --snow-white: #F8F9FA;
  --silver: #B0BEC5;
  --dark-blue: #0A2540;
  --light-silver: #ECEFF1;
  --sparkle-blue: #64B5F6;
  
  /* Accent colors */
  --mint-green: #4DB6AC;
  --purple-accent: #7E57C2;
  --pink-accent: #EC407A;
  --gold-accent: #FFB74D;
  
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(180deg, #E3F2FD 0%, #BBDEFB 30%, #90CAF9 100%);
  min-height: 100vh;
  color: var(--dark-blue);
  position: relative;
  overflow-x: hidden;
}

/* Snowflake Animation */
.snowflakes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: white;
  font-size: 1.2em;
  opacity: 0.9;
  animation: fall linear infinite;
  text-shadow: 0 0 8px rgba(144, 202, 249, 0.6);
}

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

/* Header */
.header {
  text-align: center;
  padding: 3.5rem 1rem 2rem;
  position: relative;
  z-index: 10;
}

.title {
  font-size: 3.5rem;
  color: var(--deep-blue);
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 0 0 20px rgba(144, 202, 249, 0.5);
  margin-bottom: 0.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from {
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 0 0 20px rgba(144, 202, 249, 0.5);
  }
  to {
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 0 0 30px rgba(100, 181, 246, 0.8);
  }
}

.subtitle {
  font-size: 1.8rem;
  color: var(--royal-blue);
  margin-bottom: 2rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.progress-bar {
  max-width: 600px;
  margin: 1.5rem auto;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 25px;
  padding: 0.3rem;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 15px rgba(25, 118, 210, 0.2);
  position: relative;
}

.progress-bar::after {
  content: '🎄';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  animation: treeWiggle 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes treeWiggle {
  0%, 100% { transform: translateY(-50%) rotate(-5deg); }
  50% { transform: translateY(-50%) rotate(5deg); }
}

.progress-fill {
  height: 42px;
  background: linear-gradient(90deg, var(--deep-blue), var(--sparkle-blue), var(--mint-green) 92%, #D32F2F 100%);
  border-radius: 22px;
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  font-size: 1rem;
  padding: 0 1rem;
  min-width: 42px;
  box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.3);
  position: relative;
}

/* Share Button - Low Profile */
.share-button {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.25);
  color: var(--deep-blue);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  backdrop-filter: blur(10px);
  opacity: 0.8;
}

.share-button:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.02);
}

/* Intro Toggle */
.intro-section {
  max-width: 800px;
  margin: 1.5rem auto 0;
  text-align: center;
}

.intro-toggle {
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--deep-blue);
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.intro-toggle:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.intro-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  margin-top: 1rem;
}

.intro-content.active {
  max-height: 300px;
}

.intro-text {
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  border-radius: 15px;
  color: var(--dark-blue);
  font-size: 1.05rem;
  line-height: 1.7;
  box-shadow: 0 4px 15px rgba(25, 118, 210, 0.2);
}

/* Calendar Grid */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  position: relative;
  z-index: 10;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

/* Gift Box Styling */
.calendar-box {
  aspect-ratio: 1;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  background: linear-gradient(135deg, var(--sparkle-blue) 0%, var(--sky-blue) 100%);
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.3);
  border: 3px solid white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transform-style: preserve-3d;
}

/* Gift ribbon - horizontal */
.calendar-box::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  height: 18%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

/* Gift ribbon - vertical */
.calendar-box::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

/* Gift bow on top */
.calendar-box .day-number::before {
  content: '🎀';
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.5rem;
  z-index: 3;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  animation: bowBounce 2s ease-in-out infinite;
}

@keyframes bowBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

.calendar-box:hover {
  transform: scale(1.1) translateY(-10px) rotateX(10deg);
  box-shadow: 0 15px 35px rgba(25, 118, 210, 0.5);
  border-color: var(--sparkle-blue);
}

/* Gift opening animation */
.calendar-box.opening {
  animation: giftOpen 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes giftOpen {
  0% {
    transform: scale(1) rotateY(0deg);
  }
  30% {
    transform: scale(1.1) rotateY(10deg);
  }
  50% {
    transform: scale(1.2) rotateY(-10deg);
  }
  70% {
    transform: scale(1.3) rotateY(20deg);
  }
  100% {
    transform: scale(1.5) rotateY(0deg);
    opacity: 0;
  }
}

.calendar-box.locked {
  background: linear-gradient(135deg, #CFD8DC 0%, #B0BEC5 100%);
  cursor: not-allowed;
  opacity: 0.7;
  border-color: #ECEFF1;
}

.calendar-box.locked::before,
.calendar-box.locked::after {
  background: linear-gradient(180deg, rgba(236, 239, 241, 0.9) 0%, rgba(236, 239, 241, 0.7) 100%);
}

.calendar-box.locked:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.calendar-box.opened {
  background: linear-gradient(135deg, var(--mint-green) 0%, #26A69A 100%);
  animation: pulseGlow 2.5s ease-in-out infinite;
  border-color: white;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(77, 182, 172, 0.4);
  }
  50% {
    box-shadow: 0 6px 30px rgba(77, 182, 172, 0.7), 0 0 40px rgba(100, 181, 246, 0.5);
  }
}

.day-number {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 2;
  position: relative;
}

.lock-icon {
  position: absolute;
  bottom: 15px;
  right: 15px;
  font-size: 1.8rem;
  color: white;
  opacity: 0.9;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.opened-indicator {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2.2rem;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  background: #4CAF50;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  animation: checkPulse 2s ease-in-out infinite;
}

@keyframes checkPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 37, 64, 0.85);
  z-index: 1000;
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
  backdrop-filter: blur(8px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

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

.modal-content {
  background: white;
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideDown 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  color: var(--dark-blue);
  border: 3px solid var(--sky-blue);
}

@keyframes slideDown {
  from {
    transform: translateY(-100px) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-header {
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--sparkle-blue) 100%);
  padding: 2.5rem;
  text-align: center;
  border-radius: 20px 20px 0 0;
  position: relative;
}

.modal-share-btn {
  background: rgba(25, 118, 210, 0.1);
  border: 1px solid rgba(25, 118, 210, 0.3);
  color: var(--deep-blue);
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 1rem;
  opacity: 0.7;
}

.modal-share-btn:hover {
  opacity: 1;
  background: rgba(25, 118, 210, 0.2);
  transform: scale(1.02);
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-weight: 300;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg) scale(1.1);
}

.modal-day {
  font-size: 2.5rem;
  color: white;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-date {
  font-size: 1.3rem;
  color: white;
  opacity: 0.95;
  font-weight: 400;
}

/* Character Animation */
.character-animation {
  padding: 2.5rem;
  text-align: center;
  background: radial-gradient(circle at center, var(--sky-blue) 0%, var(--sparkle-blue) 35%, var(--purple-accent) 65%, var(--pink-accent) 100%);
  border-bottom: 4px solid var(--deep-blue);
  position: relative;
  overflow: hidden;
}

.character-animation::before {
  content: '✨';
  position: absolute;
  font-size: 2rem;
  animation: sparkle1 2s ease-in-out infinite;
  left: 10%;
  top: 20%;
}

.character-animation::after {
  content: '✨';
  position: absolute;
  font-size: 2rem;
  animation: sparkle2 2.5s ease-in-out infinite;
  right: 10%;
  top: 30%;
}

@keyframes sparkle1 {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes sparkle2 {
  0%, 100% { opacity: 0.4; transform: scale(0.9) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.3) rotate(180deg); }
}

.character {
  font-size: 7rem;
  animation: bounce 1s ease infinite, spin 3s ease-in-out infinite;
  display: inline-block;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

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

@keyframes spin {
  0%, 100% {
    transform: rotate(-15deg) scale(1);
  }
  50% {
    transform: rotate(15deg) scale(1.1);
  }
}

/* Confetti */
.confetti {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--sparkle-blue);
  animation: confetti-fall 3s ease-out forwards;
  pointer-events: none;
}

@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Content Sections */
.modal-body {
  padding: 2rem;
  background: linear-gradient(180deg, white 0%, var(--ice-blue) 100%);
}

.content-section {
  margin-bottom: 2rem;
  padding: 1.75rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 3px 15px rgba(25, 118, 210, 0.15);
  border-left: 6px solid var(--deep-blue);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-section:hover {
  transform: translateX(8px);
  box-shadow: 0 5px 20px rgba(25, 118, 210, 0.25);
}

.content-section:nth-child(even) {
  border-left-color: var(--mint-green);
}

.content-section:nth-child(3n) {
  border-left-color: var(--purple-accent);
}

.section-icon {
  font-size: 2rem;
  margin-right: 0.75rem;
}

.section-title {
  font-size: 1.6rem;
  color: var(--deep-blue);
  margin-bottom: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  letter-spacing: 0.5px;
}

.section-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--dark-blue);
  font-weight: 400;
}

.recipe-content {
  white-space: pre-line;
}

.quote-content {
  font-style: italic;
  font-size: 1.15rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #E1F5FE 0%, #B3E5FC 100%);
  border-radius: 12px;
  border-left: 5px solid var(--sparkle-blue);
  font-weight: 400;
}

.joke-content {
  font-size: 1.1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%);
  border-radius: 12px;
  color: var(--dark-blue);
  font-weight: 500;
  text-align: center;
}

/* Close Button at Bottom */
.modal-footer {
  padding: 1.5rem 2rem 2rem;
  text-align: center;
  background: var(--light-silver);
  border-radius: 0 0 20px 20px;
}

.close-bottom-btn {
  background: linear-gradient(135deg, var(--deep-blue), var(--sparkle-blue));
  color: white;
  border: none;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
  letter-spacing: 0.5px;
}

.close-bottom-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.5);
  background: linear-gradient(135deg, var(--sparkle-blue), var(--deep-blue));
}

/* Special Christmas Day styling */
.calendar-box.day-25 {
  background: linear-gradient(135deg, var(--purple-accent) 0%, var(--pink-accent) 50%, var(--gold-accent) 100%);
  border: 5px solid white;
  animation: christmasGlow 2s ease-in-out infinite;
}

@keyframes christmasGlow {
  0%, 100% {
    box-shadow: 0 0 30px var(--purple-accent);
  }
  50% {
    box-shadow: 0 0 50px var(--pink-accent), 0 0 70px var(--gold-accent);
  }
}

.calendar-box.day-25 .day-number {
  color: white;
  font-size: 3.5rem;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

/* Product Section */
.product-section {
  background: linear-gradient(180deg, white 0%, var(--ice-blue) 100%);
  padding: 4rem 2rem;
  margin-top: 3rem;
  border-top: 3px solid var(--sky-blue);
}

.product-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.product-title {
  font-size: 2.5rem;
  color: var(--deep-blue);
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(144, 202, 249, 0.3);
}

.product-subtitle {
  font-size: 1.3rem;
  color: var(--royal-blue);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.product-content {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.product-image {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
}

.product-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(25, 118, 210, 0.3);
  border: 3px solid white;
}

.product-description {
  flex: 1;
  min-width: 300px;
  text-align: left;
  padding: 1.5rem;
}

.product-description p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--dark-blue);
  margin-bottom: 1.5rem;
}

.product-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--deep-blue), var(--sparkle-blue));
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
  letter-spacing: 0.5px;
}

.product-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(25, 118, 210, 0.5);
  background: linear-gradient(135deg, var(--sparkle-blue), var(--deep-blue));
}

.footer-links {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--sky-blue);
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  color: var(--deep-blue);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--sparkle-blue);
  transform: translateY(-2px);
}

.footer-links img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 768px) {
  .title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.3rem;
  }

  .calendar-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
  }

  .day-number {
    font-size: 2.5rem;
  }

  .modal-content {
    margin: 0.5rem;
    max-height: 95vh;
  }

  .modal-body {
    padding: 1.25rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .character {
    font-size: 5rem;
  }

  .progress-fill {
    font-size: 0.85rem;
    padding: 0 0.5rem;
  }

  .modal-day {
    font-size: 2rem;
  }

  .product-content {
    flex-direction: column;
  }

  .product-title {
    font-size: 2rem;
  }

  .product-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .calendar-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
  }

  .day-number {
    font-size: 2rem;
  }

  .title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .character {
    font-size: 4rem;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .section-content {
    font-size: 0.95rem;
  }
}

/* Accessibility */
.calendar-box:focus,
.close-btn:focus,
.close-bottom-btn:focus,
.product-cta:focus {
  outline: 3px solid var(--sparkle-blue);
  outline-offset: 3px;
}

/* Locked Day Alert */
.locked-alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: white;
  padding: 2.5rem 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 2000;
  text-align: center;
  animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  max-width: 400px;
  border: 4px solid var(--sky-blue);
}

.locked-alert.show {
  display: block;
}

@keyframes popIn {
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}

.locked-alert h3 {
  color: var(--deep-blue);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.locked-alert p {
  color: var(--dark-blue);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.locked-alert button {
  background: linear-gradient(135deg, var(--deep-blue), var(--sparkle-blue));
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.locked-alert button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(25, 118, 210, 0.4);
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
  /* Reduce animation complexity on mobile */
  .snowflake {
    will-change: transform;
  }
  
  /* Simplify confetti animations */
  .confetti {
    animation-duration: 2s !important; /* Faster animation */
  }
  
  /* Optimize transforms for mobile */
  .calendar-box,
  .modal-content,
  .character {
    will-change: transform;
    transform: translateZ(0); /* Force GPU acceleration */
  }
  
  /* Reduce motion for better performance */
  .calendar-box:hover {
    transform: scale(1.02); /* Smaller scale on mobile */
  }
  
  /* Optimize intro toggle */
  .intro-content {
    transition: max-height 0.2s ease-out; /* Faster transition */
  }
  
  /* Reduce shadows for better performance */
  .calendar-box {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Optimize modal opening */
  .modal {
    transition: opacity 0.2s ease-out;
  }
  
  .modal.active {
    transition: opacity 0.2s ease-in;
  }
}

/* Reduce animations for low-end mobile devices */
@media (max-width: 480px) and (prefers-reduced-motion: no-preference) {
  /* Even simpler animations */
  .confetti {
    animation-duration: 1.5s !important;
  }
  
  .character {
    animation: bounce 1.5s ease-in-out infinite; /* Slower bounce */
  }
}
