


.mtt_stage {
  --mtt-bg: var(--warm-50);
  --mtt-tile-2: #e8e8e4;
  --mtt-tile-3: #dededa;
  --mtt-fg-soft: #9a9a96;
  --mtt-ink: #141314;
  --mtt-tooltip-fg: var(--warm-50);
  --mtt-focus: rgba(16, 16, 16, 0.3);
  --mtt-margin: clamp(20px, 2.8vw, 48px);
  --mtt-max-width: 160px;
  --mtt-sans: 'Switzer', -apple-system, BlinkMacSystemFont, sans-serif;
  --mtt-pill-h: 48px;
}

.mtt_stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mtt-bg, var(--warm-50));
  color: var(--mtt-ink, #141314);
  font-family: var(--mtt-sans);
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Goo layer: transient MASS only. A pill shape and a tooltip shape exist
   solely while a pour or a sink runs, always seeded from the crisp
   surfaces' live geometry, and are wiped at the start and end of every
   transition. The crisp pill and the crisp tooltip surface sit above and
   are the only things ever seen; the goo adds the neck in the gap. */
.mtt_goo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.mtt_filter_svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.mtt_goo_shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  background-color: var(--mtt-ink, #141314);
  opacity: 0;
  transform-origin: 0 0;
  will-change: transform, width, height;
}

.mtt_goo_plate {
  border-radius: 999px;
}

.mtt_goo_tooltip {
  border-radius: 10px;
}

.mtt_goo_neck {
  border-radius: 999px;
}

.mtt_row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - var(--mtt-margin, 40px) * 2);
  padding: 0 var(--mtt-margin, 40px);
}

.mtt_pill {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  height: var(--mtt-pill-h, 48px);
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  color: var(--mtt-ink, #141314);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.mtt_pill_icon {
  width: var(--mtt-pill-h, 48px);
  padding: 0;
  justify-content: center;
}

.mtt_pill:focus-visible {
  outline: 1px solid var(--mtt-focus, rgba(16, 16, 16, 0.3));
  outline-offset: 2px;
}

/* crisp pill: opaque grey fill so the goo mass never shows through it */
.mtt_pill_plate {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background-color: var(--mtt-tile-2, #e8e8e4);
  transition: background-color 0.35s cubic-bezier(0.3, 0.9, 0.1, 1);
}

.mtt_pill:hover .mtt_pill_plate {
  background-color: var(--mtt-tile-3, #dededa);
}

.mtt_pill_glyph {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mtt_pill_text {
  position: relative;
}

/* The tooltip: ONE crisp surface (radius 10, never scaled, never
   re-radiused) plus the caption. Real width/height + x/y (not
   transform-only): a single out-of-flow element, nothing else reflows. */
.mtt_tooltip {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
  border-radius: 10px;
  pointer-events: none;
  z-index: 1;
}

.mtt_tooltip_surface {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background-color: var(--mtt-ink, #141314);
}

/* Centred in the surface with a pinned width (JS sets it to the measured
   caption), so the text never reflows and is clipped symmetrically while the
   surface is smaller than it. */
.mtt_tooltip_text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  box-sizing: border-box;
  text-align: center;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--mtt-tooltip-fg, var(--warm-50));
  opacity: 0;
}

/* Offscreen measuring clone - same box model as the tooltip text so its
   rendered size (capped at --mtt-max-width) predicts the real target. */
.mtt_measure {
  position: fixed;
  left: -9999px;
  top: -9999px;
  display: inline-block;
  visibility: hidden;
  pointer-events: none;
  max-width: var(--mtt-max-width, 160px);
  padding: 8px 12px;
  font-family: var(--mtt-sans);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

@media (max-width: 767px) {
  .mtt_row {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Scope the supplied toolbar component to one footer icon. */
.footer_soundtrack.mtt_stage{position:relative;display:block;width:60px;height:60px;min-height:0;overflow:visible;background:transparent;--mtt-sans:var(--font-body);--mtt-ink:var(--color-paper);--mtt-tooltip-fg:var(--color-ink)}
.footer_soundtrack .mtt_row{padding:0;max-width:none}
.footer_soundtrack .mtt_goo{inset:auto;left:-80px;top:-100px;width:220px;height:200px}
.footer_soundtrack .mtt_goo_shape{margin-left:80px;margin-top:100px}
.footer_soundtrack .mtt_tooltip{box-shadow:0 6px 16px rgb(0 0 0 / .15)}
.footer_soundtrack .mtt_tooltip_text{font-family:var(--font-body);white-space:nowrap}
