/* v143 Sunlight theme rework: outdoor readability. Only html[data-sun="1"]; day/night untouched. */
html[data-sun="1"]{--sun-bg:#FFF6E5;--sun-card:#FFFFFF;--sun-ink:#111111;--sun-pri:#A00C24;--sun-acc:#0B3D91;color-scheme:light}
html[data-sun="1"] body,html[data-sun="1"] body #view,html[data-sun="1"] body #app{background:var(--sun-bg)!important;background-image:none!important;color:var(--sun-ink)!important}
html[data-sun="1"] body #view#view *,html[data-sun="1"] body header#top *{background-image:none!important;text-shadow:none!important;-webkit-text-stroke:0!important;opacity:1}
html[data-sun="1"] body #view#view :is(.card,section,article,.b7tile,.b13card,[class*="card"]):not(button){background:var(--sun-card)!important;border:3px solid var(--sun-ink)!important;box-shadow:none!important;border-radius:14px;max-width:100%!important;box-sizing:border-box!important}
html[data-sun="1"] body #view#view :is(h1,h2,h3,h4,p,li,span,small,label,b,strong,em,td,th,dt,dd,div,a:not(.btn)):not(.btn):not(button *){color:var(--sun-ink)!important;-webkit-text-fill-color:var(--sun-ink)!important;font-weight:600}
html[data-sun="1"] body #view#view :is(p,li,span,small,label,td,dd,div){font-size:max(16px,100%)}
html[data-sun="1"] body #view#view :is(h1,h2,h3){font-weight:800!important}
html[data-sun="1"] body #view#view :is(div,span,p,li)[class]:not(.card):not(button){background-color:transparent}
html[data-sun="1"] body #view#view :is(button,.btn,a.btn,select,input,textarea){background:var(--sun-card)!important;color:var(--sun-ink)!important;-webkit-text-fill-color:var(--sun-ink)!important;border:3px solid var(--sun-ink)!important;font-weight:800!important;font-size:max(16px,100%);min-height:44px;box-shadow:none!important}
html[data-sun="1"] body #view#view :is(button,.btn) *{color:inherit!important;-webkit-text-fill-color:currentColor!important}
html[data-sun="1"] body #view#view :is(.btn.pri,button.pri,.rk140pri,.rk143dom):not(.rk143soft){background:var(--sun-pri)!important;color:#FFFFFF!important;-webkit-text-fill-color:#FFFFFF!important;border-color:var(--sun-pri)!important}
html[data-sun="1"] body #view#view :is(button.on,.btn.on,[aria-pressed=true],[aria-selected=true]){background:var(--sun-acc)!important;color:#FFFFFF!important;-webkit-text-fill-color:#FFFFFF!important;border-color:var(--sun-acc)!important;text-decoration:underline;text-underline-offset:3px}
html[data-sun="1"] body #view#view svg:not(.field):not([id$="ield"]) :is(path,line,circle,rect,polyline){stroke-width:2.2}
/* header: 44px+ buttons, 15px labels, scroll sideways instead of shrinking */
html[data-sun="1"] body header#top,html[data-sun="1"] body header{background:var(--sun-bg)!important;border-bottom:3px solid var(--sun-ink)!important}
html[data-sun="1"] body .b19hb{color:var(--sun-ink)!important;-webkit-text-fill-color:var(--sun-ink)!important;background:var(--sun-card)!important;border:3px solid var(--sun-ink)!important;min-height:56px!important;min-width:64px;font-size:15px!important;font-weight:800!important;flex:0 0 auto}
html[data-sun="1"] body .b19hb *{font-size:15px!important;color:inherit!important;stroke:currentColor}
html[data-sun="1"] body :has(>.b19hb){overflow-x:auto;flex-wrap:nowrap!important;max-width:100%}
/* bottom tabs */
html[data-sun="1"] body nav#tabs{background:var(--sun-card)!important;border-top:3px solid var(--sun-ink)!important}
html[data-sun="1"] body nav#tabs button{color:var(--sun-ink)!important;-webkit-text-fill-color:var(--sun-ink)!important;font-size:15px!important;font-weight:800!important}
/* phones: full-width single column, nothing clipped */
@media (max-width:899px){
 html[data-sun="1"] body #view#view{overflow-x:hidden;padding-left:12px!important;padding-right:12px!important}
 html[data-sun="1"] body #view#view :is(.card,section,article,[class*="card"]):not(button){width:100%!important;margin-left:0!important;margin-right:0!important;float:none!important;justify-self:stretch!important;align-self:stretch!important;transform:none!important}
 html[data-sun="1"] body #view#view :is(.b7tiles){grid-template-columns:1fr 1fr!important}
 html[data-sun="1"] body #view#view :is(.b7tile){min-height:72px!important;width:auto!important;overflow:visible!important}
}
/* COPPA: player cards show a jersey badge, never a photo */
.rk143jersey{display:flex;align-items:center;justify-content:center;width:100%;min-height:150px;border-radius:12px;font:800 44px/1 system-ui,sans-serif;background:#0B3D91;color:#fff}
html[data-sun="1"] body #view#view .rk143jersey{background:var(--sun-acc)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:3px solid var(--sun-ink)}
/* sport switcher, draw toolbar, favorites (all themes) */
#rk143spbox,.rk143spset{margin:0 0 12px}
.rk143sp{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.rk143spl{font-size:15px;font-weight:700}
.rk143sp select{min-height:44px;font-size:16px;padding:8px 12px;border-radius:10px;flex:1 1 180px;text-align:left}
.rk143spnote{flex:1 1 100%;margin:0;font-size:15px}
.rk143spback{min-height:44px;font-size:15px;padding:8px 14px;border-radius:10px;font-weight:700}
.fieldcard{position:relative}
#rk143cv{position:absolute;pointer-events:none;touch-action:auto;z-index:3}
#rk143cv.drawing{pointer-events:auto;touch-action:none;outline:3px dashed #FFD400;outline-offset:-3px}
.rk143dt{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.rk143dt button{min-height:44px;min-width:44px;font-size:15px;padding:6px 10px;border-radius:10px;font-weight:700;display:inline-flex;align-items:center;gap:6px}
.rk143dt button.on{outline:3px solid currentColor;outline-offset:1px}
.rk143dt .rk143hide{display:none}
.rk143dot{width:18px;height:18px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 2px #111;display:inline-block}
.rk143favmsg{font-size:15px;margin:4px 0}
.rk143favl{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.rk143favl li{display:grid;grid-template-columns:96px 1fr;gap:8px;align-items:center}
.rk143favl li div{display:flex;flex-direction:column;font-size:15px;min-width:0;overflow-wrap:anywhere}
.rk143favl li button{min-height:44px;font-size:15px;border-radius:10px}
.rk143favl img{border-radius:8px;background:#2E7D32;width:96px;height:60px;object-fit:cover}
.rk143small{font-size:15px}
#view .ghostbar select,#view select[aria-label="Opponent look"]{text-align:left;text-indent:0;padding-left:12px!important;padding-right:32px!important;direction:ltr;max-width:100%;width:100%;font-size:15px;text-overflow:clip}
html[data-sun="1"] body .b19hb{min-width:max-content!important;width:auto!important;padding:4px 10px!important;white-space:nowrap}
html[data-sun="1"] body .rk143jersey{color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:44px!important;font-weight:900!important;display:flex;align-items:center;justify-content:center;background:#0B3D91!important;border:3px solid #111!important}
html[data-sun="1"] body *:has(> .rk143jersey){background:none!important;background-image:none!important}
html[data-sun="1"] body *:has(> .rk143jersey)::before,html[data-sun="1"] body *:has(> .rk143jersey)::after{background:none!important}
html[data-sun="1"] body #view#view#view :is(.btn.pri,button.pri,.rk140pri,.rk143dom):not(.rk143soft){background:#A00C24!important;background-color:#A00C24!important;background-image:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-sun="1"] body header#top#top .b19hb,html[data-sun="1"] body header#top#top .b19hb *,html[data-sun="1"] body header#top#top .b19hb::after,html[data-sun="1"] body header#top#top .b19hb::before{font-size:15px!important}
html[data-sun="1"] body #view#view div:has(> small + h2[data-b7]){background:#fff!important;background-image:none!important;color:#111!important}
html[data-sun="1"] body #view#view .rk143jersey.b13ai{color:#fff!important;-webkit-text-fill-color:#fff!important;background:#0B3D91!important;font-size:44px!important}
#view .rk143dt button,#view #rk143favs button,#view .rk143spback{font-size:15px!important;min-height:44px}
html[data-sun="1"] body #view#view .rk143dt button,html[data-sun="1"] body #view#view #rk143favs button{font-size:16px!important;font-weight:700!important}
