:root {
  color-scheme: light;
  --outside: #eef1f4;
  --shell: #fffdf8;
  --section: #fffefa;
  --surface: #ffffff;
  --surface-soft: #fff9ee;
  --ink: #19122f;
  --muted: #746d7f;
  --line: #eee7da;
  --line-strong: #ded4c3;
  --purple: #7440c8;
  --purple-deep: #5626a5;
  --purple-soft: #eee5ff;
  --orange: #ff6c1a;
  --orange-deep: #e95400;
  --orange-soft: #fff0dc;
  --green: #6d9f36;
  --blue: #2672c9;
  --yellow: #f4b828;
  --shadow: 0 7px 24px rgba(54, 39, 26, .08);
  --display: "Outfit", "Arial Black", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --outside: #0f0c18;
  --shell: #181321;
  --section: #20192b;
  --surface: #282035;
  --surface-soft: #2d2437;
  --ink: #fffaf0;
  --muted: #beb4c7;
  --line: #3a3046;
  --line-strong: #4a3d57;
  --purple: #9668e3;
  --purple-deep: #b995f5;
  --purple-soft: #392a50;
  --orange: #ff8345;
  --orange-deep: #ff9a68;
  --orange-soft: #3d2b28;
  --green: #7eaa4b;
  --blue: #458bd4;
  --yellow: #f3c354;
  --shadow: 0 9px 30px rgba(0, 0, 0, .26);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; font: 16px/1.5 var(--body); }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.home-page { min-height: 100vh; padding: 12px; overflow-x: hidden; background: var(--outside); color: var(--ink); }
.site-shell { width: min(1180px, 100%); margin: 0 auto; overflow: hidden; border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: 24px; background: linear-gradient(180deg, var(--shell), color-mix(in srgb, var(--orange-soft) 20%, var(--shell))); box-shadow: 0 16px 42px rgba(36, 28, 21, .1); }
.site-header { min-height: 88px; padding: 0 38px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; background: color-mix(in srgb, var(--shell) 94%, transparent); }
.brand { color: var(--orange); font: 800 1.42rem var(--display); letter-spacing: -.045em; text-decoration: none; }
.brand span { color: var(--purple); }
.site-header nav { display: flex; justify-content: center; align-items: center; gap: clamp(1.2rem, 3.2vw, 2.7rem); }
.site-header nav > a, .more-menu summary { color: var(--ink); font-size: .84rem; font-weight: 700; text-decoration: none; cursor: pointer; list-style: none; }
.site-header nav > a:hover, .site-header nav > a:focus-visible, .site-header nav > a.active, .more-menu summary:hover { color: var(--orange); }
.more-menu { position: relative; }
.more-menu summary::-webkit-details-marker { display: none; }
.more-menu summary span { margin-left: .22rem; color: var(--muted); }
.more-menu > div { position: absolute; top: 2rem; left: 50%; z-index: 20; min-width: 160px; padding: .45rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); transform: translateX(-50%); }
.more-menu > div a { display: block; padding: .55rem .7rem; border-radius: 8px; color: var(--ink); font-size: .78rem; font-weight: 700; text-decoration: none; }
.more-menu > div a:hover { background: var(--purple-soft); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-search { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.header-search span, .button-search { position: relative; display: block; width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 50%; }
.header-search span::after, .button-search::after { content: ""; position: absolute; width: 7px; height: 2px; right: -6px; bottom: -3px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.theme-toggle { height: 38px; padding: 0 .48rem; display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); }
.theme-toggle > span:first-child { color: #e7a61a; }.theme-toggle > span:last-child { color: var(--purple); }
.theme-track { position: relative; width: 30px; height: 17px; border-radius: 999px; background: var(--orange-soft); }
.theme-track i { position: absolute; width: 13px; height: 13px; top: 2px; left: 2px; border-radius: 50%; background: var(--orange); transition: transform .2s ease, background .2s ease; }
html[data-theme="dark"] .theme-track { background: var(--purple-soft); }
html[data-theme="dark"] .theme-track i { transform: translateX(13px); background: var(--purple); }
.login-button { min-width: 88px; height: 42px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #8354dc, #6129b3); color: #fff; font-weight: 700; opacity: 1; }
.login-button:disabled { cursor: not-allowed; }

.search-hero { position: relative; min-height: 430px; padding: 64px 22% 52px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--orange-soft) 50%, transparent), transparent 44%); text-align: center; }
.search-hero::before { content: ""; position: absolute; z-index: 0; width: 430px; height: 430px; left: calc(50% - 215px); top: 22%; border: 1px solid color-mix(in srgb, var(--purple) 8%, transparent); border-radius: 44% 56% 52% 48%; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--purple-soft) 42%, transparent), transparent 62%); opacity: .65; animation: hero-ambient 13s linear infinite; }
.hero-copy { position: relative; z-index: 3; width: 100%; max-width: 700px; }
.search-hero h1 { margin: 0; font: 800 clamp(3.2rem, 6.3vw, 5.45rem)/.97 var(--display); letter-spacing: -.052em; }
.intro { max-width: 620px; margin: 1.35rem auto 0; color: var(--muted); font-size: 1rem; }
.lookup-card { margin-top: 2.1rem; }
.lookup-row { position: relative; min-height: 66px; padding: 6px 7px 6px 1.45rem; display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); box-shadow: 0 9px 24px rgba(67, 47, 28, .12); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.lookup-row::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(105deg, transparent 24%, color-mix(in srgb, var(--purple) 10%, transparent) 47%, transparent 70%); transform: translateX(-120%); animation: search-glint 5.2s ease-in-out infinite; }
.lookup-row:focus-within { border-color: var(--purple); box-shadow: 0 0 0 4px color-mix(in srgb, var(--purple) 14%, transparent), 0 9px 24px rgba(67,47,28,.12); }
.lookup-row:focus-within { transform: translateY(-2px); }
.lookup-row input { position: relative; z-index: 1; min-width: 0; flex: 1; padding: .75rem 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.lookup-row input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.lookup-row button { position: relative; z-index: 2; min-width: 150px; align-self: stretch; display: inline-flex; align-items: center; justify-content: center; gap: .7rem; overflow: hidden; border: 0; border-radius: 999px; background: linear-gradient(135deg, #8756dd, #672cb9); color: #fff; font-weight: 700; box-shadow: inset 0 -3px rgba(39, 6, 85, .18); transition: transform .18s ease, box-shadow .18s ease; }
.lookup-row button::before { content: ""; position: absolute; width: 34px; height: 130%; left: -55px; top: -15%; background: rgba(255,255,255,.25); transform: skewX(-22deg); animation: button-shine 3.7s ease-in-out infinite; }
.lookup-row button:hover, .lookup-row button:focus-visible { transform: translateY(-1px) scale(1.015); box-shadow: inset 0 -3px rgba(39,6,85,.18), 0 7px 16px rgba(83,35,163,.25); }
.lookup-row button:hover .button-search { animation: search-pop .55s ease; }
.button-search { width: 13px; height: 13px; }
.lookup-help { margin: .75rem 0 0; color: var(--muted); font-size: .73rem; }
#status { min-height: 1.35rem; margin: .45rem 0 0; color: var(--purple-deep); font-size: .8rem; font-weight: 700; }
.profile-search-results { display: none; margin: .55rem 1.5rem 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); text-align: left; }
.profile-search-results:not(:empty) { display: block; }
.search-heading { display: block; padding: .62rem .85rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.profile-search-option { width: 100%; padding: .72rem .85rem; display: flex; justify-content: space-between; gap: 1rem; border: 0; background: transparent; color: var(--ink); text-align: left; }
.profile-search-option + .profile-search-option { border-top: 1px solid var(--line); }
.profile-search-option:hover, .profile-search-option:focus-visible { background: var(--purple-soft); outline: 0; }
.profile-search-option b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.profile-search-option small { flex: none; color: var(--muted); }

.hero-decoration { position: absolute; z-index: 1; bottom: 0; pointer-events: none; }
.hero-decoration-left { left: 36px; width: 150px; height: 175px; }
.decor-box { position: absolute; left: 5px; bottom: 8px; width: 105px; height: 100px; border: 6px solid #6530ad; border-radius: 22px 22px 18px 18px; background: linear-gradient(145deg, #9465ec, #6730ba); box-shadow: 0 10px 0 #4b238c; transform: rotate(-2deg); animation: backpack-bob 4.6s ease-in-out infinite; }
.decor-box::before { content: ""; position: absolute; left: 10px; right: 10px; top: -22px; height: 34px; border: 6px solid #6530ad; border-radius: 20px 20px 9px 9px; background: #8150d4; }
.decor-box i { position: absolute; width: 55px; height: 55px; left: 20px; top: -54px; border: 13px solid #7742cb; border-radius: 50%; border-bottom-color: transparent; transform: rotate(-12deg); }
.decor-box b { position: absolute; left: 36px; top: 35px; color: var(--yellow); font-size: 2rem; text-shadow: 0 3px #b2750b; }
.hero-decoration-right { right: 34px; top: 50%; bottom: auto; width: 180px; height: 220px; transform: translateY(-50%); }
.decor-trophy { position: absolute; right: 28px; top: 2px; width: 96px; height: 98px; border: 5px solid #e59a16; border-radius: 16px 16px 42px 42px; background: linear-gradient(145deg, #ffd85d, #f3a51b); box-shadow: inset 12px 0 rgba(255,255,255,.22); animation: trophy-float 4.1s ease-in-out infinite; }
.decor-trophy::before, .decor-trophy::after { content: ""; position: absolute; top: 15px; width: 34px; height: 47px; border: 9px solid #e59a16; border-radius: 50%; z-index: -1; }
.decor-trophy::before { left: -30px; }.decor-trophy::after { right: -30px; }
.decor-trophy i { position: absolute; left: 41px; bottom: -35px; width: 12px; height: 37px; background: #e59a16; }
.decor-trophy b { display: grid; place-items: center; height: 100%; color: #ef9b15; font-size: 2.8rem; animation: trophy-star 2.6s ease-in-out infinite; }
.decor-base { position: absolute; right: 7px; bottom: 0; width: 145px; height: 80px; border-radius: 18px 18px 7px 7px; background: linear-gradient(145deg, #8050d3, #54249f); box-shadow: 0 9px 0 #3d1b77; }
.decor-base::before { content: ""; position: absolute; left: 30px; right: 30px; top: -24px; height: 32px; border-radius: 9px; background: #40206b; }
.confetti { position: absolute; width: 11px; height: 11px; border-radius: 2px; transform: rotate(42deg); }
.confetti-one { left: 8%; top: 28%; background: #4f95df; animation: confetti-drift 4.8s ease-in-out infinite; }.confetti-two { left: 13%; top: 53%; background: #ffae32; animation: confetti-drift 5.4s .7s ease-in-out infinite reverse; }.confetti-three { right: 9%; top: 22%; background: #d441b5; animation: confetti-drift 4.5s 1.1s ease-in-out infinite; }.confetti-four { right: 17%; top: 63%; background: #ff6c1a; animation: confetti-drift 5s .3s ease-in-out infinite reverse; }

main { padding: 0 30px 14px; }
.dashboard-panel { margin: 20px 0; padding: 24px 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--section); box-shadow: var(--shadow); }
.panel-title { margin: 0; color: var(--ink); font: 800 .83rem var(--display); letter-spacing: .025em; }
.panel-heading-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.panel-heading-row > span, .panel-heading-row > a { padding: .35rem .58rem; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: .68rem; text-decoration: none; }
.ranking-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: .45rem; }
.ranking-country-control { min-width: 230px; padding: 4px; display: grid; grid-template-columns: auto minmax(112px,1fr); align-items: center; gap: .35rem; border: 1px solid color-mix(in srgb, var(--purple) 36%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--purple-soft) 55%, var(--surface)); box-shadow: 0 4px 12px color-mix(in srgb, var(--purple) 12%, transparent); cursor: pointer; }
.ranking-country-control > span { display: inline-flex; align-items: center; gap: .28rem; padding-left: .35rem; color: var(--purple-deep); font: 800 .66rem var(--body); white-space: nowrap; }
.ranking-country-control > span i { font-style: normal; font-size: .85rem; }
.ranking-heading-actions select { width: 100%; max-width: 190px; min-height: 34px; padding: .35rem 1.8rem .35rem .58rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: 700 .7rem var(--body); cursor: pointer; }
.ranking-heading-actions > span { padding: .35rem .58rem; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: .68rem; white-space: nowrap; }
.panel-empty { min-height: 150px; display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--muted); text-align: left; }
.panel-empty strong { display: block; color: var(--ink); font: 700 1.1rem var(--display); }.panel-empty p { margin: .2rem 0 0; font-size: .82rem; }
.empty-search { position: relative; width: 42px; height: 42px; border: 3px solid var(--purple); border-radius: 50%; opacity: .65; }
.empty-search::after { content: ""; position: absolute; width: 18px; height: 4px; right: -13px; bottom: -7px; border-radius: 3px; background: var(--purple); transform: rotate(45deg); }
.panel-empty .empty-search { animation: empty-search-pulse 2.7s ease-in-out infinite; }

.ranking-preview { min-height: 218px; margin-top: .7rem; overflow-x: auto; }
.ranking-preview-state { min-height: 200px; display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--muted); }
.ranking-preview-state strong { display: block; color: var(--ink); font: 700 1.05rem var(--display); }
.ranking-preview-state p { margin: .2rem 0 0; font-size: .78rem; }
.ranking-preview-crown { width: 48px; height: 43px; display: grid; place-items: center; clip-path: polygon(0 20%, 24% 48%, 50% 0, 76% 48%, 100% 20%, 88% 100%, 12% 100%); background: linear-gradient(145deg, #ffd75a, #ff9d16); color: #fff3bd; font-size: 1.2rem; filter: drop-shadow(0 6px 8px rgba(229,154,22,.22)); }
.top-player-chart { min-width: 560px; height: 218px; padding: 22px 10px 4px; display: grid; grid-template-columns: repeat(5, minmax(82px,1fr)); align-items: end; gap: 12px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0 44px, color-mix(in srgb, var(--line) 75%, transparent) 44px 45px); }
.top-player-chart-item { min-width: 0; height: 192px; display: grid; grid-template-rows: 1fr auto; align-items: end; text-align: center; }
.top-player-bar-stage { height: 155px; display: flex; align-items: end; justify-content: center; }
.top-player-bar-fill { position: relative; width: min(66px, 78%); height: var(--bar-height); min-height: 54px; border: 1px solid color-mix(in srgb, var(--purple) 30%, transparent); border-radius: 16px 16px 5px 5px; background: linear-gradient(180deg, #a56de7, #6830b7); box-shadow: inset 0 1px rgba(255,255,255,.3), 0 8px 15px color-mix(in srgb, var(--purple) 17%, transparent); transform-origin: bottom; animation: brawler-bar-rise .65s var(--bar-delay, 0ms) cubic-bezier(.2,.78,.24,1) both; }
.top-player-chart-item:first-child .top-player-bar-fill { border-color: color-mix(in srgb, var(--orange) 42%, transparent); background: linear-gradient(180deg, #ffb42d, #f36e12); box-shadow: inset 0 1px rgba(255,255,255,.34), 0 8px 16px rgba(244,110,18,.19); }
.top-player-rank { position: absolute; width: 38px; height: 38px; left: 50%; top: -20px; display: grid; place-items: center; border: 3px solid var(--surface); border-radius: 50%; background: var(--ink); color: var(--surface); font: 800 .64rem var(--display); box-shadow: 0 5px 10px rgba(34,23,18,.18); transform: translateX(-50%); }
.top-player-chart-item:first-child .top-player-rank { background: #f4a31a; color: #fff; }
.top-player-value { position: absolute; left: 50%; top: 28px; color: #fff; font: 800 .72rem var(--display); text-shadow: 0 1px 2px rgba(27,10,54,.4); transform: translateX(-50%); white-space: nowrap; }
.top-player-copy { min-width: 0; padding-top: .38rem; }
.top-player-copy strong, .top-player-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-player-copy strong { font: 800 .71rem var(--display); }
.top-player-copy small { color: var(--muted); font-size: .58rem; }

.overview-main { padding: 22px 0 20px; display: grid; grid-template-columns: 205px 1fr; gap: 1.5rem; align-items: center; border-bottom: 1px solid var(--line); }
.player-identity { display: flex; align-items: center; gap: .85rem; }
.player-avatar { flex: none; width: 76px; height: 76px; display: grid; place-items: center; border: 4px solid #6f38bd; border-radius: 24px; background: linear-gradient(145deg, #a16bf1, #5a279f); color: #fff; font: 800 2rem var(--display); box-shadow: inset 0 0 0 5px rgba(255,255,255,.14); }
.player-identity h3 { margin: 0; font: 800 1.28rem var(--display); }.player-identity p { margin: .18rem 0; color: var(--muted); font-size: .72rem; font-weight: 700; }
.sync-state { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .62rem; }.sync-state i { width: 6px; height: 6px; border-radius: 50%; background: #48bb82; animation: live-pulse 2s ease-out infinite; }
.profile-links { margin-top: .32rem; display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .65rem; }
.public-profile-link { width: max-content; color: var(--purple-deep); font-size: .65rem; font-weight: 800; text-decoration: none; }.public-profile-link:hover, .public-profile-link:focus-visible { text-decoration: underline; }
.view-club-button { padding: .24rem .5rem; border: 1px solid color-mix(in srgb, var(--purple) 42%, var(--line)); border-radius: 8px; background: var(--purple-soft); color: var(--purple-deep); font-size: .63rem; font-weight: 800; }
.view-club-button:hover, .view-club-button:focus-visible { border-color: var(--purple); outline: 2px solid color-mix(in srgb, var(--purple) 20%, transparent); outline-offset: 2px; }
.view-club-button:disabled { border-color: var(--line); background: var(--surface-soft); color: var(--muted); cursor: default; opacity: .8; }
.overview-top-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .6rem; }
.overview-top-stats article { min-height: 92px; padding: .78rem; display: flex; align-items: center; gap: .7rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.overview-top-stats small, .overview-secondary small { display: block; color: var(--muted); font-size: .64rem; }.overview-top-stats strong { display: block; margin-top: .14rem; font: 800 .95rem var(--display); }
.metric-icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; }
.trophy-small { background: #ffe4a8; }.medal-small { background: #ffe0a1; }.grid-small { background: #cfe8ff; }.clock-small { background: #ffd7d1; }
.metric-icon::before { content: ""; width: 14px; height: 14px; border: 3px solid currentColor; border-radius: 4px; }
.trophy-small, .medal-small { color: #d88900; }.grid-small { color: #2672c9; }.clock-small { color: #c84837; }
.overview-secondary { display: grid; grid-template-columns: repeat(3,1fr); }
.overview-secondary article { min-height: 84px; padding: 1rem 1.5rem; text-align: center; }
.overview-secondary article + article { border-left: 1px solid var(--line); }
.overview-secondary strong { display: block; margin: .2rem 0; font: 800 1rem var(--display); }.overview-secondary span { color: var(--muted); font-size: .6rem; }
.club-panel { padding-top: 1.15rem; border-top: 1px solid var(--line); }
.club-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.club-heading small { color: var(--orange-deep); font-size: .62rem; font-weight: 800; letter-spacing: .08em; }
.club-heading h3 { margin: .12rem 0 0; font: 800 1.15rem var(--display); }
.club-heading p { margin: .08rem 0 0; color: var(--muted); font-size: .68rem; font-weight: 700; }
.club-heading > span { padding: .36rem .58rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); color: var(--muted); font-size: .67rem; text-align: right; }
.club-description { max-width: 760px; margin: .65rem 0 0; color: var(--muted); font-size: .75rem; white-space: pre-line; }
.club-members-state { margin: .8rem 0 0; color: var(--muted); font-size: .72rem; }
.club-members { margin-top: .8rem; display: grid; grid-template-columns: repeat(auto-fill,minmax(170px,1fr)); gap: .55rem; }
.club-member { min-width: 0; padding: .66rem .72rem; display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: .65rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.club-member:hover, .club-member:focus-visible { border-color: var(--purple); background: var(--purple-soft); outline: 0; transform: translateY(-1px); }
.club-member.is-current { border-color: color-mix(in srgb, var(--orange) 55%, var(--line)); background: color-mix(in srgb, var(--orange-soft) 62%, var(--surface)); }
.club-member-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(145deg, #9360e5, #632bac); color: #fff; font: 800 .8rem var(--display); }
.club-member-copy { min-width: 0; }
.club-member-copy strong, .club-member-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-member-copy strong { font: 800 .75rem var(--display); }
.club-member-copy span { color: var(--muted); font-size: .59rem; }
.profile-action-button,.club-heading-tools button { min-height: 0; padding: .32rem .55rem; border: 1px solid color-mix(in srgb,var(--purple) 32%,var(--line)); border-radius: 999px; background: var(--purple-soft); color: var(--purple-deep); font-size: .65rem; font-weight: 800; }
.club-heading-tools { display: grid; justify-items: end; gap: .42rem; }
.club-heading-tools > span { display: block; padding: .36rem .58rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); color: var(--muted); font-size: .67rem; text-align: right; }
.club-heading-tools button + button { margin-left: .3rem; }

.progress-layout { display: grid; grid-template-columns: minmax(0,2.2fr) minmax(230px,1fr); gap: 20px; }
.progression-card { margin: 0; min-height: 320px; }
.chart-empty-state { min-height: 240px; display: grid; place-items: center; align-content: center; gap: .3rem; border-bottom: 1px solid var(--line); color: var(--muted); text-align: center; }
.chart-empty-state strong { color: var(--ink); }.chart-empty-state span { font-size: .78rem; }
.progress-data { padding-top: .65rem; overflow-x: auto; }
.brawler-trophy-chart { min-width: 500px; height: 226px; padding: 22px 8px 4px; display: grid; grid-template-columns: repeat(5, minmax(72px,1fr)); align-items: end; gap: 9px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0 43px, color-mix(in srgb, var(--line) 75%, transparent) 43px 44px); }
.brawler-chart-item { min-width: 0; height: 194px; display: grid; grid-template-rows: 1fr auto; align-items: end; text-align: center; }
.brawler-bar-stage { position: relative; height: 158px; display: flex; align-items: end; justify-content: center; }
.brawler-bar-fill { position: relative; width: min(58px, 76%); height: var(--bar-height); min-height: 34px; border: 1px solid color-mix(in srgb, var(--purple) 30%, transparent); border-radius: 14px 14px 5px 5px; background: linear-gradient(180deg, color-mix(in srgb, var(--purple) 72%, #fff), var(--purple-deep)); box-shadow: inset 0 1px rgba(255,255,255,.32), 0 7px 14px color-mix(in srgb, var(--purple) 18%, transparent); transform-origin: bottom; animation: brawler-bar-rise .65s var(--bar-delay, 0ms) cubic-bezier(.2,.78,.24,1) both; }
.brawler-bar-fill img { position: absolute; width: 48px; height: 48px; left: 50%; top: -25px; object-fit: cover; border: 3px solid var(--surface); border-radius: 50%; background: var(--surface-soft); box-shadow: 0 5px 12px rgba(34,23,18,.18); transform: translateX(-50%); }
.brawler-bar-value { position: absolute; left: 50%; top: 27px; color: #fff; font: 800 .72rem var(--display); text-shadow: 0 1px 2px rgba(27,10,54,.4); transform: translateX(-50%); white-space: nowrap; }
.brawler-chart-copy { min-width: 0; padding-top: .34rem; }
.brawler-chart-copy strong, .brawler-chart-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brawler-chart-copy strong { font: 800 .69rem var(--display); }.brawler-chart-copy small { color: var(--muted); font-size: .58rem; }
#progress-status { margin: .35rem 0 0; color: var(--muted); font-size: .7rem; text-align: center; }
.feature-card { min-height: 320px; padding: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 20px; background: linear-gradient(145deg, #8b55d7, #5825a0); color: #fff; box-shadow: var(--shadow); text-align: center; }
.feature-card > small { align-self: stretch; text-align: left; font-weight: 700; letter-spacing: .04em; }.feature-card > strong { font: 800 1.35rem var(--display); }.feature-card p { max-width: 210px; margin: .55rem 0 0; color: rgba(255,255,255,.75); font-size: .72rem; }
.spotlight-icon { width: 82px; height: 82px; margin: 1.2rem 0; display: grid; place-items: center; border: 5px solid rgba(255,255,255,.75); border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 9px #d5c6ec, 0 8px 15px rgba(33,12,70,.25); }
.spotlight-icon i { color: #f3a51b; font: 800 2.4rem var(--display); font-style: normal; text-shadow: 0 3px #c57b05; }
.feature-image { width: 96px; height: 96px; margin: .9rem 0 .75rem; object-fit: cover; border: 5px solid rgba(255,255,255,.86); border-radius: 50%; background: rgba(255,255,255,.16); box-shadow: 0 11px 20px rgba(33,12,70,.28); animation: feature-icon-arrive .42s cubic-bezier(.2,.8,.2,1) both; }
.feature-card.ranking-fact .feature-image { width: 66px; height: 66px; margin: .65rem 0 .45rem; border-width: 4px; }
.feature-ranking { width: min(100%, 245px); margin: .65rem 0 0; padding: 0; display: grid; gap: .32rem; list-style: none; counter-reset: feature-rank; }
.feature-ranking li { min-height: 30px; padding: .36rem .55rem; display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: .35rem; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: rgba(255,255,255,.1); font-size: .65rem; text-align: left; counter-increment: feature-rank; }
.feature-ranking li::before { content: counter(feature-rank); width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.18); font-weight: 800; }
.feature-ranking span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }.feature-ranking b { white-space: nowrap; font-size: .61rem; }
.feature-controls { margin-top: 1rem; display: flex; align-items: center; justify-content: center; gap: .65rem; }
.feature-controls button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.feature-controls button:hover, .feature-controls button:focus-visible { background: rgba(255,255,255,.25); transform: scale(1.08); outline: 2px solid rgba(255,255,255,.75); outline-offset: 2px; }
.feature-controls span { min-width: 2.6rem; color: rgba(255,255,255,.72); font-size: .64rem; font-weight: 700; }

.brawler-strip { min-height: 245px; }
.strip-empty { min-height: 165px; display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.top-brawlers-list { margin-top: 1rem; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1rem; }
.top-brawler { position: relative; min-width: 0; padding: .7rem .6rem .8rem; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); text-align: center; transition: transform .18s ease, box-shadow .18s ease; }
.top-brawler:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.top-brawler .rank { position: absolute; left: .55rem; top: .5rem; color: var(--green); font-weight: 800; }.top-brawler img { width: 82px; height: 82px; object-fit: cover; border-radius: 50%; background: var(--surface-soft); transition: transform .22s cubic-bezier(.2,.8,.2,1); }.top-brawler:hover img { transform: scale(1.08) rotate(-2deg); }.top-brawler strong, .top-brawler small { display: block; }.top-brawler strong { margin-top: .2rem; font: 800 .94rem var(--display); }.top-brawler small { color: var(--muted); font-size: .68rem; }.top-brawler em { display: block; margin-top: .42rem; color: var(--purple-deep); font-size: .68rem; font-style: normal; font-weight: 700; }

.explore-section { min-height: 260px; }
.explore-grid { margin-top: 1.2rem; display: grid; grid-template-columns: repeat(4,1fr); gap: 1.1rem; }
.explore-card { position: relative; min-height: 170px; padding: 1.15rem; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate; border: 1px solid rgba(255,255,255,.22); border-radius: 17px; color: #fff; text-decoration: none; box-shadow: 0 9px 18px rgba(38, 25, 21, .17), inset 0 1px 0 rgba(255,255,255,.18); transition: transform .18s ease, box-shadow .18s ease; }
.explore-card:hover, .explore-card:focus-visible { transform: translateY(-4px); outline: 3px solid color-mix(in srgb, var(--ink) 30%, transparent); outline-offset: 2px; }
.explore-card:hover { box-shadow: 0 13px 24px rgba(38, 25, 21, .22), inset 0 1px 0 rgba(255,255,255,.2); }
.explore-card::after { content: ""; position: absolute; z-index: -1; width: 130px; height: 130px; right: -42px; bottom: -64px; border-radius: 50%; background: rgba(255,255,255,.1); transition: transform .28s ease; }
.explore-card::before { content: ""; position: absolute; z-index: 0; width: 45px; height: 160%; left: -80px; top: -30%; background: rgba(255,255,255,.16); transform: skewX(-20deg); transition: left .55s ease; }
.explore-card:hover::before { left: calc(100% + 35px); }.explore-card:hover::after { transform: scale(1.22); }
.rankings-card { background: linear-gradient(145deg, #ff9418 0%, #ff6e00 68%, #ef5400 100%); }.leaderboard-card { background: linear-gradient(145deg, #8950d4 0%, #6830b7 66%, #4d198d 100%); }.brawlers-card { background: linear-gradient(145deg, #80b143 0%, #659b2d 62%, #47771c 100%); }.compare-card { background: linear-gradient(145deg, #3f8bd8 0%, #2871c2 62%, #1555a3 100%); }
.explore-card span { position: relative; z-index: 2; }.explore-card strong, .explore-card small { display: block; }.explore-card strong { font: 700 1.15rem var(--display); }.explore-card small { margin-top: .15rem; color: rgba(255,255,255,.75); font-size: .72rem; }
.explore-card > img { position: absolute; z-index: 1; right: 13px; bottom: 8px; width: 88px; height: 78px; object-fit: contain; object-position: right bottom; pointer-events: none; user-select: none; animation: explore-icon-idle 4.8s ease-in-out infinite; transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.explore-card:nth-child(2) > img { animation-delay: -.9s; }.explore-card:nth-child(3) > img { animation-delay: -1.8s; }.explore-card:nth-child(4) > img { animation-delay: -2.7s; }
.explore-card:hover > img { animation-play-state: paused; transform: translateY(-5px) scale(1.1) rotate(-2deg); }

.brawler-collection { margin: 20px 0; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--section); box-shadow: var(--shadow); }
.site-metrics { min-height: 100px; padding: 16px 30px; display: grid; grid-template-columns: repeat(4,1fr); align-items: center; gap: 1rem; }
.site-metrics article { display: flex; align-items: center; gap: .75rem; }.site-metrics small, .site-metrics strong { display: block; }.site-metrics small { color: var(--muted); font-size: .68rem; }.site-metrics strong { font: 700 .8rem var(--display); }
.site-metric-icon { flex: none; width: 31px; height: 31px; border: 2px solid var(--muted); border-radius: 9px; opacity: .75; }
.site-metric-icon::before { content: ""; display: block; width: 10px; height: 10px; margin: 8px; border: 2px solid currentColor; border-radius: 50%; }
footer { padding: 20px 38px 28px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); }
footer small { font-size: .62rem; text-align: center; }footer > span { font-size: .66rem; font-weight: 700; }

.reveal { animation: reveal .55s ease-out both; }.reveal-late { animation-delay: .08s; }
.motion-section { opacity: 0; transform: translateY(18px) scale(.99); }
.motion-section.motion-in { animation: section-arrive .62s var(--reveal-delay, 0ms) cubic-bezier(.2,.75,.25,1) both; }
.brawler-collection.motion-section { opacity: 1; transform: none; }
.profile-pop #profile-data { animation: profile-pop .5s cubic-bezier(.2,.8,.2,1) both; }
.home-page.is-leaving-for-race .site-shell { pointer-events: none; animation: home-to-race-out .3s cubic-bezier(.4,0,.7,.2) both; }
.home-page.is-returning-from-race .site-shell { animation: race-to-home-in .58s cubic-bezier(.18,.78,.2,1) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes hero-ambient { 0% { transform: rotate(0deg) scale(.96); } 50% { transform: rotate(180deg) scale(1.06); } 100% { transform: rotate(360deg) scale(.96); } }
@keyframes backpack-bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(-3.5deg); } }
@keyframes trophy-float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-11px) rotate(1deg); } }
@keyframes trophy-star { 0%,100% { transform: scale(1) rotate(0); filter: brightness(1); } 50% { transform: scale(1.12) rotate(6deg); filter: brightness(1.15); } }
@keyframes confetti-drift { 0%,100% { transform: translate3d(0,0,0) rotate(42deg); } 50% { transform: translate3d(7px,-13px,0) rotate(125deg); } }
@keyframes search-glint { 0%,62% { transform: translateX(-120%); } 82%,100% { transform: translateX(120%); } }
@keyframes button-shine { 0%,58% { left: -55px; } 78%,100% { left: calc(100% + 35px); } }
@keyframes search-pop { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2) rotate(-10deg); } }
@keyframes empty-search-pulse { 0%,100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.08); opacity: .85; } }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(72,187,130,.5); } 75%,100% { box-shadow: 0 0 0 7px rgba(72,187,130,0); } }
@keyframes explore-icon-idle { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(1deg); } }
@keyframes section-arrive { from { opacity: 0; transform: translateY(18px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes profile-pop { from { opacity: 0; transform: translateY(9px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes brawler-bar-rise { from { opacity: 0; transform: scaleY(.08); } to { opacity: 1; transform: scaleY(1); } }
@keyframes feature-icon-arrive { from { opacity: 0; transform: translateY(7px) scale(.88); } to { opacity: 1; transform: none; } }
@keyframes home-to-race-out { to { opacity: 0; transform: translateX(-24px) scale(.985); filter: blur(4px); } }
@keyframes race-to-home-in { from { opacity: 0; transform: translateX(-28px) scale(.985); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

@media (max-width: 980px) {
  .site-header { padding: 0 24px; gap: 1rem; }.site-header nav { gap: 1rem; }.login-button { display: none; }
  .search-hero { padding-inline: 16%; }.hero-decoration-left { left: 8px; transform: scale(.82); transform-origin: bottom left; }.hero-decoration-right { right: 4px; transform: translateY(-50%) scale(.82); transform-origin: center right; }
  .overview-main { grid-template-columns: 1fr; }.overview-top-stats { grid-template-columns: repeat(2,1fr); }
  .top-brawlers-list { grid-template-columns: repeat(3,1fr); }.explore-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 720px) {
  .home-page { padding: 0; }.site-shell { border-radius: 0; border-inline: 0; }.site-header { min-height: 70px; padding: 0 16px; grid-template-columns: auto 1fr; }.site-header nav { display: none; }.header-actions { justify-self: end; }.header-search { display: none; }.theme-toggle > span:first-child, .theme-toggle > span:last-child { display: none; }
  .brand { font-size: 1.12rem; }.search-hero { min-height: 450px; padding: 62px 16px 98px; align-items: start; }.search-hero h1 { font-size: clamp(2.75rem, 13.7vw, 4rem); }.intro { font-size: .88rem; }
  .hero-decoration-left { display: none; }.hero-decoration-right { right: -30px; top: 34%; opacity: .58; transform: translateY(-50%) scale(.52); transform-origin: center right; }
  .lookup-row { min-height: 60px; padding-left: 1rem; }.lookup-row button { min-width: 112px; gap: .45rem; }.lookup-help { font-size: .66rem; }
  main { padding: 0 12px 10px; }.dashboard-panel { margin: 14px 0; padding: 18px 16px; border-radius: 16px; }
  .panel-empty { min-height: 132px; padding-inline: 1rem; }.ranking-heading-actions { max-width: 72%; }.ranking-country-control { min-width: 0; grid-template-columns: auto minmax(100px,1fr); }.ranking-country-control > span { font-size: .62rem; }.ranking-heading-actions select { width: 100%; max-width: 170px; }.ranking-heading-actions > span { display: none; }
  .ranking-preview { min-height: 200px; }.top-player-chart { height: 200px; }.top-player-chart-item { height: 176px; }.top-player-bar-stage { height: 139px; }
  .overview-top-stats { grid-template-columns: 1fr 1fr; }.overview-top-stats article { min-height: 86px; padding: .65rem; }.metric-icon { display: none; }.overview-top-stats strong { font-size: .82rem; overflow-wrap: anywhere; }
  .overview-secondary { grid-template-columns: 1fr; }.overview-secondary article { min-height: 0; padding: .8rem; }.overview-secondary article + article { border-left: 0; border-top: 1px solid var(--line); }
  .club-heading { align-items: flex-start; }.club-heading > span { max-width: 45%; }.club-members { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .progress-layout { grid-template-columns: 1fr; gap: 14px; }.progression-card, .feature-card { min-height: 265px; }.feature-card { padding: 20px; }.spotlight-icon { width: 66px; height: 66px; margin: .8rem 0; }.feature-image { width: 82px; height: 82px; margin: .7rem 0 .55rem; }
  .top-brawlers-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }.top-brawler { min-width: 145px; scroll-snap-align: start; }
  .explore-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }.explore-card { min-height: 145px; padding: .9rem; }.explore-card > img { width: 76px; height: 68px; right: 8px; bottom: 7px; }
  .site-metrics { padding: 18px 8px; grid-template-columns: 1fr 1fr; }.site-metrics article { align-items: start; }.site-metric-icon { display: none; }
  footer { padding: 18px 16px 24px; grid-template-columns: 1fr; text-align: center; }footer small { order: 3; }
}

@media (max-width: 420px) {
  .search-hero h1 { font-size: 2.75rem; }.lookup-row { display: grid; grid-template-columns: 1fr; padding: 6px; border-radius: 19px; }.lookup-row input { padding: .8rem .75rem; }.lookup-row button { min-height: 48px; }
  .panel-heading-row { align-items: flex-start; }.player-overview > .panel-heading-row { display: grid; grid-template-columns: 1fr; }.ranking-heading-actions { width: 100%; max-width: none; justify-content: flex-start; }.ranking-country-control { width: 100%; grid-template-columns: auto 1fr; }.ranking-heading-actions select { width: 100%; max-width: none; }
  .overview-top-stats { grid-template-columns: 1fr; }.player-identity { align-items: flex-start; }.player-avatar { width: 64px; height: 64px; }
  .club-heading { display: block; }.club-heading > span { display: inline-block; max-width: none; margin-top: .5rem; text-align: left; }.club-heading-tools { margin-top: .6rem; justify-items: start; }.club-heading-tools > span { text-align: left; }.club-members { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: 1fr; }.explore-card { min-height: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
