/* Shared shell follows the brand/event/navigation/account regions of
 * 84452cup src/bidding/templates/bidding/base.html and site-header.css,
 * reference 993cc324562a5eba15e28198f1010692700ed1be (read only).
 * This is independent CSS adapted to LoL tokens, not copied source/assets.
 * The reference has no repository-root license; no redistribution right inferred.
 */
.site-header { position: sticky; top: 0; z-index: 90; background: color-mix(in srgb,var(--header) 95%,transparent); backdrop-filter: blur(18px); }
.site-header::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg,transparent,var(--accent),transparent); opacity: .22; pointer-events: none; }
.site-header .header-inner { max-width: 1840px; min-height: 94px; padding: 0 40px; gap: clamp(24px,3.6vw,70px); }
.header-identity { --mark-size: 60px; position: relative; display: grid; align-content: center; gap: 2px; flex: 0 1 300px; min-width: 180px; padding: 10px 0 10px calc(var(--mark-size) + 13px); }
.site-header .brand { width: fit-content; min-width: 0; gap: 0; }
.site-header .brand-image { position: absolute; left: 0; top: 50%; display: block; width: var(--mark-size); height: auto; aspect-ratio: 1; object-fit: contain; transform: translateY(-50%); }
.site-header .brand-image--dark, html[data-theme="dark"] .site-header .brand-image--light { display: none; }
html[data-theme="dark"] .site-header .brand-image--dark { display: block; }
.site-header .brand > span { font-size: 25px; letter-spacing: .12em; font-weight: 650; line-height: 1.35; }
.site-header .season-switcher { display: block; position: relative; max-width: none; min-width: 0; }
.site-header .season-switcher summary { display: flex; align-items: center; gap: 7px; min-height: 30px; max-width: 100%; width: fit-content; list-style: none; padding: 2px 6px 2px 0; color: var(--muted); font-size: 14px; cursor: pointer; white-space: nowrap; transition: color .18s ease; }
.site-header .season-switcher summary span { margin: 0; }
.site-header .season-switcher-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.shell-caret { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .2s ease; }
[data-shell-menu][open] > summary .shell-caret { transform: rotate(180deg); }
.site-header .season-switcher[open] summary,.site-header .season-switcher summary:hover { color: var(--accent); }
.site-header .season-switcher ul { left: 0; right: auto; top: calc(100% + 8px); width: max(100%,310px); max-width: min(440px,calc(100vw - 88px)); max-height: min(480px,calc(100dvh - 112px)); overflow: auto; padding: 7px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 8px; box-shadow: 0 18px 44px #0004; list-style: none; z-index: 3; }
.site-header .season-switcher li a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 11px 12px; border-radius: 5px; color: var(--muted); font-size: 15px; line-height: 1.4; transition: color .18s ease,background .18s ease; }
.site-header .season-switcher li a:hover { color: var(--text); background: var(--surface-2); }
.site-header .season-switcher li a[aria-current=true] { background: color-mix(in srgb,var(--accent) 12%,var(--surface)); color: var(--accent); }
.season-option-name { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.season-status { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.season-status.is-live { color: var(--win); }
.season-check,.season-all-link svg { width: 16px; height: 16px; flex: 0 0 16px; stroke: currentColor; stroke-width: 1.7; fill: none; }
.season-all-link a { justify-content: space-between; }
.season-empty { padding: 12px; color: var(--muted); font-size: 14px; }
.site-header .main-nav { flex: 0 0 auto; align-self: stretch; display: flex; align-items: stretch; gap: clamp(20px,2.2vw,44px); }
.site-header .main-nav > a { padding: 0 9px; min-height: 44px; font-size: 17px; font-weight: 550; color: var(--muted); transition: color .18s ease; }
.site-header .main-nav > a::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: -1px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform .2s ease; }
.site-header .main-nav > a:hover { color: var(--text); }
.site-header .main-nav > a[aria-current=page] { color: var(--text); }
.site-header .main-nav > a[aria-current=page]::after,.site-header .main-nav > a:hover::after { transform: scaleX(1); }
.site-header .header-tools { flex: 0 0 auto; min-width: 0; gap: 20px; margin-left: auto; }
.account-menu { position: relative; }
.account-menu > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; list-style: none; cursor: pointer; border-radius: 24px; color: var(--text); }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-avatar { display: grid; place-items: center; position: relative; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; border: 1px solid color-mix(in srgb,var(--accent) 65%,var(--line)); background: radial-gradient(circle at 25% 15%,color-mix(in srgb,var(--accent) 24%,var(--surface-2)),var(--surface-2) 70%); color: var(--accent); box-shadow: inset 0 0 0 3px var(--header); font-size: 18px; font-weight: 700; line-height: 1; transition: box-shadow .25s ease,border-color .25s ease; }
.account-avatar::after { content: ""; position: absolute; inset: -4px; border: 1px solid color-mix(in srgb,var(--accent) 15%,transparent); border-radius: inherit; pointer-events: none; }
.account-menu > summary:hover .account-avatar,.account-menu[open] > summary .account-avatar { box-shadow: inset 0 0 0 3px var(--header),0 0 15px color-mix(in srgb,var(--accent) 18%,transparent); border-color: var(--accent); }
.account-name { font-size: 15px; font-weight: 550; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu .shell-caret { color: var(--muted); width: 13px; }
.account-panel { position: absolute; top: calc(100% + 16px); right: 0; width: 268px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 112px); overflow-y: auto; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 9px; box-shadow: 0 18px 44px #0004; }
.account-identity { display: flex; align-items: center; gap: 13px; padding: 13px 11px 17px; margin-bottom: 5px; border-bottom: 1px solid var(--line); }
.account-identity > div { min-width: 0; }
.account-identity strong { display: block; font-size: 16px; font-weight: 650; overflow-wrap: anywhere; }
.account-identity > div > span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.account-action { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 45px; padding: 10px 12px; background: transparent; border: 0; border-radius: 5px; color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; transition: background .18s ease,color .18s ease; }
.account-action:hover { background: var(--surface-2); color: var(--accent); }
.account-action svg { width: 19px; height: 19px; flex: 0 0 19px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.account-action .account-arrow { width: 15px; height: 15px; margin-left: auto; }
.account-panel form { margin: 0; }
.account-login { display: flex; align-items: center; gap: 9px; min-height: 44px; font-size: 15px; color: var(--text); transition: color .18s ease; }
.account-login svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.account-login:hover { color: var(--accent); }
.site-header .theme-toggle { width: 40px; height: 40px; border-radius: 50%; border-color: transparent; background: var(--surface-2); color: var(--muted); cursor: pointer; transition: color .2s ease,background .2s ease,transform .25s ease; }
.site-header .theme-toggle:hover { color: var(--accent); transform: rotate(24deg); }
.site-header .theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.site-header :is(a,summary,button):focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
.navigation-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 150; overflow: hidden; pointer-events: none; }
.navigation-progress::after { content: ""; display: block; width: 40%; height: 100%; background: linear-gradient(90deg,transparent,var(--accent),var(--blue),transparent); animation: shell-navigation 1.15s ease-in-out infinite; }
@keyframes shell-navigation { from { transform: translateX(-100%); } to { transform: translateX(350%); } }
[data-shell-menu][open] > :not(summary) { animation: shell-dropdown .18s ease-out; transform-origin: top; }
@keyframes shell-dropdown { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1200px) {
  .site-header .header-inner { gap: 24px; padding-inline: 24px; }
  .header-identity { flex-basis: 240px; }
  .site-header .main-nav { gap: 17px; }
  .site-header .main-nav > a { font-size: 16px; padding-inline: 7px; }
  .site-header .header-tools { gap: 14px; }
  .account-name { max-width: 100px; }
}
@media (max-width: 850px) {
  .site-header .header-inner { min-height: 84px; gap: 18px; }
  .header-identity { flex: 1 1 auto; max-width: 340px; }
  .site-header .main-nav { display: none; position: absolute; inset: 100% 0 auto; padding: 10px 24px 18px; background: var(--header); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-header .main-nav.is-open { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; animation: shell-dropdown .18s ease-out; }
  .site-header .main-nav > a { display: flex; justify-content: center; padding: 13px 5px; border-radius: 5px; min-height: 48px; font-size: 16px; }
  .site-header .main-nav > a[aria-current=page] { color: var(--accent); background: color-mix(in srgb,var(--accent) 10%,var(--surface)); }
  .site-header .main-nav > a::after { left: 30%; right: 30%; bottom: 0; width: auto; }
  .site-header .nav-toggle { display: block; width: 40px; height: 40px; padding: 9px; margin: 0; }
  .site-header .nav-toggle span { height: 2px; transition: transform .2s ease,opacity .2s ease; }
  .nav-toggle[aria-expanded=true] span:first-child { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded=true] span:last-child { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .site-header .header-inner { padding-inline: 18px; min-height: 82px; gap: 9px; }
  .header-identity { --mark-size: 48px; min-width: 0; padding-left: 58px; gap: 1px; }
  .site-header .brand > span { font-size: 21px; letter-spacing: .08em; }
  .site-header .season-switcher summary { font-size: 13px; min-height: 28px; padding-right: 0; gap: 4px; }
  .site-header .season-switcher ul { left: 0; right: auto; width: 290px; max-width: calc(100vw - 76px); }
  .site-header .header-tools { gap: 9px; }
  .account-menu > summary { gap: 0; }
  .account-menu > summary > .account-name,.account-menu > summary > .shell-caret { display: none; }
  .account-avatar { width: 34px; height: 34px; flex-basis: 34px; font-size: 16px; }
  .account-panel { position: fixed; top: 90px; right: 16px; left: auto; width: min(268px,calc(100vw - 32px)); }
  .site-header .theme-toggle { width: 34px; height: 34px; }
  .account-login { gap: 0; width: 34px; justify-content: center; }
  .account-login > span { display: none; }
  .site-header .nav-toggle { width: 34px; height: 38px; padding-inline: 7px; }
  .site-header .main-nav { padding-inline: 18px; }
}
@media (min-width: 2400px) {
  .site-header .header-inner { max-width: 2640px; min-height: 120px; padding-inline: 50px; gap: 88px; }
  .header-identity { --mark-size: 76px; flex-basis: 400px; gap: 3px; padding-left: 94px; }
  .site-header .brand > span { font-size: 34px; }
  .site-header .season-switcher summary { font-size: 19px; min-height: 38px; }
  .site-header .main-nav { gap: 50px; }
  .site-header .main-nav > a { font-size: 23px; }
  .site-header .header-tools { gap: 26px; }
  .account-avatar { width: 52px; height: 52px; flex-basis: 52px; font-size: 23px; }
  .account-name,.account-login { font-size: 20px; max-width: 200px; }
  .site-header .theme-toggle { width: 48px; height: 48px; }
  .account-panel { width: 340px; }
  .account-action,.account-identity strong,.site-header .season-switcher li a { font-size: 20px; min-height: 52px; }
  .site-header .season-switcher ul { width: 400px; }
  .season-status,.account-identity > div > span { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header *,[data-shell-menu][open] > :not(summary) { animation: none!important; transition: none!important; }
  .navigation-progress::after { animation: none; width: 100%; }
}
