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

.phr {
  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);
  background: #17141a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  box-sizing: border-box;
  color: #fff7e6;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  text-align: center;
}

.phr::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(91, 140, 248, calc(var(--phr-progress, 0) * 0.28));
}

.phr__label {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(255, 247, 230, 0.72);
}

.phr__field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 247, 230, 0.08);
  border: 1px solid rgba(255, 247, 230, 0.18);
  border-radius: 12px;
  padding: 8px 12px;
}

.phr__input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff7e6;
  font-size: 16px;
  letter-spacing: 0.08em;
  width: 9.5em;
  font-family: inherit;
}

.phr__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #fff7e6;
  cursor: pointer;
  touch-action: none;
}

.phr__btn:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

.phr__ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.phr__ringTrack {
  stroke: rgba(255, 247, 230, 0.2);
}

.phr__ringFg {
  stroke: #fff7e6;
}

.phr__eye {
  position: relative;
  z-index: 1;
}

.phr__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 247, 230, 0.62);
  max-width: 22em;
}

@media (max-width: 340px) {
  .phr {
    gap: 12px;
    padding: 16px;
  }
  .phr__hint {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .phr__ringFg, .phr__lidTop, .phr__lidBottom, .phr__pupil {
    transition: none;
  }
}
