#publications { container-type: inline-size; --ink: #202020; --robot-ink: #202020; --demo-paper: #fff; }
#publications .has-paper-demo { display: grid; align-items: center; row-gap: .25rem; }
#publications .paper-bibliography { min-width: 0; }
#publications .has-paper-demo figure { -webkit-user-select: none; user-select: none; }
#publications .has-paper-demo canvas { display: block; width: 160px; height: 72px; image-rendering: pixelated; }
#publications .has-paper-demo figure [hidden] { display: none; }
#publications .paper-demo[data-scene="plant"] canvas { background-color: var(--demo-paper); }
@container (min-width: 540px) {
  #publications .has-paper-demo { grid-template-columns: minmax(0, 1fr) 180px; gap: 24px; }
  #publications .has-paper-demo figure { justify-self: end; }
}
#publications .paper-demo {
    position: relative;
    width: 160px;
    height: 72px;
    margin: 0;
    color: var(--ink);
    font: 10px/12px system-ui, -apple-system, "Hiragino Sans", sans-serif;
  }
#publications .review {
    position: absolute;
    top: 32px;
    left: 0;
    width: 160px;
    text-align: center;
    white-space: nowrap;
  }
#publications .word-window {
    display: inline-block;
    width: 80px;
    height: 15px;
    overflow: hidden;
    vertical-align: bottom;
    border-bottom: 1px solid currentColor;
    background: var(--demo-paper);
    font-weight: 600;
  }
#publications .word-reel { display: block; }
#publications .word-reel span { display: block; height: 15px; line-height: 15px; }
#publications .position-scale {
    position: absolute;
    bottom: 3px;
    left: 10px;
    width: 140px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font: 9px/1 ui-monospace, monospace;
    opacity: .64;
  }
#publications .schedule-labels {
    position: absolute;
    inset: auto 0 3px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    text-align: center;
    font: 9px/1 ui-monospace, monospace;
    opacity: .76;
  }
#publications .vocab-target {
    position: absolute;
    inset: 2px 0 auto;
    text-align: center;
    font-weight: 650;
  }
#publications .vocab-phrase {
    position: absolute;
    inset: 32px 16px auto;
    white-space: nowrap;
  }
#publications .vocab-phrase b {
    text-decoration: underline;
    text-underline-offset: 2px;
  }
#publications .demo-note {
    position: absolute;
    left: var(--x);
    top: var(--y);
    white-space: nowrap;
    font-size: var(--size, 10px);
  }
#publications .demo-voice {
    --voice-outline: color-mix(in srgb, currentColor 55%, transparent);
    position: absolute;
    left: var(--x, auto);
    right: var(--right, auto);
    top: var(--y);
    padding: 1px 5px;
    border: 1px solid var(--voice-outline);
    border-radius: 2px;
    background: var(--demo-paper);
    white-space: nowrap;
  }
#publications .demo-voice::after {
    content: "";
    position: absolute;
    left: var(--tail-x, auto);
    right: var(--tail-right, auto);
    bottom: -4px;
    width: 6px;
    height: 4px;
    background: var(--voice-outline);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
  }
#publications .robot-demo {
    position: relative;
    width: 160px;
    height: 72px;
    margin: 0;
    color: var(--robot-ink);
    font: 10px/12px system-ui, -apple-system, "Hiragino Sans", sans-serif;
  }
#publications .offscreen-voice {
    --voice-outline: color-mix(in srgb, currentColor 55%, transparent);
    position: absolute;
    inset-block-start: 1px;
    inset-inline-end: 6px;
    margin: 0;
    padding: 1px 5px;
    border: 1px solid var(--voice-outline);
    border-radius: 2px;
    background: #fff;
    white-space: nowrap;
  }
#publications .offscreen-voice::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 4px;
    width: 5px;
    height: 6px;
    background: var(--voice-outline);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
  }
