/* Keep Todak's palette; borrow only the header + card-menu arrangement. */
@media(max-width:759px){
 #home{padding:48px 20px 16px;align-items:stretch;place-items:stretch;overflow-y:auto}#home .homeBox{box-sizing:border-box;width:100%;max-width:460px;min-height:0;height:auto;align-self:start;margin:0 auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;align-content:start;text-align:left}#home .homeBox>*{grid-column:1/-1}#home .homeIntro{display:grid;grid-template-columns:1fr auto;gap:5px 12px;align-items:center;padding:2px 0 8px}#home .homeMark{grid-column:2;grid-row:1/3;width:42px;height:42px;margin:0}#home .homeEyebrow{grid-column:1;grid-row:1;font-size:11px;letter-spacing:.13em;line-height:1.3}#home .homeTitle{grid-column:1;grid-row:2;font-size:46px;line-height:1.1;margin:0}#home .homeSub{grid-column:1/-1;font-size:12px;line-height:1.5;margin:4px 0 0}#home .homeSub br{display:none}
 #home .homeMenus>.bigBtn{grid-column:auto;min-width:0;min-height:104px;padding:15px 13px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:12px;box-sizing:border-box;border-radius:17px;text-align:left}#home .homeMenus>.bigBtn b{font-size:21px;line-height:1.25}#home .homeMenus>.bigBtn>span{font-size:12px;line-height:1.5;overflow-wrap:break-word}#home #goMarket b{display:block;font-size:20px}#home #goMarket .communityState{display:inline-block;font-size:11px;padding:3px 6px;margin:6px 0 0}#home #goMarket>span{font-size:11px}#home .homeBox #tutorialHomeNote{text-align:left;width:100%;max-width:none;padding:12px 13px;margin:0 0 8px;border-radius:15px}#home #tutorialHomeNote strong{font-size:15px;line-height:1.5}#home #tutorialHomeNote span{font-size:11px;line-height:1.5;margin-top:5px}#home #tutorialHomeNote br{display:none}#home #tutorialHomeNote::after{left:22%}#home .homeFoot{font-size:10px;line-height:1.6;text-align:center;margin:3px 0 0}#home .homeFoot button,#home .homeFoot a{padding-top:4px;padding-bottom:4px;min-height:0}#home #homeClose{padding:8px 12px;min-height:36px;border-radius:12px;font-size:12px}#home .home-shop{top:12px;right:20px;font-size:11px;padding:7px 10px}
}
@media(max-width:759px) and (max-height:650px){
 #home{padding:38px 18px 10px}#home .homeBox{gap:10px 16px}#home .homeIntro{gap:3px 10px;padding-bottom:2px}#home .homeMark{width:34px;height:34px}#home .homeTitle{font-size:38px}#home .homeEyebrow{font-size:10px}#home .homeSub{font-size:11px;line-height:1.4;margin-top:2px}#home .homeMenus>.bigBtn{min-height:78px;padding:11px 12px;gap:8px;border-radius:15px}#home .homeMenus>.bigBtn b{font-size:18px}#home .homeMenus>.bigBtn>span{font-size:11px;line-height:1.4}#home #goMarket b{font-size:17px}#home #goMarket .communityState{font-size:10px;margin-top:4px}#home #goMarket>span{font-size:10px}#home .homeBox #tutorialHomeNote{padding:9px 11px;margin-bottom:5px}#home #tutorialHomeNote strong{font-size:12px;line-height:1.4}#home #tutorialHomeNote span{font-size:10px;line-height:1.4;margin-top:4px}#home .homeFoot{font-size:9px;line-height:1.5}#home .homeFoot button,#home .homeFoot a{padding-top:2px;padding-bottom:2px}#home #homeClose{min-height:30px;padding:5px 9px;font-size:11px}
}
@media(max-width:759px) and (max-height:650px){#home #goMarket b{display:flex;align-items:center;white-space:nowrap;gap:4px;font-size:15px}#home #goMarket .communityState{margin:0;font-size:9px;padding:2px 4px}#home .homeMenus>.bigBtn>span{font-size:10px}}
@media(max-width:759px) and (max-height:580px){#home{padding-top:34px;padding-bottom:8px}#home .homeTitle{font-size:32px}#home .homeIntro{gap:2px 10px}#home .homeSub{font-size:10px}#home .homeBox #tutorialHomeNote{padding:7px 10px}#home #tutorialHomeNote span{font-size:9.5px;line-height:1.4;margin-top:3px}}

/* Brand at top, compact menu group centered, legal/actions at bottom. */
.homeMenus{display:grid;gap:12px}.homeBottom{min-width:0}
@media(max-width:759px){
 #home .homeBox{display:flex;flex-direction:column;min-height:calc(100dvh - 64px);height:auto;gap:0}
 #home .homeIntro,#home .homeBottom{flex:0 0 auto;width:100%;box-sizing:border-box}
 #home .homeMenus{flex:0 0 auto;width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;margin:auto 0;padding:20px 0;box-sizing:border-box}
 #home .homeMenus>*{grid-column:1/-1}
 #home .homeMenus>.bigBtn{grid-column:auto}
}
@media(max-width:759px) and (max-height:650px){#home .homeBox{min-height:calc(100dvh - 48px)}#home .homeMenus{gap:10px 16px;padding:16px 0}}
@media(max-width:759px) and (max-height:580px){#home .homeBox{min-height:calc(100dvh - 42px)}}

/* Compact home callouts without adding a badge row inside cards. */
#home #goFree.tutorialFirstStart{outline:none;outline-offset:0;box-shadow:none}
#home #goMarket{position:relative;overflow:visible}
#home #goMarket.communityPreparing b{display:block;white-space:nowrap}
#home #goMarket .communityState{position:absolute;top:-11px;right:12px;display:inline-block;white-space:nowrap;font-size:11px;line-height:1.2;padding:5px 9px;margin:0;border:1px solid #c8cec1;border-radius:12px;background:#e7ecdf;color:#596550;z-index:2}
#home #goMarket .communityState::after{content:'';position:absolute;right:11px;bottom:-4px;width:6px;height:6px;background:#e7ecdf;border-right:1px solid #c8cec1;border-bottom:1px solid #c8cec1;transform:rotate(45deg)}
@media(max-width:759px){
 #home .homeMenus{transform:translateY(-10px)}
 #home .homeMenus #tutorialHomeNote{margin-bottom:4px;z-index:2;pointer-events:none}
}

@media(min-width:760px){
 #home{padding:42px 36px 22px;align-items:stretch;overflow-y:auto}#home .homeBox{width:min(900px,100%);max-width:900px;min-height:calc(100dvh - 64px);margin:0 auto;display:flex;flex-direction:column;gap:0;text-align:left}#home .homeIntro{width:100%;flex:0 0 auto;display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 20px;padding:0}#home .homeMark{grid-column:2;grid-row:1/3;width:48px;height:48px;margin:0}#home .homeEyebrow{grid-column:1;grid-row:1;font-size:13px}#home .homeTitle{grid-column:1;grid-row:2;font-size:60px;margin:0;line-height:1.1}#home .homeSub{grid-column:1/-1;font-size:14px;margin:10px 0 0}#home .homeSub br{display:none}#home .homeMenus{width:min(640px,100%);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:auto; padding:32px 0;transform:translateY(-18px)}#home .homeMenus>*{grid-column:1/-1}#home .homeMenus>.bigBtn{grid-column:auto;min-height:128px;text-align:left;padding:20px;display:flex;flex-direction:column;justify-content:space-between;gap:14px}#home .homeMenus>.bigBtn b{font-size:25px}#home .homeMenus>.bigBtn>span{font-size:13px;line-height:1.6}#home .homeBottom{width:100%;flex:0 0 auto;text-align:center}#home .homeFoot{font-size:11px;line-height:1.7}#home #tutorialHomeNote{max-width:none;text-align:left;margin:0 0 6px;padding:13px 16px}#home #tutorialHomeNote strong{font-size:17px}#home #tutorialHomeNote span{font-size:12px}#home #tutorialHomeNote br{display:none}
}
