/* واجهة لمس مخصصة للهواتف */
button{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
@media (hover:none){.plot:hover,.crops button:hover{transform:none}}
@media (max-width:760px){
  html,body{width:100%;min-height:100%;overflow-x:hidden;background:#78c665}
  main{display:block;min-height:100dvh;padding:0;background:linear-gradient(#8ed7f3 0 25%,#78c665 25%);overflow:visible}
  .cloud{display:none}
  .game{width:100%;min-height:100dvh;border:0;border-radius:0;box-shadow:none;overflow:visible;padding-bottom:calc(68px + env(safe-area-inset-bottom))}
  header{min-height:58px;padding:7px 12px;gap:6px;position:relative}
  header h1{font-size:23px}header p{font-size:9px}
  .header-tools{align-items:flex-end;gap:3px}.header-tools>button,.saved{min-height:28px;padding:4px 8px;font-size:8px;white-space:nowrap}
  .stats{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:5px 6px}
  .stats div{min-width:0!important;min-height:46px;padding:4px 5px!important;border-radius:10px;grid-template-columns:auto 1fr;column-gap:3px;font-size:16px}
  .stats span{font-size:17px}.stats small{font-size:7px;white-space:nowrap}.stats b{font-size:12px}.stats em{font-size:6px;white-space:nowrap}
  .xp-wrap{padding:5px 10px}.xp-wrap>div:first-child{font-size:8px;margin-bottom:3px}.xp-track{height:7px}
  .zone-tabs{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:repeat(4,1fr);gap:3px;padding:6px 5px;box-shadow:0 3px 12px #65431c35}
  .zone-tabs button{width:100%;min-height:48px;padding:6px 3px!important;border-radius:11px;font-size:11px!important;line-height:1.15}.zone-tabs small{font-size:7px;margin-top:3px}
  .crops{justify-content:flex-start;gap:7px;padding:9px 10px;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none}
  .crops::-webkit-scrollbar{display:none}.crops button{min-width:116px;min-height:56px;padding:7px 9px;scroll-snap-align:start;border-radius:13px}.crops span{font-size:26px}.crops b{font-size:12px}.crops small{font-size:8px}
  .water-tip{padding:7px 12px;font-size:10px;line-height:1.45}
  .world{min-height:0;padding:15px 8px 22px;display:block}.world aside{display:none}
  .field{width:min(100%,350px);margin:auto;padding:12px;border-width:4px;border-radius:20px}
  #grid{grid-template-columns:repeat(3,minmax(76px,1fr));gap:9px}
  .plot{width:100%;height:78px;min-width:0;border-radius:14px}.plot span{font-size:36px}.plot i{font-size:9px!important}.field p{font-size:10px;line-height:1.45}
  footer{position:fixed;z-index:30;right:0;bottom:0;left:0;min-height:58px;padding:9px 12px calc(9px + env(safe-area-inset-bottom));flex-direction:row;gap:8px;text-align:right;box-shadow:0 -4px 16px #624b2730}
  footer p{font-size:11px;line-height:1.35}.autosave{max-width:105px;font-size:8px;line-height:1.3;text-align:left}
  .barn-head,.factory-head{padding:13px;gap:10px}.barn-head h2,.factory-head h2{font-size:20px}.barn-head p,.factory-head p{font-size:10px;line-height:1.5}
  .barn-head button{width:100%;min-height:48px}.inventory,.product-stock{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.inventory span,.product-stock span{flex:0 0 auto;min-height:36px}
  .coop{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-height:0;padding:15px}.chicken{min-height:132px;border-width:4px}.chicken span{font-size:45px}.chicken b{font-size:13px}.chicken small{font-size:9px}
  .buy-chicken{width:calc(100% - 26px);min-height:46px;margin:13px auto 17px}
  .machines{grid-template-columns:1fr;gap:14px;min-height:0;padding:16px 18px}.machine{min-height:175px;padding:13px;border-width:5px}.machine>span{font-size:48px}.machine h3{font-size:18px}.machine strong{font-size:11px}
  .market{align-items:stretch;padding:11px}.market h3{width:100%;text-align:center;font-size:16px}.market button{flex:1;min-height:46px;font-size:11px}
  .orders-head{align-items:flex-start;padding:13px;gap:8px}.orders-head h2{font-size:20px}.orders-head p{font-size:10px;line-height:1.4}.streak{padding:7px 9px;font-size:9px;white-space:nowrap}.streak b{font-size:14px}.orders-list{grid-template-columns:1fr;min-height:0;padding:14px;gap:13px}.order-card{min-height:170px;padding:12px}.order-reward button{min-height:42px}.animal-title{padding:8px 14px;font-size:15px}.cow-title{padding:10px 14px}.cows{grid-template-columns:repeat(2,minmax(0,1fr));min-height:0;padding:15px;gap:10px}.cow{min-height:132px;border-width:4px}.cow span{font-size:45px}.cow b{font-size:13px}.cow small{font-size:9px}.buy-cow{width:calc(100% - 26px);min-height:46px}
}
@media (max-width:360px){
  header h1{font-size:21px}.saved{display:none}.stats{grid-template-columns:repeat(4,1fr)}
  #grid{grid-template-columns:repeat(3,minmax(70px,1fr));gap:7px}.plot{height:72px}
  .autosave{display:none}footer p{font-size:10px}
}
@media (max-width:900px) and (max-height:500px) and (orientation:landscape){
  .game{padding-bottom:56px}header{min-height:58px;padding:7px 14px}.stats{display:grid;grid-template-columns:repeat(4,1fr);padding:5px}.stats div{min-height:45px}
  .zone-tabs{position:sticky}.world{padding:10px}.field{width:min(520px,100%)}#grid{grid-template-columns:repeat(4,1fr)}.plot{height:64px}
}
