/* Home composition: bounded illustration, one primary action, compact supporting areas. */
.dashboard{background:radial-gradient(ellipse at top,#faf2d9,#dcd4b9);--mint:#153f32}
.dashboard .shell{max-width:540px;padding:10px 14px 12px}
.dashboard header{border:0;position:relative;z-index:1;padding:0 0 10px;min-height:54px}
.dashboard .brand{font-size:10px;letter-spacing:1px}
.dashboard .brand small{display:none}
.dashboard .brand img{width:30px;height:32px;object-fit:contain}
.dashboard #sound{display:none}
.dashboard .header-actions{gap:6px}
.dashboard #home-settings{min-width:44px;min-height:44px}
.dashboard footer{margin:12px 0 0;font-size:10px;line-height:1.3}
.simple-home{max-width:none;margin:0 auto}
.simple-home #home-main-panel,.simple-home .home-controls{display:grid;gap:10px;min-width:0;align-content:start}
.simple-home .home-welcome{position:relative;display:block;isolation:isolate;aspect-ratio:auto;height:clamp(164px,28dvh,208px);min-width:0;margin:0;padding:0;border:1px solid #758264;border-radius:20px;overflow:hidden;background:#f4e7c7;box-shadow:0 3px 0 #21493618}
.simple-home .home-welcome::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#f4e7c722,#f4e7c733),url('assets/home-lab-v780.png') 64% 57%/cover;opacity:.7}
.home-wordmark{position:absolute;top:12px;left:39%;right:4%;text-align:left;z-index:2}
.home-wordmark #home-mode{display:none}
.home-wordmark #home-title{margin:0;font-size:clamp(23px,5.8vw,30px);font-weight:1000;line-height:1.05;letter-spacing:-1px;color:#fff3d4;text-shadow:1px 2px 0 #174636,-1px -1px 0 #174636,1px -1px 0 #174636,-1px 1px 0 #174636,0 3px 0 #174636}
.home-wordmark>small{display:block;margin:4px auto 0;font-size:9px;font-weight:900;line-height:1.1;letter-spacing:2px;color:#173d30}
/* Frame the original transparent square, including its empty margins. Explicitly reset the legacy 88px cap. */
.simple-home .home-hero-art{position:absolute;display:block;inset:7px auto 25px 1%;width:37%;min-width:0;overflow:hidden}
.simple-home .home-hero-art>img{position:absolute;display:block;left:50%;top:50%;width:190%;max-width:none;height:134%;max-height:none;aspect-ratio:1;object-fit:contain;transform:translate(-50%,-50%);filter:drop-shadow(0 3px 3px #17261944)}
.simple-home #home-hero-piece{display:none}
.simple-home #home-roast{position:absolute;left:39%;right:4%;top:62px;bottom:32px;display:flex;align-items:center;margin:0;z-index:3;border:1px solid #184535;background:#fffbedf5;font-size:13px;font-weight:750;font-style:normal;line-height:1.35;padding:9px 11px;border-radius:13px;box-shadow:0 2px 0 #18453520;max-width:none;overflow-wrap:break-word}
.simple-home #home-roast::before,.simple-home #home-roast::after{display:none}
.home-progress{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;gap:10px;background:#194b39;color:#fff7e1;padding:5px 12px;font-size:10px;font-weight:850;line-height:1.2}
.home-progress>.progress{flex:1;height:5px;margin:0;background:#50715a}
.home-progress .progress i{background:#b8ed24}
.home-play-actions{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);gap:9px;align-items:stretch;min-width:0}
.home-main-play,.home-mode-picker{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-width:0;min-height:62px;border-radius:13px;border:2px solid #8fae1c;background:linear-gradient(#d5ff4e,#b6e926);box-shadow:inset 0 2px 0 #f1ffbe,0 3px 0 #69882e;color:#143622;padding:10px;text-align:center;font-size:19px;font-weight:950;line-height:1.15;overflow-wrap:break-word}
.home-main-play>span{font-size:21px;flex:none}
.home-main-play:active{transform:translateY(2px);box-shadow:0 1px 0 #69882e}
.home-main-play small,.home-main-play>span:last-child:not(:first-child){display:none}
.home-main-play #home-continue-title{font-size:inherit}
.home-mode-picker{gap:5px;border:1px solid #76917b;background:#e3ead6;box-shadow:0 3px 0 #9cae8e;color:#214735;font-size:12px;padding:8px}
.home-mode-picker>span{font-size:20px;flex:none}
.simple-home .home-target{display:grid;grid-template-columns:54px minmax(0,1fr) 12px;align-items:center;gap:9px;width:100%;min-width:0;text-align:left;border:1px solid #c4a558;background:linear-gradient(#fff9e9,#f2dfb1);box-shadow:inset 0 1px 0 white,0 2px 0 #bba77d;border-radius:13px;padding:8px 10px;min-height:82px;color:#173c2e}
#home-target-preview{width:54px;height:54px}
.simple-home .home-target-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.simple-home .home-target-copy small{margin:0}
.simple-home #home-target-eyebrow{font-size:9px;font-weight:850;line-height:1.2;letter-spacing:1px}
.simple-home #home-target-name{font-size:14px;line-height:1.2;overflow-wrap:break-word}
.simple-home #home-target-progress{font-size:11px;font-weight:700;line-height:1.25}
.home-target-copy .progress{height:5px;margin:1px 0;background:#dbcda9}
.home-target-copy .progress i{background:#b98b20}
.simple-home .home-target>span:last-child{font-size:25px}
.simple-home .home-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0;min-width:0}
.simple-home .home-tool{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;min-width:0;min-height:100px;border:1px solid #99aa83;border-radius:13px;padding:5px 3px 7px;background:linear-gradient(#325b46,#173c2f);box-shadow:inset 0 1px 0 #a3b094,0 2px 0 #183a29;color:#fff6dc;position:relative}
.simple-home .home-tool strong{font-size:11px;font-weight:850;line-height:1.15;min-height:25px;display:flex;align-items:center;justify-content:center;text-align:center;max-width:100%;overflow-wrap:normal}
.simple-home .home-tool small{font-size:10px;color:#e0e9d6;line-height:1.2;text-align:center}
.simple-home .home-tool img,.simple-home .home-tool canvas{width:100%;height:44px;object-fit:contain;margin:0}
.simple-home .vault-coin-art,.simple-home .podium-icon{display:block;width:44px;height:44px;flex:none;background-image:url('assets/home-nav-v780.png');background-size:200% 100%;background-repeat:no-repeat;font-size:0;filter:drop-shadow(0 2px 2px #0003)}
.simple-home .vault-coin-art{background-position:left center}
.simple-home .vault-coin-art .coin{display:none}
.simple-home .podium-icon{background-position:right center}
.simple-home .gift-ready{border-color:#d3ad50;box-shadow:inset 0 0 0 1px #e8cb6d,0 2px 0 #183a29}
.gift-ready:after{content:'!';position:absolute;top:4px;right:5px;display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#c65233;color:white;font-size:11px;font-weight:900;border:1px solid #fff0bc}
.simple-home .home-incoming{margin:0;padding:9px 11px;min-height:44px}
.simple-home .home-nudge{margin:0;font-size:11px;line-height:1.3}
#home-modes-panel{padding:4px 0}.home-modes-header{display:flex;align-items:center;gap:13px}.home-modes-header>button{min-width:44px;min-height:44px;background:#174636;color:#fff8df;font-size:22px}.home-modes-header h2{margin:0;font-size:clamp(19px,5vw,27px);letter-spacing:-.7px;color:#163e30}.simple-home #home-modes-subtitle{font-size:13px;margin:9px 0 17px;color:#59624d}.simple-home .home-primary,.simple-home .home-challenges{gap:12px;margin:12px 0 0}.simple-home .mode-art{aspect-ratio:1.55;object-fit:cover}.simple-home .game-mode-card{border:2px solid #819872;border-radius:16px;box-shadow:0 4px 0 #c5b78f;background:#fff6df}.simple-home .mode-card-copy{padding:12px;gap:6px}.simple-home .mode-card-copy strong{font-size:clamp(17px,4.1vw,24px);line-height:1.05;color:#193e2f;text-transform:uppercase}.simple-home .mode-card-copy small{font-size:11px;line-height:1.4;color:#625e48}.simple-home .mode-action{min-height:34px;padding:7px 9px!important;background:#d9edbc;border-radius:7px;color:#244936!important;font-size:12px!important}.simple-home .home-level-link{margin-top:10px}.home-friend{display:flex;align-items:center;justify-content:center;gap:14px;min-height:64px;width:100%;background:#194735;color:#fff6dd;border:1px solid #658467;border-radius:13px;padding:7px 12px;margin:7px 0 17px;font-size:15px}.home-friend img{width:58px;height:50px;object-fit:contain}.home-friend>span{font-size:25px}.home-more{padding:12px;background:#f3ecd9;border:1px solid #c2b699;border-radius:12px;color:#475744}.home-more summary{font-size:12px;font-weight:750;cursor:pointer;min-height:30px}.home-more>div{display:flex;flex-wrap:wrap;gap:8px}.home-more .home-hall-peek{margin-top:9px}.home-nudge{margin:0;font-size:11px;line-height:1.35}

/* Wider screens get a different composition, rather than a taller phone screen. */
@media(min-width:760px){
 .dashboard .shell{max-width:1040px;padding:16px 24px 18px}
 .dashboard header{padding-bottom:16px;min-height:60px}
 .simple-home #home-main-panel{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:22px;align-items:stretch}
 .simple-home .home-controls{gap:16px;align-self:center}
 .simple-home .home-welcome{height:auto;min-height:330px}
 .home-wordmark{top:23px;left:8px;right:8px;text-align:center}
 .home-wordmark #home-title{font-size:clamp(31px,3.6vw,42px)}
 .home-wordmark>small{font-size:11px;margin-top:7px}
 .simple-home .home-hero-art{inset:91px auto 30px 1%;width:45%}
 .simple-home #home-roast{left:47%;right:5%;top:105px;bottom:auto;min-height:100px;font-size:15px;padding:12px}
 .home-progress{padding:9px 14px;font-size:11px}
 .home-main-play{min-height:74px;font-size:22px}
 .home-mode-picker{font-size:13px}
 .simple-home .home-target{min-height:96px;grid-template-columns:64px minmax(0,1fr) 12px;padding:10px 12px}
 #home-target-preview{width:64px;height:62px}
 .simple-home #home-target-name{font-size:16px}
 .simple-home .home-tool{min-height:118px;padding-top:8px}
 .simple-home .home-tool img,.simple-home .home-tool canvas{height:53px}
 .simple-home .vault-coin-art,.simple-home .podium-icon{width:53px;height:53px}
 .simple-home .home-tool strong{font-size:12px}
 .simple-home .home-tool small{font-size:11px}
 #home-modes-panel{max-width:900px;margin:0 auto}
 .simple-home .game-mode-card{display:grid;grid-template-columns:35% minmax(0,1fr);min-height:148px}
 .simple-home img.mode-art{height:100%;min-height:148px;aspect-ratio:auto;border-bottom:0;object-fit:cover}
 .simple-home .mode-card-copy{padding:13px}
 .simple-home .mode-card-copy strong{font-size:21px}
 .simple-home .home-friend{margin-top:0;margin-bottom:12px}
}
/* Short Android WebViews already exclude the native banner and system bars. */
@media(max-height:600px) and (max-width:759px){
 .dashboard .shell{padding:7px 12px 8px}
 .dashboard header{padding-bottom:6px;min-height:50px}
 .simple-home #home-main-panel,.simple-home .home-controls{gap:8px}
 .simple-home .home-welcome{height:152px}
 .home-wordmark{top:9px}
 .home-wordmark #home-title{font-size:23px}
 .home-wordmark>small{font-size:8px;margin-top:3px}
 .simple-home .home-hero-art{top:5px;bottom:22px}
 .simple-home #home-roast{top:53px;bottom:28px;padding:6px 8px;font-size:12px}
 .home-progress{padding:4px 10px;font-size:9px}
 .home-main-play,.home-mode-picker{min-height:56px}
 .home-main-play{font-size:17px;padding:8px}
 .simple-home .home-target{min-height:77px;padding:6px 9px}
 .simple-home .home-tool{min-height:90px;padding:4px 2px 6px}
 .simple-home .home-tool img,.simple-home .home-tool canvas{height:36px}
 .simple-home .vault-coin-art,.simple-home .podium-icon{width:36px;height:36px}
 .dashboard footer{margin-top:9px}
}
@media(max-width:360px){
 .dashboard .shell{padding-left:10px;padding-right:10px}
 .dashboard .brand{font-size:9px;gap:4px;letter-spacing:.5px}
 .home-play-actions{gap:7px}
 .home-main-play{font-size:17px;gap:6px}
 .home-mode-picker{font-size:11px;flex-direction:column;gap:2px;padding:6px}
 .home-mode-picker>span{font-size:16px}
 .simple-home .home-tools{gap:5px}
 .simple-home .home-tool strong{font-size:10px}
 .simple-home .home-tool small{font-size:9px}
 .simple-home #home-target-name{font-size:13px}
}
/* Text enlargement may scroll; controls and information must never be clipped to fit. */
body.large-text .simple-home .home-welcome{min-height:230px}
body.large-text .simple-home #home-roast{font-size:16px;bottom:37px}
body.large-text .home-main-play{font-size:23px}
body.large-text .home-mode-picker{font-size:15px}
body.large-text .simple-home .home-tool strong{font-size:15px;min-height:35px}
body.large-text .simple-home .home-tool small{font-size:12px}
body.large-text .simple-home #home-target-name{font-size:18px}
body.large-text .simple-home #home-target-progress{font-size:14px}
@media(prefers-reduced-motion:reduce){.home-main-play:active{transform:none}}
