/*! Tumblers (tumblers 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/tumblers */
/* Tumblers. Every rule is scoped to .tmb so the gem drops into any page. Give it a width and a height (about 340 px). */
.tmb {
  --tmb-n: 6;
  --tmb-open: 0;
  --tmb-w: clamp(40px, calc((100vw - 96px) / var(--tmb-n)), 84px);
  --tmb-h: calc(var(--tmb-w) * 2.15);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  overflow: hidden;
  isolation: isolate;
  min-height: 280px;
  padding: 24px 16px;
  background: radial-gradient(70% 80% at 50% 35%, #2a2c33, #15161a 75%);
  color: #e9e4d8;
  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 */
.tmb, .tmb *, .tmb *::before, .tmb *::after { box-sizing: border-box; }
.tmb-lock { position: relative; padding-top: calc(var(--tmb-w) * 0.9); }
/* the shackle: a steel loop over the plate that springs up when the code is right */
.tmb-shackle {
  position: absolute;
  left: 22%;
  right: 22%;
  top: calc(var(--tmb-w) * 0.15);
  height: calc(var(--tmb-w) * 1.6);
  border: calc(var(--tmb-w) * 0.2) solid #b9bdc6;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  border-color: #d7dae1 #8e939d #8e939d #d7dae1;
  transform-origin: 92% 100%;
  transform: translateY(calc(var(--tmb-open) * var(--tmb-w) * -0.55)) rotate(calc(var(--tmb-open) * -9deg));
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.25), 0 6px 14px rgba(0, 0, 0, 0.35);
}
.tmb-plate {
  position: relative;
  z-index: 1;
  padding: calc(var(--tmb-w) * 0.28);
  border-radius: calc(var(--tmb-w) * 0.3);
  background: linear-gradient(160deg, #3a3d45, #1f2126 60%, #2a2c32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -2px 4px rgba(0, 0, 0, 0.5), 0 18px 40px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.4);
}
.tmb-opened .tmb-plate { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -2px 4px rgba(0, 0, 0, 0.5), 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(217, 179, 102, 0.55); }
.tmb-wheels { display: flex; gap: calc(var(--tmb-w) * 0.14); }
/* a window onto a brass drum: dark at the top and bottom where it turns away */
.tmb-wheel {
  position: relative;
  display: block;
  width: var(--tmb-w);
  height: var(--tmb-h);
  overflow: hidden;
  border-radius: calc(var(--tmb-w) * 0.14);
  background: linear-gradient(180deg, #3b2a12 0%, #8a6a36 16%, #d9b979 38%, #f4e2b4 50%, #d9b979 62%, #8a6a36 84%, #3b2a12 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55), inset 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 -3px 6px rgba(0, 0, 0, 0.5);
  opacity: 0.62;
  transition: opacity 0.2s, box-shadow 0.2s;
}
.tmb-wheel.tmb-set { opacity: 1; }
.tmb-wheel.tmb-hover { opacity: 0.9; }
.tmb-wheel.tmb-on { opacity: 1; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55), inset 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 -3px 6px rgba(0, 0, 0, 0.5), 0 0 0 2px #f2d79c; }
/* the reading line across the middle */
.tmb-wheel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: calc(var(--tmb-h) / 2.6);
  transform: translateY(-50%);
  border-top: 1px solid rgba(59, 42, 18, 0.35);
  border-bottom: 1px solid rgba(255, 246, 220, 0.35);
  pointer-events: none;
}
.tmb-drum { position: absolute; inset: 0; }
.tmb-drum b {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: calc(var(--tmb-h) / 2.6);
  margin-top: calc(var(--tmb-h) / -5.2);
  display: grid;
  place-items: center;
  font-size: calc(var(--tmb-w) * 0.62);
  font-weight: 700;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #2b1d0b;
  text-shadow: 0 1px 0 rgba(255, 244, 214, 0.55), 0 -1px 0 rgba(0, 0, 0, 0.25);
}
/* the real input: on top of the wheels, invisible, so typing, paste and autofill go to it */
.tmb-input {
  position: absolute;
  inset: calc(var(--tmb-w) * 0.28);
  z-index: 2;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: calc(var(--tmb-w) * 0.14);
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  text-indent: -9999px;
  outline: none;
  cursor: ns-resize;
  -webkit-appearance: none;
  appearance: none;
}
.tmb-input::selection { background: transparent; }
.tmb-input:focus-visible { outline: 2px solid #f2d79c; outline-offset: calc(var(--tmb-w) * 0.12); }
.tmb-status { margin: 0; min-height: 1.4em; font-size: 15px; line-height: 1.4; letter-spacing: 0.02em; color: #b9b4a8; text-align: center; }
.tmb-opened .tmb-status { color: #f2d79c; }
@media (prefers-reduced-motion: reduce) {
  .tmb-wheel { transition: none; }
}
