/* One persistent Demo control, separate from the participant's actual permissions. */
body.desktop-demo.experience-layout { --experience-reserve:184px; }
body.desktop-demo.experience-layout #app > .container { width:calc(100% - var(--experience-reserve)); max-width:1400px; margin-left:max(0px,calc((100% - var(--experience-reserve) - 1400px)/2)); margin-right:var(--experience-reserve); padding-inline:40px; }
body.desktop-demo.experience-layout:has(#main[data-page=home]) #app > .container { max-width:none; margin-left:0; padding:0; }
body.desktop-demo.experience-layout .campaign-home :is(.campaign-rewards,.campaign-entry,.campaign-calendar),
body.desktop-demo.experience-layout .championship-map { min-width:0; width:calc(100% - 80px); max-width:1400px; }
body.desktop-demo.experience-layout .kv-layout { padding-inline:40px; }
body.desktop-demo.experience-layout .kv-statusbar { padding-inline:40px; }
body.desktop-demo.experience-layout .hero-caption { right:40px; }
body.desktop-demo.experience-layout .schedule-hub { grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:28px; }
body.desktop-demo .experience-rail { position:fixed; z-index:25; right:20px; top:190px; width:144px; max-height:calc(100vh - 214px); overflow-y:auto; padding:18px 12px 14px; border:1px solid #344650; background:#111d24; box-shadow:0 10px 24px #050a0e30; scrollbar-width:thin; }
body.desktop-demo .experience-rail-heading > span { display:block; color:#8ea4b1; font:9px/1.5 Consolas,monospace; letter-spacing:.06em; }
body.desktop-demo .experience-rail-heading > strong { display:block; margin-top:4px; font-size:13px; }
body.desktop-demo .experience-view-switch { display:grid; gap:5px; margin-top:12px; }
body.desktop-demo .experience-view-switch button { min-height:34px; padding:6px 8px; font-size:12px; font-weight:500; }
body.desktop-demo .experience-view-switch button[aria-pressed=true] { color:#f3bd97; background:#31271f; border-color:#936848; }
body.desktop-demo .experience-rail-divider { display:flex; flex-direction:column; gap:3px; margin-top:18px; padding-top:14px; border-top:1px solid #31434e; }
body.desktop-demo .experience-rail-divider strong { font-size:12px; }
body.desktop-demo .experience-rail-divider > span { color:#99abb7; font-size:10px; }
body.desktop-demo ol.experience-stages { list-style:none; padding:0; margin:12px 0 0; }
body.desktop-demo .experience-stages li { margin:0; padding:0; position:relative; }
body.desktop-demo .experience-stages li:not(:last-child)::after { content:''; position:absolute; left:13px; top:40px; bottom:-2px; width:1px; background:#40535f; }
body.desktop-demo .experience-stages button { position:relative; display:flex; gap:9px; width:100%; padding:10px 0; min-height:64px; background:transparent; border:0; text-align:left; border-radius:0; }
body.desktop-demo .experience-stages button:hover { background:transparent; }
body.desktop-demo .experience-stage-number { display:grid; place-items:center; width:27px; height:27px; flex:0 0 27px; border:1px solid #50626c; background:#17262e; color:#a9bac4; font:10px/1 Consolas,monospace; }
body.desktop-demo .experience-stage-copy { display:block; padding-top:2px; min-width:0; }
body.desktop-demo .experience-stage-copy strong { display:block; color:#bfcbd3; font-size:12px; font-weight:500; white-space:nowrap; }
body.desktop-demo .experience-stage-copy small { display:block; margin-top:4px; color:#8ea3b0; font:9px/1.4 Consolas,monospace; white-space:nowrap; }
body.desktop-demo .experience-stage-copy em { display:block; color:#edb58b; font-size:9px; font-style:normal; margin-top:4px; }
body.desktop-demo .experience-stages button[aria-current=step] .experience-stage-number { border-color:var(--accent); background:var(--accent); color:#151d21; }
body.desktop-demo .experience-stages button[aria-current=step] strong { color:#f1be96; }
body.desktop-demo .experience-stages button:hover strong { color:#fff; }
body.desktop-demo .experience-rail-hint { margin:10px 0 0; padding-top:12px; border-top:1px solid #31434e; color:#91a6b4; font-size:10px; line-height:1.6; }

/* Calendar and stage focus remain a single surface, with the content changing over time. */
body.desktop-demo .stage-focus { min-width:0; border-left:1px solid #344751; padding-left:28px; }
body.desktop-demo .stage-focus-heading { margin-bottom:22px; }
body.desktop-demo .stage-focus-heading > span { color:#9aadb8; font:10px/1.5 Consolas,monospace; }
body.desktop-demo .stage-focus-heading h3 { margin:7px 0 0; font-size:22px; line-height:1.4; }
body.desktop-demo .focus-deadline { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:15px 0; border-block:1px solid #364852; margin-bottom:18px; }
body.desktop-demo .focus-deadline > span { color:#a8bac5; font-size:12px; }
body.desktop-demo .focus-deadline > strong { color:#f0be99; font:24px/1.2 Consolas,'PingFang SC',monospace; white-space:nowrap; }
body.desktop-demo .focus-host-portrait { display:flex; align-items:center; justify-content:center; width:62px; height:68px; flex:0 0 62px; overflow:hidden; background:var(--partner-backdrop); color:#aac0cd; }
body.desktop-demo .focus-host-portrait img { display:block; width:100%; height:100%; object-fit:cover; object-position:center 10%; }
body.desktop-demo .focus-host-portrait[data-region=R3] img { transform:scale(1.4); transform-origin:50% 12%; }
body.desktop-demo .focus-region-heading { display:flex; gap:14px; align-items:center; padding:0 0 18px; margin-bottom:16px; border-bottom:1px solid #344751; }
body.desktop-demo .focus-region-heading > div { min-width:0; }
body.desktop-demo .focus-region-heading :is(span,small) { color:#99afbd; font-size:11px; }
body.desktop-demo .focus-region-heading strong { display:block; font-size:19px; line-height:1.4; margin:3px 0; }
body.desktop-demo .focus-region-heading small { display:block; }
body.desktop-demo .focus-registration-status { margin:22px 0; }
body.desktop-demo .focus-registration-status > strong { font-size:17px; }
body.desktop-demo .focus-registration-status p { color:#aebfca; font-size:13px; line-height:1.8; margin-top:10px; }
body.desktop-demo .focus-registration-status .button { margin-top:20px; }
body.desktop-demo .focus-region-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
body.desktop-demo .focus-region-grid > button { display:flex; align-items:center; gap:10px; padding:0 10px 0 0; min-height:68px; text-align:left; overflow:hidden; }
body.desktop-demo .focus-region-grid > button[aria-pressed=true] { border-color:#bc855e; background:#25303a; }
body.desktop-demo .focus-region-grid .focus-host-portrait { width:52px; flex-basis:52px; }
body.desktop-demo .focus-region-grid strong { display:block; font-size:17px; }
body.desktop-demo .focus-region-grid small { display:block; font-size:10px; font-weight:400; color:#a6bac6; overflow-wrap:anywhere; }
body.desktop-demo .focus-quiet { color:#91a8b6; font-size:11px; line-height:1.7; margin:14px 0 18px; }
body.desktop-demo .focus-next-unavailable { display:flex; align-items:flex-start; gap:12px; margin-top:25px; padding-top:20px; border-top:1px solid #344751; }
body.desktop-demo .focus-next-unavailable strong { font-size:13px; color:#b3c4cf; }
body.desktop-demo .focus-next-unavailable p { margin:6px 0 0; color:#8fa5b3; font-size:12px; line-height:1.7; }
body.desktop-demo .focus-lock { width:14px; height:12px; border:1px solid #78909e; border-radius:2px; margin:7px 2px 0; flex:0 0 14px; position:relative; }
body.desktop-demo .focus-lock::before { content:''; position:absolute; width:8px; height:7px; border:1px solid #78909e; border-bottom:0; border-radius:5px 5px 0 0; left:2px; top:-7px; }
body.desktop-demo .focus-region-select { display:flex; align-items:center; gap:12px; margin-bottom:20px; color:#a8bdca; font-size:12px; }
body.desktop-demo .focus-region-select select { width:100%; min-width:0; min-height:38px; padding:7px 28px 7px 10px; font-size:12px; }
body.desktop-demo .focus-region-select > span { flex-shrink:0; }
body.desktop-demo .focus-other-regions { margin-top:22px; padding-top:14px; border-top:1px solid #344751; }
body.desktop-demo .focus-other-regions > summary { cursor:pointer; color:#a5bac7; font-size:12px; padding:7px 0; }
body.desktop-demo .focus-other-regions .focus-region-select { margin:14px 0 8px; }
body.desktop-demo .focus-other-regions p { color:#8ea4b2; font-size:11px; margin:0; }
body.desktop-demo .focus-content { min-width:0; }
body.desktop-demo .stage-focus .table-scroll { margin-top:18px; }
body.desktop-demo .stage-focus table { width:100%; min-width:0; }
body.desktop-demo .stage-focus table :is(th,td) { padding:11px 7px; }
body.desktop-demo .stage-focus table th { font-size:11px; }
body.desktop-demo .stage-focus table td { font-size:12px; }
body.desktop-demo .stage-focus table caption { font-size:10px; }
body.desktop-demo .stage-focus .personal-ranking-stats { margin-top:12px; }
body.desktop-demo .stage-focus .personal-ranking-stats strong { font-size:31px; }
body.desktop-demo .stage-focus .actions { flex-wrap:wrap; }
body.desktop-demo .stage-focus .button { min-height:40px; padding:9px 14px; font-size:12px; }

@media (max-width:1279px) {
 body.desktop-demo.experience-layout { --experience-reserve:128px; }
 body.desktop-demo.experience-layout #app > .container { padding-inline:28px; }
 body.desktop-demo.experience-layout:has(#main[data-page=home]) #app > .container { padding:0; }
 body.desktop-demo.experience-layout .campaign-home :is(.campaign-rewards,.campaign-entry,.campaign-calendar),
 body.desktop-demo.experience-layout .championship-map { width:calc(100% - 56px); }
 body.desktop-demo.experience-layout .kv-layout,body.desktop-demo.experience-layout .kv-statusbar { padding-inline:28px; }
 body.desktop-demo .experience-rail { width:106px; right:10px; top:170px; max-height:calc(100vh - 190px); padding:14px 8px; }
 body.desktop-demo .experience-rail-heading > span { font-size:8px; letter-spacing:0; }
 body.desktop-demo .experience-stage-number { display:none; }
 body.desktop-demo .experience-stages li:not(:last-child)::after { left:0; top:42px; bottom:0; background:#3b4f5b; }
 body.desktop-demo .experience-stages button { padding:8px 0 8px 8px; min-height:59px; border-left:2px solid #3b4f5b; }
 body.desktop-demo .experience-stages button[aria-current=step] { border-left-color:var(--accent); }
 body.desktop-demo .experience-stage-copy strong { font-size:11px; }
 body.desktop-demo .experience-stage-copy small { font-size:8px; }
 body.desktop-demo .experience-view-switch button { padding:6px 3px; font-size:11px; }
 body.desktop-demo.experience-layout .schedule-hub { gap:18px; grid-template-columns:minmax(0,1.12fr) minmax(0,1fr); }
 body.desktop-demo .stage-focus { padding-left:18px; }
 body.desktop-demo .stage-focus-heading h3 { font-size:20px; }
 body.desktop-demo .focus-region-grid { gap:7px; }
 body.desktop-demo .focus-region-grid > button { gap:7px; padding-right:6px; }
 body.desktop-demo .focus-region-grid .focus-host-portrait { width:42px; flex-basis:42px; height:62px; }
 body.desktop-demo .stage-focus table :is(th,td) { padding:10px 5px; }
 body.desktop-demo .stage-focus table td { font-size:11px; }
 body.desktop-demo.experience-layout .header-inner { gap:22px; padding-inline:28px; }
 body.desktop-demo.experience-layout .nav { gap:18px; }
}
/* Stage-specific snapshots: one status, one next action. */
body.desktop-demo .nav-pending { color:#70818b; font-size:13px; white-space:nowrap; }
body.desktop-demo .stage-link-locked { opacity:.5; cursor:default; }
body.desktop-demo .stage-locked { max-width:820px; margin-block:32px; padding:34px; }
body.desktop-demo .stage-locked p { max-width:640px; color:#adbdc6; line-height:1.85; }
body.desktop-demo .focus-current-state { border-left:2px solid #e38b48; padding:3px 0 3px 15px; margin:20px 0; }
body.desktop-demo .focus-current-state strong { font-size:15px; line-height:1.6; }
body.desktop-demo .focus-current-state p { color:#9caeba; font-size:12px; line-height:1.75; margin:7px 0 0; }
body.desktop-demo .focus-advance { padding:16px 0; font-size:15px; font-weight:600; color:#d0baa0; }
body.desktop-demo .focus-advance span { margin-inline:10px; color:#7e929e; }
body.desktop-demo .focus-rounds { list-style:none; padding:0; margin:26px 0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
body.desktop-demo .focus-rounds li { position:relative; border-top:1px solid #445962; padding-top:16px; }
body.desktop-demo .focus-rounds li:not(:last-child)::after { content:'→'; position:absolute; top:-11px; right:0; color:#738995; background:#0b1115; }
body.desktop-demo .focus-rounds li>span { display:inline-grid; place-items:center; width:25px; height:25px; font:11px/1 Consolas,monospace; border:1px solid #506672; color:#9aafbd; margin-bottom:12px; }
body.desktop-demo .focus-rounds li.current { border-top-color:#ee904c; }
body.desktop-demo .focus-rounds li.current>span { background:#ee904c; border-color:#ee904c; color:#121e25; }
body.desktop-demo .focus-rounds strong { display:block; font-size:20px; }
body.desktop-demo .focus-rounds small { display:block; margin-top:8px; font-size:11px; color:#9eafbc; }
body.desktop-demo .focus-match { padding:20px; border:1px solid #3c525d; background:#15232c; margin-bottom:24px; }
body.desktop-demo .focus-match>small { display:block; color:#9eafbc; margin-bottom:12px; font-size:11px; }
body.desktop-demo .focus-match strong { display:block; font-size:15px; line-height:1.8; }
body.desktop-demo .focus-match strong span { color:#c5a079; font:11px/1 Consolas,monospace; margin-inline:7px; }
body.desktop-demo .focus-global-teams { padding:0; margin:22px 0; list-style:none; }
body.desktop-demo .focus-global-teams li { display:flex; align-items:center; gap:12px; padding:13px 5px; border-bottom:1px solid #30434e; }
body.desktop-demo .focus-global-teams li>span { width:23px; font:12px/1 Consolas,monospace; color:#9fadb5; }
body.desktop-demo .focus-global-teams img { object-fit:cover; object-position:center 15%; background:var(--partner-backdrop); }
body.desktop-demo .focus-global-teams li>div { flex:1; min-width:0; }
body.desktop-demo .focus-global-teams strong { display:block; font-size:13px; overflow-wrap:anywhere; }
body.desktop-demo .focus-global-teams small { display:block; margin-top:5px; color:#98adbb; font-size:10px; }
body.desktop-demo .focus-global-teams li>b { font:20px/1 Consolas,monospace; color:#dec19a; }
body.desktop-demo .focus-global-teams li>b small { display:inline; }
body.desktop-demo .focus-global-teams .mine { background:#1b303e; padding-inline:10px; }
body.desktop-demo .other-region-browser { position:relative; font-size:12px; color:#a1b5c0; }
body.desktop-demo .other-region-browser summary { padding:10px 0; cursor:pointer; }
body.desktop-demo .other-region-browser select { min-width:180px; }
body.desktop-demo .region-other-tabs { margin-block:22px; padding-bottom:12px; border-bottom:1px solid #344650; }
body.desktop-demo .region-other-tabs .region-grid { margin:12px 0; }
body.desktop-demo .personal-standings .focus-region-heading { margin-top:20px; }
body.desktop-demo .stage-focus table th { background:#24353f; color:#adbfca; border-color:#3a505d; }
body.desktop-demo .stage-focus table td { color:#d7e1e7; border-color:#314550; }
body.desktop-demo .stage-focus table tr.mine td { background:#253e4e; color:#f0c190; }
body.desktop-demo .stage-focus table tr.cutoff-rank td { border-bottom:1px dashed #b28655; }
body.desktop-demo .region-intro-list { margin-block:18px; }
body.desktop-demo .region-intro-list>div { display:flex; align-items:center; gap:14px; padding:11px 0; border-bottom:1px solid #41545f; }
body.desktop-demo .region-intro-list>div>div { flex:1; }
body.desktop-demo .region-intro-list img { object-fit:cover; object-position:50% 15%; background:var(--partner-backdrop); }
body.desktop-demo .region-intro-list strong { display:block; font-size:14px; }
body.desktop-demo .region-intro-list span { display:block; color:#a1b2bb; font-size:11px; margin-top:6px; }
body.desktop-demo .region-intro-list time { font:12px/1.5 Consolas,monospace; color:#ceb08b; }
body.desktop-demo .participation-path { grid-template-columns:repeat(4,minmax(0,1fr)); }
body.desktop-demo:has(.demo-dock[open]) .experience-rail { top:350px; max-height:calc(100vh - 375px); }
