/* Integration chrome only; the application uses the upstream stylesheet. */
.demo-notice, .demo-sources { max-width: 1800px; margin: auto; padding: 12px 18px; }
.demo-notice { display: flex; gap: 24px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.demo-notice > a { flex: none; }
.demo-notice b { color: var(--accent); }
.demo-notice a, .demo-sources a { color: var(--accent); }
.demo-sources { color: var(--muted); border-top: 1px solid var(--line); margin-top: 30px; padding-bottom: 40px; }
.demo-sources p { max-width: 110ch; }
.demo-sources h2 { color: var(--text); font-size: 18px; }
.demo-sources video { display: block; width: min(100%, 960px); }
/* The upstream clock and HP button share the same top-left coordinates. */
.movement-layers { top: 42px; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .5; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 700px) {
  .demo-notice { flex-direction: column; gap: 6px; }
  /* Keep the source grid and allow its panels to shrink on narrow screens. */
  .hero, .stage, .side, .hero-map, .player-wrap, .panel, .cards { min-width: 0; }
  .topbar-inner { flex-wrap: wrap; gap: 8px 20px; }
  .main-nav { max-width: 100%; overflow-x: auto; }
  .scoreline { flex-wrap: wrap; }
  .movement-controls { flex-wrap: wrap; }
  .movement-head { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Accessibility: kill-feed rows are real buttons inside list items. */
.feed li:has(> .feed-seek) { display: block; padding: 0; }
.feed-seek {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 28px;
  padding: 5px 6px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.feed-seek:hover { background: var(--panel-2); }
.feed-seek:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.hero-health:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* WCAG 2.5.8: small floor/help controls get a 24px minimum target. */
button.movement-floor, button.movement-help-btn { min-width: 24px; min-height: 24px; }

/* SVG icons in the demo notice (sprite inlined in the page). */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.demo-notice .icon { width: 1em; height: 1em; vertical-align: -0.125em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
