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

.scf {
  position: relative;
  width: min(100%, 280px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scf__badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.08);
  color: #fff7e6;
  font-weight: 700;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.scf__ctrl {
  position: absolute;
  top: 0;
  right: 0;
  border: 0;
  border-radius: 4px;
  padding: 4px 8px;
  background: rgba(255, 247, 230, 0.12);
  color: #fff7e6;
  font-weight: 600;
  font-size: 10px;
  line-height: 1.4;
  cursor: pointer;
}

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

.scf__canvas-wrap {
  width: 100%;
  aspect-ratio: 7/5;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  overflow: hidden;
}

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

@media (max-width: 340px) {
  .scf {
    gap: 4px;
  }
  .scf__badge {
    padding: 4px 8px;
    font-size: 10px;
  }
  .scf__canvas-wrap {
    max-width: 150px;
    aspect-ratio: 3/2;
    margin: 0 auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scf__canvas-wrap {
    background: rgba(255, 255, 255, 0.04);
  }
}
