/* Previous MAXROOSTER component artwork and details; Bootstrap owns shared layout and controls. */
@layer maxrooster-legacy {
/* Original MAXROOSTER presentation; only layout and interaction corrections. */
dialog:not([open]) { display:none; pointer-events:none; }
.home-body .hero-shell {
    height:auto;
    min-height:75vh;
    max-height:none;
    overflow:visible;
}
.home-body .hero-shell>.hero-copy,.home-body .hero-shell>.hero-character,.home-body .hero-shell>.lab-panel { margin:0; }
.home-body .hero-shell>.hero-copy { min-height:0; height:auto; padding:0; }
.home-body .hero-copy h1 { font-size:clamp(58px,5.2vw,98px); }
.home-body .hero-shell>.hero-character { aspect-ratio:1; height:auto; align-self:center; }
.home-body .hero-rooster { width:100%; max-width:none; }
.home-body .hero-shell>.lab-panel { align-self:stretch; padding:clamp(18px,1.6vw,28px); overflow:visible; }
.home-body .lab-panel .panel-heading { flex-wrap:wrap; align-items:center; }
.home-body .trait-list { flex:0 0 auto; grid-template-rows:repeat(7,minmax(48px,auto)); }
.home-body .trait-row { grid-template-columns:28px minmax(0,1fr) 28px 38px 28px; }
.home-body .trait-meta strong { max-width:100%; }
.home-body .hero-actions .ui-button { white-space:normal; line-height:1.4; padding:12px; }
.home-body .hero-burst,.home-body .hero-word,.home-body .lab-panel::before { pointer-events:none; }
/* The menu is centered against the full header, independently of side widths. */
@media(max-width:1099px) {
    .home-body .hero-shell { min-height:0; }
    .home-body .hero-shell>.hero-character { width:100%; }
    .home-body .hero-copy h1 { font-size:clamp(62px,12vw,98px); }
}
@media(max-width:639px) {
    .home-body .hero-actions { grid-template-columns:minmax(0,1fr); }
    .home-body .hero-shell>.lab-panel { padding:24px 18px; }
}

/* Frontend geometry is defined by the component rules below. */
.home-body .rooster-placeholder{inset:0;border:0;padding:0;background:#eceeef}.rooster-placeholder>img{display:block;width:100%;height:100%;object-fit:contain}
.home-body .rank-wins{color:var(--paper);font-family:Impact,"Arial Narrow",sans-serif;font-size:20px;text-align:right}

/* Compact latest-rooster wall; the thumbnail is the complete link. */
.new-rooster-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px;margin:0 auto;max-width:var(--site-width)}
.new-rooster-thumbnail{display:block;min-width:0;aspect-ratio:1;overflow:hidden;background:var(--paper-deep);border:1px solid var(--ink)}
.new-rooster-thumbnail img{display:block;width:100%;height:100%;object-fit:cover}
.new-rooster-thumbnail:focus-visible{outline:3px solid var(--red);outline-offset:1px}
.new-rooster-grid>.empty-card{grid-column:1/-1}
.home-body .hero-shell>.hero-character{align-self:stretch;aspect-ratio:auto;height:auto;min-height:0}

/* Avatars, social icon buttons and private messages keep their rounded shapes. */
.site-body .avatar-library-option img,.site-body .social-profile-icon,.site-body .footer-social>a,.site-body .footer-social>span{overflow:hidden}
.site-body .message-bubble{}

/* Lightweight trait previews are shared by the homepage and Rooster Lab. */
.trait-picker-trigger{appearance:none;border:0;background:transparent;text-align:left;padding:0;color:inherit;min-width:0;cursor:pointer}
.trait-picker-trigger:hover strong{text-decoration:underline}
.trait-picker-trigger:focus-visible{outline:2px solid var(--red);outline-offset:3px}
.trait-row button.trait-thumb{padding:0;border:1px solid rgba(11,11,10,.17);overflow:hidden;flex:none}
.trait-row .trait-thumb img{width:100%;height:100%;object-fit:contain}
.public-trait-modal{color:var(--ink)}
.public-trait-modal .dialog-title{font-size:1.5rem;color:var(--ink)}
.trait-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.trait-picker-option{appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:space-between;min-width:0;background:#fff;color:var(--ink);border:2px solid #d2cec4;padding:6px;gap:6px;cursor:pointer}
.trait-picker-option img{display:block;width:150px;height:150px;max-width:100%;object-fit:contain}
.trait-picker-option span{display:block;font-size:12px;line-height:1.3;overflow-wrap:anywhere;text-align:center}
.trait-picker-option[aria-pressed=true]{border-color:var(--red);box-shadow:inset 0 0 0 1px var(--red)}
.trait-picker-option:hover,.trait-picker-option:focus-visible{border-color:var(--ink);outline:2px solid var(--ink);outline-offset:-2px}
.trait-picker-count{font-size:12px;color:#625e56;margin:12px 0}
@media(max-width:1099px){.home-body .hero-shell>.hero-character{align-self:center;aspect-ratio:1}}
@media(max-width:899px){.new-rooster-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* Static section art is shared by the dedicated pages and their homepage CTAs. */
.section-art-lab{--section-art-image:url('backgrounds/lab-static.webp')}
.section-art-arena{--section-art-image:url('backgrounds/arena-static.webp')}
.section-art-roosters{--section-art-image:url('backgrounds/roosters-static.webp')}
.section-art{--viewport-text-color:#fff;background-image:linear-gradient(rgba(9,10,12,.68),rgba(9,10,12,.5)),var(--section-art-image);background-position:center;background-size:cover;background-repeat:no-repeat;animation:none;color:#fff}
.site-body .section-art .lab-page-header h1{color:#ffc400}
.home-body .hero-copy h1>span,.home-body .hero-copy h1>em{display:block;white-space:nowrap}
.home-social-strip{background:var(--yellow);color:var(--ink);border-block:0}
.home-social-strip .section-heading{margin-bottom:28px}
.home-social-strip .section-heading h2{color:var(--ink)}
.home-social-strip .section-heading p,.leaderboard-section .section-heading>p{margin:15px 0px;color:#ffffff;font-weight:bold;font-size:24px;line-height:normal;max-width:620px;text-shadow:1px 1px #997500}
.leaderboard-section .section-heading>p{text-shadow:1px 1px #880c10}
.home-social-row{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:18px;max-width:var(--site-width);margin:auto;overflow-x:auto;padding:6px 2px 14px}
.home-social-link{flex:1 0 90px;display:flex;align-items:center;flex-direction:column;gap:12px;min-width:90px;color:var(--ink);text-align:center;text-decoration:none}
.home-social-link:hover{color:var(--red)}
.home-social-link strong{font-size:12px;letter-spacing:.04em;text-transform:uppercase}
.home-social-icon{height:60px;width:60px;display:grid;place-items:center}
.home-social-icon .social-icon{width:54px;height:54px}
.home-social-link.is-unavailable{opacity:.5}
.home-intro-pair .engagement-inner,.home-intro-pair .arena-cta-inner{display:flex;flex-direction:column;justify-content:space-between;gap:24px;min-height:410px;height:100%;padding:clamp(26px,3vw,42px);border:2px solid var(--ink);background:transparent}
.home-intro-pair .section-art h2{color:#fff;font-family:Impact,"Arial Narrow",sans-serif;font-size:clamp(42px,4.1vw,66px);line-height:1.02;margin:0 0 18px;text-transform:uppercase}
.home-intro-pair .section-art p{color:#fff;font-size:16px;line-height:1.6;margin:0}
.home-intro-pair .section-art .engagement-reasons>div{background:rgba(0,0,0,.4);color:#fff;border-color:rgba(255,255,255,.3)}
.home-intro-pair .section-art .engagement-reasons strong{color:#fff}
.arena-page-stage .arena-stage{background:transparent}
.ranking-tabs{flex-wrap:wrap;margin:22px 0 16px;border-bottom:2px solid var(--ink);padding-bottom:8px}
.ranking-tabs>a{display:block;padding:12px 20px;border:2px solid var(--ink);background:#fff;color:var(--ink);font-weight:850;text-decoration:none}
.ranking-tabs>a.active{background:var(--yellow);color:var(--ink)}
.ranking-tabs>a:hover,.ranking-tabs>a:focus-visible{outline:2px solid var(--yellow);outline-offset:1px}
.voting-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:75%;margin-left:auto;margin-right:auto;margin-bottom:18px}
.voting-guide-item{border:1px solid #d5d1c8;border-top:3px solid #c5bba6;background:#fff;color:var(--ink);padding:10px 12px;box-shadow:0 3px 0 rgba(0,0,0,.12)}
.voting-guide-item.is-current{border-color:#c29700;border-top-color:#ffc400;background:#fff8dc}
.voting-guide-item>strong{display:flex;align-items:center;gap:7px;font-size:14px;margin-bottom:4px}
.voting-guide-item>p{font-size:13px;line-height:1.45;margin:0;color:#4d4a43}
.arena-voting-instruction{color:#fff;text-align:center;font-size:16px;line-height:1.5;margin:16px 0 24px}
.arena-category-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:75%;margin-left:auto;margin-right:auto;justify-content:center;border-bottom:0;padding-bottom:0}
.arena-category-tabs>a{text-align:center;min-width:0;display:grid;place-items:center}
.ranking-summary{font-size:14px;color:#5b5951;margin:16px 0}
.leaderboard-position .ranking-medal{border:0;color:inherit;background:none;font-size:30px;line-height:1.2;display:inline-block}
.lab-page-body .lab-workspace-grid{height:auto;min-height:0}
.lab-page-body .lab-preview-column{align-self:stretch;display:flex;height:auto}
.lab-page-body .lab-preview-column .lab-preview-card{align-self:stretch;aspect-ratio:auto;flex:1 1 auto;height:auto;max-height:none;max-width:none;position:relative;min-height:0}
.lab-page-body .lab-preview-column .lab-page-rooster{aspect-ratio:auto;position:absolute;inset:0;width:100%;height:100%;margin:0;max-width:none;max-height:none}
@media(max-width:980px){.lab-page-body .lab-preview-column .lab-preview-card{aspect-ratio:1;width:100%;flex:none}}
@media(max-width:680px){.voting-guide{grid-template-columns:1fr}.ranking-tabs>a{flex:1;text-align:center;padding:10px}.home-social-row{gap:12px}.home-social-strip .section-heading{display:block}}
.home-social-icon .social-icon-youtube .social-icon-cutout{fill:var(--yellow);stroke:none}

/* Rooster profile: all five statistics stay in one horizontal row. */
.profile-card>.profile-stats{grid-template-columns:repeat(5,minmax(0,1fr));overflow-x:auto}
.profile-card>.profile-stats>.profile-stat{min-width:0;grid-template-columns:auto minmax(0,1fr);gap:8px;padding:12px}
.home-social-strip{position:relative;isolation:isolate;overflow:hidden}
.home-social-strip::before{content:"CONNECT";position:absolute;left:-2vw;top:12%;font-family:Impact,"Arial Narrow",sans-serif;font-size:25vw;line-height:.7;color:rgba(0,0,0,.08);pointer-events:none;z-index:-1}
.voting-guide-item>strong::before{content:"✦";color:#ba8d00;font-size:16px}
.voting-guide-item:nth-child(2)>strong::before{content:"☀"}
.voting-guide-item:nth-child(3)>strong::before{content:"★"}
.site-search-panel .site-search-form{align-items:stretch;grid-template-columns:minmax(0,1fr) 175px auto 46px;gap:8px}
.site-search-panel .site-search-input-wrap{display:flex;align-items:center;background:#fff;border:2px solid var(--ink);min-width:0;padding-left:14px}
.site-search-panel .site-search-input-wrap>svg{position:static;flex:none;width:20px;height:20px;color:var(--ink);transform:none;margin-right:10px}
.site-search-panel .site-search-input-wrap>.form-control{border:0;box-shadow:none;background:transparent;min-width:0;padding:12px 10px 12px 0;font-size:15px;height:100%}
.site-search-panel .site-search-input-wrap:focus-within{outline:3px solid #ffc400;outline-offset:2px}
.site-search-panel .form-control{border:2px solid var(--ink);background-color:#fff;color:var(--ink);font-weight:700;min-width:0}
.site-search-panel .site-search-form>.btn-solid.theme-danger{border:2px solid var(--ink);background:var(--red);color:#fff;font-weight:800;padding-inline:22px}
.site-search-panel .site-search-form>.btn-solid.theme-danger:hover{background:var(--ink)}
.site-search-panel .site-search-close{border:2px solid var(--ink);background:var(--ink);color:#fff;display:grid;place-items:center;padding:0;font-size:28px;line-height:1}
.site-search-panel .site-search-close:hover{background:var(--red)}
.site-search-status:empty,.site-search-results:empty{display:none}
.henhouse-rooster-modal .dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px}
.henhouse-rooster-modal .dialog-header .dialog-title{margin:0;min-width:0}
.henhouse-rooster-modal .henhouse-modal-close{position:static;margin:0 0 0 auto;flex:0 0 40px;align-self:center}
@media(max-width:980px){.voting-guide,.arena-category-tabs{max-width:100%}}
@media(max-width:680px){.profile-card>.profile-stats{grid-template-columns:repeat(5,minmax(112px,1fr))}.profile-card>.profile-stats>.profile-stat{grid-template-columns:1fr;gap:4px}.site-search-panel .site-search-form{grid-template-columns:minmax(0,1fr) 46px}.site-search-panel .site-search-form>.form-control{grid-column:1;grid-row:2}.site-search-panel .site-search-form>.btn-solid.theme-danger{grid-column:1/-1;grid-row:3}.site-search-panel .site-search-close{grid-column:2;grid-row:1/3}.arena-category-tabs>a{padding:10px 4px;font-size:13px}}
@media(prefers-reduced-motion:reduce){}

.arena-matchup.is-loading .fighter,.arena-matchup.is-loading .versus{filter:none;opacity:1;transform:none}

/* Frontend panels use a consistent small radius; controls keep their own sizing. */
.site-body{--site-radius:0px;--control-radius:0px}
.site-body :is(.btn,.ui-button,.profile-action-button,.share-buttons>a,.share-buttons>button){}
.leaderboard-page>.ranking-tabs{margin:22px auto 16px;border-bottom:0;padding-bottom:0}
.leaderboard-page>.ranking-tabs>a{text-align:center;display:grid;place-items:center;min-width:0}
.leaderboard-page>.voting-guide{width:100%;max-width:100%;margin-left:0;margin-right:0}
.henhouse-composer footer>span{margin-left:0}
.home-social-strip .home-social-icon{width:72px;height:72px;background:#0b0b0a;color:#fff;display:grid;place-items:center;transition:transform .18s ease,background .18s ease;flex:none}
.home-social-strip .home-social-icon .social-icon{width:36px;height:36px;color:#fff}
.home-social-strip .home-social-icon .social-icon-cutout{fill:#0b0b0a;stroke:none}
.home-social-strip .home-social-link:hover .home-social-icon{background:var(--red);transform:translateY(-3px)}
.home-social-strip .home-social-link:hover .social-icon-cutout{fill:var(--red)}
.home-social-strip .home-social-link.is-unavailable{opacity:1}
.home-social-strip .home-social-link.is-unavailable strong{opacity:.6}
.arena-stage .fighter-change-overlay{position:absolute;inset:0;background:rgba(5,7,10,.68);z-index:5;pointer-events:none}
.arena-stage .fighter-change-overlay[hidden],.arena-loading-dialog[hidden]{display:none}
.arena-loading-dialog{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:8;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:#111;color:#fff;border:2px solid #ffc400;box-shadow:0 12px 40px rgba(0,0,0,.4);width:min(300px,90%);padding:24px;text-align:center;pointer-events:none}
.arena-loading-dialog>strong{font-size:22px;line-height:1.2}.arena-loading-dialog>small{font-size:12px;line-height:1.4;color:#e6e3dc}
.arena-loading-dialog .arena-spinner{border-color:rgba(255,255,255,.3);border-top-color:#ffc400}
.account-profile-hero .account-profile-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,380px);align-items:center;gap:28px;width:100%}
.account-profile-hero .account-identity{min-width:0}.account-profile-hero .account-identity-copy{min-width:0}.account-profile-hero .account-identity-copy h1{overflow-wrap:anywhere}
.account-hero-summary{padding:18px 20px;background:rgba(0,0,0,.035);border:1px solid #d5cbb7;min-width:0;width:100%;text-align:left;color:var(--ink)}
.account-summary-level{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.account-summary-level>strong{font-size:18px}.account-summary-level>span{font-size:13px;font-weight:bold;color:#9c1c24}.account-hero-summary>.xp-track{margin:0 0 6px;height:7px;overflow:hidden;background:#ddd4c4}.account-hero-summary>.xp-track>span{display:block;height:100%;background:var(--red)}.account-hero-summary>small{font-size:11px;color:#655d50}
.account-summary-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0 0}.account-summary-stats>div{min-width:0}.account-summary-stats dt{font-size:10px;font-weight:700;line-height:1.3;color:#655d50}.account-summary-stats dd{margin:5px 0 0;font-size:21px;font-weight:850;line-height:1.2;overflow-wrap:anywhere}
.account-hero-right{display:grid;gap:12px}.account-hero-right .public-profile-actions{display:flex;justify-content:flex-end;gap:8px}
.henhouse-user-feed-heading{padding:20px;background:#fff;border:1px solid #d4d0c7;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.henhouse-user-feed-heading h2{font-size:24px;margin:4px 0 0}.henhouse-user-feed-heading h2 small{display:block;font-family:Arial,sans-serif;font-size:12px;color:#666;margin-top:6px}.henhouse-user-feed-heading>div>span{font-size:11px;text-transform:uppercase;font-weight:bold;color:#7c6f59}.henhouse-user-feed-heading>div:last-child{display:flex;gap:12px;font-size:12px;font-weight:bold}
@media(max-width:1099px){}
@media(max-width:900px){.account-profile-hero .account-profile-main{grid-template-columns:1fr;gap:20px}.account-hero-right .public-profile-actions{justify-content:flex-start}}
@media(max-width:580px){.henhouse-user-feed-heading{display:block}.henhouse-user-feed-heading>div:last-child{margin-top:16px}.home-social-strip .home-social-icon{width:62px;height:62px}.home-social-strip .home-social-icon .social-icon{width:32px;height:32px}.account-summary-stats{gap:8px}.account-hero-summary{padding:16px}}

.site-body .home-intro-pair .arena-reasons>div{background:rgba(0,0,0,.4);color:#fff;border-color:rgba(255,255,255,.3)}
.site-body .home-intro-pair .arena-reasons strong{color:#fff}
.site-body :is(.trait-picker-option,.trait-picker-trigger,.trait-thumb){}
.site-body .lab-panel .arrow-button,.site-body .lab-page-panel .arrow-button{display:flex;align-items:center;justify-content:center;background:transparent;border:0;box-shadow:none;color:#756f65;width:28px;height:32px;padding:0;font-family:inherit;font-size:1rem;line-height:1}
.site-body .lab-panel .arrow-button:hover,.site-body .lab-page-panel .arrow-button:hover{color:var(--red);background:transparent}
/* Desktop navigation stays visible; narrower desktop widths use a centered second row. */
@media(min-width:1024px){
}
@media(max-width:1023.98px){
}

.site-body :is(.form-control,.form-control){}

/* 5.8: consistent browsing, keyboard access and motion preferences. */
.site-body :is(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #ffc400;outline-offset:3px;box-shadow:0 0 0 5px #161614}
.site-body #main-content:focus{outline:none}
.rooster-directory-page{color:#fff;min-height:65vh}
/* Size the artwork from its own ratio, independently of the rooster grid height. */
.rooster-directory-page.section-art-roosters{position:relative;isolation:isolate;overflow:hidden;background-image:none;background-color:var(--paper);color:var(--ink)}
.rooster-directory-page.section-art-roosters::before{content:"";position:absolute;top:0;left:0;aspect-ratio:1672/941;z-index:-1;pointer-events:none;background-image:linear-gradient(to bottom,rgba(9,10,12,.68) 0%,rgba(9,10,12,.5) 35%,rgba(245,239,223,.35) 65%,var(--paper) 100%),var(--section-art-image);background-position:center top;background-size:100% 100%,100% auto;background-repeat:no-repeat}
.directory-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px}
.directory-heading h1{font-family:Impact,"Arial Narrow",sans-serif;font-weight:900;font-size:clamp(52px,5.4vw,82px);letter-spacing:.01em;text-transform:uppercase;margin:0 0 12px;line-height:1;color:#ffc400}
.directory-heading p{margin:0;font-family:inherit;font-size:1rem;line-height:1.5;max-width:650px;color:#fff}
.directory-controls{display:flex;gap:20px;flex-wrap:wrap;align-items:center;justify-content:space-between;border:2px solid #161614;padding:14px;background:rgb(245 239 223 / 50%);color:var(--ink);margin-bottom:2rem}
.directory-tabs{display:flex;gap:6px;flex-wrap:wrap}
.directory-tabs a{padding:10px 16px;color:#ffc400;text-decoration:none;font-weight:800}
.directory-tabs a.active{background:#161614;color:#ffc400}
.directory-tabs a:hover{background:#ffc400;color:#161614}
.directory-search{display:flex;gap:8px;flex:0 1 410px;min-width:0}
.directory-search input{flex:1 1 0;width:0;min-width:0;border:1px solid #777}
.directory-search button{flex:none}
.directory-rooster-card{min-width:0;background:#fff;color:var(--ink);border:1px solid #d5cbb9;transition:transform .15s ease,box-shadow .15s ease}
.directory-rooster-card:hover{transform:translateY(-3px);box-shadow:0 5px 0 #161614}
.directory-rooster-art{display:block;aspect-ratio:1;background:#e7e1d5;overflow:hidden}
.directory-rooster-art img{display:block;width:100%;height:100%;object-fit:contain}
.directory-rooster-details{padding:14px}
.directory-rooster-details h2{font-weight:800;font-size:18px;line-height:1.3;margin:0 0 4px;overflow-wrap:anywhere}
.directory-rooster-details h2 a{color:#161614;text-decoration:none}
.directory-author{font-size:13px;color:#615748;overflow-wrap:anywhere}
.directory-rooster-stats{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid #e7e1d5;font-size:12px;font-weight:700}
.directory-empty{grid-column:1/-1;text-align:center;padding:55px 20px;background:#fff;color:var(--ink);border:1px solid #d5cbb9}
.directory-empty h2{font-size:30px;margin:0 0 12px}.directory-empty p{max-width:600px;margin:0 auto 22px}
.home-ranking-link{text-align:center;margin-top:22px}
@media(max-width:1279.98px){}
@media(max-width:767px){.directory-heading{align-items:flex-start;flex-direction:column;gap:16px}.directory-heading>div{padding:16px;background:rgba(9,10,12,.72)}.directory-controls{align-items:stretch;flex-direction:column;gap:12px}.directory-search{flex:auto}.directory-rooster-details{padding:10px}}
@media(max-width:479px){.directory-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}.directory-tabs a{padding:10px 6px;text-align:center;font-size:13px}.directory-rooster-details h2{font-size:16px}}
@media(prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}.site-body *,.site-body *::before,.site-body *::after{animation-duration:.01ms;animation-iteration-count:1;transition-duration:.01ms;scroll-behavior:auto}}

/* The icon and input form one field; focus stays on the outer border. */
.site-search-panel .site-search-form{grid-template-areas:"query type submit close";grid-template-columns:minmax(0,1fr) 175px max-content 46px}
.site-search-panel .site-search-input-wrap{grid-area:query;display:grid;grid-template-columns:20px minmax(0,1fr);gap:10px;align-items:center;padding:0 14px;overflow:hidden}
.site-search-panel .site-search-input-wrap>svg{grid-column:1;grid-row:1;margin:0;pointer-events:none}
#site-search-input{grid-column:2;grid-row:1;box-sizing:border-box;width:100%;min-width:0;height:auto;min-height:46px;margin:0;padding:10px 0;border:0;background:transparent;outline:0;box-shadow:none}
#site-search-input:focus,#site-search-input:focus-visible{border:0;outline:0;box-shadow:none}
.site-search-panel .site-search-form>.form-control{grid-area:type}
.site-search-panel .site-search-form>.btn-solid.theme-danger{grid-area:submit;white-space:nowrap}
.site-search-panel .site-search-form>.site-search-close{grid-area:close}
@media(max-width:679px){.site-search-panel .site-search-form{grid-template-columns:minmax(0,1fr) 46px;grid-template-areas:"query close" "type type" "submit submit"}}
.directory-rooster-card{overflow:hidden}

/* 5.10: square geometry, except header account controls, social controls and Inbox bubbles. */
.site-body{--site-radius:0px;--control-radius:0px;--bs-border-radius:0;--bs-border-radius-sm:0;--bs-border-radius-lg:0;--bs-border-radius-xl:0;--bs-border-radius-xxl:0;--bs-border-radius-pill:0}
.site-body *,.site-body *::before,.site-body *::after{}
.site-body :is(.home-social-icon,.social-profile-icon,.footer-social>a,.footer-social>span),.site-body .share-buttons :is(a,button){}
.site-body .messages-shell .message-bubble,.site-body .message-bubble{}
/* Spinners retain their geometry as drawn shapes, without rounded UI surfaces. */
.site-body :is(.arena-spinner,.henhouse-loader-spinner){clip-path:circle(50%)}
.rooster-detail-section{padding:clamp(24px,4vw,60px) max(16px,calc((100vw - 1320px)/2));background:var(--paper);color:var(--ink)}
.rooster-breadcrumb{max-width:1320px;margin:0 auto 22px;display:flex;flex-wrap:wrap;gap:10px;font-size:12px;font-weight:700;overflow-wrap:anywhere}
.rooster-breadcrumb>a{color:#a21f28;text-decoration:underline;text-underline-offset:3px}
.rooster-detail-section .profile-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:0;background:#fffcf5;border:1px solid #cfc4af;max-width:1320px;margin:0 auto 28px;padding:0;overflow:visible}
.rooster-detail-section .profile-image-wrap{position:relative;aspect-ratio:1;min-width:0;align-self:start;border:0;background:#e8dfce;overflow:hidden;top:0}
.rooster-detail-section .profile-image-wrap>img{position:static;width:100%;height:100%;aspect-ratio:1;object-fit:contain}
.rooster-detail-section .profile-id{position:absolute;left:16px;top:16px;bottom:auto;right:auto;z-index:1;background:#111;color:#ffc400;font-size:12px;padding:7px 10px;letter-spacing:.07em}
.rooster-detail-section .profile-copy{min-width:0;padding:clamp(20px,3vw,38px);display:flex;flex-direction:column;gap:14px}
.rooster-detail-kicker{color:#8d3026;font-size:10px;letter-spacing:.13em;font-weight:800;text-transform:uppercase}
.rooster-detail-section .profile-copy h1{font-size:clamp(36px,4vw,64px);margin:0;line-height:1.04;color:#111}
.rooster-detail-section .profile-meta{order:0;margin:0;font-size:11px;color:#6b6152}
.rooster-detail-section .profile-description{margin:0;font-size:16px;line-height:1.6;color:#4d463e}
.rooster-detail-section .profile-creator{margin:0;display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;border-bottom:1px solid #e5dccb;padding:0 0 16px}
.rooster-detail-section .profile-creator>a{display:flex;flex-wrap:wrap;gap:8px;font-size:13px}
.rooster-detail-section .profile-creator>span{font-size:11px;color:#716654}
.rooster-detail-section .profile-trade-link,.rooster-detail-section .profile-edit-link{align-self:start;margin:0}
.rooster-detail-section .profile-card>.profile-stats{grid-column:1/-1;width:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible;border-top:1px solid #cfc4af;margin:0;padding:0;gap:0;background:#f0e6d2}
.rooster-detail-section .profile-card>.profile-stats>.profile-stat{display:flex;gap:10px;align-items:center;justify-content:center;border:0;border-right:1px solid #d7cbb5;padding:18px 10px;min-width:0;background:transparent;margin:0}
.rooster-detail-section .profile-stat:last-child{border-right:0}
.rooster-detail-section .profile-stat>span{font-size:23px;color:#9a261d}
.rooster-detail-section .profile-stat small{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:#665c4d}
.rooster-detail-section .profile-stat strong{font-size:24px;line-height:1.2;display:block;color:#111}
.rooster-detail-section :is(.trait-card,.comments-card){max-width:1320px;margin:0 auto 28px;padding:clamp(20px,3vw,34px);border:1px solid #cfc4af;background:#fffcf5}
.rooster-detail-section .trait-card h2,.rooster-detail-section .comments-heading h2{font-size:clamp(26px,3vw,38px)}
.rooster-detail-section .trait-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0}
.rooster-detail-section .trait-grid>div{padding:14px;border:1px solid #ddd1ba;background:#f6efdf;min-width:0}
.rooster-detail-section .trait-grid dd{font-size:16px;margin:6px 0 0}
.rooster-detail-section .share-panel{margin:0;padding:16px 0 0;background:transparent;border:0;border-top:1px solid #e5dccb}
.rooster-detail-section .share-panel>strong{font-size:11px;text-transform:uppercase;letter-spacing:.07em}
.rooster-detail-section .share-buttons{gap:7px;margin-top:10px;display:flex;flex-wrap:wrap}
.rooster-detail-section .share-buttons :is(a,button){min-height:36px;padding:8px 12px;font-size:11px}
.rooster-badges-panel{border-top:3px solid #111;padding-top:16px}
.rooster-badges-panel h2{font-size:23px;line-height:1.2;margin:4px 0 10px;font-weight:800}
.rooster-badges-panel>p{font-size:12px;color:#655a4a;margin:0 0 14px;line-height:1.6}
.rooster-badge-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border:0;margin:0;padding:0;min-width:0}
.rooster-badge-choice{position:relative;border:1px solid #d2c4aa;background:#f5eddb;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:12px;min-width:0;cursor:pointer;color:#191611}
.rooster-badge-choice input{position:absolute;right:10px;top:12px;accent-color:#a21f28;width:16px;height:16px}
.rooster-badge-choice .rooster-badge-icon{font-size:26px;color:#9a261d;grid-column:1/-1}
.rooster-badge-choice strong{font-size:12px;overflow-wrap:anywhere}
.rooster-badge-choice b{font-size:14px}
.rooster-badge-choice small{grid-column:1/-1;font-size:10px;line-height:1.5;color:#655a4a}
.rooster-badge-choice:has(input:checked),.rooster-badge-choice.is-awarded{background:#fff2b5;border-color:#9b7300;box-shadow:inset 0 0 0 1px #9b7300}
.rooster-badge-choices:disabled .rooster-badge-choice{cursor:default}
.rooster-badge-choices:disabled input{display:none}
.rooster-badge-action{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:14px;font-size:11px}
.rooster-badge-action>a:last-child{color:#98231c;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.badge-status{background:#e7f2dd;color:#245b24;padding:10px;font-size:12px;line-height:1.5;margin-bottom:12px}
.arena-badge-note{text-align:center;color:#ddd4bd;font-size:12px;max-width:620px;margin:0 auto 24px;line-height:1.6}
.arena-badge-note a{color:#ffc400;text-decoration:underline;text-underline-offset:3px}
.henhouse-video{margin:14px 0;background:#111;color:#fff;border:1px solid #34312a;min-width:0;width:100%}
.henhouse-video-stage{position:relative;aspect-ratio:16/9;min-height:200px;width:100%;background:linear-gradient(135deg,#22211e,#080808)}
.video-load-button{border:0;position:absolute;inset:0;background:transparent;color:#fff;width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;padding:20px;cursor:pointer;text-align:center}
.video-load-button:hover{background:#24211a}.video-load-button:focus-visible{outline-offset:-5px}
.video-play-mark{font-size:30px;color:#ffc400}.video-load-button strong{font-size:16px;max-width:440px;line-height:1.4;overflow-wrap:anywhere}
.video-load-button>span:not(.video-play-mark){font-size:12px;font-weight:700}.video-load-button small{font-size:10px;color:#bfb6a4}
.henhouse-video-stage iframe{position:absolute;inset:0;border:0;width:100%;height:100%;display:block}
.henhouse-video figcaption{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:10px 12px;font-size:11px;line-height:1.5;flex-wrap:wrap}
.henhouse-video figcaption>span{color:#ffc400;font-weight:800}.henhouse-video figcaption>a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.henhouse-video-source{font-size:12px;font-weight:700;color:#943022;text-decoration:underline}
.video-composer-help{font-size:11px;color:#706655;margin:10px 0;line-height:1.6}
.video-composer-preview{font-size:12px;border-left:3px solid #b58900;padding:12px;background:#fff5ce;color:#30291c;margin:10px 0;line-height:1.6;overflow-wrap:anywhere}
.video-composer-preview strong{display:block}.video-composer-preview small{display:block;color:#756b59}
/* Responsive foundation: contain grids, keep controls reachable and tables locally scrollable. */
.site-body{min-width:280px;overflow-x:clip;--site-header-height:82px}
.site-body .site-main{min-width:0;width:100%}
.site-body :is(input,select,textarea){max-width:100%;font-size:max(16px,1em)}
.site-body :is(p,dd,.henhouse-post-content,.message-bubble,.search-result-copy,.account-identity-copy){overflow-wrap:anywhere}
.site-body :is(.content-article,.contact-card,.member-auth-card,.professional-page-shell,.profile-tool-shell){max-width:100%}
.site-body :is(.editor-content,.henhouse-post-content) img{max-width:100%;height:auto}
.site-body .professional-table-shell{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-gutter:stable}
.site-body .professional-table{width:100%;min-width:720px}
.site-body .dialog-scrollable{height:calc(100dvh - 24px)}
.site-body .dialog-body{overscroll-behavior:contain}
.site-body .trait-picker-grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}
.site-body :is(.trait-picker-option,.henhouse-rooster-choice){touch-action:manipulation}
.site-body .trait-picker-option img{width:150px;height:auto;aspect-ratio:1}
.site-body :is(.henhouse-feed,.henhouse-post-content,.conversation-panel,.message-list,.account-rooster-card,.trade-create-form){min-width:0}
.site-body .henhouse-post-content>header{flex-wrap:wrap;gap:6px 12px}
.site-body .henhouse-post-content>header>time{white-space:nowrap}
.site-body .henhouse-rooster-attachment{max-width:100%;min-width:0}
.site-body .henhouse-rooster-attachment>span{min-width:0;overflow-wrap:anywhere}
.site-body .henhouse-post-actions{flex-wrap:wrap;gap:8px 16px}
.site-body .message-composer textarea{width:100%;min-width:0}
.site-body .message-bubble{max-width:min(82%,650px);white-space:pre-wrap;overflow-wrap:anywhere}
.site-body .site-footer .footer-main{gap:24px}
.site-body .footer-links,.site-body .footer-legal{flex-wrap:wrap}
.site-body :is(.footer-social,.home-social-links,.social-profile-list){flex-wrap:wrap}
.site-body .comment-form-footer{flex-wrap:wrap;gap:12px}
.site-body .comment-copy header{flex-wrap:wrap;gap:8px}
@media(min-width:1100px){
 .rooster-detail-section .profile-image-wrap{position:sticky;top:calc(var(--site-header-height) + 20px)}
}
@media(max-width:1279.98px){
 .site-body .henhouse-discovery{display:none}
 .site-body .home-intro-pair{gap:18px}
}
@media(min-width:768px) and (max-width:1099px){
 .home-body .hero-copy h1{font-size:clamp(60px,9vw,92px)}
 .home-body .hero-shell>.hero-character{height:100%;align-self:stretch;aspect-ratio:auto;min-height:480px}
 .site-body .lab-page-layout{gap:24px}
}
@media(max-width:1023.98px){
 .site-body{--site-header-height:82px}
 .rooster-detail-section .profile-card{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}
 .rooster-detail-section .profile-copy{padding:20px}
 .rooster-badge-choices{grid-template-columns:1fr}
 .rooster-badge-choice{grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:6px 10px;padding:10px 32px 10px 10px}
 .rooster-badge-choice .rooster-badge-icon{grid-column:1;grid-row:1/3;font-size:24px}
 .rooster-badge-choice strong{grid-column:2}.rooster-badge-choice b{grid-column:3}
 .rooster-badge-choice small{grid-column:2/4}.rooster-badge-choice input{right:8px;top:12px}
}
@media(max-width:767px){
 .site-body{--section-space:42px;--site-gutter:16px}
 .site-body :is(.professional-page-shell,.account-page-shell,.profile-tool-shell,.search-page-shell,.contact-section){padding-left:16px;padding-right:16px}
 .site-body :is(.section-heading,.professional-page-header,.directory-heading,.account-subheading){align-items:flex-start;flex-wrap:wrap;gap:16px}
 .site-body .section-heading>p{max-width:100%}
 .site-body .home-intro-pair{}
 .site-body .home-intro-pair :is(.engagement-inner,.arena-cta-inner){min-height:0;padding:24px}
 .site-body .home-social-strip .section-heading p,.site-body .leaderboard-section .section-heading>p{font-size:20px}
 .site-body .voting-guide{grid-template-columns:1fr;gap:8px;width:100%;max-width:100%;margin-inline:0}
 .site-body .ranking-tabs>a{padding:12px 4px;font-size:12px;white-space:normal;min-height:44px}
 .site-body .professional-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .site-body .arena-page-stage .arena-stage{padding:0}
 .site-body .fighter{padding:0;min-width:0}.site-body .fighter-info{padding:12px 8px}
 .site-body .fighter-info h3{font-size:clamp(17px,4vw,28px);overflow-wrap:anywhere}
 .site-body .fighter-info>span{font-size:9px;letter-spacing:0}.site-body .fighter-info>strong{font-size:10px}
 .site-body .versus strong{font-size:24px}.site-body .versus>span{font-size:10px}.site-body .versus small{font-size:10px;max-width:44px;overflow-wrap:anywhere}
 .rooster-detail-section .profile-card{grid-template-columns:1fr}
 .rooster-detail-section .profile-image-wrap{max-width:560px;width:100%;justify-self:center;position:relative;top:0}
 .rooster-detail-section .profile-copy{padding:24px}
 .rooster-detail-section .profile-card>.profile-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
 .rooster-detail-section .profile-stat{border-bottom:1px solid #d7cbb5}
 .rooster-detail-section .trait-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .rooster-badge-choices{grid-template-columns:repeat(3,minmax(0,1fr))}
 .rooster-badge-choice{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:12px}
 .rooster-badge-choice .rooster-badge-icon{grid-column:1/-1;grid-row:auto}.rooster-badge-choice strong{grid-column:1}.rooster-badge-choice b{grid-column:2}.rooster-badge-choice small{grid-column:1/-1}
 .site-body .henhouse-sidebar{position:static;width:100%;display:block}
 .site-body .henhouse-sidebar-profile{display:none}
 .site-body .henhouse-sidebar>nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0}
 .site-body .henhouse-sidebar>nav>a{display:grid;place-items:center;min-height:44px;padding:10px}
 .site-body .henhouse-post{display:grid;grid-template-columns:32px minmax(0,1fr);padding:14px 10px;gap:10px}
 .site-body .henhouse-avatar{width:32px;height:32px;font-size:14px}
 .site-body .henhouse-reply{grid-template-columns:28px minmax(0,1fr);gap:8px;padding:12px 6px}
 .site-body .henhouse-reply .henhouse-avatar{width:28px;height:28px}
 .site-body .henhouse-post-content>header{font-size:11px}
 .site-body .henhouse-author-hover{max-width:100%}
 .site-body .henhouse-author-hover>a{overflow-wrap:anywhere}
 .site-body .henhouse-post-content>p{font-size:14px;line-height:1.6}
 .site-body .henhouse-composer{padding:16px}
 .site-body .henhouse-composer footer>.btn-solid.theme-danger{margin-left:auto}
 .site-body .henhouse-user-feed-heading{padding:16px}
 .site-body .henhouse-video-stage{min-height:200px}
 .site-body .henhouse-post .henhouse-video,.site-body .henhouse-reply .henhouse-video{width:calc(100% + 42px);margin-left:-42px}
 .site-body .henhouse-reply .henhouse-video{width:calc(100% + 36px);margin-left:-36px}
 .site-body .message-bubble{max-width:90%}
 .site-body .messages-page .messages-layout{min-height:0}
 .site-body .messages-page .conversation-panel{height:auto;min-height:65dvh}
 .site-body .comment-reply{margin-left:12px;padding-left:12px}
 .site-body .footer-links{gap:16px}.site-body .site-footer .footer-main{padding:32px 18px}
}
@media(max-width:575px){
 .site-body{--site-header-height:112px}.site-body .brand-logo{height:28px;max-width:190px}
 .site-body .mobile-trait-preview{top:calc(var(--site-header-height) + 6px)}
 .site-body .lab-page-layout{display:grid;grid-template-columns:1fr;gap:18px}
 .site-body .lab-preview-card{height:auto;aspect-ratio:1;max-height:none;min-height:0}
 .site-body .lab-page-panel{padding:20px 14px}
 .site-body .trait-row{grid-template-columns:28px minmax(0,1fr) 28px 38px 28px;gap:6px;min-height:52px}
 .site-body .trait-meta strong{font-size:12px}
 .site-body .trait-meta>span{font-size:9px}
 .site-body .trait-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .site-body .dialog-header{padding:14px;gap:10px}.site-body .dialog-body{padding:12px}
 .site-body .dialog-title{font-size:22px}.site-body .dialog-footer{padding:12px;gap:8px}
 .site-body .professional-page-header h1,.site-body .lab-page-header h1{font-size:clamp(40px,11vw,58px)}
 .rooster-detail-section .profile-copy{padding:20px 16px}
 .rooster-detail-section .profile-card>.profile-stats>.profile-stat{padding:14px 6px;display:grid;text-align:center;gap:5px;justify-items:center}
 .rooster-detail-section .profile-stat strong{font-size:22px}
 .rooster-badge-choices{grid-template-columns:1fr}
 .rooster-badge-choice{grid-template-columns:30px minmax(0,1fr) auto;padding:12px 36px 12px 12px;gap:4px 10px}
 .rooster-badge-choice .rooster-badge-icon{grid-column:1;grid-row:1/3}.rooster-badge-choice strong{grid-column:2}.rooster-badge-choice b{grid-column:3}.rooster-badge-choice small{grid-column:2/4}
 .site-body .account-summary-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .site-body .account-identity{min-width:0;flex-wrap:wrap}
 .site-body .account-identity-copy h1{font-size:32px;overflow-wrap:anywhere}
 .site-body .profile-section-tabs{grid-auto-columns:minmax(112px,1fr);max-width:100%}
 .site-body .henhouse-rooster-picker-toggle{font-size:12px;padding-inline:8px}
 .site-body .henhouse-composer footer>span{font-size:11px}
 .site-body .message-composer{padding:12px;gap:8px}.site-body .message-composer footer{flex-wrap:wrap;gap:8px}
 .site-body .contact-card{padding:22px 16px}
 .site-body .search-refinement-form,.site-body .search-date-range{grid-template-columns:1fr}
}
@media(pointer:coarse){
 .site-body .trait-row .trait-thumb{height:38px}
}
/* Inbox stays readable without pushing the conversation beneath an oversized sidebar. */
.site-body .message-bubble{white-space:normal}
.site-body .message-bubble>p{white-space:pre-wrap;overflow-wrap:anywhere}
.site-body :is(.arena-spinner,.henhouse-loader-spinner){border:0;background:conic-gradient(#ffc400 0 24%,rgba(255,255,255,.2) 24% 100%);mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 0)}
@media(max-width:767px){
 .site-body .messages-page .conversation-panel{min-height:0;max-height:280px;overflow:auto}
 .site-body .message-history{max-height:65dvh;overflow:auto;overscroll-behavior:contain;padding:14px 10px}
 .site-body .message-thread-header{flex-wrap:wrap;gap:10px;padding:14px}
 .site-body .trade-rooster-options{grid-template-columns:repeat(2,minmax(0,1fr))}
 .site-body .trade-form-actions{flex-wrap:wrap;gap:12px}
 .site-body .home-about-columns{grid-template-columns:1fr}
 .site-body .account-rooster-actions{flex-wrap:wrap;gap:8px}
 .site-body .rooster-edit-dialog{max-width:calc(100vw - 24px)}
}

}
