/* React/shadcn slice. Only this chrome owns these rules; old arena panels remain isolated. */
body.arena-shell [data-slot] { font-family: 'DM Sans', sans-serif; box-sizing: border-box; border-color: var(--club-divider); }
body.arena-shell button[data-slot] { background-image: none; box-shadow: none; border: 0 solid transparent; padding: 0; min-height: 0; font-family: 'DM Sans',sans-serif; line-height: 1.4; }
body.arena-shell button[data-slot=button] { min-height: 40px; background-color: transparent; color: var(--club-ivory); }
body.arena-shell button[data-slot=button][data-variant=outline] { border: 1px solid var(--club-border); }
body.arena-shell button[data-slot=button][data-variant=ghost] { background-color: transparent; }
body.arena-shell [data-slot=switch] { padding: 0; cursor: pointer; outline-offset: 8px; }
body.arena-shell [data-slot=slider-thumb] { min-width: 18px; min-height: 18px; }
body.arena-shell [data-slot=label] { color: var(--club-ivory); font-size: 14px; }
body.arena-shell [data-slot=dialog-close] { display: grid; place-items: center; width: 36px; height: 36px; background: transparent; color: var(--club-muted); }
body.arena-shell [data-slot=dialog-content] { max-height: calc(100dvh - 32px); overflow: auto; color: var(--club-ivory); }
body.arena-shell [data-slot=dropdown-menu-content] { min-width: 190px; }
body.arena-shell [data-slot=dropdown-menu-item] { min-height: 40px; cursor: pointer; }
body.arena-shell [data-slot=tabs-trigger] { padding-inline: 16px; min-height: 36px; background-image: none; }
body.arena-shell [data-slot=input] { background: var(--club-field); box-shadow: none; }
body.arena-shell [data-slot]:focus-visible { outline: 2px solid var(--club-orange); outline-offset: 3px; }
.club-header { position: fixed; z-index: 30; inset: 0 0 auto; height: 72px; background: #211e22; border-bottom: 1px solid #50464d; }
.club-header-inner { height: 100%; width: 100%; padding: 0 28px; margin: 0; display: flex; align-items: center; gap: 42px; }
.club-brand { display: flex; align-items: center; gap: 10px; color: var(--club-ivory); text-decoration: none; flex-shrink: 0; }
.club-brand img { width: 36px; height: 44px; }
.club-brand>span { font-size: 15px; font-weight: 700; line-height: 1.25; }
.club-brand strong { display: block; font: 700 18px/1.1 Barlow,sans-serif; color: #c7a4dd; margin-top: 3px; }
.club-nav { align-self: stretch; display: flex; gap: 26px; align-items: stretch; }
.club-nav a { display: flex; align-items: center; padding: 0 2px; position: relative; text-decoration: none; color: var(--club-muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.club-nav a[aria-current] { color: var(--club-ivory); }
.club-nav a[aria-current]::after { content: ''; position: absolute; inset: auto 0 -1px; height: 3px; background: var(--club-orange-fill); }
.club-header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.club-account span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.club-header-actions svg { width: 18px; height: 18px; }
.club-dock-wrap { position: fixed; z-index: 18; bottom: 18px; left: 24px; right: 24px; pointer-events: none; }
.club-dock { max-width: 1280px; margin: auto; background: #211e22; border: 1px solid #64555f; border-radius: 8px; box-shadow: 0 8px 24px #100e1160; pointer-events: auto; overflow: hidden; }
.club-caption { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 10px 20px; min-height: 42px; border-bottom: 1px solid #443a42; background: #29232b; color: #e0d4d8; font-size: 13px; line-height: 1.5; }
.club-caption>svg { width: 16px; height: 16px; color: #bf9bcc; flex-shrink: 0; }
.club-caption-text { max-width: 90ch; }
.club-mobile-stadium { display: none; }
.club-dock-controls { display: flex; align-items: center; gap: 16px; padding: 12px 16px; }
.club-match-label { min-width: 144px; display: grid; gap: 4px; }
.club-match-label>strong { font: 700 20px/1.1 Barlow,sans-serif; }
.club-match-label>span { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--club-muted); }
.club-match-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--club-orange); }
.club-match-label i.connected { background: var(--club-health); }
.club-panel-actions { display: flex; align-items: center; gap: 3px; padding-left: 14px; border-left: 1px solid var(--club-divider); }
.club-dock-utilities { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.club-follow { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
body.arena-shell .club-follow [data-slot=label] { font-size: 12px; color: var(--club-muted); cursor: pointer; }
.club-chat { position: fixed; z-index: 24; bottom: 78px; left: 24px; max-height: calc(100dvh - 170px); overflow-y: auto; width: 360px; background: #211e22; border: 1px solid #64555f; border-radius: 8px; box-shadow: 0 8px 24px #100e1160; padding: 16px; }
.club-chat-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.club-chat-title h2 { font: 700 17px/1.3 'DM Sans',sans-serif; margin: 0; }
.club-chat-context { margin: 8px 0 0; color: var(--club-muted); font-size: 12px; }
.club-chat-log { overflow: auto; height: 190px; padding: 12px 0; scroll-padding: 12px; }
.club-chat-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--club-muted); }
.club-chat-empty>svg { width: 24px; height: 24px; color: #c7a4dd; margin-bottom: 6px; }
.club-chat-empty p { color: var(--club-ivory); font-size: 14px; margin: 6px 0 2px; }
.club-chat-empty>span { font-size: 12px; }
.club-chat-message { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; padding: 0 0 12px; margin: 0; font-size: 13px; }
.club-chat-message strong { color: var(--club-orange); }
.club-chat-message small { color: var(--club-muted); font-size: 11px; }
.club-chat-message>span { width: 100%; overflow-wrap: anywhere; }
.club-chat-form { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--club-divider); }
.club-chat-form input { min-width: 0; flex: 1; }
.club-chat-feedback { color: var(--club-orange); font-size: 12px; margin: 8px 0 0; }
body.arena-shell .club-settings [data-slot=dialog-title] { font: 700 28px/1.2 Barlow,sans-serif; margin: 0; padding-right: 24px; }
body.arena-shell .club-settings [data-slot=dialog-description] { margin: 4px 0 0; color: var(--club-muted); font-size: 13px; line-height: 1.5; }
.club-settings-section { padding-top: 16px; border-top: 1px solid var(--club-divider); }
.club-settings-section h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #d4bbdf; margin: 0 0 16px; }
.club-settings-section h3 svg { height: 16px; width: 16px; }
.club-setting { margin: 0 0 20px; }
.club-setting:last-child { margin-bottom: 0; }
.club-setting-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 12px; }
.club-setting-heading p { font-size: 12px; line-height: 1.5; color: var(--club-muted); margin: 5px 0 0; }
.club-setting-heading>div { min-width: 0; }
.club-volume { display: flex; align-items: center; gap: 20px; }
.club-volume output { font-size: 12px; min-width: 4ch; text-align: right; font-variant-numeric: tabular-nums; color: var(--club-muted); }
.club-setting-heading select { width: 130px; font-size: 13px; }
.club-setting-note { color: var(--club-muted); font-size: 12px; }
.club-settings-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--club-divider); padding-top: 16px; }
body.arena-shell .world { top: 72px; height: calc(100dvh - 72px); }
body.arena-shell .broadcast-hud { top: 88px; }
body.arena-shell .broadcast-drawer { top: 218px!important; bottom: calc(var(--club-dock-height, 120px) + 42px)!important; }
body.arena-shell :is(.creature-library,.match-browser) { top: 88px; bottom: calc(var(--club-dock-height, 120px) + 42px); }
body.arena-shell .match-result { bottom: 168px; }
body.arena-shell .follow-countdown { bottom: calc(var(--club-dock-height, 120px) + 42px); }
body.arena-shell .display-status { bottom: calc(var(--club-dock-height, 120px) + 42px); }
body.arena-shell .console-page { padding-top: 108px; }
@media (max-width: 1150px) and (min-width: 761px) {
 .club-header-inner { gap: 26px; padding-inline: 20px; }
 .club-dock-controls { gap: 8px; padding: 10px; }
 .club-match-label { min-width: 105px; }
 .club-panel-actions { border: 0; padding: 0; }
 .club-panel-actions svg,.club-share-text { display: none; }
 .club-dock-utilities { gap: 8px; }
 .club-follow { gap: 6px; }
}
@media (max-width: 760px) {
 .club-header { height: 112px; }
 .club-header-inner { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 60px 52px; gap: 0 12px; padding: 0 12px; }
 .club-brand>span { display: none; }
 .club-brand img { width: 32px; height: 40px; }
 .club-header-actions { gap: 6px; }
 body.arena-shell button[data-slot=button] { min-height: 44px; }
 .club-header-actions [data-slot=button] { font-size: 12px; }
 .club-header-actions .club-invite>svg { display: none; }
 .club-header-actions [data-variant=outline]>svg { display: none; }
 .club-nav { grid-row: 2; grid-column: 1/-1; justify-content: center; gap: 44px; border-top: 1px solid #443a42; }
 .club-account>span,.club-account>svg:last-child { display: none; }
 body.arena-shell button.club-account { width: 44px; min-height: 44px; padding-inline: 0; }
 .club-nav a { min-width: 88px; justify-content: center; }
 .club-dock-wrap { bottom: 8px; left: 8px; right: 8px; }
 .club-caption { padding: 8px 12px; font-size: 12px; line-height: 1.4; min-height: 49px; }
 .club-caption-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
 .club-caption>svg { display: none; }
 .club-mobile-stadium { display: flex; align-items: center; gap: 5px; flex-shrink: 0; font-size: 11px; color: var(--club-muted); }
 .club-mobile-stadium i { width: 5px; height: 5px; border-radius: 50%; background: var(--club-orange); }
 .club-mobile-stadium i.connected { background: var(--club-health); }
 .club-dock-controls { display: grid; grid-template-columns: 1fr; padding: 6px 8px; gap: 4px; }
 .club-match-label { display: none; }
 .club-panel-actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; padding: 0; border: 0; }
 .club-panel-actions svg { display: none; }
 .club-panel-actions [data-slot=button] { padding-inline: 4px!important; font-size: 12px; }
 .club-dock-utilities { width: 100%; margin: 0; justify-content: space-between; border-top: 1px solid #443a42; padding-top: 4px; }
 .club-share-text { display: inline; }
 .club-follow { gap: 8px; }
 .club-chat { width: auto; left: 8px; right: 8px; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 190px - env(safe-area-inset-bottom, 0px)); overflow-y: auto; padding: 12px; }
 .club-chat-log { height: min(160px,20dvh); }
 .club-chat-title { margin-bottom: 8px; }
 .club-chat-title h2 { font-size: 16px; }
 body.arena-shell .club-chat input { font-size: 16px; }
 body.arena-shell [data-slot=tabs-trigger] { min-height: 40px; }
 body.arena-shell [data-slot=tabs-list] { height: 46px!important; }
 body.arena-shell .club-settings { padding: 20px!important; }
 .club-setting-heading { gap: 16px; }
 .club-setting-heading select { font-size: 16px; width: 148px; flex-shrink: 0; }
 body.arena-shell .world { top: 112px; height: calc(100dvh - 112px); }
 body.arena-shell .broadcast-hud { top: 112px; }
 body.arena-shell :is(.creature-library,.match-browser) { top: 120px; bottom: calc(var(--club-dock-height, 166px) + 24px); }
 body.arena-shell .broadcast-drawer { top: 268px!important; bottom: calc(var(--club-dock-height, 166px) + 24px)!important; }
 body.arena-shell .match-result { bottom: 190px; max-height: calc(100dvh - 440px); }
 body.arena-shell .follow-countdown,body.arena-shell .display-status { bottom: 180px; }
 body.arena-shell .console-page { padding-top: 140px; }
}
@media (prefers-reduced-motion: reduce) { body.arena-shell [data-slot] { transition: none!important; animation: none!important; } }

/* Leaderboard is a primary game destination, visible at every viewport. */
body.arena-shell .club-nav .club-leaderboard-nav { display: flex; align-items: center; gap: 7px; padding: 0 2px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--club-orange); font: 600 14px 'DM Sans',sans-serif; white-space: nowrap; }
.club-leaderboard-nav svg { width: 17px; height: 17px; }

body.arena-shell button.club-leaderboard-action { color: var(--club-orange); font-weight: 700; }
@media (max-width: 760px) {
 .club-nav { gap: 12px; justify-content: space-evenly; }
 .club-nav a { min-width: 70px; }
 body.arena-shell .club-nav .club-leaderboard-nav { font-size: 13px; gap: 5px; }
 .club-panel-actions { grid-template-columns: 1.3fr 1fr 1fr .8fr; }
}

/* Chat is a viewport-anchored popout, independent of the arena toolbar. */
body.arena-shell .club-chat-launcher[data-slot=button] {
 position: fixed; z-index: 25; left: 24px; bottom: 18px;
 min-height: 44px; padding: 10px 16px; gap: 8px;
 background: #211e22; border: 1px solid #64555f; border-radius: 8px;
 box-shadow: 0 4px 16px #100e1140;
}
body.arena-shell .club-chat-launcher[data-slot=button]:hover { background: var(--club-raised); }
body.arena-shell .club-chat-launcher[aria-expanded=true] { border-color: var(--club-selected-edge); }
.club-dock-wrap { left: 140px; }
@media(max-width:760px) {
 .club-dock-wrap { left: 8px; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
 body.arena-shell .club-chat-launcher[data-slot=button] { left: 8px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}

@media(max-width:760px) {
 body.arena-shell :is(.creature-library,.match-browser) { bottom: calc(var(--club-dock-height, 166px) + 86px + env(safe-area-inset-bottom, 0px)); }
 body.arena-shell .broadcast-drawer { bottom: calc(var(--club-dock-height, 166px) + 86px + env(safe-area-inset-bottom, 0px))!important; }
}
.leaderboard-full-link { display: inline-block; margin-top: 20px; color: var(--club-orange); }

/* Season destination extends the existing charcoal, cream and purple club identity. */
body.arena-shell .club-season-page { max-width: 1280px; margin: 0 auto; padding: 108px 28px 64px; }
.club-season-banner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 32px 36px; background: var(--club-purple); color: var(--club-ivory); border-radius: 8px; }
.club-season-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.club-season-heading h2 { font: 700 34px/1.1 Barlow,sans-serif; margin: 0; text-wrap: balance; }
.club-season-live { padding: 5px 9px; background: var(--club-ivory); color: var(--club-purple); border-radius: 4px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.club-season-banner p { margin: 14px 0 20px; font-size: 16px; color: #e0d4d8; }
.club-season-banner img { width: 172px; height: 136px; object-fit: contain; flex-shrink: 0; }
.club-season-page a { display: inline-flex; align-items: center; gap: 6px; color: var(--club-orange); font-size: 14px; font-weight: 600; text-underline-offset: 4px; }
.club-season-page a svg { width: 16px; height: 16px; }
.club-season-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 48px; margin-top: 40px; }
.club-standings { min-width: 0; }
.club-standings-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.club-standings-heading h1 { font: 700 38px/1.1 Barlow,sans-serif; letter-spacing: -.02em; margin: 0; }
.club-standings-heading p { margin: 8px 0 0; color: var(--club-muted); font-size: 14px; }
.club-ranking-note { margin: 24px 0; padding: 16px; background: var(--club-panel); border-radius: 4px; color: var(--club-muted); font-size: 13px; line-height: 1.65; }
.club-standings-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 24px 0 16px; }
.club-standings-tools label { color: var(--club-ivory); }
.club-standings-tools input { flex: 1; min-width: 140px; max-width: 280px; }
.club-standings-tools>span { margin-left: auto; color: var(--club-muted); font-size: 12px; }
.club-standings-table { border-top: 1px solid var(--club-border); border-bottom: 1px solid var(--club-divider); }
.club-standings-table table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.club-standings-table th,.club-standings-table td { padding: 16px 12px; border-bottom: 1px solid var(--club-divider); overflow-wrap: anywhere; }
.club-standings-table thead th { font-size: 12px; font-weight: 600; color: var(--club-muted); }
.club-standings-table tbody th { font-weight: 600; max-width: 28ch; }
.club-standings-table td { color: var(--club-muted); }
.club-standings-empty { padding: 48px 24px; text-align: center; }
.club-standings-empty h2 { font: 700 22px/1.2 'DM Sans',sans-serif; margin: 0; text-wrap: balance; }
.club-standings-empty p { color: var(--club-muted); margin: 12px auto 20px; max-width: 42ch; }
.club-standings-error { color: var(--club-danger); }
.club-season-info section { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--club-divider); }
.club-season-info h2,.club-season-recent h2 { font: 700 20px/1.25 'DM Sans',sans-serif; margin: 0 0 12px; text-wrap: balance; }
.club-season-info p,.club-season-recent>p { color: var(--club-muted); font-size: 14px; line-height: 1.65; margin: 12px 0 18px; }
.club-season-prizes h2 { color: #d4bbdf; }
.club-season-info .club-season-fine { font-size: 12px; margin-bottom: 0; }
.club-season-info dl { font-size: 13px; margin: 0; }
.club-season-info dl div { margin-top: 16px; }
.club-season-info dt { color: var(--club-muted); margin-bottom: 4px; }
.club-season-info dd { margin: 0; }
.club-season-recent { margin-top: 36px; }
.club-season-recent ol { list-style: none; padding: 0; margin: 20px 0 0; }
.club-season-recent li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--club-divider); }
.club-season-recent li strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.club-season-recent li span { display: block; margin-top: 5px; font-size: 12px; color: var(--club-muted); }
.club-season-recent li a { white-space: nowrap; }
.club-season-recent .club-season-no-results { padding: 20px 0; border-top: 1px solid var(--club-divider); }
@media(max-width:1000px) {
 .club-season-layout { grid-template-columns: minmax(0,1fr) 240px; gap: 28px; }
 .club-season-banner { padding: 28px; }
 .club-season-heading h2 { font-size: 30px; }
}
@media(max-width:760px) {
 body.arena-shell .club-season-page { padding: 136px 16px 36px; }
 .club-season-banner { padding: 24px; gap: 0; }
 .club-season-banner img { display: none; }
 .club-season-heading { gap: 12px; }
 .club-season-heading h2 { font-size: 30px; }
 .club-season-banner p { font-size: 14px; }
 .club-season-layout { grid-template-columns: 1fr; gap: 32px; margin-top: 28px; }
 .club-standings-heading h1 { font-size: 32px; }
 .club-standings-tools label { width: 100%; }
 .club-standings-tools input { font-size: 16px; }
 .club-standings-empty { padding: 36px 12px; }
 .club-standings-empty h2 { font-size: 20px; }
 .club-standings-table th,.club-standings-table td { padding: 14px 8px; }
}
