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

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

.gd {
  --gd-hi: #d8e8dc;
  --gd-mid: #9fb8ab;
  --gd-lo: #6a8279;
  --gd-core: #1d2a24;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 424px;
}

.gd__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: #fff7e6;
}

.gd__ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #ffd23f;
}

.gd__field {
  position: relative;
  height: 170px;
  border-radius: 16px;
  overflow: hidden;
  background: #17141a;
  box-shadow: inset 0 0 0 1px rgba(255, 247, 230, 0.14);
}

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

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

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

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

.gd__dial input {
  width: 72px;
  margin: 0;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.12);
  color: #fff7e6;
  font-weight: 700;
  font-size: 12px;
  font-family: inherit;
}

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

.gd__shuffle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.12);
  color: #fff7e6;
  font-weight: 700;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
}

.gd__shuffle:hover {
  background: rgba(255, 247, 230, 0.2);
}

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

.gd__val {
  color: #4cd4a6;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 340px) {
  .gd {
    gap: 4px;
  }
  .gd__field {
    height: 96px;
  }
  .gd__hint {
    font-size: 10px;
  }
  .gd__bar {
    gap: 8px;
  }
  .gd__dial input {
    width: 56px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gd__field {
    cursor: default !important;
  }
}
