.lens-toggle {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid #efba4160;
  border-radius: 999px;
  background: #17191df2;
  color: var(--gold);
  box-shadow: 0 8px 32px #0005;
  font-size: 13px;
  font-weight: 550;
  backdrop-filter: blur(16px);
}
.lens-toggle[hidden], .lens-backdrop[hidden], .lens-edges[hidden] { display: none; }
body.home-v2 { position: relative; }
.lens-overlays { position: absolute; inset: 0; overflow: clip; pointer-events: none; }
.lens-text-layer[hidden] { display: none; }
.lens-backdrop, .lens-edges { transition: none !important; }
.lens-toggle:hover { border-color: var(--gold); background: #26221a; }
.lens-toggle[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.lens-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.lens-sheet { position: relative; z-index: 1; background: var(--paper); transition: none !important; }
.lens-sheet.lens-typeset * { -webkit-text-fill-color: color-mix(in srgb, currentColor calc((1 - var(--lens-blend, 0)) * 100%), transparent) !important; }
.lens-sheet.lens-typeset ::before, .lens-sheet.lens-typeset ::after { -webkit-text-fill-color: currentColor !important; }
.lens-sheet.lens-typeset :is(.store-award, .privacy-mark) { filter: opacity(calc(1 - var(--lens-blend, 0))); }
.lens-text-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100dvh; overflow: clip; z-index: 3; pointer-events: none; opacity: 0; user-select: none; }
.lens-text-layer > span { position: absolute; left: 0; top: 0; white-space: pre; transform-origin: 0 0; }
.lens-text-layer::highlight(lens-selection) { color: var(--ink); -webkit-text-fill-color: var(--ink); text-shadow: none; }
.lens-text-layer, .lens-text-layer > span { transition: none !important; animation: none !important; }
.lens-link-proxy { position: fixed; width: 6px; height: 6px; z-index: 89; opacity: 0; }
.lens-link-proxy[hidden] { display: none; }
.lens-backdrop { position: absolute; top: 76px; left: 0; width: 100%; height: calc(100dvh - 76px); overflow: clip; pointer-events: none; z-index: 2; opacity: 0; }
.lens-backdrop > svg { width: 100%; height: 100%; fill: none; stroke: #efba4121; stroke-width: .65; }
.lens-edges { position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0; }
.lens-edge {
  position: absolute;
  inset-inline: 0;
  height: clamp(64px, 10vh, 120px);
  backdrop-filter: url(#lens-edge-optics) blur(calc(var(--lens-edge-fade, 0) * 3px));
  background: rgb(11 12 15 / calc(var(--lens-edge-fade, 0) * .72));
}
.lens-edge-top { top: var(--lens-header, 76px); mask-image: linear-gradient(#000, transparent); }
.lens-edge-bottom { bottom: 0; mask-image: linear-gradient(transparent, #000); }
@media (max-width: 680px) {
  .lens-toggle { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); padding-inline: 16px; }
}
@media print {
  .lens-toggle, .lens-overlays, .lens-edges, .lens-link-proxy { display: none; }
  .lens-sheet.lens-typeset * { -webkit-text-fill-color: var(--lens-text-fill, currentColor) !important; }
  .lens-sheet.lens-typeset :is(.store-award, .privacy-mark) { filter: none; }
  .lens-sheet { filter: none !important; }
}
