/* ============================================================
   Class2Class . GROWTH LAB GAME
   Only the running total and the channel sliders;
   the card, header, buttons and fields come from gamekit.css.
   ============================================================ */

/* ---------- the running total ---------- */
.glb-total {
  margin-top: 11px;
}
.glb-total-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.glb-total-n {
  font-family: var(--cg-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cg-ink);
  font-variant-numeric: tabular-nums;
}
.glb-of {
  font-size: 0.78rem;
  color: var(--cg-soft);
}
.glb-left {
  margin-left: auto;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--cg-soft);
  font-variant-numeric: tabular-nums;
}
.glb-left.is-done {
  color: var(--cg-success);
}
.glb-left.is-over {
  color: var(--c2c-red, #e8002d);
}
.glb-bar {
  display: block;
  margin-top: 5px;
  height: 4px;
  border-radius: 4px;
  background: var(--cg-line);
  overflow: hidden;
}
.glb-bar-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cg-purple), var(--cg-deep));
  transition: width 0.25s var(--cg-ease);
}
.glb-bar.is-over .glb-bar-fill {
  background: var(--c2c-red, #e8002d);
}

/* ---------- the channels, hairline rows in one card ---------- */
.glb-channels {
  margin-top: 11px;
  background: #fff;
  border: 1.5px solid var(--cg-line);
  border-radius: 12px;
  padding: 2px 12px 10px;
}
.glb-channel {
  padding: 8px 0 0;
}
.glb-channel + .glb-channel {
  border-top: 1px solid var(--cg-line);
  margin-top: 8px;
}
.glb-ch-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.glb-ch-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--cg-ink);
}
.glb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.glb-amount {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--cg-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.glb-ch-detail {
  margin: 2px 0 0;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--cg-soft);
}
.glb-ch-controls {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.glb-step-btn {
  width: 25px;
  height: 25px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--cg-line);
  border-radius: 8px;
  background: #fff;
  color: var(--cg-ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.glb-step-btn:hover {
  border-color: var(--cg-purple);
  color: var(--cg-deep);
}

/* the slider, styled the same way in both engines */
.glb-slider {
  flex: 1 1 auto;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 4px;
  background: var(--cg-line);
  cursor: pointer;
}
.glb-slider:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(129, 87, 217, 0.22);
}
.glb-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--cg-purple);
  cursor: grab;
  box-shadow: 0 3px 8px -3px rgba(83, 56, 158, 0.7);
}
.glb-slider::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--cg-purple);
  cursor: grab;
  box-shadow: 0 3px 8px -3px rgba(83, 56, 158, 0.7);
}

/* ---------- the recap while they explain ---------- */
.glb-recap-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.glb-recap-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.glb-recap-list li + li {
  margin-top: 5px;
}
.glb-recap-list b {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .glb-bar-fill,
  .glb-step-btn {
    transition: none;
  }
}
