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);
}

.mr {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 440px);
  height: min(252px, 100vh - 2 * clamp(8px, 4vw, 24px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #fff7e6;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  user-select: none;
}

.mr b {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.mr__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
}

.mr__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mr__btn {
  box-sizing: border-box;
  min-width: 28px;
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.14);
  color: #fff7e6;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.mr__btn[aria-pressed=true] {
  background: #fff7e6;
  color: #17141a;
}

.mr__btn:focus-visible {
  outline: 3px solid #ff9ebb;
  outline-offset: 2px;
}

.mr__live {
  margin: 0;
  color: #9a93a6;
  white-space: nowrap;
}

.mr__live b {
  color: #fff7e6;
}

.mr__wall {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 247, 230, 0.06);
}

.mr__card {
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(150deg, #b9a0ff, #ff9ebb);
  color: #17141a;
  will-change: transform;
  box-shadow: 0 calc(2px + var(--lift, 0) * 10px) calc(6px + var(--lift, 0) * 14px) rgba(23, 20, 26, 0.22);
}

.mr__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
}

.mr__card[data-c="1"] {
  background: linear-gradient(150deg, #6ec8ff, #4cd4a6);
}

.mr__card[data-c="2"] {
  background: linear-gradient(150deg, #4cd4a6, #b9a0ff);
}

.mr__card[data-c="3"] {
  background: linear-gradient(150deg, #6ec8ff, #b9a0ff);
}

.mr__card[data-c="4"] {
  background: linear-gradient(150deg, #ff9ebb, #b9a0ff);
}

.mr__card[data-c="5"] {
  background: linear-gradient(150deg, #4cd4a6, #6ec8ff);
}

.mr__card i {
  position: absolute;
  left: 8px;
  top: 4px;
  font-style: normal;
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
  z-index: 1;
  opacity: 0.85;
}

.mr__col {
  position: absolute;
  top: 0;
  will-change: transform;
}

.mr__mark {
  position: absolute;
  left: 0;
  top: 0;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.3);
  z-index: 3;
  pointer-events: none;
}

.mr__mark[data-low] {
  background: #4cd4a6;
}

@media (prefers-reduced-motion: reduce) {
  .mr__cursor, .mr__ring {
    display: none;
  }
  .mr__card {
    will-change: auto;
  }
}
