:root[data-theme=night]{color-scheme:dark;--ground:#080a0f;--surface:#161a23;--ink:#f6f7fb;--muted:#a0a8b8;--line:#2b303c;--blue:#8eb8ff;--green:#8eb8ff;--paper:#161a23}html{background:#080a0f}body{background:#080a0f}header{background:linear-gradient(110deg,#07336e,#154889);padding:15px 28px 16px;border:0;box-shadow:inset 0 -3px #c83b48}header .brand{display:flex;align-items:center;gap:16px;position:relative}header .express-logo{width:71px;height:66px;object-fit:contain;filter:drop-shadow(0 3px 5px #06142a55);order:2;margin-left:6px}header .express-wordmark{order:1;color:#fff;font-family:Rye,Georgia,serif;font-size:27px;letter-spacing:1px;line-height:1.2;text-shadow:0 2px 0 #082653}header .express-wordmark>small{display:block;font:750 10px/1.3 system-ui;letter-spacing:4px;margin:0 0 3px;color:#d3e1f6}header .brand-subtitle{color:#d3e1f6;font:650 9px/1.5 system-ui;letter-spacing:2px;margin-top:5px}header .avatar{background:#17457a;border-color:#7394c066;color:#fff}.home-heading .team-kicker{color:#e87984}.feature-game{border-top-color:#ca3849}:root[data-theme=night] .feature-game{background:linear-gradient(145deg,#182334,#151b27);border-top:3px solid #c73549}.feature-game .eyebrow{color:#a8caff}:root[data-theme=night] .primary,:root[data-theme=night] .chip.active{background:#174d99;border-color:#3066ac}:root[data-theme=night] nav{background:#101319f5;border-top-color:#2b303c}:root[data-theme=night] nav button.active{color:#8eb8ff}nav button.active:after{background:#de485c}.offseason-banner{background:linear-gradient(120deg,#122d53,#102039);border-left-color:#d64155}.feature-match .hero-team{display:flex;align-items:center;gap:12px;min-height:50px}.feature-match>div{align-items:center}.team-badge{width:31px;height:31px;flex:0 0 31px;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle}.team-badge img{width:100%;height:100%;object-fit:contain;filter:none}.team-badge.large{width:47px;height:47px;flex-basis:47px}.tbd-badge,.logo-fallback{font:750 10px system-ui;color:var(--muted);border:1px solid var(--line);border-radius:50%;min-width:27px;min-height:27px;display:inline-flex;align-items:center;justify-content:center}.logo-fallback[hidden]{display:none}.team-name-with-logo{display:flex!important;align-items:center;gap:10px;min-height:39px;font-size:14px}.match-runs b{min-height:39px;display:flex;align-items:center}.match-row>span:first-child{min-width:0}.game-modal-title>span{display:flex;align-items:center;gap:12px;margin-bottom:12px;font-size:21px}.game-modal-title b{margin-left:auto}.season-shortcuts{display:flex;gap:10px;align-items:center;border-bottom:1px solid var(--line);margin-bottom:26px}.season-shortcuts .compact-standing{border-bottom:0;margin:0;flex:1;min-width:0}.season-shortcuts .compact-standing strong{font-size:13px}.postseason-link{border:0;background:transparent;color:#df7380;font-size:13px;white-space:nowrap;padding:12px 0 12px 10px}.postseason-link span{margin-left:5px}.photo-news{display:flex;gap:17px;align-items:flex-start;padding:19px 0;border-bottom:1px solid var(--line)}.photo-news:last-child{border-bottom:0}.photo-news>div{flex:1;min-width:0}.photo-news small{font-size:12px;color:var(--muted)}.photo-news p{margin:6px 0;font-size:15px;line-height:1.6}.photo-news .textbutton{font-size:12px;min-height:28px;padding:3px 0}.news-picture{width:95px;height:106px;flex:0 0 95px;margin:0;background:linear-gradient(145deg,#234d81,#101b31);border-radius:8px;overflow:hidden;border:1px solid #3a4a6655}.news-picture img{width:100%;height:100%;display:block;object-fit:cover}.news-picture.portrait img{object-fit:contain;object-position:bottom}.news-picture.club-image img{object-position:center}.source-row .news-picture{width:74px;height:64px;flex-basis:74px}.source-row{gap:14px}.catchup-photo>.news-picture{float:left;margin-right:18px;margin-bottom:12px}.catchup-photo:after{content:'';display:block;clear:both}.bracket-year{font-size:12px;color:var(--muted)}.bracket-year select{margin:4px 0 0;min-width:94px;padding:9px;font-size:14px}.bracket-scroll{overflow-x:auto;overscroll-behavior-x:contain;padding:10px 0 24px;scroll-snap-type:x proximity;scrollbar-color:#31527c #141a24}.bracket-grid{display:grid;grid-template-columns:repeat(4,240px);gap:27px;min-width:1041px}.bracket-round{min-width:0;scroll-snap-align:start}.bracket-round h2{font-size:17px;letter-spacing:-.25px;min-height:23px;margin:0 0 4px}.bracket-round>small{font-size:12px;color:var(--muted)}.round-series{min-height:560px;display:flex;flex-direction:column;justify-content:space-around;gap:26px;position:relative}.series-card{background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:17px 14px;position:relative;min-height:204px}.series-card>small{font:700 10px/1.5 system-ui;letter-spacing:.7px;color:#a0b9db;display:block;margin-bottom:13px}.series-team{display:flex;align-items:center;gap:9px;min-height:44px;font-size:13px;line-height:1.3}.series-team>span:not(.team-badge):not(.tbd-badge){flex:1}.series-team>b{margin-left:auto;font-size:19px;font-variant-numeric:tabular-nums}.series-team .team-badge{width:29px;height:29px;flex-basis:29px}.series-card p{font-size:12px;line-height:1.5;color:var(--muted);margin:12px 0 4px}.series-card .textbutton{font-size:12px;min-height:27px;padding:3px 0}.series-winner{color:#fff;background:#18396a;border-radius:5px;margin:0 -5px;padding:0 5px}.series-complete{border-top:2px solid #3b76c5}.round-W .series-card{border-top:3px solid #c33c4e}.round-F .series-card:after,.round-D .series-card:after,.round-L .series-card:after{content:'';position:absolute;top:50%;right:-28px;width:27px;height:1px;background:#50627c}.round-L .round-series:before{content:'';position:absolute;left:-14px;top:25%;bottom:25%;width:1px;background:#50627c}.round-L .series-card:before{content:'';position:absolute;left:-14px;top:50%;width:13px;height:1px;background:#50627c}.pending-series{border-style:dashed}.pending-series .series-team{color:var(--muted)}.pending-series>small{color:var(--muted)}
@media(max-width:700px){header{padding:13px 19px}header .express-wordmark{font-size:25px}header .express-logo{width:66px;height:61px;margin-left:5px}header .brand{gap:10px}.feature-match .hero-team{display:flex;flex-direction:column;align-items:flex-start;gap:9px;font-size:17px}.feature-match>div:last-child .hero-team{align-items:flex-end}.feature-match small{min-height:96px}.feature-match .team-badge.large{width:43px;height:43px;flex-basis:43px}.feature-match strong{display:block;margin-top:8px;font-size:37px}.photo-news{gap:13px;padding:18px 0}.news-picture{width:78px;height:94px;flex-basis:78px}.photo-news p{font-size:14px}.photo-news small{font-size:11px}.source-row .news-picture{width:59px;height:59px;flex-basis:59px}.source-row small{font-size:12px}.source-row a{font-size:15px}.season-shortcuts{gap:4px}.season-shortcuts .compact-standing strong{font-size:12px}.postseason-link{font-size:12px}.team-name-with-logo{font-size:13px;gap:7px}.team-badge{width:27px;height:27px;flex-basis:27px}.game-modal-title>span{font-size:17px;gap:8px}.bracket-grid{grid-template-columns:repeat(4,225px);min-width:981px}.series-card{padding:15px 12px}.bracket-round h2{font-size:16px}.round-series{min-height:535px}.catchup-photo>.news-picture{width:74px;height:90px;flex-basis:74px}}
/* Charcoal surfaces and a geometrically centered masthead. */
:root[data-theme=night]{--ground:#26282d;--surface:#303339;--paper:#303339;--line:#484c55;--muted:#bdc4cf;--ink:#f6f7fa}
html,body{background:#222429}
:root[data-theme=night] .shell{background:#26282d}
:root[data-theme=night] nav{background:#2b2e34f7;border-top-color:#484c55}
:root[data-theme=night] .feature-game{background:linear-gradient(145deg,#2b384c,#2d323d)}
header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;padding:15px 24px 16px}
header .brand{grid-column:2;grid-row:1;justify-self:center;justify-content:center;margin:0;max-width:100%}
header .avatar{grid-column:3;grid-row:1;justify-self:end}
@media(max-width:700px){header{grid-template-columns:38px minmax(0,1fr) 38px;gap:6px;padding:13px 14px}header .brand{gap:9px}header .express-logo{width:54px;height:53px;margin-left:0}header .express-wordmark{font-size:23px}header .avatar{width:36px;height:36px}}
@media(max-width:360px){header{grid-template-columns:34px minmax(0,1fr) 34px;padding-inline:10px;gap:4px}header .express-wordmark{font-size:21px}header .express-logo{width:47px;height:48px}header .brand{gap:7px}header .brand-subtitle{font-size:8px;letter-spacing:1.4px}header .avatar{width:33px;height:33px}}
/* Left Express emblem, centered wordmark, Rangers T and settings at right. */
header{grid-template-columns:96px minmax(0,1fr) 96px}
header .header-mark{grid-column:1;grid-row:1;justify-self:start;display:flex;align-items:center}
header .header-mark .express-logo{width:70px;height:65px;margin:0;display:block}
header .brand{grid-column:2;grid-row:1;text-align:center;display:block}
header .express-wordmark{display:block;text-align:center}
header .express-wordmark>small{text-align:center;letter-spacing:3px;padding-left:3px;margin:0 0 4px}
header .brand-subtitle{text-align:center}
header .header-tools{grid-column:3;grid-row:1;justify-self:end;display:flex;align-items:center;gap:12px}
header .rangers-header-logo{display:block;width:35px;height:39px;object-fit:contain}
header .header-tools .avatar{flex:0 0 auto}
@media(max-width:700px){header{grid-template-columns:78px minmax(0,1fr) 78px;padding:12px 14px;gap:6px}header .header-mark .express-logo{width:57px;height:56px}header .header-tools{gap:8px}header .rangers-header-logo{width:29px;height:34px}header .express-wordmark{font-size:23px;letter-spacing:.3px}header .express-wordmark>small{font-size:10px}}
@media(max-width:360px){header{grid-template-columns:71px minmax(0,1fr) 71px;padding-inline:10px;gap:4px}header .header-mark .express-logo{width:49px;height:50px}header .header-tools{gap:7px}header .rangers-header-logo{width:27px;height:31px}header .express-wordmark{font-size:21px;letter-spacing:0}header .express-wordmark>small{font-size:9px}header .brand-subtitle{font-size:8px;letter-spacing:1px}}
header .rangers-header-logo{width:39px;height:39px;object-fit:contain}
header .header-tools .avatar{display:inline-flex;align-items:center;justify-content:center;padding:7px;background:#17477d;border:1px solid #81a3d05c;border-radius:10px;box-shadow:inset 0 1px 0 #ffffff0a}
header .settings-controls{display:block;width:22px;height:22px;object-fit:contain;filter:none;flex:0 0 auto}
header .header-tools .avatar:hover{background:#20558f}
@media(max-width:700px){header .rangers-header-logo{width:33px;height:33px}header .settings-controls{width:21px;height:21px}header .header-tools{gap:7px}}
@media(max-width:360px){header .rangers-header-logo{width:30px;height:30px}header .header-tools{gap:6px}header .settings-controls{width:20px;height:20px}}

/* Bound the native iOS picker inside a compact, independent control. */
.score-toolbar{display:grid;grid-template-columns:max-content 154px max-content max-content;align-items:end;gap:8px}
.score-toolbar .score-date-label{width:154px;min-width:0;margin:0;font-size:14px;line-height:20px}
.score-date-control{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:154px;height:42px;margin-top:4px;border:1px solid var(--line);border-radius:7px;background:var(--surface);overflow:hidden;isolation:isolate}
#game-date-display{font:16px/1.2 system-ui;white-space:nowrap;pointer-events:none;color:var(--ink)}
.score-toolbar #game-date{position:absolute;inset:0;display:block;box-sizing:border-box;min-width:0;width:100%;max-width:100%;height:100%;min-height:0;max-height:100%;margin:0;padding:0;border:0;opacity:0;cursor:pointer;font-size:16px;-webkit-appearance:none;appearance:none}
.score-date-control:focus-within{outline:2px solid #8eb8ff;outline-offset:3px}
.score-date-control:active{background:var(--ground)}
.score-toolbar>.secondary{box-sizing:border-box;min-height:42px;margin:0;padding:10px 12px;font-size:14px}
@media(max-width:700px){.score-toolbar{grid-template-columns:repeat(3,max-content);gap:8px}.score-toolbar .score-date-label{grid-column:1/-1;grid-row:1;width:154px}.score-toolbar>.secondary{grid-row:2}}
/* Tactile feedback without moving neighboring content. */
:where(button,a[href],summary,[role=button],.import-label){touch-action:manipulation;transition:scale 110ms ease-out,filter 110ms ease-out,opacity 110ms ease-out}
:where(button,a[href],summary,[role=button],.import-label):not(:disabled):not([aria-disabled=true]):active{scale:.97;filter:brightness(.88);opacity:.88}
:where(button,a[href],summary,[role=button],.import-label):focus-visible{outline:2px solid #8eb8ff;outline-offset:3px}
@media(prefers-reduced-motion:reduce){:where(button,a[href],summary,[role=button],.import-label){transition:none}:where(button,a[href],summary,[role=button],.import-label):active{scale:none}}
