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

.mb {
  --plate-bg: rgba(255, 247, 230, 0.07);
  --mem: #ff9ebb;
  --rim: #fff7e6;
  --ring: #4cd4a6;
  --track: rgba(255, 247, 230, 0.22);
  --btn-bg: rgba(255, 247, 230, 0.12);
  --btn-fg: #fff7e6;
  --state-fg: rgba(255, 247, 230, 0.72);
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  max-width: 424px;
}

.mb__hint {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-weight: 700;
  font-size: clamp(10px, 2.8vw, 12px);
  line-height: 1.35;
  color: #fff7e6;
}

.mb__ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #ff9ebb;
}

.mb__field {
  position: relative;
  height: 208px;
  border-radius: 16px;
  overflow: hidden;
  background: #17141a;
  box-shadow: inset 0 0 0 1px rgba(255, 247, 230, 0.14);
}

.mb__cv {
  display: block;
  width: 100%;
  height: 100%;
}

.mb__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.12);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  color: #fff7e6;
  font-variant-numeric: tabular-nums;
}

.mb__badgeNum {
  font-size: 14px;
}

.mb__badgeUnit {
  font-size: 10px;
  opacity: 0.72;
}

.mb__ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.mb__btn {
  flex: 0 0 auto;
  margin: 0;
  padding: 4px 12px;
  border: none;
  border-radius: 999px;
  background: var(--btn-bg);
  font: inherit;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.4;
  color: var(--btn-fg);
  cursor: pointer;
  transition: background 220ms ease-out, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mb__btn:hover {
  background: rgba(255, 247, 230, 0.2);
}

.mb__btn:active {
  transform: scale(0.96);
}

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

.mb__btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.mb__state {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--state-fg);
}

@media (max-width: 340px) {
  .mb {
    gap: 0;
  }
  .mb__hint {
    font-size: 10px;
    line-height: 1.25;
  }
  .mb__field {
    height: 108px;
  }
  .mb__ctrl {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .mb__state {
    font-size: 10px;
    line-height: 1.3;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mb__btn {
    transition: none !important;
  }
  .mb.is-still .mb__state {
    opacity: 0.9 !important;
  }
}
