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

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

.tcg {
  --tcg-c0: #ffffff;
  --tcg-c1: rgb(82.9411764706%, 93.5294117647%, 100%);
  --tcg-c2: rgb(67.7098039216%, 92.2431372549%, 83.9450980392%);
  --tcg-c3: rgb(91.9529411765%, 69.1529411765%, 62%);
  --tcg-c4: rgb(32.7529411765%, 11.5764705882%, 6.7294117647%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 424px;
}

.tcg__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;
}

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

.tcg__field {
  position: relative;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(23, 20, 26, 0.16);
}

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

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

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

.tcg__grow {
  flex: 1 1 auto;
  min-width: 120px;
}

.tcg__grow input {
  flex: 1 1 auto;
}

.tcg__dial input {
  width: 72px;
  margin: 0;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: rgba(23, 20, 26, 0.08);
  color: #17141a;
  font-weight: 700;
  font-size: 12px;
  font-family: inherit;
}

.tcg__dial input[type=range] {
  width: auto;
  padding: 0;
  accent-color: rgb(91.9529411765%, 69.1529411765%, 62%);
}

.tcg__dial input:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

@media (max-width: 340px) {
  .tcg {
    gap: 4px;
  }
  .tcg__field {
    height: 100px;
  }
  .tcg__dial input {
    width: 56px;
  }
  .tcg__hint {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tcg.is-still .tcg__field {
    cursor: default;
  }
}
