* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Poppins', system-ui, sans-serif;
  background: linear-gradient(135deg, #fce4ec 0%, #ffe0f0 40%, #f8d5e6 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  margin: 0;
  position: relative;
  overflow-x: hidden;
}

.noselect {
  -webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Safari */
  -khtml-user-select: none;
  /* Konqueror HTML */
  -moz-user-select: none;
  /* Old versions of Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently
                                supported by Chrome, Edge, Opera and Firefox */
}

.app-wrapper {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.state-screen {
  width: 100%;
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
  pointer-events: none;
}

.state-screen.active {
  opacity: 1;
  display: block;
  pointer-events: auto;
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hearts-wings {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
  font-size: 1.8rem;
  animation: floatWings 2.8s infinite alternate ease-in-out;
}

.hearts-wings i {
  color: #e63946;
  filter: drop-shadow(0 8px 12px rgba(230, 57, 70, 0.4));
}

.hearts-wings i.wing-left,
.hearts-wings i.wing-right {
  color: #ff8da1;
}

.wing-left {
  transform: rotate(-15deg);
  animation: wingLeft 1.8s infinite alternate;
}

.wing-right {
  transform: rotate(15deg);
  animation: wingRight 1.8s infinite alternate;
}

.heart-center {
  margin-bottom: 1rem;
  font-size: 3.8rem;
  animation: heartbeat 1.4s infinite;
}

@keyframes floatWings {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-8px);
  }
}

@keyframes wingLeft {
  0% {
    transform: rotate(-18deg) scale(1);
  }

  100% {
    transform: rotate(-5deg) scale(1.08);
  }
}

@keyframes wingRight {
  0% {
    transform: rotate(18deg) scale(1);
  }

  100% {
    transform: rotate(5deg) scale(1.08);
  }
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.2);
  }

  50% {
    transform: scale(1.05);
  }

  70% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #b23b3b;
  text-align: center;
  margin: 0.5rem 0 1.8rem;
  letter-spacing: -0.3px;
  text-shadow: 2px 2px 8px rgba(255, 220, 220, 0.8);
  line-height: 1.3;
}

.button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin-top: 0.5rem;
  position: relative;
}

.btn {
  border: none;
  background: linear-gradient(145deg, #ff8da1, #ff6f8c);
  color: white;
  font-weight: 700;
  font-size: 1.4rem;
  padding: 0.9rem 2.8rem;
  border-radius: 60px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(255, 105, 135, 0.4);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.4);
  letter-spacing: 0.4px;
}

.btn:hover {
  background: linear-gradient(145deg, #ff7b94, #ff5977);
  transform: scale(1.03);
  box-shadow: 0 12px 22px rgba(230, 57, 70, 0.5);
}

.btn-no {
  background: linear-gradient(145deg, #c0c0c0, #a0a0a0);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.13s ease-out;
  position: absolute;
  top: 80px;
}

.two-column {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 1.5rem 0 2rem;
}

.left-panel {
  flex: 1 1 300px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px);
  border-radius: 36px;
  padding: 1.5rem;
  box-shadow: 0 20px 35px rgba(180, 120, 130, 0.2);
}

.right-panel {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.calendar-custom {
  width: 100%;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  color: #b23b3b;
  font-weight: 700;
}

.calendar-header button {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #b23b3b;
  cursor: pointer;
  padding: 0 0.5rem;
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  color: #7a4e4e;
  margin-bottom: 0.5rem;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  text-align: center;
}

.day-cell {
  padding: 0.7rem 0;
  border-radius: 18px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
  background: transparent;
  color: #3d1e1e;
}

.day-cell:hover {
  background: #ffd9e0;
}

.day-cell.selected {
  background: #e63946;
  color: white;
  font-weight: bold;
}

.day-cell.today {
  border: 2px solid #e63946;
}

.time-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.time-card {
  background: rgba(255, 245, 248, 0.8);
  backdrop-filter: blur(8px);
  padding: 1rem 1.3rem;
  border-radius: 24px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.04);
}

.time-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 15px rgba(200, 100, 120, 0.3);
}

.time-card.selected {
  border: 2px solid #e63946;
  background: #ffe5ec;
  transform: scale(1.03);
  box-shadow: 0 10px 15px rgba(230, 57, 70, 0.35);
}

.time-icon {
  font-size: 2rem;
  color: #b23b3b;
}

.time-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: #3d1e1e;
}

.time-sub {
  font-size: 0.9rem;
  color: #7a4e4e;
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0 1.8rem;
}

.food-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border-radius: 28px;
  padding: 1.5rem 0.8rem 1.2rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 12px 24px rgba(180, 130, 140, 0.2);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.food-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 15px rgba(200, 100, 120, 0.3);
}

.food-card.selected {
  border: 2px solid #e63946;
  background: #fff0f3;
  transform: scale(1.03);
  box-shadow: 0 10px 15px rgba(230, 57, 70, 0.35);
}

.food-card .food-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  transition: transform 0.3s ease;
}

.food-card:hover .food-emoji {
  transform: scale(1.1) rotate(-3deg);
}

.food-card.selected .food-emoji {
  transform: scale(1.15);
}

.food-name {
  color: #4a2c2c;
  letter-spacing: 0.3px;
}

.summary-card {
  background: rgba(255, 240, 245, 0.7);
  backdrop-filter: blur(16px);
  border-radius: 40px;
  padding: 2rem;
  margin: 1.2rem 0 1.5rem;
  box-shadow: 0 25px 35px rgba(170, 100, 110, 0.2);
}

.btn-center {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.8rem;
}

.summary-detail {
  font-size: 1.1rem;
  text-align: center;
}

.happy-dance-gif {
  width: 150px;
  height: 150px;
  border-radius: 20px;
  margin: 1rem auto;
  display: block;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
  animation: bounceIn 0.8s ease;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 600px) {
  .food-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: 2rem;
  }

  .happy-dance-gif {
    width: 120px;
    height: 120px;
  }
}