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

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

.sm {
  --sm-floor: #f3ede0;
  --sm-wall: #2a241c;
  --sm-trail: #ffe0c0;
  --sm-food: #ffc4b3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 424px;
}

.sm__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: #3a3226;
}

.sm__field {
  position: relative;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  background: #f3ede0;
  box-shadow: inset 0 0 0 1px rgba(58, 50, 38, 0.18);
}

.sm__field:focus-visible {
  outline: 2px solid #2a241c;
  outline-offset: 2px;
}

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

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

.sm__meta {
  font-size: 10px;
  font-weight: 500;
  color: rgba(58, 50, 38, 0.72);
}

.sm__val {
  color: #3a3226;
  font-weight: 700;
}

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

@media (max-width: 340px) {
  .sm {
    gap: 4px;
  }
  .sm__field {
    height: 100px;
  }
  .sm__meta--dim {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sm.is-still .sm__field {
    cursor: default !important;
  }
}
