/* Six stable choices per page. Images, copy and actions each own a grid area. */
:root{--option-art:112px}
/* Shared in-game heading. Brand assets come from site-config.mjs. */
header{min-width:0}
header .app-title:not(.sr-only){display:flex;align-items:center;gap:10px;min-width:0;margin:0;font-size:22px;line-height:1.35;white-space:normal}
.app-brand-logo{display:block;flex:none;width:auto;height:28px;object-fit:contain}
.brand-home-link{display:inline-flex;align-items:center;justify-content:center;flex:none;border-radius:4px}
.brand-home-link:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.app-title-text{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 12px;min-width:0}
.app-title-text>span{white-space:nowrap}
.app-title-text>.app-tagline{white-space:normal}
header #restart{flex:none}
button.primary:active:not(:disabled){background:#173e39;color:#fff}
.center:is([data-screen="consultants"],[data-screen="measures"],[data-screen="marketing"]) .panel>.content-unit,
.measure-browser,.measure-browser>section{height:100%;min-height:0}
.consultant-grid,.marketing-grid,.measure-browser .measures-grid{height:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:12px}
.consultant-grid .option-card,.marketing-grid .option-card,.measure-browser .option-card{
 display:grid;grid-template-columns:var(--option-art) minmax(0,1fr);grid-template-rows:minmax(112px,1fr) auto;
 grid-template-areas:"art copy" "tail tail";padding:16px;gap:8px 12px;align-content:stretch;align-items:start;min-height:0;height:100%;
}
.option-card>.list-thumbnail{grid-area:art!important;width:var(--option-art)!important;height:var(--option-art)!important;object-fit:contain;align-self:center}
.option-card>.option-copy{grid-area:copy;display:grid;gap:5px;align-content:start;min-width:0}
.option-card .card-heading{display:flex;flex-wrap:wrap;gap:3px 6px;align-items:center}
.option-card .card-heading h3{flex-basis:100%;min-width:0}
.option-card h3{font-size:18px;line-height:1.4;margin:0}
.option-card .card-price,.option-card .service-price{font-size:17px;line-height:1.4;margin:0;display:block;text-align:left}
.option-card p{font-size:15px;line-height:1.5;margin:0}
.option-card>.card-tail{grid-area:tail;align-self:end;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;margin:0;min-height:44px;font-size:14px;line-height:1.5}
.option-card .card-tail button{justify-self:end;width:auto;min-width:76px;min-height:44px;height:44px;padding:7px 12px;font-size:16px}
.option-card .card-tail .status{font-size:14px}
.marketing-grid .card-tail{grid-template-columns:1fr}
.marketing-grid .card-tail button{width:auto;justify-self:end;align-self:center;margin:0}
.art-container[data-image-slot="services"] .event-illustration{aspect-ratio:1;object-fit:contain;box-shadow:none;filter:none}
.content-stage .panel.service-detail-layout{grid-template-columns:minmax(280px,360px) minmax(0,640px);justify-content:center;align-items:center;gap:36px}
.service-detail-layout .art-container{width:100%;height:auto;aspect-ratio:1;max-height:360px;padding:0}
.service-detail-layout .event-illustration{width:100%;height:100%;max-height:360px}
.service-detail-layout .service-detail{gap:22px;min-width:0}
.service-detail-layout .service-detail h3{font-size:19px;line-height:1.5;margin-bottom:7px}
.service-detail-layout .service-detail p{font-size:18px;line-height:1.6}
.center[data-screen="measures"] .screen-heading{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px}
.center[data-screen="measures"] #screen-title{order:0}
.center[data-screen="measures"] #screen-tools{order:1;justify-self:center}
.center[data-screen="measures"] #phase{order:2}
.measure-category-tabs{display:flex;gap:8px}
.measure-category-tabs button{min-height:44px}
.measure-browser{display:block}
#screen-footer[hidden],#screen-tools[hidden]{display:none}
@media(min-width:1600px) and (min-height:950px){:root{--option-art:144px}.consultant-grid .option-card,.marketing-grid .option-card,.measure-browser .option-card{padding:22px;gap:14px 16px}.option-card p{font-size:17px}.option-card h3{font-size:20px}}
@media(min-width:760px) and (max-height:760px){
 #app{grid-template-rows:28px auto minmax(0,1fr)}
 .content-stage .screen-heading{padding-block:8px 4px}.content-stage .screen-heading h2{font-size:25px}
 .consultant-grid .option-card,.marketing-grid .option-card,.measure-browser .option-card{padding:14px;gap:6px 10px}
 #list-pagination{padding-block:4px;min-height:52px}.content-stage #panel-actions{padding-block:6px}
}
/* The tutorial retains six cards; its separate coach narrows the game area. */
.tutorial-mode .consultant-grid,.tutorial-mode .measure-browser .measures-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.tutorial-mode .option-card{--option-art:64px}
.tutorial-mode .consultant-grid .option-card,.tutorial-mode .measure-browser .option-card{padding:12px;gap:8px;grid-template-rows:minmax(100px,1fr) auto}
.tutorial-mode .option-card h3{font-size:16px}.tutorial-mode .option-card p{font-size:14px}
.tutorial-mode .center[data-screen="measures"] .screen-heading{grid-template-columns:auto 1fr;gap:8px}
.tutorial-mode .center[data-screen="measures"] #phase{display:none}
.tutorial-mode .measure-category-tabs button{font-size:15px;padding-inline:10px}

/* The start screen uses one flow: brand, then art alongside copy and equal CTAs. */
.welcome-view .center{grid-template-rows:auto minmax(0,1fr)}
.welcome-view .screen-heading{display:flex;justify-content:center;padding:16px 24px}
.welcome-view #phase{display:none}
.welcome-view #screen-title{display:flex;align-items:center;justify-content:center;gap:14px;font-size:23px;line-height:1.4}
.welcome-brand-identity{display:inline-flex;align-items:center;gap:14px;white-space:nowrap}
.brand-logo{display:block;width:auto;height:42px;object-fit:contain}
.welcome-view .panel.welcome-layout{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:32px;padding:16px 24px 28px}
.welcome-view .welcome-copy{display:grid;align-content:center;gap:28px;padding-bottom:48px}
.welcome-message{display:grid;gap:12px}
.welcome-message p{font-size:22px;line-height:1.65;margin:0}
.welcome-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;width:100%;max-width:496px}
.welcome-actions button,.welcome-actions button.primary{width:100%;min-width:0;min-height:60px;font-size:21px;line-height:1.4;padding:12px;border-radius:10px}
.welcome-view .panel.split>.content-unit{min-height:0}

@media(max-width:759px), (max-height:500px) and (max-width:999px){
 .phone header .app-title:not(.sr-only){flex:1;gap:8px;font-size:17px;line-height:1.35}
 .phone header{flex-wrap:nowrap}
 .phone .app-brand-logo{height:28px}.phone .app-title-text{display:grid;gap:0}
 .phone .app-brand-separator{display:none}
 .phone .brand-home-link{min-width:44px;min-height:44px}
 .phone #app-brand-name{font-size:16px}
 .tutorial-mode #app.phone{grid-template-rows:48px auto minmax(0,1fr)}
 .phone .consultant-grid,.phone .marketing-grid,.phone .measure-browser .measures-grid{height:auto;grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-auto-rows:auto;gap:16px}
 .phone .center:is([data-screen="consultants"],[data-screen="measures"],[data-screen="marketing"]) .panel>.content-unit,
 .phone .measure-browser,.phone .measure-browser>section{height:auto}
 .phone .option-card{--option-art:96px}
 .phone .consultant-grid .option-card,.phone .marketing-grid .option-card,.phone .measure-browser .option-card{padding:16px;gap:12px;grid-template-rows:auto auto;min-height:196px;height:auto}
 .phone .option-card h3{font-size:18px}.phone .option-card p{font-size:16px}
 .phone .option-card>.card-tail{grid-template-columns:minmax(0,1fr) auto;font-size:14px}
 .phone .marketing-grid .card-tail{grid-template-columns:1fr}
 .phone .content-stage .panel.service-detail-layout{display:flex;gap:24px;align-items:stretch;justify-content:flex-start}
 .phone .panel.service-detail-layout>.content-unit{flex:none}
 .phone .service-detail-layout .art-container{height:auto;width:min(100%,240px);aspect-ratio:1;max-height:none;contain:none;margin:auto}
 .phone .service-detail-layout .service-detail{gap:20px}
 .phone .service-detail-layout .service-detail h3{font-size:18px}
 .phone .service-detail-layout .service-detail p{font-size:16px}
 .phone .option-card .card-tail button{height:44px;min-height:44px;min-width:80px}
 .phone .center[data-screen="measures"] .screen-heading{display:grid;grid-template-columns:1fr;gap:10px}
 .phone .center[data-screen="measures"] #phase{order:0}.phone .center[data-screen="measures"] #screen-title{order:1}
 .phone .center[data-screen="measures"] #screen-tools{order:2;justify-self:stretch}.phone .measure-category-tabs{display:grid;grid-template-columns:1fr 1fr}
 .phone .measure-category-tabs button{font-size:16px;padding:8px}
 .phone.welcome-view .content-stage>.center{grid-template-rows:auto minmax(0,1fr)}
 .phone.welcome-view .screen-heading{padding:14px 12px 6px}
 .phone.welcome-view #screen-title{font-size:22px;gap:12px}.phone .brand-logo{height:38px}
 .phone.welcome-view #screen-title{flex-wrap:wrap;row-gap:6px;text-align:center}
 .phone.welcome-view .panel.welcome-layout{display:grid;grid-template-columns:1fr;grid-template-rows:auto auto;align-content:center;gap:24px;padding:10px 12px 20px}
 .phone.welcome-view .panel>.content-unit:has(>.art-container){height:auto;min-height:0;flex:none}
 .phone.welcome-view .center[data-screen="welcome"] .art-container{height:auto;aspect-ratio:5/4}
 .phone.welcome-view .welcome-copy{gap:24px;padding:0;text-align:center}
 .phone.welcome-view .welcome-message{gap:8px}.phone.welcome-view .welcome-message p{font-size:18px;line-height:1.6}
 .phone.welcome-view .welcome-actions{grid-template-columns:1fr;gap:12px;max-width:none}
 .phone.welcome-view .welcome-actions button,.phone.welcome-view .welcome-actions button.primary{font-size:21px;height:56px;min-height:56px}
 .tutorial-mode .phone .option-card{--option-art:64px}
 .tutorial-mode .phone .consultant-grid .option-card,.tutorial-mode .phone .measure-browser .option-card{padding:12px;min-height:180px}
 .tutorial-mode .phone .option-card p{font-size:14px}
 /* The coach supplies navigation; these inactive game actions only steal target space. */
 .tutorial-mode #app.phone .center:is([data-screen="consultants"],[data-screen="measures"]) #panel-actions{display:none}
 .tutorial-mode .phone .center[data-screen="measures"] .screen-heading{padding-block:6px;gap:6px}
 .tutorial-mode .phone .center[data-screen="measures"] #screen-title{display:none}
}
