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: #fbf3e6;
}

.pp__card {
  position: absolute;
  left: 72px;
  top: 40px;
  width: 336px;
  height: 124px;
  box-sizing: border-box;
  padding: 20px 24px;
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 8px 20px rgba(23, 20, 26, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pp__line {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #ece4d6;
}

.pp__line--title {
  width: 40%;
  height: 12px;
  background: #ddd2f7;
}

.pp__line--short {
  width: 60%;
}

.pp__send {
  position: absolute;
  left: 72px;
  top: 184px;
  width: 168px;
  height: 52px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #9ed0ff;
  color: #17141a;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.pp__send.is-sent {
  background: #b4ecd9;
}

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

.pp__icon {
  width: 20px;
  height: 20px;
  flex: none;
}

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