/* Compact S3 shell; text and icon sizes remain inherited from the shared theme. */
html[data-theme][data-palette] .site-header{background:color-mix(in srgb,var(--header) 40%,transparent);backdrop-filter:blur(22px) saturate(130%);-webkit-backdrop-filter:blur(22px) saturate(130%)}
.site-header .header-inner{min-height:74px;gap:clamp(18px,2.3vw,40px)}
.site-header .header-identity{flex-basis:250px;min-width:210px;padding-block:7px}
.site-header .brand-season{letter-spacing:.02em;margin-left:.12em;color:var(--muted);font-weight:500}
.site-header .main-nav{gap:clamp(12px,1.5vw,28px)}
.site-header .main-nav>a{padding-inline:7px}
.site-header .main-nav.is-open{grid-template-columns:repeat(3,minmax(0,1fr))}
.site-header :is(.mobile-nav-account,.mobile-player-shortcut){display:none}
.team-selector-rail nav[data-team-dock]{padding:12px 10px;gap:5px;overflow:visible}
.team-selector-rail nav[data-team-dock]>a{min-height:66px;padding:9px 12px;gap:14px;position:relative;isolation:isolate}
.team-selector-rail nav[data-team-dock] .team-mark{width:46px;height:46px;flex-basis:46px;transform:scale(var(--dock-scale,1));transform-origin:center;transition:transform .18s cubic-bezier(.22,.8,.3,1),filter .18s;will-change:transform}
.team-selector-rail nav[data-team-dock]>a:hover .team-mark,.team-selector-rail nav[data-team-dock]>a:focus-visible .team-mark{filter:drop-shadow(0 4px 7px #0002)}
.team-selector-rail nav[data-team-dock]>a:focus-visible .team-mark{transform:scale(1.2)}
.featured-live-match{margin:0 0 28px;padding:24px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(120deg,color-mix(in srgb,var(--blue) 5%,var(--surface)),var(--surface) 50%,color-mix(in srgb,var(--red) 5%,var(--surface)));box-shadow:0 12px 32px #00000008}
.featured-live-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.featured-live-eyebrow{display:block;font-size:12px;letter-spacing:.08em;color:var(--accent);margin-bottom:5px}
.featured-live-heading h2{font-size:22px;line-height:1.4;margin:0;overflow-wrap:anywhere}.featured-live-heading h2>span{padding:0 14px;color:var(--muted);font-size:14px;font-weight:400}
.featured-live-meta{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:9px 14px;color:var(--muted);font-size:12px}.featured-live-meta a{color:var(--accent)}
.featured-live-sides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.featured-live-side{min-width:0;border-top:2px solid var(--blue);padding-top:14px}.featured-live-side.side-red{border-top-color:var(--red)}
.featured-live-side>header{display:flex;gap:12px;align-items:center;margin-bottom:12px}.featured-live-side>header .team-mark-large{width:44px;height:44px;flex-basis:44px}.featured-live-side h3{margin:0;font-size:17px}.featured-live-side>header>span:last-child{margin-left:auto;white-space:nowrap;font-size:12px;color:var(--muted)}
.featured-live-perspectives{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:10px}.featured-live-perspectives .live-view-card{min-width:0;display:block}.featured-live-perspectives .live-view-cover{display:none}.featured-live-empty{margin:0;color:var(--muted);font-size:13px;padding:22px;border:1px dashed var(--line);border-radius:8px}
.featured-live-no-match{display:flex;justify-content:space-between;gap:12px;padding:15px 18px;border:1px dashed var(--line);border-radius:10px;margin-bottom:24px;color:var(--muted);font-size:13px}
.featured-live-settings{margin-bottom:24px}.featured-live-form{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.featured-live-form>label{flex:1;min-width:min(100%,260px);display:grid;gap:8px}.featured-live-form select{width:100%;min-height:44px}.featured-live-form .errorlist{flex-basis:100%}
@media(min-width:2400px){.site-header .header-inner{min-height:96px}.site-header .header-identity{flex-basis:360px}}
@media(max-width:1200px){.site-header .header-inner{gap:18px}.site-header .header-identity{flex-basis:225px}.site-header .main-nav{gap:8px}.site-header .header-tools{gap:10px}}
@media(min-width:851px) and (max-width:1100px){.site-header .account-name{display:none}.site-header .header-inner{padding-inline:18px}.site-header .header-identity{min-width:190px;flex-basis:210px}.site-header .main-nav>a{padding-inline:4px}}
@media(min-width:931px) and (max-width:1100px){
  .site-header .header-inner{gap:12px}
  .site-header .main-nav{gap:5px}
  .site-header .main-nav>a>.ui-icon{display:none}
}
@media(max-width:1100px){.team-selector-rail nav[data-team-dock]{overflow-x:auto;overflow-y:hidden;padding:14px 8px;gap:8px;min-width:0}.team-selector-rail nav[data-team-dock]>a{padding:8px 6px;gap:8px;min-width:88px;max-width:88px}.team-selector-rail nav[data-team-dock] .team-mark{width:42px;height:42px;flex-basis:42px}}
@media(max-width:930px){.site-header .header-inner{min-height:70px}.site-header .header-identity{min-width:0;flex:1 1 auto}.site-header .main-nav{background:color-mix(in srgb,var(--header) 94%,transparent);backdrop-filter:blur(22px)}}
@media(max-width:560px){.site-header .header-inner{min-height:68px;padding-inline:12px;gap:7px}.site-header .header-identity{--mark-size:44px;padding-left:51px}.site-header .header-tools{gap:7px}.site-header .account-panel{top:76px}.featured-live-match{padding:16px}.featured-live-heading{align-items:flex-start;flex-direction:column;gap:10px}.featured-live-heading h2{font-size:19px}.featured-live-meta{justify-content:flex-start}.featured-live-sides{grid-template-columns:1fr;gap:20px}.featured-live-side>header .team-mark-large{width:40px;height:40px;flex-basis:40px}.featured-live-no-match{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.team-selector-rail nav[data-team-dock] .team-mark{transition:none;transform:none!important;will-change:auto}}
@media(forced-colors:active){html[data-theme][data-palette] .site-header{background:Canvas;backdrop-filter:none}.featured-live-side{border-color:CanvasText}}

/* Phone shell: navigation/account left, compact mark centred, players/theme right. */
@media(max-width:930px){
  :root{--header-height:60px}
  .site-header .header-inner{position:relative;min-height:60px;padding:0 12px;gap:0;justify-content:space-between}
  .site-header .main-nav{display:none;position:absolute}
  .site-header .nav-toggle{display:block;order:-1;flex:none;width:44px;min-width:44px;height:44px;min-height:44px;padding:12px}
  .site-header .nav-toggle span{width:20px}
  .site-header .header-identity{--mark-size:38px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:block;flex:none;min-width:0;max-width:none;width:44px;height:44px;padding:0}
  .site-header .brand{display:block;width:44px;height:44px}
  .site-header .brand-image{left:3px;width:38px}
  .site-header .brand>span{display:none}
  .site-header .header-tools{margin-left:auto;gap:0}
  .site-header .header-tools :is(.mobile-player-shortcut,.theme-toggle,.palette-switcher>summary){box-sizing:border-box;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:11px;display:grid;place-items:center;border-color:transparent;background:transparent;color:var(--muted);border-radius:50%}
  .site-header .header-tools :is(.account-login,.account-menu){display:none}
  .site-header .header-tools :is(.mobile-player-shortcut svg,.theme-toggle svg,.palette-switcher>summary svg){width:20px;height:20px}
  .site-header .mobile-player-shortcut:is(:hover,:focus-visible,[aria-current=page]){color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,transparent)}
  .site-header .header-tools .account-avatar{width:26px;height:26px;flex-basis:26px;font-size:13px;box-shadow:none}
  .site-header .header-tools .account-avatar::after{display:none}
  .site-header .header-tools :is(.account-name,.shell-caret,.account-login>span,[data-palette-label]){display:none}
  .site-header .main-nav.is-open{display:flex;flex-direction:column;align-items:stretch;grid-template-columns:none;gap:3px;inset:100% auto auto 10px;width:min(280px,calc(100vw - 20px));max-height:calc(100dvh - 76px);overflow-y:auto;padding:10px;border:1px solid var(--line);border-radius:0 0 12px 12px}
  .site-header .main-nav>a{justify-content:flex-start;gap:14px;min-height:46px;padding:12px 15px;font-size:16px}
  .site-header .main-nav>a::after{display:none}
  .site-header .mobile-nav-account{display:block;border-top:1px solid var(--line);margin-top:7px;padding-top:7px}
  .site-header .mobile-nav-account .account-action{box-sizing:border-box;min-height:44px;gap:14px;padding:12px 15px;font-size:15px;line-height:1.4}
  .site-header .mobile-nav-account .account-identity{padding:10px 15px 12px;margin:0;border:0}
  .site-header .mobile-nav-account .account-avatar{width:32px;height:32px;flex-basis:32px;font-size:14px;box-shadow:none}
  .site-header .mobile-nav-account .account-avatar::after{display:none}
  .site-header .mobile-nav-account .account-identity strong{font-size:14px}
  .site-header .mobile-nav-account .account-identity>div>span{font-size:12px}
  .site-header .mobile-nav-account form{margin:0}
  .site-header .account-panel{position:fixed;top:66px;right:10px;max-height:calc(100dvh - 80px)}
}
@media(max-width:600px){
  .site-main{min-width:0}
  .home-page .site-main{width:calc(100% - 24px);padding-top:14px}
  .home-page :is(.home-overview,.home-event-kv,.home-overview-main,.home-overview-record,.event-kv-copy,.event-kv-footer,.event-kv-record){min-width:0;max-width:100%;box-sizing:border-box}
  .home-page .home-overview{padding:20px 18px;gap:18px}
  .home-page :is(.home-overview h1,.event-kv-copy h1){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
  .home-page :is(.home-overview-actions,.event-kv-actions){flex-wrap:wrap;gap:8px 14px;margin-top:12px}
  .home-page .home-overview-record{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1.4fr);gap:10px}
  .home-page .event-kv-record{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) minmax(0,1.4fr);gap:8px}
  .home-page .event-kv-record>div+div{padding-left:8px}
  .home-page :is(.home-overview-record,.event-kv-record)>div{min-width:0}
  .home-page :is(.home-overview-record,.event-kv-record) dd{font-size:clamp(17px,5.2vw,23px);line-height:1.4;flex-wrap:wrap;overflow-wrap:anywhere;white-space:normal}
  .home-page :is(.home-progress,.event-kv-progress) dd{font-size:13px;white-space:normal}
  .home-page :is(.home-overview-record,.event-kv-record) dt{font-size:11px}
  .home-page .home-event-kv .event-kv-stage{max-width:100%;box-sizing:border-box}
  .home-page .section-heading h2{font-size:19px}
  .home-page .section-heading a{font-size:12px}
  .player-catalog-toolbar :is(input,select){font-size:16px}
}

@media(max-width:600px){.home-page :is(.home-overview-record,.event-kv-record) dd>small{display:none}.site-header .palette-switcher .palette-menu{top:66px;max-height:calc(100dvh - 78px);overflow-y:auto}}
@media(max-width:380px){.site-header .header-identity{left:calc(50% - 10px)}}

