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

.sb {
  position: relative;
  width: min(92vw, 160vh - 12.8vw);
  aspect-ratio: 480/300;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.sb__scene {
  position: absolute;
  left: 0;
  top: 0;
  width: 480px;
  height: 300px;
  transform-origin: 0 0;
}

.sb__canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 480px;
  height: 300px;
  pointer-events: none;
}

.sb__status {
  position: absolute;
  left: 16px;
  bottom: 12px;
  box-sizing: border-box;
  max-width: 260px;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #17141a;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  pointer-events: none;
}

.sb__status--top {
  top: 12px;
  bottom: auto;
}

.sb__status--side {
  max-width: 140px;
  border-radius: 12px;
}

.sb {
  background: #f4eef6;
}

.sh__bar {
  position: absolute;
  left: 72px;
  top: 124px;
  width: 336px;
  height: 56px;
  box-sizing: border-box;
  padding: 0 8px 0 20px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(23, 20, 26, 0.08), 0 8px 18px rgba(23, 20, 26, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sh__bar.is-fail {
  box-shadow: inset 0 0 0 2px #f0c4bc, 0 8px 18px rgba(240, 196, 188, 0.5);
}

.sh__bar.is-ok {
  box-shadow: inset 0 0 0 2px #a9e3cf, 0 8px 18px rgba(23, 20, 26, 0.08);
}

.sh__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #17141a;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sh__send {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c8b8ff;
  color: #17141a;
  cursor: pointer;
}

.sh__bar.is-fail .sh__send {
  background: #ffe0d8;
  color: #c2361a;
}

.sh__bar.is-ok .sh__send {
  background: #b4ecd9;
}

.sh__send:focus-visible {
  outline: 3px solid #17141a;
  outline-offset: 3px;
}

.sh__icon {
  position: absolute;
  left: 11px;
  top: 11px;
  width: 22px;
  height: 22px;
}

.sh__note {
  position: absolute;
  left: 96px;
  top: 192px;
  margin: 0;
  color: #c2361a;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 340px) {
  .sb__status {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sb__scene * {
    transition: none !important;
    animation: none !important;
  }
}
