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

.sg {
  --fire-ink: #241b1d;
  --fire-amber: #f0a868;
  --fire-gold: #f6cf8a;
  --fire-rose: #eca0a8;
  --fire-ember: #d97a52;
  --fire-smoke: #c9c2c6;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 424px;
}

.sg__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: #c9c2c6;
}

.sg__ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #c9c2c6;
}

.sg__field {
  position: relative;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  background: #241b1d;
  box-shadow: inset 0 0 0 1px rgba(201, 194, 198, 0.18);
}

.sg__field:focus-visible {
  outline: 2px solid #f0a868;
  outline-offset: 2px;
}

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

.sg__badge {
  position: absolute;
  right: 8px;
  top: 8px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(36, 27, 29, 0.78);
  color: #c9c2c6;
  font-weight: 700;
  font-size: 11px;
}

.sg__badgeNum {
  font-size: 13px;
  color: #f6cf8a;
}

.sg__badgeUnit {
  font-weight: 700;
}

.sg__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.sg__meta {
  font-size: 10px;
  font-weight: 500;
  color: rgba(201, 194, 198, 0.72);
}

.sg__val {
  color: #f6cf8a;
  font-weight: 700;
}

.sg__meta--dim {
  font-size: 10px;
}

@media (max-width: 340px) {
  .sg {
    gap: 4px;
  }
  .sg__field {
    height: 100px;
  }
  .sg__badge {
    font-size: 10px;
    padding: 0 4px;
  }
  .sg__badgeNum {
    font-size: 11px;
  }
  .sg__meta--dim {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sg.is-still .sg__field {
    cursor: default !important;
  }
  .sg.is-still .sg__badge {
    opacity: 0.92 !important;
  }
}
