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

.gb {
  width: 100%;
  max-width: 280px;
  background: #fff7e6;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  box-sizing: border-box;
}

.gb__head {
  margin-bottom: 12px;
}

.gb__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(23, 20, 26, 0.72);
  text-transform: uppercase;
}

.gb__lanes {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gb__row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 22px;
}

.gb__laneLabel {
  width: 14px;
  font-size: 12px;
  font-weight: 700;
  color: #17141a;
  flex: 0 0 auto;
}

.gb__laneTrack {
  position: relative;
  flex: 1 1 auto;
  height: 10px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.1);
  overflow: hidden;
}

.gb__laneFill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: #2f6df6;
  will-change: width;
}

.gb__laneFill--lead {
  background: #0a4fe8;
}

.gb__laneLead {
  position: absolute;
  top: 0;
  height: 100%;
  width: 0%;
  left: 0%;
  background: #4cd4a6;
  opacity: 0;
  will-change: width, left, opacity;
}

.gb__crown {
  position: absolute;
  left: -2px;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent #c93000;
  transform: translateY(0px);
  will-change: transform;
}

.gb__hit {
  margin-top: 16px;
  width: 100%;
  border: none;
  border-radius: 12px;
  background: #2f6df6;
  color: #fff7e6;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  padding: 12px 0;
  cursor: pointer;
}

.gb__hit:active {
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

@media (max-width: 340px) {
  .gb {
    max-width: 220px;
    padding: 12px;
  }
  .gb__head {
    margin-bottom: 8px;
  }
  .gb__label {
    font-size: 10px;
  }
  .gb__lanes {
    gap: 4px;
  }
  .gb__row {
    height: 14px;
    gap: 4px;
  }
  .gb__laneLabel {
    font-size: 10px;
  }
  .gb__crown {
    border-width: 4px 0 4px 6px;
  }
  .gb__hit {
    margin-top: 8px;
    padding: 8px 0;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gb__laneFill, .gb__laneLead, .gb__crown {
    transition: none !important;
  }
}
