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

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

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

.ringWrap {
  position: relative;
  width: 72px;
  height: 72px;
}

.ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ringTrack {
  fill: none;
  stroke: rgba(23, 20, 26, 0.16);
  stroke-width: 6;
}

.ringFill {
  fill: none;
  stroke: #2f6df6;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 600ms ease-out;
}

.ringNum {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #17141a;
  font-size: 18px;
  font-weight: 700;
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dateInput {
  border: none;
  border-radius: 12px;
  background: #fff7e6;
  color: #17141a;
  padding: 4px 8px;
  font-size: 12px;
  color-scheme: light;
}
.dateInput::-webkit-calendar-picker-indicator {
  border-radius: 4px;
  padding: 4px;
  cursor: pointer;
}
.dateInput:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

.pickBtn {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: #17141a;
  color: #fff7e6;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 140ms ease-out;
}
.pickBtn:active {
  transform: scale(0.95);
}
.pickBtn:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

.foot {
  display: flex;
  align-items: center;
  gap: 8px;
}

.daysLabel {
  color: #17141a;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.7);
  padding: 4px 8px;
  border-radius: 4px;
}

.simToggle {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.82);
  color: #fff7e6;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 140ms ease-out;
}
.simToggle:active {
  transform: scale(0.96);
}
.simToggle[aria-pressed=true] {
  background: #c93000;
}
.simToggle:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

@media (max-width: 340px) {
  .ringWrap {
    width: 60px;
    height: 60px;
  }
  .ringNum {
    font-size: 15px;
  }
  .dateInput {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ringFill {
    transition: none;
  }
  .pickBtn, .simToggle {
    transition: none;
  }
}
