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

.ac {
  --night: rgb(19.937254902%, 10.5254901961%, 10.431372549%);
  --night-hi: rgb(34.4941176471%, 14.1019607843%, 10.7450980392%);
  --ridge: rgb(14.4784313725%, 9.1843137255%, 10.3137254902%);
  --aur-a1: rgb(70.5176470588%, 92.9176470588%, 85.3411764706%);
  --aur-a2: #ff9ebb;
  --aur-b1: #b9a0ff;
  --aur-b2: rgb(70.5176470588%, 92.9176470588%, 85.3411764706%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 424px;
}

.ac__hint {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-weight: 700;
  font-size: clamp(10px, 2.8vw, 12px);
  line-height: 1.35;
  color: #17141a;
}

.ac__ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #17141a;
}

.ac__field {
  position: relative;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  background: rgb(19.937254902%, 10.5254901961%, 10.431372549%);
  box-shadow: inset 0 0 0 1px rgba(255, 247, 230, 0.18);
  cursor: grab;
  touch-action: none;
}

.ac__field:active {
  cursor: grabbing;
}

.ac__field:focus-visible {
  outline: 2px solid #ffd23f;
  outline-offset: 2px;
}

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

.ac__badge {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.78);
  color: #fff7e6;
  font-weight: 700;
  font-size: 11px;
}

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

.ac__dial {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 11px;
  color: #17141a;
}

.ac__dial input[type=range] {
  width: 96px;
  margin: 0;
  accent-color: #5b8cf8;
}

.ac__dial input[type=number] {
  width: 40px;
  margin: 0;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(23, 20, 26, 0.3);
  background: rgba(255, 255, 255, 0.5);
  color: #17141a;
  font-weight: 700;
  font-size: 11px;
}

.ac__val {
  color: #c93000;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 340px) {
  .ac {
    gap: 4px;
  }
  .ac__field {
    height: 100px;
  }
  .ac__badge {
    font-size: 10px;
    padding: 0 4px;
  }
  .ac__bar {
    gap: 8px;
  }
  .ac__dial {
    gap: 4px;
  }
  .ac__dial input[type=range] {
    width: 60px;
  }
  .ac__dial input[type=number] {
    width: 32px;
  }
  .ac__hint {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ac.is-still .ac__field {
    cursor: default !important;
  }
  .ac.is-still .ac__field:active {
    cursor: default !important;
  }
}
