/* X themes: scoped to explicit selection; existing skins keep their original layout. */
html[data-theme='x-light']{--bg:#ebedf5;--surface:#fff;--surface-2:#ebedf5;--text:#303640;--muted:#657185;--border:#e1e5ee;--primary:#0076d7;--on-primary:#fff;--link:#076ebf;--header-bg:#fff;--header-fg:#303640;--nav-bg:#fff;--nav-fg:#737e91;--nav-active:#0076d7;--odds-bg:#ebedf5;--odds-fg:#303640;--odds-sel-bg:#0076d7;--odds-sel-fg:#fff;--danger:#bf2839;--danger-bg:#ffe8ec;--warn-bg:#fff2cf;--warn-fg:#775300;--ok:#16713f;--ok-bg:#e4f6ed;--live:#0076d7;--focus:#0076d7;--shadow:0 2px 6px #26364f0d;--up:#16844d;--down:#c43c50;--league-header:#fff;--x-icon-bg:#ebedf5;--x-stadium:#158db8;color-scheme:light}
html[data-theme='x-dark']{--bg:#111a28;--surface:#1c293c;--surface-2:#29374c;--text:#edf1f8;--muted:#aab8cd;--border:#2c3c53;--primary:#0085e8;--on-primary:#fff;--link:#71beff;--header-bg:#182438;--header-fg:#edf1f8;--nav-bg:#182438;--nav-fg:#acb9cc;--nav-active:#54b8ff;--odds-bg:#2b3a51;--odds-fg:#edf1f8;--odds-sel-bg:#0076d7;--odds-sel-fg:#fff;--danger:#ff8b9b;--danger-bg:#492635;--warn-bg:#443919;--warn-fg:#ffdc88;--ok:#6ce4a6;--ok-bg:#153b32;--live:#4fb7ff;--focus:#77c7ff;--shadow:0 2px 7px #0002;--up:#6ce4a6;--down:#ff8b9b;--league-header:#1c293c;--x-icon-bg:#2b3a51;--x-stadium:#125a7a;color-scheme:dark}
html:is([data-theme='x-light'],[data-theme='x-dark']){--radius:15px;--radius-sm:11px;--nav-h:65px;--header-h:52px;scroll-padding-bottom:85px}
html:is([data-theme='x-light'],[data-theme='x-dark']) body{background:var(--bg)}
html[data-x-mounted] .hdr{display:none!important}
html:is([data-theme='x-light'],[data-theme='x-dark']) .main{padding-top:10px;gap:12px}
html:is([data-theme='x-light'],[data-theme='x-dark']) .content{min-inline-size:0}
html:is([data-theme='x-light'],[data-theme='x-dark']) .card{border-color:transparent;box-shadow:none;background:var(--surface)}
html:is([data-theme='x-light'],[data-theme='x-dark']) .input{background:var(--surface-2);border:1px solid var(--border);border-radius:11px;min-height:44px}
html:is([data-theme='x-light'],[data-theme='x-dark']) .btn{border-radius:11px;box-shadow:none}
html:is([data-theme='x-light'],[data-theme='x-dark']) .btn.primary{background:var(--primary);color:white;border-color:transparent}
html:is([data-theme='x-light'],[data-theme='x-dark']) .chip{border:0;border-radius:22px;background:var(--surface);color:var(--text);font-size:inherit;padding:8px 13px;box-shadow:0 1px 3px #162c4420;white-space:nowrap}
html:is([data-theme='x-light'],[data-theme='x-dark']) .chip[aria-pressed='true'],html:is([data-theme='x-light'],[data-theme='x-dark']) .chip[aria-current='page']{background:var(--primary);color:#fff}
html:is([data-theme='x-light'],[data-theme='x-dark']) .league{border:0;border-radius:13px;overflow:hidden;margin-bottom:8px}
html:is([data-theme='x-light'],[data-theme='x-dark']) .league>header{background:var(--surface);color:var(--text);border-radius:13px;padding:9px 11px;font-size:.9rem;min-height:44px}
html:is([data-theme='x-light'],[data-theme='x-dark']) .league-count{border-radius:20px;min-width:21px;padding:1px 5px;background:var(--surface-2);color:var(--muted);font-weight:inherit;text-align:center}
html:is([data-theme='x-light'],[data-theme='x-dark']) .ev{background:var(--surface);border-color:var(--border);border-radius:10px;margin-bottom:7px;box-shadow:none}
html:is([data-theme='x-light'],[data-theme='x-dark']) .ev-head{padding:10px}
html:is([data-theme='x-light'],[data-theme='x-dark']) .ev-team{font-size:inherit}
html:is([data-theme='x-light'],[data-theme='x-dark']) .odds{background:var(--odds-bg);color:var(--odds-fg);border:1px solid transparent;border-radius:10px;min-height:36px;padding:7px 8px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:7px;min-width:0}
html:is([data-theme='x-light'],[data-theme='x-dark']) .odds .o-l{font-size:.72rem;white-space:normal;overflow-wrap:anywhere;text-align:start;line-height:1.4;color:var(--muted);opacity:1;min-width:0}
html:is([data-theme='x-light'],[data-theme='x-dark']) .odds .o-p{font-size:.98rem;font-weight:800;flex:none}
html:is([data-theme='x-light'],[data-theme='x-dark']) .odds[aria-pressed='true']{background:var(--primary);color:#fff}
html:is([data-theme='x-light'],[data-theme='x-dark']) .odds[aria-pressed='true'] .o-l{color:#fff}
html:is([data-theme='x-light'],[data-theme='x-dark']) .group>header{background:var(--surface);color:var(--text);padding:11px 9px;border-bottom:0;border-radius:0}
html:is([data-theme='x-light'],[data-theme='x-dark']) .group h2{font-size:1.08rem;font-weight:700;line-height:1.25}
html:is([data-theme='x-light'],[data-theme='x-dark']) .group{border-radius:0;margin-bottom:7px;overflow:hidden}
html:is([data-theme='x-light'],[data-theme='x-dark']) .market-toggle{color:inherit}
html:is([data-theme='x-light'],[data-theme='x-dark']) [data-testid='event-page']{gap:8px}
html:is([data-theme='x-light'],[data-theme='x-dark']) .trk{border:0;overflow:hidden;border-radius:0 0 17px 17px;background:var(--x-stadium);color:#fff}
html:is([data-theme='x-light'],[data-theme='x-dark']) .trk-top{background:radial-gradient(ellipse at 50% 140%,#30a949 0 35%,transparent 36%),linear-gradient(180deg,#069bcd 0%,#124c73 48%,#15522e 49%,#17792e 100%);color:white;padding:25px 12px 14px;min-height:140px;border-radius:0 0 17px 17px;position:relative}
html:is([data-theme='x-light'],[data-theme='x-dark']) .trk-top::before{content:'';position:absolute;inset:30px -20px 36px;border-radius:0 0 50% 50%;border:8px solid #ffffff0f;box-shadow:0 10px 0 #ffffff0c,0 20px 0 #ffffff09;pointer-events:none}
html:is([data-theme='x-light'],[data-theme='x-dark']) .trk-top .trk-teams{position:relative;border-radius:15px;padding:16px 8px;background:#00180b90;min-height:73px}
html:is([data-theme='x-light'],[data-theme='x-dark']) .trk-score{font-size:23px;font-weight:800;letter-spacing:1px}
html:is([data-theme='x-light'],[data-theme='x-dark']) .trk-meta{position:relative;color:#fff;justify-content:center;opacity:.95;margin-top:8px}
html:is([data-theme='x-light'],[data-theme='x-dark']) .trk-body{background:var(--surface);color:var(--text)}
html:is([data-theme='x-light'],[data-theme='x-dark']) .sheet{background:var(--surface);border-radius:18px 18px 0 0;box-shadow:0 -8px 35px #0e1c3633}
html:is([data-theme='x-light'],[data-theme='x-dark']) .sheet-h{background:var(--surface);color:var(--text);border-radius:18px 18px 0 0}
html[data-x-mounted] .bnav{display:none!important}
html[data-x-mounted] .bbar{opacity:0;pointer-events:none;position:fixed;inset-inline-start:50%;bottom:16px;inline-size:1px;block-size:1px;overflow:hidden}
html:is([data-theme='x-light'],[data-theme='x-dark']) .sheet [data-testid='basket-bar']{opacity:1;pointer-events:auto}
html:is([data-theme='x-light'],[data-theme='x-dark']) .site-footer{background:transparent;color:var(--muted);border-top:1px solid var(--border);margin-top:20px;font-size:inherit}
html:is([data-theme='x-light'],[data-theme='x-dark']) .game-card,html:is([data-theme='x-light'],[data-theme='x-dark']) .casino-cover{border-radius:13px;overflow:hidden;background:var(--surface);border:0;box-shadow:none}
html:is([data-theme='x-light'],[data-theme='x-dark']) [data-testid='casino-page'] h1,html:is([data-theme='x-light'],[data-theme='x-dark']) [data-testid='games-page'] h1{font-size:18px}
.x-header{position:sticky;top:0;z-index:32;background:var(--header-bg);color:var(--text);box-shadow:0 1px 0 var(--border);font-size:13px}
.x-profile-row{display:flex;align-items:center;gap:9px;padding:11px 13px 8px;min-height:56px}
.x-profile-link{display:flex;align-items:center;gap:9px;color:inherit;text-decoration:none;min-width:0;flex:1}
.x-profile-copy{min-width:0;display:grid;gap:2px}.x-profile-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1rem;font-weight:700}.x-profile-caption{font-size:.72rem;color:var(--link)}
.x-avatar{width:32px;height:32px;display:grid;place-items:center;flex:none;border-radius:50%;background:#a9b0bc;color:#fff}
.x-ui-icon{width:22px;height:22px;display:block;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.x-avatar .x-ui-icon{width:26px;height:26px}
.x-header-action{display:grid;place-items:center;position:relative;min-width:35px;height:35px;color:var(--muted);border-radius:8px;text-decoration:none}
.x-head-badge{position:absolute;top:0;inset-inline-end:0;min-width:14px;height:14px;padding-inline:3px;border-radius:20px;background:#e5484e;color:#fff;font-size:9px;text-align:center}
.x-wallet-row{display:flex;align-items:center;gap:8px;padding:5px 13px 8px}
.x-wallet-link{flex:1;min-width:0;display:flex;align-items:center;gap:9px;background:var(--surface-2);color:var(--text);min-height:38px;border-radius:11px;padding:6px 9px;text-decoration:none}
.x-wallet-link>.x-ui-icon{color:var(--primary);width:23px;height:23px;flex:none}.x-wallet-values{display:flex;flex-wrap:wrap;gap:3px 12px;min-width:0;flex:1;align-items:center}.x-wallet-values .balance-line{display:flex;align-items:baseline;gap:4px;white-space:nowrap;font-size:10px;font-weight:400}.x-wallet-values .num{font-size:12px;font-weight:600;white-space:nowrap}.x-wallet-values .balance-line>bdi,.x-wallet-values .balance-line>span.num{overflow:visible;text-overflow:clip;max-width:none}
.x-deposit{display:flex;gap:5px;align-items:center;justify-content:center;min-height:38px;min-width:77px;border-radius:10px;padding:7px 11px;background:var(--primary);color:#fff;text-decoration:none;font-size:12px;font-weight:600;white-space:nowrap}.x-deposit .x-ui-icon{width:18px;height:18px}
.x-top-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:3px 8px 0}.x-top-tab{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:3px;text-decoration:none;color:var(--muted);height:52px;position:relative;font-size:10px}.x-top-tab .x-ui-icon{width:23px;height:23px}.x-top-tab[aria-current='page']{color:var(--primary)}.x-top-tab[aria-current='page']::after{content:'';height:3px;position:absolute;bottom:0;inset-inline:8px;background:var(--primary);border-radius:5px 5px 0 0}
.x-compact-row{display:none;align-items:center;gap:8px;padding:5px 8px;height:44px}.x-compact-row h2{flex:1;font-size:15px;font-weight:700;text-align:center;margin:0}.x-compact-row a{display:grid;place-items:center;width:34px;height:34px;color:var(--muted)}
.x-header[data-layout='compact'] .x-profile-row,.x-header[data-layout='compact'] .x-wallet-row,.x-header[data-layout='wallet'] .x-profile-row{display:none}.x-header[data-layout='compact'] .x-compact-row,.x-header[data-layout='wallet'] .x-compact-row{display:flex}
.x-header[data-layout='compact'] .x-top-tabs,.x-header[data-layout='wallet'] .x-top-tabs{display:none}
.x-header[data-layout='event']{background:linear-gradient(100deg,#119bb7,#0080af);color:#fff}.x-header[data-layout='event'] .x-profile-row,.x-header[data-layout='event'] .x-wallet-row,.x-header[data-layout='event'] .x-top-tabs{display:none}.x-header[data-layout='event'] .x-compact-row{display:flex}.x-header[data-layout='event'] .x-compact-row a{color:white}
.x-home-menu{display:grid;gap:8px;margin-bottom:12px}.x-home-card{display:flex;gap:12px;align-items:center;min-height:62px;background:var(--surface);padding:10px 12px;border-radius:16px;text-decoration:none;color:var(--text);box-shadow:none}.x-home-icon{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:50%;background:var(--x-icon-bg);color:var(--primary)}.x-home-icon .x-ui-icon{width:25px;height:25px}.x-home-copy{display:grid;gap:3px;min-width:0}.x-home-copy strong{font-size:1rem;font-weight:700}.x-home-copy small{color:var(--muted);font-size:.8rem}.x-home-card.x-promo{background:linear-gradient(100deg,#63ced5,#21acb7);color:white}.x-home-card.x-promo small{color:#fff}.x-home-card.x-promo .x-home-icon{background:#ffffff30;color:#fff}
html[data-x-home-ready] [data-testid='home']>[data-block='slides'],html[data-x-home-ready] .legacy-option{display:none!important}
.x-bottom{position:fixed;bottom:0;inset-inline:0;z-index:45;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));height:calc(59px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--nav-bg);border-top:1px solid var(--border);box-shadow:0 -1px 7px #1c2b4105}
.x-bottom a,.x-bottom button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-decoration:none;color:var(--nav-fg);font-size:10px;background:none;border:0;padding:5px 0;min-width:0;font:inherit}.x-bottom span{font-size:10px}.x-bottom .x-ui-icon{width:23px;height:23px}.x-bottom [aria-current='page']{color:var(--primary)}.x-bottom .x-slip-disc{display:grid;place-items:center;background:var(--primary);color:white;width:46px;height:46px;position:absolute;top:-17px;border-radius:50%;box-shadow:0 0 0 5px var(--bg)}.x-bottom .x-slip-disc .x-ui-icon{transform:rotate(-17deg);width:27px;height:27px}.x-bottom .x-slip-label{margin-top:24px}.x-slip-count{position:absolute;inset-inline-end:-2px;top:-1px;background:#e44453;color:white;border-radius:20px;min-width:15px;padding:0 3px;font-size:9px}
@media(max-width:600px){html:is([data-theme='x-light'],[data-theme='x-dark']) .main{padding:9px 8px 80px!important;display:block}html:is([data-theme='x-light'],[data-theme='x-dark']) h1{font-size:18px}html:is([data-theme='x-light'],[data-theme='x-dark']) .side{display:none}.x-home-menu{gap:8px}.x-top-tabs{margin-top:3px}html:is([data-theme='x-light'],[data-theme='x-dark']) .pad{padding:12px}html:is([data-theme='x-light'],[data-theme='x-dark']) .mk{padding:5px 8px 10px}html:is([data-theme='x-light'],[data-theme='x-dark']) .mk-row{gap:6px}}
@media(min-width:700px){.x-home-menu{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.x-home-card{min-height:90px;padding:18px}.x-home-icon{width:48px;height:48px}.x-home-copy strong{font-size:17px}.x-home-copy small{font-size:13px}}
@media(min-width:1024px){.x-header{max-width:100%;display:grid;grid-template-columns:minmax(210px,1fr) minmax(330px,1fr) minmax(360px,1.3fr);align-items:center;padding:0 24px}.x-header .x-profile-row{display:flex!important}.x-header .x-wallet-row{display:flex!important}.x-header .x-top-tabs{display:grid!important}.x-header .x-compact-row{display:none!important}.x-top-tab{height:65px;flex-direction:row;font-size:12px;gap:7px}.x-profile-row{padding-inline:0}.x-header[data-layout='event']{background:var(--header-bg);color:var(--text)}.x-bottom{display:none}html:is([data-theme='x-light'],[data-theme='x-dark']) .bbar{opacity:1;pointer-events:auto;position:static;inline-size:auto;block-size:auto}.x-home-menu{grid-template-columns:1fr}.x-home-card{min-height:74px}}
@media(prefers-reduced-motion:reduce){.x-header *,.x-bottom *{transition:none!important}}
html:is([data-theme='x-light'],[data-theme='x-dark']) .casino-card{border:0;border-radius:12px;overflow:hidden;padding:0;background:var(--surface)}
html:is([data-theme='x-light'],[data-theme='x-dark']) .casino-card .game-cover,html:is([data-theme='x-light'],[data-theme='x-dark']) .casino-card .cover{border-radius:11px;width:100%;aspect-ratio:1.55;object-fit:cover;overflow:hidden}
html:is([data-theme='x-light'],[data-theme='x-dark']) .casino-card .game-title{font-size:.9rem;font-weight:400;line-height:1.45;display:block;padding:6px 7px 8px;white-space:normal}
html:is([data-theme='x-light'],[data-theme='x-dark']) .casino-card[data-x-cover-ready]>.btn{display:none}
@media(max-width:600px){html:is([data-theme='x-light'],[data-theme='x-dark']) .casino-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}html[data-x-list-menu] .list-sport-tabs{display:grid;grid-template-columns:1fr;gap:7px;overflow:visible}html[data-x-list-menu] .list-sport-tabs>.chip{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;border-radius:11px;min-height:44px;background:var(--surface);color:var(--text);box-shadow:none;padding:9px 11px;text-align:start}html[data-x-list-menu] .list-sport-tabs>.chip:first-child{order:10}html[data-x-list-menu] .list-sport-tabs>.chip .num{margin-inline-start:auto;border-radius:20px;background:var(--surface-2);min-width:22px;padding:1px 5px;color:var(--muted)}html[data-x-mounted] .list-page-title h1{font-size:15px}}
/* Match scoreboard uses the site's existing live tracker, including freshness warnings. */
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-tracker{--ink:#fff;--muted:#e7f2ef;--line:#ffffff2b;--panel:#103a31;--home:#fff;--away:#fff;--accent:#fff;border:0;border-radius:0 0 17px 17px;background:#124a37;color:white}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-main{position:relative;background:radial-gradient(ellipse at 50% 140%,#2e9d39 0 32%,transparent 33%),linear-gradient(180deg,#0d9fc6 0%,#155373 39%,#0d502d 40%,#237d37 100%);padding:10px 8px}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-meta{font-size:10px;position:relative;z-index:1}.x-header[data-layout='event'] h2{color:#fff}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-league{font-size:10px;text-align:center;margin:5px 0 9px;color:#e3ede8}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-board{position:relative;direction:inherit;min-height:100px;border-radius:15px;background:#00180da6;padding:8px 4px;margin:0}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-team{border:0;background:transparent;padding:5px;align-content:center;gap:3px;position:static}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-side{font-size:9px;opacity:.7}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-name{color:#fff}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-name summary::after{color:#e0eae5}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-name .wp-original{color:#fff;background:#132b29}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-identity bdi{font-size:.9rem;font-weight:700;line-height:1.4}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-board .wp-crest{inline-size:30px;block-size:30px}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-number{font-size:25px;font-weight:700;color:#fff;line-height:1}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-score-clock{padding:5px 1px;min-width:50px}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-score-clock-time{font-size:13px;color:white}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-score-clock-period{font-size:9px;color:#e1ece6}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-state{font-size:9px;padding:3px 6px;background:#001c1a8c;border:0;color:#ffdd91}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-stage{min-height:90px;border-radius:12px;background:#001f1970;border-color:#ffffff20;margin-top:8px}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-stats{color:var(--text);background:var(--surface)}
@media(max-width:600px){html:is([data-theme='x-light'],[data-theme='x-dark']) [data-testid='event-page']>.row:first-child{display:none}}
.x-profile-row{min-height:47px;padding-block:7px 4px}.x-wallet-row{padding-block:3px 5px}.x-top-tab{height:48px}.x-top-tabs{margin-top:0}
.x-tracker-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:#082a31}
.x-tracker-switch button{min-height:31px;padding:5px 10px;border:0;border-radius:11px;background:transparent;color:#fff;font-size:12px;font-weight:600}.x-tracker-switch button[aria-pressed='true']{background:#fff;color:#202936}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-tracker[data-x-tracker-view='information'] .wp-stage{display:none}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-tracker .wp-board{min-height:95px}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-board .wp-team .wp-number{position:absolute;top:28px;min-width:28px;text-align:center;font-size:24px;line-height:1}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-board .wp-team[data-side='home'] .wp-number{left:calc(50% - 34px)}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-board .wp-team[data-side='away'] .wp-number{right:calc(50% - 34px)}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-board::after{content:':';position:absolute;left:calc(50% - 3px);top:25px;font-size:24px;color:#fff;pointer-events:none}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-board .wp-score-clock{align-content:end;padding-bottom:4px;min-width:70px}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-board .wp-side{display:none}
html:is([data-theme='x-light'],[data-theme='x-dark']) [data-testid='live-event-heading']{display:none}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-stats{margin-top:5px!important;border-radius:10px;font-size:inherit}
@media(min-width:1024px){.x-top-tab{height:65px}.x-profile-row{min-height:60px}}

@media(max-width:1023px){html[data-x-mounted] .bbar{display:none!important}}

/* Team crests above names in X scoreboards, live and prematch alike. */
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-board{--x-crest-size:clamp(42px,5vw,64px);min-height:calc(var(--x-crest-size) + 80px)}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-board .wp-mark{display:none!important}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-board .wp-identity{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:var(--x-crest-size) auto;justify-items:center;align-items:center;gap:8px;width:100%}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-board .wp-crest{grid-row:1;inline-size:var(--x-crest-size);block-size:var(--x-crest-size);max-inline-size:none;object-fit:contain;border-radius:0;padding:0;background:transparent;filter:drop-shadow(0 1px 2px #0005)}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-board .wp-identity>:is(.wp-name,bdi){grid-row:2;min-width:0;width:100%}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-board .wp-identity>.wp-serve{grid-row:3}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-board .wp-team .wp-number{top:calc(var(--x-crest-size)/2 + 5px)}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-board::after{top:calc(var(--x-crest-size)/2 + 2px)}

html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-board .wp-crest{grid-column:1}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-board .x-default-crest{grid-row:1;grid-column:1;inline-size:var(--x-crest-size);block-size:var(--x-crest-size)}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-board [data-x-crest-ready='true']>.x-default-crest{display:none}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-board [data-x-crest-ready='false']>.wp-crest{visibility:hidden}

/* Explicit unlayered colors keep selected period labels readable over tracker styles. */
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-stats{--ink:var(--text);--line:var(--border);--panel:var(--surface)}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-stats .wp-stat-periods button{color:var(--text);background:var(--surface-2);border-color:var(--border)}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-stats .wp-stat-periods button[aria-pressed='true']{color:#fff;background:#0068bd;border-color:#0068bd}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-stats .wp-stat-periods button:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-stats :is(th,td){color:var(--text)}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-stats tr.current{background:var(--surface-2)}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-stats .wp-empty{color:var(--text);opacity:.8}

html:is([data-theme='x-light'],[data-theme='x-dark']) [data-testid='event-header'] .matchup-heading{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px}
html:is([data-theme='x-light'],[data-theme='x-dark']) [data-testid='event-header'] .team-heading{flex-direction:column;gap:8px;font-size:14px}
html:is([data-theme='x-light'],[data-theme='x-dark']) [data-testid='event-header'] .crest{display:grid;place-items:center;inline-size:clamp(42px,8vw,64px);block-size:clamp(42px,8vw,64px);border:0;border-radius:0;background:transparent}
html:is([data-theme='x-light'],[data-theme='x-dark']) [data-testid='event-header'] .crest>:is(img,.x-default-crest){grid-area:1/1;inline-size:100%;block-size:100%;object-fit:contain}
html:is([data-theme='x-light'],[data-theme='x-dark']) [data-testid='event-header'] .crest>svg:not(.x-default-crest){display:none}
html:is([data-theme='x-light'],[data-theme='x-dark']) [data-testid='event-header'] [data-x-crest-ready='true'] .x-default-crest{display:none}
html:is([data-theme='x-light'],[data-theme='x-dark']) [data-testid='event-header'] [data-x-crest-ready='false'] .crest img{visibility:hidden}

/* Follow the shared tracker's locale direction; score nodes themselves isolate digits LTR. */
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-tracker[dir='rtl'] .wp-board .wp-team[data-side='home'] .wp-number{left:auto;right:calc(50% - 34px)}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-tracker[dir='rtl'] .wp-board .wp-team[data-side='away'] .wp-number{right:auto;left:calc(50% - 34px)}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-board .wp-side{display:block;grid-row:3;color:#e1ece6;font-size:10px;opacity:1}
html:is([data-theme='x-light'],[data-theme='x-dark']) .wp-board .wp-identity>.wp-serve{grid-row:4}

/* Reuse the site's locale font stack; keep intentional Latin originals and symbols. */
html:is([data-theme='x-light'],[data-theme='x-dark']) :is(.x-header,.x-bottom,.x-home-menu,.wp-tracker){font-family:inherit}
html:is([data-theme='x-light'],[data-theme='x-dark']) .x-top-tab{font-weight:600}
