/* Explicitly opted-in page introductions, never modal/form/result headings.
   Keep document headings accessible while removing decorative vertical space. */
html body .compact-page-intro {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: .5rem 1rem;
    width: 100%;
    min-height: 0;
    margin: 0 0 .6rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}
html body .compact-page-intro :is(h1,.workspace-kicker,.eyebrow,.players-directory-kicker,.page-sub,.puzzle-heading-mark,.rush-launch-mark,.living-board-eyebrow),
html body .compact-page-intro > div:has(h1) > p:not([data-compact-preserve]),
html body .compact-page-intro > p:not([data-compact-preserve]),
html body .compact-page-intro:not(:has(a,button,input,select,[data-compact-preserve])) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}
html body .compact-page-intro > div:has(h1):not(:has(a,button,input,select,[data-compact-preserve])) { display: contents; }
html body .compact-page-intro::before,
html body .compact-page-intro::after,
html body .compact-battle-lobby::before,
html body .compact-battle-lobby::after { display: none; }
html body .compact-page-intro .rush-hero-actions { margin-left: auto; }
html body .compact-page-intro .bot-lobby-intro-note { margin: 0; padding: .35rem .6rem; font-size: .75rem; }
.play-context-note { flex: 0 0 auto; margin: 0 0 .45rem; font-size: .78rem; color: var(--theme-muted); }
.play-alternative [data-play-position-link] { width: 100%; text-align: left; }
.play-alternative [data-play-position-link] > span:last-child { margin-left: auto; }
.coordinate-duel .cd-nav { margin-bottom: .7rem; }
/* With the global title removed, the floating friends/bell controls can reach
   the top-right card on laptops. Reserve space inside that card only, not
   above the whole board or above a live game's controls. */
@media (min-width: 901px) and (max-width: 1550px) {
    body:has(.friends-presence-widget) .play-room .play-panel-setup .play-panel-head {
        padding-top: 3.75rem;
    }
}
html body .compact-battle-lobby {
    display: flex;
    min-height: 0;
    margin: 0 0 .75rem;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
}
.compact-battle-lobby .battle-copy { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; }
.compact-battle-lobby .battle-copy > p { margin: 0; }
html body .compact-battle-lobby :is(h1,.workspace-kicker,.battle-scoreboard) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}
/* The former game introduction was already hidden on phones. Retain its
   unrated/tournament context for assistive technology, without shrinking the
   clocks, move history or toolbar on a short mobile viewport. */
@media (max-width: 900px) {
    .play-room:has([data-play-ingame]:not([hidden])) > .play-context-note {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

/* The phone analysis title is already its compact navigation bar; retain it.
   Replay metadata/actions remain visible on desktop, including the result. */
@media (min-width: 901px) {
    html body .analysis-lab > .compact-analysis-intro {
        min-height: 0;
        margin: 0 0 .4rem;
        padding: 0;
        justify-content: flex-end;
    }
    html body .compact-analysis-intro > div:first-child,
    html body .compact-analysis-intro:not(:has(a,button)) {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        min-height: 0 !important;
        margin: -1px !important;
        padding: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
        clip-path: inset(50%) !important;
        white-space: nowrap !important;
    }
}
