/* Build-time adapters for static interactive routes. Shared tokens and icons are
   defined by templates.css; no engine, auth or visibility state is owned here. */
@import url('/v2/templates.css?v=20261112open1');
:root body .dm-interactive-panel {
  display: block;
  margin-block: var(--dm-block-stack, 18px);
  max-width: 100%;
  min-width: 0;
  box-shadow: none;
}
:root body .dm-interactive-panel[hidden] { display: none !important; }
:root body .dm-interactive-panel > .dm-block-heading { margin-bottom: 18px; }
:root body .dm-interactive-panel .dm-block-heading :is(h1, h2, h3) {
  margin: 0;
  color: var(--ui-ink);
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.3;
  font-weight: 700;
  text-wrap: balance;
}
/* Previously screen-reader-only section titles now label the visible panel.
   IDs, localization attributes and focus targets stay on their original nodes. */
:root body .dm-interactive-panel > .dm-block-heading :is(.visually-hidden, .sr-only) {
  position: static; width: auto; height: auto; padding: 0; margin: 0;
  overflow: visible; clip: auto; clip-path: none; white-space: normal;
}
:root body .dm-interactive-panel > :is(p, ul, ol) { line-height: 1.65; }
:root body .dm-interactive-panel > :last-child { margin-bottom: 0; }
:root body .dm-interactive-panel .dm-interactive-panel {
  --block-padding: clamp(12px, 2vw, 20px);
  background: var(--ui-paper);
}
:root body .dm-interactive-panel[data-dm-interactive="keyboard"] {
  --block-padding: clamp(6px, 1.5vw, 18px);
}
@media (max-width: 600px) {
  :root body .dm-interactive-panel { --block-padding: 14px; }
  :root body .dm-interactive-panel > .dm-block-heading { gap: 10px; }
  :root body .dm-interactive-panel > .dm-block-heading .dm-icon {
    flex-basis: 36px; width: 36px; height: 36px;
  }
}
/* Keep the existing catalog grid and all its original card children. */
:root body .library-card-grid--all.dm-interactive-panel { display: grid; }
:root body .library-card-grid--all.dm-interactive-panel > .dm-block-heading { grid-column: 1 / -1; }
:root body .dm-interactive-panel .library-section-heading > .dm-block-heading { margin-bottom: 14px; }
/* A hidden game stage must not leave an empty titled shell on lock/results screens. */
:root body .dm-interactive-panel[data-interactive-shell="game"]:has(> .dm-block-body > [hidden]) { display: none; }
/* The statistics grid retains its columns; its title spans the whole row. */
:root body .detail-stats.dm-interactive-panel { display: grid; }
:root body .detail-stats.dm-interactive-panel > .dm-block-heading { grid-column: 1 / -1; }
