/* Compositions of the approved Brawlpedia tokens and components. */
.bbw-page{padding-top:24px;padding-bottom:32px}.bbw-nav{margin-bottom:24px}.bbw-panel,.bbw-section-card{padding:20px}.bbw-section-card{display:block}.bbw-section{margin-top:32px}.bbw-section-title{margin-bottom:12px}.bbw-note{margin:12px 0 20px}.bbw-entity{display:grid;grid-template-columns:1fr;gap:20px;padding:20px;border-top:4px solid var(--c)}.bbw-entity h1{margin-bottom:8px}.bbw-entity p+p{margin-top:12px}.bbw-portrait-large{width:160px;height:160px;max-width:100%}.bbw-search,.bbw-level{margin-top:20px;align-items:end}.bbw-ability-text{min-width:0;flex:1}.bbw-page .bp-ability__icon img{width:40px;height:40px;object-fit:contain}.bbw-enhanced{margin-top:12px;font-size:14px}.bbw-enhanced summary{cursor:pointer;color:hsl(var(--primary))}.bbw-enhanced p{margin-top:8px;overflow-wrap:anywhere}.bbw-pager{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:center;margin-top:24px}.bbw-page .bp-tile__meta{flex-wrap:wrap}.bbw-page .bp-tile__name{white-space:normal;overflow-wrap:anywhere;min-height:40px}.bbw-page table th,.bbw-page table td{overflow-wrap:anywhere}.bbw-page .bp-grid{min-width:0}.bbw-page .bp-portrait img[hidden]{display:none}.bbw-page .bp-portrait__initials.bbw-hidden{visibility:hidden}.bbw-page .bp-tag{margin-top:12px}.bbw-level .bp-field{max-width:240px}
@media(min-width:640px){.bbw-entity{grid-template-columns:160px minmax(0,1fr);padding:24px}.bbw-search{grid-template-columns:repeat(2,minmax(0,1fr))}.bbw-level{grid-template-columns:180px max-content minmax(0,1fr)}}
@media(min-width:1024px){.bbw-search{grid-template-columns:minmax(220px,2fr) repeat(2,minmax(0,1fr)) max-content}.bbw-search>.bp-btn:last-child{grid-column:-2/-1}}
@media(prefers-reduced-motion:reduce){.bbw-page *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.bbw-page .bbw-portrait-large{width:160px;height:160px}.bbw-page .bp-ability__icon{position:relative}.bbw-page .bp-ability__icon img{position:absolute;inset:0}.bbw-page .bbw-hidden{visibility:hidden}

/* Wiki landing page: compositions of approved hero, rarity tiles and compact grids. */
.bbw-home-hero{display:grid;gap:16px}.bbw-home-intro{position:relative;overflow:hidden;padding:24px}.bbw-home-decoration{position:absolute;right:-40px;top:-40px;width:160px;height:160px;transform:rotate(45deg);border-radius:24px;background:hsl(var(--secondary)/.3)}.bbw-home-intro-content{position:relative}.bbw-home-intro h1{margin-top:12px;max-width:560px}.bbw-home-intro-content>p{margin-top:12px;max-width:560px}.bbw-home-search{display:flex;gap:8px;align-items:center;margin:20px 0 0}.bbw-home-search input{min-width:0;flex:1;height:40px}.bbw-home-search button{height:40px;flex-shrink:0}.bbw-home-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.bbw-home-quick{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:16px}.bbw-home-quick>.bp-muted{font-size:12px}.bbw-home-arrow{width:16px;height:16px;flex-shrink:0;vertical-align:middle}.bbw-home-link{display:inline-flex;align-items:center;gap:6px;color:hsl(var(--primary));font-size:12px;font-weight:600}.bbw-home-feature{display:none;padding:20px;flex-direction:column;gap:16px}.bbw-home-feature-main{display:grid;grid-template-columns:128px minmax(0,1fr);gap:16px;align-items:center}.bbw-home-feature-main .bbw-portrait-large{width:128px;height:128px}.bbw-home-feature h2{font-size:24px;line-height:32px}.bbw-home-feature-main p{margin-top:8px}.bbw-home-feature-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.bbw-home-feature-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:auto}.bbw-home-feature-foot>.bp-muted{font-size:12px}.bbw-home-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.bbw-home-shortcut{display:flex;gap:8px;align-items:flex-start;padding:12px;min-width:0}.bbw-home-shortcut .bp-portrait{width:40px;height:40px;flex:0 0 40px}.bbw-home-shortcut .bp-portrait__initials{font-size:16px}.bbw-home-shortcut-text{min-width:0}.bbw-home-shortcut h3,.bbw-home-ability h3,.bbw-home-collection h3{font:600 14px/20px var(--font-display);overflow-wrap:anywhere}.bbw-home-shortcut .bp-muted{font-size:12px;line-height:16px;margin-top:4px}.bbw-home-shortcut .bbw-home-link{margin-top:8px;font-size:11px;gap:4px}.bbw-home-shortcut .bbw-home-arrow{width:12px;height:12px}.bbw-home-brawlers{grid-template-columns:repeat(3,minmax(0,1fr))}.bbw-home-rarities{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.bbw-home-rarity{display:flex;gap:12px;align-items:center;padding:12px;min-width:0}.bbw-home-rarity-bar{display:block;width:6px;height:32px;background:var(--c);border-radius:9999px;flex-shrink:0}.bbw-home-rarity>span:nth-child(2){min-width:0;flex:1}.bbw-home-rarity strong{font-size:14px;line-height:20px;display:block;overflow-wrap:anywhere}.bbw-home-rarity .bp-muted{font-size:11px;line-height:16px;display:block;margin-top:4px}.bbw-home-rarity .bbw-home-arrow{width:12px;height:12px;color:hsl(var(--primary))}.bbw-home-two-column{display:grid;gap:32px;min-width:0}.bbw-home-two-column>section{min-width:0}.bbw-home-skins{grid-template-columns:repeat(2,minmax(0,1fr))}.bbw-home-modes{overflow:hidden}.bbw-home-mode{display:flex;align-items:center;gap:12px;padding:12px 16px;font-size:14px;font-weight:500;min-width:0}.bbw-home-mode+.bbw-home-mode{border-top:1px solid hsl(var(--border))}.bbw-home-mode:hover{background:hsl(var(--muted)/.6)}.bbw-home-mode .bp-portrait{width:32px;height:32px;flex:0 0 32px}.bbw-home-mode .bp-portrait__initials{font-size:11px}.bbw-home-mode>span{flex:1;min-width:0}.bbw-home-mode>.bbw-home-arrow{color:hsl(var(--primary))}.bbw-home-ability{display:flex;flex-direction:column;gap:12px;padding:16px;min-width:0}.bbw-home-ability .bp-portrait{width:48px;height:48px}.bbw-home-ability .bp-muted{font-size:12px;line-height:20px;margin-top:8px}.bbw-home-ability .bbw-home-link{margin-top:12px}.bbw-home-collection{display:flex;align-items:center;gap:12px;padding:16px;min-width:0}.bbw-home-collection .bp-portrait{width:40px;height:40px;flex:0 0 40px}.bbw-home-collection .bp-portrait__initials{font-size:12px}.bbw-home-collection>div:not(.bp-portrait){min-width:0;flex:1}.bbw-home-collection .bp-muted{font-size:11px;display:block;margin-top:4px}.bbw-home-collection>.bbw-home-arrow{color:hsl(var(--primary));width:12px;height:12px}.bbw-home-directory{overflow:hidden}.bbw-home-directory>summary{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px;cursor:pointer;list-style:none}.bbw-home-directory>summary::-webkit-details-marker{display:none}.bbw-home-directory strong{display:block;font:600 16px/24px var(--font-display)}.bbw-home-directory summary .bp-muted{display:block;margin-top:4px;font-size:12px}.bbw-home-directory-toggle{font-size:24px;line-height:32px;color:hsl(var(--primary))}.bbw-home-directory[open] .bbw-home-directory-toggle{transform:rotate(45deg)}.bbw-home-directory-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:0;border-top:1px solid hsl(var(--border));padding:8px}.bbw-home-directory-grid>a{display:flex;gap:8px;align-items:center;padding:12px 8px;font-size:14px;min-width:0;border-radius:var(--radius-lg)}.bbw-home-directory-grid>a:hover{background:hsl(var(--muted)/.6)}.bbw-home-directory-grid>a>span:first-child{flex:1;min-width:0}.bbw-home-directory-grid .bbw-home-arrow{color:hsl(var(--primary));width:12px;height:12px}.bbw-home-source{border-top:1px solid hsl(var(--border));padding-top:16px}.bbw-home-source .bp-muted{font-size:12px}.bbw-home .bp-section-head{align-items:center;flex-wrap:wrap}.bbw-home a:focus-visible,.bbw-home summary:focus-visible{outline:2px solid hsl(var(--ring));outline-offset:2px}
@media(min-width:640px){.bbw-home-intro{padding:32px}.bbw-home-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}.bbw-home-shortcut{padding:16px}.bbw-home-brawlers{grid-template-columns:repeat(4,minmax(0,1fr))}.bbw-home-rarities{grid-template-columns:repeat(3,minmax(0,1fr))}.bbw-home-skins{grid-template-columns:repeat(4,minmax(0,1fr))}.bbw-home-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1024px){.bbw-home-hero{grid-template-columns:1.4fr 1fr}.bbw-home-feature{display:flex}.bbw-home-shortcuts{grid-template-columns:repeat(6,minmax(0,1fr))}.bbw-home-shortcut{flex-direction:column;gap:12px}.bbw-home-shortcut .bp-portrait{width:48px;height:48px;flex-basis:48px}.bbw-home-shortcut h3{font-size:16px;line-height:24px}.bbw-home-shortcut .bp-muted{min-height:32px}.bbw-home-brawlers{grid-template-columns:repeat(6,minmax(0,1fr))}.bbw-home-rarities{grid-template-columns:repeat(6,minmax(0,1fr))}.bbw-home-two-column{grid-template-columns:1.5fr 1fr}.bbw-home-ability{flex-direction:row}.bbw-home-ability .bp-portrait{flex:0 0 40px;width:40px;height:40px}.bbw-home-directory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Catalog discovery and dedicated detail art: approved filter/card/map compositions. */
.bbw-catalog-filters{margin-top:20px;align-items:end;grid-template-columns:minmax(0,1fr)}.bbw-catalog-filters .bp-field{min-width:0}.bbw-filter-actions{display:flex;gap:8px;flex-wrap:wrap}.bbw-toc{display:flex;flex-wrap:wrap;gap:8px;padding:16px;margin-top:24px}.bbw-section[id],#wiki-levels{scroll-margin-top:80px}.bbw-detail-art-layout{display:grid;gap:24px;align-items:start}.bbw-entity.bbw-entity--art{grid-template-columns:minmax(0,1fr)}.bbw-large-art{padding:8px;min-width:0;overflow:hidden}.bbw-art-frame{position:relative;min-height:240px;background:hsl(var(--muted));border-radius:var(--radius-lg)}.bbw-art-frame>span{position:absolute;inset:16px;text-align:center}.bbw-art-frame img{position:relative;display:block;width:100%;height:auto;max-height:640px;object-fit:contain}.bbw-art-frame img[hidden]{display:none}.bbw-large-art figcaption{padding:12px 8px}.bbw-large-art .bp-btn{white-space:normal;text-align:center}.bbw-panel summary{cursor:pointer;color:hsl(var(--primary))}.bbw-panel[open]>.bp-table-wrap{margin-top:16px}.bbw-page .bp-table th{white-space:normal}.bbw-page .bp-tile__meta{overflow-wrap:anywhere}
@media(min-width:640px){.bbw-catalog-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:768px){.bbw-detail-art-layout{grid-template-columns:minmax(0,420px) minmax(0,1fr)}}
@media(min-width:1024px){.bbw-catalog-filters{grid-template-columns:repeat(4,minmax(0,1fr))}}
