html, body {
  height: 100%;
}

body {
  margin: 0;
  background: #fff;
}

/* 화면 중앙 정렬 */
.stage {
  min-height: 100svh;
  display: grid;
  place-items: center;
}

/* 피그마 프레임 */
.board {
  position: relative;
  width: min(100vw, 520px);
  aspect-ratio: calc(var(--bw) / var(--bh));
  background: #9f6565;
  overflow: hidden;
}

/* 모든 이미지 요소 */
.item {
  position: absolute;
  left: calc(var(--x) * 100% / var(--bw));
  top:  calc(var(--y) * 100% / var(--bh));
  width:  calc(var(--w) * 100% / var(--bw));
  height: calc(var(--h) * 100% / var(--bh));
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 10;
}

/* 별 장식 */
.deco {
  z-index: 1;
  pointer-events: none;
}

/* 클릭 영역 */
.hit {
  position: absolute;
  left: calc(var(--x) * 100% / var(--bw));
  top:  calc(var(--y) * 100% / var(--bh));
  width:  calc(var(--w) * 100% / var(--bw));
  height: calc(var(--h) * 100% / var(--bh));
  display: block;
  -webkit-tap-highlight-color: transparent;
  z-index: 10;
}

.hit > .item {
  position: static;
  width: 100%;
  height: 100%;
}
