/* cup/live-view.css */
.live-identity{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:3px 7px;border-radius:6px;color:var(--muted);background:var(--surface-2);font-size:10px;line-height:18px;letter-spacing:.02em;min-width:0}.live-identity>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.live-identity>img,.live-identity>svg{width:18px;height:18px;flex:none;object-fit:contain}.live-identity>svg{stroke:currentColor;stroke-width:1.5;fill:none}.live-identity--main{color:#8b621e;background:#bf9b5420}.live-identity--guest{color:#6073b8;background:#8093d01c}.live-captain{flex:none;border-left:1px solid currentColor;padding-left:5px;font-size:9px;font-weight:600}html[data-theme=dark] .live-identity--main{color:#dbbc7b}html[data-theme=dark] .live-identity--guest{color:#afbdef}

.live-captain svg{display:block;width:17px;height:17px;stroke:currentColor;stroke-width:1.4;fill:none}

.live-hover-preview{position:fixed;z-index:10020;width:330px;max-width:calc(100vw - 20px);overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);box-shadow:0 16px 50px #07101d40;animation:live-cover-reveal .12s ease-out}.live-hover-preview[hidden],.live-hover-preview [hidden]{display:none!important}.live-hover-art{position:relative;aspect-ratio:16/9;background:#16263b;overflow:hidden}.live-hover-art>img{width:100%;height:100%;object-fit:cover;display:block}.live-hover-placeholder{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;color:#b6c6dd;font-size:12px;background:radial-gradient(ellipse at 25% 10%,#274264,transparent 70%)}.live-hover-placeholder svg{width:44px;height:32px;stroke:currentColor;fill:none;stroke-width:1.3}.live-hover-note{position:absolute;left:10px;top:10px;padding:3px 7px;border-radius:5px;color:#e5edf7;background:#07101dbb;font-size:10px}.live-hover-caption{padding:12px 14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;align-items:center}.live-hover-caption>strong{font-size:14px;overflow-wrap:anywhere;line-height:1.4}.live-hover-caption>p{grid-column:1/-1;margin:0;font-size:12px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}.live-hover-caption>p:empty{display:none}.live-hover-preview .live-state[data-live-hover-state]{display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:120px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:10px;color:#718197}.live-hover-preview .live-state i{width:5px;height:5px;border-radius:50%;flex:none;background:currentColor}.live-hover-preview .live-state[data-live-state=live]{color:#208462}.live-hover-preview .live-state[data-live-state=loop]{color:#a27c2e}html[data-theme=dark] .live-hover-preview .live-state[data-live-state=live]{color:#5ed5a8}html[data-theme=dark] .live-hover-preview .live-state[data-live-state=loop]{color:#d5b765}@keyframes live-cover-reveal{from{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.live-hover-preview{animation:none}}

.live-view-badges,.live-strip-badges{display:flex;align-items:center;gap:5px;min-width:0;max-width:100%}
.live-position{display:inline-flex;align-items:center;gap:4px;flex:none;padding:2px 6px;border-radius:5px;background:var(--surface-2);color:var(--text);font-size:10px;line-height:18px;white-space:nowrap}
.live-position .role-icon{width:17px;height:17px;flex:none;fill:currentColor;stroke:none}
.live-view-card>.live-view-badges{position:absolute;right:8px;bottom:6px;max-width:calc(100% - 16px)}
.live-view-badges>.live-identity{padding:1px 5px;min-width:0}
.live-center[data-live-mode=preview] .live-view-badges{z-index:2}
.live-center[data-live-mode=preview] .live-view-badges>:is(.live-identity,.live-position){background:#15243acc;color:#e6edf8;border:1px solid #ffffff20}
.live-strip-badges{flex-wrap:wrap;margin:5px 0}
.live-strip-badges>:is(.live-identity,.live-position){background:#15243acc;color:#e6edf8;border:1px solid #ffffff20}
.live-strip-badges .live-identity>span{max-width:92px}
@media(max-width:600px){.live-view-card>.live-view-badges{right:6px;gap:3px;max-width:calc(100% - 12px)}.live-view-badges>.live-identity{font-size:9px;padding-inline:3px;gap:3px}.live-view-badges>.live-identity>img,.live-view-badges>.live-identity>svg{width:15px;height:15px}.live-position{padding:1px 4px;font-size:9px;gap:3px}.live-position .role-icon{width:15px;height:15px}.live-view-badges .live-captain{padding-left:3px}.live-view-badges .live-captain svg{width:14px;height:14px}}


/* cup/palette-themes.css */
/* Palette and brightness are independent axes. Blue intentionally keeps the
 * existing site styles. Only the new palette selector has shared geometry. */
:root[data-palette=crimson][data-theme=light],:root[data-palette=crimson][data-theme=auto]{color-scheme:light;--bg:#f0e8db;--surface:#fcf8ef;--surface-2:#f0e4d1;--surface-3:#e7d7bc;--text:#35291f;--muted:#5c493a;--line:#b9a17f;--accent:#8b2837;--header:#fff9ee;--shadow:0 12px 36px #54272712;--palette-gold:#79500f;--palette-gold-edge:#a77a2c;--palette-soft:#efd8d5;--palette-reading:#fff9efed;--palette-panel-glow:#af781817;--palette-cta:#8f2738;--palette-cta-hover:#742030;--palette-cta-text:#fff7f0;--palette-placeholder:#78605b;--palette-media:#2b2026;--palette-media-text:#eadbd7;--palette-backdrop:#35202773;--palette-scene:url("https://cos-xinlvjiang.zepeng.top/images/sha256/e18869778472c04463d3725ff9fe81c80406ae21417f0d3425d8b38a7fa01f0a.webp");--palette-scene-strategy:url("https://cos-xinlvjiang.zepeng.top/images/sha256/0d7d247d5642f8183a5f6ffbe5d780b8649c4690cff232c28ba59fbe18a1d3bb.webp");--palette-scene-armory:url("https://cos-xinlvjiang.zepeng.top/images/sha256/e9d743b406d1074a640274a28754636a9fed529614ed56ec8836b318159571e9.webp");--palette-scene-assembly:url("https://cos-xinlvjiang.zepeng.top/images/sha256/8d86f67ffa7a2788019ed66bcf944433cb4734f0b1cb0f7eebdc4cc6fec79b41.webp");--palette-scene-veil:linear-gradient(180deg,#fff8ee12 0%,#f7efe624 40%,#f3ece78c 78%,var(--bg) 100%);--surface-wash:#b9763208;--edge-light:#fffaf1bb;--elevation-1:0 2px 5px #5427270b,0 12px 32px #5427270b;--elevation-2:0 5px 12px #54272715,0 22px 48px #5427271c;--elevation-3:0 12px 24px #5427271e,0 32px 88px #54272729;--hex-metal:#79500f;--hex-energy:#9e5360;--hex-edge:#a77a2c;--hex-rule:#b3925a;--hex-etch:#a5525005;--hex-highlight:#fff8e8bb;--hex-shadow:#54272712;--hex-dialog-shadow:#54272733;--hex-wash:#ad791412;}
:root[data-palette=crimson][data-theme=dark]{color-scheme:dark;--bg:#111012;--surface:#201a1e;--surface-2:#2a2025;--surface-3:#372931;--text:#f1e8e7;--muted:#cfbcc0;--line:#584047;--accent:#e1be80;--header:#1a1318;--shadow:0 14px 40px #00000040;--palette-gold:#d2a24a;--palette-gold-edge:#a87b36;--palette-soft:#4a2933;--palette-reading:#201a1ee8;--palette-panel-glow:#dba44212;--palette-cta:#9c3544;--palette-cta-hover:#b34855;--palette-cta-text:#fff5ef;--palette-placeholder:#c2aeb2;--palette-media:#21171f;--palette-media-text:#e7d7da;--palette-backdrop:#10070ed1;--palette-scene:url("https://cos-xinlvjiang.zepeng.top/images/sha256/732a455021e41b7f6ae53c4b15d265c52e6f9d86887186d2ac9e4cc4a900ba9c.webp");--palette-scene-strategy:url("https://cos-xinlvjiang.zepeng.top/images/sha256/e1ba525dced9faccb8e6846a2811ba30d63748f4537b2ae13fe8bb6b2f761cfc.webp");--palette-scene-armory:url("https://cos-xinlvjiang.zepeng.top/images/sha256/99c026130283f669b6dadfcf65b238dafc94c1580be770a973f2a3dedeb4887c.webp");--palette-scene-assembly:url("https://cos-xinlvjiang.zepeng.top/images/sha256/484d7ec41eb9b2f9f5f0ed4294433282c613b37523866a55aa081bf28d16abd9.webp");--palette-scene-veil:linear-gradient(180deg,#120d1118 0%,#110e122e 42%,#111012a3 80%,var(--bg) 100%);--surface-wash:#e0b27408;--edge-light:#f2d3aa14;--elevation-1:0 2px 5px #00000020,0 12px 32px #00000025;--elevation-2:0 5px 12px #00000035,0 22px 48px #0000003d;--elevation-3:0 12px 24px #0000004a,0 32px 88px #00000080;--hex-metal:#d2a24a;--hex-energy:#c78682;--hex-edge:#a87b36;--hex-rule:#856638;--hex-etch:#c7868205;--hex-highlight:#f2d3aa10;--hex-shadow:#09030644;--hex-dialog-shadow:#09030688;--hex-wash:#dba44210;}

/* Shared reading surfaces. Warm, slightly translucent panels leave the scene
 * visible around the content without putting artwork under small data text. */
:root[data-palette=crimson] body{--scenery-image:var(--palette-scene);background-color:var(--bg);background-image:radial-gradient(ellipse 80% 450px at 50% 0,color-mix(in srgb,var(--palette-gold) 5%,transparent),transparent);color:var(--text)}
:root[data-palette=crimson] .site-scenery{height:1150px;max-height:100%;background-image:var(--palette-scene-veil),var(--scenery-image);background-position:center top,center top;background-size:100% 100%,cover;background-repeat:no-repeat;opacity:1}
:root[data-palette=crimson] .management-page .site-scenery{opacity:.72}
:root[data-palette=crimson][data-theme=light] .management-page .site-scenery{opacity:.45}
:root[data-palette=crimson] body:not(:has(.site-scenery)){background-image:var(--palette-scene-veil),var(--scenery-image);background-size:100% 1150px,auto 1150px;background-position:center top;background-repeat:no-repeat}
:root[data-palette=crimson] .site-header{background:color-mix(in srgb,var(--header) 94%,transparent);border-color:var(--line);box-shadow:0 1px 0 color-mix(in srgb,var(--palette-gold) 15%,transparent),0 5px 20px #32162308}
:root[data-palette=crimson] .site-header::after{background:linear-gradient(90deg,transparent,var(--palette-gold),transparent);opacity:.65}
:root[data-palette=crimson] .site-header .brand svg{color:var(--palette-gold)}
:root[data-palette=crimson] .site-header .brand,:root[data-palette=crimson] .site-header .main-nav>a[aria-current=page]{color:var(--text)}
:root[data-palette=crimson] .site-header .main-nav>a[aria-current=page]{background:linear-gradient(0deg,color-mix(in srgb,var(--accent) 7%,transparent),transparent 80%)}
:root[data-palette=crimson] .site-header .main-nav>a[aria-current=page]::after{background:var(--palette-gold)}
:root[data-palette=crimson] :is(.site-header .account-panel,.site-header .season-switcher ul,.player-navigation-menu,.palette-menu){background:var(--surface);border-color:var(--line);border-top-color:var(--palette-gold-edge);box-shadow:var(--elevation-3)}
:root[data-palette=crimson] .account-avatar{background:var(--palette-soft);border-color:var(--palette-gold-edge);color:var(--accent);box-shadow:none}
:root[data-palette=crimson] .site-header .season-switcher li a[aria-current=true]{background:var(--surface-2);color:var(--accent)}
:root[data-palette=crimson] :is(.site-main .panel:not(.schedule-panel),.embed-section,.embed-table-scroll,.module,.inline-group){background-color:var(--palette-reading);background-image:linear-gradient(140deg,var(--palette-panel-glow),transparent 48%);border-color:var(--line)}
:root[data-palette=crimson] :is(.catalog-filter,.catalog-controls,.team-selector-rail,.team-quick-directory,.schedule-panel,.grading-preview,.management-workspace .form-guide,.workspace-navigation,.workspace-task-card,.workspace-summary,.account-sidebar-block,.account-hero,.account-overview,.account-dashboard,.history-panel){background-color:var(--palette-reading);border-color:var(--line)}
:root[data-palette=crimson] :is(.site-main .panel,.catalog-controls,.team-selector-rail,.workspace-navigation){box-shadow:var(--elevation-1),inset 0 1px 0 var(--edge-light)}
:root[data-palette=crimson] :is(.management-workspace .site-form,.account-settings-shell .account-settings-content){background-color:var(--palette-reading);border-color:var(--line)}
:root[data-palette=crimson] :is(.workspace-task-icon,.workspace-navigation>a[aria-current=page],.rm-workflows>a[aria-current=page]){background:var(--palette-soft);color:var(--accent)}
:root[data-palette=crimson] :is(.site-main .login-heading,.events-page .event-tile-art){background-image:radial-gradient(ellipse at 0 0,color-mix(in srgb,var(--palette-gold) 12%,transparent),transparent 75%),linear-gradient(135deg,#402a31,#21171e);background-color:var(--palette-media);color:#f0e3da}
:root[data-palette=crimson] .site-main .login-heading>svg{color:#c7aa7b}
:root[data-palette=crimson] .site-main .login-heading p,:root[data-palette=crimson] .events-page .event-tile-kicker{color:#dbc9c2}

/* Replace obsolete blue chrome; the photo, tier, rank and match-side layers
 * keep their authored colours and independent semantic variables. */
:root[data-palette=crimson] .home-page .home-overview{background-image:linear-gradient(100deg,#28171edb,#34212b8a 68%,#35202b66),var(--scenery-image);background-size:cover;background-position:center,center 38%;border-color:var(--palette-gold-edge)}
:root[data-palette=crimson] .home-page .home-overview :is(h1,dd){color:#f6ede6}
:root[data-palette=crimson] .home-page :is(.home-overview-meta,.home-overview-record dt,.home-overview-record small){color:#e2cfc5}
:root[data-palette=crimson] .home-page :is(.home-team-grid>a,.event-shortcuts>a,.home-stage-path>a,.champion-honour){background:linear-gradient(140deg,var(--palette-panel-glow),transparent 65%),var(--surface);border-color:var(--line)}
:root[data-palette=crimson] .home-page :is(.home-stage-entry,.live-stage-lineup){background-color:var(--palette-media);border-color:var(--palette-gold-edge)}
:root[data-palette=crimson] .home-page .home-stage-art{background-image:linear-gradient(90deg,#24151c99,#24151c22),var(--scenery-image)}
:root[data-palette=crimson] .home-page .home-stage-entry::after{background:linear-gradient(90deg,#20131bf5 0%,#20131bc9 30%,#20131b18 80%),linear-gradient(0deg,#20131b66,transparent)}
:root[data-palette=crimson] .teams-page .team-identity{background-image:linear-gradient(100deg,var(--surface),color-mix(in srgb,var(--surface) 88%,transparent) 62%,color-mix(in srgb,var(--surface) 60%,transparent)),var(--scenery-image);border-color:var(--palette-gold-edge)}
:root[data-palette=crimson] :is(.team-mark:has(img),.team-mark img){background:transparent}
:root[data-palette=crimson] :is(.battle-player-info img.role-icon,.profile-role img.role-icon){background:var(--surface-2)}
:root[data-palette=crimson][data-theme] :is(.ranking-page,.home-ranking-panel){--ranking-ground:var(--surface-2);--ranking-edge:var(--line);--ranking-emphasis:var(--accent)}
:root[data-palette=crimson][data-theme] :is(.ranking-page[data-board=acclaim],.home-ranking-panel[data-board=acclaim]){--ranking-ground:color-mix(in srgb,var(--palette-gold) 8%,var(--surface));--ranking-edge:var(--palette-gold-edge);--ranking-emphasis:var(--palette-gold)}
:root[data-palette=crimson] .home-ranking-panel .ranking-entry-metrics{background:var(--surface);border-color:var(--line)}
:root[data-palette=crimson] .player-dossier .dossier-abilities{background:radial-gradient(ellipse at 15% 35%,color-mix(in srgb,var(--accent) 6%,transparent),transparent 60%),radial-gradient(ellipse at 88% 76%,color-mix(in srgb,var(--palette-gold) 8%,transparent),transparent 65%),var(--palette-reading);border-color:var(--line)}
:root[data-palette=crimson][data-theme] .player-dossier .dossier-performance>.profile-event-summary{background:linear-gradient(140deg,var(--palette-panel-glow),transparent 62%),var(--palette-reading);border-color:var(--line);box-shadow:var(--elevation-1)}
:root[data-palette=crimson] .player-dossier .dossier-performance>.profile-rating-entry{background:linear-gradient(140deg,color-mix(in srgb,var(--palette-gold) 9%,transparent),transparent 66%),var(--surface);border-color:var(--palette-gold-edge);box-shadow:var(--elevation-1)}
:root[data-palette=crimson] :is(.profile-ability-highlight,.profile-radar-legend,.profile-live-unset){background:var(--surface-2);border-color:var(--line)}
:root[data-palette=crimson] .account-level{background:var(--palette-soft);color:var(--accent)!important}
:root[data-palette=crimson] :is(.account-history-record,.history-record,.profile-event-record){background-color:var(--surface-2)}
:root[data-palette=crimson] .match-scoreboard{background:linear-gradient(110deg,var(--surface-2),var(--surface) 58%);border-color:var(--line)}
:root[data-palette=crimson] :is(.match-dialog-toolbar,.profile-preview-toolbar,.report-modal-heading,.account-settings-dialog>header){background:var(--surface);border-color:var(--line)}
:root[data-palette=crimson] :is(.information-popover,.information-dialog,.audience-rating-dialog,.profile-preview-dialog,.live-preview-dialog,.account-settings-dialog,.report-workspace-dialog,.re-picker,.match-dialog,.match-source-login-dialog){background-color:var(--surface);color:var(--text);border-color:var(--line);box-shadow:var(--elevation-3)}
:root[data-palette=crimson] :is(.information-dialog,.audience-rating-dialog,.profile-preview-dialog,.live-preview-dialog,.account-settings-dialog,.report-workspace-dialog,.re-picker,.match-dialog,.match-source-login-dialog)::backdrop{background:var(--palette-backdrop);backdrop-filter:blur(7px)}
:root[data-palette=crimson] :is(.live-preview-art,.live-hover-art){background:var(--palette-media)}
:root[data-palette=crimson] :is(.live-preview-no-cover,.live-hover-placeholder){background:radial-gradient(ellipse at 25% 10%,#5b3648,transparent 70%),var(--palette-media);color:var(--palette-media-text)}
:root[data-palette=crimson] :is(.live-preview-cover-note,.live-hover-note,.live-preview-identity){background:#21131cde}

/* Action, field and table colours also cover the account and organizer tools. */
:root[data-palette=crimson] .site-main .button.primary,:root[data-palette=crimson] .home-event-kv .event-kv-actions .button.primary{background:var(--palette-cta);border-color:var(--palette-cta);color:var(--palette-cta-text);box-shadow:inset 0 1px 0 #ffffff20,0 3px 9px #39142319}
:root[data-palette=crimson] .site-main .button.primary:hover,:root[data-palette=crimson] .home-event-kv .event-kv-actions .button.primary:hover{background:var(--palette-cta-hover);border-color:var(--palette-cta-hover);color:var(--palette-cta-text)}
:root[data-palette=crimson] .site-main .button.outline{background:var(--surface-2);border-color:var(--palette-gold-edge);color:var(--text)}
:root[data-palette=crimson] .site-main .button.outline:hover{background:var(--palette-soft);border-color:var(--accent);color:var(--accent)}
:root[data-palette=crimson] .home-page .home-overview-roster{color:#f0ded5}
:root[data-palette=crimson] :is(.site-main,.account-settings-content) :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]){background-color:var(--surface-2);border-color:var(--line);color:var(--text)}
:root[data-palette=crimson] :is(.site-main,.account-settings-content) :is(input,textarea)::placeholder{color:var(--palette-placeholder);opacity:1}
:root[data-palette=crimson] :is(a,button,input,select,textarea,summary):focus-visible{outline-color:var(--accent)}
:root[data-palette=crimson] :is(.data-table,.standings-table) th{background-color:var(--surface-2);color:var(--text)}
:root[data-palette=crimson] :is(.data-table,.standings-table) tbody tr:hover{background:color-mix(in srgb,var(--accent) 5%,var(--surface))}
:root[data-palette=crimson] .site-footer{border-color:var(--line);color:var(--muted)}

/* Text must have a predictable ground where the scenic backdrop is exposed.
 * These local reading strips leave the scene between sections and cards. */
:root[data-palette=crimson] :is(.site-main>.page-heading,.ranking-page>.page-heading,.site-main>.profile-return-row,.management-workspace .workspace-heading,.management-workspace .page-heading,.management-workspace .rm-heading){padding:13px 18px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--surface) 96%,transparent);box-shadow:0 2px 12px var(--hex-shadow);color:var(--text);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
:root[data-palette=crimson] :is(.page-heading,.workspace-heading,.rm-heading) h1{color:var(--text);text-shadow:none}
:root[data-palette=crimson] .page-heading .heading-count{color:var(--text)}
:root[data-palette=crimson] :is(.page-heading,.workspace-heading,.rm-heading) :is(p,.heading-count small){color:var(--muted)}
:root[data-palette=crimson] .catalog-heading:has(+.catalog-reading-note){margin-bottom:0;border-bottom:0;border-radius:12px 12px 0 0;padding-bottom:8px;box-shadow:none}
:root[data-palette=crimson] .catalog-heading+.catalog-reading-note{margin:0 0 18px;padding:0 18px 13px;border:1px solid var(--line);border-top:0;border-radius:0 0 12px 12px;background:color-mix(in srgb,var(--surface) 96%,transparent);color:var(--muted)}
:root[data-palette=crimson] :is(.home-stage,.home-ranking-section,.other-events,.roster-section)>.section-heading{padding:5px 12px;border:1px solid var(--line);border-radius:9px;background:color-mix(in srgb,var(--surface) 96%,transparent);color:var(--text)}
:root[data-palette=crimson] .roster-section>.section-heading{margin-bottom:0;border-bottom:0;border-radius:9px 9px 0 0;padding-bottom:3px}
:root[data-palette=crimson] .roster-section>.roster-reading-note{margin:0 0 14px;padding:0 12px 8px;border:1px solid var(--line);border-top:0;border-radius:0 0 9px 9px;background:color-mix(in srgb,var(--surface) 96%,transparent);color:var(--muted)}
:root[data-palette=crimson] .teams-page .team-identity{background-color:var(--surface);background-image:linear-gradient(105deg,color-mix(in srgb,var(--surface) 98%,transparent),color-mix(in srgb,var(--surface) 94%,transparent)),var(--scenery-image);color:var(--text)}
:root[data-palette=crimson] .teams-page .team-identity h2{color:var(--text);text-shadow:none}
:root[data-palette=crimson] .teams-page .team-identity :is(p,.small,.team-swiss-record){color:var(--muted)}
:root[data-palette=crimson] :is(.ranking-toolbar,.ranking-entry-top){border:1px solid var(--line);border-radius:9px;background:var(--palette-reading)}
:root[data-palette=crimson] .ranking-toolbar{padding:8px 12px}
:root[data-palette=crimson] .ranking-entry-top{padding:6px 8px}
:root[data-palette=crimson] .live-view-group>.live-group-heading{padding:6px 10px;border:1px solid var(--line);border-radius:9px;background:var(--palette-reading);color:var(--text)}
:root[data-palette=crimson] .management-workspace :is(.workspace-context,.workspace-subnavigation,.workspace-quick-links){padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:var(--palette-reading);color:var(--muted)}
:root[data-palette=crimson] .management-workspace :is(.workspace-context strong,.workspace-quick-links>a){color:var(--text)}
:root[data-palette=crimson] .management-workspace .workspace-quick-links>a:hover{color:var(--accent)}
:root[data-palette=crimson] :is(.site-main>.back-link,.management-workspace>.back-link,.manual-workbench>.back-link,.rm-workbench>.back-link){display:inline-flex;align-items:center;min-height:36px;padding:4px 10px;border:1px solid var(--line);border-radius:7px;background:var(--palette-reading);color:var(--accent)}
:root[data-palette=crimson] .management-workspace :is(.form-field>label,.site-form>label,.workspace-filter label){color:var(--text)}
:root[data-palette=crimson] .palette-admin #content>h1{padding:10px 14px;border:1px solid var(--line);border-radius:9px;background:var(--palette-reading);color:var(--text)}
@media(max-width:700px){:root[data-palette=crimson] :is(.site-main>.page-heading,.ranking-page>.page-heading,.site-main>.profile-return-row,.management-workspace .workspace-heading,.management-workspace .page-heading,.management-workspace .rm-heading){padding:11px 13px}:root[data-palette=crimson] .catalog-heading+.catalog-reading-note{padding-inline:13px}}

/* Navigation accents belong to the site palette. The blue side of a match,
 * ranked/grade artwork and win/loss indicators keep their separate colours. */
:root[data-palette=crimson] .teams-page .team-selector-rail nav>a.active{background:color-mix(in srgb,var(--accent) 8%,var(--surface));border-color:var(--palette-gold-edge);border-left-color:var(--accent);color:var(--text)}
:root[data-palette=crimson] .team-quick-grid .team-quick-card:is(:hover,:focus-visible){background:color-mix(in srgb,var(--accent) 5%,var(--surface));border-color:var(--palette-gold-edge)}
:root[data-palette=crimson] .account-mode-tabs>a.is-active{background:var(--palette-soft);color:var(--accent);box-shadow:inset 0 -2px 0 var(--palette-gold)}
:root[data-palette=crimson] .account-hero-switch>input:checked+label{color:var(--accent)}
:root[data-palette=crimson] .account-hero-switch>input:checked+label:after{background:var(--palette-gold)}
:root[data-palette=crimson] :is(.account-mode-tabs>a,.account-hero-switch>input+label,.players-page .catalog-controls :is(input,select),.teams-page .lineup-five,.roster-position-nav>button,.profile-preview-dialog .profile-preview-member):focus-visible{outline-color:var(--accent)}
:root[data-palette=crimson] .account-hero-switch>input:focus-visible+label{outline-color:var(--accent)}
:root[data-palette=crimson] .profile-preview-dialog .profile-preview-member:hover strong{color:var(--accent)}
:root[data-palette=crimson] :is(.ranking-tabs,.ranking-positions,.ranking-source-switch) a[aria-current]{border-color:var(--palette-gold-edge);color:var(--ranking-emphasis,var(--accent))}
:root[data-palette=crimson] :is(.embed-round-nav>a,.embed-site-link,.embed-player-link):is(:hover,:focus-visible){border-color:var(--accent);color:var(--accent)}

/* Diagram canvas and neutral record headings are chrome. The qualified and
 * eliminated buckets and their paths retain graph-win/graph-loss unchanged. */
:root[data-palette=crimson] body.schedule-page{--graph-canvas-start:color-mix(in srgb,var(--surface-2) 86%,transparent);--graph-canvas-end:color-mix(in srgb,var(--bg) 94%,transparent);--stage-top:color-mix(in srgb,var(--palette-gold) 17%,var(--surface-2));--stage-bottom:color-mix(in srgb,var(--palette-gold) 9%,var(--surface-3));--stage-edge:var(--palette-gold-edge);--stage-ink:var(--text);--stage-shadow:var(--hex-shadow);--stage-wash:color-mix(in srgb,var(--palette-gold) 6%,transparent)}
:root[data-palette=crimson] .schedule-page .schedule-panel .swiss-layout .record-group:not(.is-pending) .record-heading h3{color:var(--text)}
:root[data-palette=crimson] .schedule-page .schedule-panel .swiss-layout .record-group:not(.is-pending) .record-heading>span{color:var(--muted)}
:root[data-palette=crimson] .schedule-page .swiss-layout .round-state-published{color:var(--accent)}
:root[data-palette=crimson] .schedule-page .swiss-layout .swiss-round:has(.round-state-published) .round-heading::after{background:var(--palette-gold);box-shadow:0 0 12px color-mix(in srgb,var(--palette-gold) 20%,transparent)}
:root[data-palette=crimson] .schedule-page .swiss-layout .swiss-round:has(.round-state-published) .round-groups::before{background:linear-gradient(180deg,color-mix(in srgb,var(--palette-gold) 6%,transparent),transparent 75%)}
:root[data-palette=crimson] .schedule-page .tournament-graph .graph-match:focus-within{outline-color:var(--accent)}

/* Scene assignment is deterministic. Administrative pages retain the quieter
 * common castle; a team iframe deliberately overrides its schedule body class. */
:root[data-palette=crimson] body.schedule-page{--scenery-image:var(--palette-scene-strategy)}
:root[data-palette=crimson] body.players-page{--scenery-image:var(--palette-scene-armory)}
:root[data-palette=crimson] body.teams-page{--scenery-image:var(--palette-scene-assembly)}
:root[data-palette=crimson] body.management-page,:root[data-palette=crimson] body.palette-admin{--scenery-image:var(--palette-scene)}
:root[data-palette=crimson] body.public-embed{--scenery-image:var(--palette-scene-strategy)}
:root[data-palette=crimson] body.public-embed[data-embed-component=team]{--scenery-image:var(--palette-scene-assembly)}

/* The original KV composition remains unfiltered. Its native information bar
 * follows the chosen site palette instead of forcing a dark panel in daylight. */
:root[data-palette=crimson] .home-event-kv{border-color:var(--palette-gold-edge)}
:root[data-palette=crimson] .home-event-kv .event-kv-footer{background:linear-gradient(110deg,var(--palette-panel-glow),transparent 75%),var(--surface);border-color:var(--palette-gold-edge);color:var(--text)}
:root[data-palette=blue] .home-event-kv{border-color:var(--line)}
:root[data-palette=blue] .home-event-kv .event-kv-footer{background:linear-gradient(110deg,var(--surface-2),var(--surface));border-color:var(--line);color:var(--text)}
:root[data-palette=blue] .home-event-kv .event-kv-actions .button.primary{background:var(--accent);border-color:var(--accent);color:var(--surface)}
:root[data-palette=blue] .home-event-kv .event-kv-actions .button.primary:hover{background:color-mix(in srgb,var(--accent) 85%,#000);border-color:var(--accent);color:var(--surface)}
:root[data-palette] .home-event-kv .event-kv-copy h1,:root[data-palette] .home-event-kv .event-kv-record dd{color:var(--text)}
:root[data-palette] .home-event-kv .event-kv-meta,:root[data-palette] .home-event-kv .event-kv-record :is(dt,small){color:var(--muted)}
:root[data-palette] .home-event-kv .event-kv-roster{color:var(--accent)}
:root[data-palette] .home-event-kv .event-kv-record,:root[data-palette] .home-event-kv .event-kv-record>div+div{border-color:var(--line)}
:root[data-palette] .home-event-kv .event-kv-meta .home-event-status{background:color-mix(in srgb,var(--accent) 6%,var(--surface));border-color:color-mix(in srgb,var(--accent) 24%,var(--line));color:var(--accent)}

/* Precision overrides for legacy organizer/table/tooltip literals. Status
 * banners, ranked emblems and blue/red team report columns are excluded. */
:root[data-palette=crimson] .management-workspace{--workspace-accent:var(--accent)}
:root[data-palette=crimson][data-theme] .management-workspace :is(.workspace-filter,.mh-search,.ms-list-toolbar,.rm-filter,.workspace-metrics>div,.workspace-table-head){background:var(--surface-2);border-color:var(--line)}
:root[data-palette=crimson][data-theme] .management-workspace .workspace-entrant-row:nth-child(odd){background:color-mix(in srgb,var(--surface-2) 70%,var(--surface))}
:root[data-palette=crimson][data-theme] .management-workspace .workspace-entrant-row:is(:hover,:focus-within){background:var(--palette-soft)}
:root[data-palette=crimson] .grading-expression-dialog{background:var(--surface);color:var(--text);border-color:var(--line);box-shadow:var(--elevation-3)}
:root[data-palette=crimson] .grading-expression-dialog::backdrop{background:var(--palette-backdrop);backdrop-filter:blur(7px)}
:root[data-palette=crimson] .grading-expression-dialog .ge-footer>button.primary{background:var(--palette-cta);border-color:var(--palette-cta);color:var(--palette-cta-text)}
:root[data-palette=crimson] .grading-expression-dialog .ge-footer>button.primary:hover{background:var(--palette-cta-hover)}
:root[data-palette=crimson] .player-dossier .profile-radar-tooltip{background:color-mix(in srgb,var(--surface) 96%,transparent);color:var(--text);border-color:var(--palette-gold-edge);box-shadow:var(--elevation-2)}

/* Native Django administration is an explicit host, not a second public
 * palette. These aliases stay on its body and cannot escape to public tools. */
:root[data-palette=blue] body.palette-admin{--bg:var(--body-bg);--surface:var(--body-bg);--surface-2:var(--darkened-bg);--surface-3:var(--selected-bg);--text:var(--body-fg);--muted:var(--body-quiet-color);--line:var(--border-color);--accent:var(--link-fg);--header:var(--header-bg);--shadow:0 12px 32px #00000020;--elevation-3:0 12px 32px #00000030}
:root[data-palette=crimson] body.palette-admin{--primary:var(--palette-cta);--secondary:var(--palette-cta-hover);--body-bg:var(--bg);--body-fg:var(--text);--body-quiet-color:var(--muted);--body-loud-color:var(--text);--header-bg:var(--palette-media);--header-color:var(--palette-media-text);--header-link-color:#fff5ef;--breadcrumbs-bg:var(--surface-2);--breadcrumbs-fg:var(--muted);--breadcrumbs-link-fg:var(--accent);--link-fg:var(--accent);--link-hover-color:var(--text);--hairline-color:var(--line);--border-color:var(--line);--darkened-bg:var(--surface-2);--selected-bg:var(--palette-soft);--selected-row:var(--palette-soft);--button-bg:var(--palette-cta);--button-fg:var(--palette-cta-text);--button-hover-bg:var(--palette-cta-hover);--default-button-bg:var(--palette-cta);--default-button-hover-bg:var(--palette-cta-hover);--close-button-bg:var(--palette-cta);--close-button-hover-bg:var(--palette-cta-hover)}
:root[data-palette=crimson][data-theme=light] body.palette-admin{--palette-scene-veil:linear-gradient(180deg,#fff9f0a6 0%,#f7efe6be 50%,var(--bg) 100%)}
:root[data-palette=crimson] .palette-admin :is(#header,#nav-sidebar,.module,.inline-group,#changelist-filter){border-color:var(--line)}
:root[data-palette=crimson] .palette-admin :is(.module,.inline-group,#changelist-filter){background:var(--palette-reading)}
:root[data-palette=crimson] .palette-admin :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]){background-color:var(--surface-2);border-color:var(--line);color:var(--text)}
.palette-admin #header{gap:14px}
.palette-admin #branding{align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
.palette-admin #branding #site-name{margin:0;font-size:20px;line-height:1.25}
.palette-admin #branding #site-name a{color:var(--header-link-color)}
.palette-admin .admin-appearance-tools{display:flex;align-items:center;gap:8px;margin-left:auto}
.palette-admin .theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;margin:0 0 0 6px;padding:0;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);color:var(--text);cursor:pointer;vertical-align:middle}
.palette-admin .theme-toggle>svg{display:block;width:18px;height:18px;stroke:currentColor}
.palette-admin .theme-toggle:hover{border-color:var(--accent)}
.palette-admin :is(.theme-toggle,.palette-switcher>summary):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.palette-admin .palette-switcher{font-family:var(--font-family-primary);letter-spacing:normal;text-transform:none}
.palette-admin.login #container{overflow:visible}
.palette-admin.login #branding{width:100%;justify-content:space-between}
.palette-admin.login #branding #site-name{font-size:18px}
@media(max-width:767px){.palette-admin #header{align-items:stretch;gap:10px}.palette-admin #branding{justify-content:space-between}.palette-admin #user-tools{font-size:11px;line-height:2}.palette-admin #header>.palette-switcher{align-self:flex-start}.palette-admin.login #branding{flex-wrap:nowrap}.palette-admin.login .admin-appearance-tools{gap:4px}.palette-admin.login .palette-switcher>summary{width:44px;min-width:44px;padding:0}.palette-admin.login .palette-switcher>summary>span:not(.palette-swatch),.palette-admin.login .palette-switcher>summary>.shell-caret{display:none}.palette-admin.login .theme-toggle{margin:0}}

/* Compact palette choice. These selectors do not recolour the blue page. */
.palette-switcher{position:relative;flex:0 0 auto;min-width:0}
.palette-switcher>summary{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:7px 10px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);color:var(--muted);font-size:12px;line-height:1.2;list-style:none;cursor:pointer}
.palette-switcher>summary::-webkit-details-marker{display:none}.palette-switcher>summary::marker{content:""}.palette-switcher>summary>svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6}
.palette-switcher[open]>summary,.palette-switcher>summary:hover{border-color:var(--accent);color:var(--text)}
.palette-menu{position:absolute;z-index:160;right:0;top:calc(100% + 9px);width:min(238px,calc(100vw - 24px));padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:var(--elevation-3,var(--shadow));text-align:left}
.palette-menu-title{display:block;padding:7px 10px 5px;color:var(--text);font-size:11px;font-weight:600;line-height:1.4}.palette-menu-note{display:block;padding:7px 10px 5px;border-top:1px solid var(--line);color:var(--muted);font-size:10px;line-height:1.5}
.palette-option{display:flex;align-items:center;gap:10px;box-sizing:border-box;width:100%;min-height:44px;padding:9px 10px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--muted);font:inherit;font-size:12px;text-align:left;cursor:pointer}
.palette-option>span:not(.palette-swatch){flex:1;min-width:0}.palette-option strong{display:block;color:var(--text);font-size:12px;font-weight:600}.palette-option small{display:block;margin-top:2px;font-size:10px;line-height:1.4;color:var(--muted)}
.palette-option:hover{background:var(--surface-2);color:var(--text)}.palette-option[aria-pressed=true]{background:color-mix(in srgb,var(--accent) 7%,var(--surface));border-color:color-mix(in srgb,var(--accent) 40%,var(--line));color:var(--accent)}
.palette-swatch{display:inline-block;flex:0 0 25px;width:25px;height:25px;border:1px solid var(--line);border-radius:7px;background:linear-gradient(135deg,var(--surface) 0 49%,var(--accent) 50%);box-shadow:inset 0 0 0 2px #ffffff12}
.palette-swatch--crimson,.palette-swatch[data-palette=crimson]{background:linear-gradient(135deg,#8b2837 0 48%,#b68125 50% 64%,#f3e7cf 66%);border-color:#93631e}
.palette-swatch--blue,.palette-swatch[data-palette=blue]{background:linear-gradient(135deg,#214765 0 49%,#a1c5e5 50% 65%,#edf3f8 67%);border-color:#6687a5}
.palette-switcher>summary .palette-swatch{width:18px;height:18px;flex-basis:18px;border-radius:5px}
.palette-option>svg{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;color:var(--accent)}
.palette-option[aria-pressed=false]>svg{visibility:hidden}
@media(max-width:700px){:root[data-palette=crimson] .site-scenery{height:1000px;background-position:center top,center top;background-size:100% 100%,auto 900px}:root[data-palette=crimson] body:not(:has(.site-scenery)){background-size:100% 1000px,auto 900px}:root[data-palette=crimson] .management-page .site-scenery{opacity:.66}.palette-switcher>summary{width:44px;min-width:44px;padding:0;gap:0}.palette-switcher>summary>span:not(.palette-swatch){display:none}.palette-switcher>summary>svg{width:19px;height:19px}.palette-menu{right:-4px}.palette-option{min-height:46px}}
@media(prefers-color-scheme:dark){:root[data-palette=crimson][data-theme=auto]{color-scheme:dark;--bg:#111012;--surface:#201a1e;--surface-2:#2a2025;--surface-3:#372931;--text:#f1e8e7;--muted:#cfbcc0;--line:#584047;--accent:#e1be80;--header:#1a1318;--shadow:0 14px 40px #00000040;--palette-gold:#d2a24a;--palette-gold-edge:#a87b36;--palette-soft:#4a2933;--palette-reading:#201a1ee8;--palette-panel-glow:#dba44212;--palette-cta:#9c3544;--palette-cta-hover:#b34855;--palette-cta-text:#fff5ef;--palette-placeholder:#c2aeb2;--palette-media:#21171f;--palette-media-text:#e7d7da;--palette-backdrop:#10070ed1;--palette-scene:url("https://cos-xinlvjiang.zepeng.top/images/sha256/732a455021e41b7f6ae53c4b15d265c52e6f9d86887186d2ac9e4cc4a900ba9c.webp");--palette-scene-strategy:url("https://cos-xinlvjiang.zepeng.top/images/sha256/e1ba525dced9faccb8e6846a2811ba30d63748f4537b2ae13fe8bb6b2f761cfc.webp");--palette-scene-armory:url("https://cos-xinlvjiang.zepeng.top/images/sha256/99c026130283f669b6dadfcf65b238dafc94c1580be770a973f2a3dedeb4887c.webp");--palette-scene-assembly:url("https://cos-xinlvjiang.zepeng.top/images/sha256/484d7ec41eb9b2f9f5f0ed4294433282c613b37523866a55aa081bf28d16abd9.webp");--palette-scene-veil:linear-gradient(180deg,#120d1118 0%,#110e122e 42%,#111012a3 80%,var(--bg) 100%);--surface-wash:#e0b27408;--edge-light:#f2d3aa14;--elevation-1:0 2px 5px #00000020,0 12px 32px #00000025;--elevation-2:0 5px 12px #00000035,0 22px 48px #0000003d;--elevation-3:0 12px 24px #0000004a,0 32px 88px #00000080;--hex-metal:#d2a24a;--hex-energy:#c78682;--hex-edge:#a87b36;--hex-rule:#856638;--hex-etch:#c7868205;--hex-highlight:#f2d3aa10;--hex-shadow:#09030644;--hex-dialog-shadow:#09030688;--hex-wash:#dba44210;}}
@media(max-width:700px){.palette-switcher>summary>.shell-caret{display:none}}
/* The palette button precedes two other controls on narrow headers; anchor the
 * open menu to the viewport so its left edge cannot leave a 320px screen. */
@media(max-width:700px){.site-header .palette-switcher .palette-menu{position:fixed;top:88px;right:12px;left:auto;width:min(238px,calc(100vw - 24px))}}
@media(prefers-reduced-motion:reduce){.palette-switcher>summary,.palette-option{transition:none}}
@media(prefers-reduced-data:reduce){:root[data-palette=crimson] .site-scenery{background-size:100% 100%,auto 760px}}
@media(forced-colors:active){:root[data-palette=crimson] .site-scenery{display:none}:root[data-palette=crimson] body{background:Canvas;color:CanvasText}:root[data-palette=crimson] :is(.site-header,.site-main .panel,.home-overview,.home-stage-entry,.team-identity,.palette-menu){background:Canvas;background-image:none;box-shadow:none;border-color:CanvasText;color:CanvasText}:root[data-palette=crimson] .site-main .button.primary{background:ButtonFace;color:ButtonText;border-color:ButtonText}.palette-swatch{forced-color-adjust:none}.palette-option[aria-pressed=true]{border-color:Highlight}}
@media print{:root[data-palette=crimson] .site-scenery{display:none}:root[data-palette=crimson] body{background:#fff;color:#111}.palette-switcher{display:none}}
@media(forced-colors:active){:root[data-palette] .home-event-kv .event-kv-footer{background:Canvas;color:CanvasText;border-color:CanvasText}:root[data-palette] .home-event-kv :is(.event-kv-copy h1,.event-kv-record dd,.event-kv-record dt,.event-kv-record small,.event-kv-meta,.event-kv-roster){color:CanvasText}:root[data-palette] .home-event-kv .event-kv-actions .button.primary{background:ButtonFace;color:ButtonText;border-color:ButtonText}}


/* cup/entrant-identity.css */
/* Entrant identity and current-event selection are separate from ability grades. */
article.player-card[data-entrant-card] .card-streamer-badge{position:absolute;z-index:8;right:clamp(11px,5cqw,18px);bottom:clamp(9px,4cqw,14px);display:grid;place-items:center;width:clamp(25px,11cqw,36px);aspect-ratio:1;border:1px solid #e4d49aaa;border-radius:10px;background:linear-gradient(145deg,#354044,#111c22);color:#f1dda5;box-shadow:inset 0 1px 0 #fff2,0 3px 9px #0005;isolation:isolate}
.card-streamer-badge>svg{display:block;width:68%;height:68%;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}.card-streamer-badge::before{content:"";position:absolute;inset:3px;border:1px solid #f1dda525;border-radius:6px;pointer-events:none}.card-streamer-badge::after{content:attr(data-badge-label);position:absolute;right:0;bottom:calc(100% + 6px);width:max-content;padding:4px 8px;border:1px solid #e4d49a55;border-radius:5px;background:#17232bf5;color:#f1dda5;font:500 11px/1.4 "Microsoft YaHei",sans-serif;opacity:0;transform:translateY(2px);transition:opacity .12s,transform .12s;pointer-events:none}.card-streamer-badge:hover::after,.player-card-link:focus-visible .card-streamer-badge::after{opacity:1;transform:none}
article.player-card[data-entrant-card] .card-selection-badge{--status-metal:#eed8a1;--status-rgb:238 216 161;position:absolute;z-index:7;left:clamp(9px,4.5cqw,16px);top:47%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;gap:clamp(4px,2cqw,7px);width:clamp(60px,29cqw,88px);min-height:clamp(30px,14cqw,40px);padding:5px 7px;border:1px solid rgb(var(--status-rgb)/.58);border-radius:7px;background:linear-gradient(135deg,rgb(var(--status-rgb)/.17),#12171de8 65%);color:var(--status-metal);box-shadow:inset 0 1px 0 #fff2,inset 0 -1px 0 #0005,0 3px 12px #0006;backdrop-filter:blur(12px) saturate(1.1);-webkit-backdrop-filter:blur(12px) saturate(1.1);isolation:isolate;white-space:nowrap}
.card-selection-badge::before{content:"";position:absolute;inset:3px;border:1px solid rgb(var(--status-rgb)/.14);border-radius:4px;pointer-events:none}.card-selection-badge>svg{flex:none;width:clamp(16px,7.5cqw,22px);height:clamp(16px,7.5cqw,22px);fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 4px rgb(var(--status-rgb)/.2))}.card-selection-badge>span{font-size:clamp(10px,4.2cqw,13px);font-weight:650;line-height:1.4;letter-spacing:.1em}.card-selection-badge[data-selection=pending]{--status-metal:#d5e2ed;--status-rgb:175 198 218}.card-selection-badge[data-selection=eliminated]{--status-metal:#f1b6bc;--status-rgb:224 133 146}
.entrant-identity-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.entrant-identity-control{min-width:0;margin:0;padding:12px;border:1px solid var(--line);border-radius:10px;background:color-mix(in srgb,var(--surface-2) 75%,transparent)}.entrant-identity-control>legend{padding:0 5px;font-size:12px;font-weight:600;color:var(--text)}.entrant-identity-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.entrant-identity-option{position:relative;min-width:0;cursor:pointer}.entrant-identity-option>input{position:absolute;width:1px;height:1px;opacity:0}.entrant-identity-option>span{display:flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:7px 9px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--muted);font-size:12px;line-height:1.4}.entrant-identity-option svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}.entrant-identity-option>input:checked+span{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 9%,var(--surface));color:var(--text);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 18%,transparent)}.entrant-identity-option>input:focus-visible+span{outline:2px solid var(--accent);outline-offset:3px}.entrant-identity-option>input:disabled+span{opacity:.65;cursor:default}.entrant-identity-control>.field-help{margin:8px 0 0;font-size:11px;line-height:1.5;color:var(--muted)}.entrant-identity-control .field-errors{margin-top:8px;font-size:11px;color:var(--loss)}
.entrant-identity-labels{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:5px}.entrant-identity-labels>span{display:inline-flex;align-items:center;gap:4px;padding:2px 6px;border:1px solid var(--line);border-radius:5px;background:var(--surface-2);font-size:10px;line-height:1.5;color:var(--muted)}.entrant-identity-labels svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.entrant-identity-labels>[data-selection=selected]{color:var(--win)}
.entrant-identity-control .entrant-identity-options>.entrant-identity-option{display:block;margin:0;font-weight:400}.entrant-identity-control .entrant-identity-options .entrant-identity-option>input[type=radio]{position:absolute;width:1px;height:1px;min-height:0;margin:0;padding:0;border:0;opacity:0;overflow:hidden;clip-path:inset(50%)}
.entrant-identity-control[data-entrant-identity-control=selection_status] .entrant-identity-options{grid-template-columns:repeat(3,minmax(0,1fr))}.entrant-identity-control[data-entrant-identity-control=selection_status] .entrant-identity-option>span{flex-direction:column;gap:5px;padding:8px 4px}.entrant-identity-labels>[data-selection=eliminated]{color:var(--loss)}
@media(max-width:600px){.entrant-identity-fields{grid-template-columns:1fr;gap:10px}.entrant-identity-control{padding:10px}.entrant-identity-option>span{min-height:44px}}
@media(prefers-reduced-motion:reduce){.card-streamer-badge::after{transition:none}}
@media(forced-colors:active){article.player-card[data-entrant-card] :is(.card-streamer-badge,.card-selection-badge),.entrant-identity-option>span{background:Canvas;color:CanvasText;border:1px solid CanvasText;box-shadow:none}.card-selection-badge::before{background:Canvas}.entrant-identity-option>input:checked+span{outline:2px solid Highlight}}

/* The catalog selection filter opts into one compact corner icon. */
article.player-card[data-entrant-card]>.card-selection-badge{left:12px;bottom:10px;top:auto;transform:none;display:grid;place-items:center;gap:0;width:28px;height:28px;min-height:0;padding:4px;border-radius:50%;z-index:12;box-sizing:border-box}
article.player-card[data-entrant-card]>.card-selection-badge::before{border-radius:50%}
article.player-card[data-entrant-card]>.card-selection-badge>svg{width:18px;height:18px}
article.player-card[data-entrant-card]>.card-selection-edit-trigger::after{content:"";position:absolute;inset:-8px;border-radius:50%}
article.player-card[data-entrant-card]:has(>.card-selection-badge) .card-custom-footer{padding-inline:30px}

