/* Heavier glass treatment for the turntable variations (T1–T5).
   Load AFTER base.css so it wins, and BEFORE each file's own <style>. */

.panel {
  /* The radius is a custom property so companions can derive from it (the
     concentric screen inset in ui.css needs outer radius - inset). Same 20px
     default as before, so T1-T5 and every other glass page are untouched. */
  --glass-radius: 20px;
  border-radius: var(--glass-radius, 20px);

  /* frosted body: bright at the top-left corner, thinning across the face */
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.20) 0%,
      rgba(255, 255, 255, 0.05) 38%,
      rgba(255, 255, 255, 0.02) 62%,
      rgba(255, 255, 255, 0.12) 100%
    );

  border: 1px solid rgba(255, 255, 255, 0.30);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.50),   /* top lip catching light */
    inset 0 -1px 0 rgba(255, 255, 255, 0.12),  /* bottom bounce */
    inset 0 0 40px rgba(255, 255, 255, 0.05),  /* interior haze */
    0 40px 90px -28px rgba(0, 0, 0, 0.85);

  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

/* the screenshot sits under the glass rather than on top of it */
.panel .site {
  opacity: 0.68;
}

/* specular streak raked across the face */
.panel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    116deg,
    transparent 26%,
    rgba(255, 255, 255, 0.20) 43%,
    rgba(255, 255, 255, 0.05) 52%,
    transparent 64%
  );
}

/* Depth falloff, driven by --dist (0 = front) so it scales to any panel count.
   Set as a plain declaration, not a [data-face] rule, so 4/6/8 all work. */
.panel {
  opacity: calc(1 - var(--dist, 0) * 0.20);
}
