html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ff4d1f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.wrap {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.frameOuter {
  width: 200px;
  border-radius: 16px;
  border: 3px solid #17141a;
  overflow: hidden;
  background: #17141a;
}

.notchTop,
.notchBottom {
  height: 10px;
  background: rgba(23, 20, 26, 0.9);
  display: flex;
  justify-content: center;
}
.notchTop::after,
.notchBottom::after {
  content: "";
  width: 40px;
  height: 6px;
  border-radius: 999px;
  background: #fff7e6;
  opacity: 0.3;
  align-self: center;
}

.frameInner {
  background: #fff7e6;
  min-height: 120px;
  display: flex;
  align-items: stretch;
}

.content {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: max(var(--safe-top, 0px), env(safe-area-inset-top));
  padding-bottom: max(var(--safe-bottom, 0px), env(safe-area-inset-bottom));
  padding-left: 12px;
  padding-right: 12px;
  transition: padding 300ms ease-out;
}

.pill {
  border-radius: 999px;
  background: #c93000;
  color: #fff7e6;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
}

.slider {
  width: 220px;
  accent-color: #c93000;
}

.readout {
  color: #17141a;
  font-size: 11px;
}

@media (max-width: 340px) {
  .wrap {
    width: 260px;
    gap: 8px;
  }
  .frameOuter, .slider {
    width: 170px;
  }
  .frameInner {
    min-height: 84px;
  }
  .notchTop, .notchBottom {
    height: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .content {
    transition: none;
  }
}
