* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #fff5f8 0%, #ffe9f3 50%, #fff8fa 100%);
  min-height: 100vh;
  transition: background 0.8s ease;
  color: #3d3d3d;
}

/* Monthly Themes */
body.theme-january {
  background: linear-gradient(135deg, #e8f4f8 0%, #d4e8f0 50%, #f0f7fa 100%);
}

body.theme-february {
  background: linear-gradient(135deg, #fff5f8 0%, #ffe9f3 50%, #fff8fa 100%);
}

body.theme-march {
  background: linear-gradient(135deg, #e8f5f0 0%, #d4e8e0 50%, #f0faf7 100%);
}

body.theme-april {
  background: linear-gradient(135deg, #f5f0f8 0%, #e8d8f0 50%, #faf5ff 100%);
}

body.theme-may {
  background: linear-gradient(135deg, #fef8f0 0%, #fde8d4 50%, #fffbf5 100%);
}

body.theme-june {
  background: linear-gradient(135deg, #e8f8fb 0%, #d4f0f8 50%, #f0fafe 100%);
}

body.theme-july {
  background: linear-gradient(135deg, #fef0e8 0%, #fdd8c0 50%, #fffaf5 100%);
}

body.theme-august {
  background: linear-gradient(135deg, #fffbe8 0%, #fff0d4 50%, #fffdf5 100%);
}

body.theme-september {
  background: linear-gradient(135deg, #fef5e8 0%, #fde0c0 50%, #fffaf5 100%);
}

body.theme-october {
  background: linear-gradient(135deg, #fff0e8 0%, #ffe0d4 50%, #fffbf5 100%);
}

body.theme-november {
  background: linear-gradient(135deg, #f8f0e8 0%, #f0e0d4 50%, #faf8f5 100%);
}

body.theme-december {
  background: linear-gradient(135deg, #f0f5f8 0%, #e0e8f0 50%, #f5f9fa 100%);
}

h1 {
  margin: 0 0 12px 0;
  text-align: center;
  font-size: 2.8em;
  font-family: "Fredoka", sans-serif;
  background: linear-gradient(135deg, #d9547e 0%, #c73a6d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.sub {
  text-align: center;
  color: #b88a9e;
  margin: 0 0 20px 0;
  font-size: 1em;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.streak-counter {
  text-align: center;
  font-size: 1.2em;
  font-weight: 700;
  color: #d9547e;
  margin-bottom: 24px;
  animation: streakPulse 0.6s ease;
  letter-spacing: 0.3px;
}

.streak-counter.streak-update {
  animation: streakBounce 0.6s ease;
}

@keyframes streakPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes streakBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.wrap {
  max-width: 1000px;
  margin: auto;
  padding: 40px 24px;
}

.today {
  padding: 24px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #faf8fc 100%);
  margin-bottom: 32px;
  text-align: center;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 12px rgba(217, 84, 126, 0.08);
  font-size: 1em;
  line-height: 1.7;
  color: #5a5a5a;
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
}

.today strong {
  color: #d9547e;
  display: block;
  margin: 0;
  font-weight: 600;
  font-size: 0.95em;
}

.countdown-timer {
  font-size: 1.4em;
  font-weight: 700;
  color: #d9547e;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  display: block;
}

.calendar {
  border: none;
  border-radius: 20px;
  padding: 28px;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(217, 84, 126, 0.1);
  backdrop-filter: blur(4px);
  transition: all 0.5s ease;
  opacity: 1;
}

.calHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calHeader button {
  background: linear-gradient(135deg, #d9547e 0%, #c73a6d 100%);
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(217, 84, 126, 0.15);
  color: #ffffff;
  font-weight: 600;
}

.calHeader button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 84, 126, 0.25);
  background: linear-gradient(135deg, #e8668e 0%, #d9547e 100%);
}

.calHeader button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(217, 84, 126, 0.15);
}

.calHeader > div {
  text-align: center;
  flex: 1;
}

#calTitle {
  font-weight: 700;
  font-size: 24px;
  color: #d9547e;
  margin: 0;
  animation: titleSlide 0.6s ease-out;
  font-family: "Fredoka", sans-serif;
  letter-spacing: 0.5px;
}

#calSubtitle {
  font-size: 13px;
  color: #b88a9e;
  margin: 6px 0 0 0;
  font-weight: 400;
}

.dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 600;
  text-align: center;
  font-size: 12px;
  color: #a89aa8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.calGrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.calCell {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, #faf8fb 0%, #ffffff 100%);
  border: 1px solid #ede5f0;
  font-size: 14px;
  font-weight: 600;
  color: #6b6b6b;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  animation: bubbleIn 0.3s ease-out backwards;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(217, 84, 126, 0.05);
}

.calCell:nth-child(1) { animation-delay: 0.05s; }
.calCell:nth-child(2) { animation-delay: 0.1s; }
.calCell:nth-child(3) { animation-delay: 0.15s; }
.calCell:nth-child(4) { animation-delay: 0.2s; }
.calCell:nth-child(5) { animation-delay: 0.25s; }
.calCell:nth-child(6) { animation-delay: 0.3s; }
.calCell:nth-child(7) { animation-delay: 0.35s; }
.calCell:nth-child(8) { animation-delay: 0.4s; }
.calCell:nth-child(9) { animation-delay: 0.05s; }
.calCell:nth-child(10) { animation-delay: 0.1s; }
.calCell:nth-child(11) { animation-delay: 0.15s; }
.calCell:nth-child(12) { animation-delay: 0.2s; }
.calCell:nth-child(13) { animation-delay: 0.25s; }
.calCell:nth-child(14) { animation-delay: 0.3s; }
.calCell:nth-child(15) { animation-delay: 0.35s; }
.calCell:nth-child(16) { animation-delay: 0.4s; }
.calCell:nth-child(17) { animation-delay: 0.05s; }
.calCell:nth-child(18) { animation-delay: 0.1s; }
.calCell:nth-child(19) { animation-delay: 0.15s; }
.calCell:nth-child(20) { animation-delay: 0.2s; }
.calCell:nth-child(21) { animation-delay: 0.25s; }
.calCell:nth-child(22) { animation-delay: 0.3s; }
.calCell:nth-child(23) { animation-delay: 0.35s; }
.calCell:nth-child(24) { animation-delay: 0.4s; }
.calCell:nth-child(25) { animation-delay: 0.05s; }
.calCell:nth-child(26) { animation-delay: 0.1s; }
.calCell:nth-child(27) { animation-delay: 0.15s; }
.calCell:nth-child(28) { animation-delay: 0.2s; }
.calCell:nth-child(29) { animation-delay: 0.25s; }
.calCell:nth-child(30) { animation-delay: 0.3s; }
.calCell:nth-child(31) { animation-delay: 0.35s; }
.calCell:nth-child(32) { animation-delay: 0.4s; }
.calCell:nth-child(33) { animation-delay: 0.05s; }
.calCell:nth-child(34) { animation-delay: 0.1s; }
.calCell:nth-child(35) { animation-delay: 0.15s; }
.calCell:nth-child(36) { animation-delay: 0.2s; }
.calCell:nth-child(37) { animation-delay: 0.25s; }
.calCell:nth-child(38) { animation-delay: 0.3s; }
.calCell:nth-child(39) { animation-delay: 0.35s; }
.calCell:nth-child(40) { animation-delay: 0.4s; }
.calCell:nth-child(41) { animation-delay: 0.05s; }
.calCell:nth-child(42) { animation-delay: 0.1s; }

.calCell.unlocked {
  background: linear-gradient(135deg, #ffd4e5 0%, #ffb8d4 100%);
  color: #d9547e;
  border-color: #ffb8d4;
  box-shadow: 0 3px 10px rgba(217, 84, 126, 0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-weight: 600;
}

.calCell.unlocked:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 24px rgba(217, 84, 126, 0.3);
  background: linear-gradient(135deg, #ffc8df 0%, #ffacc9 100%);
}

.calCell.unlocked:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(217, 84, 126, 0.25);
}

.calCell.available {
  background: linear-gradient(135deg, #d9547e 0%, #c73a6d 100%);
  color: #ffffff;
  border-color: #d9547e;
  box-shadow: 0 4px 12px rgba(217, 84, 126, 0.25);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.calCell.available:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 28px rgba(217, 84, 126, 0.4);
}

.calCell.available:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(217, 84, 126, 0.3);
}

.calCell.locked {
  opacity: 0.55;
  color: #a89aa8;
  cursor: not-allowed;
  background: linear-gradient(135deg, #f8f6fa 0%, #f3f0f6 100%);
  border-color: #ede5f0;
  transition: all 0.3s ease;
}

.calCell.locked:hover {
  transform: rotate(1deg) scale(0.98);
  opacity: 0.65;
  box-shadow: 0 4px 12px rgba(217, 84, 126, 0.1);
}

@keyframes lockShake {
  0%, 100% { transform: translateX(0) scale(1.05); }
  25% { transform: translateX(-4px) scale(1.05); }
  75% { transform: translateX(4px) scale(1.05); }
}

.tapHint {
  font-size: 0.7rem;
  opacity: 0.8;
  color: inherit;
  font-weight: 500;
  margin-top: 2px;
}

.special-icon {
  font-size: 1.2rem;
  position: absolute;
  top: 4px;
  right: 4px;
  animation: floatIcon 2s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.modal {
  border: none;
  border-radius: 28px;
  padding: 32px 28px;
  max-width: 520px;
  background: linear-gradient(135deg, #fff9fc 0%, #fffbfe 100%);
  box-shadow: 0 25px 70px rgba(217, 84, 126, 0.25), 0 0 0 1px rgba(217, 84, 126, 0.1);
  animation: modalBounceIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: visible;
}

@keyframes modalBounceIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.modal h2 {
  margin: 0 0 28px 0;
  font-size: 32px;
  color: #d9547e;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.5px;
  animation: slideDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-shadow: 0 2px 4px rgba(217, 84, 126, 0.1);
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal::backdrop {
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

#codeGate,
#messageBox {
  margin-bottom: 20px;
}

#messageBox p {
  margin: 0;
  font-size: 20px;
  line-height: 2;
  color: #d9547e;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.6s ease 0.15s both;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(217, 84, 126, 0.08);
  position: relative;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#codeGate p {
  margin: 0 0 12px 0;
  color: #6b6b6b;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
}

#codeInput {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #ede5f0;
  border-radius: 10px;
  font-size: 16px;
  margin: 14px 0;
  font-weight: 600;
  letter-spacing: 2px;
  text-align: center;
  transition: all 0.3s ease;
  background: #faf8fb;
  color: #d9547e;
}

#codeInput:focus {
  outline: none;
  border-color: #d9547e;
  box-shadow: 0 0 0 3px rgba(217, 84, 126, 0.1);
  background: #ffffff;
}

#codeInput::placeholder {
  color: #c9b0c0;
}

#codeSubmit,
#closeModal {
  width: 100%;
  padding: 16px 18px;
  margin: 12px 0;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #d9547e 0%, #c73a6d 100%);
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 16px rgba(217, 84, 126, 0.2);
  letter-spacing: 0.5px;
}

#codeSubmit:hover,
#closeModal:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(217, 84, 126, 0.3);
  background: linear-gradient(135deg, #e8668e 0%, #d9547e 100%);
}

#codeSubmit:active,
#closeModal:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(217, 84, 126, 0.2);
}

#codeSubmit:hover,
#closeModal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 84, 126, 0.25);
  background: linear-gradient(135deg, #e8668e 0%, #d9547e 100%);
}

#codeSubmit:active,
#closeModal:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(217, 84, 126, 0.15);
}

#closeModal {
  margin-bottom: 0;
}

label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: #6b6b6b;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}

label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #d9547e;
  border-radius: 4px;
}

#codeError {
  color: #c73a6d;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
  animation: shake 0.5s ease;
}

@keyframes bubbleIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse {
  0%, 100% { 
    box-shadow: 0 8px 20px rgba(217, 84, 126, 0.35);
  }
  50% { 
    box-shadow: 0 8px 30px rgba(217, 84, 126, 0.5);
  }
}

@keyframes titleSlide {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.milestone {
  text-align: center;
  padding: 16px 12px;
  margin-bottom: 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 18px;
  animation: milestoneGlow 0.8s ease;
}

.milestone-100 {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  border: 2px solid #f97316;
}

.milestone-200 {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  color: white;
  border: 2px solid #7c3aed;
}

.milestone-365 {
  background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
  color: white;
  border: 2px solid #ec0052;
}

@keyframes milestoneGlow {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.confetti {
  position: absolute;
  width: 20px;
  height: 20px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: confettiFall var(--duration, 3s) linear forwards;
}

@keyframes confettiFall {
  0% {
    top: 0;
    opacity: 1;
    transform: translateX(0) rotateZ(0deg) scale(1);
  }
  70% {
    opacity: 1;
  }
  100% {
    top: 100vh;
    opacity: 0;
    transform: translateX(var(--sway, 0)) rotateZ(var(--rotation, 360deg)) scale(0);
  }
}

.locked-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(255, 105, 180, 0.3);
  z-index: 5000;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.locked-toast.show {
  transform: translateX(-50%) translateY(0);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

#messageBox p {
  margin: 0;
  line-height: 1.8;
  color: #333;
  font-size: 16px;
  padding: 12px;
  background: linear-gradient(135deg, #ffeff5 0%, #fff5f9 100%);
  border-radius: 12px;
  border-left: 4px solid #ff69b4;
}

/* House Building Feature */
.content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.calendar {
  flex: 1;
  min-width: 400px;
}

.house-section {
  flex: 0 0 auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  min-width: 300px;
}

.house-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.house {
  position: relative;
  width: 200px;
  height: 220px;
  perspective: 1000px;
}

.house-part {
  position: absolute;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.house-part.visible {
  opacity: 1;
}

/* Foundation */
.foundation {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 20px;
  background: linear-gradient(to bottom, #8B7355 0%, #6B5344 100%);
  border-radius: 0 0 4px 4px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Walls */
.walls {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 120px;
  background: linear-gradient(135deg, #D4A574 0%, #C89968 100%);
  border: 2px solid #8B7355;
  border-radius: 0 0 4px 4px;
  box-shadow: inset -2px 0 4px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Roof */
.roof {
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
  width: 170px;
  height: 60px;
  background: linear-gradient(135deg, #a0522d 0%, #654321 100%);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Door */
.door {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 70px;
  background: linear-gradient(to right, #8B4513 0%, #A0522D 50%, #8B4513 100%);
  border: 2px solid #654321;
  border-radius: 4px 4px 0 0;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
}

.door::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: #FFD700;
  border-radius: 50%;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 4px rgba(255, 215, 0, 0.6);
}

/* Windows */
.window {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ADD8E6 0%, #87CEEB 100%);
  border: 2px solid #4682B4;
  border-radius: 4px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1), 0 0 6px rgba(135, 206, 235, 0.4);
}

.window::before,
.window::after {
  content: '';
  position: absolute;
  background: #4682B4;
}

.window::before {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-1px);
}

.window::after {
  height: 2px;
  width: 100%;
  top: 50%;
  transform: translateY(-1px);
}

.window-left {
  bottom: 70px;
  left: 15%;
}

.window-right {
  bottom: 70px;
  right: 15%;
}

/* Chimney */
.chimney {
  bottom: 140px;
  right: 20px;
  width: 20px;
  height: 60px;
  background: linear-gradient(to right, #CD5C5C 0%, #8B3A3A 100%);
  border: 2px solid #654321;
  border-radius: 2px;
}

.chimney::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 8px;
  background: #666;
  border-radius: 2px;
}

/* Lights (decorative) */
.lights {
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 8px;
  background: linear-gradient(to right, 
    #FF6347 0%, #FF6347 8%,
    transparent 8%, transparent 18%,
    #FFD700 18%, #FFD700 26%,
    transparent 26%, transparent 36%,
    #32CD32 36%, #32CD32 44%,
    transparent 44%, transparent 54%,
    #FF6347 54%, #FF6347 62%,
    transparent 62%, transparent 72%,
    #FFD700 72%, #FFD700 80%,
    transparent 80%, transparent 90%,
    #FF1493 90%, #FF1493 100%);
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.8));
  border-radius: 4px;
}

/* Planters */
.planter-left,
.planter-right {
  bottom: 20px;
  width: 30px;
  height: 25px;
  background: linear-gradient(135deg, #CD853F 0%, #8B4513 100%);
  border: 2px solid #654321;
  border-radius: 2px;
}

.planter-left {
  left: 10px;
}

.planter-right {
  right: 10px;
}

.planter-left::after,
.planter-right::after {
  content: '🌿';
  position: absolute;
  font-size: 16px;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
}

/* Welcome Mat */
.welcome-mat {
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 20px;
  background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
  border-radius: 2px;
  opacity: 0 !important;
}

.welcome-mat.visible {
  opacity: 1 !important;
}

.welcome-mat::before {
  content: 'WELCOME';
  position: absolute;
  font-size: 10px;
  font-weight: 700;
  color: #FFD700;
  width: 100%;
  text-align: center;
  top: 4px;
  letter-spacing: 1px;
}

/* Progress Text */
.house-progress {
  text-align: center;
  padding: 12px;
  background: linear-gradient(135deg, #fff0f5 0%, #ffe4ef 100%);
  border-radius: 8px;
  min-width: 200px;
  border: 1px solid #ffb3d9;
}

#progressText {
  font-size: 14px;
  font-weight: 600;
  color: #c2185b;
  display: block;
}

@media (max-width: 600px) {
  h1 {
    font-size: 2em;
  }

  .wrap {
    padding: 15px 8px;
  }
  
  .calendar {
    padding: 12px;
    border-radius: 12px;
  }
  
  .calHeader {
    margin-bottom: 12px;
    gap: 8px;
  }
  
  .calHeader button {
    padding: 8px 10px;
    font-size: 16px;
    border-radius: 8px;
  }
  
  #calTitle {
    font-size: 18px;
  }
  
  #calSubtitle {
    font-size: 11px;
    margin: 4px 0 0 0;
  }
  
  .dow {
    gap: 4px;
    margin-bottom: 8px;
    font-size: 10px;
  }
  
  .calGrid {
    gap: 5px;
  }
  
  .calCell {
    min-height: 45px;
    padding: 4px 2px;
    font-size: 11px;
    border-radius: 6px;
  }
  
  .special-icon {
    font-size: 0.7rem;
    top: 2px;
    right: 2px;
  }

  .modal {
    border-radius: 20px;
    padding: 24px;
    max-width: 90vw;
  }

  .content-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .house-section {
    width: 100%;
  }
  
  .today {
    font-size: 13px;
    padding: 10px;
    margin: 12px 0;
  }
  
  .nav-tabs {
    gap: 6px;
    margin: 16px 0;
  }
  
  .nav-tab {
    padding: 8px 12px;
    font-size: 11px;
  }
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 24px 0;
  flex-wrap: wrap;
}

.nav-tab {
  padding: 12px 28px;
  border: 2px solid #e0b0d0;
  background: linear-gradient(135deg, #fff5f9 0%, #ffe4f0 100%);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #c2185b;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-tab:hover {
  background: linear-gradient(135deg, #ffecf7 0%, #ffd9e8 100%);
  border-color: #d9547e;
  transform: translateY(-2px);
}

.nav-tab.active {
  background: linear-gradient(135deg, #ff69b4 0%, #d9547e 100%);
  color: white;
  border-color: #d9547e;
  box-shadow: 0 4px 12px rgba(217, 84, 126, 0.3);
}

/* Page Sections */
.page {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Photos Page Styling */
.photos-container {
  max-width: 1000px;
  margin: 0 auto;
}

.photos-container h2 {
  font-size: 2em;
  color: #d9547e;
  text-align: center;
  margin-bottom: 8px;
}

.photos-subtitle {
  text-align: center;
  color: #999;
  margin-bottom: 32px;
  font-size: 14px;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding: 20px;
}

.photo-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 300px;
}

.photo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(217, 84, 126, 0.2);
}

.photo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.photo-card-date {
  background: linear-gradient(135deg, #ffe4f0 0%, #ffb3d9 100%);
  color: #d9547e;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-card-caption {
  padding: 12px;
  background: #f9f5f8;
  font-size: 12px;
  color: #999;
  text-align: center;
}

/* Empty State */
.photo-card.empty-state {
  grid-column: 1 / -1;
  height: auto;
  padding: 60px 20px;
  background: linear-gradient(135deg, #fff5f9 0%, #ffe4f0 100%);
  border: 2px dashed #e0b0d0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.photo-card.empty-state p {
  margin: 0;
  color: #d9547e;
  font-weight: 600;
  margin-bottom: 8px;
}

.photo-card.empty-state small {
  color: #999;
  font-size: 12px;
}

/* Bucket List Page */
.bucket-list-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.bucket-list-container h2 {
  font-size: 2em;
  color: #d9547e;
  text-align: center;
  margin-bottom: 8px;
}

.bucket-list-subtitle {
  text-align: center;
  color: #999;
  margin-bottom: 32px;
  font-size: 14px;
}

.bucket-list-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: linear-gradient(135deg, #fff0f5 0%, #ffe4ef 100%);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 2px solid #ffb3d9;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #d9547e;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bucket-list-content {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.add-item-section {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

#newItemInput {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e0b0d0;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Quicksand', sans-serif;
  transition: all 0.3s ease;
}

#newItemInput:focus {
  outline: none;
  border-color: #d9547e;
  box-shadow: 0 0 0 3px rgba(217, 84, 126, 0.1);
}

#addItemBtn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #ff69b4 0%, #d9547e 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Quicksand', sans-serif;
}

#addItemBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 84, 126, 0.3);
}

.bucket-list-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bucket-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #fff5f9 0%, #ffe9f3 100%);
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOut {
  to {
    opacity: 0;
    transform: translateX(-20px);
  }
}

.bucket-item:hover {
  border-color: #e0b0d0;
  transform: translateX(4px);
}

.bucket-item.completed {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-color: #81c784;
}

.bucket-item.completed .bucket-text {
  text-decoration: line-through;
  color: #999;
}

.bucket-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.bucket-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  width: 24px;
  height: 24px;
  border: 2px solid #e0b0d0;
  border-radius: 6px;
  background: white;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bucket-checkbox input[type="checkbox"]:checked ~ .checkmark {
  background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
  border-color: #4caf50;
}

.bucket-checkbox input[type="checkbox"]:checked ~ .checkmark::after {
  content: '✓';
  color: white;
  font-weight: bold;
  font-size: 16px;
}

.bucket-text {
  flex: 1;
  color: #333;
  font-size: 15px;
  line-height: 1.5;
}

.delete-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 0, 0, 0.1);
  color: #ff4444;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

.delete-btn:hover {
  background: #ff4444;
  color: white;
  opacity: 1;
  transform: scale(1.1);
}
