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

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

.er {
  display: grid;
  gap: 8px;
  justify-items: center;
  width: 100%;
}

.er__caption {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #fff7e6;
}

.er__scene {
  position: relative;
  width: 220px;
  height: 190px;
  display: grid;
  place-items: center;
}

.er__card {
  position: relative;
  width: 160px;
  height: 180px;
  border-radius: 16px;
  background: linear-gradient(160deg, #ff9ebb, #b9a0ff);
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  display: grid;
  place-items: center;
  touch-action: none;
  cursor: grab;
  will-change: transform;
}

.er__card:active {
  cursor: grabbing;
}

.er__card:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 3px;
}

.er__card[hidden] {
  display: none;
}

.er__label {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #17141a;
  padding: 0 12px;
  text-align: center;
}

.er__empty {
  width: 160px;
  height: 180px;
  border-radius: 16px;
  border: 2px dashed rgba(255, 247, 230, 0.4);
  display: grid;
  gap: 12px;
  place-items: center;
  padding: 12px;
  text-align: center;
}

.er__empty[hidden] {
  display: none;
}

.er__empty-text {
  margin: 0;
  font-size: 12px;
  color: #fff7e6;
  font-weight: 600;
}

.er__refill {
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  background: #5b8cf8;
  color: #17141a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.er__refill:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

.er__btn {
  position: absolute;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}

.er__btn--nope {
  left: 12px;
  color: #c2361a;
}

.er__btn--like {
  right: 12px;
  color: #0a4fe8;
}

.er__btn:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

.er__status {
  margin: 0;
  font-size: 11px;
  color: #fff7e6;
  font-weight: 600;
}

@media (max-width: 340px) {
  .er {
    gap: 8px;
  }
  .er__scene {
    width: 150px;
    height: 108px;
  }
  .er__card {
    width: 78px;
    height: 92px;
  }
  .er__empty {
    width: 78px;
    height: 92px;
    gap: 4px;
    padding: 4px;
  }
  .er__empty-text {
    font-size: 9px;
  }
  .er__refill {
    font-size: 9px;
    padding: 4px 8px;
  }
  .er__label {
    font-size: 10px;
    padding: 0 4px;
  }
  .er__btn {
    width: 22px;
    height: 22px;
    font-size: 11px;
    bottom: 4px;
  }
  .er__btn--nope {
    left: 4px;
  }
  .er__btn--like {
    right: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .er__card {
    transition: none;
  }
}
