html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.mt {
  width: 100%;
  max-width: 400px;
  padding: 8px;
  border-radius: 16px;
  background: #fff7e6;
}

.mt__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mt__cell {
  display: flex;
}

.mt__tile {
  position: relative;
  overflow: hidden;
  width: 100%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-height: clamp(56px, 19vw, 92px);
  padding: 8px;
  margin: 0;
  border: 2px solid rgba(23, 20, 26, 0.16);
  border-radius: 12px;
  background: #ffffff;
  color: #17141a;
  text-align: left;
  font-family: inherit;
  box-shadow: 0 6px 0 rgba(23, 20, 26, 0.14);
}

.mt__tile:focus-visible {
  outline: 3px solid #2f6df6;
  outline-offset: 2px;
}

.mt__tile.is-tapped {
  transform: translateY(6px);
  box-shadow: 0 0 0 rgba(23, 20, 26, 0.14);
}

.mt__name {
  font-weight: 700;
  font-size: clamp(11px, 3vw, 14px);
  line-height: 1.25;
}

.mt__price {
  font-weight: 800;
  font-size: clamp(12px, 3.2vw, 16px);
  line-height: 1.1;
  color: #2f6df6;
}

.mt__tile--out {
  cursor: not-allowed;
  border-color: rgba(23, 20, 26, 0.12);
  background: rgba(23, 20, 26, 0.06);
  box-shadow: none;
}

.mt__tile--out .mt__name,
.mt__tile--out .mt__price {
  color: rgba(23, 20, 26, 0.78);
}

.mt__band {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(45deg, rgba(23, 20, 26, 0.2) 0 8px, rgba(23, 20, 26, 0) 8px 16px);
}

.mt__stamp {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #17141a;
  color: #fff7e6;
  font-weight: 800;
  font-size: clamp(10px, 2.8vw, 13px);
  line-height: 1;
}

.mt__bag {
  margin: 12px 0 0;
  text-align: center;
  font-weight: 700;
  font-size: clamp(12px, 3.4vw, 16px);
  line-height: 1.2;
  color: #17141a;
}

.mt.is-demo .mt__tile--1,
.mt.is-demo .mt__tile--2,
.mt.is-demo .mt__tile--3,
.mt.is-demo .mt__tile--4,
.mt.is-demo .mt__tile--6 {
  animation-name: mtPress;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.mt.is-demo .mt__tile--2 {
  animation-delay: 320ms;
}

.mt.is-demo .mt__tile--3 {
  animation-delay: 640ms;
}

.mt.is-demo .mt__tile--4 {
  animation-delay: 960ms;
}

.mt.is-demo .mt__tile--6 {
  animation-delay: 1280ms;
}

@keyframes mtPress {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 6px 0 rgba(23, 20, 26, 0.14);
  }
  6% {
    transform: translateY(6px);
    box-shadow: 0 0 0 rgba(23, 20, 26, 0.14);
  }
  14% {
    transform: translateY(0);
    box-shadow: 0 6px 0 rgba(23, 20, 26, 0.14);
  }
}
.mt.is-demo .mt__band {
  animation-name: mtBand;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes mtBand {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 67.882px 0;
  }
}
@media (max-width: 340px) {
  .mt {
    padding: 4px;
  }
  .mt__grid {
    gap: 4px;
  }
  .mt__tile {
    min-height: 48px;
    padding: 4px;
  }
  .mt__bag {
    margin-top: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mt.is-demo .mt__tile--1,
  .mt.is-demo .mt__tile--2,
  .mt.is-demo .mt__tile--3,
  .mt.is-demo .mt__tile--4,
  .mt.is-demo .mt__tile--6,
  .mt.is-demo .mt__band {
    animation: none !important;
  }
  .mt.is-demo .mt__tile--1 {
    transform: translateY(6px) !important;
    box-shadow: 0 0 0 rgba(23, 20, 26, 0.14) !important;
  }
}
