/* Courtside light, short interactions and locally generated posters. */
.court-atmosphere{overflow:hidden}.court-orb-purple{opacity:.78}.court-orb-ice{opacity:.65}
.arena-spotlight{position:fixed;z-index:5;inset:0;overflow:hidden;pointer-events:none;transition:opacity .6s;opacity:0}
.arena-spotlight::before{content:'';position:absolute;left:0;top:0;width:min(1100px,160vw);height:min(1100px,160vw);background:radial-gradient(circle,rgb(160 92 255 / .15),rgb(131 206 255 / .055) 32%,transparent 66%);transform:translate3d(var(--arena-x,65vw),var(--arena-y,25vh),0) translate(-50%,-50%);will-change:transform}
.arena-pointer .arena-spotlight{opacity:1}.royce-home .home-hero{position:relative}.home-hero-copy{position:relative;z-index:1}
.royce-home:not(.info-page) .home-hero::before{content:'';position:absolute;inset:-40px -30px;pointer-events:none;background:radial-gradient(ellipse at 90% 35%,rgb(168 102 255 / .2),transparent 55%),radial-gradient(ellipse at 5% 70%,rgb(140 220 255 / .13),transparent 50%);filter:blur(20px)}
.home-hero .home-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:12px;max-width:530px}
.home-hero .home-actions>.home-primary,.home-hero .home-actions>.home-secondary{width:100%;min-width:0;min-height:54px;height:100%;padding:12px 15px;gap:10px;line-height:1.4;font-size:13px;text-align:center;box-sizing:border-box}
.home-hero .home-actions>*>span{font-size:inherit;line-height:inherit;overflow-wrap:anywhere}.home-actions svg{flex:0 0 19px;width:19px;height:19px}
.home-primary{background:linear-gradient(115deg,#7638df,#964df5 60%,#7765e8);box-shadow:0 0 28px rgb(142 69 240 / .28),inset 0 1px 0 rgb(235 220 255 / .2)}
.home-preview{box-shadow:0 25px 90px rgb(111 52 210 / .2),0 0 35px rgb(147 218 255 / .08);border-color:color-mix(in srgb,var(--ui-purple) 40%,var(--ui-line))}
.arena-card{transition:border-color .25s,box-shadow .25s,transform .25s;position:relative}
.arena-sheen{position:absolute;inset:0;border-radius:inherit;padding:1px;pointer-events:none;z-index:1;background:linear-gradient(110deg,transparent 25%,#bceaff 48%,#c3a0ff 53%,transparent 75%) 200% 0/250% 100%;mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;opacity:0}
@media(hover:hover) and (pointer:fine){.arena-card:hover>.arena-sheen{opacity:.8;animation:arena-sweep .85s ease-out both}}
@keyframes arena-sweep{from{background-position:200% 0}to{background-position:-100% 0}}
@media(hover:hover) and (pointer:fine){.arena-card:hover{border-color:color-mix(in srgb,var(--ui-purple) 65%,var(--ui-ice));box-shadow:0 0 0 1px rgb(173 126 255 / .16),0 8px 38px rgb(130 76 222 / .2),inset 0 0 30px rgb(159 214 255 / .035)}.home-feature.arena-card:hover{transform:translateY(-4px)}}
.arena-spark{position:fixed;left:var(--spark-x);top:var(--spark-y);width:8px;height:8px;pointer-events:none;z-index:9999;border-radius:1px;background:var(--spark-color);box-shadow:0 0 12px var(--spark-color);animation:arena-spark .75s ease-out forwards}
@keyframes arena-spark{from{opacity:1;transform:translate(0,0) rotate(45deg) scale(1)}to{opacity:0;transform:translate(var(--spark-dx),var(--spark-dy)) rotate(170deg) scale(.25)}}
@keyframes arena-border{0%{box-shadow:0 0 0 rgb(180 136 255 / 0)}45%{box-shadow:0 0 35px rgb(162 101 255 / .35),inset 0 0 20px rgb(176 220 255 / .08)}100%{box-shadow:0 0 0 rgb(180 136 255 / 0)}}
.arena-hit{animation:arena-border .7s ease-out}.dna-radar .radar-team,.home-radar-you{filter:drop-shadow(0 0 5px rgb(164 114 255 / .3))}
[data-theme=light] .arena-spotlight::before{background:radial-gradient(circle,rgb(136 77 222 / .13),rgb(111 192 232 / .065) 32%,transparent 66%)}
[data-theme=light] .home-preview{box-shadow:0 24px 65px rgb(116 83 180 / .14),0 0 35px rgb(120 200 236 / .12)}
/* One quiet action in the same top-right corner on every card. */
.poster-button{display:inline-grid;place-items:center;width:36px;height:36px;min-width:36px;padding:9px;border:0;border-radius:8px;background:transparent;color:var(--ui-muted);cursor:pointer;flex-shrink:0;vertical-align:middle;transition:color .2s,filter .2s;box-shadow:none}
.poster-button svg{width:17px;height:17px;pointer-events:none}.poster-button:hover{color:var(--ui-ice);filter:drop-shadow(0 0 7px rgb(174 134 255 / .65))}.poster-button:focus-visible{outline:2px solid var(--ui-ice);outline-offset:1px}
.poster-host{position:relative}.poster-host>.poster-button{position:absolute;inset-block-start:8px;inset-inline-end:8px;z-index:3}
.poster-host>.workspace-panel-heading,.poster-host>.panel-heading,.poster-host>.highlights-heading{padding-inline-end:52px}
.highlight-card.poster-host h3{padding-inline-end:88px}.highlight-card.poster-host>.highlight-entry>.highlight-action{top:8px;right:8px;width:36px;height:36px}.highlight-card.poster-host>.poster-button{inset-inline-end:44px}
.highlight-action{border:0;background:transparent;border-radius:0;box-shadow:none;color:var(--ui-muted)}.highlight-entry:hover .highlight-action,.highlight-entry:focus-visible .highlight-action{color:var(--ui-ice);filter:drop-shadow(0 0 7px rgb(174 134 255 / .5))}.highlight-action svg{width:17px;height:17px}
.nba-star.poster-host{padding-top:48px}.player-compare.poster-host>h2,.player-compare.poster-host>.compare-heading{padding-inline-end:45px}
.poster-table-host{padding-top:44px}.poster-table-host>.poster-button{top:0}
.dialog-top:has(.poster-button){display:flex;justify-content:flex-end;align-items:center;gap:8px}.dialog-top .poster-button{margin:0}
.poster-dialog{box-sizing:border-box;width:min(620px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:20px;border:1px solid var(--ui-line-strong);border-radius:20px;background:var(--ui-surface);color:var(--ui-ink);box-shadow:0 25px 100px #0009;overflow:auto;overscroll-behavior:contain}
.poster-dialog::backdrop{background:rgb(4 8 20 / .78);backdrop-filter:blur(9px)}.poster-dialog-header{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:12px}.poster-dialog-header h2{font-size:18px;margin:0;line-height:1.4}.poster-dialog-close{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border:1px solid var(--ui-line);border-radius:50%;background:var(--ui-soft);color:var(--ui-ink);cursor:pointer}.poster-dialog-close svg{width:20px;height:20px}
.poster-format{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;background:var(--ui-soft);padding:5px;border:1px solid var(--ui-line);border-radius:12px;margin-bottom:14px}.poster-format button{min-height:40px;border:1px solid transparent;background:transparent;color:var(--ui-muted);border-radius:8px;font-family:inherit;font-weight:600;font-size:12px;line-height:1.3;min-width:0;padding:6px 3px;overflow-wrap:anywhere;cursor:pointer}.poster-format small{display:block;font-size:10px;opacity:.65;margin-top:4px}.poster-format button[aria-pressed=true]{color:var(--ui-ice);background:var(--ui-selected);border-color:var(--ui-line-strong)}
.poster-preview{display:grid;place-items:center;min-height:160px;background:#080d1c;border-radius:12px;overflow:hidden}.poster-preview img{display:block;max-width:100%;height:auto;max-height:57dvh;object-fit:contain}.poster-status{font-size:12px;line-height:1.5;text-align:center;color:var(--ui-muted);min-height:18px;margin:9px 0}
.poster-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.poster-actions button{display:flex;justify-content:center;align-items:center;gap:8px;min-width:0;min-height:46px;padding:10px 8px;border:1px solid var(--ui-line-strong);border-radius:10px;background:var(--ui-selected);color:var(--ui-ice);font:600 13px/1.3 Arial,sans-serif;cursor:pointer;overflow-wrap:anywhere}.poster-actions button:first-child{background:linear-gradient(120deg,#7335ce,#8e56eb);color:white}.poster-actions svg{width:19px;height:19px;flex-shrink:0}.poster-actions button:disabled{opacity:.45;cursor:wait}
@media(max-width:540px){.home-hero .home-actions{gap:10px}.home-hero .home-actions>.home-primary,.home-hero .home-actions>.home-secondary{padding:12px 9px;font-size:12px;gap:7px;min-height:54px}.poster-button{width:40px;height:40px;min-width:40px;padding:11px}.poster-host>.poster-button{top:6px;right:6px}.highlight-card.poster-host h3{padding:43px 10px 8px}.highlight-card.poster-host>.highlight-entry>.highlight-action{top:6px;right:6px;width:40px;height:40px}.highlight-card.poster-host>.poster-button{inset-inline-end:46px;right:46px}.poster-dialog{padding:14px;width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:16px}.poster-dialog-header h2{font-size:16px}.poster-preview img{max-height:55dvh}.poster-actions button{font-size:12px}.poster-heading{gap:8px!important}}
@media(max-width:360px){.home-hero .home-actions{grid-template-columns:1fr}.home-hero .home-actions>.home-primary,.home-hero .home-actions>.home-secondary{font-size:13px}}
@media(prefers-reduced-motion:reduce){.arena-card,.poster-button{transition:none}.arena-spark,.arena-spotlight,.arena-sheen{display:none!important}.arena-hit{animation:none}.home-feature.arena-card:hover{transform:none}}
.highlight-card.poster-host>.poster-button{inset-inline-end:40px;right:40px;top:8px;width:32px;min-width:32px;height:36px;padding:7px}
.highlight-card.poster-host>.highlight-entry>.highlight-action{right:8px;top:8px;width:32px;height:36px}
dialog .close,.poster-dialog-close,.connect-heading [data-connect-close]{border:0!important;background:transparent!important;box-shadow:none!important;color:var(--ui-muted)}
dialog .close:hover,.poster-dialog-close:hover,.connect-heading [data-connect-close]:hover{color:var(--ui-ice);filter:drop-shadow(0 0 6px rgb(174 134 255 / .4))}
.toolbar.is-compact{border-color:transparent!important;background:color-mix(in srgb,var(--ui-surface) 93%,transparent);box-shadow:0 6px 18px rgb(0 0 0 / .07)}
.toolbar.is-compact #week,.toolbar.is-compact #team{border-color:transparent!important;background:transparent;box-shadow:none}
/* Native option menus need an opaque theme color even when the compact control is transparent. */
html[data-theme=dark] .toolbar select{color-scheme:dark;color:var(--ui-ink)}
html[data-theme=light] .toolbar select{color-scheme:light;color:var(--ui-ink)}
.toolbar select option,.toolbar select optgroup{background-color:var(--ui-surface);color:var(--ui-ink)}
.toolbar select option:checked{background-color:var(--ui-selected);color:var(--ui-ink)}
.home-hero .home-actions-three{grid-template-columns:repeat(3,minmax(0,1fr));max-width:630px;grid-auto-rows:1fr}
@media(max-width:540px){.home-hero .home-actions-three{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.home-actions-three>.home-primary{grid-column:1/-1}}
