/* The ticker tape, clickable (ticker.js), shared by every mode. Each mode's skin draws the strip (#ticker in Fable, .as-ticker-strip in
   Astra and 3D below); this file has only what the links need: buttons that look like the tape's words, the focus ring, and the pause.
   The state rules are !important because a skin's own "#id .run { animation: ... }" would otherwise set the play state back. */
.as-ticker .as-tick { all: unset; display: inline; white-space: nowrap; cursor: default; border-radius: 3px; }
.as-ticker button.as-tick, .as-ticker a.as-tick { cursor: pointer; }
.as-ticker button.as-tick:hover, .as-ticker a.as-tick:hover { text-decoration: underline; text-underline-offset: 3px; }
.as-ticker .as-tick b, .as-ticker .as-tick i { display: inline; }
.as-ticker .as-tick i { margin-left: 0.8em; }
.as-ticker .as-tick:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.as-ticker .as-tick[data-kind="track"]::before { content: "\266A  "; }
.as-ticker .as-tick[data-kind="track"].playing::before { content: "\25A0  "; }
.as-ticker .as-tick[data-kind="pr"]::after, .as-ticker .as-tick[data-kind="release"]::after { content: " \2197"; }
.as-ticker:hover .run, .as-ticker.held .run { animation-play-state: paused !important; }
/* keyboard focus: a still row that scrolls to the focused item */
.as-ticker.keyed .tape { overflow-x: auto !important; scrollbar-width: none; }
.as-ticker.still .run { animation: none !important; padding-left: 10px !important; }
.as-ticker.keyed .run { animation: none !important; padding-left: 10px !important; padding-right: 10px; }
.as-ticker-note { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); z-index: 3; padding: 2px 8px; border-radius: 4px; font: 600 11px/1.4 system-ui, sans-serif; color: #111; background: #f2c14e; }

/* a plain strip for a mode with no tape of its own (Astra, 3D); the mode's skin may restyle it */
.as-ticker-strip { position: relative; flex: none; height: 28px; overflow: hidden; display: flex; align-items: center; background: rgba(10, 11, 16, 0.86); border-top: 1px solid rgba(255, 255, 255, 0.08); color: #d8d4c8; }
.as-ticker-strip .tape { position: absolute; inset: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.as-ticker-strip .run { position: absolute; top: 0; height: 100%; display: inline-flex; align-items: center; gap: 2.4em; white-space: nowrap; font: 500 12px/1 ui-monospace, monospace; letter-spacing: 0.04em; padding-left: 100%; animation: as-tape 90s linear infinite; }
.as-ticker-strip .run b { color: var(--pc, #f2c14e); font-weight: 600; }
.as-ticker-strip .run i { font-style: normal; opacity: 0.55; }
@keyframes as-tape { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .as-ticker-strip .run { animation: none; padding-left: 10px; } .as-ticker-strip .tape { overflow-x: auto; } }
body.still .as-ticker-strip .run { animation: none; padding-left: 10px; }

/* 3D (dashboard.js): the strip along the bottom edge in landscape, and the bottom panels ride above it; portrait has the tab bar there,
   so no strip */
body.as-tape3d #as-ticker { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; height: 26px; background: rgba(12, 13, 16, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (min-aspect-ratio: 1/1) {
  body.as-tape3d #as-agent, body.as-tape3d #as-call, body.as-tape3d #as-sessioncol { bottom: 38px; }
  body.as-tape3d #as-talk { bottom: calc(38px + var(--kb, 0px)); max-height: min(66vh, 620px, calc(100vh - var(--kb, 0px) - 50px)); }
}
@media (max-aspect-ratio: 999/1000) { body.as-tape3d #as-ticker { display: none; } }
