/* Catalogue/header only; game, Creator and statistics surfaces retain their themes. */
body:has(:is(#start,.member-catalogue):not(.hide)){background:#fff;color:#142044;}
body:has(#homeDetailsDialog[open]){overflow:hidden;}
.layout{max-width:1500px;}
.home-header{height:auto;min-height:76px;position:relative;gap:16px;}
.home-brand{color:#10214b;font-size:32px;font-weight:800;letter-spacing:-1px;white-space:nowrap;}
.home-nav{gap:20px;align-items:center;}
.home-nav button,.home-nav a{font:inherit;}
.home-nav button{background:transparent;border:0;color:#293859;padding:9px 4px;}
#homeMake{color:#0671ff;font-weight:700;}
.home-nav section{max-width:330px;font-size:12px;}
.home-nav [data-member-creator]{display:none;}
#memberStatus{font-size:11px;margin:2px 0;max-width:280px;}
#homeMenuToggle{display:none;}
:is(#start,.member-catalogue) .home-hero{display:none;}
#homeSearch{display:block;width:min(580px,100%);height:40px;margin:0 0 20px;background:#f7f9fc;border:1px solid #dfe5ef;border-radius:22px;color:#142044;padding:8px 16px;font:inherit;}
:is(#start,.member-catalogue) #homeCatalogue{display:flex;flex-direction:row;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 14px;}
#homeCatalogue .home-periods{margin:0;}
#homeCatalogue .home-periods:last-child{margin-left:auto;}
#homeCatalogue button{border:1px solid #e0e6ef;border-radius:7px;background:#f6f8fb;color:#26365b;padding:9px 16px;font:inherit;font-size:13px;}
#homeCatalogue button[aria-pressed=true]{background:#0878ff;color:white;border-color:#0878ff;}
#homeCatalogue [hidden]{display:none;}
:is(#start,.member-catalogue) #grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding-bottom:12px;}
:is(#start,.member-catalogue) .home-card{aspect-ratio:auto;background:white;color:#142044;border:1px solid #e1e7ef;border-radius:9px;box-shadow:0 1px 3px #14204406;}
:is(#start,.member-catalogue) .home-card .home-photo{aspect-ratio:2.35;height:auto;min-height:0;position:relative;}
:is(#start,.member-catalogue) .home-photo-half{height:100%;}
:is(#start,.member-catalogue) .home-photo img{object-fit:cover;}
:is(#start,.member-catalogue) .home-card .home-card-body{position:static;inset:auto;padding:10px;background:none;transform:none;pointer-events:auto;}
:is(#start,.member-catalogue) .home-card .home-card-body .home-title-row{display:block;padding:0;width:100%;}
:is(#start,.member-catalogue) .home-title{font-size:16px;line-height:1.35;min-height:0;color:#101d40;letter-spacing:0;}
:is(#start,.member-catalogue) .home-card .home-title{width:100%;max-width:none;}
:is(#start,.member-catalogue) .home-short-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;margin:4px 0 0;color:#60708a;font-size:13px;line-height:1.4;}
:is(#start,.member-catalogue) .home-card-upper{display:block;width:100%;border:0;padding:0;background:transparent;text-align:left;color:inherit;font:inherit;}
:is(#start,.member-catalogue) .home-card-upper .home-card-body{display:block;padding-bottom:0;}
:is(#start,.member-catalogue) .home-card-upper:focus-visible{outline:3px solid #0878ff;outline-offset:-3px;}
:is(#start,.member-catalogue) .home-card .home-actions-body{padding-top:0;}
:is(#start,.member-catalogue) .home-badge,:is(#start,.member-catalogue) .home-card-bottom,:is(#start,.member-catalogue) .home-giphy-source{display:none;}
:is(#start,.member-catalogue) .home-card .stats-card-actions{position:static;inset:auto;width:auto;max-width:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:10px 0 0;padding:0;border:0;align-items:stretch;}
:is(#start,.member-catalogue) .home-card .stats-card-actions button{position:static;display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:36px;width:auto;max-width:none;padding:6px 3px;border:0;border-radius:6px;background:#f4f6fa;color:#15244b;font:inherit;font-size:10px;font-weight:700;text-decoration:none;line-height:1.2;}
:is(#start,.member-catalogue) .home-card .stats-card-actions button>*{transform:none;}
:is(#start,.member-catalogue) .home-card .stats-card-actions button span{font-size:inherit;}
:is(#start,.member-catalogue) .home-card .stats-card-actions .home-start{background:#0878ff;color:#fff;}
:is(#start,.member-catalogue) .stats-card-actions svg{width:16px;height:16px;flex-shrink:0;}
:is(#start,.member-catalogue)>.home-more{display:block;width:min(360px,100%);margin:12px auto 24px;border:1px solid #a8ceff;border-radius:9px;background:#eff6ff;color:#0671ff;font:inherit;font-weight:700;padding:12px;}
:is(#start,.member-catalogue)>.home-more[hidden]{display:none;}
#homeDetailsDialog{width:min(800px,calc(100vw - 32px));max-width:800px;max-height:85dvh;overflow:auto;background:white;color:#142044;padding:24px;}
#homeDetailsBody{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin-bottom:20px;}
@media(max-width:650px){
 .layout{padding:0 12px!important;}.home-header{min-height:66px;margin:0;}.home-brand{font-size:27px;}
 #homeMenuToggle{display:block;border:0;background:transparent;color:#142044;font-size:25px;}
 .home-header .home-nav{display:none;position:absolute;top:60px;right:0;z-index:20;background:white;border:1px solid #dfe5ef;box-shadow:0 6px 20px #16294a16;border-radius:10px;padding:12px;max-width:calc(100vw - 24px);}
 .home-header .home-nav[data-open]{display:flex;flex-direction:column;align-items:stretch;gap:6px;}
 #homeSearch{height:38px;margin-bottom:14px;}
 #homeCatalogue{gap:8px;}#homeCatalogue button{padding:8px 10px;font-size:12px;}
 #homeCatalogue .home-periods:last-child{margin-left:0;width:100%;display:flex;}#homeCatalogue .home-periods:last-child[hidden]{display:none;}#homeCatalogue .home-periods:last-child button{flex:1;}
 :is(#start,.member-catalogue) #grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
 :is(#start,.member-catalogue) .home-card .home-photo{aspect-ratio:1.55;}:is(#start,.member-catalogue) .home-card .home-card-body{padding:7px;}:is(#start,.member-catalogue) .home-title{font-size:12px;min-height:0;}
 :is(#start,.member-catalogue) .home-card .stats-card-actions{gap:3px;}:is(#start,.member-catalogue) .home-card .stats-card-actions button{min-height:36px;padding:6px 2px;}:is(#start,.member-catalogue) .home-card .stats-card-actions button span{display:none;}
 #homeDetailsDialog{width:calc(100vw - 20px);max-height:90dvh;padding:18px;}
}
:is(#start,.member-catalogue) .home-card .home-card-upper .home-card-body{padding-bottom:0;}
:is(#start,.member-catalogue) .home-card .home-actions-body.home-card-body{padding-top:0;}

/* Approved member UI v2.1: shared toolbar, dense grids and persistent member header. */
.layout{max-width:none;padding-left:22px!important;padding-right:22px!important}.home-header{border-bottom:1px solid #e3eaf4;margin-bottom:14px}.home-nav [aria-current=page]{color:#0878ff;border-bottom:2px solid #0878ff}#homeContinue:disabled{opacity:.45;cursor:default}#homeSearchToggle{display:none}
body.member-workspace-open{background:white}.member-workspace{top:76px!important;background:white!important}body.member-workspace-open .home-header{display:flex;position:fixed;inset:0 0 auto;height:76px;padding:0 22px;background:white;z-index:10001;margin:0}body[data-member-surface=edit] #homeSearchToggle{display:none!important}
:is(#start,.member-catalogue) #grid{gap:10px 8px}:is(#start,.member-catalogue) .home-card{overflow:hidden;transition:border-color .15s;transform:none!important}:is(#start,.member-catalogue) .home-card:hover{border-color:#9bc7ff;box-shadow:none;transform:none!important}:is(#start,.member-catalogue) .home-card img:not([data-cover-image]){transform:none!important}
.catalogue-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;width:100%;margin:0 0 12px}.tool-group{display:flex;gap:2px}.tool-group select{display:none}.catalogue-tools button,.catalogue-tools select{font:inherit;font-size:13px;min-height:36px;background:#f5f8fc;color:#142044;border:1px solid #dfe6f1;border-radius:6px;padding:7px 12px}.catalogue-tools button[aria-pressed=true]{background:#0878ff;color:white;border-color:#0878ff}.catalogue-tools .catalogue-search-toggle{margin-left:auto;font-size:22px;padding:2px 10px}.catalogue-tools .catalogue-search{width:min(360px,100%)!important;height:36px!important;margin:0!important;border-radius:6px!important;flex:1}.catalogue-tools [hidden],.tool-group[hidden],#homeSearch[hidden]{display:none!important}
@media(max-width:650px){.layout{padding:0 10px!important}.home-header{min-height:66px;gap:10px}.home-brand{font-size:25px}#homeSearchToggle{display:block;margin-left:auto;border:0;background:transparent;color:#142044;font-size:22px}.member-workspace{top:66px!important}body.member-workspace-open .home-header{height:66px;padding:0 10px}.catalogue-tools{gap:5px;flex-wrap:wrap}.catalogue-tools button,.catalogue-tools select{padding:6px 8px;font-size:12px}.tool-period button,.tool-type button{display:none}.tool-group select{display:block;max-width:90px}.catalogue-tools .catalogue-search-toggle{padding:2px 8px}.catalogue-tools .catalogue-search{flex-basis:100%}:is(#start,.member-catalogue) #grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 8px}}

@media(max-width:650px){#homeCatalogue .catalogue-tools{gap:4px}#homeCatalogue .catalogue-tools .tool-group button{padding:6px 8px;font-size:12px}#homeCatalogue .catalogue-tools .tool-group select{min-width:0;width:auto;max-width:82px;padding:6px}.catalogue-tools .tool-group select{min-width:0}#homeCatalogue .catalogue-tools .catalogue-search-toggle{margin-left:auto;padding:2px 7px}}

.member-generated-header[hidden]{display:none!important}#start #homeCatalogue{padding:0;margin:0 0 10px!important}#start .catalogue-tools{margin-bottom:0}#start #grid{margin-top:0!important;padding-top:0!important}
@media(max-width:650px){:is(#start,.member-catalogue) .home-card .stats-card-actions button{min-height:40px}}

/* Approved v2.3 brand/header and mobile single-column catalogue. */
.home-brand{display:flex;align-items:center;gap:12px;font-size:26px;letter-spacing:-.6px}.brand-name{display:flex;align-items:center;gap:7px;white-space:nowrap}.brand-name svg{width:30px;height:27px;color:#0878ff;flex:none}.brand-slogan{font-size:13px;line-height:1.2;font-weight:500;color:#60708a;letter-spacing:0;white-space:nowrap}.home-header{gap:12px}.home-nav{gap:16px}
.home-nav section[aria-label="Member account"]{display:grid;grid-template-columns:auto auto;align-items:center;justify-items:end;gap:2px 12px;flex:none}.home-nav section #memberStatus{grid-column:1/-1;font-size:10px;margin:0}.home-nav section #memberGoogle{display:flex;align-items:center;gap:7px;color:white;background:#0878ff;border-radius:5px;padding:8px 12px;font-weight:600}.google-mark{display:grid;place-items:center;border-radius:50%;background:white;color:#4285f4;font:bold 16px Arial;width:22px;height:22px}.home-nav [hidden]{display:none!important}.catalogue-search-toggle,#homeSearchToggle{align-items:center;justify-content:center}.catalogue-search-toggle{display:flex}.catalogue-search-toggle svg,#homeSearchToggle svg{width:21px;height:21px;flex:none}
@media(min-width:651px) and (max-width:1400px){.home-brand{font-size:24px;gap:9px}.brand-slogan{font-size:11px}.home-nav{gap:12px}.home-nav section[aria-label="Member account"]{gap:2px 8px}}
@media(max-width:650px){.home-brand{flex-direction:column;align-items:flex-start;gap:2px;font-size:24px}.brand-name{line-height:28px}.brand-name svg{width:26px;height:25px}.brand-slogan{font-size:11.5px;line-height:14px;margin-left:33px}.home-header{min-height:66px}#homeSearchToggle{display:flex}:is(#start,.member-catalogue) #grid{grid-template-columns:minmax(0,1fr)!important}:is(#start,.member-catalogue) .home-card .home-photo{aspect-ratio:2.35}:is(#start,.member-catalogue) .home-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:15px}:is(#start,.member-catalogue) .home-card .stats-card-actions{grid-template-columns:1.5fr repeat(3,1fr)}:is(#start,.member-catalogue) .home-start span{display:inline!important;font-size:11px!important}:is(#start,.member-catalogue) .member-five-actions{grid-template-columns:1.5fr repeat(4,1fr)!important}}

@media(min-width:651px){header.home-header:not(.member-generated-header){display:grid!important;grid-template-columns:minmax(0,1fr) repeat(4,max-content) minmax(0,1fr);gap:16px}header.home-header:not(.member-generated-header) .home-nav{display:contents}header.home-header:not(.member-generated-header) .home-nav section{justify-self:end}}

@media(max-width:650px){#homeSearchToggle{display:none!important}}

.home-photo[data-cover-mode="stored-cover"]{display:block}.home-photo[data-cover-mode="stored-cover"]>.home-photo-half{width:100%;height:100%}.home-photo[data-cover-mode="stored-cover"]>img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}

/* v2.6: existing pair sources only; stored Covers remain untouched. */
.home-photo[data-cover-mode="automatic-pair"]{position:relative;display:block;overflow:hidden}
.home-photo[data-cover-mode="automatic-pair"]>.home-photo-half{position:absolute;top:0;bottom:0;width:56%;height:100%;overflow:hidden}
.home-photo[data-cover-mode="automatic-pair"]>.home-photo-half:first-child{left:0;clip-path:polygon(0 0,100% 0,79% 100%,0 100%)}
.home-photo[data-cover-mode="automatic-pair"]>.home-photo-half:nth-child(2){right:0;clip-path:polygon(21% 0,100% 0,100% 100%,0 100%)}

body.continue-open #start>:not(#continuePanel){display:none!important}#continuePanel{display:none}body.continue-open #continuePanel{display:block}.continue-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 8px}.continue-panel>h1,.continue-panel>p{margin:8px 0}.continue-choice{background:#fff;color:#142044;border:1px solid #dce4ef;border-radius:12px;padding:24px;max-width:min(540px,calc(100vw - 24px))}.continue-choice::backdrop{background:#0009}.continue-choice button{margin:8px;padding:10px 16px}.continue-panel .home-photo{aspect-ratio:2.35;overflow:hidden}.continue-panel .home-photo img{width:100%;height:100%;object-fit:cover}@media(max-width:650px){.continue-grid{grid-template-columns:1fr}}

body.pc-battle .play-statistics-status[data-progress=true]{position:absolute;top:66px;left:50%;transform:translateX(-50%);z-index:9;margin:0;padding:4px 10px;border-radius:5px;background:#000c;color:#fff;font:12px/1.4 system-ui;max-width:90%;text-align:center}

/* Continue shares HOME card structure; only progress/removal controls are specific. */
.continue-panel .home-card{position:relative}.continue-panel .continue-remove{position:absolute;top:6px;right:6px;width:36px;height:36px;min-height:36px;margin:0;padding:0;border:1px solid #dce4ef;border-radius:50%;background:#fffffff0;color:#142044;font-size:23px;line-height:1;z-index:2}.continue-remove:focus-visible{outline:3px solid #0878ff;outline-offset:2px}.continue-panel .continue-progress{font-size:12px}.continue-grid .home-card-upper{height:auto}

/* v2.7x uses the same catalogue toolbar and card actions as HOME. */
.continue-panel>h1{font-size:20px;line-height:1.3;margin:10px 0}.continue-order-note{font-size:12px;color:#60708a}.continue-panel>.home-tools{margin:0 0 10px}

/* Mobile YouTube matches need the arena's real available width; other surfaces retain catalogue gutters. */
@media(max-width:767px){
 body:has(#play:not(.hide) .candidate-shell[data-kind=youtube]) .layout{padding-left:0!important;padding-right:0!important}
}

/* Compact existing checkpoint dialog, no new actions. */
.continue-choice{box-sizing:border-box;width:min(460px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;padding:22px;border-radius:16px;box-shadow:0 20px 70px #10244830;font:inherit}.continue-choice h2{margin:0 0 12px;font-size:1.2rem;color:#142044}.continue-choice p{line-height:1.5;margin:0 0 16px}.continue-choice button{margin:0 8px 8px 0;min-height:44px;padding:10px 15px;border:1px solid #d5e1f3;border-radius:9px;background:#f3f7ff;color:#124b9c;font:inherit;cursor:pointer}.continue-choice button:first-of-type{background:#0877ff;color:white;border-color:#0877ff}.continue-choice button:disabled{opacity:.45;cursor:default}.continue-choice [role=status]:empty{display:none}

/* Guest member-menu body, sharing Continue typography without changing Continue. */
body.guest-member-open #start>:not(#guestMemberPanel){display:none!important}
body.guest-member-open #guestMemberPanel{display:block}#guestMemberPanel>h1,#guestMemberPanel>p{margin:8px 0}
