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

.rt {
  --c-i: #a6ced3;
  --d-i: #429da9;
  --c-o: #d3c9a6;
  --d-o: #a99342;
  --c-t: #c6a6d3;
  --d-t: #8a42a9;
  --c-s: #a6d3b1;
  --d-s: #42a95b;
  --c-z: #d3a6aa;
  --d-z: #a9424a;
  --c-j: #a6b4d3;
  --d-j: #4261a9;
  --c-l: #d3baa6;
  --d-l: #a97042;
  --grid-line: rgba(23, 20, 26, 0.1);
  --arc: #17141a;
  --kickc: #ff4d1f;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 420px;
}

.rt__hint {
  margin: 0;
  font-weight: 700;
  font-size: clamp(10px, 2.8vw, 12px);
  line-height: 1.35;
  color: #17141a;
}

.rt__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.rt__field {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  width: clamp(180px, 52vw, 236px);
  height: clamp(180px, 52vw, 236px);
  border-radius: 16px;
  background: rgba(23, 20, 26, 0.05);
  box-shadow: inset 0 0 0 1px rgba(23, 20, 26, 0.16);
  cursor: pointer;
  touch-action: manipulation;
}

.rt__field:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

.rt__cv {
  display: block;
  width: 100%;
  height: 100%;
}

.rt__side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}

.rt__deg {
  font-weight: 800;
  font-size: clamp(22px, 6vw, 32px);
  line-height: 1;
  color: #17141a;
  font-variant-numeric: tabular-nums;
}

.rt__kick {
  font-weight: 700;
  font-size: clamp(10px, 2.6vw, 12px);
  color: #ff4d1f;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.rt__count {
  margin-top: 8px;
  font-weight: 800;
  font-size: clamp(20px, 5vw, 28px);
  line-height: 1;
  color: #17141a;
  font-variant-numeric: tabular-nums;
}

.rt__unit {
  font-weight: 600;
  font-size: clamp(9px, 2.4vw, 11px);
  line-height: 1.4;
  color: rgba(23, 20, 26, 0.82);
}

.rt__tip {
  margin: 8px 0 0;
  font-size: clamp(9px, 2.4vw, 11px);
  line-height: 1.5;
  color: rgba(23, 20, 26, 0.72);
}

@media (max-width: 340px) {
  .rt {
    gap: 4px;
  }
  .rt__field {
    width: 132px;
    height: 132px;
  }
  .rt__deg {
    font-size: 18px;
  }
  .rt__count {
    font-size: 16px;
    margin-top: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rt.is-still .rt__field {
    cursor: default !important;
  }
  .rt.is-still .rt__kick {
    opacity: 1;
  }
}
