.attention-figure {
  margin: 24px 0 0;
  font-family: Helvetica, Arial, sans-serif;
}
.attention-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.attention-stage {
  --reveal: 33%;
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #f4f4f5;
  isolation: isolate;
}
.attention-stage video, .attention-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.attention-stage video { object-fit: cover; }
.attention-stage canvas { clip-path: inset(0 0 0 var(--reveal)); }
.attention-badge {
  position: absolute;
  top: 10px;
  padding: 1px 7px;
  background: rgba(0,0,0,.3);
  color: rgba(255,255,255,.8);
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.6;
  pointer-events: none;
}
.attention-original { left: 10px; }
.attention-heatmap { right: 10px; }
.attention-divider {
  position: absolute;
  inset: 0 auto 0 var(--reveal);
  width: 2px;
  background: #fff;
  box-shadow: 0 0 3px #0006;
  transform: translateX(-1px);
  pointer-events: none;
}
.attention-divider span {
  position: absolute;
  top: 50%;
  left: 1px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #18181b;
  box-shadow: 0 1px 6px #0003;
  font-size: 21px;
}
.attention-reveal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: col-resize;
  touch-action: pan-y;
}
.attention-stage:has(.attention-reveal:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.attention-sound {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.3);
  color: rgba(255,255,255,.8);
  cursor: pointer;
}
.attention-sound:hover { background: rgba(0,0,0,.45); color: #fff; }
.attention-sound svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.attention-sound .wave { display: none; }
.attention-sound[aria-pressed="true"] .wave { display: inline; }
.attention-sound[aria-pressed="true"] .mute { display: none; }
.attention-sound:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.attention-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  min-height: 44px;
}
.attention-play[hidden] { display: none; }
.attention-status { margin: 9px 0 0; font-size: 12px; color: var(--ink-2); }
.attention-status:empty { display: none; }
@media (max-width: 600px) {
  .attention-grid { grid-template-columns: minmax(0, 1fr); max-width: 480px; margin: 0 auto; gap: 24px; }
}
