/* Shared gesture and spacing rules for the compact editorial experience. */
.site-symbol-icon { display:none; }
.maker-portrait-toggle { display:block; width:100%; height:100%; padding:0; border:0; background:transparent; color:inherit; cursor:pointer; clip-path:none!important; }
.maker-portrait-toggle:focus-visible { outline:2px solid var(--accent-ui); outline-offset:4px; }
body[data-page="about"] #about-section .makers-portraits figure:focus-within .maker-tooltip { opacity:1; transform:none; }

@media(max-width:1200px) {
  .swipe-surface { touch-action:pan-y pinch-zoom; }
  .swipe-surface :is(img,canvas,video) { -webkit-user-drag:none; user-select:none; }
  .site-symbol { display:inline-flex; align-items:center; vertical-align:-.13em; }
  .site-symbol-text { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .site-symbol-icon { display:inline-block; width:1em; height:1em; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; flex:none; }
  html[data-theme] body#top[data-page]:not(.game-active) .site-header {
    background:color-mix(in srgb,var(--header-bg) 70%,transparent)!important;
    -webkit-backdrop-filter:blur(22px) saturate(135%)!important;
    backdrop-filter:blur(22px) saturate(135%)!important;
    transition:transform .25s cubic-bezier(.2,.7,.2,1)!important;
    will-change:transform;
  }
  html[data-theme].mobile-header-hidden body#top[data-page]:not(.game-active) .site-header { transform:translateY(calc(-100% - 2px))!important; }
  html[data-theme].site-menu-open body#top[data-page]:not(.game-active) .site-header { transform:none!important; background:var(--header-bg)!important; }
  html[data-theme] body#top[data-page="game"] #main :is(.dossier-card-track,.manifest-mobile-track,#shared-how-to-play .playbook) {
    gap:16px!important; touch-action:pan-y pinch-zoom!important;
    scroll-behavior:smooth; overscroll-behavior-x:contain;
  }
  html[data-theme] body#top[data-page="game"] #main :is(.dossier-card-track>.dossier-detail:not(.dossier-card-measure),.manifest-mobile-track>.manifest-mobile-card,#shared-how-to-play .playbook>.playbook-panel) {
    box-sizing:border-box; flex:0 0 100%!important; scroll-snap-align:start; scroll-snap-stop:always;
  }
  html[data-theme] body#top[data-page="game"] #main #shared-how-to-play .playbook-panel { margin:0!important; }
  html[data-theme] body#top[data-page="about"] #about-section .makers-portraits figure {
    height:auto!important; aspect-ratio:auto!important; transform:none!important; overflow:visible!important;
    display:flex; flex-direction:column; align-items:stretch; background:transparent!important;
  }
  html[data-theme] body#top[data-page="about"] #about-section .maker-portrait-toggle {
    flex:none; height:auto; aspect-ratio:4/5; clip-path:none!important;
    border:1px solid color-mix(in srgb,var(--control-line,var(--line)) 65%,transparent);
    transition:border-color .2s ease;
  }
  html[data-theme] body#top[data-page="about"] #about-section .name-revealed .maker-portrait-toggle {
    border-color:var(--accent-ui,var(--accent))!important;
  }
  html[data-theme] body#top[data-page="about"] #about-section .maker-portrait-toggle img { width:100%!important; height:100%!important; transform:none!important; border:0!important; }
  html[data-theme] body#top[data-page="about"] #about-section .makers-portraits figure::before,
  html[data-theme] body#top[data-page="about"] #about-section .makers-portraits figure::after { display:none!important; content:none!important; animation:none!important; }
  html[data-theme] body#top[data-page="about"] #about-section .maker-tooltip {
    box-sizing:border-box; display:flex!important; justify-content:center; align-items:flex-start;
    position:static!important; inset:auto!important; width:100%!important; min-height:38px; margin:0!important;
    padding:10px 4px 2px!important; border:0!important; background:transparent!important;
    color:var(--sc-text,var(--ink))!important;
    font:700 11px/1.35 Orbitron,Inter,sans-serif!important; letter-spacing:.08em!important;
    text-align:center!important; white-space:normal!important; overflow-wrap:normal;
    opacity:0!important; visibility:hidden!important; transform:none!important;
  }
  html[data-theme] body#top[data-page="about"] #about-section .name-revealed .maker-tooltip { opacity:1!important; visibility:visible!important; }
}
@media(max-width:700px) {
  html[data-theme] body#top[data-page="game"] #main #hero-section .campaign-title { display:grid!important; row-gap:8px!important; }
}
@media(prefers-reduced-motion:reduce) {
  html[data-theme] body#top[data-page]:not(.game-active) .site-header { transition:none!important; }
  html[data-theme] body#top[data-page="game"] #main :is(.dossier-card-track,.manifest-mobile-track,#shared-how-to-play .playbook) { scroll-behavior:auto; }
}
