

.panel-slot img,
.panel-slot video,
.comic-frame img,
.portrait-still img,
.cue-insert img,
.lens-glass img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}


.lens-glass {
  position: fixed;
  z-index: 60;                       
  width: var(--lg-size, 168px);
  height: var(--lg-size, 168px);
  border-radius: 50%;
  pointer-events: none;              
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 120ms ease-out, transform 120ms ease-out;
  filter: drop-shadow(3px 5px 10px rgba(8, 12, 16, 0.5));
}
.lens-glass.in { opacity: 1; transform: scale(1); }

.lens-glass .lg-view {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  background: #0b1116;
}
.lens-glass .lg-img {
  position: absolute;
  display: block;
  max-width: none;
  max-height: none;
  filter: contrast(1.03) brightness(1.04);
}

.lens-glass .lg-rim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 7px solid var(--pp-card, #ede6d6);
  box-shadow:
    inset 0 0 0 1px rgba(40, 32, 22, 0.55),
    inset 0 0 22px 6px rgba(12, 18, 24, 0.34),
    inset 2px 3px 10px rgba(255, 250, 232, 0.16),
    0 0 0 1px rgba(40, 32, 22, 0.4);
  background:
    linear-gradient(150deg, rgba(255, 250, 232, 0.5), rgba(255, 250, 232, 0) 38%)
      border-box;
}


.hud-specs {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 30px;
  margin: 0 2px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: none;
  cursor: pointer;
  opacity: 0.62;
  transition: opacity 160ms ease;
}
.hud-specs:hover, .hud-specs.is-on { opacity: 1; }
.hud-specs:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(238, 227, 205, 0.92), 0 0 0 4px rgba(142, 47, 42, 0.9);
  opacity: 1;
}
.hud-specs::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}
.hud-specs .hs-body {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.hud-specs .hs-lens {
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--pp-brass, #b79a5e);
  border-radius: 50%;
}
.hud-specs .hs-r { margin-left: -4px; }
.hud-specs .hs-bridge {
  width: 5px;
  height: 1.5px;
  background: var(--pp-brass, #b79a5e);
}
.hud-specs.is-on .hs-r { margin-left: 0; }
.hud-specs.is-on .hs-lens { box-shadow: 0 0 6px rgba(183, 154, 94, 0.55); }


.lens-list {
  position: absolute;
  z-index: 11;
  right: 3.5%;
  bottom: 16%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 14em;
  max-width: 19em;
  padding: 0.35em 0.4em 0.5em 0.9em;
  background-color: color-mix(in srgb, var(--pp-card, #ede6d6) 92%, #ffffff);
  background-image:
    linear-gradient(to right, transparent 0.55em, var(--pp-red-dim, rgba(142, 47, 42, 0.55)) 0.55em, var(--pp-red-dim, rgba(142, 47, 42, 0.55)) calc(0.55em + 1px), transparent calc(0.55em + 1px));
  clip-path: polygon(0 4%, 6% 0, 32% 3%, 61% 0, 100% 3%, 100% 100%, 0 100%);
  box-shadow: 3px 5px 12px rgba(8, 12, 16, 0.42);
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: auto;
}
.lens-list.in { opacity: 1; transform: translateY(0); }

.lens-list .ll-head {
  margin: 0.2em 0 0.1em;
  font-family: var(--font-hand, cursive);
  font-size: 0.95rem;
  color: var(--pp-graphite, #3a3f45);
}
.lens-list .ll-row {
  display: block;
  width: 100%;
  min-height: 2.1em;
  padding: 0.32em 0.4em;
  border: 0;
  border-bottom: 1px solid var(--pp-rule, rgba(43, 58, 85, 0.28));
  border-radius: 0;
  background: none;
  font-family: var(--font-hand, cursive);
  font-size: clamp(0.92rem, 1.35vw, 1.06rem);
  line-height: 1.3;
  text-align: left;
  color: var(--pp-graphite, #3a3f45);
  cursor: pointer;
}
.lens-list .ll-row:last-child { border-bottom: 0; }
.lens-list .ll-row:hover { color: var(--pp-type, #22242b); }
.lens-list .ll-row:focus-visible {
  outline: 2px solid var(--pp-graphite, #3a3f45);
  outline-offset: -2px;
  color: var(--pp-type, #22242b);
}


.lens-slip {
  position: absolute;
  z-index: 9;
  left: 3.5%;
  top: 6%;
  box-sizing: border-box;
  max-width: min(24ch, 38%);
  padding: 0.62em 0.9em 0.72em;
  color: var(--pp-graphite, #3a3f45);
  background-color: var(--pp-card, #ede6d6);
  background-image:
    radial-gradient(120% 90% at 18% 8%, rgba(255, 250, 232, 0.5), rgba(255, 250, 232, 0) 64%),
    repeating-linear-gradient(97deg, rgba(58, 63, 69, 0.035) 0 2px, rgba(58, 63, 69, 0) 2px 6px);
  clip-path: polygon(0 2%, 98% 0, 100% 96%, 3% 100%, 1% 52%);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.1), 5px 7px 14px rgba(8, 12, 16, 0.42);
  transform: rotate(-0.7deg) translateY(4px);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}
.lens-slip.in { opacity: 1; transform: rotate(-0.7deg) translateY(0); }
.lens-slip .ls-hand {
  margin: 0;
  font-family: var(--font-hand, cursive);
  font-size: clamp(0.95rem, 1.4vw, 1.14rem);
  line-height: 1.25;
}


@media (max-width: 640px) {
  .lens-slip {
    left: 3.5%;
    right: 3.5%;
    top: auto;
    bottom: calc(12.5% + 0.5em);
    max-width: none;
  }
  .lens-list.is-sheet {
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    min-width: 0;
    padding: 0.5em 0.6em 0.8em 1.1em;
    clip-path: polygon(0 6%, 8% 0, 34% 4%, 66% 0, 100% 5%, 100% 100%, 0 100%);
  }
  .lens-list.is-sheet .ll-row {
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 1.02rem;
  }
}


@media (prefers-reduced-motion: reduce) {
  .lens-glass, .lens-list, .lens-slip { transition: none; }
  .lens-glass { transform: none; opacity: 1; }
  .lens-glass.in { transform: none; }
  .lens-list, .lens-slip { transform: none; }
  .lens-list.in, .lens-slip.in { transform: none; }
}

:is(body.reduce-motion, :root.rm) .lens-glass,
:is(body.reduce-motion, :root.rm) .lens-list,
:is(body.reduce-motion, :root.rm) .lens-slip { transition: none; transform: none; }
:is(body.reduce-motion, :root.rm) .lens-glass { opacity: 1; }

@media (forced-colors: active) {
  .lens-glass .lg-rim { border-color: CanvasText; }
  .lens-list, .lens-slip { border: 1px solid CanvasText; background: Canvas; clip-path: none; }
  .hud-specs .hs-lens, .hud-specs .hs-bridge { border-color: CanvasText; background: CanvasText; }
}
