/*! Bead Rail (bead-rail 1.0.0) by Frontier Templates. Styles for the vanilla build.
Licensed gem: Licensed with Full Access, for the sites you build; do not resell the gem itself. https://frontiertemplates.com/gems/bead-rail */
/* Bead Rail. Every rule is scoped to .brl so the gem drops into any page. Give it a width; it sets its own height. */
.brl {
  --brl-accent: #ff8a3d;
  --brl-bg: #101114;
  --brl-ink: #f3f1ee;
  --brl-mute: rgba(243, 241, 238, 0.58);
  --brl-bead: #3a3d45;
  --brl-wire: rgba(243, 241, 238, 0.32);
  --brl-bw: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  min-height: 300px;
  padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 48px);
  border-radius: 24px;
  background: radial-gradient(80% 70% at 50% 100%, color-mix(in srgb, var(--brl-accent) 10%, transparent), transparent 70%), var(--brl-bg);
  color: var(--brl-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
.brl-light {
  --brl-bg: #f6f4f0;
  --brl-ink: #16171a;
  --brl-mute: rgba(22, 23, 26, 0.56);
  --brl-bead: #d9d5ce;
  --brl-wire: rgba(22, 23, 26, 0.28);
}
/* the root sizes itself the same whatever the host page's reset says */
.brl, .brl *, .brl *::before, .brl *::after { box-sizing: border-box; }
.brl-read {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}
.brl-num {
  display: inline-flex;
  font-size: clamp(64px, 11vw, 120px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.04em;
}
.brl-d {
  position: relative;
  display: inline-block;
  min-width: 0.6em;
  height: 1em;
  overflow: hidden;
  text-align: center;
}
.brl-roll { position: absolute; inset: 0; text-align: center; }
.brl-unit { font-size: clamp(17px, 2vw, 22px); color: var(--brl-mute); }
.brl-total {
  margin: 10px 0 0;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--brl-mute);
  font-variant-numeric: tabular-nums;
}
.brl-total[hidden] { display: none; }
.brl-track {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin-top: clamp(26px, 4vw, 44px);
  border-radius: 18px;
}
.brl-track:focus-within { box-shadow: 0 0 0 2px color-mix(in srgb, var(--brl-accent) 80%, transparent); }
.brl-rail {
  position: relative;
  height: calc(var(--brl-bw) * 2.1 + 28px);
  max-height: 96px;
  min-height: 56px;
}
.brl-wire {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--brl-wire);
}
.brl-post {
  position: absolute;
  left: 6px;
  top: 18%;
  bottom: 18%;
  width: 4px;
  border-radius: 4px;
  background: var(--brl-wire);
}
.brl-post-r { left: auto; right: 6px; }
.brl-bead {
  --f: 0;
  --k: 0;
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--brl-bw);
  height: clamp(26px, calc(var(--brl-bw) * 2.1), 68px);
  transform-origin: 50% 50%;
  translate: 0 -50%;
  border-radius: 50%;
  background:
    radial-gradient(70% 50% at 35% 28%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%),
    radial-gradient(90% 70% at 60% 80%, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 70%),
    color-mix(in srgb, var(--brl-accent) calc(var(--f) * 100%), var(--brl-bead));
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35), 0 0 calc(var(--k) * 18px) color-mix(in srgb, var(--brl-accent) calc(var(--k) * 90%), transparent);
  pointer-events: none;
}
.brl-ghost {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  opacity: 0;
  pointer-events: none;
}
.brl-ghost::before {
  content: "";
  position: absolute;
  top: 22%;
  bottom: 22%;
  left: -1px;
  width: 2px;
  border-radius: 2px;
  background: var(--brl-accent);
}
.brl-ghost b {
  position: absolute;
  bottom: calc(100% - 10px);
  left: 0;
  translate: -50% 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--brl-accent);
  color: #111;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.brl-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.brl-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
