@layer maxrooster {
    .header-register-short { display:none; }
    @media (width < 1024px) {
        .site-body .site-header .header-layout {
            grid-template-columns:minmax(0, 1fr) auto auto;
            grid-template-rows:auto;
            align-items:center;
            gap:clamp(.25rem, 1vw, .65rem);
        }
        .site-body .site-header .header-layout > .brand { grid-column:1; grid-row:1; min-width:0; }
        .site-body .site-header .header-layout > .header-account-actions {
            grid-column:2; grid-row:1; justify-content:end; gap:clamp(.25rem, 1vw, .65rem); flex-wrap:nowrap;
        }
        .site-body .site-header .header-layout > .menu-toggle { grid-column:3; grid-row:1; margin:0; }
        .site-body .site-header .header-layout .brand-logo { width:clamp(6.4rem, 26vw, 10.75rem); max-width:100%; }
        .site-body .site-header .header-layout :is(.menu-toggle,.header-account-actions > .btn,.header-user-link) { min-height:2.125rem; }
        .site-body .site-header .header-layout :is(.menu-toggle,.header-tool-link,.header-create-rooster,.header-user-link) {
            min-width:0; inline-size:2.125rem; block-size:2.125rem; padding:.35rem; justify-content:center;
        }
        .site-body .site-header .header-layout :is(.header-user-copy,.header-user-link > svg) { display:none; }
        .site-body .site-header .header-layout .header-user-avatar { inline-size:1.35rem; block-size:1.35rem; }
        .site-body .site-header .header-layout .header-guest-actions > :is(.header-cta,.header-login) {
            padding:.4rem .54rem; min-width:0; font-size:.65rem; white-space:nowrap;
        }
        .site-body .site-header .header-layout .header-tool-link svg { inline-size:1rem; block-size:1rem; }
    }
    @media (width < 576px) {
        .site-body .site-header .header-layout .header-member-shortcut { display:none; }
    }
    @media (width < 410px) {
        .site-body .site-header .header-register-long { display:none; }
        .site-body .site-header .header-register-short { display:inline; }
    }

    .site-body .mobile-primary-preview,
    .site-body .mobile-live-dock { display:none; }
    @media (width < 1024px) {
        .site-body .lab-panel .mobile-primary-preview {
            display:block; position:static; margin:0 auto .95rem; width:min(100%, 27rem);
            background:transparent; border:0; box-shadow:none;
        }
        .site-body .mobile-primary-preview .mobile-preview-frame { width:100%; border-radius:var(--bs-radius-5); }
        .site-body .lab-panel .mobile-primary-preview .mobile-trait-preview-art {
            position:relative; width:100%; height:auto; aspect-ratio:1; overflow:hidden;
        }
        .site-body .mobile-primary-preview .mobile-rooster-brand { padding:.55rem; }
        .site-body .mobile-primary-preview .mobile-rooster-brand img { height:1.25rem; }
        .site-body .lab-panel .mobile-live-dock:not([hidden]) {
            display:block; position:sticky; top:calc(var(--live-preview-header-height, 64px) + 8px);
            height:0; z-index:16; pointer-events:none; visibility:hidden;
        }
        .site-body .lab-panel .mobile-live-dock.is-visible { visibility:visible; }
        .site-body .mobile-live-dock .mobile-live-preview {
            position:absolute; inset:0 0 auto; display:flex; align-items:center; gap:.75rem;
            margin:0; padding:.375rem .65rem; background:#fff9eb; color:#272119;
            border:1px solid #d7c6a6; border-radius:var(--bs-radius-5); box-shadow:0 4px 15px #17171520;
        }
        .site-body .mobile-live-dock .mobile-trait-preview-art {
            position:relative; width:4.25rem; height:4.25rem; overflow:hidden;
        }
        .site-body .mobile-live-dock .mobile-trait-preview-copy { padding:0; }
        .site-body .mobile-live-dock .mobile-trait-preview-copy strong { color:#332a1b; font-size:.92rem; }
        .site-body .lab-panel :is(.trait-row button, .claim-button, #rooster-name) {
            scroll-margin-top:calc(var(--live-preview-header-height, 64px) + 104px);
        }
    }
    @media (768px <= width < 1024px) {
        .site-body.home-body .lab-panel .mobile-primary-preview { display:none; }
    }

    .site-body.henhouse-body .henhouse-guest-prompt {
        margin:0 0 1rem; --bs-card-bg:#fffaf0; --bs-card-border-color:#ded8c9;
        border-radius:var(--bs-radius-5);
    }
    .site-body.henhouse-body .henhouse-guest-prompt .card-body {
        display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.65rem 1.15rem;
        padding:clamp(.9rem, 1.7vw, 1.3rem);
    }
    .site-body.henhouse-body .henhouse-guest-prompt h2 {
        font-size:1.45rem; line-height:1.05; color:#211e17; margin:0 0 .3rem;
    }
    .site-body.henhouse-body .henhouse-guest-prompt p { color:#594f3c; margin:0; font-size:.875rem; }
    .site-body.henhouse-body .henhouse-guest-rail { display:grid; gap:.9rem; padding:.25rem 0 1rem; }
    .site-body.henhouse-body .henhouse-guest-rail img {
        display:block; width:100%; height:auto; padding:.8rem; background:#171715; border-radius:var(--bs-radius-4);
    }
    .site-body.henhouse-body .henhouse-guest-actions { display:grid; gap:.45rem; grid-template-columns:repeat(2,minmax(0,1fr)); }
    .site-body.henhouse-body .henhouse-guest-actions .btn { padding-inline:.35rem; white-space:nowrap; }
    @media (width < 1024px) {
        .site-body.henhouse-body .henhouse-guest-rail { display:none; }
    }
    .site-body.henhouse-body .henhouse-share svg { width:1rem; height:1rem; fill:none; stroke:currentColor; stroke-width:1.75; }
    .site-body .post-share-dialog { --bs-dialog-width:32rem; }
    .site-body .post-share-destinations { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:1rem; }
    .site-body .post-share-link { display:flex; gap:.4rem; margin-top:.35rem; }
    .site-body .post-share-link .form-control { min-width:0; }
    .site-body .post-share-link .btn { flex:none; }
    .site-body .post-share-dialog [data-post-share-status] { min-height:1.4em; }

    .site-body .home-about-layout { align-items:flex-start; }
    .site-body .home-about-layout .home-about-steps { margin-top:calc(-1 * var(--bs-gutter-y, 1rem)); }
    .site-body .home-social-strip { position:relative; isolation:isolate; }
    .site-body .home-social-strip::before {
        content:"CONNECT"; position:absolute; z-index:-1; inset:50% 0 auto; transform:translateY(-50%);
        text-align:center; font:400 clamp(9rem,24vw,27rem)/.83 var(--mr-heading-font,Impact,'MR-heading-fallback',sans-serif);
        letter-spacing:-.045em; color:#16110b14; pointer-events:none;
    }
    .site-body .home-social-strip .home-social-heading { margin-bottom:clamp(1rem, 2vw, 1.65rem); }
    .site-body .home-social-strip .home-social-heading h2 { color:#171715; text-transform:uppercase; }
    .site-body.home-body .home-social-strip .section-heading.home-social-heading > p { color:#2d230a; max-width:none; }
    @media (width < 768px) { .site-body .home-social-strip::before { inset-inline-start:-.4em; } }

    .site-body.arena-body .arena-duel .arena-match-mark {
        display:grid; place-items:center; position:relative;
        width:clamp(2.45rem, 5vw, 4.65rem); aspect-ratio:1;
        background:#171715; color:#ffc400; border:2px solid #ffc400; border-radius:var(--bs-radius-4);
        box-shadow:0 4px 0 #866300, 0 0 0 4px #201a13;
        transform:rotate(-6deg);
        font:400 clamp(1.25rem, 3vw, 2.4rem)/1 var(--mr-heading-font,Impact,'MR-heading-fallback',sans-serif);
        letter-spacing:.035em;
    }
    .site-body.arena-body .arena-duel .arena-match-mark > span:first-child { transform:rotate(6deg); }
    .site-body.arena-body .arena-login-note {
        display:flex; align-items:center; justify-content:space-between; text-align:start; flex-wrap:wrap; gap:.65rem 1.15rem;
        margin:1.2rem auto 0; width:min(100%,30rem); padding:.9rem 1.05rem;
        background:#171715; border:1px solid #ffc40063; border-radius:var(--bs-radius-5); color:#fff7e0;
    }
    .site-body.arena-body .arena-login-note strong { color:#fff7e0; font-size:1.03rem; }
    .site-body.arena-body .arena-login-note p { color:#ddd3ba; font-size:.85rem; margin:.15rem 0 0; }
    .site-body.arena-body .arena-login-note .btn {
        --bs-btn-color:#171715; --bs-btn-border-color:#ffc400; --bs-btn-hover-bg:#ffda53;
    }

    .site-body .content-article-page > .container > .content-article-header {
        max-width:65rem; width:auto; margin:0 auto clamp(1.6rem, 4vw, 3rem); text-align:center;
    }
    .site-body .content-article-header > p { max-width:52rem; margin-inline:auto; }
    .site-body .content-article-page :is(.editor-content,.help-reading-column,.release-history,.content-featured-image) {
        width:min(100%,54rem); margin-inline:auto;
    }
    .site-body .content-article-page .content-featured-image { display:block; margin-bottom:1.5rem; }
}
