/*! Tuning Dial (tuning-dial 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/tuning-dial */
/* Tuning Dial. Every rule is scoped to .tnd so the gem drops into any page. Give it a width and a height (about 480 px). */
.tnd {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  min-height: 420px;
  padding: 28px 16px;
  background: radial-gradient(90% 80% at 50% 20%, #2a2522, #151312 75%);
  color: #f3ead8;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
}
/* the root sizes itself the same whatever the host page's reset says */
.tnd, .tnd *, .tnd *::before, .tnd *::after { box-sizing: border-box; }
.tnd-set { width: 100%; max-width: 920px; }
/* the dial: backlit amber glass with the plans written over their ranges */
.tnd-dial { position: relative; border-radius: 16px; }
.tnd-dial:has(.tnd-range:focus-visible) { outline: 2px solid #ffd28a; outline-offset: 4px; }
.tnd-glass {
  position: relative;
  height: 112px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, #3b2610, #6a4417 45%, #4d3112);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 138, 0.18), inset 0 10px 24px rgba(0, 0, 0, 0.55), inset 0 -6px 14px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.06);
}
.tnd-scale { position: absolute; top: 0; bottom: 0; left: 30px; right: 30px; }
.tnd-glow {
  position: absolute;
  top: -40%;
  left: 0;
  width: 46%;
  height: 180%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 196, 110, 0.55), rgba(255, 170, 70, 0.18) 55%, rgba(255, 170, 70, 0));
  pointer-events: none;
}
.tnd-station {
  position: absolute;
  top: 10px;
  height: 26px;
  border-top: 1.5px solid rgba(255, 214, 150, 0.35);
  text-align: center;
}
.tnd-station b {
  display: block;
  padding-top: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  color: rgba(255, 220, 170, 0.62);
}
.tnd-station.tnd-tuned { border-top-color: #ffd28a; }
.tnd-station.tnd-tuned b { color: #fff1d6; text-shadow: 0 0 10px rgba(255, 200, 120, 0.85); }
.tnd-ticks {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  height: 18px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 220, 170, 0.55) 0 1px, transparent 1px 10px) bottom / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 220, 170, 0.75) 0 1.5px, transparent 1.5px 50px) bottom / 100% 16px no-repeat;
}
.tnd-mark {
  position: absolute;
  bottom: 8px;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 226, 184, 0.8);
}
.tnd-needle {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: #ff5b3a;
  box-shadow: 0 0 10px rgba(255, 91, 58, 0.8), 0 0 2px rgba(255, 255, 255, 0.6);
}
/* the real control: an invisible range input over the whole dial */
.tnd-range {
  position: absolute;
  top: 0;
  left: 30px;
  width: calc(100% - 60px);
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.tnd-range:focus-visible { outline: 2px solid #ffd28a; }
.tnd-lower { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 3vw, 36px); margin-top: 26px; }
/* the knob: a ridged rim, a cap with a dot that turns with the needle */
.tnd-knob {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: repeating-conic-gradient(#3a3532 0 4deg, #24201e 4deg 8deg);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.12);
  cursor: grab;
  touch-action: none;
}
.tnd-cap {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #6b625c, #3a3431 60%, #2a2523);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18), 0 2px 6px rgba(0, 0, 0, 0.5);
}
.tnd-dot { position: absolute; left: 50%; top: 8px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #ffd28a; box-shadow: 0 0 6px rgba(255, 200, 120, 0.8); }
.tnd-read { min-width: 0; }
.tnd-price { display: flex; align-items: flex-start; font-size: clamp(48px, 7vw, 76px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tnd-cur { font-size: 0.5em; margin: 0.08em 0.08em 0 0; color: #d9cbb2; }
.tnd-digits { display: flex; }
.tnd-col { display: block; height: 1em; overflow: hidden; }
.tnd-col.tnd-off { display: none; }
.tnd-strip { display: block; }
.tnd-strip b { display: block; height: 1em; font-weight: inherit; }
.tnd-sub { margin: 10px 0 0; font-size: 15px; line-height: 1.35; color: #c9bda8; }
.tnd-seats { color: #f3ead8; font-weight: 600; }
.tnd-live { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tnd-bill { display: flex; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.tnd-bill button {
  margin: 0;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #c9bda8;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}
.tnd-bill button small { font-size: 12px; color: #ffd28a; }
.tnd-bill button[aria-pressed="true"] { background: #f3ead8; color: #1d1915; }
.tnd-bill button[aria-pressed="true"] small { color: #9a5a12; }
.tnd-bill button:focus-visible { outline: 2px solid #ffd28a; outline-offset: 2px; }
@media (max-width: 640px) {
  .tnd-glass { height: 100px; }
  .tnd-station b { font-size: 10px; letter-spacing: 0.08em; }
  .tnd-lower { grid-template-columns: auto 1fr; }
  .tnd-knob { width: 88px; height: 88px; }
  .tnd-cap { inset: 10px; }
  .tnd-bill { grid-column: 1 / -1; justify-self: start; }
}
