/* Data QC: one authoritative component layer over the legacy game theme. */
#dataPage{--data-gap:20px;--data-pad:28px;--data-border:#e1eaf3;--data-muted:#62718a;background:radial-gradient(ellipse at 80% 5%,#dff1ff 0,transparent 35%),#eff7ff;color:#102347;font-weight:400;line-height:1.7}
#dataPage .community-shell{display:flex;flex-direction:column;gap:var(--data-gap)}
#dataPage .community-shell>*{min-width:0}
#dataPage .community-shell :is(h1,h2,h3,h4,p){margin:0}
#dataPage .community-shell :is(h1,h2,h3,h4){color:#102347;font-weight:800;text-wrap:balance}
#dataPage .community-shell :is(p,button,input,select,td){font-size:14px;line-height:1.65}
#dataPage .community-shell :is(small,time,.small-note,.muted,.status,.badge,.field-label){font-size:12px;line-height:1.6}
#dataPage .community-shell :is(.status,.small-note,.muted){color:var(--data-muted);font-weight:400}
#dataPage .community-shell :is(strong,b){font-variant-numeric:tabular-nums}
#dataPage .community-shell :is(a,button,input,select):focus-visible{outline:3px solid #319fe9;outline-offset:3px}
#dataPage :is(.alltime-card,.champions,.history-card,.community-columns .white-card,.pulse-popular,.mode-popularity){min-width:0;margin:0;padding:var(--data-pad);border:1px solid var(--data-border);border-radius:28px;background:#fff;box-shadow:0 8px 32px #16396004;overflow:visible}
#dataPage .card-heading{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:8px;min-height:0;margin:0 0 20px;padding:0;border:0}
#dataPage .card-heading h2{font-size:24px!important;line-height:1.3;letter-spacing:-.035em;font-weight:800}
#dataPage .card-heading>div{min-width:0}
#dataPage .card-heading :is(.muted,.alltime-tag),#dataPage #championRange{display:block;font-size:12px;line-height:1.6;font-weight:500;margin:0;padding:0;border:0;color:var(--data-muted)}
#dataPage :is(.stats-eyebrow,.section-kicker,.community-hero .eyebrow){display:none}
#dataPage .heading-icon{display:inline-flex;align-items:center;vertical-align:middle;margin:0 6px 0 0;color:#ed7409}
#dataPage .heading-icon .ui-icon{width:24px;height:24px}
/* Opening card. */
#dataPage .community-hero{display:grid;grid-template-columns:1.3fr 1fr;align-items:center;gap:28px;min-height:0;margin:0;padding:34px 38px;border:1px solid var(--data-border);border-radius:28px;background:#fff;overflow:hidden}
#dataPage .community-hero:before{display:none}
#dataPage .community-hero h1{font-size:36px!important;line-height:1.2;letter-spacing:-.04em;margin:0 0 16px}
#dataPage .community-hero p{max-width:480px;font-size:14px;font-weight:400;line-height:1.75;color:var(--data-muted)}
#dataPage .crew-art{display:block;justify-self:center;width:100%;max-width:100%;height:200px;max-height:200px;margin:0;object-fit:contain}
/* Eight metrics: explicit important padding defeats old zero-inset nth-child rules. */
#dataPage .alltime-card .community-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
#dataPage .alltime-card .community-totals>div{display:grid;grid-template-columns:24px minmax(0,1fr);grid-template-rows:auto auto;gap:6px 12px;align-items:center;min-width:0;margin:0;padding:16px!important;border:1px solid var(--data-border)!important;border-radius:14px;background:#f7fbff;box-shadow:none}
#dataPage .alltime-card .community-totals>div>span{grid-column:1;grid-row:1/3;align-self:center;opacity:1;color:#456586}
#dataPage .community-totals .ui-icon{width:24px;height:24px}
#dataPage .alltime-card .community-totals strong{grid-column:2;grid-row:1;min-width:0;margin:0;font-size:24px;font-weight:800;line-height:1.3;letter-spacing:-.03em;overflow-wrap:anywhere}
#dataPage .alltime-card .community-totals small{display:block;grid-column:2;grid-row:2;margin:0;font-size:12px;font-weight:500;line-height:1.5;color:var(--data-muted)}
#dataPage #totalsNote{font-size:12px;font-weight:400;line-height:1.7;margin:16px 0 0}
/* Weekly winners: equal cards, no inherited pedestal geometry. */
#dataPage .champion-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:0;margin:0;isolation:isolate}
#dataPage .champion-grid:before,#dataPage .champion-podium:before{display:none}
#dataPage .champion-box{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;min-width:0;padding:22px;background:#f7fbff;border:1px solid var(--data-border);border-radius:18px;box-shadow:none;overflow:hidden;text-align:center}
#dataPage .champion-portrait{display:flex;align-items:center;justify-content:center;position:relative;isolation:isolate;width:220px;max-width:100%;height:112px;margin:0}
#dataPage .champion-ornament{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:0}
#dataPage .champion-portrait .community-avatar{position:relative;z-index:1;display:grid;place-items:center;flex:none;width:80px;height:88px;margin:0;border:3px solid #fff;border-radius:14px;font-size:24px;overflow:hidden;box-shadow:0 3px 10px #223f6b12}
#dataPage .champion-name{display:flex;align-items:center;justify-content:center;min-width:0;width:100%;min-height:0;padding:0;margin:0;border:0;border-radius:0;background:none;box-shadow:none}
#dataPage .champion-name a{font-size:14px;font-weight:800;line-height:1.5;max-width:100%;overflow-wrap:anywhere;color:#102347;text-align:center}
#dataPage .champion-podium{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;min-height:0;margin:0;padding:4px 0 0;background:none;border:0;box-shadow:none}
#dataPage .champion-podium h3,#dataPage .champion-box>h3{font-size:12px;font-weight:600;line-height:1.5;margin:0;color:var(--data-muted)}
#dataPage .champion-score{font-size:36px;font-weight:800;line-height:1.2;letter-spacing:-.03em}
#dataPage .champion-box>.muted{font-size:14px;line-height:1.7;margin:8px 0}
/* Feed and records. Explicit placements follow the generated DOM. */
#dataPage .community-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--data-gap);align-items:stretch;margin:0}
#dataPage .activity-card{display:flex;flex-direction:column;min-height:0}
#dataPage .community-columns .card-heading{min-height:0;margin-bottom:20px}
#dataPage .feed-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px;padding:0}
#dataPage .feed-tabs button{min-height:40px;padding:8px 14px;font-size:14px;font-weight:700;line-height:1.5;white-space:nowrap}
#dataPage .activity-list{flex:1 1 0;min-height:320px;height:0;max-height:none;overflow-y:auto;overflow-x:hidden;margin:0;padding:0 5px 0 0;border:0;scrollbar-gutter:stable;overscroll-behavior:contain}
#dataPage .activity-item{display:grid;grid-template-columns:32px 20px minmax(0,1fr) auto;grid-template-rows:auto;align-items:center;column-gap:10px;row-gap:4px;min-height:76px;margin:0;padding:16px 0;border:0;border-bottom:1px solid #e7edf4;border-radius:0;position:relative}
#dataPage .activity-item:before{display:none}
#dataPage .activity-item>.community-avatar{grid-column:1;grid-row:1;display:grid;place-items:center;width:32px;height:32px;margin:0;border:0;border-radius:8px;font-size:24px;overflow:hidden}
#dataPage .activity-item>.event-icon{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:center;width:20px;height:24px;margin:0;background:none!important}
#dataPage .activity-item .event-icon .ui-icon{width:20px;height:20px}
#dataPage .activity-copy{grid-column:3;grid-row:1;min-width:0;font-size:14px;font-weight:400;line-height:1.65;color:#102347;overflow-wrap:anywhere}
#dataPage .activity-copy a{font-size:14px;font-weight:700;line-height:inherit;overflow-wrap:anywhere}
#dataPage .activity-item time{grid-column:4;grid-row:1;align-self:start;margin-top:2px;font-size:12px;font-weight:500;line-height:1.5;white-space:nowrap;color:var(--data-muted)}
#dataPage .activity-card>.small-note,#dataPage .standout-card>.small-note{display:block;flex:none;margin:16px 0 0;padding:0;border:0;border-radius:0;background:none;font-size:12px;font-weight:400;line-height:1.7;color:var(--data-muted)}
#dataPage #standouts{padding:0;margin:0;background:none;border-radius:0;min-width:0}
#dataPage .record-top{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 8px;padding:0;border:0}
#dataPage .record-top .standout-row,#dataPage .record-top .standout-row+.standout-row{display:flex;flex-direction:column;align-items:center;gap:12px;min-width:0;min-height:0;margin:0;padding:18px 12px;border:1px solid var(--data-border);border-radius:15px;background:#f7fbff;box-shadow:none;text-align:center}
#dataPage .record-top .standout-icon{display:none}
#dataPage .record-top .standout-label{display:block;order:0;grid-column:auto;grid-row:auto;width:100%;margin:0;font-size:12px;font-weight:700;line-height:1.5;text-align:center;color:#102347}
#dataPage .record-top .standout-label small{display:block;font-size:12px;font-weight:500;line-height:1.5;margin:4px 0 0;color:var(--data-muted)}
#dataPage .record-top .standout-player{display:flex;order:1;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-width:0;min-height:0;padding:0;margin:0;border:0}
#dataPage .record-top .community-avatar{display:grid!important;place-items:center;width:56px;height:56px;margin:0;border-radius:12px;font-size:24px;overflow:hidden}
#dataPage .record-top .player-profile-link{display:block;width:100%;min-height:0;margin:0;font-size:14px;font-weight:700;line-height:1.5;overflow-wrap:anywhere;text-align:center}
#dataPage .record-top .standout-value{display:block;order:2;width:100%;margin:0;text-align:center}
#dataPage .record-top .standout-value strong{display:block;width:100%;font-size:36px;font-weight:800;line-height:1.2;letter-spacing:-.03em}
#dataPage .standout-row:not(.ath){display:grid;grid-template-columns:22px minmax(0,1fr) minmax(0,1fr) 72px;align-items:center;gap:10px;min-height:76px;margin:0;padding:16px 0;border:0;border-bottom:1px solid #e7edf4;border-radius:0;background:none}
#dataPage .standout-row:not(.ath) .standout-icon{display:flex;align-items:center;justify-content:center;width:22px;height:24px;background:none!important}
#dataPage .standout-row:not(.ath) .standout-icon .ui-icon{width:20px;height:20px}
#dataPage .standout-row:not(.ath) .standout-label{font-size:12px;font-weight:700;line-height:1.5;min-width:0}
#dataPage .standout-row:not(.ath) .standout-label small{display:block;margin:4px 0 0;font-size:12px;font-weight:400;line-height:1.5;color:var(--data-muted)}
#dataPage .standout-row:not(.ath) .standout-player{display:flex;flex-direction:row;align-items:center;gap:8px;min-width:0;font-size:14px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}
#dataPage .standout-row:not(.ath) .standout-player .community-avatar{display:grid;place-items:center;width:32px;height:32px;flex:none;font-size:24px;border-radius:8px;overflow:hidden}
#dataPage .standout-row:not(.ath) .player-profile-link{min-width:0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
#dataPage .standout-row:not(.ath) .standout-value{width:72px;text-align:right}
#dataPage .standout-row:not(.ath) .standout-value strong{font-size:24px;font-weight:800;line-height:1.3}
#dataPage .community-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
/* Favourites: captions stay readable without covering the main artwork. */
#dataPage .data-favourites-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:var(--data-gap);align-items:stretch}
#dataPage .popular-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#dataPage .popular-arena,#dataPage .popular-character{position:relative;isolation:isolate;min-width:0;min-height:250px;border-radius:16px;overflow:hidden}
#dataPage .popular-arena>img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#dataPage .popular-character .portrait{align-self:center;margin-bottom:50px;height:145px;width:106px;flex:none}
#dataPage .popular-arena .popular-caption,#dataPage .popular-character>div{position:absolute;inset:auto 0 0;z-index:4;display:block;width:100%;max-width:none;margin:0;padding:32px 16px 16px;border:0;border-radius:0;background:linear-gradient(transparent,#10203dcc 40%,#10203df0);text-align:left;color:#fff;align-self:auto}
#dataPage .popular-arena .popular-caption small,#dataPage .popular-character>div small{display:block;margin:0 0 6px;font-size:12px;font-weight:600;line-height:1.5;color:#fff}
#dataPage .popular-arena .popular-caption strong,#dataPage .popular-character>div strong{display:block;font-size:24px;font-weight:800;line-height:1.25;letter-spacing:-.025em;color:#fff;overflow-wrap:anywhere}
#dataPage .data-favourites-row>.mode-popularity{display:flex;flex-direction:column;justify-content:center;grid-column:auto;gap:0}
#dataPage .mode-title{font-size:24px;font-weight:800;line-height:1.3;letter-spacing:-.035em;margin:0 0 24px}
#dataPage .mode-values{display:flex;flex-direction:column;gap:18px;margin:0 0 24px}
#dataPage .mode-values>span,#dataPage .mode-values>span:last-child{display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;gap:12px;text-align:left;font-size:14px;font-weight:500;line-height:1.5}
#dataPage .mode-values strong{font-size:24px;font-weight:800;line-height:1.3;font-variant-numeric:tabular-nums;white-space:nowrap}
#dataPage .mode-meter{height:12px;flex:none;border-radius:12px;overflow:hidden}
#dataPage #modeNote{margin:14px 0 0;font-size:12px;font-weight:400;line-height:1.7}
/* History controls form a stable three-column grid; code input is a full row. */
#dataPage .history-toolbar{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1fr);align-items:end;gap:16px;min-width:0;margin:0 0 20px;padding:18px;border:1px solid var(--data-border);border-radius:16px;background:#f7fbff}
#dataPage .history-toolbar>label,#dataPage .history-toolbar>div{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;font-size:12px;font-weight:600;line-height:1.5}
#dataPage .field-label{display:block;font-size:12px;font-weight:600;line-height:1.5;margin:0}
#dataPage .history-toolbar :is(input,select,button){box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:42px;height:auto;margin:0;padding:10px 12px;border-radius:10px;font-size:14px;font-weight:600;line-height:1.5}
#dataPage .history-toolbar select{padding-right:30px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dataPage .history-toolbar .board-tabs{display:flex;align-items:stretch;gap:6px;margin:0;padding:0;border:0;background:none}
#dataPage .history-toolbar .board-tabs button{flex:1;min-height:42px;padding:9px 10px;white-space:nowrap}
#dataPage #codeForm{grid-column:1/-1;width:100%;min-width:0;margin:0;padding:0}
#dataPage #codeForm>label{display:block;font-size:12px;font-weight:600;line-height:1.5;margin:0 0 8px}
#dataPage .code-input{display:flex;gap:8px;align-items:stretch;min-width:0}
#dataPage .code-input input{flex:1;min-width:0}
#dataPage .code-input button{width:auto;flex:none}
#dataPage .history-context{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:0 0 16px}
#dataPage .history-context p{min-width:0;flex:1;font-size:14px;font-weight:500;line-height:1.65;overflow-wrap:anywhere}
#dataPage .history-context .badge{flex:none;font-size:12px;font-weight:600;line-height:1.5}
#dataPage .table-scroll{width:100%;max-width:100%;overflow-x:auto;border:1px solid var(--data-border);border-radius:14px;overscroll-behavior-x:contain}
#dataPage table{width:100%;min-width:400px;border-collapse:collapse;table-layout:fixed;font-size:14px;line-height:1.6}
#dataPage th{padding:12px 14px;background:#f4f9fe;font-size:12px;font-weight:700;line-height:1.5;text-align:left}
#dataPage td{padding:14px;border-bottom:1px solid #e7edf4;font-size:14px;font-weight:400;line-height:1.6;vertical-align:middle}
#dataPage :is(th,td):first-child{width:56px;text-align:center}
#dataPage :is(th,td):last-child{width:104px;text-align:right;font-weight:700;font-variant-numeric:tabular-nums}
#dataPage td[colspan]{width:auto;text-align:center;font-weight:400}
#dataPage td>.community-avatar{display:inline-grid;width:32px;height:32px;aspect-ratio:1;vertical-align:middle;margin:0 10px 0 0;border-radius:8px;font-size:24px}
#dataPage td .player-profile-link{font-size:14px;font-weight:700;line-height:1.6;overflow-wrap:anywhere}
#dataPage tr:last-child td{border-bottom:0}
#dataPage :is(.small-note,.status){font-size:12px;line-height:1.7}
#dataPage #historySummary{margin:16px 0 0}
#dataPage :is(#communityStatus,#historyStatus):empty{display:none}
#dataPage :is(#communityStatus,#historyStatus):not(:empty){margin:0;padding:12px 16px;border:1px solid var(--data-border);border-radius:12px;background:#fff;font-size:12px;line-height:1.7}
#dataPage .empty{padding:20px 12px;color:var(--data-muted);font-size:14px;font-weight:400;line-height:1.75;text-align:center;overflow-wrap:anywhere}
#dataPage :is(.champion-box,.standout-player)>.muted{font-size:14px;font-weight:400;line-height:1.6;overflow-wrap:anywhere}
/* Tablet: avoid narrow label/username columns instead of shrinking type. */
@media(max-width:1000px){#dataPage .alltime-card .community-totals{grid-template-columns:repeat(2,minmax(0,1fr))}#dataPage .community-columns{grid-template-columns:1fr}#dataPage .activity-list{flex:none;min-height:0;height:auto;max-height:420px}#dataPage .data-favourites-row{grid-template-columns:1fr}#dataPage .data-favourites-row>.mode-popularity{justify-content:flex-start}#dataPage .history-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}#dataPage .history-toolbar>div{grid-column:1/-1}}
@media(max-width:760px){#dataPage{--data-pad:24px;--data-gap:16px}#dataPage :is(.alltime-card,.champions,.history-card,.community-columns .white-card,.pulse-popular,.mode-popularity){border-radius:22px}#dataPage .community-hero{grid-template-columns:1fr;gap:18px;padding:28px 24px;border-radius:22px}#dataPage .community-hero h1{font-size:24px!important;line-height:1.25}#dataPage .crew-art{height:175px;max-height:175px}#dataPage .alltime-card .community-totals{gap:10px}#dataPage .alltime-card .community-totals>div{grid-template-columns:minmax(0,1fr);gap:6px;padding:14px 12px!important}#dataPage .alltime-card .community-totals>div>span{display:none}#dataPage .alltime-card .community-totals :is(strong,small){grid-column:1;grid-row:auto}#dataPage .champion-grid{gap:12px}#dataPage .champion-box{padding:16px 10px;gap:8px}#dataPage .champion-portrait{height:90px}#dataPage .champion-portrait .community-avatar{width:62px;height:68px}#dataPage .activity-item{grid-template-columns:32px 20px minmax(0,1fr);grid-template-rows:auto auto;column-gap:8px;padding:14px 0;align-items:start}#dataPage .activity-item>.community-avatar,#dataPage .activity-item>.event-icon{grid-row:1/3;align-self:center}#dataPage .activity-copy{grid-column:3;grid-row:1}#dataPage .activity-item time{grid-column:3;grid-row:2;margin:0;align-self:start}#dataPage .record-top{gap:10px}#dataPage .record-top .standout-row,#dataPage .record-top .standout-row+.standout-row{padding:16px 10px;gap:10px}#dataPage .record-top .community-avatar{width:48px;height:48px}#dataPage .standout-row:not(.ath){grid-template-columns:22px minmax(0,1fr) 72px;grid-template-rows:auto auto;gap:6px 10px;padding:14px 0}#dataPage .standout-row:not(.ath) .standout-icon{grid-column:1;grid-row:1/3;align-self:center}#dataPage .standout-row:not(.ath) .standout-label{grid-column:2;grid-row:1}#dataPage .standout-row:not(.ath) .standout-label small{display:inline;margin-left:4px}#dataPage .standout-row:not(.ath) .standout-player{grid-column:2;grid-row:2}#dataPage .standout-row:not(.ath) .standout-value{grid-column:3;grid-row:1/3;align-self:center}#dataPage .popular-grid{gap:12px}#dataPage .popular-arena,#dataPage .popular-character{min-height:225px}#dataPage .popular-character .portrait{height:125px;width:92px;margin-bottom:65px}#dataPage .popular-arena .popular-caption,#dataPage .popular-character>div{padding:30px 12px 14px}#dataPage .popular-arena .popular-caption strong,#dataPage .popular-character>div strong{font-size:14px;line-height:1.5;font-weight:700}#dataPage .mode-title{margin-bottom:20px}#dataPage .history-toolbar{padding:14px;gap:12px}#dataPage .history-toolbar>label{grid-column:1/-1}#dataPage .history-toolbar>div{grid-column:1/-1}#dataPage .history-toolbar>label,#dataPage .field-label{line-height:1.5}#dataPage .history-context p{flex-basis:100%}#dataPage th,#dataPage td{padding:12px}#dataPage :is(th,td):first-child{width:48px}#dataPage :is(th,td):last-child{width:90px}}
@media(prefers-reduced-motion:reduce){#dataPage *{scroll-behavior:auto}}

#dataPage .table-scroll:focus-visible{outline:3px solid #319fe9;outline-offset:3px}
#dataPage :is(.popular-arena,.popular-character)>p.muted{position:relative;z-index:5;align-self:center;margin:auto;padding:24px;font-size:14px;line-height:1.7;text-align:center}

/* Clear favourite artwork and a light, readable caption surface. */
#dataPage .popular-character .portrait{filter:none!important}
#dataPage .popular-arena .popular-caption,#dataPage .popular-character>div{z-index:6;padding:14px 16px;background:#fff!important;color:#102347;border-top:1px solid #e1eaf3;box-shadow:none;text-shadow:none}
#dataPage .popular-arena .popular-caption small,#dataPage .popular-character>div small{color:#62718a!important;text-shadow:none!important}
#dataPage .popular-arena .popular-caption strong,#dataPage .popular-character>div strong{color:#102347!important;text-shadow:none!important}
@media(max-width:760px){#dataPage .popular-arena .popular-caption,#dataPage .popular-character>div{padding:12px}#dataPage .popular-character .portrait{margin-bottom:70px}}

/* Community refinements: open introduction, shared avatar scale and timeline. */
#dataPage{--player-avatar:56px}
#dataPage .community-hero{border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;padding:28px 0 32px;gap:40px}
#dataPage .community-hero h1{font-size:48px!important;line-height:1.15;margin-bottom:20px}
#dataPage .community-hero p{font-size:16px;max-width:550px}
#dataPage .community-hero .hero-description{font-size:14px;line-height:1.8;margin-top:10px;max-width:490px}
#dataPage .crew-art{height:240px;max-height:240px}
#dataPage .champion-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
#dataPage .champion-box>h3{min-height:36px;display:flex;align-items:center;justify-content:center}
#dataPage .champion-score{font-size:30px;overflow-wrap:anywhere;max-width:100%}
#dataPage .champion-portrait{height:100px}
#dataPage .champion-portrait .community-avatar{width:72px;height:72px;aspect-ratio:1}
#dataPage .activity-list{padding-left:0;border-left:0}
#dataPage .activity-item{grid-template-columns:16px var(--player-avatar) minmax(0,1fr);grid-template-rows:auto auto;column-gap:14px;row-gap:5px;padding:18px 0;min-height:96px;align-items:start;border-bottom:0}
#dataPage .activity-item:before{content:"";display:block;position:absolute;left:7px;top:0;bottom:0;width:1px;height:auto;border:0;border-radius:0;background:#cad8e6;transform:none;box-shadow:none}
#dataPage .activity-item:after{content:"";position:absolute;left:2px;top:40px;width:11px;height:11px;box-sizing:border-box;border:2px solid #ec810c;border-radius:50%;background:#fff;z-index:1;box-shadow:none}
#dataPage .activity-item:first-child:before{top:45px}
#dataPage .activity-item:last-child:before{bottom:calc(100% - 45px)}
#dataPage .activity-item:only-child:before{display:none}
#dataPage .activity-item>.event-icon{display:none}
#dataPage .activity-item>.community-avatar{grid-column:2;grid-row:1/3;align-self:start;display:grid;width:var(--player-avatar);height:var(--player-avatar);font-size:32px;border-radius:12px;flex:none}
#dataPage .activity-copy{grid-column:3;grid-row:1;align-self:end}
#dataPage .activity-item time{grid-column:3;grid-row:2;align-self:start;margin:0}
#dataPage .record-top .community-avatar,#dataPage .standout-row:not(.ath) .standout-player .community-avatar{display:grid!important;width:var(--player-avatar);height:var(--player-avatar);min-width:var(--player-avatar);font-size:32px;border-radius:12px;flex:none}
#dataPage .standout-row:not(.ath){grid-template-columns:minmax(0,1fr) minmax(70px,auto);grid-template-rows:auto auto;column-gap:12px;row-gap:10px;padding:18px 0;align-items:center}
#dataPage .standout-row:not(.ath) .standout-icon{display:none}
#dataPage .standout-row:not(.ath) .standout-label{grid-column:1;grid-row:1}
#dataPage .standout-row:not(.ath) .standout-label small{display:inline;margin-left:6px}
#dataPage .standout-row:not(.ath) .standout-player{grid-column:1;grid-row:2;gap:12px}
#dataPage .standout-row:not(.ath) .standout-value{grid-column:2;grid-row:1/3;width:auto;min-width:70px;max-width:110px;align-self:center}
#dataPage .standout-value small{display:block;margin-top:5px;font-size:12px;color:var(--data-muted)}
#dataPage .standout-row:not(.ath) .standout-value strong{font-size:24px;white-space:normal;overflow-wrap:anywhere}
#dataPage .data-favourites-row{grid-template-columns:minmax(0,1fr)}
/* Explicit equal control boxes avoid inherited margins and button shadows shifting baselines. */
#dataPage .history-toolbar{align-items:start}
#dataPage .history-toolbar>label,#dataPage .history-toolbar>div{margin:0;gap:8px;line-height:18px}
#dataPage .history-toolbar .field-label{margin:0;line-height:18px}
#dataPage .history-toolbar :is(input,select,button){height:44px;min-height:44px;max-height:44px;margin:0;line-height:20px;padding:10px 12px;vertical-align:middle}
#dataPage .history-toolbar .board-tabs{height:44px;min-height:44px;max-height:44px;margin:0;padding:0;border:0;align-items:stretch}
#dataPage .history-toolbar .board-tabs button{height:44px;min-height:44px;max-height:44px;margin:0;padding:10px 12px;box-shadow:none}
#dataPage .history-toolbar #codeForm{margin:0}
#dataPage .history-toolbar #codeForm>label{line-height:18px;margin:0 0 8px}
#dataPage .history-toolbar .code-input{height:44px;align-items:stretch}
@media(max-width:1000px){#dataPage .champion-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){#dataPage .community-hero{padding:22px 0 16px;gap:20px}#dataPage .community-hero h1{font-size:36px!important}#dataPage .community-hero p{font-size:16px}#dataPage .community-hero .hero-description{font-size:14px}#dataPage .crew-art{height:200px;max-height:200px}#dataPage .activity-item{column-gap:10px}#dataPage .champion-portrait .community-avatar{width:64px;height:64px}#dataPage .champion-score{font-size:28px}}
@media(max-width:380px){#dataPage .activity-item{column-gap:8px}#dataPage .standout-row:not(.ath){column-gap:8px}#dataPage .record-top .standout-value strong{font-size:28px}#dataPage .champion-box{padding:16px 8px}}
#dataPage .record-top .community-avatar{align-self:center;margin:0 auto}

/* Shared player presentation: avatar, name and context, result. */
#dataPage .champion-portrait .community-avatar{width:56px;height:56px;min-width:56px;font-size:32px;line-height:1;border-radius:12px;border:0;display:grid;place-items:center}
#dataPage #standouts .record-top{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0 0 8px}
#dataPage #standouts .record-entry,#dataPage #standouts .record-top .record-entry{display:grid;grid-template-columns:56px minmax(0,1fr) auto;grid-template-rows:auto;align-items:center;gap:14px;min-width:0;min-height:96px;padding:18px 0;margin:0;border:0;border-bottom:1px solid #e7edf4;border-radius:0;background:none;text-align:left}
#dataPage #standouts .record-top .record-entry{padding:16px;border:1px solid var(--data-border);border-radius:16px;background:#f7fbff}
#dataPage #standouts .record-entry>.community-avatar{grid-column:1;grid-row:1;width:56px;height:56px;min-width:56px;display:grid!important;place-items:center;margin:0;align-self:center;border-radius:12px;font-size:32px;line-height:1;overflow:hidden}
#dataPage #standouts .record-entry .record-info{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;margin:0;padding:0;text-align:left}
#dataPage #standouts .record-entry .player-profile-link{display:block;width:auto;min-width:0;max-width:100%;margin:0;font-size:14px;font-weight:800;line-height:1.5;text-align:left;overflow-wrap:anywhere}
#dataPage #standouts .record-entry .standout-label{display:block;width:auto;min-width:0;margin:0;font-size:12px;font-weight:500;line-height:1.5;text-align:left;color:var(--data-muted)}
#dataPage #standouts .record-entry .standout-label small{display:block;margin:2px 0 0;font-size:12px;font-weight:400;line-height:1.5;color:var(--data-muted)}
#dataPage #standouts .record-entry .standout-value{grid-column:3;grid-row:1;order:0;align-self:center;width:auto;min-width:64px;max-width:110px;margin:0;padding:0;text-align:right}
#dataPage #standouts .record-entry .standout-value strong{display:block;width:auto;font-size:24px;font-weight:800;line-height:1.3;letter-spacing:-.03em;white-space:normal;overflow-wrap:anywhere}
#dataPage #standouts .record-entry .standout-value small{display:block;margin-top:4px;font-size:12px;line-height:1.5;color:var(--data-muted)}
@media(max-width:760px){#dataPage #standouts .record-entry,#dataPage #standouts .record-top .record-entry{gap:10px}#dataPage #standouts .record-top .record-entry{padding:14px 12px}}
@media(max-width:380px){#dataPage #standouts .record-entry,#dataPage #standouts .record-top .record-entry{gap:8px}#dataPage #standouts .record-top .record-entry{padding:14px 8px}#dataPage #standouts .record-entry .standout-value{min-width:48px;max-width:78px}#dataPage #standouts .record-entry .standout-value strong{font-size:22px}}
#dataPage #standouts .record-entry .player-profile-link{align-self:flex-start;order:0}
#dataPage #standouts .record-entry .standout-label{order:1}
#dataPage #standouts .record-entry .standout-value{max-width:none;min-width:0}
#dataPage #standouts .record-entry .standout-value strong{white-space:nowrap;overflow-wrap:normal}
@media(max-width:760px){#dataPage #standouts .record-entry .standout-value strong{font-size:20px}}

/* Open weekly section and compact individual highlights. */
#dataPage .community-hero h1 .data-accent{color:#ed8009}
#dataPage .champions{padding:8px 0 0;border:0;border-radius:0;background:none;box-shadow:none}
#dataPage .champions>.card-heading{margin-bottom:18px}
#dataPage .champion-box{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;text-align:center;padding:16px;min-height:0;background:#fff;box-shadow:none}
#dataPage .champion-box>h3{display:block;min-height:0;margin:0;text-align:center;font-size:12px;line-height:1.5}
#dataPage .champion-portrait{position:relative;align-self:center;width:180px;max-width:100%;height:72px;margin:0;flex:none}
#dataPage .champion-ornament{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
#dataPage .champion-name{display:flex;justify-content:center;align-items:center;min-height:0;width:100%;margin:0;padding:0;text-align:center}
#dataPage .champion-name a{text-align:center;font-size:14px;line-height:1.5}
#dataPage .champion-podium{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:2px;width:100%;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;text-align:center}
#dataPage .champion-score{font-size:30px;line-height:1.25;margin:0}
#dataPage .champion-podium .muted{font-size:12px;line-height:1.5}
@media(max-width:760px){#dataPage .champion-box{padding:12px 10px;gap:4px}#dataPage .champion-box>h3{display:flex;align-items:center;justify-content:center;min-height:36px}#dataPage .champion-portrait{height:64px}#dataPage .champion-name{min-height:42px}#dataPage .champion-score{font-size:28px}}
#dataPage .community-shell>section.champions.white-card{padding:8px 0 0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
#dataPage .champion-box::before,#dataPage .champion-box::after,#dataPage .champion-podium::before,#dataPage .champion-podium::after{display:none!important}

/* The mascot introduces the totals; only individual metrics have cards. */
#dataPage .community-shell>section.stats-illustrated{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);align-items:center;gap:28px;margin:0;padding:12px 0 20px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
#dataPage .stats-illustration{display:flex;align-items:center;justify-content:center;min-width:0;margin:0;padding:0}
#dataPage .stats-illustration img{display:block;width:100%;max-width:340px;height:auto;object-fit:contain;filter:none}
#dataPage .stats-content{min-width:0}
#dataPage .stats-content .card-heading{margin-bottom:18px}
#dataPage .stats-content .community-totals>div{background:#fff}
#dataPage .stats-content #totalsNote{margin-top:14px;padding:0;border:0}
@media(max-width:1000px){#dataPage .community-shell>section.stats-illustrated{grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:24px}}
@media(max-width:760px){#dataPage .community-shell>section.stats-illustrated{grid-template-columns:minmax(0,1fr);gap:16px;padding:0 0 12px}#dataPage .stats-illustration img{max-width:220px}#dataPage .stats-content .community-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Apply matches the active Competition tab beside the code field. */
#dataPage .history-toolbar #codeForm button.primary{background:linear-gradient(#ffb322,#ff990b);border:1px solid #f29109;border-radius:10px;color:#fff;box-shadow:none;font-size:14px;font-weight:600;line-height:20px;padding:10px 12px}
#dataPage .history-toolbar #codeForm button.primary:hover{background:linear-gradient(#ffb322,#ff990b);box-shadow:none;transform:none}
