/* Touch movement uses the joystick; world taps activate interactive targets. */
.cf-stick[hidden]{display:none!important}
.fi-back{top:auto;bottom:max(18px,env(safe-area-inset-bottom));left:max(18px,env(safe-area-inset-left));min-height:48px;min-width:88px;padding:10px 18px;font-size:20px}
@media(any-pointer:coarse){
  #cult{-webkit-user-select:none;user-select:none;overscroll-behavior:none}
  #cult button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
  #cult .cf-stick{touch-action:none}
  #cult kbd{display:none!important}
  .cf-stick{width:118px;height:118px;left:max(20px,env(safe-area-inset-left));bottom:max(20px,env(safe-area-inset-bottom))}
  .cf-build-open{min-height:52px;min-width:110px;padding:12px 20px;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom))}
  .fi-menu:before{backdrop-filter:none;background:#0b080820;mask-image:none}
  .fi-inspire:before{content:'';position:absolute;inset:-22px;border-radius:50%}
  .fi-inspire:hover{filter:none}
  .fi-talk{min-height:52px;padding:10px 22px;bottom:max(148px,calc(env(safe-area-inset-bottom) + 130px))}
  .fi-talk svg{display:none}
  .cm-overlay{backdrop-filter:none}
  .cg-action svg{display:none}
  .cm-control{min-height:110px;padding:8px 18px;font-size:34px}
  .cm-controls{gap:28px;bottom:14px}
  .cm-cook{min-height:96px}
  .cb-tab-bar>.cb-key-action{display:none}
  .cb-tabs{height:48px}
  .cb-tab{min-height:48px}
  .cb-menu-footer button,.cb-build-context button,.fa-nav{min-width:48px;min-height:48px;padding:8px 12px}
  .cb-context-close{flex:none}
  .cb-placement button{min-width:48px;min-height:64px}
  .cb-tiles,.fa-fields{touch-action:pan-y}
}
@media(any-pointer:coarse) and (orientation:portrait){
  .cm-surface{left:0;top:0;width:100%;height:100%;transform:none;display:grid;grid-template-rows:minmax(0,1.2fr) minmax(0,1fr) auto;gap:12px;padding:16px 16px max(16px,env(safe-area-inset-bottom))}
  .cm-ink{width:100%;height:440px}
  .cm-left{position:relative;left:auto;right:auto;top:auto;width:auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:6px}
  .cm-caption,.cm-count{font-size:24px}
  .cm-recipes,.cm-queue{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:10px}
  .cm-tile,.cm-slot{width:100%;height:clamp(52px,7vh,72px)}
  .cm-tile .cm-food,.cm-slot .cm-food{transform:scale(.7);transform-origin:top left;position:absolute;left:calc(50% - 34px);top:2px}
  .cm-available{font-size:28px}
  .cm-badge{width:25px;height:25px}
  .cm-queue{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 50px)/6);overflow-x:auto;overflow-y:hidden;touch-action:pan-x;padding-bottom:6px}
  .cm-cook{display:none}
  .cm-notice:empty{display:none}
  .cm-detail{position:relative;left:auto;top:auto;width:auto;height:auto;min-height:0;display:grid;grid-template-columns:140px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 84px;padding:12px}
  .cm-detail-top{height:auto;min-height:0;padding-top:12px;overflow-y:auto;touch-action:pan-y}
  .cm-recipe-name{font-size:22px}
  .cm-detail-top:before,.cm-detail-top:after{display:none}
  .cm-detail:after{display:none}
  .cm-detail-body{min-height:0;font-size:18px;padding:12px 16px;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}
  .cm-stars{font-size:36px;height:46px}
  .cm-detail-bottom{grid-column:1/-1;height:84px;padding:0}
  .cm-stomach{width:72px;height:72px}
  .cm-ingredients-title,.cm-ingredient{font-size:19px}
  .cm-followers,.cm-nutrition{font-size:18px;margin-bottom:8px}
  .cm-controls{position:relative;left:auto;right:auto;bottom:auto;justify-content:space-between;gap:8px}
  .cm-control{min-height:48px;padding:10px 14px;font-size:20px}
  .cm-submit{color:#191715!important;background:#e7e1c6;clip-path:polygon(0 0,100% 0,95% 50%,100% 100%,0 100%,5% 50%)}
  .cm-submit:disabled{background:#292929;color:#777!important}
}
@media(any-pointer:coarse) and (max-width:760px){
  .cb-menu{display:grid;grid-template-rows:minmax(0,1.2fr) minmax(0,1fr) auto;gap:12px;padding:16px 16px max(16px,env(safe-area-inset-bottom))}
  .cb-catalogue{position:relative;left:auto;top:auto;width:auto;height:auto;min-height:0;display:flex;flex-direction:column;overflow:hidden}
  .cb-title{flex:none;font-size:26px;margin-bottom:12px}
  .cb-tab-bar{flex:none;margin-bottom:12px}
  .cb-group{flex:none;margin-bottom:12px}
  .cb-tiles{flex:1;min-height:0;max-height:none;gap:12px;overflow:auto;overscroll-behavior:contain}
  .cb-detail{position:relative;left:auto;top:auto;width:auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}
  .cb-menu-footer{position:relative;left:auto;bottom:auto;min-height:48px;gap:20px}
}
@media(any-pointer:coarse) and (orientation:portrait) and (max-height:950px){
  .cm-tile .cm-food,.cm-slot .cm-food{transform:scale(.55);left:calc(50% - 27px)}
}
