#selection{height:calc(var(--mini-height,100dvh) - var(--mini-safe-top,0px) - var(--mini-safe-bottom,0px));min-height:0;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;padding:12px max(14px,var(--tg-safe-left,0px)) max(10px,var(--tg-safe-bottom,0px));background-attachment:scroll}
#selection[hidden],.menu-page[hidden]{display:none!important}
#selection header{flex:none;padding:4px 0 10px}#selection .brand{font-size:28px}#selection .brand small{font-size:10px;letter-spacing:2px}
.menu-tabs{display:grid;grid-template-columns:1fr 1fr 1.6fr;gap:5px;flex:none;padding:8px 0}
.menu-tabs button{padding:12px 4px;font-size:13px;border:1px solid #73512f;background:#1b130e;color:#decab3;touch-action:manipulation}
.menu-tabs button.active{background:#dfb174;color:#170e08;border-color:#dfb174}
.menu-page{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:8px 0 14px;scrollbar-width:thin}
#selection .league-bar{padding:4px 0;flex:none}#selection .league-bar button{padding:7px 10px;font-size:12px}#leagueStatus{font-size:12px;margin:4px 0;flex:none}
#menu-hero .select-heading{margin:3px 0 10px}#menu-hero h1{font-size:28px}#menu-hero .eyebrow{display:none}
#menu-hero #roster{gap:6px}#menu-hero .card{height:clamp(98px,19dvh,180px);grid-column:auto}#menu-hero .hero-info{display:block;padding:10px 0}#menu-hero .hero-info h2{font-size:22px;margin:0}#menu-hero .hero-info p{font-size:13px;margin:4px 0}#menu-hero #heroCombo{display:none}#menu-hero>.primary{width:100%;padding:14px}
#menu-settings .tools{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}#menu-settings .tools button{font-size:14px;padding:10px}#menu-settings .game-options{display:block}#menu-settings .start-actions{margin-top:18px}#menu-settings input,#menu-settings select,.wallet-actions input{font-size:16px;max-width:100%;box-sizing:border-box}
#menu-beans #walletPanel{margin:0;padding:10px;border:0;background:transparent}#menu-beans .bean-harvest{display:flex;flex-direction:column;gap:8px;text-align:center;margin:8px 0}#menu-beans #tapCoffee{touch-action:none;transform:none!important;transition:filter .1s;width:min(55vw,230px);height:220px;flex:none}#tapCoffee:active{filter:brightness(1.15)}#menu-beans .harvest-info p{display:none}#menu-beans .harvest-info h3{font-size:16px;margin:4px}#menu-beans .wallet-totals{gap:10px;justify-content:space-between}#menu-beans .wallet-totals b{font-size:23px}
#selection button{touch-action:manipulation}#selection #tapCoffee{touch-action:none}#selection img{-webkit-user-drag:none}#selection .segmented button{font-size:12px}
@media(orientation:landscape) and (max-height:500px){#menu-hero #roster{grid-template-columns:repeat(8,minmax(0,1fr))}#menu-hero .card{height:112px}#menu-hero .hero-info{display:none}#selection .brand small,#leagueStatus{display:none}#selection header{padding:0}#selection .brand{font-size:22px}.menu-tabs{padding:4px 0}.menu-tabs button{padding:7px}#menu-beans .bean-harvest{flex-direction:row;justify-content:center}#menu-beans #tapCoffee{height:160px;width:170px}}
/* The page itself never pans; only menu panes and dialogs may scroll. */
html,body{position:fixed;inset:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none;touch-action:manipulation}
#app{width:100%;height:100%;min-height:0;overflow:hidden;box-sizing:border-box}
button,a,input,select,textarea{touch-action:manipulation}
input,select,textarea{font-size:16px!important}
.menu-page,dialog,.modal,#ledger,#ladderScreen{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#ladderScreen{height:100%;overflow:auto;box-sizing:border-box}
#tapCoffee,#tapCoffee img{touch-action:none!important;transform:none!important;animation:none!important;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
#tapAccess{font-size:14px;line-height:1.4;color:#ffd49b;max-width:30rem;margin:10px auto;text-align:center}
#tapCoffee[aria-disabled=true]{opacity:.7}
#combatPreviewOption{display:flex;align-items:center;gap:10px;margin:14px 0;font-size:14px;color:#ffd49b}#combatPreviewOption[hidden]{display:none}#combatPreview{width:20px;height:20px;padding:0;flex:none;accent-color:#dfb174}
