/* Home refinement, accessible palettes and image-safe leader portraits. */
html[data-theme="light"]{--bg:#f5f4ee;--surface:#fff;--surface-2:#e9e9e1;--ink:#111410;--muted:#4f554c;--line:rgba(15,20,14,.18);--shadow:0 22px 56px rgba(31,39,26,.12);--accent-ink:#426900}
@media(prefers-color-scheme:light){html[data-theme="auto"]{--bg:#f5f4ee;--surface:#fff;--surface-2:#e9e9e1;--ink:#111410;--muted:#4f554c;--line:rgba(15,20,14,.18);--shadow:0 22px 56px rgba(31,39,26,.12);--accent-ink:#426900}}
html[data-theme="pitch"]{--bg:#06120c;--surface:#0d2116;--surface-2:#173324;--ink:#f4f8f3;--muted:#a5b9ab;--line:rgba(221,247,226,.16);--paper:#ecf6ef;--black:#06120c;--acid:#c8ff3d;--violet:#79d8c4;--peach:#ffb87a;--shadow:0 28px 70px rgba(0,0,0,.34);--accent-ink:#c8ff3d}
html[data-theme="light"] :is(.hero h1 em,.page-hero h1 em,.scorer-heading h1 em,.status-win,.mini-icon,.ticker i,.big-number,.latest-report-card h3 em,.seo-feature-grid a i,.recent-matches-tools>a span,.recent-match-meta small,.live-eyebrow,.account-performance-card header a,.account-network-card>header button,.account-competition-section>header>a){color:var(--accent-ink)}
@media(prefers-color-scheme:light){html[data-theme="auto"] :is(.hero h1 em,.page-hero h1 em,.scorer-heading h1 em,.status-win,.mini-icon,.ticker i,.big-number,.latest-report-card h3 em,.seo-feature-grid a i,.recent-matches-tools>a span,.recent-match-meta small,.live-eyebrow,.account-performance-card header a,.account-network-card>header button,.account-competition-section>header>a){color:var(--accent-ink)}}
html[data-theme="light"] :is(.section-heading>a,.records-list span,.records-list small,.latest-report-card p,.latest-report-card>div,.match-card-top,.select-wrap label,.account-flat-copy p,.account-form-card label){color:var(--muted)}
html[data-theme="light"] :is(.icon-button,.desktop-nav,select,.search-wrap,.view-toggle,.match-card,.latest-report-card,.seo-feature-grid article){box-shadow:0 1px 0 rgba(255,255,255,.8) inset}
html[data-theme="light"] .site-header{background:color-mix(in srgb,var(--bg) 94%,transparent)}

#homePage .scorer-promo-hero{min-height:660px;padding-top:46px;padding-bottom:58px;gap:clamp(38px,5vw,74px)}
#homePage .scorer-promo-hero h1{font-size:clamp(66px,7.6vw,113px)}
#homePage .scorer-promo-hero .hero-lede{max-width:535px;margin:24px 0;line-height:1.55}
#homePage .scorer-primary-cta,#homePage .scorer-learn-button{min-height:62px}
#homePage .scorer-benefits{margin-top:22px;padding-top:17px}
#homePage .scorer-devices{min-height:485px}
#homePage .recent-matches-section{padding-top:8px;padding-bottom:68px}
#homePage .section-block{padding-top:86px;padding-bottom:86px}
#homePage .section-heading{margin-bottom:34px}
#homePage .moment-section{padding-bottom:24px}
#homePage .moment-card{min-height:455px}
#homePage .moment-copy{padding:46px}
#homePage .moment-copy p{display:none}
#homePage .moment-copy blockquote{font-size:clamp(44px,4.5vw,67px)}
#homePage .moment-visual:before{width:300px;height:300px}
#homePage .moment-visual:after{width:205px;height:205px}
#homePage .pulse-card{height:218px;padding:21px}
#homePage .pulse-card>strong{font-size:48px;margin-top:17px}
#homePage .pulse-card>small,#homePage .pulse-open{display:none}
#homePage .spark{height:58px}
#homePage .records-block{padding-top:66px;padding-bottom:82px}
#homePage .latest-reports-block{padding-top:78px;padding-bottom:8px}
#homePage .latest-report-card{min-height:270px;padding:23px}
#homePage .latest-report-card h3{margin-top:29px}
#homePage .seo-section{padding:76px 0 82px}
#homePage .seo-intro{grid-template-columns:1fr 1fr;gap:48px;padding-bottom:38px}
#homePage .seo-intro p{font-size:13px;line-height:1.6}
#homePage .seo-feature-grid{grid-template-columns:repeat(3,1fr)}
#homePage .seo-feature-grid article,#homePage .seo-feature-grid article:nth-last-child(-n+2){grid-column:auto;min-height:225px;padding:23px}
#homePage .seo-feature-grid h3{margin:27px 0 10px}
#homePage .seo-faq{gap:48px;padding-top:60px}
#homePage .seo-faq details{padding:18px 0}
#homePage .cta-inner{min-height:350px}
#homePage .round-link{width:145px;height:145px}

#homePage .leaders-grid{grid-template-columns:1.12fr 1fr 1fr;gap:13px}
#homePage .leader-card,#homePage .leader-card.featured{min-height:410px;border-radius:21px}
#homePage .leader-content,#homePage .leader-card.featured .leader-content{min-height:410px;padding:21px}
#homePage .leader-card h3{font-size:30px;margin-bottom:16px}
#homePage .leader-card .leader-stats strong{font-size:25px}
#homePage .leader-backdrop>.leader-fallback{transition:opacity .2s ease}
#homePage .leader-backdrop.has-photo>.leader-fallback{opacity:0!important;visibility:hidden}
#homePage .leader-backdrop.transparent-photo{--cutout-a:color-mix(in srgb,var(--acid) 23%,#1a211b);--cutout-b:color-mix(in srgb,var(--violet) 13%,#101612);position:absolute;inset:0;width:auto;height:auto;background:linear-gradient(155deg,var(--cutout-a),var(--cutout-b) 62%,#0a0d0b)!important}
#homePage .leader-backdrop.transparent-photo:before{content:"";position:absolute;z-index:0;inset:7% 8% 24%;border-radius:44% 56% 48% 52%/52% 45% 55% 48%;background:radial-gradient(circle at 50% 34%,rgba(255,255,255,.14),rgba(255,255,255,.035) 58%,transparent 72%);filter:blur(.2px)}
#homePage .leader-backdrop.transparent-photo:after{content:"";position:absolute;z-index:0;left:7%;right:7%;bottom:5%;height:28%;border-radius:50%;background:radial-gradient(ellipse,rgba(0,0,0,.48),transparent 70%);filter:blur(9px)}
#homePage .leader-backdrop.transparent-photo .photo-cutout{z-index:1;inset:auto 3% -1%;width:94%;height:98%;padding:0;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 18px 22px rgba(0,0,0,.34)) saturate(1.08) contrast(1.02);transform:translate(var(--cutout-shift-x,0),var(--cutout-shift-y,0)) scale(var(--cutout-scale,1));transform-origin:center bottom;transition:transform .45s cubic-bezier(.2,.7,.2,1)}
#homePage .leader-shade{background:linear-gradient(180deg,rgba(5,6,6,.02) 8%,rgba(5,6,6,.08) 44%,rgba(5,6,6,.91) 79%,#050606 100%)}
#homePage .leader-card:hover .leader-backdrop.transparent-photo{transform:none}
#homePage .leader-card:hover .leader-backdrop.transparent-photo .photo-cutout{filter:drop-shadow(0 20px 25px rgba(0,0,0,.38)) saturate(1.12) contrast(1.03)}

.footer-inner{padding:42px 0;gap:30px}.footer-links{gap:18px}.footer-links a,.footer-links button{white-space:nowrap}

@media(max-width:1000px){#homePage .scorer-promo-hero{min-height:auto;padding-top:52px}#homePage .scorer-devices{min-height:500px}#homePage .leader-card.featured,#homePage .leader-card.featured .leader-content{min-height:410px}#homePage .seo-feature-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){#homePage .scorer-promo-hero{padding-top:29px;padding-bottom:43px;gap:24px}#homePage .scorer-promo-hero h1{font-size:clamp(49px,14vw,61px)}#homePage .scorer-promo-hero .hero-lede{margin:18px 0;font-size:13px}#homePage .scorer-devices{min-height:365px}#homePage .recent-matches-section{padding-bottom:48px}#homePage .section-block{padding-top:58px;padding-bottom:58px}#homePage .section-heading{margin-bottom:25px}#homePage .section-heading h2{font-size:47px}#homePage .leaders-grid{grid-template-columns:1fr}#homePage .leader-card,#homePage .leader-card.featured,#homePage .leader-content,#homePage .leader-card.featured .leader-content{min-height:390px}#homePage .leader-backdrop.transparent-photo .photo-cutout{height:98%;inset:auto 2% -1%;width:96%}#homePage .moment-card{min-height:0}#homePage .moment-copy{padding:32px 24px}#homePage .moment-visual{min-height:275px}#homePage .pulse-grid{grid-template-columns:1fr 1fr;gap:9px}#homePage .pulse-card{height:180px;padding:17px}#homePage .pulse-card>strong{font-size:39px}#homePage .records-block{padding-top:52px;padding-bottom:58px}#homePage .latest-reports-block{padding-top:58px}#homePage .latest-report-card{min-height:235px}#homePage .seo-section{padding:58px 0}#homePage .seo-intro{display:block;padding-bottom:28px}#homePage .seo-intro-copy{margin-top:19px}#homePage .seo-feature-grid{grid-template-columns:1fr}#homePage .seo-feature-grid article,#homePage .seo-feature-grid article:nth-last-child(-n+2){min-height:190px}#homePage .seo-faq{display:block;padding-top:45px}#homePage .seo-faq>div:last-child{margin-top:26px}#homePage .cta-inner{min-height:400px;padding:55px 0}.footer-inner{padding:36px 0}.footer-links{gap:14px 17px}}

/* Compact in-form leaderboard */
#homePage .form-leaders-section{padding-top:78px;padding-bottom:82px;overflow:visible}
#homePage .form-leaders-heading{margin-bottom:25px;align-items:end}
#homePage .form-leaders-heading h2{max-width:760px;font-size:clamp(45px,5.5vw,68px);line-height:.88}
#homePage .form-leaders-tools{display:flex;align-items:center;gap:14px}
#homePage .form-leaders-tools>div{display:flex;gap:6px}
#homePage .form-leaders-tools button{width:39px;height:39px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);cursor:pointer;transition:background .2s ease,color .2s ease,transform .2s ease}
#homePage .form-leaders-tools button:hover:not(:disabled){background:var(--ink);color:var(--bg);transform:translateY(-1px)}
#homePage .form-leaders-tools button:disabled{opacity:.28;cursor:default}
#homePage .form-leaders-tools>a{min-height:39px;padding:0 12px;border:1px solid var(--line);border-radius:10px;color:var(--ink);display:inline-flex;align-items:center;gap:15px;font-size:9px;font-weight:800;text-decoration:none}
#homePage .form-leaders-viewport{overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
#homePage .form-leaders-viewport::-webkit-scrollbar{display:none}
#homePage .leaders-grid{width:max-content;display:flex!important;grid-template-columns:none!important;gap:10px;padding:1px}
#homePage .form-player-card{width:255px;min-height:324px;flex:0 0 255px;scroll-snap-align:start;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);overflow:hidden;cursor:pointer;transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}
#homePage .form-player-card:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--acid) 45%,var(--line));box-shadow:0 16px 35px rgba(0,0,0,.1)}
#homePage .form-player-card.featured{border-color:color-mix(in srgb,var(--acid) 62%,var(--line))}
#homePage .form-player-visual{height:162px;position:relative;overflow:hidden;background:linear-gradient(145deg,color-mix(in srgb,var(--acid) 20%,var(--surface-2)),var(--surface-2))}
#homePage .form-player-visual .leader-backdrop{position:absolute;inset:0;background-position:center 20%;display:grid;place-items:center}
#homePage .form-player-visual .leader-backdrop:after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,rgba(4,6,5,.62));z-index:2}
#homePage .form-player-visual .leader-fallback{font:800 60px var(--display);color:color-mix(in srgb,var(--ink) 25%,transparent)}
#homePage .form-player-visual .leader-backdrop.transparent-photo:before{inset:4% 9% 13%}
#homePage .form-player-visual .leader-backdrop.transparent-photo:after{left:4%;right:4%;bottom:-4%;height:36%}
#homePage .form-player-visual .leader-backdrop.transparent-photo .photo-cutout{height:104%;width:92%;inset:auto 4% -2%;object-position:center bottom}
#homePage .form-player-rank,#homePage .form-player-open{position:absolute;z-index:4;top:12px;display:grid;place-items:center;background:rgba(7,9,8,.68);border:1px solid rgba(255,255,255,.18);color:#fff;backdrop-filter:blur(10px)}
#homePage .form-player-rank{left:12px;min-width:32px;height:28px;padding:0 8px;border-radius:8px;font:800 8px var(--body)}
#homePage .form-player-card.featured .form-player-rank{background:var(--acid);border-color:var(--acid);color:#10140e}
#homePage .form-player-open{right:12px;width:28px;height:28px;border-radius:50%;font-size:10px}
#homePage .form-player-visual>strong{position:absolute;z-index:4;left:13px;bottom:11px;color:#fff;font:650 17px var(--display);text-shadow:0 2px 12px rgba(0,0,0,.5)}
#homePage .form-player-copy{padding:15px}
#homePage .form-player-copy>span{color:var(--muted);font-size:7px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
#homePage .form-player-copy h3{margin:4px 0 13px;font:650 21px/.95 var(--display);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#homePage .form-player-stats{padding-top:11px;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
#homePage .form-player-stats span{min-width:0}.form-player-stats strong,.form-player-stats small{display:block}
#homePage .form-player-stats strong{font:650 18px var(--display)}#homePage .form-player-stats small{margin-top:2px;color:var(--muted);font-size:6px;text-transform:uppercase}
#homePage .form-player-recent{margin-top:12px;display:flex;align-items:center;gap:4px}
#homePage .form-player-recent>small{margin-right:auto;color:var(--muted);font-size:6px;font-weight:800;text-transform:uppercase}
#homePage .form-player-recent i{width:25px;height:25px;border-radius:7px;background:var(--bg);color:var(--muted);display:grid;place-items:center;font:800 7px var(--body);font-style:normal}
#homePage .form-player-recent i.hot{background:color-mix(in srgb,var(--acid) 16%,var(--bg));color:color-mix(in srgb,var(--acid) 70%,var(--ink))}
#homePage .form-player-recent em{color:var(--muted);font-size:7px;font-style:normal}
@media(max-width:700px){
  #homePage .form-leaders-section{padding-top:48px;padding-bottom:52px}
  #homePage .form-leaders-heading{margin-bottom:18px;align-items:flex-end;gap:12px}
  #homePage .form-leaders-heading h2{font-size:35px;line-height:.9}
  #homePage .form-leaders-tools{gap:6px}
  #homePage .form-leaders-tools>div{display:none}
  #homePage .form-leaders-tools>a{min-height:36px;padding:0 10px;font-size:7px;white-space:nowrap}
  #homePage .form-leaders-viewport{width:calc(100vw - 14px);padding-right:14px}
  #homePage .leaders-grid{gap:8px}
  #homePage .form-player-card{width:208px;min-height:276px;flex-basis:208px;border-radius:16px}
  #homePage .form-player-visual{height:128px}
  #homePage .form-player-visual .leader-fallback{font-size:48px}
  #homePage .form-player-visual .leader-backdrop.transparent-photo .photo-cutout{height:107%;width:94%;inset:auto 3% -3%}
  #homePage .form-player-copy{padding:12px}
  #homePage .form-player-copy h3{margin-bottom:10px;font-size:19px}
  #homePage .form-player-stats{padding-top:9px}.form-player-stats strong{font-size:16px}
  #homePage .form-player-recent{margin-top:9px}
  #homePage .form-player-recent i{width:21px;height:21px;border-radius:6px;font-size:6px}
}

/* Scorer setup: clearer hierarchy, fewer boxes and calmer responsive flow. */
#scorePage.scorer-page{padding-top:58px}
#scorePage .scorer-heading{margin-bottom:38px;gap:45px}
#scorePage .scorer-heading h1{font-size:clamp(58px,7vw,98px)}
#scorePage .scorer-heading>p{max-width:340px;font-size:13px;line-height:1.55}
#scorePage .scorer-setup{min-height:0;grid-template-columns:minmax(320px,.8fr) minmax(0,1.2fr);border-radius:24px;background:var(--surface);box-shadow:0 26px 70px color-mix(in srgb,#000 12%,transparent)}
#scorePage .setup-intro{min-height:690px;padding:43px 38px;background:linear-gradient(160deg,var(--acid),color-mix(in srgb,var(--acid) 82%,var(--violet)));color:#0a0b0b}
#scorePage .setup-intro:after{right:-270px;bottom:-235px}
#scorePage .setup-intro h2{font-size:clamp(49px,5vw,68px);margin:54px 0 17px}
#scorePage .setup-intro p{max-width:255px;margin:0;font-size:12px;line-height:1.5}
#scorePage .setup-guide{display:grid;gap:0;margin-top:42px;border-top:1px solid rgba(10,11,11,.2)}
#scorePage .setup-guide span{min-height:47px;border-bottom:1px solid rgba(10,11,11,.2);display:grid;grid-template-columns:34px 1fr;align-items:center}
#scorePage .setup-guide b{font:750 9px var(--display)}
#scorePage .setup-guide em{font:650 13px var(--display);font-style:normal}
#scorePage .setup-benefits{margin-top:auto}
#scorePage .setup-fields{padding:34px clamp(28px,3.2vw,46px);gap:0;justify-content:flex-start}
#scorePage .setup-group{padding:18px 0 21px;border-bottom:1px solid var(--line)}
#scorePage .setup-group:first-child{padding-top:0}
#scorePage .setup-step{margin:0 0 14px}
#scorePage .setup-step>span{display:flex;align-items:center;gap:9px;font-size:18px}
#scorePage .setup-step>span i{width:25px;height:25px;border-radius:50%;background:color-mix(in srgb,var(--acid) 16%,var(--surface));color:color-mix(in srgb,var(--acid) 78%,var(--ink));display:grid;place-items:center;font:800 7px var(--body);font-style:normal}
#scorePage .setup-step>small{font-size:7px}
#scorePage .setup-fields label>span{font-size:8px}
#scorePage .setup-fields input{height:50px;border-radius:10px;font-size:14px;background:color-mix(in srgb,var(--bg) 72%,var(--surface))}
#scorePage .setup-team-grid{grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:9px}
#scorePage .setup-vs{height:50px}
#scorePage .setup-number-grid{gap:12px}
#scorePage .setup-presets{margin-top:2px}
#scorePage .setup-presets button{height:28px;border-radius:7px}
#scorePage .setup-advanced{margin:15px 0 2px;border:1px solid var(--line);border-radius:15px;background:color-mix(in srgb,var(--surface-2) 45%,var(--surface));overflow:hidden;transition:border-color .2s ease,background .2s ease}
#scorePage .setup-advanced[open]{border-color:color-mix(in srgb,var(--acid) 28%,var(--line));background:color-mix(in srgb,var(--surface-2) 58%,var(--surface))}
#scorePage .setup-advanced.roster-context-required{border-color:color-mix(in srgb,var(--acid) 72%,var(--line));box-shadow:0 0 0 3px color-mix(in srgb,var(--acid) 8%,transparent)}
#scorePage .setup-advanced.roster-context-required summary small{color:color-mix(in srgb,var(--acid) 82%,var(--ink));font-weight:750}
#scorePage .setup-advanced summary{min-height:68px;padding:0 15px;gap:18px}
#scorePage .setup-advanced summary>span{display:flex;min-width:0;flex-direction:column;gap:4px}
#scorePage .setup-advanced summary b{font:650 15px var(--display)}
#scorePage .setup-advanced summary small{color:var(--muted);font-size:8px;line-height:1.35}
#scorePage .setup-advanced summary>i{width:30px;height:30px;flex:0 0 30px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;background:var(--surface);font:500 18px/1 var(--body);font-style:normal;transition:transform .22s ease,background .22s ease}
#scorePage .setup-advanced[open] summary>i{transform:rotate(45deg);background:var(--acid);color:#0a0b0b;border-color:var(--acid)}
#scorePage .setup-advanced[open] summary{border-bottom:1px solid var(--line)}
#scorePage .setup-advanced>.setup-advanced-panel{display:grid;grid-template-columns:1fr;gap:0;padding:3px 17px 18px}
#scorePage .optional-setup-block{padding:18px 0}
#scorePage .optional-setup-block+.optional-setup-block{border-top:1px solid var(--line)}
#scorePage .optional-setup-block>header{display:flex;align-items:flex-start;gap:10px;margin-bottom:14px}
#scorePage .optional-setup-block>header>i{width:23px;height:23px;flex:0 0 23px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--acid) 14%,transparent);color:color-mix(in srgb,var(--acid) 78%,var(--ink));font:800 7px var(--body);font-style:normal}
#scorePage .optional-setup-block>header>span{display:flex;flex-direction:column;gap:3px}
#scorePage .optional-setup-block>header b{font:650 13px var(--display)}
#scorePage .optional-setup-block>header small{color:var(--muted);font-size:8px;line-height:1.4}
#scorePage .league-match-context{grid-template-columns:1fr 1fr;gap:11px;padding:0;border:0;border-radius:0;background:transparent}
#scorePage .league-match-context select{min-height:50px;padding-left:14px;background-color:var(--surface);font-size:12px}
#scorePage .league-match-context select:required:invalid{border-color:color-mix(in srgb,var(--acid) 72%,var(--line));color:var(--muted);box-shadow:0 0 0 3px color-mix(in srgb,var(--acid) 8%,transparent)}
#scorePage .league-match-context p{margin-top:2px;padding:9px 11px;border-radius:9px;background:color-mix(in srgb,var(--acid) 8%,var(--surface));color:var(--muted);font-size:8px;line-height:1.45}
#scorePage .optional-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}
#scorePage .optional-detail-grid input{height:50px;background:var(--surface);font-size:14px}
#scorePage .setup-options{border-bottom:0;padding-bottom:14px}
#scorePage .setup-toggle-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
#scorePage .player-names-toggle{min-height:61px;padding:11px 12px!important;border-color:transparent;background:color-mix(in srgb,var(--surface-2) 62%,var(--surface));grid-template-columns:36px 1fr}
#scorePage .player-names-toggle:hover{border-color:var(--line)}
#scorePage .player-names-toggle b{font-size:10px}
#scorePage .player-names-toggle small{font-size:7px}
#scorePage .player-name-fields{grid-column:1/-1;margin:0 18px 18px;padding:18px;gap:14px;border:1px solid var(--line);border-radius:19px;background:color-mix(in srgb,var(--bg) 42%,var(--surface));overflow:visible;max-height:none}
#scorePage .roster-helper{padding:14px 15px;border:1px solid color-mix(in srgb,var(--acid) 24%,var(--line));border-radius:13px;background:color-mix(in srgb,var(--acid) 5%,var(--surface));grid-template-columns:36px 1fr;gap:12px;align-items:center}
#scorePage .roster-helper>i{width:36px;height:36px;font-size:17px}
#scorePage .roster-helper b{font-size:15px}
#scorePage .roster-helper small{font-size:9px;line-height:1.45}
#scorePage .roster-helper p{margin-top:5px;font-size:8px;line-height:1.35}
#scorePage .roster-team-card{min-width:0;align-self:start;padding:0 14px 15px;border:1px solid var(--line);border-radius:15px;background:var(--surface);overflow:visible}
#scorePage .roster-team-card summary{min-height:58px;list-style:none;display:flex;align-items:center;justify-content:space-between;cursor:pointer}
#scorePage .roster-team-card summary::-webkit-details-marker{display:none}
#scorePage .roster-team-card summary h3{margin:0;font-size:18px;letter-spacing:-.02em}
#scorePage .roster-team-card summary span{color:var(--muted);font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.09em}
#scorePage .roster-team-card summary span:after{content:" +";font-size:12px}
#scorePage .roster-team-card[open] summary span:after{content:" −"}
#scorePage .roster-team-card>div{display:flex;flex-direction:column;gap:8px}
#scorePage .player-name-fields label{grid-template-columns:34px minmax(0,1fr);gap:9px;align-items:center}
#scorePage .player-name-fields label>span{width:29px;height:29px;padding:0!important;border-radius:50%;display:grid;place-items:center;background:var(--surface-2);color:var(--muted);font-size:8px}
#scorePage .player-name-fields input{height:50px;padding:0 41px 0 14px;border-radius:10px;background:var(--bg);color:var(--ink)!important;-webkit-text-fill-color:var(--ink);caret-color:var(--acid);font-size:15px;font-weight:600}
#scorePage .player-name-fields input::placeholder{color:color-mix(in srgb,var(--muted) 72%,transparent);font-weight:500}
#scorePage .player-name-fields .roster-autocomplete:after{right:14px;font-size:15px}
#scorePage .player-name-fields .roster-suggestions{top:calc(100% + 7px);padding:7px;border-radius:13px}
#scorePage .player-name-fields .roster-suggestions button{min-height:61px;padding:8px 10px;grid-template-columns:38px minmax(0,1fr) auto;column-gap:11px}
#scorePage .player-name-fields .roster-suggestions button>span{width:38px;height:38px;font-size:10px}
#scorePage .player-name-fields .roster-suggestions b{color:var(--ink)!important;font-size:14px}
#scorePage .player-name-fields .roster-suggestions small{color:var(--muted)!important;font-size:9px}
#scorePage .player-name-fields .roster-suggestions button>i{font-size:7px;padding:6px 8px}
#scorePage .player-name-fields .roster-autocomplete.is-linked:after{right:9px;padding:6px 8px;font-size:7px}
#scorePage .player-name-fields .roster-autocomplete.is-linked input{padding-right:79px}
#scorePage .start-match-button{grid-column:2;min-height:58px;margin:0 clamp(28px,3.2vw,46px) 34px;background:var(--acid);color:#0a0b0b;border:1px solid color-mix(in srgb,var(--acid) 80%,#000);box-shadow:none}
#scorePage .player-name-fields:not([hidden])~.start-match-button{grid-column:1/-1;margin:0 18px 18px}
#scorePage .start-match-button:hover{background:color-mix(in srgb,var(--acid) 90%,#fff)}
#scorePage .start-match-button b{font-size:12px}

@media(min-width:1000px){body.scorer-live .live-cockpit{grid-template-columns:minmax(0,1.14fr) minmax(380px,.86fr)}body.scorer-live .live-cockpit>.scoreboard-panel{min-height:590px}}
html[data-theme="light"] #scorePage .scorer-setup{box-shadow:0 24px 60px rgba(35,40,27,.11)}
html[data-theme="light"] #scorePage .setup-step>span i{color:var(--accent-ink);background:color-mix(in srgb,var(--acid) 22%,#fff)}
@media(prefers-color-scheme:light){html[data-theme="auto"] #scorePage .scorer-setup{box-shadow:0 24px 60px rgba(35,40,27,.11)}html[data-theme="auto"] #scorePage .setup-step>span i{color:var(--accent-ink);background:color-mix(in srgb,var(--acid) 22%,#fff)}}

@media(max-width:999px){#scorePage .scorer-setup{grid-template-columns:1fr}#scorePage .setup-intro{min-height:270px;padding:35px 38px}#scorePage .setup-intro h2{margin:27px 0 13px}#scorePage .setup-intro p{max-width:360px}#scorePage .setup-guide{grid-template-columns:repeat(3,1fr);margin-top:24px;border-bottom:1px solid rgba(10,11,11,.2)}#scorePage .setup-guide span{border-bottom:0;border-right:1px solid rgba(10,11,11,.2);padding-left:12px}#scorePage .setup-guide span:first-child{padding-left:0}#scorePage .setup-guide span:last-child{border-right:0}#scorePage .setup-benefits{display:none}#scorePage .setup-fields{padding:30px 38px}#scorePage .player-name-fields{grid-column:1;margin:0 20px 18px}#scorePage .start-match-button,#scorePage .player-name-fields:not([hidden])~.start-match-button{grid-column:1;margin:0 20px 25px}}
@media(max-width:600px){#scorePage.scorer-page{padding-top:31px}#scorePage .scorer-heading{margin-bottom:21px}#scorePage .scorer-heading h1{font-size:47px}#scorePage .scorer-heading>p{margin-top:15px;font-size:11px}#scorePage .scorer-setup{border-radius:18px;box-shadow:none}#scorePage .setup-intro{min-height:205px;padding:25px 20px}#scorePage .setup-intro h2{font-size:41px;margin:20px 0 10px}#scorePage .setup-intro p{font-size:10px}#scorePage .setup-guide{margin-top:18px}#scorePage .setup-guide span{min-height:39px;grid-template-columns:27px 1fr;padding-left:8px}#scorePage .setup-guide em{font-size:11px}#scorePage .setup-fields{padding:20px 15px}#scorePage .setup-group{padding:16px 0 18px}#scorePage .setup-step{margin-bottom:12px}#scorePage .setup-step>span{font-size:16px}#scorePage .setup-team-grid{grid-template-columns:1fr;gap:10px}#scorePage .setup-vs{display:none}#scorePage .setup-number-grid{grid-template-columns:1fr 1fr;gap:8px}#scorePage .setup-fields input{height:48px;font-size:16px}#scorePage .setup-presets button{height:30px}#scorePage .setup-advanced summary{min-height:58px}#scorePage .setup-advanced summary b{font-size:12px}#scorePage .league-match-context,#scorePage .optional-detail-grid{grid-template-columns:1fr}#scorePage .league-match-context select{font-size:16px}#scorePage .setup-toggle-grid{grid-template-columns:1fr}#scorePage .player-names-toggle{min-height:58px}#scorePage .player-name-fields{grid-template-columns:1fr;margin:0 10px 14px;padding:10px}#scorePage .roster-team-card{padding:0 9px 9px}#scorePage .roster-team-card summary{min-height:46px}#scorePage .player-name-fields input{height:43px}#scorePage .player-name-fields .roster-suggestions{position:absolute;z-index:100;left:0;right:0;top:calc(100% + 5px);bottom:auto;max-height:230px;padding:6px;border-radius:12px}#scorePage .start-match-button,#scorePage .player-name-fields:not([hidden])~.start-match-button{min-height:58px;margin:0 10px 18px}}

@media(max-width:600px){
  #scorePage .setup-advanced{margin:13px 0 3px;border-radius:14px}
  #scorePage .setup-advanced summary{min-height:64px;padding:0 12px}
  #scorePage .setup-advanced summary b{font-size:13px}
  #scorePage .setup-advanced summary small{font-size:8px}
  #scorePage .setup-advanced>.setup-advanced-panel{padding:2px 12px 13px}
  #scorePage .optional-setup-block{padding:15px 0}
  #scorePage .optional-setup-block>header{margin-bottom:12px}
  #scorePage .optional-setup-block>header b{font-size:13px}
  #scorePage .league-match-context{gap:10px}
  #scorePage .league-match-context p{font-size:9px}
  #scorePage .optional-detail-grid{gap:10px}
  #scorePage .player-name-fields{margin:0 10px 14px;padding:10px;gap:10px;border-radius:16px}
  #scorePage .roster-helper{padding:12px;grid-template-columns:34px 1fr;gap:10px;align-items:start}
  #scorePage .roster-helper>i{width:34px;height:34px}
  #scorePage .roster-helper b{font-size:14px}
  #scorePage .roster-helper small{font-size:9px}
  #scorePage .roster-helper p{font-size:8px}
  #scorePage .roster-team-card{padding:0 10px 11px;border-radius:13px}
  #scorePage .roster-team-card summary{min-height:54px}
  #scorePage .roster-team-card summary h3{font-size:17px}
  #scorePage .player-name-fields label{grid-template-columns:31px minmax(0,1fr);gap:7px}
  #scorePage .player-name-fields label>span{width:27px;height:27px;font-size:8px}
  #scorePage .player-name-fields input{height:49px;padding-left:12px;font-size:16px}
  #scorePage .player-name-fields .roster-suggestions{top:calc(100% + 6px);max-height:250px;padding:6px;border-radius:12px}
  #scorePage .player-name-fields .roster-suggestions button{min-height:60px;grid-template-columns:36px minmax(0,1fr) auto}
  #scorePage .player-name-fields .roster-suggestions button>span{width:36px;height:36px}
  #scorePage .player-name-fields .roster-suggestions b{font-size:14px}
}

/* Scorer workflow system: setup, toss, live cockpit, settings, commentary and result. */
#scorePage .toss-stage-modern{min-height:590px;border-radius:24px;overflow:hidden;box-shadow:0 24px 70px rgba(0,0,0,.18)}
#scorePage .toss-coin-zone{background:radial-gradient(circle at 50% 46%,rgba(246,193,58,.13),transparent 34%),linear-gradient(145deg,#111612,#0b0e0c)}
#scorePage .toss-zone-head{align-items:flex-start}
#scorePage .toss-zone-head>div{display:flex;flex-direction:column;gap:7px}
#scorePage .toss-zone-head .toss-match{color:#aeb6b0}
#scorePage .coin-trigger{border-radius:50%}
#scorePage .coin-trigger:hover .toss-coin{transform:translateY(-4px) rotate(-2deg)}
#scorePage .toss-stage-modern .coin-flight.is-flipping .toss-coin{transform:none}
#scorePage .toss-stage-modern .toss-result small{color:#8e9791}
#scorePage .toss-stage-modern .toss-decisions{padding:42px;justify-content:center;gap:22px;background:linear-gradient(155deg,#1a201b,#141815)}
#scorePage .toss-decision-head p{max-width:360px;margin:10px 0 0;color:#939b95;font-size:10px;line-height:1.55}
#scorePage .toss-stage-modern .toss-choice-step{grid-template-columns:1fr;gap:0;padding:0 0 20px;opacity:.42}
#scorePage .toss-stage-modern .toss-choice-step:first-of-type{opacity:.68}
#scorePage .toss-stage-modern .toss-choice-step small{margin-bottom:10px;color:#9ca49f}
#scorePage .toss-stage-modern .toss-option-grid button{min-height:56px;border-radius:12px;background:#202621;font-size:12px}
#scorePage .toss-stage-modern .toss-option-grid button.active{background:var(--acid);border-color:var(--acid);box-shadow:none}
#scorePage .toss-stage-modern .toss-confirm{gap:5px}
#scorePage .toss-stage-modern .toss-back{min-height:43px;padding:0 3px;color:#b1b8b3}
#scorePage .toss-stage-modern .toss-start{min-height:68px;border-radius:13px;background:var(--acid);transition:transform .2s ease,filter .2s ease,opacity .2s ease}
#scorePage .toss-stage-modern .toss-start:not(:disabled):hover{transform:translateY(-2px);filter:brightness(1.04)}
#scorePage .toss-stage-modern .toss-start:disabled{background:#383e39;color:#858c87;opacity:1}

body.scorer-live #scorePage .live-scorer-nav{position:sticky;top:76px;z-index:30;min-height:60px;margin:0 0 10px;padding:7px;border:1px solid var(--line);border-radius:16px;background:color-mix(in srgb,var(--surface) 92%,transparent);box-shadow:0 14px 40px rgba(0,0,0,.08);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
body.scorer-live #scorePage .live-scorer-primary{min-width:0;display:flex;align-items:center;gap:8px}
body.scorer-live #scorePage .live-scorer-match{min-width:160px;max-width:250px;padding:3px 14px 3px 8px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:3px}
body.scorer-live #scorePage .live-scorer-match small{color:var(--muted);font-size:6px;font-weight:850;letter-spacing:.11em;text-transform:uppercase}
body.scorer-live #scorePage .live-scorer-match b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:650 12px var(--display)}
body.scorer-live #scorePage .live-scorer-match i{color:var(--muted);font-style:normal;font-size:.7em;font-weight:600}
body.scorer-live #scorePage .live-scorer-tabs{height:44px;padding:4px;border-radius:11px;background:var(--bg);display:flex;gap:3px}
body.scorer-live #scorePage .live-scorer-tabs button{min-width:0;height:36px;padding:0 11px;border:0;border-radius:8px;background:transparent;font-size:7px;box-shadow:none}
body.scorer-live #scorePage .live-scorer-tabs button.active{background:var(--ink);color:var(--bg);box-shadow:none}
body.scorer-live #scorePage .live-scorer-tabs button.active span{color:var(--accent-text,var(--acid))}
body.scorer-live #scorePage .live-scorer-tabs button i{background:color-mix(in srgb,currentColor 12%,transparent)}
body.scorer-live #scorePage .live-scorer-actions{gap:5px}
body.scorer-live #scorePage .score-live-share,body.scorer-live #scorePage .score-broadcast-toggle,body.scorer-live #scorePage .scorer-dock-toggle{height:42px}
body.scorer-live #scorePage .score-broadcast-toggle,body.scorer-live #scorePage .scorer-dock-toggle{padding:0 12px;border-radius:10px;font-size:7px}
body.scorer-live #scorePage .scorer-dock-toggle span{width:22px;height:22px;border-radius:7px}

body.scorer-live #scorePage .live-cockpit{gap:12px}
body.scorer-live #scorePage .scoreboard-panel{padding:25px;border-radius:22px}
body.scorer-live #scorePage .scoreboard-top h2{font-size:clamp(34px,4vw,53px)}
body.scorer-live #scorePage .scoreboard-score>strong{font-size:clamp(76px,8vw,112px);line-height:.8;letter-spacing:-.07em}
body.scorer-live #scorePage .scoreboard-score>strong i{font-size:.42em;color:var(--accent-text,var(--acid))}
body.scorer-live #scorePage .scoreboard-score>div b{font-size:26px}
body.scorer-live #scorePage .scoreboard-score>div small{font-size:7px;letter-spacing:.08em}
body.scorer-live #scorePage .crease-batter h3{font-size:18px}
body.scorer-live #scorePage .crease-batter strong{font-size:40px}
body.scorer-live #scorePage .crease-batter p{font-size:8px}
body.scorer-live #scorePage .batter-strip b{font-size:12px}
body.scorer-live #scorePage .event-strip i{min-width:28px;height:28px;font-size:9px}
body.scorer-live #scorePage .scoring-workspace{gap:8px}
body.scorer-live #scorePage .scoring-pad{padding:22px;border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:none}
body.scorer-live #scorePage .pad-heading{padding-bottom:15px;border-bottom:1px solid var(--line)}
body.scorer-live #scorePage .pad-heading h3{font-size:26px}
body.scorer-live #scorePage .undo-score{height:38px;padding:0 13px;border-radius:9px;background:var(--bg)}
body.scorer-live #scorePage .run-buttons{gap:8px;margin-top:16px}
body.scorer-live #scorePage .run-buttons button{min-height:72px;border:1px solid var(--line);border-radius:13px;background:var(--bg);box-shadow:none}
body.scorer-live #scorePage .run-buttons button:hover:not(:disabled){border-color:color-mix(in srgb,var(--acid) 65%,var(--line));background:color-mix(in srgb,var(--acid) 7%,var(--bg));transform:translateY(-2px)}
body.scorer-live #scorePage .run-buttons button strong{font-size:25px}
body.scorer-live #scorePage .run-buttons button small{font-size:7px}
body.scorer-live #scorePage .run-buttons button.boundary{border-color:color-mix(in srgb,var(--acid) 46%,var(--line));background:color-mix(in srgb,var(--acid) 9%,var(--bg))}
body.scorer-live #scorePage .run-buttons button.wicket{border-color:rgba(239,94,82,.32);background:rgba(239,94,82,.1);color:color-mix(in srgb,#ef5e52 76%,var(--ink))}
body.scorer-live #scorePage .extras-heading{margin-top:20px;padding-top:17px;border-top:1px solid var(--line)}
body.scorer-live #scorePage .extras-heading span{font-size:10px}
body.scorer-live #scorePage .extras-heading small{font-size:7px}
body.scorer-live #scorePage .extra-buttons{gap:7px}
body.scorer-live #scorePage .extra-buttons button{min-height:48px;padding:0 11px;border-radius:10px;background:var(--bg);font-size:9px}
body.scorer-live #scorePage .extra-buttons button b{font-size:6px}
body.scorer-live #scorePage .scoring-adjustment{margin-top:17px;padding-top:16px}
body.scorer-live #scorePage .scoring-adjustment h3{font-size:18px}
body.scorer-live #scorePage .quick-adjust-controls{display:grid;grid-template-columns:1fr 1fr;gap:7px}
body.scorer-live #scorePage .quick-adjust-controls button{min-height:48px;border-radius:10px;background:var(--bg)}
body.scorer-live #scorePage .quick-adjust-controls button:last-child{border-color:var(--acid);background:var(--acid);color:#0b0d0b}
body.scorer-live #scorePage .scorer-tools{padding:0;background:transparent;border:0}
body.scorer-live #scorePage .match-control-menu{border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden}
body.scorer-live #scorePage .match-control-menu summary{min-height:54px;padding:0 15px;display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none}
body.scorer-live #scorePage .match-control-menu summary::-webkit-details-marker{display:none}
body.scorer-live #scorePage .match-control-menu summary span{display:flex;flex-direction:column;gap:3px}
body.scorer-live #scorePage .match-control-menu summary b{font-size:10px}
body.scorer-live #scorePage .match-control-menu summary small{color:var(--muted);font-size:7px}
body.scorer-live #scorePage .match-control-menu summary>i{width:26px;height:26px;border-radius:8px;background:var(--bg);display:grid;place-items:center;font-size:16px;font-style:normal;transition:transform .2s ease}
body.scorer-live #scorePage .match-control-menu[open] summary>i{transform:rotate(45deg)}
body.scorer-live #scorePage .match-control-menu .match-actions{padding:0 10px 10px;display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
body.scorer-live #scorePage .match-control-menu .match-actions button{min-height:43px;border-radius:9px}
body.scorer-live #scorePage .match-control-menu .match-actions button:nth-child(2),body.scorer-live #scorePage .match-control-menu .match-actions button:nth-child(3){color:#e8796b}
body.scorer-live #scorePage .privacy-note{margin:7px 4px 0;color:var(--muted);font-size:6px;text-align:right}

#scorePage .live-setup-view{padding:28px;border-radius:22px}
#scorePage .live-setup-view>header h2{font-size:clamp(36px,4vw,54px)}
#scorePage .live-setup-view>header p{font-size:10px;line-height:1.5}
#scorePage .live-setup-view>header>span{border:1px solid color-mix(in srgb,var(--acid) 30%,var(--line));background:color-mix(in srgb,var(--acid) 7%,var(--surface));font-size:7px}
#scorePage .live-setup-grid{gap:12px;margin-top:20px}
#scorePage .live-setup-group{padding:20px;border-radius:14px;background:color-mix(in srgb,var(--bg) 76%,var(--surface))}
#scorePage .live-setup-group-head{grid-template-columns:1fr;gap:0;margin-bottom:15px}
#scorePage .live-setup-group-head h3{font-size:21px}
#scorePage .live-setup-group-head small{font-size:7px}
#scorePage .live-setup-fields input,#scorePage .live-setup-fields select{height:50px;border-radius:10px;background:var(--surface);font-size:13px}
#scorePage .live-setup-group>p{font-size:8px}
#scorePage .live-setup-actions{position:sticky;bottom:8px;z-index:8;margin:18px -8px -8px;padding:10px 8px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--surface) 93%,transparent);box-shadow:0 14px 35px rgba(0,0,0,.12);backdrop-filter:blur(14px)}
#scorePage .live-setup-actions button{height:52px;border-radius:10px;font-size:9px}
#scorePage .live-setup-actions button:last-child{background:var(--acid);border-color:var(--acid);color:#0b0d0b}

#scorePage .live-commentary-view{padding:28px;border-radius:22px}
#scorePage .live-commentary-view>header h2{font-size:clamp(36px,4vw,54px)}
#scorePage .commentary-innings{grid-template-columns:155px minmax(0,1fr);gap:22px;padding:20px;border-radius:15px;background:color-mix(in srgb,var(--bg) 78%,var(--surface))}
#scorePage .commentary-innings-head h3{font-size:25px}
#scorePage .commentary-innings-head small{display:block;margin-top:9px;color:var(--muted);font-size:7px}
#scorePage .commentary-entry{grid-template-columns:58px minmax(0,1fr) 64px;min-height:73px;padding:13px 8px}
#scorePage .commentary-entry.latest{margin:0 -8px;padding:13px 16px;border-left:3px solid var(--acid);border-radius:0 11px 11px 0}
#scorePage .commentary-copy p{font-size:13px;line-height:1.5}
#scorePage .commentary-score{display:flex;flex-direction:column;align-items:flex-end;gap:3px;white-space:nowrap}
#scorePage .commentary-score strong{font:700 20px var(--display)}
#scorePage .commentary-score small{color:var(--muted);font-size:6px;text-transform:uppercase;letter-spacing:.08em}

#scorePage .scorer-finish{padding:30px;border-radius:25px;background:linear-gradient(150deg,#151a16,#0d100e);box-shadow:0 25px 75px rgba(0,0,0,.2)}
body.scorer-finished #scorePage.scorer-page{padding-top:28px}
body.scorer-finished #scorePage .scorer-heading{display:none}
#scorePage .finish-tabs{width:max-content;max-width:100%;padding:4px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(255,255,255,.045)}
#scorePage .finish-tabs button{min-width:110px;height:39px;border-radius:8px}
#scorePage .finish-tabs button.active{background:var(--acid);color:#0c0e0c}
#scorePage .result-report{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(330px,.92fr);gap:35px;align-items:end;padding:58px 0 35px}
#scorePage .result-status{display:inline-flex;align-items:center;gap:8px;color:var(--accent-text,var(--acid));font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.1em}
#scorePage .result-status i{width:8px;height:8px;border-radius:50%;background:var(--acid);box-shadow:0 0 0 6px rgb(var(--accent-channels, 200 255 61) / .08)}
#scorePage .result-lockup>small{margin-top:18px}
#scorePage .result-lockup h2{max-width:720px;margin:17px 0 13px;color:#fff;font:700 clamp(48px,6vw,78px)/.88 var(--display);letter-spacing:-.055em}
#scorePage .result-lockup p{margin:0;color:#929a94;font-size:10px}
#scorePage .finished-innings{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#scorePage .finished-innings:has(>div:only-child){grid-template-columns:minmax(260px,1fr);max-width:390px;justify-self:end;width:100%}
#scorePage .finished-innings>div{min-width:0;padding:19px;border:1px solid rgba(255,255,255,.11);border-radius:14px;background:rgba(255,255,255,.045);display:flex;flex-direction:column}
#scorePage .finished-innings span{color:#858e88;font-size:6px;font-weight:800;text-transform:uppercase;letter-spacing:.1em}
#scorePage .finished-innings b{margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font:650 16px var(--display)}
#scorePage .finished-innings strong{margin-top:22px;color:#fff;font:700 45px/.8 var(--display);letter-spacing:-.05em}
#scorePage .finished-innings strong i{color:var(--accent-text,var(--acid));font-size:.48em;font-style:normal;letter-spacing:-.02em}
#scorePage .finished-innings small{margin-top:10px;color:#858e88;font-size:8px}
#scorePage .finish-meta{grid-template-columns:repeat(4,1fr);border-color:rgba(255,255,255,.1)}
#scorePage .finish-meta span{min-height:73px}
#scorePage .keep-match-panel{grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr);gap:25px;padding:24px}
#scorePage .record-actions{grid-template-columns:repeat(4,1fr)}
#scorePage .record-actions button{min-height:72px;grid-template-columns:25px 1fr}
#scorePage .finish-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
#scorePage .finish-actions button{min-height:78px;padding:15px 17px;border:1px solid rgba(255,255,255,.13);border-radius:14px;background:var(--acid);color:#0c0e0c;display:flex;align-items:center;justify-content:space-between;gap:20px;text-align:left}
#scorePage .finish-actions button.secondary{background:rgba(255,255,255,.05);color:#fff}
#scorePage .finish-actions button span{display:flex;flex-direction:column;gap:5px}
#scorePage .finish-actions button b{font-size:12px}
#scorePage .finish-actions button small{font-size:7px;opacity:.65}
#scorePage .finish-actions button i{padding:7px 9px;border-radius:999px;background:rgba(0,0,0,.1);font-size:7px;font-style:normal;font-weight:850;text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}

@media(min-width:1000px){
  body.scorer-live #scorePage .live-cockpit{grid-template-columns:minmax(535px,1.13fr) minmax(425px,.87fr)}
}

@media(max-width:1100px){
  body.scorer-live #scorePage .live-scorer-match{display:none}
  body.scorer-live #scorePage .score-live-share b{display:none}
  #scorePage .record-actions{grid-template-columns:1fr 1fr}
}

@media(max-width:850px){
  body.scorer-live #scorePage .live-scorer-nav{top:68px;align-items:stretch;flex-direction:column}
  body.scorer-live #scorePage .live-scorer-primary{width:100%}
  body.scorer-live #scorePage .live-scorer-tabs{width:100%;display:grid;grid-template-columns:repeat(4,1fr)}
  body.scorer-live #scorePage .live-scorer-actions{justify-content:flex-end}
  #scorePage .result-report{grid-template-columns:1fr;padding-top:38px}
  #scorePage .keep-match-panel{grid-template-columns:1fr}
}

@media(max-width:699px){
  #scorePage .toss-stage-modern{border-radius:18px;box-shadow:none}
  #scorePage .toss-coin-zone{min-height:345px;padding-top:57px}
  #scorePage .toss-stage-modern .toss-decisions{padding:23px 16px;gap:17px}
  #scorePage .toss-decision-head h2{font-size:34px}
  #scorePage .toss-decision-head p{font-size:9px}
  #scorePage .toss-stage-modern .toss-option-grid button{min-height:51px;font-size:11px}
  body.scorer-live #scorePage .live-scorer-nav{position:relative;top:auto;margin-bottom:8px;padding:6px;border-radius:13px}
  body.scorer-live #scorePage .live-scorer-tabs{height:42px;padding:3px}
  body.scorer-live #scorePage .live-scorer-tabs button{height:36px;padding:0 3px;font-size:6px;letter-spacing:.02em}
  body.scorer-live #scorePage .live-scorer-tabs button span{display:none}
  body.scorer-live #scorePage .live-scorer-actions{display:grid;grid-template-columns:auto 1fr 1fr}
  body.scorer-live #scorePage .score-live-share{justify-content:center;padding:0 10px}
  body.scorer-live #scorePage .score-broadcast-toggle,body.scorer-live #scorePage .scorer-dock-toggle{justify-content:center;padding:0 8px}
  body.scorer-live #scorePage .scoreboard-panel{padding:17px 14px;border-radius:17px}
  body.scorer-live #scorePage .scoreboard-top h2{font-size:31px}
  body.scorer-live #scorePage .scoreboard-score>strong{font-size:67px}
  body.scorer-live #scorePage .scoreboard-score>div b{font-size:18px}
  body.scorer-live #scorePage .crease-batter h3{font-size:15px}
  body.scorer-live #scorePage .crease-batter strong{font-size:31px}
  body.scorer-live #scorePage .scoring-pad{padding:15px 12px;border-radius:17px}
  body.scorer-live #scorePage .pad-heading h3{font-size:21px}
  body.scorer-live #scorePage .run-buttons{grid-template-columns:repeat(4,1fr);gap:6px}
  body.scorer-live #scorePage .run-buttons button{min-height:62px;border-radius:11px}
  body.scorer-live #scorePage .run-buttons .wicket{grid-column:span 2}
  body.scorer-live #scorePage .extra-buttons{grid-template-columns:repeat(2,1fr)}
  body.scorer-live #scorePage .extra-buttons button{min-height:45px}
  body.scorer-live #scorePage .scoring-adjustment{grid-template-columns:1fr;gap:10px}
  body.scorer-live #scorePage .quick-adjust-controls{display:grid;grid-template-columns:1fr 1fr}
  body.scorer-live #scorePage .match-control-menu .match-actions{grid-template-columns:1fr}
  body.scorer-live #scorePage .privacy-note{text-align:left}
  #scorePage .live-setup-view{padding:17px 12px;border-radius:17px}
  #scorePage .live-setup-view>header h2{font-size:34px}
  #scorePage .live-setup-view>header>span{align-self:flex-start}
  #scorePage .live-setup-group{padding:15px 12px}
  #scorePage .live-setup-fields.two{grid-template-columns:1fr}
  #scorePage .live-setup-actions{grid-template-columns:.8fr 1.2fr;bottom:5px}
  #scorePage .live-commentary-view{padding:17px 10px;border-radius:17px}
  #scorePage .live-commentary-view>header h2{font-size:34px}
  #scorePage .commentary-innings{grid-template-columns:1fr;gap:10px;padding:13px 9px}
  #scorePage .commentary-entry{grid-template-columns:43px minmax(0,1fr) 48px;gap:8px;min-height:69px;padding:11px 3px}
  #scorePage .commentary-entry.latest{margin:0 -4px;padding:11px 8px}
  #scorePage .commentary-copy p{font-size:11px}
  #scorePage .commentary-score strong{font-size:16px}
  #scorePage .scorer-finish{padding:15px 11px;border-radius:18px}
  #scorePage .finish-tabs{width:100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr))}
  #scorePage .finish-tabs button{min-width:0}
  #scorePage .result-report{gap:24px;padding:34px 2px 24px}
  #scorePage .result-lockup h2{font-size:45px}
  #scorePage .finished-innings>div{padding:15px 12px}
  #scorePage .finished-innings b{font-size:13px}
  #scorePage .finished-innings strong{font-size:36px}
  #scorePage .finish-meta{grid-template-columns:1fr 1fr}
  #scorePage .finish-meta span{min-height:67px;padding:12px}
  #scorePage .keep-match-panel{gap:16px;margin:22px 0;padding:17px 13px}
  #scorePage .record-actions{grid-template-columns:1fr 1fr}
  #scorePage .record-actions button{min-height:66px;padding:9px}
  #scorePage .finish-actions{grid-template-columns:1fr}
  #scorePage .finish-actions button{min-height:70px}
}

@media(max-width:390px){
  body.scorer-live #scorePage .live-scorer-actions{grid-template-columns:auto 1fr 1fr}
  body.scorer-live #scorePage .score-broadcast-toggle b,body.scorer-live #scorePage .scorer-dock-toggle b{font-size:6px}
  body.scorer-live #scorePage .scoreboard-score>strong{font-size:60px}
  body.scorer-live #scorePage .scoreboard-score>div b{font-size:16px}
  #scorePage .finished-innings{grid-template-columns:1fr}
}

/* Mobile player profile: one balanced identity card with a face-safe thumbnail. */
@media(max-width:700px){
  #profilePage .player-profile-toolbar{grid-template-columns:40px minmax(0,1fr);gap:7px;margin-bottom:10px;padding:8px;border-radius:16px;box-shadow:none}
  #profilePage .profile-toolbar-back{width:40px;height:40px;border-radius:10px}
  #profilePage .profile-period select{height:40px;padding-left:12px;font-size:14px}
  #profilePage .player-profile-toolbar .player-share{padding-top:6px}
  #profilePage .player-profile-toolbar .player-share a,
  #profilePage .player-profile-toolbar .player-share button{width:36px;height:36px;min-width:36px;flex-basis:36px}
  #profilePage .player-profile-toolbar .player-share svg{width:17px;height:17px}
  #profilePage .profile-hero{display:block;min-height:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
  #profilePage .profile-main{padding:22px 20px 25px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(150deg,var(--surface),color-mix(in srgb,var(--surface-2) 56%,var(--surface)));align-items:center;text-align:center;overflow:hidden;position:relative}
  #profilePage .profile-main:after{content:"";position:absolute;width:185px;height:185px;right:-105px;bottom:-115px;border:1px solid color-mix(in srgb,var(--acid) 18%,var(--line));border-radius:50%;box-shadow:0 0 0 38px color-mix(in srgb,var(--acid) 2%,transparent);pointer-events:none}
  #profilePage .profile-name-row{z-index:1;order:1;width:100%;max-width:330px;margin:0 auto 14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0}
  #profilePage .profile-name-row h1{order:2;min-width:0;margin:14px 0 0!important;font-size:clamp(50px,15vw,61px)!important;line-height:.78;text-align:center;text-wrap:balance}
  #profilePage .profile-mobile-thumb{order:1;width:174px;flex:0 0 174px;justify-self:center;border:1px solid color-mix(in srgb,var(--acid) 55%,var(--line));border-radius:29px;background:var(--profile-color,var(--acid));box-shadow:0 17px 38px rgba(0,0,0,.17),0 0 0 5px color-mix(in srgb,var(--surface) 72%,transparent)}
  #profilePage .profile-thumb-photo{object-position:center 28%;transform:scale(1.06);transform-origin:center 32%}
  #profilePage .profile-mobile-thumb.transparent-photo .profile-thumb-photo{padding:2% 3% 0;object-position:center bottom;transform:none}
  #profilePage .profile-meta{z-index:1;order:2;width:max-content;max-width:100%;margin:0 auto;justify-content:flex-start;flex-wrap:nowrap;gap:5px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  #profilePage .profile-meta::-webkit-scrollbar{display:none}
  #profilePage .profile-meta span{flex:0 0 auto;font-size:6px;padding:5px 7px;line-height:1.15}
  #profilePage #playerBio{z-index:1;order:3;max-width:310px;margin:15px auto 0;color:var(--muted);font-size:11px;line-height:1.55;text-align:center}
  #profilePage .profile-kpis{grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}
  #profilePage .profile-kpi{min-height:91px;padding:17px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border-radius:14px}
  #profilePage .profile-kpi strong{font-size:30px}
  #profilePage .profile-kpi span{margin-top:4px;font-size:7px;line-height:1.3}
  #profilePage .profile-kpi:last-child{grid-column:1/-1;min-height:78px}
}

@media(max-width:390px){
  #profilePage .profile-main{padding:19px 14px 23px}
  #profilePage .profile-name-row{max-width:300px}
  #profilePage .profile-name-row h1{font-size:clamp(47px,14.6vw,55px)!important}
  #profilePage .profile-mobile-thumb{width:158px;flex-basis:158px;border-radius:26px}
}

/* Score setup v2: compact match builder with a clear ready state. */
#scorePage.scorer-page{padding-top:40px}
#scorePage .scorer-heading{margin-bottom:28px;align-items:end}
#scorePage .scorer-heading h1{font-size:clamp(52px,6.2vw,84px);line-height:.82}
#scorePage .scorer-heading>p{max-width:290px;margin-bottom:4px;font-size:12px}
#scorePage .scorer-setup{grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr);border:1px solid var(--line);border-radius:26px;background:var(--surface);box-shadow:0 22px 60px color-mix(in srgb,#000 10%,transparent);overflow:hidden}
#scorePage .setup-intro{min-height:610px;padding:30px;background:linear-gradient(155deg,color-mix(in srgb,var(--acid) 13%,var(--surface)) 0%,var(--surface-2) 72%);color:var(--ink);border-right:1px solid var(--line)}
#scorePage .setup-intro:after{width:330px;height:330px;right:-235px;bottom:-220px;border-color:color-mix(in srgb,var(--acid) 24%,var(--line));box-shadow:0 0 0 55px color-mix(in srgb,var(--acid) 3%,transparent),0 0 0 110px color-mix(in srgb,var(--acid) 2%,transparent)}
#scorePage .setup-intro-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
#scorePage .setup-intro-head>span{font-size:9px;font-weight:850;letter-spacing:.14em;text-transform:uppercase}
#scorePage .setup-intro-head>b{padding:7px 9px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:7px;letter-spacing:.08em;text-transform:uppercase}
#scorePage .setup-preview{margin-top:44px}
#scorePage .setup-preview>small{color:var(--muted);font-size:8px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
#scorePage .setup-preview h2{margin:12px 0 10px;font:700 clamp(38px,3.7vw,52px)/.88 var(--display);letter-spacing:-.045em;text-wrap:balance}
#scorePage .setup-preview>p{min-height:38px;max-width:270px;margin:0;color:var(--muted);font-size:11px;line-height:1.5}
#scorePage .setup-preview-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:27px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
#scorePage .setup-preview-facts>span{min-width:0;padding:14px 9px;border-left:1px solid var(--line);display:flex;flex-direction:column;gap:5px}
#scorePage .setup-preview-facts>span:first-child{padding-left:0;border-left:0}
#scorePage .setup-preview-facts small{color:var(--muted);font-size:6px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
#scorePage .setup-preview-facts b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:650 11px var(--display)}
#scorePage .setup-readiness{margin-top:auto;padding:14px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--surface) 75%,transparent);display:grid;grid-template-columns:10px 1fr;align-items:center;gap:11px}
#scorePage .setup-readiness>i{width:9px;height:9px;border-radius:50%;background:#ff9f7d;box-shadow:0 0 0 4px color-mix(in srgb,#ff9f7d 13%,transparent)}
#scorePage .setup-readiness>span{display:flex;flex-direction:column;gap:3px}
#scorePage .setup-readiness small{color:var(--muted);font-size:7px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
#scorePage .setup-readiness b{font:650 13px var(--display)}
#scorePage .setup-readiness.ready{border-color:color-mix(in srgb,var(--acid) 35%,var(--line));background:color-mix(in srgb,var(--acid) 6%,var(--surface))}
#scorePage .setup-readiness.ready>i{background:var(--acid);box-shadow:0 0 0 4px color-mix(in srgb,var(--acid) 13%,transparent)}
#scorePage .setup-benefits{gap:6px;margin-top:13px}
#scorePage .setup-benefits span{border-color:var(--line);color:var(--muted);font-size:6px}
#scorePage .setup-fields{padding:27px clamp(26px,3vw,42px) 17px;gap:0;justify-content:start}
#scorePage .setup-form-head{padding:0 0 21px;border-bottom:1px solid var(--line);display:flex;align-items:end;justify-content:space-between;gap:25px}
#scorePage .setup-form-head span{color:var(--accent-text,var(--acid));font-size:8px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}
#scorePage .setup-form-head h2{margin:5px 0 0;font:700 29px/.95 var(--display);letter-spacing:-.03em}
#scorePage .setup-form-head p{max-width:245px;margin:0;color:var(--muted);font-size:9px;line-height:1.45;text-align:right}
#scorePage .setup-group{padding:20px 0;border-bottom:1px solid var(--line)}
#scorePage .setup-group:first-of-type{padding-top:20px}
#scorePage .setup-step{margin:0 0 12px}
#scorePage .setup-step>span{font:650 16px var(--display)}
#scorePage .setup-step>small{max-width:55%;font-size:7px;text-align:right}
#scorePage .setup-team-grid{grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr)}
#scorePage .setup-fields input{height:52px;border-radius:11px;background:var(--bg);font-size:15px}
#scorePage .setup-fields input:focus{border-color:var(--acid);box-shadow:0 0 0 3px color-mix(in srgb,var(--acid) 12%,transparent)}
#scorePage .setup-inline-error{min-height:0;margin:7px 0 0;color:#ff806f;font-size:8px}
#scorePage .setup-inline-error:empty{display:none}
#scorePage .setup-presets{grid-template-columns:repeat(4,1fr);gap:6px;margin-top:6px!important}
#scorePage .setup-presets button{height:32px;border-radius:9px;background:var(--surface);font-size:9px;transition:background .16s,border-color .16s,color .16s,transform .16s}
#scorePage .setup-presets button:hover{transform:translateY(-1px)}
#scorePage .setup-presets button.active{border-color:color-mix(in srgb,var(--acid) 72%,var(--line));background:color-mix(in srgb,var(--acid) 10%,var(--surface));color:var(--ink)}
#scorePage .setup-options{padding-bottom:20px;border-bottom:1px solid var(--line)}
#scorePage .setup-toggle-grid{gap:10px}
#scorePage .player-names-toggle{min-height:68px;padding:12px 13px!important;border:1px solid var(--line);border-radius:12px;background:var(--bg);grid-template-columns:38px 1fr;transition:border-color .18s,background .18s,transform .18s}
#scorePage .player-names-toggle:hover{border-color:color-mix(in srgb,var(--acid) 38%,var(--line));transform:translateY(-1px)}
#scorePage .player-names-toggle:has(input:checked){border-color:color-mix(in srgb,var(--acid) 42%,var(--line));background:color-mix(in srgb,var(--acid) 6%,var(--surface))}
#scorePage .player-names-toggle b{font-size:11px}
#scorePage .player-names-toggle small{font-size:8px;line-height:1.35}
#scorePage .setup-advanced{margin:15px 0 0;border-radius:13px;background:transparent}
#scorePage .setup-advanced summary{min-height:61px;padding:0 13px}
#scorePage .setup-advanced summary b{font-size:13px}
#scorePage .setup-advanced summary small{font-size:8px}
#scorePage .setup-advanced>.setup-advanced-panel{padding:2px 14px 14px}
#scorePage .optional-setup-block{padding:15px 0}
#scorePage .optional-setup-block>header{margin-bottom:12px}
#scorePage .optional-setup-block>header>span{gap:2px}
#scorePage .optional-setup-block>header b{font-size:12px}
#scorePage .league-match-context select{min-height:48px}
#scorePage .player-name-fields{margin:18px;border-radius:17px;background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--acid) 5%,transparent)}
#scorePage .start-match-button{min-height:63px;margin:0 clamp(26px,3vw,42px) 27px;border:0;border-radius:13px;background:var(--acid);color:#0a0b0b}
#scorePage .start-match-button>span{gap:4px}
#scorePage .start-match-button b{font-size:13px}
#scorePage .start-match-button small{font-size:7px;opacity:.65}
#scorePage .start-match-button>i{min-width:59px;padding:7px 9px;border-radius:999px;background:rgba(10,11,11,.1);font:800 7px var(--body);letter-spacing:.08em;text-transform:uppercase}
#scorePage .start-match-button:disabled{cursor:not-allowed;background:var(--surface-2);color:var(--muted);border:1px solid var(--line)}
#scorePage .start-match-button:disabled>i{background:var(--surface)}

/* The setup summary deliberately stays scoreboard-dark in every theme. */
#scorePage .setup-intro{background:linear-gradient(155deg,#172019 0%,#101411 72%);color:#fff;border-color:rgba(255,255,255,.1)}
#scorePage .setup-intro:after{border-color:rgb(var(--accent-channels, 200 255 61) / .18);box-shadow:0 0 0 55px rgb(var(--accent-channels, 200 255 61) / .025),0 0 0 110px rgb(var(--accent-channels, 200 255 61) / .015)}
#scorePage .setup-intro-head{column-gap:20px}
#scorePage .setup-intro-head>span{color:var(--accent-text,var(--acid))}
#scorePage .setup-intro-head>b{flex:0 0 auto;border-color:rgba(255,255,255,.14);color:#aeb5b0}
#scorePage .setup-preview>small,#scorePage .setup-preview>p{color:#98a09a}
#scorePage .setup-preview h2{color:#fff}
#scorePage .setup-preview-facts{grid-template-columns:1fr;border-color:rgba(255,255,255,.1)}
#scorePage .setup-preview-facts>span,#scorePage .setup-preview-facts>span:first-child{min-height:45px;padding:10px 0;border:0;border-bottom:1px solid rgba(255,255,255,.085);display:grid;grid-template-columns:73px minmax(0,1fr);align-items:center;gap:10px}
#scorePage .setup-preview-facts>span:last-child{border-bottom:0}
#scorePage .setup-preview-facts small{color:#747d77}
#scorePage .setup-preview-facts b{color:#fff;font-size:12px}
#scorePage .setup-readiness{border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.045)}
#scorePage .setup-readiness small{color:#78817b}
#scorePage .setup-readiness b{color:#fff}
#scorePage .setup-readiness.ready{border-color:rgb(var(--accent-channels, 200 255 61) / .3);background:rgb(var(--accent-channels, 200 255 61) / .07)}
#scorePage .setup-benefits span{border-color:rgba(255,255,255,.13);color:#99a19b}

@media(max-width:999px){
  #scorePage .scorer-setup{grid-template-columns:1fr}
  #scorePage .setup-intro{min-height:0;padding:27px 31px;border-right:0;border-bottom:1px solid var(--line)}
  #scorePage .setup-preview{margin-top:26px;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.9fr);column-gap:34px;align-items:end}
  #scorePage .setup-preview>small{grid-column:1}
  #scorePage .setup-preview h2{grid-column:1;margin-bottom:7px}
  #scorePage .setup-preview>p{grid-column:1;min-height:0}
  #scorePage .setup-preview-facts{grid-column:2;grid-row:1/4;margin:0}
  #scorePage .setup-readiness{margin-top:21px}
  #scorePage .setup-benefits{display:none}
  #scorePage .setup-fields{padding:27px 31px 17px}
  #scorePage .player-name-fields{grid-column:1;margin:16px 20px}
  #scorePage .start-match-button,#scorePage .player-name-fields:not([hidden])~.start-match-button{grid-column:1;margin:0 20px 24px}
}

@media(max-width:600px){
  #scorePage.scorer-page{padding-top:26px}
  #scorePage .scorer-heading{margin-bottom:18px}
  #scorePage .scorer-heading h1{font-size:43px}
  #scorePage .scorer-heading>p{max-width:250px;margin-top:12px;font-size:10px}
  #scorePage .scorer-setup{border-radius:18px;box-shadow:none}
  #scorePage .setup-intro{padding:20px 16px}
  #scorePage .setup-intro-head>b{padding:5px 7px;font-size:6px}
  #scorePage .setup-preview{margin-top:22px;display:block}
  #scorePage .setup-preview h2{margin:9px 0 6px;font-size:36px}
  #scorePage .setup-preview>p{font-size:10px}
  #scorePage .setup-preview-facts{margin-top:17px}
  #scorePage .setup-preview-facts>span{padding:11px 7px}
  #scorePage .setup-preview-facts b{font-size:10px}
  #scorePage .setup-readiness{margin-top:14px;padding:11px 12px}
  #scorePage .setup-readiness b{font-size:12px}
  #scorePage .setup-fields{padding:20px 14px 12px}
  #scorePage .setup-form-head{align-items:flex-start;padding-bottom:17px}
  #scorePage .setup-form-head h2{font-size:25px}
  #scorePage .setup-form-head p{display:none}
  #scorePage .setup-group,#scorePage .setup-group:first-of-type{padding:17px 0}
  #scorePage .setup-step>span{font-size:15px}
  #scorePage .setup-team-grid{grid-template-columns:1fr;gap:9px}
  #scorePage .setup-number-grid{grid-template-columns:1fr;gap:17px}
  #scorePage .setup-fields input{height:50px;font-size:16px}
  #scorePage .setup-presets button{height:34px}
  #scorePage .setup-toggle-grid{grid-template-columns:1fr}
  #scorePage .player-names-toggle{min-height:64px}
  #scorePage .setup-advanced{margin-top:12px}
  #scorePage .setup-advanced summary{min-height:62px}
  #scorePage .player-name-fields{margin:12px 9px;padding:10px}
  #scorePage .start-match-button,#scorePage .player-name-fields:not([hidden])~.start-match-button{min-height:61px;margin:0 9px 14px;padding:0 14px}
  #scorePage .start-match-button>i{min-width:55px}
}

/* Final phone override: put the essential setup fields within the first swipe. */
@media(max-width:600px){
  #scorePage .setup-intro{padding:17px 14px}
  #scorePage .setup-preview{margin-top:15px}
  #scorePage .setup-preview h2{margin:6px 0 4px;font-size:31px}
  #scorePage .setup-preview>p{font-size:8px}
  #scorePage .setup-preview-facts{grid-template-columns:repeat(3,1fr);margin-top:12px}
  #scorePage .setup-preview-facts>span,#scorePage .setup-preview-facts>span:first-child{min-height:54px;padding:8px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;border:0;border-left:1px solid rgba(255,255,255,.085);border-bottom:0}
  #scorePage .setup-preview-facts>span:first-child{border-left:0}
  #scorePage .setup-preview-facts small{font-size:6px}
  #scorePage .setup-preview-facts b{font-size:9px}
  #scorePage .setup-readiness{margin-top:11px;padding:10px 11px}
  #scorePage .setup-intro-head>b{font-size:5px}
}

/* Scorer safety: resilient local journal, recovery notice and cross-site resume guard. */
.scorer-recovery-banner{position:relative;z-index:24;min-height:72px;margin:0 0 10px;padding:12px 14px;border:1px solid color-mix(in srgb,var(--acid) 42%,var(--line));border-radius:15px;background:linear-gradient(110deg,color-mix(in srgb,var(--acid) 10%,var(--surface)),var(--surface));display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:12px;box-shadow:0 14px 34px rgba(0,0,0,.08);animation:scorerRecoveryIn .32s cubic-bezier(.2,.75,.25,1) both}
.scorer-recovery-banner>span{width:38px;height:38px;border-radius:11px;background:var(--acid);color:#0b0d0b;display:grid;place-items:center;font:850 18px var(--display)}
.scorer-recovery-banner>div{min-width:0;display:flex;flex-direction:column;gap:4px}
.scorer-recovery-banner b{font:700 15px var(--display)}
.scorer-recovery-banner small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:10px}
.scorer-recovery-banner button{min-height:42px;padding:0 15px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:800 10px var(--body);cursor:pointer}
.scorer-recovery-banner.conflict{border-color:color-mix(in srgb,#f5b942 50%,var(--line));background:linear-gradient(110deg,color-mix(in srgb,#f5b942 10%,var(--surface)),var(--surface))}
.scorer-recovery-banner.conflict>span{background:#f5b942}
.scorer-recovery-banner.conflict button{border-color:#f5b942;background:#f5b942;color:#17130b}
@keyframes scorerRecoveryIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
.active-match-guard{position:fixed;z-index:500;left:50%;bottom:max(18px,env(safe-area-inset-bottom));width:min(560px,calc(100% - 28px));transform:translateX(-50%);filter:drop-shadow(0 18px 32px rgba(0,0,0,.25))}
.active-match-guard[hidden]{display:none}
.active-match-guard>button{width:100%;min-height:68px;padding:9px 11px;border:1px solid color-mix(in srgb,var(--acid) 45%,var(--line));border-radius:16px;background:color-mix(in srgb,var(--surface) 94%,transparent);color:var(--ink);display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;text-align:left;cursor:pointer;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.active-match-guard>button>span{width:42px;height:42px;border-radius:12px;background:var(--acid);color:#0b0d0b;display:grid;place-items:center;font:850 18px var(--display)}
.active-match-guard>button>div{min-width:0;display:flex;flex-direction:column;gap:4px}
.active-match-guard small{color:var(--muted);font-size:8px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.active-match-guard b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 15px var(--display)}
.active-match-guard b i{color:var(--muted);font-size:.72em;font-style:normal}
.active-match-guard strong{padding:9px 12px;border-radius:10px;background:var(--ink);color:var(--bg);font-size:9px;white-space:nowrap}
.active-match-guard>button:hover{border-color:var(--acid);transform:translateY(-2px)}
#scorePage .score-live-share.offline{border-color:color-mix(in srgb,#f5b942 52%,var(--line));background:color-mix(in srgb,#f5b942 9%,var(--surface))}
#scorePage .score-live-share.offline i{background:#f5b942;box-shadow:0 0 0 4px color-mix(in srgb,#f5b942 15%,transparent)}
#scorePage .score-live-share.save-error{border-color:color-mix(in srgb,#ef6c5b 58%,var(--line));background:color-mix(in srgb,#ef6c5b 10%,var(--surface));color:color-mix(in srgb,#ef6c5b 78%,var(--ink))}
#scorePage .score-live-share.save-error i{background:#ef6c5b;box-shadow:0 0 0 4px rgba(239,108,91,.12)}

@media(max-width:600px){
  .scorer-recovery-banner{min-height:65px;padding:10px;grid-template-columns:34px minmax(0,1fr) auto;border-radius:13px}
  .scorer-recovery-banner>span{width:34px;height:34px;border-radius:10px}
  .scorer-recovery-banner b{font-size:13px}
  .scorer-recovery-banner small{font-size:8px}
  .scorer-recovery-banner button{min-height:38px;padding:0 10px;font-size:8px}
  .active-match-guard{bottom:max(74px,calc(env(safe-area-inset-bottom) + 68px));width:calc(100% - 18px)}
  .active-match-guard>button{min-height:62px;padding:8px;grid-template-columns:38px minmax(0,1fr) auto;border-radius:14px}
  .active-match-guard>button>span{width:38px;height:38px;border-radius:11px}
  .active-match-guard small{font-size:7px}
  .active-match-guard b{font-size:13px}
  .active-match-guard strong{padding:8px;font-size:8px}
}
