/* Portrait uses the whole content width. Desktop composition needs both width
   and landscape space; four navigation cards never share a half-width row. */
.dashboard .shell{max-width:880px;padding:12px 18px 20px;min-height:100dvh}
.simple-home #home-main-panel{grid-template-columns:minmax(0,1fr);gap:16px}
.simple-home .home-controls{gap:14px;align-self:stretch}
.simple-home .home-welcome{height:auto;min-height:0;display:grid;grid-template-columns:minmax(110px,.38fr) minmax(0,.62fr);grid-template-rows:auto 1fr auto;gap:10px 8px;padding:18px 16px 0}
.simple-home .home-wordmark{position:static;grid-column:1/-1;text-align:center}
.simple-home .home-wordmark #home-title{font-size:clamp(28px,6vw,49px)}
.simple-home .home-wordmark>small{font-size:11px}
.simple-home .home-hero-art{position:relative;inset:auto;grid-column:1;grid-row:2;width:100%;min-height:clamp(130px,19dvh,240px)}
.simple-home #home-roast{position:relative;inset:auto;grid-column:2;grid-row:2;align-self:center;min-height:0;margin:4px 0 14px;font-size:clamp(15px,2.3vw,21px);padding:14px;line-height:1.35;overflow-wrap:anywhere}
.simple-home .home-progress{position:static;grid-column:1/-1;margin:0 -16px;flex-wrap:wrap;padding:10px 16px;font-size:12px}
.simple-home .home-progress>.progress{min-width:60px}
.simple-home .home-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.simple-home .home-tool{display:grid;grid-template-columns:clamp(42px,10vw,86px) minmax(0,1fr);grid-template-rows:auto auto;align-content:center;column-gap:12px;row-gap:5px;padding:14px 12px;min-height:112px;text-align:left}
.simple-home .home-tool>img,.simple-home .home-tool>canvas,.simple-home .home-tool>.vault-coin-art,.simple-home .home-tool>.podium-icon{grid-column:1;grid-row:1/3;width:100%;height:72px;align-self:center;object-fit:contain}
.simple-home .home-tool>.vault-coin-art,.simple-home .home-tool>.podium-icon{width:100%;height:auto;aspect-ratio:1}
.simple-home .home-tool strong,.simple-home .home-tool small{display:block;grid-column:2;min-height:0;max-width:100%;text-align:left;overflow-wrap:anywhere;hyphens:auto;white-space:normal;line-height:1.3}
.simple-home .home-tool strong{font-size:clamp(14px,2.2vw,20px)}
.simple-home .home-tool small{font-size:clamp(12px,1.8vw,16px)}
.simple-home .home-play-actions{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:12px}
.simple-home .home-main-play{font-size:clamp(19px,3vw,28px);min-height:82px;line-height:1.2;padding:16px}
.simple-home .home-mode-picker{flex-direction:column;font-size:clamp(15px,2.4vw,21px);line-height:1.2;min-height:82px;padding:12px;hyphens:auto}
.simple-home .home-mode-picker strong{min-width:0;overflow-wrap:anywhere}
.simple-home .home-mode-picker.first-game{grid-column:1/-1;background:linear-gradient(#d5ff4e,#b6e926);font-size:25px;color:#143622;border:2px solid #8fae1c}
.simple-home .home-target{min-height:102px;grid-template-columns:64px minmax(0,1fr) 16px;padding:13px;gap:12px}
.simple-home #home-target-name{font-size:clamp(17px,2.6vw,24px);line-height:1.3}
.simple-home #home-target-progress{font-size:14px}
.simple-home .home-nudge{font-size:14px;padding:12px;line-height:1.4}
.dashboard footer{font-size:12px;margin-top:16px;flex-wrap:wrap}
.simple-home .game-mode-card{min-width:0}
.simple-home .mode-card-copy{width:100%;min-width:0}
.simple-home .mode-card-actions{display:flex;flex-wrap:wrap;gap:8px;align-self:stretch;margin-top:auto}
.simple-home .mode-card-actions>button{display:flex;justify-content:center;align-items:center;flex:1 1 115px;min-width:0;min-height:48px;margin:0;padding:10px!important;font-size:14px!important;font-weight:800;border:1px solid #9aaa83;border-radius:8px;white-space:normal;overflow-wrap:anywhere;hyphens:auto;line-height:1.3;text-align:center}
.simple-home .mode-card-actions .mode-action{background:#d5efb2;color:#244936}
.simple-home .mode-levels{background:#fffaf0;color:#244936}
.simple-home .mode-card-copy strong{overflow-wrap:anywhere;hyphens:auto}
#modes-action-coach{margin:14px 0;position:sticky;top:8px;z-index:20;box-shadow:0 4px 14px #173b2d22}
#modes-action-coach .hands-on-portrait{display:none}
/* Reserved arrow corridors keep neighbouring action labels readable. */
#home-action-coach[data-step="modes-open"]{padding-bottom:108px}
.simple-home .mode-card-actions:has(.hands-on-target){padding-top:108px}
.progression-explainer{font-size:13px;line-height:1.5;margin:0;color:#495440}
.chapter-unlock{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:13px}
.chapter-unlock p{flex:1 1 230px;font-size:13px;line-height:1.45;margin:0}
.chapter-unlock .action{flex:0 1 auto;white-space:normal;overflow-wrap:anywhere}
.menu-chapter .unlockable-level{border:2px solid #c4a144;background:#fff0bc}
.menu-chapter .level-tile{overflow-wrap:anywhere;hyphens:auto}
.unlock-options{display:grid;gap:12px;max-width:520px;width:100%;justify-self:center}
.unlock-options p{margin:0;font-size:14px;line-height:1.5}
.unlock-options>button{width:100%;white-space:normal;overflow-wrap:anywhere}
.unlock-options .unlock-balance{font-size:18px;font-weight:800;color:#214735}
.star-legend{min-width:0;width:100%;box-sizing:border-box;border:1px solid #b5b68e;border-radius:12px;background:#fffaf0;color:#244333;text-align:left}
.star-legend>summary{min-height:44px;box-sizing:border-box;padding:12px 14px;font-size:14px;line-height:1.4;font-weight:800;cursor:pointer;overflow-wrap:anywhere}
.star-guide-body{padding:0 14px 12px;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.star-guide-body p{margin:0 0 10px;font-size:inherit;line-height:inherit}
.star-guide-body ul{display:grid;gap:8px;list-style:none;margin:10px 0 14px;padding:0}
.star-guide-body li{display:grid;grid-template-columns:4.1em minmax(0,1fr);gap:10px;align-items:start}
.star-guide-body li strong{color:#795606;letter-spacing:2px}
.star-guide-body .star-guide-moves{margin:0;font-size:13px}
#result-stars-help{margin:12px 0}
.large-text .star-legend>summary,.large-text .star-guide-body,.large-text .star-guide-body .star-guide-moves{font-size:18px}
.high-contrast .star-legend,.high-contrast .star-guide-body li strong{background:#fff;color:#111;border-color:#111}
/* Landscape still uses a two-column hero, with a two-by-two navigation grid. */
@media(min-width:1050px) and (min-aspect-ratio:6/5){
 .dashboard .shell{max-width:1280px;padding:18px 26px}
 .simple-home #home-main-panel{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:26px;align-items:stretch}
 .simple-home .home-welcome{align-content:start;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(210px,1fr) auto auto}
 .simple-home .home-hero-art{grid-column:1;grid-row:2;min-height:240px;max-height:350px}
 .simple-home #home-roast{grid-column:1;grid-row:3;max-width:none;margin:0 8px 12px}
 .simple-home .home-progress{grid-row:4}
 .simple-home .home-tool{grid-template-columns:65px minmax(0,1fr);min-height:118px}
 .simple-home .home-tool strong{font-size:18px}
 .simple-home .home-tool small{font-size:14px}
 #home-modes-panel{max-width:1150px}
}
@media(max-width:759px){
 .simple-home .home-tool{column-gap:8px;padding:12px 9px}
 .simple-home .home-target{grid-template-columns:50px minmax(0,1fr) 14px}
 .simple-home .home-target canvas{width:50px;height:50px}
 .simple-home .home-primary,.simple-home .home-challenges{grid-template-columns:minmax(0,1fr)}
 .simple-home .game-mode-card{display:grid;grid-template-columns:30% minmax(0,1fr);min-height:145px}
 .simple-home .mode-art{height:100%;min-height:145px;aspect-ratio:auto;object-fit:cover}
 .simple-home .mode-card-copy strong{font-size:20px}
}
@media(max-width:420px){
 .dashboard .shell{padding:10px 12px 16px}
 .simple-home .home-tool{grid-template-columns:minmax(0,1fr);justify-items:center;min-height:140px}
 .simple-home .home-tool>img,.simple-home .home-tool>canvas,.simple-home .home-tool>.vault-coin-art,.simple-home .home-tool>.podium-icon{grid-column:1;grid-row:1;width:54px;height:48px}
 .simple-home .home-tool strong,.simple-home .home-tool small{grid-column:1;text-align:center}
 .simple-home .home-welcome{padding:14px 10px 0;column-gap:4px;grid-template-columns:minmax(90px,.36fr) minmax(0,.64fr)}
 .simple-home .home-progress{margin:0 -10px}
 .simple-home #home-roast{padding:10px;font-size:15px}
 .simple-home .home-main-play{padding:12px;font-size:19px}
 .simple-home .home-tools{gap:9px}
}
@media(max-height:600px){.simple-home .home-hero-art{min-height:120px}.simple-home .home-welcome{height:auto}.simple-home #home-roast{position:relative;inset:auto}}
body.large-text .simple-home .home-welcome{height:auto;min-height:0}
body.large-text .simple-home #home-roast{inset:auto;font-size:22px}
body.large-text .simple-home .home-tool strong{font-size:22px}
body.large-text .simple-home .home-tool small{font-size:18px}
body.large-text .simple-home .mode-card-actions>button{font-size:20px!important}
body.large-text .simple-home .home-target{height:auto}
