html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: #fff;
  color: #26292d;
  font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif;
}

.meal-board {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.meal-cards {
  display: flex;
  box-shadow: 0 10px 30px rgb(38 115 240 / 18%);
}

.meal-card {
  width: min(29vw, 380px);
  aspect-ratio: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  box-sizing: border-box;
}

.meal-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.meal-card.is-today h1 {
  color: #2673f0;
}

.meal-card h1 {
  margin: 0;
  padding: clamp(12px, 2vw, 22px) 4px clamp(12px, 2vw, 22px) clamp(12px, 2vw, 22px);
  text-align: center;
  font-size: clamp(18px, 2.6vw, 30px);
  line-height: 1.2;
}

.meal-list {
  margin: 0;
  padding: clamp(14px, 2.4vw, 28px);
  overflow: auto;
  font-size: clamp(14px, 2vw, 24px);
  line-height: 1.45;
}

.meal-item {
  display: flex;
  align-items: center;
  min-width: 0;
}

.meal-name,
.meal-heart,
.meal-copy {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.meal-name {
  min-width: 0;
  flex: 1;
  padding: 4px 8px 4px 0;
  text-align: left;
  word-break: keep-all;
}

.meal-name.is-selected {
  color: #2673f0;
}

.meal-heart {
  display: grid;
  position: relative;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 7px;
  visibility: hidden;
  opacity: 0;
}

.meal-heart-icon {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #8d9298;
  -webkit-mask: url("/assets/meal/heart.png") center / contain no-repeat;
  mask: url("/assets/meal/heart.png") center / contain no-repeat;
}

.meal-item.is-selected .meal-heart,
.meal-item.is-favorite .meal-heart {
  visibility: visible;
  opacity: 1;
}

.meal-item.is-favorite .meal-name,
.meal-item.is-favorite .meal-heart {
  color: #e53935;
}

.meal-item.is-favorite .meal-heart-icon {
  background: #e53935;
}

.meal-copy {
  display: grid;
  place-items: center;
  width: clamp(38px, 5vw, 52px);
  height: clamp(38px, 5vw, 52px);
  margin-right: clamp(8px, 1.4vw, 16px);
  padding: 9px;
  visibility: visible;
  opacity: 1;
}

.meal-copy-icon {
  display: block;
  width: 100%;
  height: 100%;
  background: #8d9298;
  -webkit-mask: url("/assets/meal/copy.png") center / contain no-repeat;
  mask: url("/assets/meal/copy.png") center / contain no-repeat;
}

.meal-copy.is-copied .meal-copy-icon {
  background: #2673f0;
  -webkit-mask: url("/assets/meal/copy.png") center / contain no-repeat;
  mask: url("/assets/meal/copy.png") center / contain no-repeat;
}

@media (max-width: 600px) {
  .meal-board {
    padding: 14px;
  }

  .meal-card {
    width: calc((100vw - 28px) / 3);
  }
}
