/* Separate backdrop layers keep the controls crisp even during a drag. */
#app main { bottom: 0 }
#app .view { padding-bottom: calc(109rem + var(--chrome-bottom)); scroll-padding-bottom: calc(109rem + var(--chrome-bottom)); }
#app .tabs {
  --side: clamp(9px, 3.8vw, 15px);
  inset-inline: var(--side);
  height: clamp(56px, 65rem, 64px);
  padding: 5px;
  border: 0;
  border-radius: 999px;
  touch-action: none;
  user-select: none;
}
#app .tabs::before {
  inset: 0;
  z-index: 0;
  border: 1px solid #ffffff24;
  border-radius: inherit;
  background: linear-gradient(180deg, #252321c7, #141311c7);
  box-shadow: inset 0 1px #ffffff12, 0 6px 21px #0007;
  backdrop-filter: blur(7px);
}
#app .tabs button[data-tab] {
  position: relative;
  z-index: 2;
  min-width: 0;
  border-radius: 999px;
  background: none;
  color: #e2dfd8;
  gap: 3px;
  font-size: clamp(10px, 3vw, 12px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.18px;
}
#app .tabs button[data-tab].active { color: #ffe487; }
#app .tabs button[data-tab] > span {
  transform: none;
  translate: none;
}
#app .tabs button[data-tab] .tab-icon { width: 23px; height: 23px; background: currentColor; }
.racco-glass-lens {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  top: 5px;
  bottom: 5px;
  width: var(--lens-w, 0px);
  transform: translateX(var(--lens-x, 0px));
  border-radius: 999px;
  background: linear-gradient(172deg, #ebc16829, #ba8f3717 70%, #c395351f);
  border: 1px solid #f7d88e33;
  box-shadow: inset 0 1px #fff3, 0 2px 6px #0005;
  backdrop-filter: blur(2px);
  transition: transform 230ms cubic-bezier(.2,.8,.25,1), backdrop-filter 200ms ease, background 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.racco-glass-lens::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(ellipse at 42% 2%, #fff0c336, transparent 70%);
  transition: opacity 180ms ease;
}
.tabs[data-lens-dragging] .racco-glass-lens {
  backdrop-filter: blur(26px) saturate(1.35);
  background: linear-gradient(172deg, #eac68548, #8b6a322b 85%);
  border-color: #ffe6ad7a;
  box-shadow: inset 0 1px #ffefc980, 0 2px 9px #0007;
  transition-property: backdrop-filter, background, box-shadow, border-color;
}
.tabs[data-lens-dragging] .racco-glass-lens::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .racco-glass-lens, .racco-glass-lens::after { transition: none; }
}
