#menuArt{width:320px;height:130px;max-width:100%}
#game{background:#CFE9F5}
#stage{touch-action:none}
.shopItem{display:flex;align-items:center;justify-content:space-between;gap:8px;border:2px solid var(--ink);border-radius:14px;padding:8px 10px;background:#fff}
.shopItem b{display:block}.shopItem small{opacity:.75}
.shopItem.on{outline:4px solid var(--lime)}
.sw{display:inline-block;width:26px;height:26px;border-radius:50%;border:2px solid var(--ink);vertical-align:middle;margin-inline-start:6px}

/* 1.0.2: phone landscape: menu in two columns (the title was cut off at the top and the buttons ran below the screen); stage grid in 6 columns so the back button is on screen; windows fit the height. Update corner 44px, menu only */
.menu{justify-content:safe center}
body .tu-c{width:44px;height:44px;line-height:44px}
body:has(#game.on) .tu-c,body:has(.sheet.on) .tu-c,body:has(#stages.on) .tu-c{display:none!important}
@media (orientation:landscape) and (max-height:540px){
  #menu.on{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto auto 1fr;column-gap:22px;row-gap:6px;align-content:center;justify-items:center;padding:max(10px,var(--safe-t)) max(16px,env(safe-area-inset-right)) max(10px,var(--safe-b)) max(16px,env(safe-area-inset-left));overflow:hidden}
  #menu #menuArt{grid-column:1;grid-row:1;width:min(320px,100%);height:auto;aspect-ratio:320/130}
  #menu .title{grid-column:1;grid-row:2;font-size:36px}
  #menu>.sub{grid-column:1;grid-row:3;font-size:14px}
  #menu #menuStats{grid-column:1;grid-row:4;align-self:start;margin:0}
  #menu .col{grid-column:2;grid-row:1/-1;align-self:center;width:min(340px,100%);max-height:calc(100dvh - 20px);overflow-y:auto;gap:8px;padding:4px 4px 8px}
  #menu .col button{min-height:44px;padding:6px 12px;font-size:16px}
  #stages.on{gap:6px;padding:max(8px,var(--safe-t)) 16px max(8px,var(--safe-b))}
  #stages h2{font-size:24px!important}
  #stGrid{grid-template-columns:repeat(6,1fr)!important;width:min(560px,100%);gap:8px}
  #stGrid button{min-height:54px;font-size:18px}
  #stBack,#bStBack{min-height:44px}
  .sheet{padding:8px}
  .sheet .card{max-height:calc(100dvh - 16px);width:min(560px,100%);padding:12px 18px;gap:8px}
  .sheet .card h2{font-size:22px}
  .howto li{font-size:14px;margin-bottom:4px}
  body .tu-c{left:auto!important;right:calc(6px + env(safe-area-inset-right))!important}
}
