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

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  transition: background 0.5s ease;
}

body.theme-morning {
  background: linear-gradient(155deg, #e0f2fe 0%, #f0f9ff 48%, #fefce8 100%);
  color: #0f172a;
}

body.theme-evening {
  background: linear-gradient(155deg, #e0e7ff 0%, #eef2ff 50%, #fdf4ff 100%);
  color: #1e1b4b;
}

.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px -8px rgba(15, 23, 42, 0.08);
}

.routine-card {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.routine-card:active {
  transform: scale(0.97);
}

.routine-card.is-next {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18), 0 14px 30px -10px rgba(245, 158, 11, 0.35);
}

.routine-card.is-done {
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%) !important;
  border-color: #34d399 !important;
}

.supply-chip {
  transition: all 0.18s ease;
  cursor: pointer;
  user-select: none;
}

.supply-chip:active {
  transform: scale(0.96);
}

.progress-runner {
  transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.animate-float {
  animation: floatSlow 2.6s ease-in-out infinite;
}

@keyframes popIn {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.animate-pop {
  animation: popIn 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

@keyframes carrotSway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(7deg); }
  75% { transform: rotate(-7deg); }
}
.anim-sway { animation: carrotSway 0.45s ease-in-out 3; transform-origin: 50% 85%; }

@keyframes carrotJump {
  0%, 100% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-14px) scale(1.07); }
  70% { transform: translateY(-4px) scale(0.98); }
}
.anim-jump { animation: carrotJump 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }

@keyframes dropFall {
  0% { transform: translateY(-20px); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateY(95px); opacity: 0; }
}
.anim-drop { animation: dropFall 0.9s ease-in forwards; }

@keyframes sunPulse {
  0% { opacity: 0; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.15); }
}
.anim-sun { animation: sunPulse 1.1s ease-out forwards; }
