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

.mr {
  width: min(100%, 300px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mr__tabs {
  display: flex;
  gap: 4px;
  background: rgba(10, 79, 232, 0.08);
  padding: 4px;
  border-radius: 999px;
}

.mr__tab {
  flex: 1 1 0;
  border: none;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  padding: 8px 8px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(23, 20, 26, 0.64);
}

.mr__tab.is-active {
  background: #0a4fe8;
  color: #fff7e6;
}

.mr__tab:focus-visible {
  outline: 2px solid #0a4fe8;
  outline-offset: 2px;
}

.mr__wrap {
  position: relative;
  min-width: 0;
  height: 140px;
  border-radius: 16px;
  background: #fff7e6;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(23, 20, 26, 0.1);
}

.mr__panel {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
}

.mr__panel.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.mr__panel.is-front {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
  transition: clip-path 600ms ease-out;
}

.mr__num {
  font-size: 30px;
  font-weight: 800;
  color: #0a4fe8;
}

.mr__line {
  margin: 0;
  font-size: 12px;
  color: rgba(23, 20, 26, 0.72);
}

.mr__meta {
  margin: 0;
  font-size: 11px;
  color: rgba(23, 20, 26, 0.6);
  text-align: center;
}

.mr__meta b {
  color: #0a4fe8;
  font-weight: 700;
}

@media (max-width: 340px) {
  .mr {
    width: 100%;
    gap: 8px;
  }
  .mr__tab {
    padding: 4px 8px;
  }
  .mr__wrap {
    height: 96px;
  }
  .mr__num {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mr__panel.is-front {
    transition: none;
  }
}
